2002-08-20 Andrew Cagney <ac131313@redhat.com>
[binutils-gdb.git] / gdb / ChangeLog
1 2002-08-20 Andrew Cagney <ac131313@redhat.com>
2
3 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
4 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
5 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
6 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
7 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
8
9 2002-08-14 Michael Snyder <msnyder@redhat.com>
10
11 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
12
13 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
14
15 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
16 register.
17 (P): New macro to define a register as a pseudo register.
18 (R, R4, R8, R16, FR32, R64, R0): Updated.
19 (struct variant): Add new fields for number of pseudo registers
20 and number of total registers.
21 (tot_num_registers): New macro replacing....
22 (num_registers): ...deleted macro.
23 (num_registers): New function.
24 (num_pseudo_registers): New function.
25 (variants): Update all variants to intialize new fields correctly.
26 Postpone initialization of number of pseudo regs and real regs.
27 (init_variants): New function.
28 (rs6000_gdbarch_init): Initialize variants. Update calculation of
29 registers offsets.
30
31 2002-08-19 David Carlton <carlton@math.stanford.edu>
32
33 * valops.c (search_struct_field): Change error message to treat
34 return value of 0 from value_static_field as meaning that field is
35 optimized out.
36 (value_struct_elt_for_reference): Ditto.
37 * values.c (value_static_field): Treat an unresolved location the
38 same as a nonexistent symbol. Fix PR gdb/635.
39 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
40 enclosed. Fix PR gdb/574.
41 * MAINTAINERS: Add self to Write After Approval list.
42
43 2002-08-19 Andrew Cagney <ac131313@redhat.com>
44
45 * mips-tdep.c (mips_xfer_register): New function.
46 (mips_n32n64_extract_return_value): Rewrite.
47 (mips_gdbarch_init): For N32 and N64, set extract_return_value
48 instead of deprecated_extract_return_value.
49
50 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
51
52 * rs6000-tdep.c (TDEP): Delete macro.
53 (branch_dest): Replace use of TDEP macro with its body.
54 (rs6000_pop_frame): Ditto.
55 (rs6000_push_arguments): Ditto.
56 (rs6000_skip_trampoline_code): Ditto.
57 (rs6000_frame_saved_pc): Ditto.
58 (rs6000_frame_chain): Ditto.
59 (rs6000_register_name): Ditto.
60 (rs6000_register_byte): Ditto.
61 (rs6000_register_raw_size): Ditto.
62 (rs6000_register_virtual_type): Ditto.
63 (rs6000_register_convertible): Ditto.
64 (rs6000_convert_from_func_ptr_addr): Ditto.
65
66 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
67
68 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
69 conditionally.
70 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
71 MIPS_LINUX_JB_ELEMENT_SIZE.
72 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
73 for MAX_REGISTER_RAW_SIZE arrays.
74 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
75 MIPS_LINUX_JB_ELEMENT_SIZE.
76
77 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
78
79 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
80
81 2002-08-19 Aidan Skinner <aidan@velvet.net>
82
83 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
84 ada-valprint.c ada-tasks.c.
85 (YYFILES): Add ada-exp.y.
86 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
87 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
88 (ada-exp.tab.o): New target.
89
90 2002-08-18 Andrew Cagney <ac131313@redhat.com>
91
92 * regcache.c (regcache_xfer_part): New function.
93 (regcache_raw_read_part): New function.
94 (regcache_raw_write_part): New function.
95 (regcache_cooked_read_part): New function.
96 (regcache_cooked_write_part): New function.
97 * regcache.h (regcache_raw_read_part): Declare.
98 (regcache_raw_write_part): Declare.
99 (regcache_cooked_read_part): Declare.
100 (regcache_cooked_write_part): Declare.
101
102 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
103
104 * remote.c (remote_open_1): Add async_p.
105 (remote_async_open_1): Delete.
106 (open_remote_target): Delete.
107 (remote_open, extended_remote_open): Update calls to remote_open_1.
108 (remote_async_open, extended_remote_async_open): Call
109 remote_open_1 instead of remote_async_open_1.
110
111 2002-08-19 Mark Kettenis <kettenis@gnu.org>
112
113 * blockframe.c: Fix a few coding standard violations.
114
115 2002-08-19 Mark Kettenis <kettenis@gnu.org>
116
117 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
118 here from ...
119 * config/i386/tm-i386sco5.h: ... here. File removed.
120 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
121
122 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
123 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
124 (TM_FILE): Set to tm-i386.h.
125 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
126 * config/i386/tm-i386v.h: Remove file.
127 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
128 instead of "i386/tm-i386v.h".
129 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
130 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
131 "i386/tm-i386v.h".
132 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
133 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
134 "i386/tm-i386.h".
135
136 2002-08-18 Mark Kettenis <kettenis@gnu.org>
137
138 * config/i386/nm-i386v.h: Add protection against
139 multiple-inclusion.
140 (i386_register_u_addr): Remove prototype.
141 (register_u_addr): New prototype.
142 (REGISTER_U_ADDR): Redefine accordingly.
143 * i386v-nat.c: Improve several comments.
144 (i386_register_u_addr): Change signature and rename to
145 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
146 ubase variable.
147
148 2002-08-18 Andrew Cagney <ac131313@redhat.com>
149
150 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
151 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
152 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
153 deprecated_extract_return_value.
154 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
155 rename mips_o32o64_push_arguments.
156 (mips_gdbarch_init): Update.
157 (mips_extract_return_value): Delete.
158 (mips_o32_extract_return_value): Clone mips_extract_return_value.
159 (mips_o64_extract_return_value): Clone mips_extract_return_value.
160 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
161 (mips_n32n64_extract_return_value): Clone
162 mips_extract_return_value.
163 (mips_store_return_value): Delete.
164 (mips_o32_store_return_value): Clone mips_store_return_value.
165 (mips_o64_store_return_value): Clone mips_store_return_value.
166 (mips_eabi_store_return_value): Clone mips_store_return_value.
167 (mips_n32n64_store_return_value): Clone mips_store_return_value.
168
169 2002-08-18 Aidan Skinner <aidan@velvet.net>
170
171 * ada-lang.c: Use gdb_string.h instead of <string.h>.
172 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
173
174 2002-08-18 Aidan Skinner <aidan@velvet.net>
175
176 * ada-lang.c: Run through gdb_indent.sh.
177 * ada-lang.h: Run through gdb_indent.sh.
178 * ada-tasks.c: Run through gdb_indent.sh.
179 * ada-typeprint.c: Run through gdb_indent.sh.
180 * ada-valprint.c: Run through gdb_indent.sh.
181
182 2002-08-18 Andrew Cagney <ac131313@redhat.com>
183
184 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
185 ABI.
186
187 2002-08-18 Mark Kettenis <kettenis@gnu.org>
188
189 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
190
191 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
192 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
193
194 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
195 write_register_gen instead of write_register_bytes.
196
197 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
198 i[3456]-*-osf1mk* configurations have been made obsolete.
199 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
200 i[3456]86-*-osf1mk* hosts obsolete.
201 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
202 targets obsolete.
203 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
204 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
205 config/i386/i386m3.mt, config/i386/nm-m3.h,
206 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
207 config/i386/i386mk.mh, config/i386/i386mk.mt,
208 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
209 obsolete.
210 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
211 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
212 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
213
214 2002-08-18 Andrew Cagney <ac131313@redhat.com>
215
216 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
217 (hppa_value_returned_from_stack): Declare.
218 (hppa_extract_return_value): Declare.
219 * config/pa/hppa.mt: New file.
220 * configure.tgt: Recognize hppa*-*-*.
221 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
222
223 2002-08-18 Mark Kettenis <kettenis@gnu.org>
224
225 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
226 comment.
227
228 2002-08-17 Mark Kettenis <kettenis@gnu.org>
229
230 * top.c (gdb_rl_operate_and_get_next): Make sure
231 operate-and-get-next functions correctly even when the history
232 list is completely filled.
233
234 2002-08-18 Andrew Cagney <ac131313@redhat.com>
235
236 * MAINTAINERS (Target Instruction Set Architectures): Rename
237 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
238 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
239 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
240 already listed under Host/Native.
241
242 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
243 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
244 mips*-*-*.
245
246 2002-08-17 Andrew Cagney <ac131313@redhat.com>
247
248 * config/ia64/ia64.mt: New file.
249 * config/alpha/alpha.mt: New file.
250 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
251 ia64-linux-gnu. Mention that ia64-elf is broken.
252 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
253
254 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
255
256 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
257 generic_func_frame_valid instead of func_frame_valid.
258
259 2002-08-16 Joel Brobecker <brobecker@gnat.com>
260
261 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
262 procfs appears to be broken when debugging on multi-processor
263 machines. So enable software single stepping in order to avoid
264 using the procfs interface to do next/step operations, using
265 internal breakpoints instead.
266
267 * infrun.c (handle_inferior_event): Readjust the stop_pc by
268 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
269 make this pc address equal to the value it would have if the
270 system stepping capability was used. Also set a new flag used
271 to ensure that we don't readjust the PC one more time later.
272
273 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
274 address by DECR_PC_AFTER_BREAK when software single step is
275 in use for this architecture, as this has already been taken
276 care of in handle_inferior_event().
277
278 2002-08-16 Joel Brobecker <brobecker@gnat.com>
279
280 * infrun.c (handle_inferior_event): Minor reformatting, to make
281 a rather long condition expression easier to read.
282
283 2002-08-16 Andrew Cagney <ac131313@redhat.com>
284
285 * Makefile.in (gdbtk.o): Move to end of file.
286 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
287 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
288 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
289 (gdbtk-wrapper.o, gdbres.o): Ditto.
290
291 2002-08-16 Andrew Cagney <ac131313@redhat.com>
292
293 * Makefile.in (copying.o): Separate out compile rule.
294 (hpux-thread.o, procfs.o, signals.o): Ditto.
295 (v850ice.o, z8k-tdep.o): Ditto.
296 (tui-file.o): Move to TUI section.
297 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
298 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
299
300 2002-08-16 Joel Brobecker <brobecker@gnat.com>
301
302 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
303 skip_trampoline_code, for better namespace-proofing.
304
305 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
306
307 2002-08-16 Joel Brobecker <brobecker@gnat.com>
308
309 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
310
311 2002-08-16 Joel Brobecker <brobecker@gnat.com>
312
313 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
314 signal, check whether we hit a breakpoint before checking for a
315 single step breakpoint. Otherwise, GDB fails to notice that a
316 breakpoint has been hit when stepping onto a breakpoint.
317
318 2002-08-16 Keith Seitz <keiths@redhat.com>
319
320 * gdb-events.sh (clear_gdb_event_hooks): New function.
321 * gdb-events.c: Regenerate.
322 * gdb-events.h: Regenerate.
323
324 2002-08-16 Andrew Cagney <ac131313@redhat.com>
325
326 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
327 not_a_sw_breakpoint.
328 * breakpoint.h (bpstat_stop_status): Add parameter names.
329
330 2002-08-16 Grace Sainsbury <graces@redhat.com>
331
332 * remote.c (remote_insert_hw_breakpoint)
333 (remote_remove_hw_breakpoint): Fix calculation of length field
334 for Z-packet.
335
336 2002-08-15 Michael Snyder <msnyder@redhat.com>
337
338 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
339 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
340 (supply_fpregset): Ditto.
341
342 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
343 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
344 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
345 (TARGET_READ_SP): Delete.
346 (DO_REGISTERS_INFO): Delete.
347 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
348 Delete.
349 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
350 from macros to functions.
351
352 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
353 (mips_register_convertible, mips_register_convert_to_virtual,
354 mips_register_convert_to_raw): Make static.
355 (mips_read_sp): New function.
356 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
357 (mips_do_registers_info): Make static.
358 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
359 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
360 (mips_register_convert_from_type, mips_register_convert_to_type):
361 New functions.
362 (mips_gdbarch_init): Set up function_start_offset,
363 register_virtual_size, pc_in_sigtramp.
364
365 2002-08-15 Andrew Cagney <ac131313@redhat.com>
366
367 * infcmd.c (vector_info): New function.
368 (_initialize_infcmd): Add command "info vector".
369 (print_vector_info): New function.
370
371 * gdbarch.sh (PRINT_VECTOR_INFO): New method
372 * gdbarch.h, gdbarch.c: Regenerate.
373
374 2002-08-15 Andrew Cagney <ac131313@redhat.com>
375
376 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
377 ``print_all''. Only print vector registers when ``print_all''.
378
379 2002-08-15 Andrew Cagney <ac131313@redhat.com>
380
381 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
382 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
383
384 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
385 Add `args' parameter.
386 * gdbarch.h, gdbarch.c: Regenerate.
387
388 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
389
390 * infcmd.c (float_info): Call print_float_info.
391 (print_float_info): New function. By default, print the
392 floating-point registers.
393
394 * arch-utils.h (default_print_float_info): Delete declaration.
395 * arch-utils.c (default_print_float_info): Delete function.
396
397 2002-08-16 Mark Kettenis <kettenis@gnu.org>
398
399 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
400 out define.
401
402 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
403 FRAME.
404
405 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
406 * configure.host: Make i[3456]86-*-aix host obsolete.
407 * configure.tgt: Make i[3456]86-*-aix target obsolete.
408 * config/i386/i386aix.mh, config/i386/i386aix.mt,
409 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
410 config/i386/xm-i386aix.h: Make files obsolete.
411 * i386aix-nat.c: Make file obsolete.
412 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
413 (i386aix-nat.o): Make target obsolete.
414
415 * config/i386/nm-gnu.h: Removed.
416 * config/i386/nm-i386gnu.h: New file.
417 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
418 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
419 Moved here from ...
420 * config/i386/tm-i386gnu.h: ... here. Removed.
421 * config/i386/xm-i386gnu.h: Removed.
422 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
423 (NAT_FILE): Set to nm-i386gnu.h.
424 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
425 * i386-tdep.c: New file.
426 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
427 (i386gnu-tdep.o): Specify dependencies.
428
429 2002-08-15 Mark Kettenis <kettenis@gnu.org>
430
431 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
432 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
433 Adjust a few comments to reflect reality a bit closer.
434 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
435 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
436 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
437 target_insert_watchpoint, target_remove_watchpoint):
438 Move defines to ...
439 * config/i386/nm-i386sco5.h: ... here.
440 (kernel_u_size): Add prototype. Improve a few comments and add
441 protection against multiple inclusion.
442
443 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
444 out define.
445
446 * uw-thread.c (SP_ARG0): Define if not already defined.
447 * config/i386/tm-i386.h (SO_ARG0): Remove define.
448
449 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
450
451 * config/i386/tm-i386.h: Don't include "regcache.h".
452
453 * i387-tdep.h (i387_print_float_info): New prototype.
454 * i387-tdep.c (print_i387_value, print_i387_ext,
455 print_i387_status_word, print_i387_control_word): Add `struct
456 ui_file *' argument and use it for output.
457 (i387_print_float_info): Renamed from i387_float_info. Add
458 `struct gdbarch *' and `struct ui_file *' arguments and use the
459 latter for output.
460 * i386-tdep.c: Include "i387-tdep.h".
461 (i386_gdbarch_init): Set print_float_info.
462 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
463 (FLOAT_INFO): Remove define.
464
465 2002-08-13 Michael Snyder <msnyder@redhat.com>
466
467 * mips-tdep.c (mips_push_arguments): Rename to
468 mips_eabi_push_arguments, and tune for EABI.
469 (MIPS_REGS_HAVE_HOME_P): Delete.
470 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
471 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
472 Delete references to mips_regs_have_home_p.
473
474 2002-08-14 Keith Seitz <keiths@redhat.com>
475
476 * Makefile.in (install-gdbtk): Create insight plugin directory.
477 Install plugins.tcl file.
478
479 2002-08-14 Keith Seitz <keiths@redhat.com>
480
481 * configure.in: Move SUBDIRS to near top of the file so that
482 --enable options may add things to it.
483 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
484 * configure: Regenerate.
485
486 2002-08-13 Michael Snyder <msnyder@redhat.com>
487
488 * mips-tdep.c (mips_o32o64_push_arguments): New function,
489 cloned from mips_push_arguments, tuned for o32/o64 ABI.
490 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
491
492 2002-08-13 Andrew Cagney <ac131313@redhat.com>
493
494 * vax-tdep.c (vax_get_saved_register): Delete function.
495 (vax_gdbarch_init): Update.
496 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
497 (ns32k_gdbarch_init): Update.
498 * alpha-tdep.c (alpha_get_saved_register): Delete function.
499 (alpha_gdbarch_init): Update.
500
501 2002-08-13 Andrew Cagney <cagney@redhat.com>
502
503 * regcache.c (init_regcache_descr): Overallocate the
504 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
505 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
506 nr_raw_registers.
507 (set_register_cached): Add range checking assertions. Use
508 current_regcache.
509
510 2002-08-13 Mark Kettenis <kettenis@gnu.org>
511
512 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
513 numbers for MMX registers.
514
515 2002-08-13 Andrew Cagney <cagney@redhat.com>
516
517 * i386-tdep.c (i386_gdbarch_init): Use
518 generic_unwind_get_saved_register.
519
520 2002-08-13 Kevin Buettner <kevinb@redhat.com>
521
522 * procfs.c (procfs_can_use_hw_breakpoint): New function.
523 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
524 target vector.
525 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
526 Delete. Add comment regarding this now-deleted target method.
527
528 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
529
530 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
531 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
532 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
533 real PC and the page number (if it's within the memory bank window).
534 (m68hc11_pseudo_register_write): Likewise when saving.
535 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
536 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
537 (m68hc11_register_raw_size): And use 32-bit for it.
538 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
539 16K memory bank is used by the prog; also use the virtual pc.
540
541 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
542
543 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
544 (m68hc11_gdbarch_init): Install it in gdbarch.
545 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
546 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
547 (MSYMBOL_SIZE): New for documentation.
548 (insn_return_kind): Enum to specify how a function returns.
549 (frame_extra_info): Cleanup and record the return mode.
550 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
551 register in address computation.
552 (m68hc11_get_return_insn): New to obtain the return instruction used
553 by the function.
554 (m68hc11_frame_init_saved_regs): Take into account the return
555 instruction used by the function for far and interrupt functions.
556 (m68hc11_init_extra_frame_info): Take into account page register.
557 (m68hc11_frame_args_address): Adjust according to the return mode.
558 (show_regs): Print page register only when it's used.
559
560 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
561
562 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
563 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
564 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
565 registers.
566 (m68hc11_register_raw_size): Likewise.
567
568 2002-08-13 Andrew Cagney <cagney@redhat.com>
569
570 * i386-tdep.c (i386_register_name): Handle mmx registers.
571 (mmx_regnum_p): New function.
572 (i386_mmx_names): New array.
573 (mmx_num_regs): New variable.
574 (i386_pseudo_register_read): New function.
575 (i386_pseudo_register_write): New function.
576 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
577
578 * regcache.c (regcache_raw_read_unsigned): New function.
579 (regcache_raw_read_signed): New function.
580 * regcache.h (regcache_raw_read_unsigned): Declare.
581 (regcache_raw_read_signed): Declare.
582
583 2002-08-13 Andrew Cagney <cagney@redhat.com>
584
585 * regcache.c (regcache_raw_read_as_address): Delete function.
586 (regcache_cooked_read_signed): New function.
587 (regcache_cooked_read_unsigned): New function.
588 * regcache.h (regcache_cooked_read_signed): Declare.
589 (regcache_cooked_read_unsigned): Declare.
590 (regcache_raw_read_as_address): Delete declaration.
591
592 * blockframe.c (generic_read_register_dummy): Use
593 regcache_cooked_read_unsigned.
594 * i386-tdep.c (i386_extract_struct_value_address): Use
595 regcache_cooked_read_unsigned.
596
597 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
598
599 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
600 double sizes according to ELF ABI flags.
601 (gdbarch_tdep): Record elf_flags.
602
603 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
604
605 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
606 (m6812_prolog): They can appear in 68HC12 function prologue.
607 (m68hc11_frame_chain): Cleanup.
608
609 2002-08-12 Andrew Cagney <cagney@redhat.com>
610
611 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
612 declarations.
613 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
614 (i386_linux_register_raw_size): Delete function.
615 (i386_linux_init_abi): Update.
616 * i386-tdep.c (i386_register_raw_size): Delete function.
617 (i386_register_byte): Delete function.
618 (i386_gdbarch_init): Update.
619 (i386_register_size): Delete array.
620 (i386_register_offset): Delete array.
621
622 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
623 (REGISTER_RAW_SIZE): Delete macro.
624 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
625 (REGISTER_BYTE): Delete macro.
626
627 2002-08-11 Aidan Skinner <aidan@velvet.net>
628
629 * ada-lang.c (ada_lookup_partial_symbol)
630 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
631 prototype names so that grep ^func works properly.
632
633 * ada-lang.c (ada_array_element_type)
634 (ada_lookup_partial_symbol): Fix typos in parameter list.
635
636 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
637 Fix prototype names so that grep ^func works properly.
638
639 2002-08-10 Andrew Cagney <cagney@redhat.com>
640 Elena Zannoni <ezannoni@redhat.com>
641 Martin M. Hunt <hunt@redhat.com>
642
643 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
644 (build_builtin_type_vec128i): Set the vector bit.
645 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
646 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
647 (build_builtin_type_vec64): New function.
648 (build_builtin_type_vec64i): New function.
649 (build_gdbtypes): Initialize builtin_type_vec64 and
650 builtin_type_vec64i.
651
652 2002-08-09 Andrew Cagney <cagney@redhat.com>
653
654 * regcache.c (regcache_dump): Compare the register offset
655 with REGISTER_BYTE.
656 * arch-utils.c (generic_register_byte): New function.
657 * arch-utils.h (generic_register_byte): Declare.
658 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
659 * gdbarch.h, gdbarch.c: Regenerate.
660
661 2002-08-09 Andrew Cagney <cagney@redhat.com>
662
663 * regcache.c: Include "gdbcmd.h"
664 (_initialize_regcache): Add commands "maintenance print
665 registers", "maintenance print raw-registers" and "maintenance
666 print cooked-registers".
667 (enum regcache_dump_what): Define.
668 (dump_endian_bytes): New function.
669 (regcache_dump): New function.
670 (regcache_print): New function.
671 (maintenance_print_registers): New function.
672 (maintenance_print_raw_registers): New function.
673 (maintenance_print_cooked_registers): New function.
674 * Makefile.in (regcache.o): Update dependencies.
675
676 2002-08-09 Michael Snyder <msnyder@redhat.com>
677
678 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
679 (mips_push_arguments): Correct some comments. Use paddr_nz
680 for printing addresses in debug output. Replace static
681 allocation using MAX_REGISTER_RAW_SIZE with alloca.
682 (mips_n32n64_push_arguments): New function, cloned from
683 mips_push_arguments and tuned for the n32/n64 ABI.
684 (mips_push_register): Buffer needs dynamic allocation.
685 (mips_print_register): Ditto.
686 (do_gp_register_row): Ditto.
687 (mips_store_return_value): Ditto.
688 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
689
690 2002-08-09 Don Howard <dhoward@redhat.com>
691
692 * memattr.c (mem_info_command): Print special case of upper bound
693 as max CORE_ADDR + 1.
694
695 2002-08-08 Michael Snyder <msnyder@redhat.com>
696
697 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
698 returns structs by ref if they're too big to fit in two registers.
699
700 2002-08-09 Kevin Buettner <kevinb@redhat.com>
701
702 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
703 saved regs value.
704 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
705 mips_find_saved_regs().
706 (mips_pop_frame): Likewise.
707
708 2002-08-09 Kevin Buettner <kevinb@redhat.com>
709
710 * blockframe.c (frame_saved_regs_register_unwind): Revise
711 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
712 frames are in use.
713
714 2002-08-09 Grace Sainsbury <graces@redhat.com>
715
716 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
717 T-packets; the 'a' is not taken as a register number.
718 (remote_check_watch_resources, remote_stopped_by_watchpoint)
719 (remote_stopped_data_address): New functions; add to target
720 vector.
721 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
722 prototypes to match other implementations of this
723 function. replace integer argument with pointer -- the length
724 field in the Z-packet is the length of what is pointed to or 1 if
725 pointer is null. Add to target vector.
726 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
727 target vector.
728
729 From Mark Salter:
730 * remote.c (remote_wait): Add support to extract optional
731 watchpoint information from T-packet. Ignore unrecognized
732 optional info in T-packet.
733 (remote_async_wait): Ditto.
734
735 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
736
737 * cli/cli-dump.c: Change fopen modes to use binary open modes
738 as defined in include/fopen-bin.h throughout.
739
740 2002-08-08 Michael Snyder <msnyder@redhat.com>
741
742 * mips-tdep.c: Minor whitespace and indentation clean-ups.
743
744 2002-08-08 Kevin Buettner <kevinb@redhat.com>
745
746 * doublest.c (store_floating): Avoid floatformat_from_doublest()
747 assertion failure by returning early after a warning.
748
749 2002-08-08 Kevin Buettner <kevinb@redhat.com>
750
751 * mips-tdep.c (mips_find_saved_regs): Make static.
752 (mips_frame_init_saved_regs): New function.
753 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
754 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
755 (mips_find_saved_regs): Delete declaration.
756
757 2002-08-08 Grace Sainsbury <graces@redhat.com>
758
759 * remote.c (remote_wait, remote_async_wait): Change
760 thread_num from int to ULONGEST.
761 (unpack_varlen_hex): Change result parameter from
762 int * to ULONGEST *.
763
764 2002-08-08 Andrew Cagney <ac131313@redhat.com>
765
766 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
767 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
768 powerpc*-*-*.
769 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
770
771 2002-08-08 Andrew Cagney <cagney@redhat.com>
772
773 * gcore.c (override_derive_stack_segment): Delete variable.
774 (preempt_derive_stack_segment): Delete function.
775 (derive_stack_segment): Delete function.
776 (default_derive_stack_segment): Renamed to derive_stack_segment.
777 (override_derive_heap_segment): Delete variable.
778 (preempt_derive_heap_segment): Delete function.
779 (derive_heap_segment): Delete function.
780 (default_derive_heap_segment): Rename to derive_heap_segment.
781
782 2002-08-06 Michael Snyder <msnyder@redhat.com>
783
784 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
785 * mips-tdep.c (mips_EABI_use_struct_convention,
786 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
787 New functions. (mips_use_struct_convention): Delete.
788 (mips_gdbarch_init): set use_gdbarch_convention.
789
790 2002-08-06 Michael Snyder <msnyder@redhat.com>
791
792 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
793 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
794 mips_o32_reg_struct_has_addr): New functions.
795 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
796
797 2002-08-07 Andrew Cagney <ac131313@redhat.com>
798
799 * regcache.c (pseudo_register): Delete function.
800 (fetch_register): Delete function.
801 (store_register): Delete function.
802 (regcache_raw_read, legacy_read_register_gen): Use
803 target_fetch_registers instead of fetch_register.
804 (legacy_write_register_gen, regcache_raw_write): Use
805 target_store_register instead of store_register.
806 (write_register_bytes): Ditto.
807
808 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
809 (STORE_PSEUDO_REGISTER): Delete.
810 * gdbarch.h, gdbarch.c: Regenerate.
811
812 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
813
814 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
815 write dump file binary.
816
817 2002-08-05 Michael Snyder <msnyder@redhat.com>
818
819 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
820 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
821 (mips_gdbarch_init): Set N32 target to be mips64.
822
823 2002-08-06 Kevin Buettner <kevinb@redhat.com>
824
825 * frame.c (find_saved_register): Break out of loop once saved
826 register address is found. Don't mention sparc in loop comment
827 anymore.
828
829 2002-08-06 Kevin Buettner <kevinb@redhat.com>
830
831 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
832 mips_default_saved_regsize to 8.
833
834 2002-08-06 Andrew Cagney <ac131313@redhat.com>
835
836 * gcore.c: Do not include <sys/procfs.h>.
837 * Makefile.in (gcore.o): Update dependencies.
838
839 2002-08-06 Andrew Cagney <cagney@redhat.com>
840
841 * configure.tgt: Make arc-*-* obsolete.
842 * NEWS: Mention that arc-*-* has been identifed as obsolete.
843 * MAINTAINERS: Make arc-elf obsolete.
844 * arc-tdep.c: Make file obsolete.
845 * config/arc/arc.mt: Ditto.
846 * config/arc/tm-arc.h: Ditto.
847
848 2002-08-05 Theodore A. Roth <troth@verinet.com>
849
850 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
851
852 2002-08-05 Andrew Cagney <ac131313@redhat.com>
853
854 * mcore-tdep.c (mcore_gdbarch_init): Use
855 generic_unwind_get_saved_register instead of
856 generic_get_saved_register.
857 * v850-tdep.c (v850_gdbarch_init): Ditto.
858 * frv-tdep.c (frv_gdbarch_init): Ditto.
859 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
860 * s390-tdep.c (s390_gdbarch_init): Ditto.
861 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
862 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
863 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
864
865 2002-08-05 Joel Brobecker <brobecker@gnat.com>
866
867 * objfiles.h: Add missing #include "symfile.h"
868
869 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
870
871 2002-08-04 Andrew Cagney <ac131313@redhat.com>
872
873 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
874 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
875 of FIELD_BITSIZE.
876
877 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
878
879 * NEWS: Cleanup and nitpick.
880
881 2002-08-03 Andrew Cagney <ac131313@redhat.com>
882
883 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
884
885 2002-08-03 Andrew Cagney <ac131313@redhat.com>
886
887 * Makefile.in (gdbtk-bp.o): Update dependencies.
888 (gdbtk-register.o): Ditto.
889 (gdbtk-varobj.o): Ditto.
890
891 2002-08-03 Andrew Cagney <cagney@redhat.com>
892
893 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
894 m68hc11_fetch_pseudo_register.
895 (m68hc11_pseudo_register_write): Replace
896 m68hc11_store_pseudo_register.
897 (m68hc11_gdbarch_init): Update.
898
899 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
900
901 * gdbarch.sh: Include "gdb_string.h".
902 * gdbarch.c: Regenerate.
903
904 * regcache.c: Include "gdb_string.h".
905 * ax-general.c: Ditto.
906 * varobj.c: Ditto.
907 * std-regs.c: Ditto.
908 * fbsd-proc.c: Ditto.
909 * thread.c: Ditto.
910
911 * Makefile.in (regcache.o): Update dependencies.
912 (thread.o, gdbarch.o): Ditto.
913 (ax-general.o, gdbarch.o): Ditto.
914 (varobj.o, std-regs.o): Ditto.
915 (fbsd-proc.o): Specify dependencies.
916
917 2002-08-02 Andrew Cagney <cagney@redhat.com>
918
919 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
920 regnum.
921 (regcache_cooked_write): Ditto.
922
923 2002-08-02 Andrew Cagney <ac131313@redhat.com>
924
925 * regcache.c (regcache_cooked_read): New function.
926 (regcache_cooked_write): New function.
927 (read_register_gen): Rewrite using regcache_cooked_read.
928 (write_register_gen): Rewrite using regcache_cooked_write.
929
930 * regcache.h (regcache_cooked_read, regcache_cooked_write):
931 Declare.
932
933 2002-08-02 Andrew Cagney <cagney@redhat.com>
934
935 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
936 Replace the architecture methods register_read and register_write.
937 * gdbarch.h, gdbarch.c: Regenerate.
938 * regcache.c (init_regcache_descr): Update.
939 (read_register_gen): Update.
940 (write_register_gen): Update.
941 (supply_register): Update comment.
942
943 * sh-tdep.c (sh_gdbarch_init): Update.
944 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
945 `regcache' and `gdbarch' parameters. Make `buffer' a void
946 pointer. Update code.
947 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
948 `regcache' and `gdbarch' parameters. Make `buffer' a constant
949 void pointer. Update code.
950 (sh64_register_write): Delete.
951 (sh4_register_read): Delete.
952 (sh64_register_read): Delete.
953 (sh4_register_write): Delete.
954 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
955 void pointer, `to' parameter a void pointer.
956 (sh_sh64_register_convert_to_raw): Ditto.
957
958 2002-08-01 Kevin Buettner <kevinb@redhat.com>
959
960 * mips-tdep.c (mips_register_virtual_type): Use architecture
961 invariant return values.
962
963 2002-08-01 Andrew Cagney <cagney@redhat.com>
964
965 * linux-proc.c: Include "gdb_string.h".
966 * Makefile.in (linux-proc.o): Update dependency list.
967
968 2002-08-01 Kevin Buettner <kevinb@redhat.com>
969
970 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
971 comment.
972
973 2002-08-01 Grace Sainsbury <graces@redhat.com>
974
975 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
976 to_insert_watchpoint, to_remove_watchpoint,
977 to_stopped_by_watchpoint, to_stopped_data_address,
978 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
979 target vecctor. Define their corresponding macros so they call
980 them.
981
982 * target.c: Add default and debug versions of for
983 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
984 to_insert_watchpoint, to_remove_watchpoint,
985 to_stopped_by_watchpoint, to_stopped_data_address,
986 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
987
988 2002-08-01 Kevin Buettner <kevinb@redhat.com>
989
990 * mips-tdep.c (mips_register_virtual_type): New function.
991 (mips_gdbarch_init): Register mips_register_virtual_type()
992 with gdbarch machinery.
993 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
994 this file instead of tm-bigmips.h.
995 (MIPS_REGSIZE): Delete this macro.
996 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
997 multiarch version in mips-tdep.c will be found.
998
999 2002-08-01 Andrew Cagney <cagney@redhat.com>
1000
1001 * NEWS: Menion that CHILL has been made obsolete.
1002
1003 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
1004 * gdbserver/Makefile.in: Ditto.
1005 * stabsread.c (read_range_type): Ditto.
1006 * gdbtypes.h: Ditto.
1007 * language.c (binop_type_check): Ditto.
1008 (binop_result_type): Ditto.
1009 (integral_type): Ditto.
1010 (character_type): Ditto.
1011 (string_type): Ditto.
1012 (boolean_type): Ditto.
1013 (structured_type): Ditto.
1014 (lang_bool_type): Ditto.
1015 (binop_type_check): Ditto.
1016 * language.h (_LANG_chill): Ditto.
1017 * dwarfread.c (set_cu_language): Ditto.
1018 * dwarfread.c (CHILL_PRODUCER): Ditto.
1019 * dwarfread.c (handle_producer): Ditto.
1020 * expression.h (enum exp_opcode): Ditto.
1021 * eval.c: Ditto for comments.
1022 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
1023 * expprint.c (print_subexp): Ditto.
1024 (print_subexp): Ditto.
1025 * valops.c (value_cast): Ditto.
1026 (search_struct_field): Ditto.
1027 * value.h (COERCE_VARYING_ARRAY): Ditto.
1028 * symfile.c (init_filename_language_table): Ditto.
1029 (add_psymbol_with_dem_name_to_list): Ditto.
1030 * valarith.c (value_binop): Ditto.
1031 (value_neg): Ditto.
1032 * valops.c (value_slice): Ditto.
1033 * symtab.h (union language_specific): Ditto.
1034 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
1035 (SYMBOL_DEMANGLED_NAME): Ditto.
1036 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
1037 * defs.h (enum language): Ditto.
1038 * symtab.c (got_symtab): Ditto.
1039 * utils.c (fprintf_symbol_filtered): Ditto.
1040
1041 * ch-typeprint.c: Make file obsolete.
1042 * ch-valprint.c: Make file obsolete.
1043 * ch-lang.h: Make file obsolete.
1044 * ch-exp.c: Make file obsolete.
1045 * ch-lang.c: Make file obsolete.
1046
1047 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
1048 CHILL_LIB.
1049 (TARGET_FLAGS_TO_PASS): Ditto.
1050 (CHILLFLAGS): Obsolete.
1051 (CHILL): Obsolete.
1052 (CHILL_FOR_TARGET): Obsolete.
1053 (CHILL_LIB): Obsolete.
1054 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
1055 ch-valprint.c.
1056 (HFILES_NO_SRCDIR): Remove ch-lang.h.
1057 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
1058 ch-lang.o.
1059 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
1060 targets.
1061
1062 2002-07-31 Joel Brobecker <brobecker@gnat.com>
1063
1064 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
1065 This does not change anything at the moment, but will be helpful
1066 later when full Ada support is integrated.
1067
1068 2002-07-31 Kevin Buettner <kevinb@redhat.com>
1069
1070 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
1071 help message.
1072
1073 2002-07-31 Kevin Buettner <kevinb@redhat.com>
1074
1075 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
1076 and save it in a local variable. Use variable in later test.
1077
1078 2002-07-31 Kevin Buettner <kevinb@redhat.com>
1079
1080 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
1081 test. (Thanks to Daniel Jacobowitz.)
1082
1083 2002-07-31 Kevin Buettner <kevinb@redhat.com>
1084
1085 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
1086 (mips_abi_strings): Add "n64".
1087 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
1088
1089 2002-07-31 Kevin Buettner <kevinb@redhat.com>
1090
1091 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
1092 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
1093
1094 2002-07-31 Kevin Buettner <kevinb@redhat.com>
1095
1096 * utils.c (host_pointer_to_address, address_to_host_pointer):
1097 Use gdb_assert() instead of explicit call to internal_error().
1098
1099 2002-07-30 Kevin Buettner <kevinb@redhat.com>
1100
1101 * Makefile.in (rs6000-nat.o): Update dependencies.
1102
1103 From Nicholas Duffek:
1104 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
1105 (aix-thread.o): New rule.
1106 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
1107 * config/powerpc/aix432.mh: New file.
1108
1109 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
1110
1111 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
1112 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
1113 (fetch_core_registers, ppc_linux_supply_gregset)
1114 (ppc_linux_supply_fpregset): New functions.
1115 (ppc_linux_regset_core_fns): New.
1116 (_initialize_ppc_linux_tdep): Call add_core_fns.
1117 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
1118 and ppc_linux_supply_gregset.
1119 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
1120 (supply_fpregset): Call ppc_linux_supply_fpregset.
1121 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
1122 corelow.o.
1123 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
1124
1125 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
1126
1127 * symtab.c (lookup_symbol): Demangle before lowercasing.
1128
1129 2002-07-30 Andrew Cagney <ac131313@redhat.com>
1130
1131 * symtab.h: Replace #include "gdb_obstack.h" with opaque
1132 declaration.
1133 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
1134 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
1135 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
1136 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
1137 "gdb_string.h".
1138 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
1139 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
1140 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
1141 (avr-tdep.o, mon960-rom.o): Ditto.
1142 (aout_stabs_gnu_h): Define.
1143 (symtab_h): Remove $(gdb_obstack_h).
1144
1145 2002-07-30 Jim Blandy <jimb@redhat.com>
1146
1147 Patch from David Carlton <carlton@math.stanford.edu>:
1148 * gdbinit.in: Move the `dir' commands that add GDB's own source
1149 directory to the search path to the end, so that the `gdb' source
1150 directory will be searched first.
1151
1152 2002-07-29 Andrew Cagney <ac131313@redhat.com>
1153
1154 * gdb_obstack.h: New file.
1155 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
1156 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
1157 * objfiles.h: Include "gdb_obstack.h".
1158 * Makefile.in (gdb_obstack_h): Define.
1159 (symtab_h): Add $(gdb_obstack_h).
1160 (objfiles_h): Add $(gdb_obstack_h).
1161
1162 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
1163 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
1164 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
1165 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
1166 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
1167 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
1168 * symfile.c, coffread.c, c-typeprint.c: Ditto.
1169 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
1170
1171 * Makefile.in (bcache.o): Update dependencies.
1172 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
1173 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
1174 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
1175 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
1176 (stabsread.o, symfile.o, symmisc.o): Ditto.
1177 (symtab.o, typeprint.o, macroexp.o): Ditto.
1178 (macrotab.o, mdebugread.o): Ditto.
1179 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
1180 (coff_ecoff_h, aout_aout64_h): Define.
1181 (aout_stabs_gnu_h, libaout_h): Define.
1182
1183 2002-07-29 Andrew Cagney <cagney@redhat.com>
1184
1185 * regcache.c (struct regcache_descr): Rename nr_registers to
1186 nr_cooked_registers. Revise comments describing the structure
1187 member fields.
1188 (init_regcache_descr): Update.
1189 (init_legacy_regcache_descr): Update.
1190 (read_register_gen, write_register_gen): When a cooked register in
1191 the raw register range, directly access the value from the raw
1192 register cache.
1193
1194 2002-07-29 Andrew Cagney <ac131313@redhat.com>
1195
1196 * z8k-tdep.c: Do not include "obstack.h".
1197 * h8300-tdep.c, h8500-tdep.c: Ditto.
1198 * m68hc11-tdep.c, sh-tdep.c: Ditto.
1199 * valprint.c, v850-tdep.c: Ditto.
1200 * d10v-tdep.c, mn10300-tdep.c: Ditto.
1201 * mn10200-tdep.c: Ditto.
1202
1203 * Makefile.in (z8k-tdep.o): Update dependencies.
1204 (m68hc11-tdep.o, valprint.o): Ditto.
1205 (v850-tdep.o, d10v-tdep.o): Ditto.
1206 (mn10300-tdep.o, sparc-tdep.o): Ditto.
1207 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
1208 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
1209 (sh_opc_h, gdb_sim_sh_h): Define.
1210 (elf_sh_h, elf_bfd_h): Define.
1211 (opcode_m68hc11_h): Define.
1212 (OPCODES_SRC, OPCODES_DIR): define.
1213 (OPCODES): Use $(OPCODES_DIR).
1214 (gdb_sim_d10v_h): Rename sim_d10v_h.
1215 (gdb_sim_arm_h): Rename sim_arm_h.
1216
1217 2002-07-26 Kevin Buettner <kevinb@redhat.com>
1218
1219 * utils.c (host_pointer_to_address, address_to_host_pointer):
1220 Change internal_error() message to indicate function responsible
1221 for the error.
1222
1223 2002-07-26 Kevin Buettner <kevinb@redhat.com>
1224
1225 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
1226 calls to local_hex_string_custom().
1227
1228 2002-07-26 Kevin Buettner <kevinb@redhat.com>
1229
1230 * irix5-nat.c: Move IRIX shared library support from here...
1231 * solib-irix.c: ...to here. Revised substantially to work with
1232 generic solib framework.
1233
1234 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
1235 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
1236 * mips-irix-tdep.c: New file.
1237
1238 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
1239 (mips-irix-tdep.o, solib-irix.o): New rules.
1240 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
1241 solib-irix.o.
1242 * config/mips/irix6.mt (TDEPFILES): Likewise.
1243 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
1244
1245 2002-07-26 Kevin Buettner <kevinb@redhat.com>
1246
1247 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
1248 disabled (via ``#if 0'') includes.
1249
1250 2002-07-26 Kevin Buettner <kevinb@redhat.com>
1251
1252 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
1253 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
1254 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
1255 Add support for the fpscr register.
1256 * rs6000-nat.c (regmap, fetch_inferior_registers)
1257 (store_inferior_registers, fetch_core_registers): Likewise.
1258
1259 2002-07-26 Kevin Buettner <kevinb@redhat.com>
1260
1261 * rs6000-nat.c (language.h): Include.
1262 (special_regs): Delete this array.
1263 (regmap): New function.
1264 (fetch_register, store_register): Use regmap() to map gdb
1265 register numbers to ptrace register numbers. Also, use
1266 outputs from regmap() to make decisions regarding type of
1267 ptrace() call to make. In particular, don't compare against
1268 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
1269 (fetch_inferior_registers, store_inferior_registers): Where
1270 possible, obtain register numbers from tdep struct. Don't
1271 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
1272 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
1273 (LAST_UISA_SP_REGNUM): Delete.
1274
1275 2002-07-25 Kevin Buettner <kevinb@redhat.com>
1276
1277 * rs6000-nat.c (ppc-tdep.h): Include.
1278 (fetch_registers, store_register, fetch_core_registers): Don't
1279 access registers[] directly. Instead, use supply_register() or
1280 regcache_collect() as appropriate.
1281 (find_toc_address): Format hex address with local_hex_string().
1282
1283 2002-07-25 Andrew Cagney <ac131313@redhat.com>
1284
1285 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
1286 bfd/elf32-frv.c.
1287
1288 2002-07-24 Tom Tromey <tromey@redhat.com>
1289
1290 * jv-exp.y: Marked all strings with _().
1291 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
1292 internal_error.
1293 (MethodInvocation, CastExpression, parse_number, yyerror,
1294 java_type_from_name, push_expression_name, yylex): Typo fixes.
1295
1296 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
1297
1298 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
1299 (tee_file_flush, tee_file_write, tee_file_fputs)
1300 (tee_file_isatty): New.
1301 * ui-file.h (tee_file_new): Add prototype.
1302
1303 2002-07-24 Aidan Skinner <aidan@velvet.net>
1304
1305 * ada-lang.c: Change k&r style function definitions to prototyped
1306 form.
1307 * ada-typeprint.c: Change k&r style function definitions to prototyped
1308 form.
1309 * ada-valprint.c: Change k&r style function definitions to prototyped
1310 form.
1311
1312 2002-07-24 Andrew Cagney <cagney@redhat.com>
1313
1314 * README: Remove reference to remote-bug.
1315 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
1316 remote-bug.c.
1317 (m88k-nat.o): Delete rule.
1318 (m88k-tdep.o): Delete rule.
1319 (remote-bug.o): Delete rule.
1320 * MAINTAINERS: Mark as obsolete.
1321 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
1322 * m88k-tdep.c: Make file obsolete.
1323 * config/m88k/m88k.mh: Ditto.
1324 * config/m88k/delta88v4.mh: Ditto.
1325 * config/m88k/delta88v4.mt: Ditto.
1326 * config/m88k/delta88.mt: Ditto.
1327 * config/m88k/delta88.mh: Ditto.
1328 * remote-bug.c: Ditto.
1329 * config/m88k/tm-delta88.h: Ditto.
1330 * config/m88k/nm-delta88v4.h: Ditto.
1331 * config/m88k/xm-delta88.h: Ditto.
1332 * config/m88k/xm-dgux.h: Ditto.
1333 * config/m88k/tm-m88k.h: Ditto.
1334 * config/m88k/nm-m88k.h: Ditto.
1335 * config/m88k/tm-delta88v4.h: Ditto.
1336 * m88k-nat.c: Ditto.
1337 * cxux-nat.c: Ditto.
1338 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
1339 and m88*-*-* obsolete.
1340 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
1341 m88*-*-* obsolete.
1342
1343 2002-07-24 Andrew Cagney <cagney@redhat.com>
1344
1345 * findvar.c (extract_unsigned_integer): Make `addr' parameter
1346 constant. Same for local pointer variables.
1347 (extract_signed_integer): Ditto.
1348 * defs.h (extract_unsigned_integer): Update.
1349 (extract_signed_integer): Update.
1350
1351 2002-07-24 Kevin Buettner <kevinb@redhat.com>
1352
1353 * gdbserver/configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
1354 * gdbserver/configure: Regenerate.
1355 * gdbserver/config.in: Regenerate.
1356
1357 2002-07-24 Andrew Cagney <cagney@redhat.com>
1358
1359 * regcache.c (regcache_raw_write): Change buf parameter to a
1360 constant void pointer.
1361 (regcache_raw_read): Change buf parameter to a void pointer.
1362 (legacy_write_register_gen): Change myaddr parameter a constant
1363 void pointer.
1364 (supply_register): Change val parameter to a const void pointer.
1365 * regcache.h (regcache_raw_write): Update declaration.
1366 (regcache_raw_read): Update declaration.
1367 (supply_register): Update declaration.
1368
1369 2002-07-24 Tom Tromey <tromey@redhat.com>
1370
1371 * defs.h (gdb_readline_wrapper): Declare.
1372 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
1373 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
1374 * top.c (gdb_readline_wrapper): New function.
1375 (command_line_input): Use it.
1376
1377 2002-07-24 Andrew Cagney <cagney@redhat.com>
1378
1379 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
1380 regcache_read and regcache_write.
1381 (regcache_raw_read_as_address): Replace regcache_read_as_address.
1382 * regcache.c: Update.
1383 * sh-tdep.c (sh64_push_arguments): Update comment.
1384 (sh_pseudo_register_read): Update.
1385 (sh_pseudo_register_write): Update.
1386 (sh4_register_read): Update.
1387 (sh4_register_write): Update.
1388 (sh64_pseudo_register_read): Update.
1389 (sh64_pseudo_register_write): Update.
1390 (sh64_register_read): Update.
1391 (sh64_register_write): Update.
1392 * i386-tdep.c (i386_extract_return_value): Update.
1393 (i386_extract_struct_value_address): Update.
1394 (i386_extract_return_value): Update.
1395 * blockframe.c (generic_read_register_dummy): Update.
1396 (generic_call_dummy_register_unwind): Update
1397 * infrun.c (write_inferior_status_register): Update.
1398
1399 2002-07-23 Jim Blandy <jimb@redhat.com>
1400
1401 * parser-defs.h (expression_context_pc): Make this extern.
1402 (Thanks to Michael Snyder.)
1403
1404 2002-07-23 Andrew Cagney <ac131313@redhat.com>
1405
1406 GDB 5.2.1 released from 5.2 branch.
1407 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
1408 * README: Update to mention 5.2.1.
1409
1410 2002-07-23 Mark Salter <msalter@redhat.com>
1411
1412 * remote.c (remote_read_bytes): Fix check for error.
1413
1414 2002-07-22 Kevin Buettner <kevinb@redhat.com>
1415
1416 * aix-thread.c (language.h): Include.
1417 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
1418 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
1419 Print newlines at end of debug messages.
1420 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
1421 (pdc_write_data): Use local_hex_string() instead of %llx formats.
1422
1423 2002-07-22 Kevin Buettner <kevinb@redhat.com>
1424
1425 * aix-thread.c (ppc-tdep.h): Include.
1426 (special_register_p): New function.
1427 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
1428 (store_regs_user_thread): Use register number information from
1429 gdbarch_tdep struct instead of hardcoded offsets relative to
1430 FIRST_UISA_SP_REGNUM.
1431 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
1432 special_register_p() instead of using FPLAST_REGNUM and
1433 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
1434 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
1435 will be MQ's register number.
1436
1437 2002-07-22 Michael Snyder <msnyder@redhat.com>
1438
1439 * aix-thread.c (ops): Rename to aix_thread_ops.
1440 (base_ops): Rename to base_target.
1441 (ops_attach): Rename to aix_thread_attach.
1442 (ops_detach): Rename to aix_thread_detach.
1443 (ops_resume): Rename to aix_thread_detach.
1444 (ops_wait): Rename to aix_thread_wait.
1445 (ops_kill): Rename to aix_thread_kill.
1446 (init_ops): Rename to init_aix_thread_ops.
1447 (ops_fetch_register): Rename to aix_thread_fetch_register.
1448 (ops_store_register): Rename to aix_thread_store_register.
1449 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
1450 (ops_thread_alive): Rename to aix_thread_thread_alive.
1451 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
1452 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
1453 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
1454 (fetch_regs_lib): Rename to fetch_regs_user_thread.
1455 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
1456 (store_regs_lib): Rename to store_regs_user_thread.
1457 (store_regs_kern): Rename to store_regs_kernel_thread.
1458
1459 2002-07-22 Michael Snyder <msnyder@redhat.com>
1460
1461 * aix-thread.c (ops_prepare_to_store): Eliminate.
1462 (init_ops): Don't initialize ops.prepare_to_store.
1463 (store_regs_kern): Pre-fetch register buffers from child,
1464 because some registers may not be in the cache. Copy
1465 regs from register cache only if they are cached.
1466 (store_regs_lib): Copy regs from register cache only
1467 if they are cached.
1468 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
1469 fill_gprs64): Ditto.
1470
1471 2002-07-22 Kevin Buettner <kevinb@redhat.com>
1472
1473 * aix-thread.c (gdb_assert.h): Include.
1474 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
1475 register sizes (from register cache) match size of buffer holding
1476 register data.
1477 (fill_sprs32): Change parameter types to match those in the ptrace()
1478 buffer.
1479 (store_regs_lib): Likewise, but for 32-bit temporary variables.
1480 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
1481
1482 2002-07-22 Michael Snyder <msnyder@redhat.com>
1483
1484 * aix-thread.c (supply_sprs64): Cosmetic change.
1485 (supply_sprs32): Cosmetic change.
1486 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
1487 (fill_sprs64): Use regcache_collect instead of read_register.
1488 (store_regs_lib): Use regcache_collect instead of
1489 read_register. Use fill_sprs32 instead of fill_sprs64,
1490 if debugging a 32-bit architecture.
1491 (store_regs_kern): Use fill_gprs64 etc. to pull the values
1492 out of the register cache, instead of passing a pointer into
1493 the register cache directly to ptrace. Use regcache_collect
1494 insteaad of read_register.
1495 (ops_prepare_to_store): Use target_read_registers instead
1496 of read_register_bytes.
1497
1498 2002-07-20 Aidan Skinner <aidan@velvet.net>
1499
1500 * MAINTAINERS: Add self under write after approval.
1501
1502 2002-07-20 Aidan Skinner <aidan@velvet.net>
1503
1504 * ada-tasks.c: Change k&r style function definitions to prototyped
1505 form.
1506
1507 2002-07-19 Andrew Cagney <ac131313@redhat.com>
1508
1509 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
1510 * x86-64-tdep.c: Include "objfiles.h".
1511 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
1512 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
1513
1514 2002-07-17 Michal Ludvig <michal@suse.cz>
1515
1516 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
1517 (update_context): Initialise cfa variable.
1518
1519 2002-07-17 Michael Snyder <msnyder@redhat.com>
1520
1521 * aix-thread.c: Shorten some long lines.
1522 Bring comments into line with code spec.
1523
1524 2002-07-18 Joel Brobecker <brobecker@gnat.com>
1525
1526 * infrun.c: Re-indent using gdb_indent.sh.
1527
1528 2002-07-18 Joel Brobecker <brobecker@gnat.com>
1529
1530 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
1531 Leave the indentation temporarily untouched, to minimize the diffs.
1532
1533 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
1534
1535 * stabsread.c: Make os9k sections of the code obsolete,
1536 for real this time.
1537 * stabsread.h: Make os9k sections of the code obsolete.
1538
1539 2002-07-18 Michal Ludvig <mludvig@suse.cz>
1540
1541 * linux-low.c (regsets_store_inferior_registers): Add free()
1542 at the end of a loop to prevent memory leak.
1543 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
1544 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
1545 * config/sparc/tm-sp64linux.h: Make the rest of #endif
1546 line a comment.
1547 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
1548
1549 2002-07-17 Jim Blandy <jimb@redhat.com>
1550
1551 * macrocmd.c (info_macro_command): Remove newline from error
1552 message.
1553
1554 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
1555
1556 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
1557 (sh_gdbarch_init): Use it for sh-dsp.
1558
1559 2002-07-16 Kevin Buettner <kevinb@redhat.com>
1560
1561 * dwarf2read.c (read_initial_length): Handle older, non-standard,
1562 64-bit DWARF2 format.
1563
1564 2002-07-16 Joel Brobecker <brobecker@gnat.com>
1565
1566 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
1567 <sys/proc.h> when not available.
1568
1569 2002-07-16 Andrew Cagney <ac131313@redhat.com>
1570
1571 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
1572 * stabsread.c: Make os9k sections of the code obsolete.
1573 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
1574 * config/i386/i386os9k.mt: Make file obsolete.
1575 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
1576 (COMMON_OBS): Remove os9kread.o
1577 (SFILES): Remove os9kread.c.
1578 (os9kread.o, remote-os9k.o): Make target obsolete.
1579 * remote-os9k.c: Make file obsolete.
1580 * os9kread.c: Make file obsolete.
1581 * Makefile.in
1582
1583 2002-07-16 Andrew Cagney <ac131313@redhat.com>
1584
1585 * NEWS: Mention that the FR30 has been made obsolete.
1586 * fr30-tdep.c: Make file obsolete.
1587 * config/fr30/tm-fr30.h: Ditto.
1588 * config/fr30/fr30.mt: Ditto.
1589 * configure.tgt: Make fr30-*-elf obsolete.
1590 * MAINTAINERS: Make fr30-elf obsolete.
1591
1592 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
1593
1594 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
1595 found is not inside a section.
1596
1597 2002-07-15 Kevin Buettner <kevinb@redhat.com>
1598
1599 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
1600 strerror().
1601 (pdc_realloc): Use xrealloc() instead of realloc().
1602
1603 2002-07-15 Kevin Buettner <kevinb@redhat.com>
1604
1605 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
1606 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
1607 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
1608 macros.
1609
1610 2002-07-15 Kevin Buettner <kevinb@redhat.com>
1611
1612 * aix-thread.c (ptrace_check): Eliminate goto.
1613 (sync_threadlists): Eliminate gotos. Also, fix array overrun
1614 problem.
1615
1616 2002-07-15 Kevin Buettner <kevinb@redhat.com>
1617
1618 * aix-thread.c (gdbcmd.h): Include.
1619 (DEBUG, DBG, DBG2, dbg): Eliminate.
1620 (debug_aix_thread): New static global.
1621 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
1622 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
1623 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
1624 invocations to DBG and DBG2 macros to test against
1625 ``debug_aix_thread'' and call fprintf_unfiltered().
1626 (_initialize_aix_thread): Add new command "set debug aix-thread".
1627
1628 2002-07-15 Andrew Cagney <ac131313@redhat.com>
1629
1630 From Gerhard Tonn <TON@de.ibm.com>:
1631 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
1632 instead of supply_register.
1633
1634 2002-07-15 Andrew Cagney <ac131313@redhat.com>
1635
1636 * dwarf2cfi.c: Include "gdb_assert.h".
1637 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
1638 non-NULL.
1639 (update_context): Do not use __func__. Add missing ``break''.
1640 (update_context): Do not use __func__.
1641
1642 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
1643
1644 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
1645 and its setting. Set gdbarch instruction printing functions
1646 directly. For non-rs6000 case use new function
1647 gdb_print_insn_powerpc.
1648 (gdb_print_insn_powerpc): New function.
1649
1650 2002-07-13 Andrew Cagney <ac131313@redhat.com>
1651
1652 * NEWS: Mention that the d30v has been marked obsolete.
1653 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
1654 * configure.tgt: Mark d30v-*-* as obsolete.
1655 * d30v-tdep.c: Mark file as obsolete.
1656 * config/d30v/d30v.mt: Ditto.
1657 * config/d30v/tm-d30v.h: Ditto.
1658
1659 2002-07-13 Aidan Skinner <aidan@velvet.net>
1660
1661 * ada-tasks.c (add_task_entry): replace calls to
1662 malloc() with xmalloc
1663 * ada-tasks.c (init_task_list): replace calls to free with xfree()
1664
1665 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
1666 ada_finish_decode_line_1, all_sals_for_line
1667 ada_breakpoint_rewrite): replace calls to free() with xfree()
1668
1669 2002-07-12 Kevin Buettner <kevinb@redhat.com>
1670
1671 From Nicholas Duffek (with minor changes by Martin Hunt,
1672 Louis Hamilton, and Kevin Buettner):
1673 * aix-thread.c: New file.
1674
1675 2002-07-12 Petr Sorfa <petrs@caldera.com>
1676
1677 * dwarf2read.c (dwarf2_invalid_attrib_class): New
1678 complaint for invalid attribute class or form.
1679 (read_func_scope): DW_AT_frame_base
1680 better handling of DW_AT_block*.
1681 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
1682 better handling of DW_AT_block*.
1683 (read_common_block): DW_AT_location
1684 better handling of DW_AT_block*.
1685 (read_partial_die): DW_AT_location better handling
1686 of DW_AT_block*.
1687 (new_symbol): DW_AT_external better handling of
1688 DW_AT_block*. Proper initialization of variable
1689 "addr".
1690 (attr_form_is_block): New function that returns true
1691 if the attribute's form is of DW_FORM_block*.
1692
1693 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
1694
1695 * valops.c (find_method_list): Remove comment about
1696 removed STATIC_MEMFUNCP argument.
1697 (value_find_oload_method_list): Likewise.
1698
1699 2002-07-12 Kevin Buettner <kevinb@redhat.com>
1700
1701 From Nicholas Duffek:
1702 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
1703 target_new_objfile_hook.
1704
1705 2002-07-12 Kevin Buettner <kevinb@redhat.com>
1706
1707 From Nicholas Duffek:
1708 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
1709 csect.
1710
1711 2002-07-12 Andrew Cagney <cagney@redhat.com>
1712
1713 * MAINTAINERS: Mention --enable-sim-build-warnings.
1714 (m68hc11-elf): Disable sim build warnings.
1715 (m32r-elf): Mark as broken obsolete candidate.
1716 (x86_64-linux-gnu): Mark as buildable with -Werror.
1717 (arm-elf): Change -w to ``,'' which enables warnings but not
1718 -Werror.
1719
1720 2002-07-12 Andrew Cagney <ac131313@redhat.com>
1721
1722 * bcache.h: Update copyright.
1723 (struct bstring, struct bcache): Move definition to "bcache.c".
1724 Replaced by opaque declaration.
1725 (bcache_xfree): Replace free_bcache.
1726 (bcache_xmalloc, bcache_memory_used): Declare.
1727
1728 * bcache.c: Update copyright.
1729 (struct bstring, struct bcache): Moved to here from "bcache.h".
1730 Update comments.
1731 (bcache_xmalloc, bcache_memory_used): New functions.
1732 (bcache_xfree): Replace function free_bcache.
1733
1734 * Makefile.in (objfiles.o): Add $(bcache_h).
1735 (objfiles_h): Remove $(bcache_h).
1736 (symfile.o): Add $(bcache_h).
1737
1738 * symmisc.c: Update copyright.
1739 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
1740 (print_objfile_statistics): Use bcache_memory_used.
1741
1742 * symfile.c: Include "bcache.h".
1743 (reread_symbols): Use bcache_xfree.
1744 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
1745 (add_psymbol_to_list): Pass psymbol_cache by value.
1746 (add_psymbol_with_dem_name_to_list): Ditto.
1747
1748 * objfiles.h: Update copyright.
1749 (struct bcache): Declare opaque. Do not include "bcache.h".
1750 (struct objfile): Change psymbol_cache and macro_cache to ``struct
1751 bcache'' pointers.
1752 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
1753
1754 * objfiles.c: Include "bcache.h". Update copyright.
1755 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
1756 macro_cache.
1757 (free_objfile): Use bcache_xfree.
1758
1759 2002-07-11 Grace Sainsbury <graces@redhat.com>
1760
1761 * monitor.c (monitor_fetch_register): Make name a constant.
1762 (monitor_store_register): Same.
1763
1764 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
1765
1766 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
1767 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
1768 (finish_block) For non-function blocks, hash the symbol table. For
1769 function blocks, mark the symbol table as unhashed.
1770 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
1771 (msymbol_hash_iw): Likewise.
1772 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
1773 value.
1774 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
1775 (lookup_minimal_symbol): Likewise for both.
1776 * symtab.h (struct block): Add `hashtable' flag. Comment the
1777 hashtable.
1778 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
1779 (ALL_BLOCK_SYMBOLS): Update.
1780 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
1781 (struct symbol): Add `hash_next' pointer.
1782 * symtab.c (lookup_block_symbol): Search using the hash table when
1783 possible.
1784 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
1785 (search_symbols, find_addr_symbol): Likewise.
1786
1787 * dstread.c (process_dst_block): Clear hashtable bit for new block.
1788 (read_dst_symtab): Likewise.
1789 * jv-lang.c (get_java_class_symtab): Likewise.
1790 * mdebugread.c: Include "gdb_assert.h".
1791 (shrink_block): Assert that the block being modified is not hashed.
1792 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
1793 * symmisc.c (free_symtab_block): Walk the hash table when freeing
1794 symbols.
1795 (dump_symtab): Recognize hashed blocks.
1796 * printcmd.c (print_frame_args): Assert that function blocks do not
1797 have hashed symbol tables.
1798 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
1799 (fill_in_ada_prototype, debug_print_block): Likewise.
1800 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
1801
1802 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
1803
1804 * stack.c (print_frame): Use result of frame_address_in_block()
1805 instead of fi->pc when evaluating symbols.
1806 (backtrace_command_1): Ditto.
1807
1808 2002-07-11 Andrew Cagney <cagney@redhat.com>
1809
1810 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
1811 Make static.
1812
1813 * arm-tdep.c (arm_register_name): Make return type constant.
1814
1815 2002-07-10 Andrew Cagney <ac131313@redhat.com>
1816
1817 * win32-nat.c (has_detach_ability): Convert to strict ISO C
1818 prototype.
1819 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
1820 * s390-tdep.c (s390_fp_regnum): Ditto.
1821 (s390_read_fp): Ditto.
1822 (s390_pop_frame): Ditto.
1823 (_initialize_s390_tdep): Ditto.
1824 * remote.c (get_remote_state): Ditto.
1825 * procfs.c (mappingflags): Ditto.
1826 * memattr.c (_initialize_mem): Ditto.
1827 * mcore-tdep.c (mcore_pop_frame): Ditto.
1828 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
1829 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
1830 * language.c (set_case_str): Ditto.
1831 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
1832 * frv-tdep.c (new_variant): Ditto.
1833 (frv_stopped_data_address): Ditto.
1834 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
1835 (context_alloc): Ditto.
1836 (frame_state_alloc): Ditto.
1837 (unwind_tmp_obstack_init): Ditto.
1838 (unwind_tmp_obstack_free): Ditto.
1839 (cfi_read_fp): Ditto.
1840 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
1841 (cris_pop_frame): Ditto.
1842 * c-lang.c (scanning_macro_expansion): Ditto.
1843 (finished_macro_expansion): Ditto.
1844 (c_preprocess_and_parse): Ditto.
1845 * gdbarch.sh: Ditto.
1846 * gdbarch.h, gdbarch.c: Regenerate.
1847 * config/mn10200/tm-mn10200.h: Adjust indentation.
1848 * target.c: Adjust indentation.
1849 * symtab.h: Adjust indentation.
1850 * stabsread.h: Adjust indentation.
1851 * remote-es.c: Adjust indentation.
1852 * os9kread.c: Adjust indentation.
1853
1854 2002-07-10 Andrew Cagney <ac131313@redhat.com>
1855
1856 * wince.c (_initialize_wince): Rename _initialize_inftarg.
1857 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
1858
1859 2002-07-10 Grace Sainsbury <graces@redhat.com>
1860
1861 * NEWS: Mention m68k, mcore multi-arching.
1862 * MAINTAINERS: Change status of m68k, mcore to reflect
1863 multi-arching.
1864
1865 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
1866
1867 * valops.c (find_overload_match): Free oload_syms.
1868
1869 2002-07-09 Joel Brobecker <brobecker@gnat.com>
1870
1871 Define HAVE_SYS_PROC_H if sys/proc.h exists
1872 * configure.in: Add check for sys/proc.h
1873 * config.in: Regenerate.
1874 * configure: Regenerate.
1875
1876 2002-07-09 Grace Sainsbury <graces@redhat.com>
1877
1878 * config/m68k/tm-m68k.h: Remove macros wrapped in
1879 #if !GDB_MULTI_ARCH.
1880
1881 2002-07-09 David O'Brien <obrien@FreeBSD.org>
1882
1883 * gdbserver/gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
1884 (perror_with_name, remote_close, remote_open, expect, play): Static.
1885
1886 2002-07-08 Andrew Cagney <ac131313@redhat.com>
1887
1888 * config.in, configure: Regenerate.
1889
1890 2002-07-08 Mark Kettenis <kettenis@gnu.org>
1891
1892 * dwarf2cfi.c: Include "gcore.h".
1893 (execute_stack_op): Fix implementation of the
1894 DW_OP_deref and DW_OP_deref_size operators by letting do their
1895 lookup in the target.
1896
1897 2002-07-07 Mark Kettenis <kettenis@gnu.org>
1898
1899 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
1900 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
1901 tdep->sc_sp_offset.
1902
1903 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
1904
1905 Fix PR gdb/595, gdb/602
1906 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
1907 Don't call value_cast, just read the vtable pointer; update comments
1908 to match.
1909
1910 2002-07-05 Grace Sainsbury <graces@redhat.com>
1911
1912 * config/mcore/tm-mcore.h: Remove file.
1913 * config/mcore/mcore.mt: Remove definition of TM_FILE
1914 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
1915
1916 2002-07-05 Mark Kettenis <kettenis@gnu.org>
1917
1918 * i386bsd-tdep.c: Include "gdb_string.h".
1919
1920 2002-07-04 Grace Sainsbury <graces@redhat.com>
1921
1922 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
1923 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
1924 mcore-tdep.
1925 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
1926 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
1927 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
1928 (RETVAL_REGNUM): Move macros from tm-mcore.h
1929 (mcore_reg_struct_has_addr): New function.
1930 (mcore_gdbarch_init): Added initializations for the macros removed
1931 from tm-mcore.h.
1932
1933 2002-07-04 Mark Kettenis <kettenis@gnu.org>
1934
1935 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
1936 traditonal string branding within the ELF header.
1937
1938 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
1939
1940 * symtab.c (remove_params): New function.
1941 (make_symbol_overload_list): Use it instead of cplus_demangle.
1942 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
1943
1944 2002-07-04 Mark Kettenis <kettenis@gnu.org>
1945
1946 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
1947
1948 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
1949 New variables.
1950 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
1951 and tdep->sigtramp_end.
1952 * i386obsd-nat.c: New file.
1953 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
1954
1955 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
1956 Don't call get_current_frame().
1957
1958 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
1959
1960 * i386-nat.c (child_post_startup_inferior): New function
1961 calling i386_cleanup_dregs if
1962 I386_USE_GENERIC_WATCHPOINTS is defined.
1963 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
1964 conditional to acknowledge that i386-nat.c has its
1965 own child_post_startup_inferior function.
1966
1967 2002-07-04 Mark Kettenis <kettenis@gnu.org>
1968
1969 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
1970 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
1971 instead of MAX_REGISTER_RAW_SIZE.
1972 (i386_extract_return_value, i386_extract_struct_value_address):
1973 Convert to use regcache.
1974 (i386_gdbarch_init): Set max_register_raw_size and
1975 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
1976 Set extract_return_value and extract_struct_value_address instead
1977 of their deprecated variants.
1978
1979 Convert i386 target to generic dummy frames.
1980 * i386-tdep.c: Include "symfile.h".
1981 (i386_frameless_signal_p): Consider a function to be frameless if
1982 the pc points at the first instruction of the function.
1983 (i386_frame_chain): Handle (generic) call dummies.
1984 (i386_frame_saved_pc): Likewise.
1985 (i386_frame_init_saved_regs): Remove code dealing with call
1986 dummies on the stack.
1987 (i386_push_dummy_frame): Removed.
1988 (i386_call_dummy_words): Removed.
1989 (i386_fix_call_dummy): Removed.
1990 (i386_push_return_address): New function.
1991 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
1992 parameter, and don't call get_current_frame.
1993 (i386_pop_frame): New function.
1994 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
1995 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
1996 entry_point_address, set call_dummy_breakpoint_offset to 0, set
1997 call_dummy_length to 0, set call_dummy_words to NULL, set
1998 sizeof_call_dummy_words to 0, set fix_call_dummy to
1999 generic_fix_call_dummy, set pc_in_call_dummy to
2000 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
2001 generic_push_dummy_frame, set push_return_address to
2002 i386_push_return_address and set frame_chain_valid to
2003 generic_file_frame_chain_valid.
2004
2005 2002-07-04 Michal Ludvig <mludvig@suse.cz>
2006
2007 * gdbserver/linux-x86-64-low.c (x86_64_regmap): Make it an array of
2008 byte offsets instead of an array of indexes.
2009 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
2010
2011 2002-07-03 Andrew Cagney <ac131313@redhat.com>
2012
2013 * gdbarch.sh (struct regcache): Add opaque declaration.
2014 (EXTRACT_RETURN_VALUE): New architecture method.
2015 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
2016 * gdbarch.h, gdbarch.c: Regenerate.
2017 * arch-utils.c (legacy_extract_return_value): New function.
2018 * arch-utils.h (legacy_extract_return_value): Declare.
2019 * values.c (value_being_returned): Re-enable code handling
2020 EXTRACT_STRUCT_VALUE_ADDRESS. Move
2021 deprecated_grub_regcache_for_registers call to block handling
2022 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
2023 (EXTRACT_RETURN_VALUE): Do not define.
2024
2025 2002-07-03 Grace Sainsbury <graces@redhat.com>
2026
2027 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
2028 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
2029 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
2030 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
2031 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
2032 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
2033 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
2034 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
2035 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
2036 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
2037 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
2038 argument so the function fits the prototype in the architecture
2039 vector.
2040 (mcore_pop_frame): Remove argument so the function fits the
2041 prototype. Use get_current_frame instead of the argument.
2042 (mcore_push_arguments): Change type of struct_return so the
2043 function can be used in the architecture vector.
2044 (mcore_store_struct_return): Add.
2045 (mcore_frame_init_saved_regs): Add.
2046 (mcore_gdbarch_init): Add function calls to replace the macros
2047 removed from tm-mcore.h
2048
2049 2002-07-03 Andrew Cagney <ac131313@redhat.com>
2050
2051 * infcmd.c (print_return_value): Remove compatibility code calling
2052 deprecated_grub_regcache_for_registers.
2053
2054 * values.c: Include "regcache.h".
2055 (value_being_returned): Update. Use
2056 deprecated_grub_regcache_for_registers to extract the register
2057 buffer address.
2058 * value.h (value_being_returned): Change ``retbuf'' parameter to a
2059 ``struct regcache''.
2060 * Makefile.in (values.o): Add dependency on $(regcache_h).
2061
2062 * inferior.h (run_stack_dummy): Change type of second parameter to
2063 a ``struct regcache''.
2064 * valops.c (hand_function_call): Change type of retbuf to ``struct
2065 regcache''. Allocate using regcache_xmalloc, clean using
2066 make_cleanup_regcache_xfree.
2067 * infcmd.c (run_stack_dummy): Update. Use
2068 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
2069
2070 * regcache.c (do_regcache_xfree): New function.
2071 (make_cleanup_regcache_xfree): New function.
2072 * regcache.h (make_cleanup_regcache_xfree): Declare.
2073
2074 2002-07-03 Martin M. Hunt <hunt@redhat.com>
2075
2076 * event-top.c (command_line_handler): Don't read past
2077 beginning of buffer.
2078
2079 2002-07-03 Martin M. Hunt <hunt@redhat.com>
2080
2081 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
2082 struct frame_id.
2083 (varobj_create): Store frame_id for root.
2084 (varobj_gen_name): Use xasprintf.
2085 (varobj_update): Save and restore frame using get_frame_id() and
2086 frame_find_by_id().
2087 (create_child): Use xasprintf.
2088 (new_root_variable): Initialize frame_id.
2089 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
2090 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
2091 to prevent memory leak.
2092
2093 2002-07-03 Andrew Cagney <ac131313@redhat.com>
2094
2095 * valops.c (hand_function_call): Move declaration of retbuf to
2096 start of function, allocate using malloc, add a cleanup but before
2097 the inf_status cleanup, cleanup the buffer. Rename local variable
2098 old_chain to inf_status_cleanup.
2099
2100 2002-07-03 Martin M. Hunt <hunt@redhat.com>
2101
2102 * top.c (execute_command): Use cmd_func() and cmd_func_p().
2103
2104 * cli/cli-decode.c (cmd_func_p): New function.
2105 (cmd_func): New function.
2106
2107 * command.h: Add cmd_func() and cmd_func_p().
2108
2109 2002-07-03 Grace Sainsbury <graces@redhat.com>
2110
2111 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
2112 (REGISTER_SIZE): Remove.
2113 (MAX_REGISTER_RAW_SIZE): Remove.
2114 (REGISTER_VIRTUAL_TYPE): Remove.
2115 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
2116 (REGISTER_NAME): Remove.
2117 (USE_GENERIC_DUMMY_FRAMES): Remove.
2118 (CALL_DUMMY): Remove.
2119 (CALL_DUMMY_START_OFFSET): Remove.
2120 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
2121 (CALL_DUMMY_LOCATION): Remove.
2122 (FIX_CALL_DUMMY): Remove.
2123 (CALL_DUMMY_ADDRESS): Remove.
2124 (SIZEOF_CALL_DUMMY_WORDS): Remove.
2125 (SAVE_DUMMY_FRAME_TOS): Remove.
2126 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
2127 (mcore_register_virtual_type): New function.
2128 (mcore_register_byte): New function.
2129 (mcore_register_size): New function.
2130 (mcore_register_name): New function.
2131 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
2132 macros removed from tm-mcore.h.
2133 (mcore_dump_tdep): Add.
2134 (_initialize_mcore_tdep): Add gdbarch_register call.
2135
2136 2002-07-03 Mark Kettenis <kettenis@gnu.org>
2137
2138 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
2139 frameless_look_for_prologue, such that we actually call this
2140 function.
2141
2142 2002-07-02 Joel Brobecker <brobecker@gnat.com>
2143
2144 * frame.h (frame_address_in_block): New function.
2145
2146 * blockframe.c (frame_address_in_block): New function extracted
2147 from get_frame_block().
2148 (get_frame_block): Use frame_address_in_block().
2149 (block_innermost_frame): Use frame_address_in_block() to match
2150 the frame pc address against the block boundaries rather than
2151 the frame pc directly. This prevents a failure when a frame pc
2152 is actually a return-address pointing immediately after the end
2153 of the given block.
2154
2155 2002-07-02 Grace Sainsbury <graces@redhat.com>
2156
2157 * MAINTAINERS: Add self under write after approval.
2158
2159 2002-07-02 Grace Sainsbury <graces@redhat.com>
2160
2161 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
2162 used in architecture vector. The default is
2163 m68k_local_breakpoint_from_pc.
2164 (m68k_local_breakpoint_from_pc): Add.
2165 (enum): Add register numbers from tm-m68k.h.
2166 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
2167 vector.
2168 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
2169 GDB_MULTI_ARCH_PARTIAL.
2170 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
2171 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
2172 m68k-tdep.c.
2173 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
2174 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
2175 to enum in m68k-tdep.c
2176
2177 2002-07-02 Joel Brobecker <brobecker@gnat.com>
2178
2179 * solib-osf.c (open_map): Compute the list of shared libraries
2180 loaded by the inferior, rather than the list of libraries loaded
2181 by GDB itself. Otherwise, GDB ends up reading the symbols from
2182 the wrong shared libraries...
2183
2184 2002-07-02 Mark Kettenis <kettenis@gnu.org>
2185
2186 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
2187 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
2188 macros.
2189 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
2190 Remove functions.
2191 (FRAMELESS_SIGNAL): Remove function.
2192 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
2193 i386_linux_saved_pc_after_call): Removed.
2194 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
2195 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
2196 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
2197
2198 * i386-tdep.c (i386_frameless_signal_p): New function.
2199 (i386_frame_chain): Deal with frameless signals.
2200 (i386_sigtramp_saved_sp): New function.
2201 (i386_frame_saved_pc): Deal with frameless signals.
2202 (i386_saved_pc_after_call): Make sure the correct value is
2203 returned just after entry into a sigtramp.
2204 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
2205 i386fbsd4_sc_sp_offset): New variables.
2206 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
2207 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
2208 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
2209 similiar to what we already did for sc_pc_offset.
2210 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
2211 tdep->sc_sp_offset.
2212
2213 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
2214
2215 2002-07-02 Michal Ludvig <mludvig@suse.cz>
2216
2217 * config/i386/tm-x86-64linux.h: New.
2218 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
2219 definitions.
2220 * config/i386/nm-x86-64.h: Rename to ...
2221 * config/i386/nm-x86-64linux.h: ... this one.
2222 * config/i386/x86-64linux.mh: Reflect the above change.
2223
2224 2002-07-01 Mark Kettenis <kettenis@gnu.org>
2225
2226 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
2227 with sigcontext_addr. Add sc_sp_offset.
2228 (i386bsd_sigtramp_saved_pc): Remove prototype.
2229 (i386bsd_sicontext_addr): Add prototype.
2230 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
2231 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
2232 (i386_svr4_sigtramp_saved_pc): Removed.
2233 (i386_svr4_sigcontext_addr): New function.
2234 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
2235 Initialize tdep->sigcontext_addr instead. Initialize
2236 tdep->sc_pc_offset and tdep->sc_sp_offset.
2237 (i386_gdbarch_init): Likewise.
2238 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
2239 any more.
2240 (i386bsd_sigtramp_saved_pc): Remove function.
2241 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
2242 Initialize tdep->sigcontext_addr instead. Initialize
2243 tdep->sc_pc_offset.
2244 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
2245 of tdep->sigtramp_saved_pc.
2246 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
2247 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
2248 instead.
2249
2250 * i386-tdep.c (i386_frameless_function_invocation,
2251 i386_frame_num_args, i386_frame_init_saved_regs,
2252 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
2253 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
2254 i386_extract_return_value, i386_store_return_value,
2255 i386_extract_struct_value_address, i386_register_virtual_type,
2256 i386_register_convertible, i386_register_convert_to_virtual,
2257 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
2258 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
2259 static.
2260
2261 2002-07-01 Mark Kettenis <kettenis@gnu.org>
2262
2263 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
2264
2265 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
2266 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
2267 this macro. Include "value.h".
2268
2269 2002-06-30 Aidan Skinner <aidan@velvet.net>
2270
2271 * ada-exp.tab.c: remove as it's a generated file
2272 * ada-lex.c: remove as it's a generated file
2273
2274 2002-06-30 Mark Kettenis <kettenis@gnu.org>
2275
2276 * config/i386/tm-i386.h (struct frame_info, struct
2277 frame_saved_regs, struct value, struct type): Remove forward
2278 declarations.
2279
2280 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
2281 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
2282 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
2283 (FILL_FPXREGSET): Define.
2284
2285 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
2286
2287 * configure.tgt (i[3456]86-*-openbsd*): Fold into
2288 i[3456]86-*-netbsd* case.
2289 * config/i386/tm-obsd.h: Removed.
2290 * config/i386/obsd.mt: Removed.
2291 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
2292 core-aout.o.
2293 (MH_CFLAGS): Add -DYYDEBUG=0.
2294
2295 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
2296 i386nbsd_sc_pc_offset on OpenBSD too.
2297
2298 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
2299 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
2300 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
2301 define.
2302 * i386bsd-tdep.c: Include "arch-utils.h".
2303 (i386bsd_aout_in_solib_call_trampoline): New function.
2304 (i386bsd_init_abi): Set in_solib_call_trampoline to
2305 i386bsd_aout_in_solib_call_trampoline.
2306 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
2307 in_solib_call_trampoline to generic_in_solib_call_trampoline.
2308
2309 2002-06-28 Andrew Cagney <ac131313@redhat.com>
2310
2311 * macrotab.h: Do not include "obstack.h" or "bcache.h".
2312 (struct obstack, struct bcache): Add opaque declarations.
2313 * Makefile.in (macrotab_h): Update
2314
2315 2002-06-28 Andrew Cagney <ac131313@redhat.com>
2316
2317 * blockframe.c (generic_find_dummy_frame): Change return type to
2318 ``struct regcache''.
2319 (struct dummy_frame): Replace field ``registers'' with regcache, a
2320 struct regcache object.
2321 (generic_find_dummy_frame): Update.
2322 (generic_push_dummy_frame): Update. Use regcache_xfree,
2323 regcache_xmalloc and regcache_cpy.
2324 (generic_pop_dummy_frame): Update. Use regcache_cpy and
2325 regcache_xfree.
2326 (deprecated_generic_find_dummy_frame): Update.
2327 (generic_read_register_dummy): Update. Use
2328 regcache_read_as_address.
2329 (generic_call_dummy_register_unwind): Update. Use regcache_read.
2330 (generic_get_saved_register): Update. Use regcache_read.
2331
2332 2002-06-28 Andrew Cagney <ac131313@redhat.com>
2333
2334 * Makefile.in (objfiles_h): Add $(bcache_h).
2335 * objfiles.h: Include "bcache.h".
2336
2337 * Makefile.in (symtab_h): Remove $(bcache_h).
2338 * symtab.h: Do not include "bcache.h".
2339
2340 2002-06-28 Andrew Cagney <ac131313@redhat.com>
2341
2342 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
2343 generic_func_frame_chain_valid.
2344
2345 2002-06-28 David O'Brien <obrien@FreeBSD.org>
2346
2347 * config/i386/nm-fbsd.h: Include <sys/param.h>.
2348 * config/i386/tm-fbsd.h: Likewise.
2349
2350 2002-06-28 Andrew Cagney <ac131313@redhat.com>
2351
2352 * rs6000-tdep.c (rs6000_gdbarch_init): Use
2353 generic_unwind_get_saved_register.
2354
2355 2002-06-27 Andrew Cagney <ac131313@redhat.com>
2356
2357 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
2358 * regcache.c (supply_register): Add missing argument to
2359 register_buffer call.
2360
2361 2002-06-27 Andrew Cagney <ac131313@redhat.com>
2362
2363 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
2364 Solaris /bin/grep does not not like it. From Peter Schauer.
2365
2366 2002-06-26 Tom Tromey <tromey@redhat.com>
2367
2368 * command.h (add_setshow_cmd): Declare.
2369 (add_setshow_cmd_full): Declare.
2370 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
2371 returns void. Use add_setshow_cmd_full.
2372 (add_setshow_cmd_full): New function.
2373 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
2374 (add_setshow_boolean_cmd): Likewise.
2375
2376 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
2377
2378 * config/vax/tm-vax.h: Protect from multiple inclusion.
2379 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
2380 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
2381 * config/vax/tm-vaxbsd.h: ...here. New file.
2382 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
2383
2384 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
2385
2386 * config/vax/tm-vax.h (BREAKPOINT): Remove.
2387 (BELIEVE_PCC_PROMOTION): Remove.
2388 (AP_REGNUM): Move to...
2389 * config/vax/nm-vax.h: ...here.
2390 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
2391 (vax_breakpoint_from_pc): New function.
2392 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
2393 and gdbarch_believe_pcc_promotion.
2394
2395 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
2396
2397 * Makefile.in (vax_tdep_h): Define.
2398 (vax-tdep.o): Use $(vax_tdep_h).
2399 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
2400 (vax_dump_tdep): New function.
2401 (_initialize_vax_tdep): Register vax_dump_tdep.
2402 * vax-tdep.h: Include osabi.h.
2403 (struct gdbarch_tdep): New.
2404
2405 2002-06-26 Andrew Cagney <cagney@redhat.com>
2406
2407 * frame.h (deprecated_generic_find_dummy_frame): Rename
2408 generic_find_dummy_frame.
2409 * blockframe.c (generic_find_dummy_frame): Make static.
2410 (deprecated_generic_find_dummy_frame): New function.
2411 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
2412 generic_find_dummy_frame with deprecated_find_dummy_frame.
2413 (sh64_nofp_frame_init_saved_regs): Ditto.
2414 (sh_fp_frame_init_saved_regs): Ditto.
2415 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
2416 (s390_frame_chain): Ditto.
2417 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
2418
2419 2002-06-26 Grace Sainsbury <graces@redhat.com>
2420
2421 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
2422 gdbarch vector are at the top.
2423 (NUM_REGS): Remove.
2424 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
2425 (FRAME_ARGS_ADDRESS): Remove.
2426 (FRAME_LOCALS_ADDRESS): Remove.
2427 (FRAME_NUM_ARGS): Remove.
2428 (FRAME_ARGS_SKIP): Remove.
2429 * m68k-tdep.c (enum): Add eumeration of special register numbers.
2430 (m68k_gdbarch_init): Add gdbarch initializations for macros
2431 undefined in tm-m68k.h
2432
2433 2002-06-26 Grace Sainsbury <graces@redhat.com>
2434
2435 * monitor.h: Add the function regname to monitor_ops
2436 structure. This way NUM_REGS does not have to be a constant.
2437 * monitor.c (monitor_fetch_register): Added support for regname
2438 function. The function is called if the array regnames is NULL.
2439 (monitor_store_register): Same.
2440 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
2441 regnames array.
2442 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
2443 cpu32bug_cmds.regname to point to new function.
2444 * abug-rom.c (abug_regname): Same as above.
2445 (init_abug_cmds): Same.
2446 * dbug-rom.c (dbug_regname): Same as above.
2447 (init_dbug_cmds): Same.
2448 * remote-est.c (est_regname): Same.
2449 (init_est_cmds): Same.
2450 * rom68k-rom.c (rom68k_regname): Same.
2451 (init_rom68k_cmds): Same.
2452
2453 2002-06-25 Tom Tromey <tromey@redhat.com>
2454
2455 * breakpoint.c (delete_command): Don't repeat `delete' commands.
2456
2457 2002-06-25 Andrew Cagney <cagney@redhat.com>
2458
2459 * infrun.c (stop_registers): Change variable's type to ``struct
2460 regcache'''.
2461 (xmalloc_inferior_status): Delete function.
2462 (free_inferior_status): Delete function.
2463 (normal_stop): Use regcache_cpy.
2464 (struct inferior_status): Change type of fields ``stop_registers''
2465 and ``registers'' to ``struct regcache''.
2466 (write_inferior_status_register): Use regcache_write.
2467 (save_inferior_status): Instead of calling
2468 xmalloc_inferior_status, allocate the inf_status buffer directly.
2469 Use regcache_dup_no_passthrough and regcache_dup to save the
2470 buffers.
2471 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
2472 Replace the stop_registers regcache instead of overriding it. Use
2473 regcache_xfree. Instead of calling free_inferior_status, xfree
2474 the buffer directly.
2475 (discard_inferior_status): Use regcache_xfree. Instead of calling
2476 free_inferior_status, xfree the buffer directly.
2477 (build_infrun): Use regcache_xmalloc.
2478 (_initialize_infrun): Delete redundant call to build_infrun.
2479
2480 * Makefile.in (infcmd.o): Add $(regcache_h).
2481
2482 * infcmd.c: Include "regcache.h".
2483 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
2484 obtain the address of `stop_registers' register buffer.
2485 (print_return_value): Ditto.
2486
2487 * inferior.h (struct regcache): Add opaque declaration.
2488 (stop_registers): Change variable's declared type to ``struct
2489 regcache''.
2490
2491 2002-06-24 Tom Tromey <tromey@redhat.com>
2492
2493 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
2494 * target.c (initialize_targets): Fixed typo in
2495 trust-readonly-sections `show' documentation.
2496
2497 * main.c: Marked all strings with _().
2498
2499 2002-06-24 Don Howard <dhoward@redhat.com>
2500
2501 * memattr.c (create_mem_region): Treat hi == 0 as a special case
2502 that means max CORE_ADDR+1.
2503 (lookup_mem_region): Ditto.
2504 (mem_info_command): Ditto.
2505
2506 2002-06-24 Grace Sainsbury <graces@redhat.com>
2507
2508 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
2509 (REGISTER_BYTES_OK): Remove.
2510 (REGISTER_BYTES): Remove.
2511 (STORE_STRUCT_RETURN): Remove.
2512 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
2513 (STORE_RETURN_VALUE): Remove.
2514 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
2515 (FRAME_CHAIN): Remove.
2516 (FRAMELESS_FUNCTION_INVOCATION): Remove.
2517 (FRAME_SAVED_PC): Remove.
2518 * m68k-tdep.c (m68k_register_bytes_ok):Add.
2519 (m68k_store_struct_return): Add.
2520 (m68k_deprecated_extract_return_value): Add.
2521 (m68k_deprecated_extract_struct_value_address): Add.
2522 (m68k_store_return_value): Add.
2523 (m68k_frame_chain): Add.
2524 (m68k_frameless_function_invocation): Add.
2525 (m68k_frame_saved_pc): Add.
2526 (m68k_gdbarch_init): added set_gdbarch calls for new
2527 functions and deleted macros.
2528
2529 2002-06-23 Tom Tromey <tromey@redhat.com>
2530
2531 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
2532 (ALLDEPFILES): Likewise.
2533 (udiheaders): Removed.
2534 (udip2soc.o): Likewise.
2535 (udi2go32.o): Likewise.
2536 (udr.o): Likewise.
2537 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
2538
2539 2002-06-22 Andrew Cagney <ac131313@redhat.com>
2540
2541 * infrun.c (_initialize_infrun): Delete unnecessary call to
2542 build_infrun.
2543
2544 * regcache.h: Update comments describing the regcache_cpy family
2545 of functions.
2546 (regcache_save, regcache_restore): Delete declaration.
2547 (regcache_save_no_passthrough): Delete declaration.
2548 (regcache_restore_no_passthrough): Delete declaration.
2549 * regcache.c (regcache_save): Delete function.
2550 (regcache_save_no_passthrough): Delete function.
2551 (regcache_restore): Delete function.
2552 (regcache_restore_no_passthrough): Delete function.
2553
2554 2002-06-21 Andrew Cagney <ac131313@redhat.com>
2555
2556 * config/m68k/tm-m68k.h: Fix typo.
2557 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
2558 (m68k_frame_init_saved_regs): Declare.
2559
2560 2002-06-21 Jim Blandy <jimb@redhat.com>
2561
2562 Remove some vestiges of Harris 88k support.
2563 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
2564 register numbering quirk.
2565 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
2566 odd symbols occurring in Harris 88k ELF targets.
2567
2568 2002-06-21 Tom Tromey <tromey@redhat.com>
2569
2570 * gdb_locale.h: New file.
2571 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
2572 (defs_h): Added gdb_locale.h.
2573 * configure, config.in: Rebuilt.
2574 * configure.in (PACKAGE): Define.
2575 * defs.h: Include gdb_locale.h.
2576 * main.c (captured_main): Call setlocale, bindtextdomain,
2577 textdomain.
2578
2579 2002-06-21 Dave Brolley <brolley@redhat.com>
2580
2581 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
2582 * config/frv/frv.mt: New file.
2583 * config/frv/tm-frv.h: New file.
2584 * configure.tgt: Support frv-*-*.
2585 * Makefile.in (frv-tdep.o): New target.
2586 * frv-tdep.c: New file.
2587 * NEWS: Mention frv.
2588
2589 2002-06-21 Dave Brolley <brolley@redhat.com>
2590
2591 * MAINTAINERS: Add self to "Write After Approval" list.
2592
2593 2002-06-21 Grace Sainsbury <graces@redhat.com>
2594
2595 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
2596 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
2597 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
2598 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
2599 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
2600
2601 * m68k-tdep.c: Include arch-utils.h
2602 (m68k_register_raw_size): Add.
2603 (m68k_register_virtual_size): Add.
2604 (m68k_register_virtual_type): Add.
2605 (m68k_register_name): Add.
2606 (m68k_stack_align): Add.
2607 (m68k_register_byte): Add.
2608 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
2609 tm-m68k.h.
2610
2611 2002-06-21 Grace Sainsbury <graces@redhat.com>
2612
2613 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
2614 m68k_find_saved_regs.
2615 (m68k_pop_frame): Removed saved_regs structure, and replaced
2616 references to it with frame->saved_regs.
2617 (m68k_gdbarch_init): Added function calls to initialize the
2618 gdbarch structure.
2619 (m68k_fix_call_dummy): Add.
2620 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
2621 (CALL_DUMMY): Remove.
2622 (CALL_DUMMY_LENGTH): Remove.
2623 (CALL_DUMMY_START_OFFSET): Remove.
2624 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
2625 (FIX_CALL_DUMMY): Remove.
2626 (PUSH_DUMMY_FRAME): Remove.
2627 (POP_FRAME): Remove.
2628
2629 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
2630
2631 * parse.c (parse_fprintf): New function used to avoid calls to
2632 fprintf in bison parser generated debug code.
2633 * parser-defs.h: Declaration of new parse_fprintf function.
2634 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
2635 Set YYDEBUG to 1 by default.
2636 Set YYFPRINTF as parse_fprintf.
2637
2638 2002-06-21 Michal Ludvig <mludvig@suse.cz>
2639
2640 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
2641 encoding anymore.
2642 (pointer_encoding, enum ptr_encoding): New.
2643 (execute_cfa_program): Take care about pointer encoding.
2644 (dwarf2_build_frame_info): Only call parse_frame_info for
2645 .debug_frame and .eh_frame.
2646 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
2647 fixed augmentation handling, added relative addressing,
2648 ignore duplicate FDEs. Added comments.
2649 * dwarf2cfi.c: Reindented.
2650
2651 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
2652
2653 * event-top.c (command_handler): Don't use space_at_cmd_start
2654 unless there is sbrk() on the host. Assign time and space data
2655 to union fields of the appropriate length.
2656
2657 2002-06-20 Michal Ludvig <mludvig@suse.cz>
2658
2659 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
2660 x86_64_register_name. Return type changed to 'const char *'.
2661 (x86_64_register_name2nr): Rename to x86_64_register_number.
2662 (x86_64_gdbarch_init): Update to reflect the change.
2663 * x86-64-tdep.h: Ditto.
2664 * x86-64-linux-nat.c (x86_64_fxsave_offset)
2665 (supply_fpregset): Ditto.
2666
2667 2002-06-19 Andrew Cagney <cagney@redhat.com>
2668
2669 * regcache.h: Update copyright.
2670 (struct regcache, struct gdbarch): Add opaque declarations.
2671 (current_regcache): Declare global variable.
2672 (regcache_read, regcache_write): Add gdbarch parameter.
2673 (regcache_save, regcache_save_no_passthrough)
2674 (regcache_restore, regcache_restore_no_passthrough)
2675 (regcache_dup, regcache_dup_no_passthrough)
2676 (regcache_cpy, regcache_cpy_no_passthrough)
2677 (deprecated_grub_regcache_for_registers)
2678 (deprecated_grub_regcache_for_register_valid)
2679 (regcache_valid_p): Add function declarations.
2680
2681 * regcache.c: Update copyright.
2682 (regcache_descr_handle): New global variable.
2683 (struct regcache_descr): Define.
2684 (init_legacy_regcache_descr, init_regcache_descr): New functions.
2685 (regcache_descr, xfree_regcache_descr): New functions.
2686 (struct regcache): Define.
2687 (regcache_xmalloc, regcache_xfree): New functions.
2688 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
2689 (regcache_dup, regcache_dup_no_passthrough): New functions.
2690 (regcache_valid_p, regcache_read_as_address): New functions.
2691 (deprecated_grub_regcache_for_registers): New function.
2692 (deprecated_grub_regcache_for_register_valid): New function.
2693 (current_regcache): New global variable.
2694 (register_buffer): Add regcache parameter. Update calls.
2695 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
2696 (read_register_gen, write_register_gen): Update register_buffer
2697 call. Test for legacy_p instead of gdbarch_register_read_p or
2698 gdbarch_register_write_p.
2699 (regcache_collect): Update register_buffer call.
2700 (build_regcache): Rewrite. Use deprecated grub functions.
2701 (regcache_save, regcache_save_no_passthrough): New functions.
2702 (regcache_restore, regcache_restore_no_passthrough): New
2703 functions.
2704 (_initialize_regcache): Create the regcache_data_handle. Swap
2705 current_regcache global variable.
2706
2707 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
2708 parameter to regcache_read and regcache_write calls.
2709 (sh4_register_read): Ditto.
2710 (sh64_pseudo_register_read): Ditto.
2711 (sh64_register_read): Ditto.
2712 (sh_pseudo_register_write): Ditto.
2713 (sh4_register_write): Ditto.
2714 (sh64_pseudo_register_write): Ditto.
2715 (sh64_register_write): Ditto.
2716
2717 * defs.h (XCALLOC): Define.
2718
2719 2002-06-19 Grace Sainsbury <graces@redhat.com>
2720
2721 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
2722 * m68k-tdep.c (m68k_gdbarch_init): Added.
2723 (m68k_dump_tdep): Added.
2724
2725 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
2726
2727 * ada-lang.c (fill_in_ada_prototype): Update comment.
2728
2729 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
2730
2731 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
2732 MIPS_ABI_LAST.
2733 (mips_abi_string, mips_abi_strings): New.
2734 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
2735 (mips_gdbarch_init): Set tdep->found_abi. Don't set
2736 tdep->mips_abi_string. Honor mips_abi_string. Default to
2737 O32 if no ABI is found.
2738 (mips_dump_tdep): Use mips_abi_strings.
2739 (mips_abi_update): New function.
2740 (_initialize_mips_tdep): Initialize mips_abi_string. Add
2741 ``set mips abi'' and ``show mips abi''. Check the size of
2742 mips_abi_strings.
2743
2744 2002-06-19 Andrew Cagney <cagney@redhat.com>
2745
2746 * i386-linux-tdep.c (i386_linux_register_name): Make return type
2747 constant.
2748
2749 2002-06-18 Joel Brobecker <brobecker@gnat.com>
2750
2751 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
2752 current frame using only the first stack size adjustment. All
2753 subsequent size adjustments are not considered to be part of
2754 the "static" part of the current frame.
2755 Compute the address of the saved registers relative to the
2756 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
2757 in use in this frame.
2758
2759 2002-06-18 Don Howard <dhoward@redhat.com>
2760
2761 * valops.c (value_ind): Use value_at_lazy() when dereferencing
2762 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
2763 suggesting this solution.
2764
2765 2002-06-18 Andrew Cagney <ac131313@redhat.com>
2766
2767 * config/romp/xm-rtbsd.h: Delete file.
2768 * config/romp/rtbsd.mh: Delete file.
2769
2770 2002-06-18 Keith Seitz <keiths@redhat.com>
2771
2772 * breakpoint.c (condition_command): Post breakpoint_modify
2773 when a condition is added to an existing breakpoint.
2774 (commands_command): Likewise for commands.
2775 (set_ignore_count): Likewise for ignore counts.
2776 If no tty, do not simply return, still need to send event
2777 notification.
2778 (ignore_command): Only print a newline if the command came
2779 from a tty.
2780 Don't call breakpoints_changed, since this is now properly
2781 handled by set_ignore_count.
2782
2783 2002-06-18 Andrew Cagney <cagney@redhat.com>
2784
2785 * MAINTAINERS: Note that cris-elf target can be compiled with
2786 -Werror.
2787 * cris-tdep.c (cris_register_name): Make return type constant.
2788 (cris_breakpoint_from_pc): Ditto.
2789
2790 2002-06-18 Michal Ludvig <mludvig@suse.cz>
2791
2792 * frame.h (struct frame_info): Change type of context to
2793 'struct context'.
2794
2795 2002-06-17 Andrew Cagney <cagney@redhat.com>
2796
2797 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
2798 pointer.
2799 * gdbarch.h, gdbarch.c: Regenerate.
2800 * config/mips/tm-mips.h (mips_register_name): Update.
2801 * i386-tdep.h (i386_register_name): Update.
2802 * mips-tdep.c (mips_register_name): Update
2803 * alpha-tdep.c (alpha_register_name): Update.
2804 * arch-utils.c (legacy_register_name): Update.
2805 * arch-utils.h (legacy_register_name): Update.
2806 * avr-tdep.c (avr_register_name): Update.
2807 * ia64-tdep.c (ia64_register_name): Update.
2808 * i386-tdep.c (i386_register_name): Update.
2809 * sparc-tdep.c (sparc32_register_name): Update.
2810 (sparc64_register_name): Update.
2811 (sparclite_register_name): Update.
2812 (sparclet_register_name): Update.
2813 * sh-tdep.c (sh_generic_register_name): Update.
2814 (sh_sh_register_name): Update.
2815 (sh_sh3_register_name): Update.
2816 (sh_sh3e_register_name): Update.
2817 (sh_sh_dsp_register_name): Update.
2818 (sh_sh3_dsp_register_name): Update.
2819 (sh_sh4_register_name): Update.
2820 (sh_sh64_register_name): Update.
2821 * s390-tdep.c (s390_register_name): Update.
2822 * rs6000-tdep.c (rs6000_register_name): Update.
2823 * ns32k-tdep.c (ns32k_register_name_32082): Update.
2824 (ns32k_register_name_32382): Update.
2825 * d10v-tdep.c (d10v_ts2_register_name): Update.
2826 (d10v_ts3_register_name): Update.
2827 * xstormy16-tdep.c (xstormy16_register_name): Update.
2828 * vax-tdep.c (vax_register_name): Update.
2829 * v850-tdep.c (v850_register_name): Update.
2830 * m68hc11-tdep.c (m68hc11_register_name): Update.
2831 * mn10300-tdep.c (mn10300_generic_register_name): Update.
2832 (am33_register_name): Update.
2833
2834 2002-06-17 Grace Sainsbury <graces@redhat.com>
2835
2836 * m68k-tdep.c: Reindented.
2837
2838 2002-06-17 Andrew Cagney <ac131313@redhat.com>
2839
2840 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
2841 list of predefined types.
2842
2843 2002-06-16 Mark Kettenis <kettenis@gnu.org>
2844
2845 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
2846 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
2847 REGISTER_CONVERT_TO_RAW): Remove defines.
2848 (i386_register_virtual_type, i386_register_convertible,
2849 i386_register_convert_to_virtual, i386_register_convert_to_raw):
2850 Remove prototypes.
2851 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
2852 macros mentioned above.
2853
2854 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
2855 (i386lynx_saved_pc_after_call): Remove prototype.
2856 * i386ly-tdep.c: Include "i386-tdep.h".
2857 (i386lynx_saved_pc_after_call): Make static. Use
2858 read_memory_nobpt instead of read_memory. Use
2859 read_memory_unsigned_integer instead of read_memory_integer.
2860 (i386lynx_init_abi): New function.
2861 (i386lynx_coff_osabi_sniffer): New function.
2862 (_initialize_i386bsd_tdep): New function.
2863
2864 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
2865 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
2866 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
2867 (i386_fix_call_dummy): Remove prototype.
2868 * i386-tdep.c (i386_call_dummy_words): New variable.
2869 (i386_gdbarch_init): Adjust for removal of the
2870 macros mentioned above.
2871
2872 2002-06-15 Andrew Cagney <ac131313@redhat.com>
2873
2874 * command.h (add_setshow_auto_boolean_cmd): Replace
2875 add_set_auto_boolean_cmd.
2876 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
2877 add_set_auto_boolean_cmd.
2878 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
2879 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
2880 mask-address'' command.
2881 (show_mask_address): Add cmd parameter.
2882 * remote.c (add_packet_config_cmd): Update. Change type of
2883 set_func and show_func to cmd_sfunc_ftype.
2884 (_initialize_remote): Update `set remote Z-packet'
2885 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
2886 (show_remote_protocol_e_packet_cmd): Ditto.
2887 (show_remote_protocol_E_packet_cmd): Ditto.
2888 (show_remote_protocol_P_packet_cmd): Ditto.
2889 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
2890 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
2891 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
2892 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
2893 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
2894 (show_remote_protocol_Z_packet_cmd): Ditto.
2895 (show_remote_protocol_binary_download_cmd): Ditto.
2896 (show_remote_cmd): Pass NULL to all of above.
2897
2898 2002-06-15 Mark Kettenis <kettenis@gnu.org>
2899
2900 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
2901 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
2902 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
2903 POP_FRAME): Remove defines.
2904 (i386_push_arguments, i386_store_struct_return,
2905 i386_extract_return_value, i386_store_return_value,
2906 i386_extract_struct_value_address, i386_push_dummy_frame,
2907 i386_pop_frame): Renove prototypes.
2908 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
2909 macros mentioned above.
2910
2911 2002-06-15 Andrew Cagney <ac131313@redhat.com>
2912
2913 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
2914 add_set_boolean_cmd.
2915 (add_setshow_cmd): New function.
2916 * command.h (add_setshow_boolean_cmd): Replace
2917 add_set_boolean_cmd.
2918 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
2919 and ``set rdiromatzero''.
2920 * maint.c (_initialize_maint_cmds): Update commented out code.
2921 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
2922 * target.c (initialize_targets): Update `set
2923 trust-readonly-sections'.
2924 * remote.c (_initialize_remote): Update `set remotebreak'.
2925
2926 2002-06-15 Mark Kettenis <kettenis@gnu.org>
2927
2928 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
2929 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
2930 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
2931 fit into multi-arch framework.
2932 (i386_breakpoint_from_pc): New function.
2933 (i386_gdbarch_init): Adjust for removal of the macros mentioned
2934 above.
2935
2936 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
2937 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
2938 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
2939 (i386_frameless_function_invocation, i386_frame_num_args,
2940 i386_frame_init_saved_regs): Remove prototypes.
2941 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
2942 macros mentioned above.
2943
2944 2002-06-15 Andrew Cagney <ac131313@redhat.com>
2945
2946 * cli/cli-decode.c (set_cmd_cfunc): Update.
2947 (set_cmd_sfunc): Update.
2948 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
2949 (set_cmd_sfunc, set_cmd_cfunc): Update.
2950 * cli/cli-decode.h: Update.
2951
2952 2002-06-15 Mark Kettenis <kettenis@gnu.org>
2953
2954 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
2955 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
2956
2957 2002-06-15 Andrew Cagney <ac131313@redhat.com>
2958
2959 * defs.h (auto_boolean): Declare enum.
2960 * command.h (cmd_auto_boolean): Delete enum.
2961 * mips-tdep.c (mask_address_var): Update.
2962 (mips_mask_address_p): Update.
2963 (show_mask_address): Update.
2964 * remote.c (struct packet_config): Update.
2965 (update_packet_config): Update.
2966 (show_packet_config_cmd): Update.
2967 (packet_ok): Update.
2968 (add_packet_config_cmd): Update.
2969 (_initialize_remote):
2970 * command.h: Update.
2971 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
2972 (do_setshow_command): Update.
2973 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
2974 * cli/cli-decode.h: Update.
2975
2976 2002-06-15 Mark Kettenis <kettenis@gnu.org>
2977
2978 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
2979 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
2980 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
2981 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
2982 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
2983 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
2984
2985 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
2986 list of DJGPP COFF targets.
2987
2988 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
2989 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
2990 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
2991 (FP0_REGNUM): Remove define.
2992 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
2993 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
2994 (i386_register_virtual_size): Remove protoype.
2995 * i386-tdep.c (i386_register_virtual_size): Removed.
2996 (i386_extract_return_value, i386_store_return_value): Use
2997 FP0_REGNUM instead of NUM_FREGS to determine whether the
2998 floating-point registers are available.
2999 (i386_gdbarch_init): Tweak FIXME about FPU registers.
3000 Adjust for removal of macros mentioned above.
3001
3002 2002-06-15 Mark Kettenis <kettenis@gnu.org>
3003
3004 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
3005 comments.
3006 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
3007 Remove prototypes.
3008 (supply_gregset, fill_gregset): Remove use of register keyword and
3009 remove declaration for regmap. Use I386_NUM_GREGS instead of
3010 NUM_REGS and NUM_FREGS.
3011 (FPREGSET_FSAVE_OFFSET): Remove.
3012 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
3013 NUM_FREGS to determine whether the floating-point registers are
3014 available.
3015
3016 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
3017 gnu_store_registers): Replace usage of NUM_GREGS with
3018 I386_NUM_GREGS.
3019
3020 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
3021 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
3022 usage of NUM_GREGS with I386_NUM_GREGS.
3023
3024 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
3025
3026 * i386bsd-nat.c: Include "i386-tdep.h".
3027 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
3028 I386_NUM_GREGS.
3029
3030 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
3031 and associated comment. They no longer make any sense, since we
3032 don't use this file anymore on Linux.
3033
3034 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
3035 * i386-tdep.c (i386_register_offset, i386_register_size): Use
3036 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
3037 elements in these arrays.
3038 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
3039 MAX_NUM_REGS.
3040
3041 2002-06-15 Mark Kettenis <kettenis@gnu.org>
3042
3043 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
3044 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
3045
3046 2002-06-14 Andrew Cagney <cagney@redhat.com>
3047
3048 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
3049 EXTRACT_RETURN_VALUE.
3050 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
3051 EXTRACT_STRUCT_VALUE_ADDRESS.
3052 * gdbarch.h, gdbarch.c: Regenerate.
3053
3054 * values.c (value_being_returned): Handle
3055 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
3056 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
3057
3058 * arm-linux-tdep.c (arm_linux_init_abi): Update.
3059 * arm-tdep.c (arm_gdbarch_init): Update.
3060 * avr-tdep.c (avr_gdbarch_init): Update.
3061 * cris-tdep.c (cris_gdbarch_init): Update.
3062 * d10v-tdep.c (d10v_gdbarch_init): Update.
3063 * ia64-tdep.c (ia64_gdbarch_init): Update.
3064 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3065 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3066 * s390-tdep.c (s390_gdbarch_init): Update.
3067 * sh-tdep.c (sh_gdbarch_init): Update.
3068 * s390-tdep.c (s390_gdbarch_init): Update.
3069 * sparc-tdep.c (sparc_gdbarch_init): Update.
3070 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3071 * v850-tdep.c (v850_gdbarch_init): Update.
3072 * vax-tdep.c (vax_gdbarch_init): Update.
3073 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
3074 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3075
3076 * config/arc/tm-arc.h: Update.
3077 * config/d30v/tm-d30v.h: Update.
3078 * config/fr30/tm-fr30.h: Update.
3079 * config/h8300/tm-h8300.h: Update.
3080 * config/h8500/tm-h8500.h: Update.
3081 * config/i386/tm-i386.h: Update.
3082 * config/i386/tm-ptx.h: Update.
3083 * config/i386/tm-symmetry.h: Update.
3084 * config/i960/tm-i960.h: Update.
3085 * config/m32r/tm-m32r.h: Update.
3086 * config/m68k/tm-delta68.h: Update.
3087 * config/m68k/tm-linux.h: Update.
3088 * config/m68k/tm-m68k.h: Update.
3089 * config/m88k/tm-m88k.h: Update.
3090 * config/mcore/tm-mcore.h: Update.
3091 * config/mips/tm-mips.h: Update.
3092 * config/mn10200/tm-mn10200.h: Update.
3093 * config/pa/tm-hppa.h: Update.
3094 * config/pa/tm-hppa64.h: Update.
3095 * config/sparc/tm-sp64.h: Update.
3096 * config/sparc/tm-sparc.h: Update.
3097 * config/sparc/tm-sparclet.h: Update.
3098 * config/z8k/tm-z8k.h: Update.
3099
3100 2002-06-14 Andrew Cagney <cagney@redhat.com>
3101
3102 * Makefile.in (i386_linux_tdep_h): Define.
3103 (i386_tdep_h, i387_tdep_h): Define.
3104 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
3105 $(i386_tdep_h) and $(i387_tdep_h).
3106 * i386-linux-nat.c: Include "i386-linux-tdep.h".
3107
3108 2002-06-14 Mark Kettenis <kettenis@gnu.org>
3109
3110 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
3111 Already covered by the default.
3112
3113 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
3114 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
3115 (i386_gdbarch_init): Initialize long_double_format and long_double
3116 bit.
3117
3118 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
3119 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
3120 Move these to ...
3121 * config/i386/i386sol2.mh: ... here.
3122 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
3123 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
3124 (SIGCONTEXT_PC_OFFSET): Remove define.
3125 (IN_SIGTRAMP): Remove define.
3126 * i386-sol2-tdep.c: New file.
3127
3128 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
3129 * config/i386/tm-i386nw.h: Removed.
3130
3131 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
3132 USE_STRUCT_CONVENTION): Remove defines.
3133 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
3134 (get_longjmp_target): Remove prototype.
3135 (IN_SIGTRAMP): Remove define.
3136 (i386bsd_in_sigtramp): Remove prototype.
3137 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
3138 function. Update comment accordingly
3139 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
3140 (FRAME_SAVED_PC): Remove define.
3141 (i386bsd_frame_saved_pc): Remove prototype.
3142 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
3143 GET_LONGJMP_TARGET): Remove defines.
3144 (get_longjmp_target): Remove prototype.
3145 (IN_SIGTRAMP): Remove define.
3146 (i386bsd_in_sigtramp): Remove prototype.
3147 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
3148 function. Update comment accordingly
3149 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
3150 (FRAME_SAVED_PC): Remove define.
3151 (i386bsd_frame_saved_pc): Remove prototype.
3152 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
3153 Remove prototype.
3154 (USE_STRUCT_CONVENTION): Remove prototype.
3155 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
3156 declaration.
3157 (_initialize_i386bsd_nat): Revise logic to determine some
3158 constants at compile time when compiling a native GDB. Warn if
3159 things don't match up with what we expect.
3160 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
3161 Remove variables.
3162 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
3163 to use date stored in `struct gdbarch_tdep'.
3164 (i386bsd_sigcontext_offset): Remove varaible.
3165 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
3166 stored in `struct gdbarch_tdep'.
3167 (i386bsd_frame_saved_pc): Make static.
3168 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
3169 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
3170 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
3171 i386fbsd4_sc_pc_offset): New variables.
3172 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
3173 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
3174 functions.
3175 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
3176 functions.
3177 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
3178 Modify the value of i386fbsd_sigtramp_start and
3179 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
3180 i386fbsd_sigtramp_end.
3181 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
3182 function.
3183
3184 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
3185 define to i386-linux-tdep.h.
3186 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
3187 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
3188 defines.
3189 (i386_linux_register_name, i386_linux_register_byte,
3190 i386_linux_register_raw_size): Remove prototypes.
3191 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
3192 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
3193 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
3194 TARGET_WRITE_PC): Remove defines.
3195 (i386_linux_in_sigtramp, i386_linux_frame_chain,
3196 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
3197 i386_linux_write_pc): Remove prototypes.
3198 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
3199 (get_longjmp_target): Remove prototype.
3200 * i386-linux-tdep.h: New file.
3201 * i386-linux-nat.c: Include "i386-linux-tdep.h".
3202 * i386-linux-tdep.c: Include "i386-tdep.h" and
3203 "i386-linux-tdep.h".
3204 (i386_linux_register_name, i386_linux_register_byte,
3205 i386_linux_register_raw_size, i386_linux_in_sigtramp,
3206 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
3207 Make static.
3208 (i386_linux_init_abi): New function.
3209 (_initialize_i386_linux_tdep): New function.
3210
3211 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
3212 (i386_saved_pc_after_call): Remove prototype.
3213 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
3214 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
3215 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
3216 (i386_register_name, i386_stab_reg_to_regnum,
3217 i386_dwarf_reg_to_regnum): Remove prototypes.
3218 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
3219 SIZEOF_SSE_REGS): Remove defines.
3220 (REGISTER_BYTES): Remove define.
3221 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
3222 (i386_register_byte, i386_register_raw_size): Remove prototypes.
3223 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
3224 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
3225 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
3226 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
3227 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
3228 (get_longjmp_target): Remove prototype.
3229 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
3230 (sigtramp_saved_pc): Remove define.
3231 (i386v4_sigtramp_saved_pc): Remove prototype.
3232 * config/i386/tm-go32.h (FRAME_CHAIN,
3233 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
3234 (i386go32_frame_saved_pc): Remove prototype.
3235 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
3236 (get_longjmp_target): Remove prototype.
3237 * i386-tdep.h: Include "osabi.h".
3238 (enum i386_abi): Removed.
3239 (enum struct_return): New enum.
3240 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
3241 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
3242 sc_pc_offset members.
3243 (i386_gdbarch_register_os_abi): Remove prototype.
3244 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
3245 I386_SSE_NUM_REGS): New defines.
3246 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
3247 I386_SSE_SIZEOF_REGS): New defines.
3248 (i386_register_name, i386_register_byte, i386_register_raw_size):
3249 New prototypes.
3250 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
3251 (i386bsd_sigtramp_saved_pc): New prototype.
3252 * i386-tdep.c: Don't include "elf-bfd.h".
3253 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
3254 i386_frame_chain, i386_saved_pc_after_call): Make static.
3255 (i386_frame_saved_pc): Rewrite to call architecture dependent
3256 function to deal with signal handlers. Make static.
3257 (i386go32_frame_saved_pc): Removed.
3258 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
3259 Removed.
3260 (i386_get_longjmp_target): New function.
3261 (default_struct_convention, pcc_struct_convention,
3262 reg_struct_convention, valid_conventions, struct_convention): New
3263 variables.
3264 (i386_use_struct_convention): New function.
3265 (i386v4_sigtramp_saved_pc): Renamed to
3266 i386_svr4_sigtramp_saved_pc. Made static. Moved.
3267 (i386_pc_in_sigtramp): New function.
3268 (i386_abi_names): Removed.
3269 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
3270 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
3271 Removed.
3272 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
3273 i386_gdbarch_register_os_abi): Removed.
3274 (struct i386_abi_handler): Removed.
3275 (i386_abi_handler_list): Removed.
3276 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
3277 functions.
3278 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
3279 i386_nw_init_abi): New functions.
3280 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
3281 Use set_gdbarch_xxx() calls instead of relying on macros for a
3282 number of calls.
3283 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
3284 (_initialize_i386_tdep): Add new 'struct-convcention' command.
3285 Register the various architecture variants defined in this file.
3286
3287 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
3288
3289 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
3290 (struct main_type): Remove arg_types member. Update comments for
3291 struct field.
3292 (TYPE_ARG_TYPES): Remove.
3293 (TYPE_FN_FIELD_ARGS): Update.
3294 (smash_to_method_type): Update prototype.
3295
3296 * c-typeprint.c (cp_type_print_method_args): Take method type
3297 instead of argument list. Use new argument layout. Simplify.
3298 (c_type_print_args): Use new argument layout. Simplify.
3299 (c_type_print_base): Update call to cp_type_print_method_args.
3300 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
3301 argument; use die->type instead. Update call to
3302 smash_to_method_type.
3303 (read_structure_scope): Update call to dwarf2_add_member_fn.
3304 * gdbtypes.c (allocate_stub_method): Update comment.
3305 (smash_to_method_type): Take new NARGS and VARARGS arguments.
3306 Use new argument layout.
3307 (check_stub_method): Use new argument layout. Don't count
3308 void as an argument.
3309 (print_arg_types): Update comments. Use new argument layout.
3310 (recursive_dump_type): Don't print arg_types member.
3311 * hpread.c (hpread_read_struct_type): Use new argument layout.
3312 (fixup_class_method_type): Likewise.
3313 (hpread_type_lookup): Likewise.
3314 * stabsread.c (read_type): Update calls to read_args and
3315 smash_to_method_type.
3316 (read_args): Use new argument layout. Simplify.
3317 * valops.c (typecmp): Use new argument layout. Update parameters
3318 and comments. Simplify.
3319 (hand_function_call): Use new argument layout.
3320 (search_struct_method): Update call to typecmp.
3321 (find_overload_match): Use new argument layout.
3322
3323 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
3324
3325 * NEWS: Mention multithreaded debug support for gdbserver.
3326
3327 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
3328
3329 * MAINTAINERS: Mention NEWS.
3330
3331 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
3332
3333 * gdbserver/regcache.c: Add comment.
3334
3335 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
3336
3337 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
3338 (struct mips_objfile_private, compare_pdr_entries): New.
3339 (non_heuristic_proc_desc): Read the ".pdr" section if it
3340 is present.
3341
3342 2002-06-12 Andrew Cagney <ac131313@redhat.com>
3343
3344 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
3345 (arm_debug): New static variable.
3346 (_initialize_arm_tdep): Add ``set debug arm'' command.
3347
3348 2002-06-12 Andrew Cagney <ac131313@redhat.com>
3349
3350 * Makefile.in (sim_arm_h): Define.
3351 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
3352 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
3353 (arm_register_sim_regno): New function, map an internal REGNUM
3354 onto a simulator register number.
3355 (arm_gdbarch_init): Set register_sim_regno.
3356
3357 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
3358
3359 * MAINTAINERS: Add self.
3360
3361 2002-06-11 Jim Blandy <jimb@redhat.com>
3362
3363 * source.c (source_info): Mention whether the symtab has
3364 information about preprocessor macros.
3365
3366 Call the command `info macro', not `show macro'.
3367 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
3368 Fix error message.
3369 (_initialize_macrocmd): Register `info_macro_command' in
3370 `infolist', not `showlist'.
3371
3372 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
3373
3374 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
3375 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
3376 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
3377 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
3378 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
3379 unconditionally.
3380 (set_mipsfpu_single_command, set_mipsfpu_double_command)
3381 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
3382 (_initialize_mips_tdep): Remove dead code.
3383 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
3384 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
3385 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
3386 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
3387 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
3388 MIPS_LAST_FP_ARG_REGNUM): Remove.
3389
3390 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
3391
3392 * gdbserver/thread-db.c: New file.
3393 * gdbserver/proc-service.c: New file.
3394 * gdbserver/acinclude.m4: New file.
3395 * gdbserver/Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
3396 proc-service.o, and thread-db.o.
3397 (linux-low.o): Add USE_THREAD_DB.
3398 * gdbserver/acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
3399 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
3400 * gdbserver/aclocal.m4: Regenerated.
3401 * gdbserver/config.in: Regenerated.
3402 * gdbserver/configure: Regenerated.
3403 * gdbserver/configure.in: Check for proc_service.h, sys/procfs.h,
3404 thread_db.h, and linux/elf.h headrs.
3405 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
3406 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
3407 Check for -lthread_db and thread support.
3408 * gdbserver/configure.srv: Enable thread_db support for ARM, i386, MIPS,
3409 PowerPC, and SuperH.
3410 * gdbserver/i387-fp.c: Constify arguments.
3411 * gdbserver/i387-fp.h: Likewise.
3412 * gdbserver/inferiors.c: (struct thread_info): Renamed from
3413 `struct inferior_info'. Remove PID member. Use generic inferior
3414 list header. All uses updated.
3415 (inferiors, signal_pid): Removed.
3416 (all_threads): New variable.
3417 (get_thread): Define.
3418 (add_inferior_to_list): New function.
3419 (for_each_inferior): New function.
3420 (change_inferior_id): New function.
3421 (add_inferior): Removed.
3422 (remove_inferior): New function.
3423 (add_thread): New function.
3424 (free_one_thread): New function.
3425 (remove_thread): New function.
3426 (clear_inferiors): Use for_each_inferior and free_one_thread.
3427 (find_inferior): New function.
3428 (find_inferior_id): New function.
3429 (inferior_target_data): Update argument type.
3430 (set_inferior_target_data): Likewise.
3431 (inferior_regcache_data): Likewise.
3432 (set_inferior_regcache_data): Likewise.
3433 * gdbserver/linux-low.c (linux_bp_reinsert): Remove.
3434 (all_processes, stopping_threads, using_thrads)
3435 (struct pending_signals, debug_threads, pid_of): New.
3436 (inferior_pid): Replace with macro.
3437 (struct inferior_linux_data): Remove.
3438 (get_stop_pc, add_process): New functions.
3439 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
3440 Use add_process and add_thread.
3441 (linux_attach_lwp): New function, based on old linux_attach. Use
3442 add_process and add_thread. Set stop_expected for new threads.
3443 (linux_attach): New function.
3444 (linux_kill_one_process): New function.
3445 (linux_kill): Kill all LWPs.
3446 (linux_thread_alive): Use find_inferior_id.
3447 (check_removed_breakpoints, status_pending_p): New functions.
3448 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
3449 Update. Use WNOHANG. Wait for cloned processes also. Update process
3450 struct for the found process.
3451 (linux_wait_for_event): New function.
3452 (linux_wait): Use it. Support LWPs.
3453 (send_sigstop, wait_for_sigstop, stop_all_processes)
3454 (linux_resume_one_process, linux_continue_one_process): New functions.
3455 (linux_resume): Support LWPs.
3456 (REGISTER_RAW_SIZE): Remove.
3457 (fetch_register): Use register_size instead. Call supply_register.
3458 (usr_store_inferior_registers): Likewise. Call collect_register.
3459 Fix recursive case.
3460 (regsets_fetch_inferior_registers): Improve error message.
3461 (regsets_store_inferior_registers): Add debugging.
3462 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
3463 (unstopped_p, linux_signal_pid): New functions.
3464 (linux_target_ops): Add linux_signal_pid.
3465 (linux_init_signals): New function.
3466 (initialize_low): Call it. Initialize using_threads.
3467 * gdbserver/regcache.c (inferior_regcache_data): Add valid
3468 flag.
3469 (get_regcache): Fetch registers lazily. Add fetch argument
3470 and update all callers.
3471 (regcache_invalidate_one, regcache_invalidate): New
3472 functions.
3473 (new_register_cache): Renamed from create_register_cache.
3474 Return the new regcache.
3475 (free_register_cache): Change argument to a void *.
3476 (registers_to_string, registers_from_string): Call get_regcache
3477 with fetch flag set.
3478 (register_data): Make static. Pass fetch flag to get_regcache.
3479 (supply_register): Call get_regcache with fetch flag clear.
3480 (collect_register): Call get_regcache with fetch flag set.
3481 (collect_register_as_string): New function.
3482 * gdbserver/regcache.h: Update.
3483 * gdbserver/remote-utils.c (putpkt): Flush after debug output and use
3484 stderr.
3485 Handle input interrupts while waiting for an ACK.
3486 (input_interrupt): Use signal_pid method.
3487 (getpkt): Flush after debug output and use stderr.
3488 (outreg): Use collect_register_as_string.
3489 (new_thread_notify, dead_thread_notify): New functions.
3490 (prepare_resume_reply): Check using_threads. Set thread_from_wait
3491 and general_thread.
3492 (look_up_one_symbol): Flush after debug output.
3493 * gdbserver/server.c (step_thread, server_waiting): New variables.
3494 (start_inferior): Don't use signal_pid. Update call to mywait.
3495 (attach_inferior): Update call to mywait.
3496 (handle_query): Handle qfThreadInfo and qsThreadInfo.
3497 (main): Don't fetch/store registers explicitly. Use
3498 set_desired_inferior. Support proposed ``Hs'' packet. Update
3499 calls to mywait.
3500 * gdbserver/server.h: Update.
3501 (struct inferior_list, struct_inferior_list_entry): New.
3502 * gdbserver/target.c (set_desired_inferior): New.
3503 (write_inferior_memory): Constify.
3504 (mywait): New function.
3505 * gdbserver/target.h: Update.
3506 (struct target_ops): New signal_pid method.
3507 (mywait): Removed macro, added prototype.
3508
3509 * gdbserver/linux-low.h (regset_func): Removed.
3510 (regset_fill_func, regset_store_func): New.
3511 (enum regset_type): New.
3512 (struct regset_info): Add type field. Use new operation types.
3513 (struct linux_target_ops): stop_pc renamed to get_pc.
3514 Add decr_pc_after_break and breakpoint_at.
3515 (get_process, get_thread_proess, get_process_thread)
3516 (strut process_info, all_processes, linux_attach_lwp)
3517 (thread_db_init): New.
3518
3519 * gdbserver/linux-arm-low.c (arm_get_pc, arm_set_pc,
3520 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
3521 (the_low_target): Add new members.
3522 * gdbserver/linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
3523 (i386_store_fpxregset): Constify.
3524 (target_regsets): Add new kind identifier.
3525 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
3526 (i386_set_pc): Add debugging.
3527 (i386_breakpoint_at): New function.
3528 (the_low_target): Add new members.
3529 * gdbserver/linux-mips-low.c (mips_get_pc, mips_set_pc)
3530 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
3531 (mips_breakpoint_at): New.
3532 (the_low_target): Add new members.
3533 * gdbserver/linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
3534 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
3535 (the_low_target): Add new members.
3536 * gdbserver/linux-sh-low.c (sh_get_pc, sh_set_pc)
3537 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
3538 (the_low_target): Add new members.
3539 * gdbserver/linux-x86-64-low.c (target_regsets): Add new kind
3540 identifier.
3541
3542 2002-06-11 Michal Ludvig <mludvig@suse.cz>
3543
3544 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
3545 (unwind_tmp_obstack_free, parse_frame_info)
3546 (update_context, cfi_read_fp, cfi_write_fp)
3547 (cfi_frame_chain, cfi_init_extra_frame_info)
3548 (cfi_virtual_frame_pointer): Use the above function.
3549 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
3550
3551 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
3552
3553 * v850-tdep.c (v850_type_is_scalar): New function.
3554 (v850_use_struct_convention): Match current gcc implementation
3555 as close as possible.
3556 (v850_push_arguments): Fix stack_offset handling. Don't write
3557 struct_addr into register. This is done by v850_store_struct_return.
3558 (v850_extract_return_value): Care for structs.
3559 (v850_store_return_value): Ditto.
3560 (v850_store_struct_return): Actually write address.
3561
3562 2002-06-11 Michal Ludvig <mludvig@suse.cz>
3563
3564 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
3565 without debug information too.
3566
3567 2002-06-10 Andrew Cagney <ac131313@redhat.com>
3568
3569 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
3570 Make multi-arch pure.
3571 * gdbarch.h, gdbarch.c: Re-generate.
3572 * arm-tdep.c (arm_print_float_info): Update.
3573 * arch-utils.h (default_print_float_info): Update.
3574 * arch-utils.c (default_print_float_info): Update.
3575 * infcmd.c (float_info): Update call.
3576
3577 2002-06-10 Andrew Cagney <ac131313@redhat.com>
3578
3579 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
3580 the front of the initialize list.
3581
3582 2002-06-10 Andrew Cagney <ac131313@redhat.com>
3583
3584 * infrun.c (struct inferior_status): Replace fields
3585 selected_frame_address and selected_level with field
3586 selected_frame_id.
3587 (save_inferior_status): Update. Use get_frame_id.
3588 (struct restore_selected_frame_args): Delete.
3589 (restore_selected_frame): Update. Use frame_find_by_id.
3590 (restore_inferior_status): Update.
3591
3592 * breakpoint.h (struct breakpoint): Change type of
3593 watchpoint_frame to frame_id.
3594 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
3595 call to get_current_frame.
3596 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
3597 get_current_frame.
3598 (watchpoint_check): Use frame_find_by_id.
3599
3600 * frame.h (record_selected_frame): Delete declaration.
3601 * stack.c (record_selected_frame): Delete function.
3602
3603 * frame.h (struct frame_id): Define.
3604 (get_frame_id): Declare.
3605 (frame_find_by_id): Declare.
3606 * frame.c (frame_find_by_id): New function.
3607 (get_frame_id): New function.
3608
3609 2002-06-10 Andrey Volkov <avolkov@transas.com>
3610
3611 * ser-e7kpc.c: Fix duplicated define and call of
3612 _initialize_ser_e7000pc
3613
3614 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
3615
3616 * signals/signals.c (target_signal_from_host): Fix #ifdef
3617 SIGRTMIN case.
3618 (do_target_signal_to_host): Likewise.
3619
3620 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
3621
3622 * mips-tdep.c (mips_find_abi_section): New function.
3623 (mips_gdbarch_init): Call it.
3624
3625 2002-06-09 Mark Kettenis <kettenis@gnu.org>
3626
3627 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
3628 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
3629 after Andrew's 2002-06-08 gdbarch change.
3630
3631 2002-06-09 Mark Kettenis <kettenis@gnu.org>
3632
3633 * i386-linux-nat.c (suppy_gregset): Don't supply
3634 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
3635 register cache.
3636 (fill_gregset): Don't fetch it under the same circumstances.
3637
3638 2002-06-09 Andrew Cagney <cagney@redhat.com>
3639
3640 * Makefile.in (callback_h): Define.
3641 (remote_sim_h): Update path to remote-sim.h.
3642 (remote-rdp.o): Add $(callback_h).
3643 (remote-sim.o): Use $(callback_h).
3644 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
3645 * remote-rdp.c: Include "gdb/callback.h".
3646
3647 2002-06-09 Mark Kettenis <kettenis@gnu.org>
3648
3649 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
3650 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
3651
3652 2002-06-08 Andrew Cagney <ac131313@redhat.com>
3653
3654 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
3655 * rdi-share/serpardr.c: Ditto.
3656 * rdi-share/unixcomm.c: Ditto.
3657 * rdi-share/serdrv.c: Ditto.
3658 * rdi-share/hostchan.h: Ditto.
3659 * rdi-share/hostchan.c: Ditto.
3660 * rdi-share/host.h: Ditto.
3661 * rdi-share/devsw.c: Ditto.
3662
3663 * objfiles.h: Change type of obj_private to void pointer.
3664 * pa64solib.c: Update copyright. Don't include "assert.h", use
3665 strcmp instead of STREQ, use LONGEST, do not use PTR
3666 * somsolib.c: Ditto.
3667
3668 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
3669 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
3670 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
3671
3672 2002-06-08 Andrew Cagney <ac131313@redhat.com>
3673
3674 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
3675 (default_get_saved_register): Delete function.
3676 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
3677 generic_unwind_get_saved_register.
3678 * gdbarch.h, gdbarch.c: Re-generate.
3679
3680 2002-06-08 Andrew Cagney <ac131313@redhat.com>
3681
3682 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
3683 generic_func_frame_chain_valid.
3684 * gdbarch.h, gdbarch.c: Re-generate.
3685 * blockframe.c (generic_func_frame_chain_valid): Only check
3686 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
3687 passing FP to PC_IN_CALL_DUMMY.
3688 Fix PR gdb/360.
3689
3690 2002-06-08 Andrew Cagney <ac131313@redhat.com>
3691
3692 * gdbarch.sh (struct gdbarch_data): Add field init_p.
3693 (register_gdbarch_data): Initialize init_p.
3694 (gdbarch_data): Initialize data pointer using the init function.
3695 (init_gdbarch_data): Delete function.
3696 (gdbarch_update_p): Update.
3697 (initialize_non_multiarch): Update.
3698 (struct gdbarch): Add field initialized_p.
3699 * gdbarch.h, gdbarch.c: Re-generate.
3700
3701 2002-06-07 Michal Ludvig <mludvig@suse.cz>
3702
3703 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
3704 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
3705 better do the things actually here.
3706 * x86-64-tdep.c (x86_64_register_name2nr): New.
3707 (x86_64_register_name): Renamed to x86_64_register_nr2name.
3708 (x86_64_gdbarch_init): Respect the above change.
3709 * x86-64-tdep.h (x86_64_register_name2nr)
3710 (x86_64_register_nr2name): Add prototypes.
3711 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
3712
3713 2002-06-06 Michael Snyder <msnyder@redhat.com>
3714
3715 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
3716 Delete extra braces and re-indent.
3717 (d10v_store_return_value): Char return values
3718 must be shifted over by one byte in R0.
3719 (d10v_extract_return_value): Delete extra braces, re-indent.
3720
3721 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
3722
3723 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
3724 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
3725 (d10v_integer_to_address): Rewrite.
3726 (d10v_frame_init_saved_regs): When reading fp and sp registers use
3727 the d10v specific functions which take care of converting to the
3728 correct space.
3729
3730 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
3731
3732 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
3733 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
3734
3735 2002-06-02 Andrew Cagney <ac131313@redhat.com>
3736
3737 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
3738 includes.
3739 * config/tm-linux.h: Ditto.
3740 * config/alpha/tm-alphalinux.h: Ditto.
3741 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
3742 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
3743 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
3744 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
3745 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
3746 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
3747 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
3748 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
3749 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
3750 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
3751 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
3752 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
3753 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
3754 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
3755 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
3756 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
3757 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
3758 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
3759 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
3760 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
3761 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
3762 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
3763 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
3764 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
3765 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
3766 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
3767 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
3768 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
3769 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
3770 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
3771 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
3772 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
3773 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
3774 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
3775 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
3776 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
3777 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
3778
3779 2002-05-04 Aidan Skinner <aidan@velvet.net>
3780
3781 * ada-exp.tab.c: New file
3782 * ada-exp.y: New file
3783 * ada-lang.c: New file
3784 * ada-lang.h: New file
3785 * ada-lex.c: New file
3786 * ada-lex.l: New file
3787 * ada-tasks.c: New file
3788 * ada-typeprint.c: New file
3789 * ada-valprint.c: New file
3790
3791 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
3792
3793 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
3794 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
3795
3796 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
3797
3798 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
3799 insetead of ppc-linux-tdep.o.
3800 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
3801 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
3802
3803 2002-06-02 Andrew Cagney <ac131313@redhat.com>
3804
3805 2002-05-07 Christian Groessler <chris@groessler.org>
3806 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
3807 bit register contents for little endian hosts.
3808
3809 2002-06-01 Andrew Cagney <ac131313@redhat.com>
3810
3811 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
3812 any maintainer.
3813
3814 2002-06-01 Andrew Cagney <ac131313@redhat.com>
3815
3816 * gdbarch.h: Regenerate.
3817
3818 2002-06-01 Andrew Cagney <ac131313@redhat.com>
3819
3820 * MAINTAINERS: Add everyone to write-after-approval list.
3821
3822 2002-06-01 Andrew Cagney <ac131313@redhat.com>
3823
3824 * stack.c (frame_info): Use frame_register_unwind instead of
3825 saved_regs. Mention when the SP is on the stack or in a register.
3826
3827 * frame.h (frame_register_unwind_ftype): Define. Document.
3828 (struct frame_info): Add field register_unwind and
3829 register_unwind_cache.
3830 (frame_register_unwind): Declare.
3831 (generic_unwind_get_saved_register): Declare.
3832
3833 * frame.c (frame_register_unwind): New function.
3834 (generic_unwind_get_saved_register): New function.
3835
3836 * blockframe.c (generic_call_dummy_register_unwind): New function.
3837 (frame_saved_regs_register_unwind): New function.
3838 (set_unwind_by_pc): New function.
3839 (create_new_frame): New function.
3840 (get_prev_frame): New function.
3841
3842 2002-05-30 Andrew Cagney <ac131313@redhat.com>
3843
3844 * a29k-share/: Delete directory.
3845 * remote-vx29k.c: Delete file.
3846
3847 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
3848
3849 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
3850 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
3851
3852 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
3853
3854 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
3855 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
3856 (sparc64nbsd-nat.o)
3857 (sparcnbsd-nat.o)
3858 (sparcnbsd-tdep.o): New dependency lists.
3859 * NEWS: Note new UltraSPARC NetBSD native configuration.
3860 * configure.host (sparc64-*-netbsd*): New host.
3861 * configure.tgt (sparc-*-netbsdelf*)
3862 (sparc-*-netbsd*): Set gdb_target to nbsd.
3863 (sparc64-*-netbsd*): New target.
3864 * sparc64nbsd-nat.c: New file.
3865 * sparcnbsd-nat.c: New file.
3866 * sparcnbsd-tdep.c: New file.
3867 * sparcnbsd-tdep.h: New file.
3868 * config/sparc/nbsd.mt: New file.
3869 * config/sparc/nbsd64.mh: New file.
3870 * config/sparc/nbsd64.mt: New file.
3871 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
3872 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
3873 (HOST_IPC): Remove.
3874 * config/sparc/nbsdaout.mt: Remove.
3875 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
3876 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
3877 (HOST_IPC): Remove.
3878 * config/sparc/nbsdelf.mt: Remove.
3879 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
3880 sparc-nat.c compatiblity defines.
3881 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
3882 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
3883 * config/sparc/tm-nbsd64.h: New file.
3884 * config/sparc/tm-nbsdaout.h: Remove.
3885 * config/sparc/xm-nbsd.h: Remove.
3886
3887 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
3888
3889 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
3890 * sparc-tdep.c: Include osabi.h.
3891 (gdbarch_tdep): Add osabi member.
3892 (_initialize_sparc_tdep): Use gdbarch_register.
3893 (sparc_gdbarch_init): Use generic OS ABI framework.
3894 (sparc_dump_tdep): New function.
3895
3896 2002-05-30 Kevin Buettner <kevinb@redhat.com>
3897
3898 * corefile.c (do_captured_read_memory_integer): Return non-zero
3899 result.
3900 (safe_read_memory_integer): Copy result of memory read when
3901 status is non-zero. Also, add comments.
3902
3903 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
3904
3905 * Makefile.in (ppc_tdep_h): Define.
3906 (ppc-linux-nat.o)
3907 (ppc-linux-tdep.o)
3908 (rs6000-tdep.o): Use $(ppc_tdep_h).
3909 (ppc-sysv-tdep.o)
3910 (ppcnbsd-nat.o)
3911 (ppcnbsd-tdep.o): New dependency lists.
3912 * ppc-tdep.h: Use generic OS ABI framework.
3913 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
3914 (ppc_linux_init_abi): New functions.
3915 (ppc_sysv_abi_broken_use_struct_convention)
3916 (ppc_sysv_abi_use_struct_convention)
3917 (ppc_sysv_abi_push_arguments): Move to...
3918 * ppc-sysv-tdep.c: ...here.
3919 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
3920 * rs6000-tdep.c (process_note_abi_tag_sections)
3921 (get_elfosabi): Remove.
3922 (rs6000_gdbarch_init): Use generic OS ABI framework.
3923 (rs6000_dump_tdep): New function.
3924 (_initialize_rs6000_tdep): Use gdbarch_register.
3925 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
3926 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
3927 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
3928 of ppc-linux-tdep.o.
3929 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
3930 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
3931 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
3932 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
3933 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
3934 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
3935
3936 2002-05-29 Jim Blandy <jimb@redhat.com>
3937
3938 * macroscope.c (default_macro_scope): Put `void' in empty argument
3939 list.
3940
3941 2002-05-29 Andrew Cagney <ac131313@redhat.com>
3942
3943 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
3944 * arch-utils.c: Include "sim-regno.h".
3945 * gdbarch.sh: Don't include "sim-regno.h".
3946 * gdbarch.h, gdbarch.c: Regenerate.
3947 * sim-regno.h (legacy_register_sim_regno): Move declaration from
3948 here.
3949 * arch-utils.h (legacy_register_sim_regno): To here.
3950 * remote-sim.c (legacy_register_sim_regno): Move function from
3951 here.
3952 * arch-utils.c (legacy_register_sim_regno): To here.
3953
3954 2002-05-28 Andrew Cagney <ac131313@redhat.com>
3955
3956 * sim-regno.h: New file.
3957 * Makefile.in (sim_regno_h): Define.
3958 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
3959 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
3960 (legacy_register_sim_regno): New function.
3961 (one2one_register_sim_regno): New function.
3962 (gdbsim_fetch_register): Rewrite.
3963 (gdbsim_store_register): Only store a register when
3964 REGISTER_SIM_REGNO is valid.
3965 * d10v-tdep.c: Include "sim-regno.h".
3966 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
3967 (d10v_ts3_register_sim_regno): Ditto.
3968 * gdbarch.sh: Include "sim-regno.h".
3969 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
3970 * gdbarch.h, gdbarch.c: Regenerate.
3971 * arch-utils.h (default_register_sim_regno): Delete declaration.
3972 * arch-utils.c (default_register_sim_regno): Delete function.
3973
3974 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
3975
3976 * ppcnbsd-nat.c: Rewrite.
3977 * ppcnbsd-tdep.c: New file.
3978 * ppcnbsd-tdep.h: New file.
3979 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
3980 solib.o, and solib-svr4.o.
3981 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
3982 nbsd-tdep.o, and corelow.o.
3983
3984 2002-05-28 Andrew Cagney <ac131313@redhat.com>
3985
3986 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
3987 `tr' and `sed'. Mention that `broken' targets are not expected to
3988 build.
3989
3990 2002-05-27 Michal Ludvig <mludvig@suse.cz>
3991
3992 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
3993 Let PC point right after the prologue before looking up symbols.
3994
3995 2002-05-27 Martin M. Hunt <hunt@redhat.com>
3996
3997 * i386-tdep.c (i386_register_virtual_type): Return
3998 builtin_type_vec128i for SSE registers.
3999
4000 * gdbtypes.h (builtin_type_vec128i): Declare.
4001
4002 * gdbtypes.c (build_builtin_type_vec128i): New function.
4003 (builtin_type_v2_double, builtin_type_v4_int64): New types.
4004 (builtin_type_vec128i): New type for SSE2 128-bit registers.
4005 (build_gdbtypes): Initialize new builtin vector types.
4006 (_initialize_gdbtypes): Register new vector types with gdbarch.
4007
4008 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4009
4010 * MAINTAINERS: ns32k is not longer an obsolete candidate,
4011 since it has been multi-arch'd.
4012 * NEWS: Note that ns32k-*-* is now partial multi-arch.
4013 Move Alpha and VAX multi-arch news entries to same section
4014 as other multi-arch news.
4015
4016 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4017
4018 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
4019 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
4020 static. Rename some register numbers to put them in ns32k-tdep
4021 private namespace.
4022 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
4023 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
4024 functions.
4025 (_initialize_ns32k_tdep): Use gdbarch_register.
4026 * ns32k-tdep.h: New file.
4027 * ns32knbsd-tdep.c: New file.
4028 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
4029 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
4030 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
4031 REGISTER_BYTES, REGISTER_BYTE): Remove.
4032 * config/ns32k/tm-ns32k.h: New file.
4033 * config/ns32k/tm-umax.h: Remove.
4034
4035 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4036
4037 * ns32k-tdep.c (ns32k_saved_pc_after_call,
4038 ns32k_store_struct_return, ns32k_extract_return_value,
4039 ns32k_store_return_value, ns32k_extract_struct_value_address): New
4040 functions.
4041 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
4042 ns32k_saved_pc_after_call.
4043 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
4044 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
4045 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
4046 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
4047 ns32k_extract_struct_value_address.
4048
4049 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4050
4051 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
4052 ns32k_fix_call_dummy): New.
4053 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
4054 ns32k_call_dummy_words.
4055 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
4056 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
4057 CALL_DUMMY_NARGS): Remove.
4058 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
4059
4060 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4061
4062 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
4063 ns32k_frame_saved_pc, ns32k_frame_args_address,
4064 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
4065 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
4066 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
4067 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
4068 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
4069 (BREAKPOINT): Remove..
4070 (FRAME_CHAIN): Define as ns32k_frame_chain.
4071 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
4072 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
4073 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
4074 (FRAME_FIND_SAVED_REGS): Remove.
4075 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
4076 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
4077 (POP_FRAME): Define as ns32k_pop_frame.
4078
4079 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4080
4081 * ns32k-tdep.c (ns32k_register_byte_32082,
4082 ns32k_register_byte_32382, ns32k_register_raw_size,
4083 ns32k_register_virtual_size, ns32k_register_virtual_type): New
4084 functions.
4085 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
4086 ns32k_register_byte_32382.
4087 * config/ns32k/tm-umax.h: Update copyright years.
4088 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
4089 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
4090 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
4091 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
4092 (ns32k_get_enter_addr): Fix prototype.
4093
4094 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4095
4096 * ns32k-tdep.c: Update copyright years.
4097 (ns32k_register_name_32082): New function.
4098 (ns32k_register_name_32382): Ditto.
4099 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
4100 (REGISTER_NAME): Define as ns32k_register_name_32382.
4101 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
4102 (REGISTER_NAME): Define as ns32k_register_name_32082.
4103
4104 2002-05-24 Jim Blandy <jimb@redhat.com>
4105
4106 * dwarf2read.c (free_line_header): Use xfree, not free.
4107
4108 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
4109
4110 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
4111 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
4112
4113 2002-05-23 Andrew Cagney <ac131313@redhat.com>
4114
4115 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
4116
4117 2002-05-23 Andrew Cagney <ac131313@redhat.com>
4118
4119 From Ross Alexander at NEC Europe:
4120 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
4121
4122 2002-05-23 Michael Snyder <msnyder@redhat.com>
4123
4124 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
4125 for input, rather than parse_and_eval_address.
4126
4127 2002-05-23 Andrew Cagney <ac131313@redhat.com>
4128
4129 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
4130 * Makefile.in (sim_d10v_h): Update definition.
4131
4132 2002-05-24 Andrew Cagney <cagney@redhat.com>
4133
4134 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
4135 change `2002-05-22 Michael Snyder' below.
4136 (d10v_push_arguments): Ditto.
4137 (d10v_extract_return_value): Ditto.
4138
4139 2002-05-23 Jim Blandy <jimb@redhat.com>
4140
4141 * macrotab.c (check_for_redefinition): Don't complain if the new
4142 definition is the same as the previous one. Take more arguments
4143 to allow the comparison.
4144 (macro_define_object, macro_define_function): Pass more arguments
4145 to check_for_redefinition.
4146
4147 2002-05-22 Michael Snyder <msnyder@redhat.com>
4148
4149 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
4150 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
4151 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
4152 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
4153 Don't bail if return_pc is PC_IN_CALL_DUMMY.
4154 Add a temp variable to save a call (and a memory read).
4155 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
4156 if possible (so that PC_IN_CALL_DUMMY will work).
4157
4158 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
4159
4160 * MAINTAINERS: Remove status `OBSOLETE' from v850.
4161
4162 2002-05-22 Michal Ludvig <mludvig@suse.cz>
4163
4164 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
4165 fde->cie_ptr.
4166 (dwarf2_build_frame_info): Corrected handling of eh_frame.
4167 (dwarf2_build_frame_info): Add offset to fde->initial_location
4168 so that frames of shared libraries are mapped correctly.
4169 (execute_stack_op): Change type of 'result' from ULONGEST to
4170 CORE_ADDR.
4171
4172 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4173
4174 * config/alpha/tm-nbsd.h: Include solib.h.
4175
4176 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4177
4178 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
4179 assumptions about the host's byte order.
4180
4181 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4182
4183 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
4184 to dependency list.
4185 * alphanbsd-tdep.c: Include solib-svr4.h.
4186 * shnbsd-tdep.c: Ditto.
4187
4188 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4189
4190 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
4191 nbsd-tdep.h to dependency list.
4192 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
4193 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
4194 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
4195 nbsdaout.mh and nbsdelf.mh consistently.
4196 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
4197 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
4198 nbsdaout.mt and nbsdelf.mh consistently.
4199 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
4200 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
4201 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
4202 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
4203 a.out shared library stuff from here...
4204 * config/nm-nbsdaout.h: ...to here.
4205 * config/tm-nbsd.h: Remove.
4206 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
4207 * config/arm/nbsd.mh: Remove.
4208 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
4209 nbsd-tdep.o.
4210 * config/arm/nbsdaout.mh: New file.
4211 * config/arm/nbsdelf.mh: New file.
4212 * config/arm/nm-nbsdaout.h: New file.
4213 * config/i386/nbsd.mh: Remove.
4214 * config/i386/nbsd.mt: Remove.
4215 * config/i386/nbsdaout.mh: New file.
4216 * config/i386/nbsdaout.mt: New file.
4217 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
4218 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
4219 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
4220 i386_register_u_addr): Remove.
4221 * config/i386/nm-nbsdaout.h: New file.
4222 * config/i386/nm-nbsdelf.h: Remove.
4223 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
4224 (USE_STRUCT_CONVENTION): Remove.
4225 * config/i386/tm-nbsdaout.h: New file.
4226 * config/i386/tm-nbsdelf.h: Remove.
4227 * config/m68k/nbsd.mh: Remove.
4228 * config/m68k/nbsd.mt: Remove.
4229 * config/m68k/nbsdaout.mh: New file.
4230 * config/m68k/nbsdaout.mt: New file.
4231 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
4232 * config/m68k/nm-nbsdaout.h: New file.
4233 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
4234 (IN_SOLIB_CALL_TRAMPOLINE): Define.
4235 * config/ns32k/nbsd.mh: Remove.
4236 * config/ns32k/nbsd.mt: Remove.
4237 * config/ns32k/nbsdaout.mh: New file.
4238 * config/ns32k/nbsdaout.mt: New file.
4239 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
4240 * config/ns32k/nm-nbsdaout.h: New file.
4241 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
4242 (IN_SOLIB_CALL_TRAMPOLINE): Define.
4243 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
4244 (SVR4_SHARED_LIBS): Remove.
4245 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
4246 * config/sparc/nbsd.mh: Remove.
4247 * config/sparc/nbsd.mt: Remove.
4248 * config/sparc/nbsdaout.mh: New file.
4249 * config/sparc/nbsdaout.mt: New file.
4250 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
4251 * config/sparc/nbsdelf.mt: New file.
4252 * config/sparc/nm-nbsdaout.h: New file.
4253 * config/sparc/nm-nbsdelf.h: Remove.
4254 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
4255 * config/sparc/tm-nbsdaout.h: New file.
4256
4257 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4258
4259 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
4260 mipsnbsd-tdep.c
4261 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
4262
4263 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4264
4265 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
4266 shnbsd-nat.c.
4267 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
4268
4269 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4270
4271 * NEWS: Note new MIPS NetBSD native configuration.
4272 * configure.host (mips*-*-netbsd*): New host.
4273 * configure.tgt (mips*-*-netbsd*): New target.
4274 * mipsnbsd-nat.c: New file.
4275 * mipsnbsd-tdep.c: New file.
4276 * mipsnbsd-tdep.h: New file.
4277 * config/mips/nbsd.mh: New file.
4278 * config/mips/nbsd.mt: New file.
4279 * config/mips/nm-nbsd.h: New file.
4280 * config/mips/tm-nbsd.h: New file.
4281
4282 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4283
4284 * Makefile.in (SFILES): Add osabi.c.
4285 (COMMON_OBS): Add osabi.o.
4286 (osabi.o): New dependency list.
4287 * osabi.c: New file.
4288 * osabi.h: New file.
4289 * doc/gdbint.texinfo: Document new generic OS ABI framework.
4290
4291 * Makefile.in (alpha_tdep_h): Define and use instead of
4292 alpha-tdep.h.
4293 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
4294 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
4295 Remove.
4296 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
4297 * alpha-tdep.h: Include osabi.h.
4298 (alpha_abi): Remove.
4299 (gdbarch_tdep): Use generic OS ABI framework.
4300 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
4301 gdbarch_register_osabi.
4302 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
4303 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
4304 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
4305
4306 * Makefile.in (sh_tdep_h): Add osabi.h.
4307 * sh-tdep.h (sh_osabi): Remove.
4308 (gdbarch_tdep): Use generic OS ABI framework.
4309 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
4310 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
4311 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
4312 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
4313
4314 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
4315 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
4316 gdbarch_register_osabi.
4317 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
4318 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
4319 (get_elfosabi): Rename to...
4320 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
4321 ABI framework support routines.
4322 (arm_gdbarch_init): Use generic OS ABI framework.
4323 (arm_dump_tdep): Likewise.
4324 (_initialize_arm_tdep): Likewise.
4325 * arm-tdep.h: Include osabi.h.
4326 (arm_abi): Remove.
4327 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
4328 osabi member.
4329 (arm_gdbarch_register_os_abi): Remove prototype.
4330 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
4331 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
4332
4333 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
4334 * mips-tdep.c: Include osabi.h.
4335 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
4336 OS ABI framework.
4337
4338 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
4339
4340 * h8300-tdep.c: Fix formatting.
4341
4342 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
4343
4344 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
4345 printing vector registers.
4346
4347 2002-05-19 Andrew Cagney <ac131313@redhat.com>
4348
4349 From Fernando Nasser:
4350 * remote.c (remote_async_open_1): Re-throw the exception when the
4351 connection fails.
4352 (remote_cisco_open): Ditto.
4353 (remote_open_1): Ditto.
4354
4355 2002-05-19 Andrew Cagney <ac131313@redhat.com>
4356
4357 * remote.c (remote_start_remote_dummy): Add uiout parameter.
4358 (remote_start_remote): Add uiout parameter. Pass through to
4359 remote_start_remote_dummy.
4360 (remote_open_1): Use catch_exception instead of catch_errors.
4361 (remote_async_open_1): Ditto.
4362 (remote_cisco_open): Ditto.
4363
4364 2002-05-19 Andrew Cagney <ac131313@redhat.com>
4365
4366 * remote.c (remote_start_remote): Replace PTR with void pointer.
4367 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
4368 static.
4369
4370 2002-05-18 Andrew Cagney <ac131313@redhat.com>
4371
4372 * gdb_indent.sh: Allow the script to be run in the sim directory.
4373
4374 2002-05-18 Mark Kettenis <kettenis@gnu.org>
4375
4376 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
4377 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
4378
4379 * corelow.c (core_open): Only call set_gdbarch_from_file if
4380 exec_bfd is NULL.
4381
4382 2002-05-17 Andrey Volkov <avolkov@transas.com>
4383
4384 * h8300-tdep.c: Add support of EXR register
4385 * config/h8300/tm-h8300.h: Ditto.
4386
4387 2002-05-17 Andrey Volkov <avolkov@transas.com>
4388
4389 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
4390
4391 2002-05-17 Andrey Volkov <avolkov@transas.com>
4392
4393 * h8300-tdep.c: Change literal regnums to REGNO.
4394
4395 2002-05-17 Jim Blandy <jimb@redhat.com>
4396
4397 * NEWS: Note addition of macro support.
4398
4399 Expand preprocessor macros in C expressions.
4400 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
4401 (scan_macro_expansion, scanning_macro_expansion,
4402 finished_macro_expansion): New function declarations.
4403 (expression_macro_lookup_func, expression_macro_lookup_baton): New
4404 variable declarations.
4405 * parser-defs.h (expression_context_pc): New declaration.
4406 * parse.c (expression_context_pc): New variable.
4407 (parse_exp_1): Set expression_context_pc, as well as
4408 expression_context_block.
4409 * c-exp.y (yylex): If we're not already reading the result of a
4410 macro expansion, try to macro-expand the next token. When we're
4411 done scanning a macro expansion, switch back to the mainline text.
4412 Commas and `if's in a macro's expansion don't terminate the input.
4413 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
4414 (macro_original_text, macro_expanded_text,
4415 expression_macro_lookup_func, expression_macro_lookup_baton): New
4416 variables.
4417 (scan_macro_expansion, scanning_macro_expansion,
4418 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
4419 c_preprocess_and_parse): New functions.
4420 (c_language_defn, cplus_language_defn, asm_language_defn): Call
4421 c_preprocess_and_parse, instead of c_parse.
4422 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
4423 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
4424
4425 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
4426
4427 * sh-tdep.c (gdb_print_insn_sh64): Delete.
4428 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
4429 (sh_gdbarch_init): Always use gdb_print_insn_sh.
4430
4431 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
4432
4433 * NEWS: Add section for multi-arched targets. Add v850 to that section.
4434
4435 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
4436
4437 * Makefile.in (sh_tdep_h): Define and use.
4438 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
4439 register enum): Move to...
4440 * * sh-tdep.h: ...here.
4441 * sh-tdep.c: Include sh-tdep.h.
4442 * sh3-rom.c: Likewise.
4443 * shnbsd-tdep.c: Likewise.
4444
4445 2002-05-16 Michael Snyder <msnyder@redhat.com>
4446
4447 * arm-tdep.c: Spelling fix in comment.
4448
4449 2002-05-16 Jim Blandy <jimb@redhat.com>
4450
4451 Add commands for manually expanding macros and showing their
4452 definitions.
4453 * macrocmd.c, macroscope.c, macroscope.h: New files.
4454 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
4455 (macroscope_h): New variable.
4456 (HFILES_NO_SRCDIR): Add macroscope.h.
4457 (COMMON_OBS): Add macrocmd.o, macroscope.o.
4458 (macroscope.o, macrocmd.o): New rules.
4459
4460 Teach the Dwarf 2 reader to read macro information.
4461 * dwarf2read.c: #include "macrotab.h".
4462 (dwarf_macinfo_buffer): New variable.
4463 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
4464 dwarf_macinfo_size.
4465 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
4466 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
4467 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
4468 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
4469 dwarf2_macro_spaces_in_definition): New complaints.
4470 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
4471 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
4472 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
4473 the partial symbol table.
4474 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
4475 from what's recorded in the partial symbol table.
4476 (read_file_scope): If the compilation unit has a
4477 `DW_AT_macro_info' attribute, read its macro information.
4478 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
4479
4480 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
4481
4482 Fix PR gdb/546
4483 * ser-tcp.c: Don't include <netinet/udp.h>.
4484
4485 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
4486
4487 * MAINTAINERS: Update my email address.
4488
4489 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
4490
4491 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
4492 include file of the same name.
4493
4494 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
4495
4496 * configure.tgt: Mark v850 as multi-arched.
4497 * config/v850/tm-v850.h: Remove file.
4498 * config/v850/v850.mt: Eliminate TM_FILE.
4499
4500 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
4501
4502 * v850-tdep.c: Full multi-arch.
4503 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
4504 Define GDB_MULTI_ARCH to 2.
4505
4506 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
4507
4508 * p-exp.y (current_type): New static variable.
4509 Carries the type of the expression at the position that is parsed.
4510 (push_current_type, pop_current_type): Two new functions. Used
4511 to store/restore current_type in expression on specific tokens.
4512 (search_field): New static variable. Set to one after parsing a point
4513 as at that point only a FIELDNAME token should be searched.
4514 (FIELDNAME): New token. After a point only a token belonging to
4515 current_type type definition is allowed.
4516 (all over token rules): reset and change current_type according
4517 to rules.
4518 (exp '[' rule): insert implicit array index field if
4519 exp is a pascal string type.
4520
4521 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
4522
4523 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
4524 frame info. Use frame_info's saved_regs instead of matching member
4525 in extra_frame_info throughout.
4526 (v850_frame_init_saved_regs): New function.
4527 (v850_init_extra_frame_info): Move most functionality into
4528 v850_frame_init_saved_regs().
4529 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
4530 (v850_frame_find_saved_regs): Remove declaration.
4531 (FRAME_FIND_SAVED_REGS): Remove definition.
4532 (v850_frame_init_saved_regs): Add declaration.
4533 (FRAME_INIT_SAVED_REGS): Add definition.
4534
4535 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
4536
4537 * v850-tdep.c: Begin multi-arch'ing v850.
4538 (v850_target_architecture_hook): Remove function.
4539 (v850_gdbarch_init): New function. Add code previously in
4540 v850_target_architecture_hook().
4541 (_initialize_v850_tdep): Don't set target_architecture_hook.
4542 Call register_gdbarch_init() instead.
4543
4544 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
4545
4546 * gdbtypes.h (struct cplus_struct_type): Remove args field.
4547 * hpread.c (hpread_read_struct_type): Remove assignments to args.
4548 (fixup_class_method_type): Likewise.
4549
4550 2002-05-15 Daniel Jacobowitz <drow@mvista.com>
4551
4552 From Martin Pool <mbp@samba.org>:
4553 * gdbserver/server.c (gdbserver_usage): New function.
4554 (main): Call it.
4555
4556 2002-05-15 Jim Blandy <jimb@redhat.com>
4557
4558 Add macro structures to GDB's symbol tables. Nobody puts anything
4559 in them yet.
4560 * symtab.h (struct symtab): New member: `macro_table'.
4561 * buildsym.h (pending_macros): New global variable.
4562 * buildsym.c: #include "macrotab.h".
4563 (buildsym_init): Initialize `pending_macros'.
4564 (end_symtab): If we found macro information while reading a CU's
4565 debugging info, do build a symtab structure for it. Make the
4566 symtab point to the macro information, and clear the
4567 `pending_macros' pointer which held it while we were reading the
4568 debug info.
4569 (really_free_pendings): Free any pending macro table.
4570 * objfiles.h (struct objfile): New member: `macro_cache'.
4571 * objfiles.c (allocate_objfile): Set allocate and free functions
4572 for the macro cache's objstack.
4573 (free_objfile): Empty the macro cache's obstack.
4574 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
4575 set new allocate and free functions for it.
4576 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
4577 free functions for the macro cache's objstack. (Why is this
4578 function building its own objfile?)
4579 * symmisc.c (print_objfile_statistics): Print statistics on the
4580 macro bcache.
4581 * Makefile.in: Note that buildsym.o depends on macrotab.h.
4582
4583 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
4584
4585 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
4586 (REGISTER_U_ADDR): Delete definition.
4587 (arm_register_u_addr): Delete declaration.
4588
4589 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
4590
4591 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
4592 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
4593
4594 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
4595
4596 * gdbserver/mem-break.c (reinsert_breakpoint_by_bp): Correct typo
4597 stop_at -> stop_pc.
4598
4599 2002-05-14 Andrew Cagney <ac131313@redhat.com>
4600
4601 * regcache.c (register_valid): Revise comments refering to "Not
4602 available" and "unavailable".
4603 * frame.c (frame_register_read): Ditto.
4604 * findvar.c (value_of_register): Ditto.
4605
4606 2002-05-15 Andrew Cagney <cagney@redhat.com>
4607
4608 * Makefile.in (remote_sim_h): Replace remote-sim_h.
4609 (remote-sim.o): Update dependencies.
4610 (d10v-tdep.o): Specify dependencies.
4611 (sim_d10v_h): Define.
4612
4613 2002-05-14 Jim Blandy <jimb@redhat.com>
4614
4615 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
4616 * macrotab.c (macro_lookup_inclusion, find_definition,
4617 new_macro_table): Same.
4618
4619 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
4620 not `! strcmp ()'. This is a dubious improvement.
4621 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
4622
4623 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
4624 although it's not necessary, to avoid a warning.
4625
4626 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
4627
4628 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
4629 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
4630 TYPE_INSTANCE_FLAGS.
4631 (struct main_type): New.
4632 (struct type): Move most members to struct main_type. Change
4633 cv_type and as_type to new type_chain member. Add instance_flags.
4634 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
4635 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
4636 (finish_cv_type): Remove prototype.
4637 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
4638 Set TYPE_CHAIN.
4639 (alloc_type_instance): New function.
4640 (smash_type): New function.
4641 (make_pointer_type, make_reference_type, make_function_type)
4642 (smash_to_member_type, smash_to_method_type): Call smash_type.
4643 (make_qualified_type): New function.
4644 (make_type_with_address_space): Call make_qualified_type.
4645 (make_cv_type): Likewise.
4646 (finish_cv_type): Remove unnecessary function.
4647 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
4648 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
4649 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
4650 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
4651 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
4652 * hpread.c (hpread_read_struct_type): Likewise.
4653 * stabsread.c (read_struct_type): Likewise.
4654
4655 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
4656
4657 * configure.tgt: Add a catch all sh* target, for cases like
4658 sh[2,3,4]-elf and sh-hms.
4659
4660 2002-05-14 Keith Seitz <keiths@redhat.com>
4661
4662 * event-loop.c (create_file_handler): Don't do anything but
4663 update data when we are given a fd which we are already
4664 monitoring.
4665
4666 2002-05-14 Michal Ludvig <mludvig@suse.cz>
4667
4668 * dwarf2cfi.c (context_cpy): Copy registers correctly.
4669 (update_context): Use __func__ in warnings.
4670
4671 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
4672
4673 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
4674 and tcp_close to net_open and net_close.
4675 (net_open): Accept "udp:" and "tcp:" specifications. Connect
4676 using UDP if requested. Don't try to disable Nagle on UDP
4677 sockets.
4678 * remote.c (remote_serial_open): New function. Warn about UDP.
4679 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
4680
4681 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
4682
4683 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
4684
4685 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
4686
4687 * configure.tgt: Remove sh-hms target.
4688 * MAINTAINERS: Don't list sh-hms as a separate target.
4689
4690 2002-05-13 Jim Blandy <jimb@redhat.com>
4691
4692 Add first preprocessor macro-expansion files.
4693 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
4694 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
4695 (splay_tree_h, macroexp_h, macrotab_h): New variable.
4696 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
4697 (COMMON_OBS): Add macrotab.o, macroexp.o.
4698 (macroexp.o, macrotab.o): New rules.
4699
4700 2002-05-13 Andrew Cagney <ac131313@redhat.com>
4701
4702 * config/m88k/tm-m88k.h: Update copyright.
4703 (m88k_target_write_pc): Declare
4704 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
4705 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
4706 (SHIFT_INST_REGS): Update definition.
4707 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
4708 using old definition of TARGET_WRITE_PC.
4709 * regcache.c (generic_target_write_pc): Delete code handling
4710 NNPC_REGNUM.
4711 * gdbarch.sh (NNPC_REGNUM): Delete.
4712 * gdbarch.h, gdbarch.c: Regenerate.
4713
4714 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
4715
4716 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
4717 builtin reg number.
4718
4719 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
4720
4721 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
4722 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
4723 (gen_address_of, gen_struct_ref, gen_repeat): Use type
4724 access macros.
4725 * c-typeprint.c (cp_type_print_method_args): Likewise.
4726 (c_type_print_args): Likewise.
4727 * d10v-tdep.c (d10v_push_arguments): Likewise.
4728 (d10v_extract_return_value): Likewise.
4729 * expprint.c (print_subexp): Likewise.
4730 * gdbtypes.c (lookup_primitive_typename): Likewise.
4731 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
4732 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
4733 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
4734 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
4735 (TYPE_VECTOR): Likewise.
4736 * hpread.c (hpread_read_struct_type)
4737 (fix_static_member_physnames, fixup_class_method_type)
4738 (hpread_type_lookup): Likewise.
4739 * mdebugread.c (parse_symbol, parse_type): Likewise.
4740 * p-lang.c (is_pascal_string_type): Likewise.
4741 * valops.c (hand_function_call): Likewise.
4742 * x86-64-tdep.c (classify_argument): Likewise.
4743
4744 * hpread.c (hpread_read_function_type)
4745 (hpread_read_doc_function_type): Call replace_type.
4746 * dstread.c (create_new_type): Delete.
4747 (decode_dst_structure, process_dst_function): Call alloc_type.
4748 Use type access macros.
4749
4750 2002-05-12 Mark Kettenis <kettenis@gnu.org>
4751
4752 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
4753 the're not supported by the current architecture.
4754 (i387_fill_fxsave): Likewise.
4755
4756 2002-05-12 Fred Fish <fnf@redhat.com>
4757
4758 * symfile.c (default_symfile_offsets): Arrange for uninitialized
4759 sect_index_xxx members to index the first slot in section_offsets
4760 if all of the section_offsets are zero.
4761
4762 2002-05-12 Mark Kettenis <kettenis@gnu.org>
4763
4764 * configure.tgt (sparc-*openbsd): Remove entry accidentially
4765 checked in with last change.
4766
4767 2002-05-12 Mark Kettenis <kettenis@gnu.org>
4768
4769 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
4770 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
4771 config.sub.
4772
4773 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
4774
4775 * Makefile.in: Update dependencies.
4776
4777 2002-05-11 Andrew Cagney <ac131313@redhat.com>
4778
4779 * language.c (local_hex_string_custom): Simplify. Do not depend
4780 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
4781
4782 * memattr.c (mem_info_command): Replace calls to
4783 longest_local_hex_string and longest_local_hex_string_custom.
4784 * buildsym.c (make_blockvector): Ditto.
4785 * solib.c (info_sharedlibrary_command): Ditto.
4786 * tracepoint.c (tracepoints_info): Ditto.
4787 * symtab.c (print_msymbol_info): Ditto.
4788
4789 * language.c (local_hex_string): Delete.
4790 (local_hex_string_custom): Delete.
4791 (longest_local_hex_string): Rename to local_hex_string.
4792 (longest_local_hex_string_custom): Rename to
4793 local_hex_string_custom.
4794 * language.h (local_hex_string): Change parameter type to LONGEST.
4795 (local_hex_string_custom): Ditto.
4796 (longest_local_hex_string): Delete declaration.
4797 (longest_local_hex_string_custom): Ditto.
4798
4799 * solib.c: Update copyright.
4800 * memattr.c: Update copyright.
4801
4802 2002-05-11 Andrew Cagney <ac131313@redhat.com>
4803
4804 * arch-utils.h (legacy_register_to_value): Declare.
4805 (legacy_value_to_register): Declare.
4806 (legacy_convert_register_p): Declare.
4807 * arch-utils.c (legacy_register_to_value): New function.
4808 (legacy_value_to_register): New function.
4809 (legacy_convert_register_p): New function.
4810
4811 * gdbarch.sh (REGISTER_TO_VALUE): Define.
4812 (VALUE_TO_REGISTER): Define.
4813 (CONVERT_REGISTER_P): Define.
4814 * gdbarch.h, gdbarch.c: Regenerate.
4815
4816 * valops.c (value_assign): Use CONVERT_REGISTER_P and
4817 VALUE_TO_REGISTER.
4818 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
4819 CONVERT_REGISTER_P.
4820
4821 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
4822 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
4823
4824 * Makefile.in: Update dependencies for valops.c.
4825 * valops.c: Include "gdb_assert.h".
4826 (typecmp): Skip THIS parameter to methods.
4827 (find_method_list): Remove static_memfuncp argument,
4828 update callers. Check for stub methods.
4829 (find_value_oload_method_list): Don't set *static_memfuncp.
4830 (find_overload_match): Don't check for stub methods. Assert
4831 that methods are not stubbed. Handle static methods.
4832 (value_find_oload_method_list): Remove static_memfuncp argument.
4833 * gdbtypes.c (check_stub_method): Do not add THIS pointer
4834 to the argument list for static stub methods.
4835 * value.h (value_find_oload_method_list): Update prototype.
4836
4837 2002-05-11 Andrew Cagney <ac131313@redhat.com>
4838
4839 * arch-utils.h (generic_register_size): Declare.
4840 (generic_register_raw_size, generic_register_virtual_size): Delete
4841 declarations.
4842 * arch-utils.c (generic_register_raw_size): Delete.
4843 (generic_register_size): New function.
4844 (generic_register_virtual_size): Delete.
4845
4846 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
4847 default generic_register_size.
4848 * gdbarch.h, gdbarch.c: Re-generate.
4849
4850 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
4851 register_virtual_size.
4852 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
4853 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4854
4855 2002-05-11 Andrew Cagney <ac131313@redhat.com>
4856
4857 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
4858 * gdbarch.h, gdbarch.c: Regenerate.
4859 * gnu-v3-abi.c: Update copyright.
4860 (vtable_address_point_offset): Update.
4861 (gnuv3_rtti_type): Update.
4862 (gnuv3_baseclass_offset): Update.
4863 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
4864 (init_fetch_link_map_offsets): Update.
4865 * remote.c (get_remote_state): Update.
4866
4867 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
4868
4869 * TODO: Remove value_headof/value_from_vtable_info comment.
4870 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
4871 * values.c (value_headof, value_from_vtable_info): Delete.
4872 * value.h (value_from_vtable_info): Delete prototype.
4873
4874 2002-05-11 Andrew Cagney <ac131313@redhat.com>
4875
4876 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
4877 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
4878 $(gdb_regex_h).
4879 (gdb_assert_h): Define.
4880 (gdb_wait_h): Define.
4881 (gdb_regex_h): Define.
4882
4883 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
4884
4885 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
4886 * linespec.c (find_methods): Handle GCC 3.x template constructors.
4887
4888 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
4889
4890 * nbsd-tdep.c: Fix comment.
4891
4892 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
4893
4894 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
4895 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
4896 (nbsd-tdep.o): New dependency list.
4897 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
4898 nbsd-tdep.h.
4899 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
4900 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
4901 * nbsd-tdep.c: New file.
4902 * nbsd-tdep.h: New file.
4903 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
4904 nbsd-tdep.h.
4905 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
4906 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
4907 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
4908 * config/sh/nbsd.mt (TDEPFILES): Ditto.
4909
4910 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
4911
4912 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
4913 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
4914 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
4915 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
4916 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
4917 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
4918
4919 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
4920
4921 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
4922 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
4923 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
4924 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
4925 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
4926 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
4927 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
4928
4929 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
4930
4931 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
4932 fetch_elfcore_registers to...
4933 * i386nbsd-tdep.c: ...here.
4934 (i386nbsd_use_struct_convention): Rename to...
4935 (i386nbsd_aout_use_struct_convention): ...this.
4936 (i386nbsd_supply_reg): New function.
4937 (i386nbsd_fill_reg): New function.
4938 (fetch_core_registers): Use i386nbsd_supply_reg.
4939 (fetch_elfcore_registers): Likewise.
4940 (_initialize_i386nbsd_tdep): New function.
4941 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
4942 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
4943 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
4944 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
4945 (i386nbsd_aout_use_struct_convention): ...this.
4946
4947 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
4948
4949 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
4950 (store_inferior_registers): Use shnbsd_fill_reg.
4951 * shnbsd-tdep.c (sh_nbsd_supply_registers,
4952 sh_nbsd_supply_register): Collapse into...
4953 (shnbsd_supply_reg): ...this.
4954 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
4955 (shnbsd_fill_reg): ...this.
4956 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
4957 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
4958 (fetch_core_registers): Use shnbsd_supply_reg.
4959 (fetch_elfcore_registers): Use shnbsd_supply_reg.
4960 (sh_nbsd_core_fns): Rename to...
4961 (shnbsd_core_fns): ...this.
4962 (sh_nbsd_elfcore_fns): Rename to...
4963 (shnbsd_elfcore_fns): ...this.
4964 (sh_nbsd_init_abi): Rename to...
4965 (shnbsd_init_abi): ...this.
4966 (_initialize_sh_nbsd_tdep): Rename to...
4967 (_initialize_shnbsd_tdep): ...this.
4968 * shnbsd-tdep.h (sh_nbsd_supply_registers,
4969 sh_nbsd_supply_register, sh_nbsd_fill_registers,
4970 sh_nbsd_fill_register): Remove prototypes.
4971 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
4972
4973 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
4974
4975 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
4976 (i387-nat.o): Delete dependency list.
4977 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
4978 (x86-64-linux-nat.o): Likewise.
4979 * i387-nat.c: Delete file, moving contents to...
4980 * i387-tdep.c: ...here.
4981 * i387-nat.h: Rename...
4982 * i387-tdep.h: ...to this.
4983 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
4984 * i386-linux-nat.c: Likewise.
4985 * i386bsd-nat.c: Likewise.
4986 * i386gnu-nat.c: Likewise.
4987 * i386nbsd-nat.c: Likewise.
4988 * i386v4-nat.c: Likewise.
4989 * x86-64-linux-nat.c: Likewise.
4990 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
4991 * config/i386/go32.mh (NATDEPFILES): Likewise.
4992 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
4993 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
4994 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
4995 * config/i386/linux.mh (NATDEPFILES): Likewise.
4996 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
4997 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
4998 * config/i386/obsd.mh (NATDEPFILES): Likewise.
4999 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
5000
5001 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5002
5003 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
5004 (alphanbsd-nat.o): Remove dependency list.
5005 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
5006 * alphanbsd-nat.c: Delete. Contents moved to...
5007 * alphanbsd-tdep.c: ...here.
5008 (_initialize_alphanbsd_tdep): Register core functions.
5009 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
5010
5011 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5012
5013 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
5014 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
5015 (alphanbsd-nat.o): Likewise.
5016 (alphabsd-tdep.o): New dependency list.
5017 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
5018 (fill_gregset): Use alphabsd_fill_reg.
5019 (supply_fpregset): Use alphabsd_supply_fpreg.
5020 (fill_fpregset): Use alphabsd_fill_fpreg.
5021 (fetch_inferior_registers): Use struct reg and struct fpreg
5022 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
5023 and alphabsd_supply_fpreg.
5024 (store_inferior_registers): Use struct reg and struct fpreg
5025 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
5026 and alphabsd_fill_fpreg.
5027 * alphabsd-tdep.c: New file.
5028 * alphabsd-tdep.h: New file.
5029 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
5030 (fetch_elfcore_registers): Use alphabsd_supply_reg and
5031 alphabsd_supply_fpreg.
5032 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
5033 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
5034
5035 2002-05-11 Eric Christopher <echristo@redhat.com>
5036
5037 * mips-tdep.c (mips_double_register_type): Fix thinko.
5038 (mips_single_register_type): Ditto.
5039 * MAINTAINERS: Add self.
5040
5041 2002-05-11 Mark Kettenis <kettenis@gnu.org>
5042
5043 * i387-nat.c (i387_supply_register, i387_fill_fsave,
5044 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
5045 right thing on architectures with different endianness and/or
5046 integer sizes.
5047
5048 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
5049
5050 From Christian Limpach <chris@Pin.LU>
5051 * configure.in: Change sed expression which comments out
5052 NATDEPFILES to also comment out continuation lines.
5053 * configure: Regenerate.
5054
5055 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
5056
5057 * sh-tdep.c: Clean up code erroneously reintroduced by previous
5058 big patch.
5059
5060 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
5061
5062 * sh-tdep.c: Include correct file.
5063
5064 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
5065
5066 New support for sh64-elf (sh5) target.
5067
5068 * configure.tgt: For sh64-elf target, default to sh-elf.
5069
5070 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
5071 (struct gdbarch_tdep): Add new fields for new registers and ABI
5072 info.
5073
5074 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
5075 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
5076 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
5077 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
5078 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
5079 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
5080 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
5081 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
5082 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
5083 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
5084 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
5085 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
5086 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
5087 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
5088 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
5089 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
5090 sh64_get_gdb_regnum, sh64_media_reg_base_num,
5091 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
5092 sign_extend, sh64_nofp_frame_init_saved_regs,
5093 sh64_init_extra_frame_info, sh64_get_saved_register,
5094 sh64_extract_struct_value_address, sh64_pop_frame,
5095 sh64_push_arguments, sh64_extract_return_value,
5096 sh64_store_return_value, sh64_show_media_regs,
5097 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
5098 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
5099 sh_sh64_register_virtual_type,
5100 sh_sh64_register_convert_to_virtual,
5101 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
5102 sh64_register_read, sh64_pseudo_register_write,
5103 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
5104 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
5105 sh64_do_pseudo_register, sh_compact_do_registers_info,
5106 sh64_do_registers_info, sh_gdbarch_init): New functions.
5107
5108 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
5109
5110 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
5111
5112 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
5113
5114 * linespec.c (decode_line_1): Check for a double quote after
5115 a filename correctly.
5116
5117 2002-05-10 Jim Blandy <jimb@redhat.com>
5118
5119 Properly track the size of the current objfile's .debug_line section.
5120 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
5121 (DWARF_LINE_SIZE): New macro.
5122 (dwarf2_build_psymtabs_hard): Record the line section's size in
5123 the partial symbol table.
5124 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
5125 symbol table.
5126
5127 2002-05-10 Petr Sorfa <petrs@caldera.com>
5128
5129 * ia64-tdep.c: Handle breakpoints on L instruction type
5130 in MLX instruction bundle by moving the breakpoint to
5131 the third slot (X instruction type) as L holds only data.
5132
5133 2002-05-10 Kevin Buettner <kevinb@redhat.com>
5134
5135 * dbxread.c (discarding_local_symbols_complaint): New complaint.
5136 (process_one_symbol): Complain about discarding local symbols
5137 due to a misplaced N_LBRAC entry.
5138
5139 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
5140
5141 From Daniel Berlin <dan@cgsoftware.com>
5142 * linespec.c (find_toplevel_char): '<' and '>' also increase and
5143 decrease the depth we are at, in the case of templates.
5144
5145 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
5146
5147 * mips-tdep.c (mips_float_register_type): New function.
5148 (mips_double_register_type): New function.
5149 (mips_print_register): Use them.
5150 (do_fp_register_row): Likewise.
5151
5152 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
5153
5154 * signals/signals.c (signals): Remove conditional compilation around
5155 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
5156 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
5157
5158 2002-05-09 Michael Snyder <msnyder@redhat.com>
5159
5160 * remote-rdp.c (remote_rdp_can_run): Remove.
5161
5162 2002-05-09 Tom Tromey <tromey@redhat.com>
5163
5164 * jv-valprint.c (java_val_print): Handle `char' as a special case
5165 of TYPE_CODE_INT.
5166
5167 2002-05-09 Michael Snyder <msnyder@redhat.com>
5168
5169 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
5170 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
5171 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
5172 str r(0123),[sp,#nn].
5173 (arm_skip_prologue): Ditto. Also make disassembly
5174 order-independent by placing it in a loop.
5175
5176 2002-05-06 Michael Snyder <msnyder@redhat.com>
5177
5178 * stabsread.c (read_type): Add recognition for new attribute:
5179 "@V;" means that an array type is actually a vector.
5180 This is analogous to the vector flag that's been added to dwarf2.
5181
5182 2002-05-09 Mark Kettenis <kettenis@gnu.org>
5183
5184 * i386-tdep.h (i386_abi): New enum.
5185 (struct gdbarch_tdep): Replace os_ident member with abi.
5186 (i386_gdbarch_register_os_abi): New prototype.
5187 * i386-tdep.c (i386_abi_names): New array.
5188 (process_note_abi_tag_sections): Removed.
5189 (process_note_sections): New function.
5190 (i386_elf_abi_from_note, i386_elf_abi): New functions.
5191 (struct i386_abi_handler): New struct.
5192 (i386_abi_handler_list): New variable.
5193 (i386_gdbarch_register_os_abi): New function.
5194 (i386_gdbarch_init): Adapt for the changes given above.
5195
5196 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
5197
5198 * gregset.h: Say "GNU/Linux".
5199
5200 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
5201
5202 * gdbtypes.c : Add new builtin type for 64 bit vectors.
5203 (build_gdbtypes): Build builtin_type_v2_float.
5204 (_initialize_gdbtypes): Register new builtin type.
5205
5206 2002-05-08 Andrew Cagney <ac131313@redhat.com>
5207
5208 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
5209 (clear_gdbarch_swap): New function.
5210 (initialize_non_multiarch): Call.
5211 (gdbarch_update_p): Before calling init(), swap out and clear the
5212 existing architecture.
5213 * gdbarch.c: Regenerate.
5214
5215 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5216
5217 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
5218 alphanbsd-tdep.c.
5219
5220 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5221
5222 * sh-nbsd-nat.c: Rename to...
5223 * shnbsd-nat.c: ...this.
5224 * sh-nbsd-tdep.c: Rename to...
5225 * shnbsd-tdep.c: ...this.
5226 * sh-nbsd-tdep.h: Rename to...
5227 * shnbsd-tdep.h: ...this.
5228 * config/sh/nbsd.mh: Use shnbsd-nat.o.
5229 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
5230
5231 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
5232
5233 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
5234 concatenation for command help messages.
5235
5236 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5237
5238 * NEWS: Note new sh*-*-netbsdelf* configuration.
5239 * configure.host: Set gdb_host_cpu to sh for all sh*.
5240 (sh*-*-netbsdelf*): New host.
5241 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
5242 (sh*-*-netbsdelf*): New target.
5243 * sh-nbsd-nat.c: New file.
5244 * sh-nbsd-tdep.c: New file.
5245 * sh-nbsd-tdep.h: New file.
5246 * config/sh/nbsd.mh: New file.
5247 * config/sh/nbsd.mt: New file.
5248 * config/sh/nm-nbsd.h: New file.
5249 * config/sh/tm-nbsd.h: New file.
5250
5251 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5252
5253 * sh-tdep.c (sh_osabi_names): Declare.
5254 (process_note_abi_tag_sections): New function.
5255 (get_elfosabi): Ditto.
5256 (sh_gdbarch_register_os_abi): Ditto.
5257 (sh_dump_tdep): Ditto.
5258 _initialize_sh_tdep): Use gdbarch_register to register
5259 sh_gdbarch_init and sh_dump_tdep.
5260 * config/sh/tm-sh.h (sh_osabi): Declare.
5261 (gdbarch_tdep): Add sh_osabi and osabi_name members.
5262
5263 2002-05-07 Andrew Cagney <ac131313@redhat.com>
5264
5265 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
5266 (thumb_scan_prologue): Ditto.
5267 (arm_find_callers_reg): Ditto.
5268 (arm_frame_chain): Ditto.
5269 (arm_init_extra_frame_info): Ditto.
5270 (arm_frame_saved_pc): Ditto.
5271 (arm_pop_frame): Ditto.
5272 (arm_push_return_address): New function.
5273 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
5274 call_dummy_location, call_dummy_breakpoint_offset_p,
5275 call_dummy_breakpoint_offset, call_dummy_p,
5276 call_dummy_stack_adjust_p, call_dummy_words,
5277 sizeof_call_dummy_words, call_dummy_start_offset,
5278 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
5279 call_dummy_address, push_return_address and push_dummy_frame for
5280 generic dummy frames.
5281
5282 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
5283
5284 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
5285 size computation for alloca.
5286 (sh_fp_frame_init_saved_regs): Likewise.
5287
5288 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
5289
5290 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
5291 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
5292 * arm-tdep.c (arm_store_return_value): Use them.
5293 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
5294 * remote-rdp.c (remote_rdp_fetch_register): Use
5295 ARM_MAX_REGISTER_RAW_SIZE.
5296 (remote_rdp_store_register): Likewise.
5297
5298 2002-05-07 Michal Ludvig <mludvig@suse.cz>
5299
5300 * dwarf2cfi.c: Code cleanup, removed unused variables,
5301 added default labels to switch {} statements.
5302 * x86-64-tdep.c: Ditto.
5303 * x86-64-linux-nat.c: Ditto.
5304
5305 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
5306
5307 * solib.h: Protect against multiple inclusion.
5308
5309 2002-05-06 Jim Blandy <jimb@redhat.com>
5310
5311 Add first preprocessor macro-expansion files.
5312 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
5313 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
5314 (splay_tree_h, macroexp_h, macrotab_h): New variable.
5315 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
5316 (COMMON_OBS): Add macrotab.o, macroexp.o.
5317 (macroexp.o, macrotab.o): New rules.
5318
5319 Separate the job of reading the line number info statement program
5320 header (...expialidocious) out into its own function.
5321 * dwarf2read.c (struct line_head, struct filenames, struct
5322 directories): Replace with...
5323 (struct line_header): New structure, containing the full
5324 contents of the statement program header, including the
5325 include directory and file name tables.
5326 (read_file_scope): If we have line number info, instead of just
5327 calling dwarf_decode_lines to do all the work, call
5328 dwarf_decode_line_header first to get a `struct line_header'
5329 containing the data in the statement program header, and then
5330 pass that to dwarf_decode_lines, which will pick up where that
5331 left off. Be sure to clean up the `struct line_header' object.
5332 (dwarf_decode_line_header, free_line_header, add_include_dir,
5333 add_file_name): New functions.
5334 (dwarf_decode_lines): Move all the code to read the statement
5335 program header into dwarf_decode_line_header. Take the line
5336 header it built as the first argument, instead of the offset to
5337 the compilation unit's line number info. Use the new `struct
5338 line_header' type instead of the old structures. No need to do
5339 cleanups here now, since we don't allocate anything.
5340 (dwarf2_statement_list_fits_in_line_number_section,
5341 dwarf2_line_header_too_long): New complaints.
5342
5343 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
5344
5345 * gdbtypes.c (init_vector_type): New function.
5346 (build_builtin_type_vec128): Simplify the representation of SIMD
5347 registers.
5348 (build_gdbtypes): Initialize new builtin vector types.
5349 (_initialize_gdbtypes): Register new vector types with gdbarch.
5350 (builtin_type_v4_float, builtin_type_v4_int32,
5351 builtin_type_v8_int16, builtin_type_v16_int8,
5352 builtin_type_v2_int32, builtin_type_v4_int16,
5353 builtin_type_v8_int8): New (renamed) SIMD types.
5354
5355 2002-05-06 Mark Kettenis <kettenis@gnu.org>
5356
5357 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
5358 (i387_fill_fxsave): Likewise.
5359
5360 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
5361
5362 * alpha-tdep.c (alpha_extract_return_value): Don't use
5363 non-constant array size in prototype.
5364
5365 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5366
5367 From Brian Taylor <briant at model dot com>:
5368 * ui-out.c (ui_out_field_core_addr): Use the function
5369 longest_local_hex_string_custom'to format addresses > 32 bits
5370 wide.
5371
5372 * ui-out.c (ui_out_field_core_addr): Update comment.
5373
5374 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5375
5376 * stack.c (select_and_print_frame): Make static. Delete the
5377 parameter `level'.
5378 (func_command): Update call.
5379 (select_frame_command): Delete code computing the frame level.
5380 * frame.h (select_and_print_frame): Delete declaration.
5381
5382 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5383
5384 * sparc-tdep.c (sparc_get_saved_register): Comment why
5385 get_prev_frame call is safe.
5386
5387 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5388
5389 * frame.h (select_frame): Delete level parameter.
5390 * stack.c (select_frame): Update. Use frame_relative_level to
5391 obtain the frame's level.
5392 (select_and_print_frame): Update call.
5393 (select_frame_command): Ditto.
5394 (up_silently_base): Ditto.
5395 (down_silently_base): Ditto.
5396 * ocd.c (ocd_start_remote): Ditto.
5397 * remote-rdp.c (remote_rdp_open): Ditto.
5398 * remote-mips.c (mips_initialize): Ditto.
5399 (common_open): Ditto.
5400 * remote-e7000.c (e7000_start_remote): Ditto.
5401 * m3-nat.c (select_thread): Ditto.
5402 * hppa-tdep.c (child_get_current_exception_event): Ditto.
5403 (child_get_current_exception_event): Ditto.
5404 * varobj.c (varobj_create): Ditto.
5405 (varobj_update): Ditto.
5406 (c_value_of_root): Ditto.
5407 * tracepoint.c (finish_tfind_command): Ditto.
5408 * corelow.c (core_open): Ditto.
5409 * arch-utils.c (generic_prepare_to_proceed): Ditto.
5410 * thread.c (info_threads_command): Ditto.
5411 (switch_to_thread): Ditto.
5412 * infrun.c (normal_stop): Ditto.
5413 (restore_selected_frame): Ditto.
5414 (restore_inferior_status): Ditto.
5415 * breakpoint.c (insert_breakpoints): Ditto.
5416 (watchpoint_check): Ditto.
5417 (bpstat_stop_status): Ditto.
5418 (do_enable_breakpoint): Ditto.
5419 * blockframe.c (flush_cached_frames): Ditto.
5420 (reinit_frame_cache): Ditto.
5421
5422 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5423
5424 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
5425 maintainer.
5426
5427 2002-05-04 Jim Blandy <jimb@redhat.com>
5428
5429 * gdbtypes.c (replace_type): Doc fix.
5430
5431 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5432
5433 * valprint.c (strcat_longest): Delete commented out function.
5434 Update copyright.
5435
5436 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5437
5438 * MAINTAINERS: Mark a29k as deleted.
5439 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
5440 Move new configurations to the top.
5441 * configure.tgt: Remove a29k.
5442 * config/a29k/tm-vx29k.h: Delete.
5443 * config/a29k/vx29k.mt: Delete.
5444 * config/a29k/tm-a29k.h: Delete.
5445 * config/a29k/a29k-udi.mt: Delete.
5446 * config/a29k/a29k.mt: Delete.
5447 * a29k-tdep.c: Delete.
5448 * remote-udi.c: Delete.
5449 * remote-mm.c: Delete.
5450 * remote-eb.c: Delete.
5451 * remote-adapt.c: Delete.
5452 * Makefile.in: Remove obsolete code.
5453 * gdbserver/Makefile.in: Ditto.
5454 * config/s390/s390x.mt: Ditto.
5455 * config/s390/s390.mt: Ditto.
5456 * config/sparc/sparclynx.mh: Ditto.
5457 * config/sparc/linux.mh: Ditto.
5458 * config/pa/hppaosf.mh: Ditto.
5459 * config/pa/hppabsd.mh: Ditto.
5460 * config/ns32k/nbsd.mt: Ditto.
5461 * config/mips/vr5000.mt: Ditto.
5462 * config/m68k/sun3os4.mh: Ditto.
5463 * config/m68k/nbsd.mt: Ditto.
5464 * config/m68k/m68klynx.mh: Ditto.
5465 * config/m32r/m32r.mt: Ditto.
5466 * config/i386/x86-64linux.mt: Ditto.
5467 * config/i386/nbsdelf.mt: Ditto.
5468 * config/i386/nbsd.mt: Ditto.
5469 * config/i386/i386lynx.mh: Ditto.
5470
5471 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5472
5473 * target.c (debug_print_register): New function. Handle oversize
5474 registers.
5475 (debug_to_fetch_registers): Call.
5476 (debug_to_store_registers): Call.
5477
5478 2002-05-03 Jim Blandy <jimb@redhat.com>
5479
5480 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
5481 (read_type): Doc fix.
5482 * gdbtypes.c (replace_type): Doc fix.
5483
5484 * stabsread.c (multiply_defined_struct): New complaint.
5485 (read_struct_type): If the type we were passed isn't empty, or
5486 incomplete, don't read the new struct type into it; complain,
5487 and return the original type unchanged. Take a new `type_code'
5488 argument, which is the type code for the new type.
5489 (read_type): Rather than storing the type's type code here, pass
5490 it as an argument to read_struct_type, and let that take care of
5491 storing it. That way, we don't overwrite the original type code,
5492 so read_struct_type can use it to decide whether we're overwriting
5493 something we shouldn't.
5494 (complain_about_struct_wipeout): New function.
5495
5496 2002-05-03 Andrew Cagney <ac131313@redhat.com>
5497
5498 * gdbarch.sh: Assert that gdbarch is non-NULL.
5499 * gdbarch.c: Regenerate.
5500
5501 2002-05-03 Jason Merrill <jason@redhat.com>
5502
5503 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
5504 and return NULL.
5505
5506 2002-05-03 Michal Ludvig <mludvig@suse.cz>
5507
5508 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
5509 (x86_64_dwarf2gdb_regno_map_length),
5510 (x86_64_dwarf2_reg_to_regnum): Added.
5511 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
5512 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
5513 (_initialize_x86_64_tdep): Synced with the change above.
5514 (x86_64_skip_prologue): Reformulated message.
5515
5516 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
5517
5518 * f-exp.y: Also use new prev_lexptr variable
5519 to improve error reporting. Based on Michael Snyder
5520 2002-04-24 dated patch to c-exp.y.
5521 * jv-exp.y: Likewise.
5522 * m2-exp.y: Likewise.
5523
5524 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
5525
5526 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
5527 we are dealing with vectors.
5528
5529 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
5530
5531 * config/m68k/tm-nbsd.h: Obvious fix,
5532 correct machine name.
5533
5534 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
5535
5536 * p-typeprint.c (pascal_type_print_base): Add support
5537 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
5538
5539 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
5540
5541 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
5542 for fondamental pascal 'char' type.
5543
5544 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
5545
5546 * p-lang.h (is_pascal_string_type): Declaration changed,
5547 new sixth argument of type char ** added.
5548 * p-lang.c (is_pascal_string_type): Implementation
5549 changed. Args length_pos, length_size, string_pos, char_size
5550 can now be NULL. New argument arrayname set to the field
5551 name of the char array. Return value set to char array
5552 field index plus one.
5553 * p-valprint.c (pascal_val_print): Adapt to new declaration of
5554 is_pascal_string_type function.
5555
5556 2002-05-02 Andrew Cagney <cagney@redhat.com>
5557
5558 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
5559 <cagney@redhat.com> change.
5560 * gdbarch.c: Regenerate.
5561
5562 2002-05-02 Andrew Cagney <cagney@redhat.com>
5563
5564 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
5565 before probing for a new one. Detect errorenous gdbarch_init
5566 functions.
5567 * gdbarch.c: Regenerate.
5568
5569 2002-05-01 Andrew Cagney <cagney@redhat.com>
5570
5571 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
5572 * config/mcore/tm-mcore.h: Ditto. Update copyright.
5573 * config/v850/tm-v850.h: Ditto. Update copyright.
5574
5575 2002-04-30 Andrew Cagney <ac131313@redhat.com>
5576
5577 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
5578 current_gdbarch.
5579
5580 2002-04-30 Michael Snyder <msnyder@redhat.com>
5581
5582 * arm-tdep.c: Whitespace clean-ups.
5583 (arm_skip_prologue): Fix thinko; two lines
5584 should have been removed as part of 4/24 change.
5585
5586 2002-04-30 Kevin Buettner <kevinb@redhat.com>
5587
5588 * rs6000-tdep.c: Added comment describing how fpscr register
5589 numbers were chosen.
5590
5591 2002-04-30 Michael Snyder <msnyder@redhat.com>
5592
5593 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
5594
5595 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
5596
5597 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
5598 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
5599 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
5600
5601 2002-04-29 Kevin Buettner <kevinb@redhat.com>
5602
5603 From Louis Hamilton <hamilton@redhat.com>:
5604 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
5605 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
5606 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
5607 not bfd-private xcoff data, to determine wordsize.
5608 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
5609
5610 2002-04-29 Andrew Cagney <ac131313@redhat.com>
5611
5612 GDB 5.2 released from 5.2 branch.
5613
5614 2002-04-29 Michal Ludvig <mludvig@suse.cz>
5615
5616 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
5617 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
5618 (x86_64_register_info_table): Added comments with register numbers.
5619
5620 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
5621
5622 * rs6000-tdep.c (rs6000_extract_return_value,
5623 rs6000_store_return_value): Handle returning vectors.
5624 (rs6000_gdbarch_init): Use
5625 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
5626 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
5627 New function.
5628 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
5629 vectors.
5630 (ppc_sysv_abi_push_arguments): Handle vector parameters.
5631 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
5632
5633 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
5634
5635 * hpread.c (hpread_psymtab_to_symtab_1,
5636 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
5637 with fprintf_unfiltered (gdb_stderr,...).
5638
5639 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
5640
5641 * remote-array.c (printf_monitor, write_monitor,
5642 array_insert_breakpoint, array_remove_breakpoint ):
5643 Replace fprintf (stderr,...
5644 with fprintf_unfiltered (gdb_stderr,....
5645 * remote-es.c: Likewise.
5646 * remote-os9k.c: Likewise.
5647 * remote-st.c: Likewise.
5648
5649 2002-04-28 Andreas Schwab <schwab@suse.de>
5650
5651 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
5652 linux-proc.o and gcore.o.
5653
5654 2002-04-26 Michal Ludvig <mludvig@suse.cz>
5655
5656 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
5657 code without frame pointers.
5658
5659 2002-04-26 Andrew Cagney <ac131313@redhat.com>
5660
5661 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
5662 ON_STACK is needed.
5663
5664 2002-04-26 Ben Elliston <bje@redhat.com>
5665
5666 * target.c (do_xfer_memory): Correct reference to the new option
5667 "trust-readonly-sections".
5668
5669 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
5670
5671 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
5672 * gdbtypes.c (recursive_dump_type): Output the vector flag.
5673 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
5674 vectors.
5675 (read_array_type): Record the fact that this array type is really a
5676 vector (i.e. are passed in by value).
5677
5678 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
5679
5680 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
5681 * alpha-tdep.c (alpha_sigcontext_addr): New function.
5682 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
5683 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
5684 * alpha-linux-tdep.c: Include frame.h.
5685 (alpha_linux_sigcontext_addr): New function.
5686 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
5687 alpha_linux_sigcontext_addr.
5688 * alpha-osf1-tdep.c: Include gdbcore.h.
5689 (alpha_osf1_sigcontext_addr): New function.
5690 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
5691 alpha_osf1_sigcontext_addr.
5692 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
5693 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
5694
5695 2002-04-26 Andrew Cagney <ac131313@redhat.com>
5696
5697 * stack.c (selected_frame_level):
5698 (select_frame): Do not set selected_frame_level.
5699 * frame.h (selected_frame_level): Delete declaration.
5700
5701 2002-04-26 Andrew Cagney <ac131313@redhat.com>
5702
5703 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
5704 convert_from_func_ptr-addr when AIX / PowerOpen.
5705
5706 2002-04-25 Andrew Cagney <ac131313@redhat.com>
5707
5708 * valops.c (hand_function_call): Call
5709 generic_save_call_dummy_addr.
5710 * frame.h (generic_save_call_dummy_addr): Declare.
5711 * blockframe.c (struct dummy_frame): Add fields call_lo and
5712 call_hi.
5713 (generic_find_dummy_frame): Check for PC in range call_lo to
5714 call_hi instead of entry_point_address.
5715 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
5716 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
5717 (generic_save_call_dummy_addr): New function.
5718
5719 2002-04-24 David S. Miller <davem@redhat.com>
5720
5721 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
5722 sparc_skip_prologue.
5723 (sparc_skip_prologue): Kill frameless_p arg, and use line number
5724 information to find prologue when possible.
5725 (sparc_prologue_frameless_p): Call examine_prologue directly.
5726 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
5727 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
5728 second argument.
5729 (SKIP_PROLOGUE): Likewise.
5730
5731 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
5732
5733 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
5734 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
5735 indicate that the condition it was testing is always true.
5736 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
5737 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
5738 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
5739
5740 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
5741
5742 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
5743 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
5744 tdep->jb_pc and tdep->jb_elt_size.
5745 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
5746 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
5747 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
5748 * alpha-nat.c (get_longjmp_target): Remove.
5749 (JB_ELEMENT_SIZE): Ditto.
5750 (JB_PC): Ditto.
5751 * alpha-tdep.c (alpha_get_longjmp_target): New function.
5752 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
5753 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
5754 to alpha_get_longjmp_target.
5755 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
5756 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
5757 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
5758
5759 2002-04-25 Andrew Cagney <ac131313@redhat.com>
5760
5761 * README: Update to GDB 5.2.
5762
5763 2002-04-25 Andrew Cagney <ac131313@redhat.com>
5764
5765 * gdbarch.sh (LC_ALL): Set to `c'.
5766
5767 2002-04-25 Theodore A. Roth <troth@verinet.com>
5768
5769 * avr-tdep.c: Ran through gdb_indent.sh.
5770
5771 2002-04-25 Theodore A. Roth <troth@verinet.com>
5772
5773 * MAINTAINERS: Add myself as AVR maintainer.
5774 * NEWS: Note new target avr.
5775
5776 2002-04-25 Theodore A. Roth <troth@verinet.com>
5777
5778 * Makefile.in: Add support for AVR target.
5779 * configure.tgt: Add support for AVR target.
5780 * avr-tdep.c: New file
5781 * config/avr/avr.mt: New file.
5782
5783 2002-04-25 Theodore A. Roth <troth@verinet.com>
5784
5785 * MAINTAINERS: Add myself to write-after-approval.
5786
5787 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
5788
5789 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
5790 with fprintf_unfiltered (gdb_stderr,....
5791
5792 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
5793
5794 Fix PR gdb/508.
5795 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
5796
5797 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
5798
5799 * p-exp.y: Also use new prev_lexptr variable
5800 to improve error reporting. Based on Michael Snyder
5801 2002-04-24 dated patch to c-exp.y.
5802
5803 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
5804
5805 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
5806 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
5807 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
5808 to 0.
5809 * config/alpha/tm-alpha.h: Remove forward decls of struct type
5810 and struct value.
5811 (FUNCTION_START_OFFSET): Remove.
5812 (BREAKPOINT): Ditto.
5813
5814 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
5815
5816 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
5817 * NEWS: Ditto.
5818
5819 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
5820
5821 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
5822 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
5823 alpha_linux_pc_in_sigtramp.
5824 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
5825 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
5826 alpha_osf1_pc_in_sigtramp.
5827 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
5828 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
5829 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
5830 alphafbsd_pc_in_sigtramp.
5831 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
5832 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
5833 alphanbsd_pc_in_sigtramp.
5834 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
5835 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
5836
5837 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
5838
5839 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
5840
5841 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
5842
5843 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
5844 alphanbsd-tdep.c.
5845 (alphanbsd-nat.o): New dependency list.
5846 (alphanbsd-tdep.o): Ditto.
5847 * NEWS: Note new native NetBSD/alpha configuration.
5848 * alphanbsd-nat.c: New file.
5849 * alphanbsd-tdep.c: Ditto.
5850 * configure.host (alpha*-*-netbsd*): New host.
5851 * configure.tgt (alpha*-*-netbsd*): New target.
5852 * config/alpha/nbsd.mh: New file.
5853 * config/alpha/nbsd.mt: Ditto.
5854 * config/alpha/nm-nbsd.h: Ditto.
5855 * config/alpha/tm-nbsd.h: Ditto.
5856
5857 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
5858
5859 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
5860 (alpha-osf1-tdep.o): New dependency list.
5861 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
5862 and skip_sigtramp_frame members.
5863 * alpha-linux-tdep.c: Include gdbcore.h.
5864 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
5865 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
5866 * alpha-osf1-tdep.c: New file.
5867 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
5868 alpha-osf1-dep.c.
5869 (alpha_frame_past_sigtramp_frame): New function.
5870 (alpha_dynamic_sigtramp_offset): Ditto.
5871 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
5872 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
5873 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
5874 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
5875 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
5876 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
5877 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
5878 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
5879 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
5880 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
5881 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
5882 to find_solib_trampoline_target.
5883 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
5884 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
5885 (SKIP_TRAMPOLINE_CODE): Remove.
5886 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
5887 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
5888 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
5889 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
5890 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
5891 (PROC_SIGTRAMP_MAGIC): Ditto.
5892 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
5893 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
5894 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
5895 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
5896 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
5897
5898 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
5899
5900 * NEWS: Note that Alpha targets are now multi-arch.
5901
5902 2002-04-24 Michael Snyder <msnyder@redhat.com>
5903
5904 * parser-defs.h (prev_lexptr): New external variable.
5905 * parse.c (parse_exp_1): Set prev_lexptr to null before
5906 calling the language-specific parser.
5907 * c-exp.y (yylex): Set prev_lexptr to start of current token.
5908 (yyerror): Use prev_lexptr in error reporting.
5909
5910 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
5911
5912 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
5913 * gregset.h: If FILL_FPXREGSET is defined, provide
5914 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
5915 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
5916 is defined, call fill_fpxregset.
5917
5918 2002-04-24 Roland McGrath <roland@frob.com>
5919
5920 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
5921 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
5922 (supply_gregset, supply_fpregset): New functions.
5923
5924 * gnu-nat.c (gnu_find_memory_regions): New function.
5925 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
5926 (gnu_xfer_memory): Add a cast.
5927
5928 2002-04-24 Michael Snyder <msnyder@redhat.com>
5929
5930 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
5931 loop. Add handling for "str lr, [sp, #-4]!" and for saves
5932 of argument regs ("str r(0123), [r11, #-nn"]).
5933 (arm_skip_prologue): Better handling for frameless functions.
5934 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
5935 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
5936
5937 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
5938
5939 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
5940 NUM_PSEUDO_REGS can be used.
5941
5942 2002-04-24 Andrew Cagney <ac131313@redhat.com>
5943
5944 * arch-utils.h: Update copyright.
5945
5946 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
5947 * gdbarch.h, gdbarch.c: Re-generate.
5948
5949 * inferior.h (IN_SIGTRAMP): Delete definition.
5950 * arch-utils.c (legacy_pc_in_sigtramp): New function.
5951 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
5952
5953 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
5954 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
5955 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
5956 (find_proc_framesize): Ditto.
5957 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
5958 (alpha_init_extra_frame_info): Ditto.
5959 * infrun.c (handle_inferior_event): Ditto.
5960 (handle_inferior_event): Ditto.
5961 (check_sigtramp2): Ditto.
5962 * blockframe.c (create_new_frame): Ditto.
5963 (get_prev_frame): Ditto.
5964 * ppc-linux-tdep.c: Update comments.
5965 * i386-linux-tdep.c: Update comments.
5966 * breakpoint.c (bpstat_what): Update comment.
5967
5968 2002-04-24 Michal Ludvig <mludvig@suse.cz>
5969
5970 * gdbserver/linux-low.c (regsets_fetch_inferior_registers),
5971 (regsets_store_inferior_registers): Removed cast to int from
5972 ptrace() calls.
5973 * gdbserver/regcache.h: Added declaration of struct inferior_info.
5974
5975 2002-04-24 David S. Miller <davem@redhat.com>
5976
5977 * i960-tdep.c (register_in_window_p): New function.
5978 (i960_find_saved_register): Use it instead of
5979 REGISTER_IN_WINDOW_P.
5980 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
5981
5982 * symtab.h (find_stab_function_addr): Kill extern.
5983 * minsyms.c (find_stab_function_addr): Remove from here...
5984 * dbxread.c: ... to here, and mark it static.
5985
5986 2002-04-20 David S. Miller <davem@redhat.com>
5987
5988 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
5989 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
5990
5991 2002-04-21 David S. Miller <davem@redhat.com>
5992
5993 * remote-vxsparc.c (vx_read_register): Fix typo, we want
5994 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
5995 (vx_write_register): Likewise.
5996
5997 2002-04-23 J. Brobecker <brobecker@gnat.com>
5998
5999 * source.c (is_regular_file): New function.
6000 (openp): Check wether file to open is a regular file
6001 to avoid opening directories.
6002
6003 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6004
6005 * findvar.c (extract_signed_integer): Cast printf argument
6006 to suppress format warning.
6007 (extract_unsigned_integer): Likewise.
6008 * infcmd.c (registers_info): Likewise.
6009 * top.c (get_prompt_1): Likewise.
6010 * valops.c (value_assign): Likewise.
6011 * valprint.c (print_decimal): Likewise.
6012
6013 2002-04-22 H.J. Lu (hjl@gnu.org)
6014
6015 * c-exp.y (typebase): Support
6016
6017 [long|long long|short] [signed|unsigned] [int|]
6018
6019 and
6020
6021 signed [long|long long|short] int
6022
6023 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6024
6025 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
6026 and vax-tdep.h.
6027 * vax-tdep.h: New file.
6028 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
6029 Make several routines static.
6030 (vax_get_saved_register): New function.
6031 (vax_gdbarch_init): New function.
6032 (_initialize_vax_tdep): Register vax_gdbarch_init.
6033 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
6034 Remove macros now under the control of gdbarch.
6035
6036 2002-04-22 Michael Snyder <msnyder@redhat.com>
6037
6038 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
6039 Some whitespace and coding standards tweaks.
6040
6041 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6042
6043 * vax-tdep.c: Include regcache.h.
6044 (vax_call_dummy_words): New.
6045 (sizeof_vax_call_dummy_words): New.
6046 (vax_fix_call_dummy): New function.
6047 (vax_saved_pc_after_call): Ditto.
6048 * config/vax/tm-vax.h: Don't include regcache.h.
6049 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
6050 (CALL_DUMMY): Remove.
6051 (CALL_DUMMY_WORDS): Define.
6052 (SIZEOF_CALL_DUMMY_WORDS): Define.
6053 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
6054
6055 2002-04-18 Michael Snyder <msnyder@redhat.com>
6056
6057 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
6058
6059 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6060
6061 * vax-tdep.c (vax_frame_chain): New function.
6062 (vax_push_dummy_frame): Ditto.
6063 (vax_pop_frame): Ditto.
6064 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
6065 (FRAMELESS_FUNCTION_INVOCATION): Use
6066 generic_frameless_function_invocation_not.
6067 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
6068 (POP_FRAME): Use vax_pop_frame.
6069
6070 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6071
6072 * vax-tdep.c (vax_store_struct_return): New function.
6073 (vax_extract_return_value): Ditto.
6074 (vax_store_return_value): Ditto.
6075 (vax_extract_struct_value_address): Ditto.
6076 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
6077 vax_store_struct_return.
6078 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
6079 (STORE_RETURN_VALUE): Use vax_store_return_value.
6080 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
6081
6082 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6083
6084 * vax-tdep.c (vax_frame_saved_pc): New function.
6085 (vax_frame_args_address_correct): Ditto.
6086 (vax_frame_args_address): Ditto.
6087 (vax_frame_locals_address): Ditto.
6088 (vax_frame_num_args): Move code to be in proximity to
6089 other frame-related functions.
6090 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
6091 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
6092 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
6093 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
6094 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
6095
6096 2002-04-22 H.J. Lu (hjl@gnu.org)
6097
6098 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
6099 includedir.
6100
6101 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6102
6103 * vax-tdep.c (vax_frame_init_saved_regs): New function.
6104 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
6105 (FRAME_INIT_SAVED_REGS): New macro.
6106
6107 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6108
6109 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
6110
6111 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6112
6113 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
6114 where needed.
6115 (fetch_osf_core_registers): Likewise.
6116 (supply_gregset): Likewise.
6117
6118 2002-04-22 J. Brobecker <brobecker@gnat.com>
6119
6120 * symfile.h (get_section_index): Define.
6121 * symfile.c (get_section_index): New function.
6122 * mdebugread.c (SC_IS_SBSS): New macro.
6123 (SC_IS_BSS): Return true for the scBss storage class only, as
6124 the scSBss storage class refers to the .sbss section.
6125 (parse_partial_symbols): Discard the symbols which associated
6126 section does not exist.
6127 Make sure to use the .sbss section index for symbols which
6128 storage class is scBss, rather than using the .bss section index.
6129
6130 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6131
6132 * vax-tdep.c: Update copyright years.
6133 (vax_register_name): New function.
6134 (vax_register_byte): Ditto.
6135 (vax_register_raw_size): Ditto.
6136 (vax_register_virtual_size): Ditto.
6137 (vax_register_virtual_type): Ditto.
6138 * config/vax/tm-vax.h: Update copyright years.
6139 (REGISTER_NAMES): Remove.
6140 (REGISTER_NAME): Define.
6141 (REGISTER_BYTE): Use vax_register_byte.
6142 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
6143 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
6144 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
6145
6146 2002-04-21 Andrew Cagney <ac131313@redhat.com>
6147
6148 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
6149 declaration
6150 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
6151
6152 2002-04-21 David S. Miller <davem@redhat.com>
6153
6154 * arch-utils.c (generic_prologue_frameless_p): Kill
6155 SKIP_PROLOGUE_FRAMELESS_P code.
6156 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
6157 references.
6158 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
6159 * arc-tdep.c (arc_prologue_frameless_p): Implement.
6160 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
6161 references.
6162 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
6163 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
6164 (sparc_gdbarch_init): Pass it to
6165 set_gdbarch_prologue_frameless_p.
6166
6167 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6168
6169 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
6170 (alphabsd-nat.o): New dependency list.
6171
6172 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6173
6174 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
6175 alphafbsd-tdep.c.
6176 (alpha-linux-tdep.o): New dependency list.
6177 (alphafbsd-tdep.o): Likewise.
6178
6179 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6180
6181 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
6182 to here...
6183 * alpha-tdep.c: ...from here.
6184 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
6185
6186 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6187
6188 * config/alpha/tm-alpha.h: Move alpha_software_single_step
6189 prototype from here...
6190 * alpha-tdep.h: ...to here.
6191
6192 2002-04-21 Andrew Cagney <ac131313@redhat.com>
6193
6194 * frame.h (selected_frame_level): Document as deprecated.
6195 (frame_relative_level): Declare.
6196 * stack.c (frame_relative_level): New function.
6197 (selected_frame_level): Document as deprecated.
6198 (select_frame): Do not set the selected_frame_level.
6199
6200 * stack.c (frame_info, record_selected_frame): Update.
6201 (frame_command, current_frame_command): Update.
6202 (up_silently_base, up_command, down_silently_base): Update.
6203 (down_command): Update.
6204 * inflow.c (kill_command): Update.
6205 * tracepoint.c (finish_tfind_command): Update.
6206 * corelow.c (core_open): Update.
6207 * thread.c (info_threads_command): Update.
6208 (do_captured_thread_select): Update.
6209 * infcmd.c (finish_command): Update.
6210 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
6211
6212 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6213
6214 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
6215
6216 2002-04-21 Andrew Cagney <ac131313@redhat.com>
6217
6218 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
6219 type const.
6220
6221 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6222
6223 * alphafbsd-tdep.c: Update copyright years. Include
6224 alpha-tdep.h.
6225 (alphafbsd_use_struct_convention): Make static.
6226 (alphafbsd_init_abi): New function.
6227 (_initialize_alphafbsd_tdep): New function.
6228 * config/alpha/tm-fbsd.h: Update copyright years.
6229 (USE_STRUCT_CONVENTION): Remove.
6230
6231 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6232
6233 * alpha-tdep.c (alpha_abi_handler): New structure to describe
6234 an Alpha ABI variant.
6235 (alpha_abi_handler_list): Declare.
6236 (alpha_gdbarch_register_os_abi): New function.
6237 (alpha_gdbarch_init): Give registered ABI variant handlers a
6238 chance to tweak the gdbarch once we have set up defaults.
6239 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
6240
6241 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6242
6243 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
6244 to standard_coerce_float_to_double.
6245 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
6246
6247 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6248
6249 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
6250 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
6251 from gdbarch_tdep rather than a constant.
6252 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
6253 the default text address for all Alpha Unix ABIs.
6254 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
6255 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
6256
6257 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6258
6259 * alpha-tdep.h: New file. Includes several Alpha target constants
6260 taken from...
6261 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
6262 let gdbarch deal with.
6263 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
6264 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
6265 to dependency list.
6266 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
6267 Alpha target register names.
6268 * alphabsd-nat.c: Likewise.
6269 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
6270 Alpha target register names. Make serveral routines static.
6271 (alpha_get_saved_register): New function.
6272 (alpha_abi_names): New.
6273 (process_note_abi_tag_sections): New function.
6274 (get_elfosabi): New function.
6275 (alpha_gdbarch_init): New function.
6276 (alpha_dump_tdep): New function.
6277 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
6278
6279 2002-04-21 Andrew Cagney <ac131313@redhat.com>
6280
6281 * frame.c (find_saved_register): Delete #ifdef
6282 HAVE_REGISTER_WINDOWS code.
6283 * config/sparc/tm-sparc.h: Update comments.
6284 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
6285
6286 2002-04-21 Andrew Cagney <ac131313@redhat.com>
6287
6288 * i960-tdep.c (i960_find_saved_register): New function.
6289 (i960_get_saved_register): New function.
6290 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
6291 (i960_get_saved_register): Declare.
6292 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
6293
6294 2002-04-20 David S. Miller <davem@redhat.com>
6295
6296 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
6297
6298 2002-04-20 Andrew Cagney <ac131313@redhat.com>
6299
6300 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
6301 instead of NUM_PSEUDO_REGS.
6302
6303 2002-04-20 David S. Miller <davem@redhat.com>
6304
6305 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
6306 GDB_MULTI_ARCH_PARTIAL
6307 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
6308 define, let tm-sp64.h do it.
6309
6310 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
6311
6312 * frame.c (find_saved_register): Avoid a NULL pointer
6313 dereference and actually walk the frame list.
6314
6315 2002-04-20 Andrew Cagney <ac131313@redhat.com>
6316
6317 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
6318 sorted in most most-recent-used order. Document.
6319 * gdbarch.h, gdbarch.c: Regenerate.
6320
6321 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
6322
6323 * gdbserver/inferiors.c (struct inferior_info): Add regcache_data.
6324 (add_inferior): Call create_register_cache.
6325 (clear_inferiors): Call free_register_cache.
6326 (inferior_regcache_data, set_inferior_regcache_data): New functions.
6327 * gdbserver/regcache.c (struct inferior_regcache_data): New.
6328 (registers): Remove.
6329 (get_regcache): New function.
6330 (create_register_cache, free_register_cache): New functions.
6331 (set_register_cache): Don't initialize the register cache here.
6332 (registers_to_string, registers_from_string, register_data): Call
6333 get_regcache.
6334 * gdbserver/regcache.h: Add prototypes.
6335 * gdbserver/server.h: Likewise.
6336
6337 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
6338
6339 * gdbserver/mem-break.c: New file.
6340 * gdbserver/mem-break.h: New file.
6341 * gdbserver/Makefile.in: Add mem-break.o rule; update server.h
6342 dependencies.
6343 * gdbserver/inferiors.c (struct inferior_info): Add target_data
6344 member.
6345 (clear_inferiors): Free target_data member if set.
6346 (inferior_target_data, set_inferior_target_data): New functions.
6347 * gdbserver/linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
6348 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
6349 * gdbserver/linux-low.c (linux_bp_reinsert): New variable.
6350 (struct inferior_linux_data): New.
6351 (linux_create_inferior): Use set_inferior_target_data.
6352 (linux_attach): Likewise. Call add_inferior.
6353 (linux_wait_for_one_inferior): New function.
6354 (linux_wait): Call it.
6355 (linux_write_memory): Add const.
6356 (initialize_low): Call set_breakpoint_data.
6357 * gdbserver/linux-low.h (struct linux_target_ops): Add breakpoint
6358 handling members.
6359 * gdbserver/server.c (attach_inferior): Remove extra add_inferior
6360 call.
6361 * gdbserver/server.h: Include mem-break.h. Update inferior.c
6362 prototypes.
6363 * gdbserver/target.c (read_inferior_memory)
6364 (write_inferior_memory): New functions.
6365 * gdbserver/target.h (read_inferior_memory)
6366 (write_inferior_memory): Change macros to prototypes.
6367 (struct target_ops): Update comments. Add const to write_memory
6368 definition.
6369
6370 2002-04-19 Andrew Cagney <ac131313@redhat.com>
6371
6372 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
6373 instead of ->prev.
6374 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
6375 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
6376 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
6377 instead of ->prev.
6378
6379 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
6380
6381 Fix PR gdb/471.
6382 * gdbtypes.c (init_simd_type): Rewrite using new functions.
6383 (build_builtin_type_vec128): Ditto.
6384 (append_composite_type_field): Fix calculation of type length in
6385 union case.
6386
6387 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
6388
6389 * config/djgpp/README: Update.
6390
6391 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
6392 compiler warnings.
6393
6394 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
6395
6396 * alpha-tdep.c (setup_arbitrary_frame): Rename...
6397 (alpha_setup_arbitrary_frame): ...to this.
6398 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
6399 for alpha_setup_arbitrary_frame.
6400
6401 2002-04-18 Andrew Cagney <cagney@redhat.com>
6402
6403 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
6404 * gdbarch.h, gdbarch.c: Regenerate.
6405
6406 * defs.h (breakpoint_from_pc_fn): Delete type definition.
6407 * target.h (memory_breakpoint_from_pc): Update declaration.
6408 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
6409
6410 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
6411 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
6412 * mem-break.c (memory_breakpoint_from_pc): Ditto.
6413 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
6414 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
6415 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
6416 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
6417 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
6418 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
6419 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
6420 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
6421 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
6422
6423 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
6424 const pointer.
6425 * monitor.c (monitor_insert_breakpoint): Ditto.
6426 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
6427
6428 * config/mcore/tm-mcore.h: Update copyright.
6429 * mem-break.c: Ditto.
6430 * xstormy16-tdep.c: Ditto.
6431
6432 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
6433
6434 * p-exp.y: Add precedence rule for '^' token.
6435 This removes the shift/reduce conflicts.
6436 Remove the comment concerning these shift/reduce conflicts.
6437
6438 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
6439
6440 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
6441 (registers_powerpc_nofp): New register set for processors
6442 without floating point unit.
6443
6444 2002-04-18 David S. Miller <davem@redhat.com>
6445
6446 * MAINTAINERS: Add myself to write-after-approval.
6447
6448 2002-04-17 Michael Snyder <msnyder@redhat.com>
6449
6450 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
6451
6452 2002-04-17 Andrew Cagney <ac131313@redhat.com>
6453
6454 * rs6000-tdep.c (frame_initial_stack_address): Use
6455 frame_register_read to read the alloca_reg.
6456
6457 2002-04-17 Andrew Cagney <ac131313@redhat.com>
6458
6459 * frame.c (find_saved_register): Find saved registers in the next
6460 not prev frame.
6461 Fix PR gdb/365.
6462
6463 2002-04-17 Andrew Cagney <ac131313@redhat.com>
6464
6465 * gdbarch.sh (LANG): Set to ``c''.
6466
6467 2002-04-15 Andrew Cagney <ac131313@redhat.com>
6468
6469 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
6470
6471 2002-04-15 Andrew Cagney <ac131313@redhat.com>
6472
6473 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
6474 Update copyright.
6475
6476 * hpread.c (hpread_get_lntt): Add declaration.
6477 Also fix PR gdb/391.
6478
6479 2002-04-14 Andrew Cagney <ac131313@redhat.com>
6480
6481 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
6482 * aclocal.m4, configure: Re-generate.
6483 Fix PR gdb/391.
6484
6485 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
6486
6487 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
6488 instead of tm_print_insn.
6489
6490 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
6491
6492 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
6493
6494 2002-04-14 Andrew Cagney <ac131313@redhat.com>
6495
6496 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
6497 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
6498 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
6499
6500 2002-04-12 Don Howard <dhoward@redhat.com>
6501
6502 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
6503 max_user_call_depth.
6504 (init_cmd_lists): Initialize the new value;
6505 * cli/cli-script.c (execute_user_command): Limit the call depth of
6506 user defined commands. This avoids a core-dump when user commands
6507 are infinitly recursive.
6508
6509 2002-04-12 Kevin Buettner <kevinb@redhat.com>
6510
6511 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
6512 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
6513 from tdep struct instead of DEFAULT_LR_SAVE.
6514 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
6515 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
6516 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
6517
6518 2002-04-12 Michael Snyder <msnyder@redhat.com>
6519
6520 * Remote.c: Spelling fix.
6521 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
6522 If no symbol found for "sbrk", try "_sbrk".
6523 (make_output_phdrs): Use bfd_section_name.
6524 (gcore_copy_callback): Use bfd_section_name.
6525 * eval.c: Indentation fix-ups.
6526 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
6527 in case it gets applied to an address that is already
6528 in the instruction space.
6529 * cli/cli-decode.c (help_list): Allow long lines to wrap.
6530 * symfile.c: Fix indentation, long lines.
6531 * source.c: White space fix-up.
6532
6533 2002-04-12 Andrew Cagney <cagney@redhat.com>
6534
6535 * defs.h (read_relative_register_raw_bytes): Delete declaration.
6536 * frame.c (frame_register_read): New function. Return non-zero on
6537 success.
6538 (read_relative_register_raw_bytes_for_frame): Delete.
6539 (read_relative_register_raw_bytes): Delete.
6540 * frame.h (frame_register_read): Declare.
6541 * d30v-tdep.c: Update Copyright. Use frame_register_read.
6542 * sh-tdep.c: Ditto.
6543 * infcmd.c (do_registers_info): Ditto.
6544 * hppa-tdep.c: Ditto.
6545 * rs6000-tdep.c: Ditto.
6546 * h8500-tdep.c: Ditto.
6547 * mips-tdep.c: Ditto.
6548 * h8300-tdep.c: Ditto.
6549 * z8k-tdep.c: Ditto.
6550
6551 2002-04-12 Kevin Buettner <kevinb@redhat.com>
6552
6553 From Jimi X <jimix@watson.ibm.com>:
6554 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
6555 64-bit SysV ABI.
6556
6557 2002-04-12 Kevin Buettner <kevinb@redhat.com>
6558
6559 From Jimi X <jimix@watson.ibm.com>:
6560 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
6561 bfd info.
6562
6563 2002-04-12 Kevin Buettner <kevinb@redhat.com>
6564
6565 From Jimi X <jimix@watson.ibm.com>:
6566 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
6567 register sets for these processor variants.
6568
6569 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
6570
6571 * gdbserver/linux-low.c (usr_store_inferior_registers): Support
6572 registers which are allowed to fail to store.
6573 * gdbserver/linux-low.h (linux_target_ops): Likewise.
6574 * gdbserver/linux-ppc-low.c (ppc_regmap): Support FPSCR.
6575 (ppc_cannot_store_register): FPSCR may not be storable.
6576 * regformats/reg-ppc.dat: Support FPSCR.
6577
6578 2002-04-11 Kevin Buettner <kevinb@redhat.com>
6579
6580 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
6581 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
6582 Add fpscr as an invalid/unfetchable register.
6583 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
6584 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
6585 (fill_fpregset): Add support for register fpscr.
6586 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
6587 (fill_gregset): Account for the fact that register ``mq'' might
6588 not exist.
6589 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
6590 (registers_power): Add fpscr to register set at slot 71.
6591 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
6592 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
6593
6594 2002-04-11 Michael Snyder <msnyder@redhat.com>
6595
6596 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
6597 * configure: Regenerate.
6598 * config.in: Regenerate.
6599 * acconfig.h: Add define for _SYSCALL32.
6600 * core-sol2.c: Remove #define _SYSCALL32.
6601 * solib-legacy.c: Remove #define _SYSCALL32.
6602
6603 2002-04-10 Andrew Cagney <ac131313@redhat.com>
6604
6605 * stack.c (select_frame): Cleanup internal error message, do not
6606 use %p.
6607
6608 2002-04-10 Andrew Cagney <ac131313@redhat.com>
6609
6610 * stack.c (select_frame): Check that selected_frame and the
6611 specified level are as expected.
6612 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
6613 Update copyright.
6614 * frame.h (struct frame_info): Add field `level'. Update
6615 copyright.
6616 Work-in-progress PR gdb/464.
6617
6618 2002-04-10 Andrew Cagney <ac131313@redhat.com>
6619
6620 * maint.c (maint_print_section_info): Rename print_section_info.
6621 (print_bfd_section_info, print_objfile_section_info): Update.
6622 * inferior.h (struct gdbarch): Add opaque declaration.
6623 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
6624 * gdbarch.h: Regenerate.
6625
6626 2002-04-10 Michal Ludvig <mludvig@suse.cz>
6627
6628 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
6629 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
6630 (kernel_u_size): Added.
6631 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
6632 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
6633
6634 2002-04-04 Jim Ingham <jingham@apple.com>
6635
6636 * valarith.c (find_size_for_pointer_math): New function, either returns
6637 the size for a pointer's target, returns 1 for void *, or errors for
6638 incomplete types.
6639 (value_add, value_sub): use find_size_for_pointer_math.
6640
6641 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
6642
6643 * linux-low.c (linux_look_up_symbols): New hook.
6644 (linux_target_ops): Add linux_look_up_symbols.
6645 * remote-utils.c (decode_address): New function.
6646 (look_up_one_symbol): New function.
6647 * server.c (handle_query): Call target look_up_symbols hook.
6648 * server.h (look_up_one_symbol): Add prototype.
6649 * target.h (struct target_ops): Add look_up_symbols hook.
6650
6651 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
6652
6653 * gdbserver/server.h: Include <string.h> if HAVE_STRING_H.
6654 * ChangeLog: Correct paths in last ChangeLog entry.
6655
6656 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
6657
6658 * gdbserver/linux-low.h: Remove obsolete prototypes.
6659 (struct linux_target_ops): New.
6660 (extern the_low_target): New.
6661 * gdbserver/linux-low.c (num_regs, regmap): Remove declarations.
6662 (register_addr): Use the_low_target explicitly.
6663 (fetch_register): Likewise.
6664 (usr_fetch_inferior_registers): Likewise.
6665 (usr_store_inferior_registers): Likewise.
6666 * gdbserver/linux-arm-low.c (num_regs): Remove.
6667 (arm_num_regs): Define.
6668 (arm_regmap): Renamed from regmap, made static.
6669 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
6670 made static.
6671 (arm_cannot_store_register): Renamed from cannot_store_register,
6672 made static.
6673 (the_low_target): New.
6674 * gdbserver/linux-i386-low.c (num_regs): Remove.
6675 (i386_num_regs): Define.
6676 (i386_regmap): Renamed from regmap, made static.
6677 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
6678 made static.
6679 (i386_cannot_store_register): Renamed from cannot_store_register,
6680 made static.
6681 (the_low_target): New.
6682 * gdbserver/linux-ia64-low.c (num_regs): Remove.
6683 (ia64_num_regs): Define.
6684 (ia64_regmap): Renamed from regmap, made static.
6685 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
6686 made static.
6687 (ia64_cannot_store_register): Renamed from cannot_store_register,
6688 made static.
6689 (the_low_target): New.
6690 * gdbserver/linux-m68k-low.c (num_regs): Remove.
6691 (m68k_num_regs): Define.
6692 (m68k_regmap): Renamed from regmap, made static.
6693 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
6694 made static.
6695 (m68k_cannot_store_register): Renamed from cannot_store_register,
6696 made static.
6697 (the_low_target): New.
6698 * gdbserver/linux-mips-low.c (num_regs): Remove.
6699 (mips_num_regs): Define.
6700 (mips_regmap): Renamed from regmap, made static.
6701 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
6702 made static.
6703 (mips_cannot_store_register): Renamed from cannot_store_register,
6704 made static.
6705 (the_low_target): New.
6706 * gdbserver/linux-ppc-low.c (num_regs): Remove.
6707 (ppc_num_regs): Define.
6708 (ppc_regmap): Renamed from regmap, made static.
6709 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
6710 made static.
6711 (ppc_cannot_store_register): Renamed from cannot_store_register,
6712 made static.
6713 (the_low_target): New.
6714 * gdbserver/linux-s390-low.c (num_regs): Remove.
6715 (s390_num_regs): Define.
6716 (s390_regmap): Renamed from regmap, made static.
6717 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
6718 made static.
6719 (s390_cannot_store_register): Renamed from cannot_store_register,
6720 made static.
6721 (the_low_target): New.
6722 * gdbserver/linux-sh-low.c (num_regs): Remove.
6723 (sh_num_regs): Define.
6724 (sh_regmap): Renamed from regmap, made static.
6725 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
6726 made static.
6727 (sh_cannot_store_register): Renamed from cannot_store_register,
6728 made static.
6729 (the_low_target): New.
6730 * gdbserver/linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
6731 (the_low_target): New.
6732
6733 2002-04-09 Andrew Cagney <ac131313@redhat.com>
6734
6735 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
6736 override FP_REGNUM with frame->fp. Update copyright.
6737 * parse.c (num_std_regs, std_regs): Delete.
6738 (target_map_name_to_register): Do not search std_regs. Update
6739 function description.
6740 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
6741 declarations. Update copyright.
6742 Fix PR gdb/251.
6743
6744 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
6745
6746 * gdbserver/Makefile.in: Add stamp-h target.
6747 * gdbserver/configure.in: Create stamp-h.
6748 * gdbserver/configure: Regenerated.
6749
6750 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
6751
6752 * gdbserver/inferiors.c: New file.
6753 * gdbserver/target.c: New file.
6754 * gdbserver/target.h: New file.
6755 * gdbserver/Makefile.in: Add target.o and inferiors.o. Update
6756 dependencies.
6757 * gdbserver/linux-low.c (inferior_pid): New static variable,
6758 moved from server.c.
6759 (linux_create_inferior): Renamed from create_inferior.
6760 Call add_inferior. Return 0 on success instead of a PID.
6761 (linux_attach): Renamed from myattach.
6762 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
6763 (linux_thread_alive): Renamed from mythread_alive.
6764 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
6765 child dies.
6766 (linux_resume): Renamed from myresume. Add missing ``return 0''.
6767 (regsets_store_inferior_registers): Correct error message.
6768 Add missing ``return 0''.
6769 (linux_fetch_registers): Renamed from fetch_inferior_registers.
6770 (linux_store_registers): Renamed from store_inferior_registers.
6771 (linux_read_memory): Renamed from read_inferior_memory.
6772 (linux_write_memory): Renamed from write_inferior_memory.
6773 (linux_target_ops): New structure.
6774 (initialize_low): Call set_target_ops ().
6775 * gdbserver/remote-utils.c (unhexify): New function.
6776 (hexify): New function.
6777 (input_interrupt): Send signals to ``signal_pid''.
6778 * gdbserver/server.c (inferior_pid): Remove.
6779 (start_inferior): Update create_inferior call.
6780 (attach_inferior): Call add_inferior.
6781 (handle_query): New function.
6782 (main): Call handle_query for `q' packets.
6783 * gdbserver/server.h: Include "target.h". Remove obsolete prototypes.
6784 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
6785
6786 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
6787
6788 * gdbserver/Makefile.in: Add WARN_CFLAGS. Update configury
6789 dependencies.
6790 * gdbserver/configure.in: Check for <string.h>
6791 * gdbserver/configure: Regenerate.
6792 * gdbserver/config.in: Regenerate.
6793 * gdbserver/gdbreplay.c: Include needed system headers.
6794 (remote_open): Remove strchr prototype.
6795 * gdbserver/linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
6796 * gdbserver/regcache.c (supply_register): Change buf argument to const void *.
6797 (supply_register_by_name): Likewise.
6798 (collect_register): Change buf argument to void *.
6799 (collect_register_by_name): Likewise.
6800 * gdbserver/regcache.h: Add missing prototypes.
6801 * gdbserver/remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
6802 * gdbserver/server.c (handle_query): New function.
6803 (attached): New static variable, moved out of main.
6804 (main): Quiet longjmp clobber warnings.
6805 * gdbserver/server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
6806 * gdbserver/utils.c (error): Remove NORETURN.
6807 (fatal): Likewise.
6808
6809 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
6810
6811 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
6812 after the last symbol in a block.
6813
6814 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
6815
6816 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
6817 is non zero as a found symbol.
6818
6819 2002-04-08 Andrew Cagney <ac131313@redhat.com>
6820
6821 * findvar.c: Include "builtin-regs.h".
6822 (value_of_register): Call value_of_builtin_reg when applicable.
6823 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
6824 (target_map_name_to_register): Call
6825 builtin_reg_map_name_to_regnum.
6826 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
6827 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
6828 (builtin_regs_h): Define.
6829 (builtin-regs.o): New target.
6830 (findvar.o): Add $(builtin_regs_h).
6831 * builtin-regs.c, builtin-regs.h: New files.
6832 * std-regs.c: New file.
6833 Partial fix for PR gdb/251.
6834
6835 2002-04-08 Kevin Buettner <kevinb@redhat.com>
6836
6837 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
6838 it's no longer required.
6839
6840 2002-04-08 Andrew Cagney <ac131313@redhat.com>
6841
6842 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
6843
6844 2002-04-08 Kevin Buettner <kevinb@redhat.com>
6845
6846 From Jimi X <jimix@watson.ibm.com>:
6847 * rs6000-tdep.c (rs6000_software_single_step): Use
6848 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
6849 and size. Use target_insert_breakpoint() and
6850 target_remove_breakpoint() to insert and remove breakpoints
6851 instead of explicit memory reads and writes.
6852
6853 2002-04-08 Kevin Buettner <kevinb@redhat.com>
6854
6855 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
6856 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
6857 ELF_OBJECT_FORMAT ifdef.
6858
6859 2002-04-08 Kevin Buettner <kevinb@redhat.com>
6860
6861 From Jimi X <jimix@watson.ibm.com>:
6862 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
6863
6864 2002-04-08 Kevin Buettner <kevinb@redhat.com>
6865
6866 From Jimi X <jimix@watson.ibm.com>:
6867 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
6868 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
6869
6870 2002-04-07 Mark Kettenis <kettenis@gnu.org>
6871
6872 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
6873 s/asprintf/xasprintf/.
6874 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
6875
6876 2002-04-07 Andrew Cagney <ac131313@redhat.com>
6877
6878 I believe Jeff Law denies responsability for this one:
6879 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
6880 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
6881 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
6882 Work-around for PR gdb/366.
6883
6884 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
6885
6886 * remote-e7000.c (write_small, e7000_read_inferior_memory,
6887 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
6888 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
6889
6890 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
6891
6892 * sh-tdep.c (sh_fp_frame_init_saved_regs,
6893 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
6894 information.
6895
6896 2002-04-07 Andrew Cagney <ac131313@redhat.com>
6897
6898 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
6899 maintainer.
6900
6901 2002-04-07 Andrew Cagney <ac131313@redhat.com>
6902
6903 * README (Reporting Bugs in GDB): Document the bug web page as the
6904 prefered way of submitting bugs.
6905 Fix PR gdb/402.
6906
6907 2002-04-06 Andrew Cagney <ac131313@redhat.com>
6908
6909 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
6910 -1. Update comment.
6911 * gdbarch.h, gdbarch.c: Re-generate.
6912
6913 2002-04-07 Andreas Schwab <schwab@suse.de>
6914
6915 * m68klinux-nat.c (fill_fpregset): Properly pass address of
6916 buffer to regcache_collect.
6917
6918 2002-04-06 Andrew Cagney <ac131313@redhat.com>
6919
6920 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
6921 * gdbarch.c, gdbarch.h: Re-generate.
6922
6923 2002-04-06 Andrew Cagney <ac131313@redhat.com>
6924
6925 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
6926 declaration. Fix -Werror.
6927
6928 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
6929
6930 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
6931 * gdbarch.c: Regenerate.
6932
6933 2002-04-05 Michael Snyder <msnyder@redhat.com>
6934
6935 * breakpoint.c (clear_command): Rewrite middle section to
6936 combine two loops with identical control conditions.
6937 Add a cleanup to eliminate a memory leak.
6938 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
6939
6940 2002-04-05 H.J. Lu (hjl@gnu.org)
6941
6942 * solib-svr4.c (bkpt_names): Add "__start".
6943
6944 2002-04-04 Andrew Cagney <ac131313@redhat.com>
6945
6946 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
6947 as test for 64 bit target.
6948
6949 2002-04-05 Andrew Cagney <ac131313@redhat.com>
6950
6951 * h8500-tdep.c (h8500_write_fp): Delete function.
6952 * dwarf2cfi.c (cfi_write_fp): Document as not used.
6953 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
6954 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
6955 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
6956 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
6957 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
6958 (s390_write_fp):
6959 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
6960 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
6961 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
6962 (d10v_write_fp): Delete function.
6963 * inferior.h (write_fp, generic_target_write_fp): Delete
6964 declarations.
6965 * regcache.c (generic_target_write_fp): Delete function.
6966 (write_fp): Delete function.
6967 * gdbarch.sh (TARGET_WRITE_FP): Delete.
6968 * gdbarch.h, gdbarch.c: Regenerate.
6969 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
6970 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
6971 (sparc64_write_fp): Delete declaration.
6972 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
6973 (h8500_write_fp): Delete declaration.
6974
6975 2002-04-04 Andrew Cagney <ac131313@redhat.com>
6976
6977 * sparc-tdep.c (sparc64_write_fp): Delete.
6978 (sparc_push_dummy_frame): Replace write_fp call with code to store
6979 the FP directly.
6980 (sparc_gdbarch_init): Do not initialize write_fp.
6981
6982 2002-04-05 Kevin Buettner <kevinb@redhat.com>
6983
6984 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
6985 clause.
6986
6987 2002-03-29 Jim Blandy <jimb@redhat.com>
6988
6989 * stack.c (get_selected_block): Add new argument `addr_in_block',
6990 used to return the exact code address we used to select the block,
6991 not just the block.
6992 * blockframe.c (get_frame_block, get_current_block): Same.
6993 * frame.h (get_frame_block, get_current_block,
6994 get_selected_block): Update declarations.
6995 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
6996 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
6997
6998 2002-04-05 Michael Snyder <msnyder@redhat.com>
6999
7000 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
7001 warning message.
7002
7003 2002-04-05 J. Brobecker <brobecker@gnat.com>
7004
7005 * utils.c (xfullpath): New function.
7006 * defs.h (xfullpath): Add declaration.
7007 * source.c (openp): Use xfullpath in place of gdb_realpath to
7008 avoid resolving the basename part of filenames when the
7009 associated file is a symbolic link. This fixes a potential
7010 inconsistency between the filenames known to GDB and the
7011 filenames it prints in the annotations.
7012 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
7013 to be able to match a filename with either the real filename, or
7014 the name of any symbolic link to this file.
7015 (lookup_partial_symtab): Ditto.
7016
7017 2002-04-04 Michael Snyder <msnyder@redhat.com>
7018
7019 * breakpoint.c: Add support for hardware breakpoints in overlays.
7020 (overlay_events_enabled): New state variable.
7021 (insert_breakpoints): Use overlay_events_enabled to decide
7022 whether to attempt to set a breakpoint at the overlay load addr.
7023 Handle bp_hardware_breakpoint as well as bp_breakpoint.
7024 (remove_breakpoint): Use overlay_events_enabled to decide
7025 whether breakpoints need to be removed from overlay load addr.
7026 Handle bp_hardware_breakpoint as well as bp_breakpoint.
7027 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
7028 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
7029 disable_overlay_breakpoints): Update overlay_events_enabled.
7030
7031 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
7032
7033 * dwarf2read.c (struct function_range): New.
7034 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
7035 (check_cu_functions): New.
7036 (read_file_scope): Initialize global function lists.
7037 Call dwarf_decode_line after processing children.
7038 (read_func_scope): Add to global function list.
7039 (dwarf_decode_lines): Call check_cu_functions everywhere
7040 record_line is called. Call record_line with a linenumber
7041 of 0 to mark sequence ends.
7042
7043 2002-04-04 Michal Ludvig <mludvig@suse.cz>
7044
7045 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7046 change sync with glibc.
7047
7048 2002-04-03 Jim Blandy <jimb@redhat.com>
7049
7050 * configure.in: Call AC_C_INLINE.
7051 * configure: Regenerated.
7052
7053 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
7054
7055 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
7056 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
7057
7058 2002-03-31 Mark Kettenis <kettenis@gnu.org>
7059
7060 * NEWS: Mention gcore support on FreeBSD/i386.
7061
7062 * fbsd-proc.c: New file.
7063 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
7064 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
7065
7066 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
7067 while statement.
7068
7069 2002-03-29 Jim Blandy <jimb@redhat.com>
7070
7071 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
7072 unescaped newlines in string literals, but newer ones don't. So
7073 escape them.
7074
7075 2002-03-26 Michael Snyder <msnyder@redhat.com>
7076 Andrew Cagney <cagney@redhat.com>
7077
7078 * cli/cli-dump.c: New file. Dump memory to file,
7079 restore file to memory.
7080 * cli/cli-dump.h: New file.
7081 * Makefile.in: Add rules, dependencies for cli-dump.o.
7082 * NEWS: Mention new commands.
7083
7084 2002-03-28 Michael Snyder <msnyder@redhat.com>
7085
7086 * symfile.c (symbol_file_add): Move test for null symbols to later.
7087
7088 2002-03-27 Andrew Cagney <ac131313@redhat.com>
7089
7090 From veksler at il.ibm.com:
7091 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
7092 the xstrduped original path.
7093 Fix PR gdb/417.
7094
7095 2002-03-27 Michael Snyder <msnyder@redhat.com>
7096
7097 * breakpoint.c (_initialize_breakpoint): Clean up help string.
7098 * infcmd.c (_initialize_infcmd): Ditto.
7099 * language.c (_initialize_language): Ditto.
7100 * symfile.c (_initialize_symfile): Ditto.
7101 * top.c (_init_main): Ditto.
7102 * cli/cli-cmds.c (init_cli_cmds): Ditto.
7103
7104 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
7105
7106 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
7107 vector registers handling.
7108 (skip_prologue): Handle new AltiVec instructions. Fill in new
7109 fields of frame data.
7110 (frame_get_saved_regs): Fill in information for AltiVec registers.
7111
7112 2002-03-27 Jim Blandy <jimb@redhat.com>
7113
7114 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
7115 a function; leave this macro here to invoke that function.
7116 (symbol_init_mangled_name): Declaration for that function.
7117 * symtab.c (symbol_init_mangled_name): New function.
7118
7119 2002-03-27 Andrew Cagney <ac131313@redhat.com>
7120
7121 * valarith.c: Replace strerror with safe_strerror.
7122 * tracepoint.c: Ditto.
7123 * lin-lwp.c: Ditto.
7124 * go32-nat.c: Ditto.
7125 * inflow.c: Ditto.
7126 * gnu-nat.c: Ditto.
7127
7128 2002-03-27 Andreas Schwab <schwab@suse.de>
7129
7130 * event-top.c (command_line_handler): Remove useless if.
7131
7132 2002-03-27 Andreas Jaeger <aj@suse.de>
7133
7134 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
7135 comment.
7136
7137 2002-03-27 Michal Ludvig <mludvig@suse.cz>
7138
7139 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
7140 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
7141 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
7142 (x86_64_linux_dr_get_status, supply_gregset),
7143 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
7144 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
7145 (x86_64_register_info_table): Add.
7146 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
7147 (x86_64_register_raw_size, x86_64_register_virtual_type),
7148 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
7149 general x86_64_register_info_table.
7150 (i386_gdbarch_init): gdbarch_register_bytes is now set
7151 dynamicaly during initialization.
7152 * regformats/reg-x86-64.dat: Synced with changes to registers above.
7153 * gdbserver/linux-x86-64-low.c: Ditto.
7154
7155 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
7156
7157 * gdbserver/server.c (main): Call target_signal_to_host_p
7158 and target_signal_to_host on signals received from the remote.
7159 * gdbserver/remote-utils.c (prepare_resume_reply): Call
7160 target_signal_from_host on signals sent to the remote.
7161 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
7162 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
7163
7164 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
7165
7166 * signals/signals.c: Include "server.h" in gdbserver build.
7167 (target_signal_from_name): Don't use STREQ.
7168 (_initialize_signals): Likewise. Don't include function in
7169 gdbserver build.
7170
7171 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
7172
7173 * signals.c: Moved to...
7174 * signals/signals.c: Here.
7175 * Makefile (signals.o): Update.
7176
7177 2002-03-26 Jeff Law (law@redhat.com)
7178
7179 * somread.c (som_symtab_read): Remove some commented out code and
7180 updated related comments. Do not set the minimal symbol table to
7181 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
7182 in a dynamic executable.
7183 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
7184 where we are unable to find the minimal symbol for the given
7185 PC value.
7186
7187 2002-03-25 Jeff Law (law@redhat.com)
7188
7189 * linux-proc.c (read_mapping): Scan up to end of line for filename.
7190
7191 2002-03-25 Michal Ludvig <mludvig@suse.cz>
7192
7193 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
7194
7195 2002-03-23 Andrew Cagney <ac131313@redhat.com>
7196
7197 * command.h: Update copyright.
7198 (struct cmd_list_element): Replace definition with opaque
7199 declaration.
7200 (enum cmd_types): Document that it will eventually be moved to
7201 cli/cli-decode.h
7202 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
7203 (MALLOCED_REPLACEMENT): Delete macro.
7204 * Makefile.in (cli_decode_h): Add $(command_h).
7205 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7206 * top.c: Include "cli/cli-decode.h".
7207 * completer.c: Include "cli/cli-decode.h".
7208 * maint.c: Include "cli/cli-decode.h".
7209 * cli/cli-decode.h: Include "command.h".
7210 (enum command_class): Delete.
7211 (enum cmd_types): Comment out.
7212 (enum cmd_auto_boolean): Delete.
7213 (enum var_types): Delete.
7214
7215 2002-03-23 Andrew Cagney <ac131313@redhat.com>
7216
7217 * cli/cli-decode.c: Include "gdb_assert.h".
7218 (add_set_or_show_cmd): New static function.
7219 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
7220 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
7221 all fields, such as func, from the set command.
7222
7223 2002-03-23 Andrew Cagney <ac131313@redhat.com>
7224
7225 * MAINTAINERS (sh-elf): Change warning flag to -w.
7226
7227 2002-03-23 Andrew Cagney <cagney@redhat.com>
7228
7229 * defs.h (error): Add printf format attribute.
7230 * thread-db.c (thread_from_lwp): Fix error format string.
7231 * stack.c (parse_frame_specification): Ditto.
7232 * cli/cli-decode.c (undef_cmd_error): Ditto.
7233 * scm-lang.c (scm_lookup_name): Ditto.
7234 * tracepoint.c (trace_error): Ditto.
7235 * remote-utils.c (usage): Ditto.
7236 * remote.c (compare_sections_command): Ditto.
7237 Fix PR gdb/328.
7238
7239 2002-03-22 Andrew Cagney <ac131313@redhat.com>
7240
7241 * gdbtypes.c (append_composite_type_field): New function.
7242 (init_composite_type): New function.
7243 * gdbtypes.h (append_composite_type_field): Declare.
7244 (init_composite_type): Ditto.
7245
7246 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
7247
7248 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7249 function.
7250 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
7251 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
7252 structure returning convention for SYSV ABI case, but not
7253 for GNU/Linux, FreeBSD, or NetBSD.
7254
7255 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
7256
7257 * symtab.h (lookup_block_symbol): Add mangled_name argument
7258 to prototype.
7259
7260 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
7261 with new mangled_name argument.
7262 * linespec.c (decode_line_1): Likewise.
7263 * valops (value_of_this): Likewise.
7264 * symtab.c (lookup_transparent_type): Likewise.
7265 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
7266 (lookup_symbol): If we are given a mangled name, pass it down
7267 to lookup_symbol_aux.
7268 (lookup_block_symbol): If we are given a mangled name to check
7269 against, only return symbols which match it.
7270
7271 2002-03-22 Christopher Faylor <cgf@redhat.com>
7272
7273 * win32-nat.c (child_create_inferior): Check for proper shell to use
7274 here, in case the user changes it on the fly.
7275 (_initialize_inftarg): Remove shell path considerations.
7276
7277 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
7278
7279 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
7280 for gdbarch_max_register_raw_size and max_register_virtual_size.
7281 Adjust copyright year.
7282
7283 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
7284
7285 * dbxread.c (process_one_symbol): Extend the first N_SLINE
7286 in a function to cover the entire beginning of the function
7287 as well if it does not already.
7288
7289 2002-03-21 Tom Rix <trix@redhat.com>
7290
7291 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
7292 (rs6000_ptrace64): Renamed from ptrace64.
7293
7294 2002-03-20 Martin M. Hunt <hunt@redhat.com>
7295
7296 * gdbserver/remote-utils.c (remote_open): Don't call
7297 getprotobyname, we're all using TCP here so just use
7298 IPPROTO_TCP.
7299 * gdbserver/gdbreplay.c (remote_open): Ditto.
7300
7301 2002-03-20 Martin M. Hunt <hunt@redhat.com>
7302
7303 * regcache.c (_initialize_regcache): No need to call
7304 build_regcache() at this time; it gets called whenever
7305 the gdbarch changes.
7306
7307 2002-03-20 David O'Brien <obrien@FreeBSD.org>
7308
7309 * sparc-nat.c: Include sys/param.h where possible.
7310
7311 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
7312
7313 Fix PR gdb/422.
7314 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
7315 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
7316 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
7317 complex types.
7318 * stabsread.c (rs6000_builtin_type): Likewise.
7319 (read_sun_floating_type): Likewise.
7320
7321 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7322
7323 * stabsread.c (read_member_functions): Remove skip code for duplicate
7324 constructor/destructor methods. Use standard parsing for these
7325 methods and just do not chain them to the list of methods after
7326 parsing.
7327
7328 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
7329
7330 * coffread.c: Remove redundant static declarations. Replace
7331 occurrences of `PTR' with `void *'.
7332 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
7333 * top.h (quit_cover): Likewise.
7334 * defs.h (catch_errors): Likewise.
7335
7336 2002-03-18 Andrew Cagney <ac131313@redhat.com>
7337
7338 * defs.h (XMALLOC): Define.
7339 * gdb-events.sh (XMALLOC): Delete macro.
7340 * gdb-events.c, gdb-events.h: Regenerate.
7341 * gdbarch.sh (XMALLOC): Delete macro.
7342 * gdbarch.c: Regenerate.
7343 * serial.c (XMALLOC): Delete macro.
7344 * ui-file.c (XMALLOC): Ditto.
7345 * ser-unix.h (XMALLOC): Ditto.
7346 * sh-tdep.c (XMALLOC): Ditto.
7347 * ui-out.c (XMALLOC): Ditto.
7348 * utils.c (XMALLOC): Ditto.
7349 * i386-tdep.c (XMALLOC): Ditto.
7350 * gdb-events.c (XMALLOC): Ditto.
7351 * d10v-tdep.c (XMALLOC): Ditto.
7352 * cli-out.c (XMALLOC): Ditto.
7353
7354 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
7355 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
7356 * ui-file.c, ui-out.c: Ditto.
7357
7358 2002-03-18 Andrew Cagney <ac131313@redhat.com>
7359
7360 * command.h (struct cmd_list_element): Add field context.
7361 (set_cmd_context, get_cmd_context): Declare.
7362 * cli/cli-decode.h: Ditto.
7363 * cli/cli-decode.c (get_cmd_context): New function.
7364 (set_cmd_context): New function.
7365 (add_cmd): Initialize context.
7366 Part of fixing PR gdb/145 and PR gdb/146.
7367
7368 2002-03-17 Andrew Cagney <ac131313@redhat.com>
7369
7370 * cli/cli-decode.c (cmd_type): New function.
7371 * command.h (cmd_type): Declare.
7372 * infrun.c (set_schedlock_func): Call function cmd_type.
7373 * kod.c (kod_set_os): Call cmd_type.
7374 * cris-tdep.c (cris_version_update): Use function cmd_type.
7375 (cris_mode_update, cris_abi_update): Ditto.
7376
7377 * command.h: (execute_cmd_post_hook): Declare.
7378 (execute_cmd_pre_hook): Declare.
7379 * cli/cli-script.c (clear_hook_in_cleanup): New function.
7380 (execute_cmd_post_hook, execute_cmd_pre_hook): New
7381 functions. Execute pre/post hook while ensuring that afterwords
7382 hook_in is cleared.
7383 * top.c (execute_command): Use execute_cmd_post_hook, and
7384 execute_cmd_pre_hook to execute pre/post commands.
7385 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
7386 hook_stop_stub.
7387 (hook_stop_stub): Call execute_cmd_pre_hook.
7388
7389 2002-03-17 Andrew Cagney <ac131313@redhat.com>
7390
7391 * kod.c (kod_set_os): Revert previous change. Is called by ``info
7392 set'' and this leads to a core dump. Move xstrdup of
7393 operating_system to after check that it is not NULL.
7394
7395 2002-03-17 Andrew Cagney <ac131313@redhat.com>
7396
7397 * kod.c (kod_set_os): Remove unnecessary check that
7398 ``command->type'' is set_cmd.
7399
7400 * valprint.c (set_input_radix): Use input_radix.
7401 (set_output_radix): Use output_radix.
7402 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
7403 isn't reverted.
7404
7405 2002-03-16 Andrew Cagney <ac131313@redhat.com>
7406
7407 * value.h (struct value): Delete field ``substring_addr''. Change
7408 aligner fields to force_doublest_align, force_longest_align,
7409 force_core_addr_align and force_pointer_aligh.
7410
7411 * value.h (struct value): Fix typo in above change.
7412
7413 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7414
7415 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
7416 to fix internal_error from ``maintenance print architecture''.
7417
7418 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7419
7420 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
7421 for gcc versions after gcc-2.8.1.
7422
7423 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7424
7425 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
7426 for method resolution. Restore adjustment of ``this'' pointer after
7427 calling value_struct_elt, which was accidentally removed during the
7428 HP merge.
7429
7430 2002-03-15 Andrew Cagney <ac131313@redhat.com>
7431
7432 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
7433 value_of_register.
7434 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
7435 get_saved_register.
7436 * value.h (value_of_register): Update.
7437
7438 2002-03-14 Richard Henderson <rth@redhat.com>
7439
7440 * configure.in: Detect declaration for canonicalize_file_name.
7441 * utils.c (canonicalize_file_name): Declare, if needed.
7442 (gdb_realpath): Prefer realpath if available and usable.
7443 * config.in, configure: Rebuild.
7444
7445 2002-03-14 Richard Henderson <rth@redhat.com>
7446
7447 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
7448 a constant array bound.
7449
7450 * MAINTAINERS: Add myself to write-after-approval.
7451
7452 2002-03-14 Michael Snyder <msnyder@redhat.com>
7453
7454 * symfile.c (syms_from_objfile): Return immediately if no syms.
7455 (symbol_file_add): Return immediately if no syms.
7456 (find_sym_fns): Return immediately if no syms.
7457
7458 2002-03-13 Michal Ludvig <mludvig@suse.cz>
7459
7460 * gdbserver/remote-util.c (remote_open): Print remote-side's
7461 IP address when remote debugging over the network.
7462
7463 2002-03-12 David O'Brien <obrien@FreeBSD.org>
7464
7465 * config/sparc/fbsd.mh: Fix copyright.
7466 * config/sparc/fbsd.mt: Likewise.
7467
7468 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
7469
7470 * MAINTAINERS: Fix typo in name of gdb warnings option.
7471 (x86-64): Fix formating so that this can be parsed by awk.
7472
7473 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
7474
7475 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
7476 * defs.h: Include "gdb/signals.h".
7477 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
7478
7479 2002-03-10 Michal Ludvig <mludvig@suse.cz>
7480
7481 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7482 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
7483 from x86-64-tdep.h
7484
7485 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
7486 Don Howard <dhoward@redhat.com>
7487
7488 * mips-tdep.c (ST0_FR): Define.
7489 (mips2_fp_compat): New function, temporarily disabled.
7490 (mips_read_fp_register_single): New function.
7491 (mips_read_fp_register_double): New function.
7492 (mips_print_register): Use them.
7493 (do_fp_register_row): Likewise.
7494
7495 2002-03-09 Andrew Cagney <ac131313@redhat.com>
7496
7497 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
7498 approval''.
7499
7500 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7501
7502 * stabsread.c (read_member_functions): Fix is_stub test for
7503 static member functions, improve comment.
7504
7505 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
7506
7507 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
7508 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
7509 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
7510 commands that set boolean values.
7511 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
7512 (arm_rdi_resume): Always initialize PC.
7513 (arm_rdi_open): Don't use rslt as a boolean.
7514 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
7515 (arm_rdi_fetch_registers, arm_rdi_store_registers)
7516 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
7517 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
7518
7519 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
7520
7521 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
7522 * configure: Rebuilt.
7523
7524 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
7525
7526 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
7527 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
7528
7529 2002-03-06 Andrew Cagney <ac131313@redhat.com>
7530
7531 * cli/cli-decode.c (set_cmd_completer): New function.
7532 * command.h (set_cmd_completer): Declare.
7533 * cli/cli-decode.h (set_cmd_completer): Ditto.
7534
7535 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
7536 * cli/cli-cmds.c (init_cli_cmds): Ditto.
7537 * win32-nat.c (_initialize_inftarg): Ditto.
7538 * remote-rdi.c (_initialize_remote_rdi): Ditto.
7539 * proc-api.c (_initialize_proc_api): Ditto.
7540 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
7541 * source.c (_initialize_source): Ditto.
7542 * exec.c (_initialize_exec): Ditto.
7543 * solib.c (_initialize_solib): Ditto.
7544 * top.c (init_main): Ditto.
7545 * tracepoint.c (_initialize_tracepoint): Ditto.
7546 * symfile.c (_initialize_symfile): Ditto.
7547 * printcmd.c (_initialize_printcmd): Ditto.
7548 * infcmd.c (_initialize_infcmd): Ditto.
7549 * corefile.c (_initialize_core): Ditto.
7550
7551 2002-03-05 Andrew Cagney <ac131313@redhat.com>
7552
7553 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
7554
7555 2002-03-05 Andrew Cagney <ac131313@redhat.com>
7556
7557 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
7558
7559 2002-03-05 Andrew Cagney <ac131313@redhat.com>
7560
7561 * NEWS: Update headings, 5.2 has branched.
7562
7563 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
7564
7565 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
7566 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
7567 (register_addr, REGISTER_RAW_SIZE): Likewise.
7568 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
7569 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
7570
7571 2002-03-03 Michal Ludvig <mludvig@suse.cz>
7572
7573 * MAINTAINERS (x86-64): Add myself.
7574 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
7575 changed value_ptr -> struct value *
7576
7577 2002-03-01 David O'Brien <obrien@FreeBSD.org>
7578
7579 * configure.host (sparc64-*-freebsd): Add.
7580 * configure.tgt: Likewise.
7581 * config/sparc/fbsd.mh: New file.
7582 * config/sparc/fbsd.mt: Likewise.
7583 * config/sparc/nm-fbsd.h: Likewise.
7584 * config/sparc/tm-fbsd.h: Likewise.
7585
7586 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
7587
7588 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
7589 regformats/reg-s390x.dat.
7590
7591 2002-03-01 Andrew Cagney <ac131313@redhat.com>
7592
7593 * utils.c: Add FIXME explaining true/false problem.
7594
7595 2002-02-28 Andrew Cagney <ac131313@redhat.com>
7596
7597 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
7598
7599 2002-02-28 Michael Chastain <mec@shout.net>
7600
7601 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
7602
7603 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
7604
7605 * gdbserver/linux-s390-low.c: New file.
7606 * regformats/reg-s390.dat: New file.
7607 * regformats/reg-s390x.dat: New file.
7608 * gdbserver/configure.srv: Add S/390.
7609 * gdbserver/Makefile.in: Add S/390.
7610 * configure.tgt: Enable gdbserver for S/390.
7611
7612 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
7613
7614 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
7615 first line of the doc string for "info dos", except at the end of
7616 the sentence, since the short help stops at the first period.
7617
7618 2002-02-28 Jason Merrill <jason@redhat.com>
7619
7620 * dwarf2read.c (dwarf_cfi_name): Add new codes.
7621
7622 2002-02-27 Fred Fish <fnf@redhat.com>
7623
7624 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
7625 comment (dumy -> dummy).
7626
7627 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7628
7629 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
7630
7631 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
7632
7633 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
7634
7635 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
7636
7637 * gdbserver/acconfig.h: New file.
7638 * gdbserver/i387-fp.c: New file.
7639 * gdbserver/i387-fp.h: New file.
7640 * gdbserver/linux-x86-64.c: New file.
7641 * regformats/reg-x86-64.dat: New file.
7642 * configure.tgt: Add x86_64-*-linux* gdbserver support.
7643 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
7644 * gdbserver/configure.in: Add support for regsets.
7645 * gdbserver/config.in: Regenerate.
7646 * gdbserver/configure: Regenerate.
7647 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
7648 * gdbserver/linux-low.h: New file.
7649 * gdbserver/linux-low.c: Include "linux-low.h". Add support
7650 for regsets.
7651 * gdbserver/linux-arm-low.c: Include "linux-low.h".
7652 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
7653 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
7654 * gdbserver/linux-mips-low.c: Include "linux-low.h".
7655 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
7656 * gdbserver/linux-sh-low.c: Include "linux-low.h".
7657 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
7658 "i387-fp.h". Add PTRACE_GETREGS and friends.
7659 * gdbserver/regcache.c (supply_register): New function.
7660 (supply_register_by_name): New function.
7661 (collect_register): New function.
7662 (collect_register_by_name): New function.
7663
7664 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
7665
7666 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
7667 (config.status): Add configure.srv dependency.
7668 (server_h): Add config.h dependency.
7669
7670 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
7671
7672 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
7673 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
7674 * gdbserver/configure.srv: Change i386-*-linux* to use
7675 reg-i386-linux.o.
7676
7677 2002-02-26 Andrew Cagney <ac131313@redhat.com>
7678
7679 * x86-64-tdep.c: Re-indent. Update copyright date.
7680
7681 2002-02-26 Andrew Cagney <ac131313@redhat.com>
7682
7683 From Michal Ludvig <mludvig@suse.cz>:
7684 * x86-64-tdep.c (value.h): Delete.
7685 (gdb_assert.h): Include.
7686 (x86_64_register_convert_to_virtual,
7687 x86_64_register_convert_to_raw ): Add check which lets only
7688 floating-point values to be converted.
7689 (value_push): Delete.
7690 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
7691 (i386_gdbarch_init): Number of register_bytes fixed.
7692
7693 2002-02-26 Andrew Cagney <ac131313@redhat.com>
7694
7695 * MAINTAINERS: Add x86-64 target.
7696
7697 2002-02-26 Andrew Cagney <ac131313@redhat.com>
7698
7699 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
7700 * osfsolib.c (solib_map_sections): Ditto.
7701 * irix5-nat.c (solib_map_sections): Ditto.
7702 * corelow.c (gdb_check_format): Ditto.
7703 * symfile.c (symfile_bfd_open): Ditto.
7704 * solib.c (solib_map_sections): Ditto.
7705 Fix PR gdb/354.
7706
7707 2002-02-26 Andrew Cagney <ac131313@redhat.com>
7708
7709 * remote.c (_initialize_remote): By default, disable ``e'' and
7710 ``E'' step out-of-range packets.
7711
7712 2002-02-26 Andreas Schwab <schwab@suse.de>
7713
7714 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
7715 m68k_linux_frame_saved_pc.
7716 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
7717 in_sigtramp.
7718 (SIGCONTEXT_PC_OFFSET): Remove.
7719 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
7720 m68k_linux_sigtramp_saved_pc): New functions.
7721 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
7722 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
7723 (UCONTEXT_PC_OFFSET): Define.
7724 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
7725 non-RT and RT signal trampolines.
7726
7727 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
7728
7729 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
7730 (TARGET_NBPG, STACK_END_ADDR): Delete
7731 (VARIABLES_INSIDE_BLOCK): Delete.
7732
7733 2002-02-25 Andrew Cagney <ac131313@redhat.com>
7734
7735 * utils.c (perror_with_name): Make string parameter constant.
7736 (print_sys_errmsg): Ditto.
7737 (query): Ditto.
7738 * defs.h (perror_with_name): Update.
7739 (print_sys_errmsg): Update.
7740 (query): Update.
7741
7742 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
7743
7744 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
7745 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
7746
7747 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7748
7749 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
7750 if it already matches the current architecture from the exec file.
7751 Include arch-utils.h for gdbarch_info_init prototype.
7752 * Makefile.in (rs6000-nat.o): Update dependencies.
7753
7754 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
7755
7756 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
7757 list of exported variables.
7758
7759 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
7760
7761 * gdbserver/configure.srv: New file.
7762 * gdbserver/configure.in: Use configure.srv instead
7763 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
7764 from it.
7765 * gdbserver/configure: Regenerated.
7766 * gdbserver/terminal.h: New file.
7767 * gdbserver/Makefile.in: Update for configure changes. Remove
7768 more unneeded include paths.
7769
7770 2002-02-24 Andrew Cagney <ac131313@redhat.com>
7771
7772 From wiz at danbala:
7773 * config/sparc/tm-sp64.h: Fix grammar and typos.
7774 Fix PR gdb/287.
7775
7776 2002-02-24 Andrew Cagney <ac131313@redhat.com>
7777
7778 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
7779 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
7780 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
7781 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
7782 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
7783 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
7784 * s390-tdep.c: Ditto.
7785 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
7786 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
7787 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
7788 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
7789 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
7790 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
7791 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
7792 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
7793 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
7794 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
7795 Fix PR gdb/378.
7796
7797 2002-02-23 Andrew Cagney <ac131313@redhat.com>
7798
7799 * lin-thread.c: Delete file.
7800 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
7801 to gdb_proc_service.h.
7802 * configure: Re-generate.
7803
7804 * ocd.c (ocd_open): Do not try to open the "ocd" device.
7805 * serial.c (serial_open): Delete check for "ocd".
7806 Fix PR gdb/349.
7807
7808 * Makefile.in (linux-thread.o): Delete target.
7809 * linux-thread.c: Delete file.
7810
7811 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
7812 renamed SH files to be consistent.
7813
7814 * symtab.c (sort_search_symbols): Use xfree.
7815
7816 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
7817
7818 * arm-linux-tdep.c (arm_linux_init_abi): Register
7819 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
7820 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
7821 definition with undef, since we don't want the sysvr4 definition.
7822 (SKIP_TRAMPOLINE_CODE): Likewise.
7823
7824 2002-02-23 Andrew Cagney <ac131313@redhat.com>
7825
7826 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
7827
7828 * configure.in: (AC_CHECK_FUNCS) Added test for
7829 canonicalize_file_name Regenerated.
7830 * config.in, configure: Regenerated.
7831 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
7832 defined use canonicalize_file_name.
7833
7834 2002-02-23 Michael Chastain <mec@shout.net>
7835
7836 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
7837
7838 2002-02-23 Andrew Cagney <ac131313@redhat.com>
7839
7840 * README: Remove references to cygnus.com.
7841 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
7842 dot com'' form. Remove references to cygnus.com and sourceware.
7843
7844 2002-02-23 Andrew Cagney <ac131313@redhat.com>
7845
7846 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
7847 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
7848 1003.1-2001 no longer allows "head -1".
7849 * gdb/Makefile.in (version.c): Likewise.
7850 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
7851 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
7852 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
7853
7854 2002-02-23 Andrew Cagney <ac131313@redhat.com>
7855
7856 * cli/cli-decode.c (cmd_cfunc_eq): New function.
7857 * command.h (cmd_cfunc_eq): Declare.
7858 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
7859
7860 * cli/cli-cmds.h (is_complete_command): Change parameter to a
7861 ``struct cmd_list_element *''.
7862 * cli/cli-cmds.c (is_complete_command): Update. Use
7863 cmd_cfunc_eq.
7864 * top.c (execute_command): Pass the command to
7865 is_complete_command.
7866 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
7867
7868 2002-02-23 Andrew Cagney <ac131313@redhat.com>
7869
7870 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
7871 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
7872 architecture defines.
7873 * s390-tdep.c (s390_gdbarch_init): Likewise.
7874
7875 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
7876
7877 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
7878 (arm_linux_push_arguments): Likewise.
7879 (arm_linux_init_abi): Register them. Also register linux-specific
7880 call_dummy_words.
7881 (find_minsym_and_objfile): Use strcmp, not STREQ.
7882 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
7883 (arm_linux_call_dummy_words): Delete declaration.
7884 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
7885 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
7886 declarations.
7887 (LOWEST_PC): Delete.
7888
7889 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7890
7891 * maint.c (print_section_info): Do not prepend `0x' to filepos
7892 output, it will be handled by local_hex_string_custom.
7893
7894 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
7895
7896 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
7897 (store_newfpe_double, store_newfpe_extended, store_fpregister)
7898 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
7899
7900 2002-02-22 Jim Blandy <jimb@redhat.com>
7901
7902 Indicate that the bcache functions don't change the strings
7903 they're passed.
7904 * bcache.h (bcache, hash): Add `const' keywords to declarations.
7905 * bcache.c (bcache, hash): Add `const' keywords to definitions.
7906
7907 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
7908
7909 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
7910
7911 2002-02-21 Christopher Faylor <cgf@redhat.com>
7912
7913 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
7914 find the complete path to a loaded DLL.
7915
7916 2002-02-21 Fred Fish <fnf@redhat.com>
7917
7918 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
7919 that marks the end of the range of a function, enter a line number
7920 entry that has a line number of zero and a PC offset that matches
7921 the end of the function. This starts a range of PC's for which no
7922 line number information is known.
7923 * symtab.c (find_pc_sect_line): If our best fit is in a range of
7924 PC's for which no line number info is found (line number is zero)
7925 then we didn't find any valid line information.
7926 * symtab.h: Document use of zero line number entry.
7927
7928 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
7929
7930 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
7931 (have_ptrace_getvrregs): Define for run time checks.
7932 (gdb_vrregset_t): New type for Altivec register handling.
7933 (fetch_register, store_register): Fetch/store altivec register
7934 when needed.
7935 (fetch_altivec_register, store_altivec_register): New functions.
7936 (supply_vrregset, fill_vrregset): New functions.
7937 (fetch_altivec_registers, store_altivec_registers): New functions.
7938 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
7939 registers as well.
7940
7941 2002-02-21 Jiri Smid <smid@suse.cz>
7942
7943 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
7944
7945 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
7946
7947 * Makefile.in (armnbsd-nat.o): Update dependencies.
7948 * armnbsd-nat.c (supply_gregset): New function. Common code to
7949 supply the integer register set.
7950 (supply_fparegset): New function. Similar for FPA registers.
7951 (fetch_regs, fetch_fp_regs): Use them.
7952 (fetch_core_registers): Likewise.
7953 (fetch_elfcore_registers): New function.
7954 (arm_netbsd_elfcore_fns): New core-file type specification.
7955 (_initialize_arm_netbsd_nat): Register it.
7956
7957 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
7958
7959 * armnbsd-nat.c: Include gdbcore.h.
7960 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
7961 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
7962 'void' to declaration, to shut up ARI.
7963 (fetch_core_registers): Make static. Rewrite using supply_register.
7964 (arm_netbsd_core_fns): New core-file type specification.
7965 (_initialize_arm_netbsd_nat): New function.
7966
7967 2002-02-21 Christopher Faylor <cgf@redhat.com>
7968
7969 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
7970 value.
7971
7972 2002-02-20 Christopher Faylor <cgf@redhat.com>
7973
7974 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
7975 fails.
7976
7977 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
7978
7979 * jv-exp.y (parse_number): Change type of implicit longs
7980 to builtin_type_uint64.
7981
7982 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
7983
7984 * gdbserver/linux-low.c (mywait): Change argument to waitpid
7985 to be an integer instead of a `union wait'.
7986
7987 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
7988
7989 * mips-linux-nat.c: Call the operating system GNU/Linux.
7990 * mips-linux-tdep.c: Likewise.
7991 * mips-tdep.c: Likewise.
7992
7993 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
7994
7995 Fix PR gdb/265.
7996 * jv-exp.y (parse_number): Handle 64-bit integers.
7997
7998 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
7999
8000 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
8001 AC_STDC_HEADERS to AC_HEADER_STDC.
8002 * gdbserver/configure: Regenerated.
8003
8004 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
8005
8006 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
8007 is defined.
8008 * sparc-tdep.c (get_longjmp_target): Likewise.
8009
8010 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
8011
8012 * News: Add news about ARM and Multi-arch. Mention the new target
8013 arm*-*-netbsd*.
8014
8015 2002-02-19 Jim Blandy <jimb@redhat.com>
8016
8017 * stabsread.c (error_type_complaint): Improve error message.
8018
8019 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
8020
8021 * gdbserver/README: Update documentation.
8022 * gdbserver/configure.in: Update configury to match documentation.
8023 * gdbserver/Makefile.in: Likewise.
8024 * gdbserver/configure: Regenerated.
8025 * gdbserver/aclocal.m4: New file, generated by aclocal.
8026 * gdbserver/config.in: New file, generated by autoheader.
8027
8028 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8029
8030 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
8031 armnbsd-nat.c.
8032
8033 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8034
8035 * arm-tdep.h (enum arm_float_model): New enum.
8036 (struct gdbarch_tdep): Add fp_model.
8037 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
8038 up floating-point conversions until we know the floating-point model
8039 in use by the inferior. Don't complain about being unable to
8040 determine the ABI of the inferior when we don't have one.
8041 (arm_extract_return_value): Support different floating-point models.
8042 (arm_store_return_value): Likewise.
8043 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
8044 ARM_FLOAT_SOFT.
8045 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
8046
8047 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8048
8049 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
8050 of ``current_gdbarch''.
8051
8052 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8053
8054 * armnbsd-nat.c : ANSIfy all function declarations.
8055 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
8056 (fetch_inferior_registers): Re-implement in terms of above.
8057 (store_register, store_regs, store_fp_register, store_fp_regs): New.
8058 (store_inferior_registers): Re-implement in terms of above.
8059
8060 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8061
8062 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
8063 kernel.
8064 * arm-linux-tdep.c: Likewise.
8065 * config/arm/tm-linux.h: Likewise.
8066
8067 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8068
8069 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
8070 * config/arm/nbsd.mt (TM_FILE): Delete.
8071 * config/arm/tm-nbsd.h: Delete.
8072
8073 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8074
8075 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
8076 Initialize CALL_DUMMY_LENGTH.
8077
8078 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8079
8080 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
8081 function.
8082 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
8083 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
8084 defines one thing and that is incorrect for this port.
8085 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
8086
8087 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
8088
8089 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
8090
8091 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
8092
8093 * win32-nat.c (display_selector): New function. Displays information
8094 about the information returned by GetThreadSelectorEntry API function.
8095 (display_selectors): New function. Displays the infomation of
8096 the selector given as argument, or of CS, DS ans FS selectors
8097 if no argument is given.
8098 ( _initialize_inftarg): Add "w32" as info prefix command.
8099 Add "info w32 selector" as command calling display_selectors.
8100
8101 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
8102
8103 * i386-tdep.c (get_longjmp_target): Fix compilation failure
8104 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
8105 if not defined.
8106
8107 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
8108
8109 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
8110
8111 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
8112
8113 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
8114 (arm_fix_call_dummy): Call it.
8115 (arm_call_dummy_breakpoint_offset): Delete.
8116 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
8117 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
8118
8119 2002-02-18 Andrew Cagney <ac131313@redhat.com>
8120
8121 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
8122 Default to func_frame_chain_valid.
8123 * gdbarch.h, gdbarch.c: Re-generate.
8124 * frame.h (FRAME_CHAIN_VALID): Delete definition.
8125
8126 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
8127
8128 * ppc-linux-nat.c: Update copyright.
8129 (fetch_register, store_register): Add tid parameter, don't compute
8130 tid here.
8131 (fetch_ppc_registers, store_ppc_registers): Add tid
8132 parameter. Pass it along to callees.
8133 (fetch_inferior_registers, store_inferior_registers): Compute tid
8134 here, and pass it to calleed functions.
8135 (fill_gregset, supply_fpregset): Clean up formatting.
8136
8137 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
8138
8139 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
8140 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
8141
8142 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
8143
8144 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
8145 * gdbarch.c gdbarch.h: Regenerate.
8146 * breakpoint.c (create_longjmp_breakpoint): Always compile this
8147 function.
8148 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
8149 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
8150 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
8151
8152 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
8153 * arm-tdep.c (arm_get_longjmp_target): New function.
8154 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
8155 this to a positive value register arm_get_longjmp_target as the
8156 longjmp handler.
8157 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
8158 (arm_linux_init_abi): Set up longjmp description in tdep.
8159 * armnbsd-nat.c (get_longjmp_target): Delete.
8160 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
8161 description in tdep.
8162 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
8163 (get_longjmp_target): Delete declaration.
8164 (GET_LONGJMP_TARGET): Delete.
8165 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
8166 (GET_LONGJMP_TARGET): Delete.
8167
8168 2002-02-17 Kevin Buettner <kevinb@redhat.com>
8169
8170 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
8171 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
8172 of ``current_gdbarch''.
8173
8174 2002-02-17 Tom Tromey <tromey@redhat.com>
8175
8176 * cli/cli-cmds.c (compare_strings): New function.
8177 (complete_command): Only print each unique item once.
8178 * completer.h (complete_line): Declare.
8179 * completer.c (complete_line): New function.
8180 (line_completion_function): Use it.
8181
8182 2002-02-16 Andrew Cagney <ac131313@redhat.com>
8183
8184 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
8185 * gdbarch.h, gdbarch.c: Re-generate.
8186
8187 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
8188
8189 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
8190
8191 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
8192
8193 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
8194 * valops.c (value_arg_coerce): Don't take the address of a reference
8195 to convert an argument to a reference.
8196
8197 2002-02-15 Christopher Faylor <cgf@redhat.com>
8198
8199 * win32-nat.c (get_image_name): New function.
8200 (handle_load_dll): Use get_image_name function.
8201 (get_child_debug_event): Avoid registering debug events until possibly
8202 execed process is started.
8203 (child_create_inferior): Allow invocation via shell so that command
8204 line redirection, etc. works ok.
8205 (_initialize_inftarg): Add new command: "set shell" to control whether
8206 a shell is used to start a process.
8207
8208 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
8209
8210 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
8211 instead of find_register_by_number.
8212 (cannot_store_register): Likewise.
8213
8214 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
8215
8216 * dwarf2read.c: Replace fprintf (stderr, ...) by
8217 fprintf_unfiltered (gdb_stderr, ...).
8218
8219 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
8220
8221 * gdbserver/gdbserver.1: Document --attach.
8222
8223 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
8224
8225 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
8226 descriptions.
8227 * arm-tdep.c (arm_default_arm_le_breakpoint)
8228 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
8229 (arm_default_thumb_be_breakpoint): New. Initialize them from
8230 traditional breakpoint defines.
8231 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
8232 (arm_gdbarch_init): Initialize new breakpoint variables.
8233 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
8234 (arm_linux_init_abi): Initialize linux-specific breakpoint.
8235 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
8236 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
8237 code out to ...
8238 (arm_netbsd_init_abi_common): ... here; new function.
8239 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
8240 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
8241 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
8242 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
8243
8244 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
8245
8246 * arm-tdep.h (enum arm_abi): New enum.
8247 (struct gdbarch_tdep): New structure.
8248 (LOWEST_PC): Provide a default.
8249 (arm_gdbarch_register_os_abi): Declare new function.
8250 * arm-tdep.c (arm_abi_names): New array.
8251 (process_note_abi_tag_sections): New function.
8252 (get_elfosabi): New function.
8253 (arm_gdbarch_register_os_abi): New function.
8254 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
8255 support for that ABI has been built in, then call the appropriate
8256 configuration routine. Use gdbarch_num_regs() to get the number
8257 of registers.
8258 (arm_dump_tdep): New function.
8259 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
8260 place-holder functions.
8261 (_initialize_arm_tdep): Register them.
8262 * config/arm/tm-arm.h (LOWEST_PC): Delete.
8263
8264 * armnbsd-tdep.c: New file.
8265 * Makefile.in (armnbsd-tdep.o): Add dependencies.
8266 * config/arm/nbsd.mt (TDEPFILES): Add it.
8267 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
8268
8269 * armnbsd-nat.c: Include regcache.h.
8270 * Makefile.in (armnbsd-nat.o): Update dependency list.
8271
8272 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
8273
8274 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
8275
8276 * gdbserver/Makefile.in: Fix typos in target rules.
8277
8278 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
8279
8280 Fix part of PR gdb/267.
8281 * linespec.c (find_methods): Handle constructors specially for now.
8282
8283 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
8284
8285 * arm-tdep.c (arm_push_arguments): Eliminate special float type
8286 handling.
8287 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
8288 standard_coerce_float_to_double().
8289
8290 2002-02-14 Christopher Faylor <cgf@redhat.com>
8291
8292 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
8293 GDBINIT_FILENAME.
8294
8295 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
8296
8297 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
8298 find_variant_by_name, because it confuses the multiarch
8299 framework. Return NULL if there isn't an architecture with the
8300 user supplied name, instead of forcing a different one without
8301 recording the change with the multiarch machinery.
8302 (find_variant_by_name): Delete.
8303
8304 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8305
8306 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
8307 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
8308
8309 2002-02-13 Martin M. Hunt <hunt@redhat.com>
8310
8311 * stack.c (print_frame_info_base): When calling
8312 print_frame_info_listing_hook, set current_source_symtab.
8313
8314 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
8315
8316 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
8317 and remove unused $(INCLUDE_DIR).
8318 Add regcache.c to OBS.
8319 Add generated register protocol files to clean target.
8320 Update dependencies for new objects, obsolete old target code.
8321
8322 * gdbserver/linux-low.c: Remove all platform-specific code to
8323 new files. Remove various dead code. Update to use regcache
8324 functionality.
8325 * gdbserver/remote-utils.c (fromhex): Add return statement
8326 to quiet warning.
8327 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
8328 constant.
8329 (input_interrupt): Add integer parameter to match prototype
8330 of a signal handler.
8331 (outreg): Use register_data ().
8332 (prepare_resume_reply): Use gdbserver_expedite_regs.
8333 * gdbserver/server.c (main): Dynamically allocate own_buf because
8334 PBUFSIZ is no longer constant. Use registers_to_string () and
8335 registers_from_string ().
8336 * gdbserver/server.h: No longer include "defs.h". Add prototypes
8337 for error (), fatal (), and warning (). Update definition of
8338 PBUFSIZ to use regcache functionality. Add include guard.
8339 * gdbserver/utils.c (fatal): Add missing ``const''.
8340 (warning): New function.
8341
8342 * regformats/regdat.sh: Include "regcache.h" in generated files.
8343 Provide init_registers () function.
8344 * regformats/regdef.h: Add prototype for set_register_cache ().
8345 Add include guard.
8346
8347 * gdbserver/linux-arm-low.c: New file.
8348 * gdbserver/linux-i386-low.c: New file.
8349 * gdbserver/linux-ia64-low.c: New file.
8350 * gdbserver/linux-m68k-low.c: New file.
8351 * gdbserver/linux-mips-low.c: New file.
8352 * gdbserver/linux-ppc-low.c: New file.
8353 * gdbserver/linux-sh-low.c: New file.
8354
8355 * gdbserver/regcache.c: New file.
8356 * gdbserver/regcache.h: New file.
8357
8358 * gdbserver/low-linux.c: Removed obsolete file.
8359
8360 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
8361
8362 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
8363 * config/i386/linux.mt: Likewise.
8364 * config/ia64/linux.mt: Likewise.
8365 * config/m68k/linux.mh: Likewise.
8366 * config/powerpc/linux.mh: Likewise.
8367 * config/mips/linux.mt: Likewise.
8368
8369 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
8370
8371 * config/i386/i386lynx.mh: Mark gdbserver variables
8372 as (currently) obsolete for this target.
8373 * config/i386/nbsd.mt: Likewise.
8374 * config/i386/nbsdelf.mt: Likewise.
8375 * config/m32r/m32r.mt: Likewise.
8376 * config/m68k/m68klynx.mh: Likewise.
8377 * config/m68k/nbsd.mt: Likewise.
8378 * config/m68k/sun3os4.mh: Likewise.
8379 * config/mips/vr5000.mt: Likewise.
8380 * config/ns32k/nbsd.mt: Likewise.
8381 * config/pa/hppabsd.mh: Likewise.
8382 * config/pa/hppaosf.mh: Likewise.
8383 * config/powerpc/nbsd.mt: Likewise.
8384 * config/rs6000/rs6000lynx.mh: Likewise.
8385 * config/s390/s390.mt: Likewise.
8386 * config/s390/s390x.mt: Likewise.
8387 * config/sparc/sparclynx.mh: Likewise.
8388 * config/sparc/sun4os4.mh: Likewise.
8389 * config/i386/x86-64linux.mt: Likewise.
8390 * config/sparc/linux.mh: Likewise.
8391
8392 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
8393
8394 * configure.tgt: Configure gdbserver only for known working
8395 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
8396 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
8397 SUBDIRS if it is configured. Update comment for ${nativefile}.
8398 * configure: Regenerated.
8399
8400 2002-02-13 Michael Snyder <msnyder@redhat.com>
8401
8402 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
8403
8404 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
8405 (default_gcore_mach): Just return 0, work around a problem in bfd.
8406 (default_gcore_target): OK to return NULL if exec_bfd is null.
8407 (make_mem_sec): Use a cast, avoid a warning.
8408
8409 * procfs.c (find_memory_regions_callback): Use a cast instead of
8410 calling host_pointer_to_address (which complains if
8411 sizeof (host pointer) != sizeof (target pointer)).
8412 (procfs_make_note_section): Avoid overflow in psargs string.
8413
8414 * procfs.c (procfs_make_note_section): Make the default
8415 implementation return an error.
8416
8417 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
8418
8419 * procfs.c (procfs_make_note_section): Provide a default definition
8420 (for alpha-dec-osf4.0f). Fix typos.
8421
8422 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
8423
8424 * linux-proc.c: Add include of regcache.h.
8425 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
8426
8427 2002-02-13 Andrew Cagney <ac131313@redhat.com>
8428
8429 From 2002-01-18 Greg McGary <greg@mcgary.org>:
8430 * memattr.c (create_mem_region): Disallow useless empty region.
8431 Regions are half-open intervals, so allow [A..B) [B..C) as
8432 non-overlapping.
8433
8434 2002-02-13 Michael Chastain <mec@shout.net>
8435
8436 * defs.h: Kill CONST_PTR.
8437 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
8438 * c-lang.c (c_builtin_types): Likewise.
8439 * ch-lang.c (ch_builtin_types): Likewise.
8440 * f-lang.c (f_builtin_types): Likewise.
8441 * language.c (unknown_builtin_types): Likewise.
8442 * m2-lang.c (m2_builtin_types): Likewise.
8443 * p-lang.c (pascal_builtin_types): Likewise.
8444 * scm-lang.c (c_builtin_types): Likewise.
8445
8446 2002-02-13 Keith Seitz <keiths@redhat.com>
8447
8448 * arm-tdep.h (arm_get_next_pc): Add declaration.
8449
8450 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
8451
8452 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
8453 with other related struct-returning functions.
8454 (arm_extract_struct_value_address): New function.
8455 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
8456 initialize float_format, double_format and long_double_format as
8457 appropriate to the endianness of the target.
8458 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
8459 (arm_use_struct_convention): Delete declaration.
8460 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
8461
8462 2002-02-13 Keith Seitz <keiths@redhat.com>
8463
8464 * defs.h (core_addr_to_string_nz): New function.
8465
8466 2002-02-13 Mark Kettenis <kettenis@gnu.org>
8467
8468 Apply missing bits of 2002-01-15 patch.
8469 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
8470 (fill_fpregset): Use i387_fill_fsave.
8471
8472 2002-02-12 Keith Seitz <keiths@redhat.com>
8473
8474 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
8475 (core_addr_to_string_nz): New function.
8476
8477 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
8478
8479 * arm-linux-nat.c: Really include arm-tdep.h.
8480 * config/arm/tm-linux.h (struct type, struct value): Declare.
8481
8482 2002-02-11 Michael Snyder <msnyder@redhat.com>
8483
8484 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
8485 (gcore section): Ifdef for Solaris and Unixware only.
8486 (procfs_do_thread_registers): Unixware needs one lwpstatus
8487 per thread (not one prstatus or pstatus).
8488 (procfs_make_note_section): Iterate only over kernel threads (lwps),
8489 not over all gdb threads. For unixware, call elfcore_write_pstatus
8490 once before iterating over threads.
8491
8492 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
8493
8494 * arm-tdep.h: New file.
8495 * arm-tdep.c: Include arm-tdep.h.
8496 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
8497 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
8498 (arm_print_float_info, arm_register_type, convert_to_extended)
8499 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
8500 (arm_extract_return_value, arm_register_name): Make static.
8501 (arm_software_single_step): Similarly. Fix types in declaration.
8502 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
8503 (arm_store_return_value, arm_store_struct_return): New functions.
8504 (arm_gdbarch_init): Register the above functions. Also register
8505 call_dummy_start_offset, sizeof_call_dummy_words,
8506 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
8507 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
8508 max_register_virtual_size, register_size. Set up
8509 prologue_cache.saved_regs here, rather than ...
8510 (_initialize_arm_tdep): ... here.
8511 * config/arm/tm-arm.h (struct type, struct value): Delete forward
8512 declarations.
8513 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
8514 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
8515 (arm_print_float_info, arm_register_type, convert_to_extended)
8516 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
8517 (arm_extract_return_value, arm_register_name): Delete declarations.
8518 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
8519 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
8520 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
8521 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
8522 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
8523 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
8524 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
8525 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
8526 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
8527 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
8528 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
8529 (arm_get_next_pc): No-longer static -- these are needed by the RDI
8530 interface.
8531 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
8532 * remote-rdi.c remote-rdp.c: Likewise.
8533 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
8534 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
8535 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
8536 definition.
8537
8538 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
8539 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
8540 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
8541 from non-ARM_ prefixed definitions.
8542 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
8543 all uses of above.
8544 * remote-rdi.c remote-rdp.c: Likewise.
8545 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
8546
8547 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
8548
8549 * arm-tdep.c (arm_frameless_function_invocation)
8550 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
8551 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
8552 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
8553 (arm_pop_frame, arm_get_next_pc): Make static.
8554 (arm_gdbarch_init): Register above in gdbarch structure.
8555 (arm_read_fp): Renamed from arm_target_read_fp.
8556 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
8557 * config/arm/tm-arm.h (arm_frameless_function_invocation)
8558 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
8559 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
8560 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
8561 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
8562 (arm_pc_is_thumb_dummy): Delete declarations.
8563 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
8564 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
8565 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
8566 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
8567
8568 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
8569
8570 * symtab.c (compare_search_syms): New function.
8571 (sort_search_symbols): New function.
8572 (search_symbols): Sort symbols after searching rather than
8573 before.
8574
8575 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8576
8577 * NEWS: Linux -> GNU/Linux.
8578
8579 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8580
8581 * gdbarch.sh: For for level one methods, disallow a definition
8582 when partially multi-arched. Add comments explaining rationale.
8583 * gdbarch.h: Re-generate.
8584
8585 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8586
8587 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
8588 multi-arch partial.
8589
8590 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8591
8592 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
8593 field. Use diff -u.
8594 * gdbarch.c: Re-generate.
8595
8596 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8597
8598 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
8599 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
8600 partial.
8601
8602 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8603
8604 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
8605 multi-arch partial.
8606 (PUSH_ARGUMENTS): Switch to using predefault.
8607 * gdbarch.c: Regenerate.
8608
8609 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8610
8611 * valops.c (PUSH_ARGUMENTS): Delete definition.
8612 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
8613 partial. Default to default_push_arguments.
8614 * gdbarch.h, gdbarch.c: Regenerate.
8615
8616 2002-02-09 Andrew Cagney <ac131313@redhat.com>
8617
8618 * defs.h (throw_exception): Rename return_to_top_level. Update
8619 comments.
8620 * utils.c (error_stream, internal_verror, quit): Ditto.
8621 * top.c (throw_exception, catcher): Ditto.
8622 * sparclet-rom.c (sparclet_load): Ditto.
8623 * remote.c (interrupt_query, minitelnet): Ditto.
8624 * remote-sds.c (interrupt_query): Ditto.
8625 * remote-mips.c (mips_error, mips_kill): Ditto.
8626 * ocd.c (interrupt_query): Ditto.
8627 * monitor.c (monitor_interrupt_query): Ditto.
8628 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
8629 * target.h: Update comment.
8630
8631 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
8632
8633 2002-02-09 Andrew Cagney <ac131313@redhat.com>
8634
8635 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
8636 default_double_format.
8637 * gdbarch.h, gdbarch.c: Re-generate.
8638 * findvar.c (floatformat_unknown): Delete variable definition.
8639 * doublest.h (floatformat_unknown): Delete variable declaration.
8640
8641 2002-02-09 Jim Blandy <jimb@redhat.com>
8642
8643 * stabsread.c (read_type): Add code to parse Sun's syntax for
8644 prototyped function types.
8645
8646 2002-02-09 Andrew Cagney <ac131313@redhat.com>
8647
8648 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
8649 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
8650
8651 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8652
8653 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
8654 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
8655 now _initialize_xcoffsolib gets called again and overrides the
8656 commands from solib.c in a native configuration.
8657
8658 2002-02-09 Mark Kettenis <kettenis@gnu.org>
8659
8660 * doublest.c (store_typed_floating): Don't try to return a value.
8661 Fixes PR gdb/290.
8662
8663 2002-02-08 Jim Blandy <jimb@redhat.com>
8664
8665 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
8666 is prototyped and has no arguments, print its argument list as
8667 `(void)'.
8668
8669 2002-02-08 Chris Demetriou <cgd@broadcom.com>
8670
8671 * MAINTAINERS (write-after-approval): Add myself.
8672 (paper-trail): I've escaped!
8673
8674 2002-02-08 Christopher Faylor <cgf@redhat.com>
8675
8676 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
8677 changes.
8678 (_initialize_check_for_gdb_ini): Ditto.
8679
8680 2002-02-08 Martin M. Hunt <hunt@redhat.com>
8681
8682 * win32-nat.c (cygwin_pid_to_str): Fix typo.
8683 xaprintf -> xasprintf.
8684
8685 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
8686
8687 * win32-nat.c: Remove use of printf and sprintf functions.
8688
8689 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
8690
8691 * arm-tdep.c (arm_frame_chain_valid): Make static.
8692 (arm_push_arguments): Likewise.
8693 (arm_gdbarch_init): New function.
8694 (_initialize_arm_tdep): Call it.
8695 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
8696 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
8697 (FRAME_CHAIN_VALID): Delete.
8698 (arm_frame_chain_valid): Delete declaration.
8699 (PUSH_ARGUMENTS): Delete.
8700 (arm_push_arguments): Delete declaration.
8701 (CALL_DUMMY_P): Delete.
8702
8703 2002-02-08 Andrew Cagney <ac131313@redhat.com>
8704 Corinna Vinschen <vinschen@redhat.com>
8705
8706 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
8707 on builtin float types.
8708
8709 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
8710
8711 * utils.c: Include <curses.h> before "bfd.h".
8712 * tui/tui-hooks.c: Likewise.
8713 * tui/tui.c: Likewise.
8714 * tui/tuiCommand.c: Likewise.
8715 * tui/tuiData.c: Likewise.
8716 * tui/tuiDataWin.c: Likewise.
8717 * tui/tuiDisassem.c: Likewise.
8718 * tui/tuiGeneralWin.c: Likewise.
8719 * tui/tuiIO.c: Likewise.
8720 * tui/tuiLayout.c: Likewise.
8721 * tui/tuiRegs.c: Likewise.
8722 * tui/tuiSource.c: Likewise.
8723 * tui/tuiSourceWin.c: Likewise.
8724 * tui/tuiStack.c: Likewise.
8725 * tui/tuiWin.c: Likewise.
8726
8727 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
8728
8729 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
8730 to include space for pseudoregs as well. Update loops accordingly.
8731 (sh_fp_frame_init_saved_regs): Ditto.
8732 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
8733
8734 2002-02-07 Andrew Cagney <ac131313@redhat.com>
8735
8736 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
8737 Add Richard Earnshaw to Arm maintainers.
8738
8739 2002-02-07 Andrew Cagney <ac131313@redhat.com>
8740
8741 * defs.h (warning_begin): Delete declaration.
8742
8743 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
8744 Delete macro.
8745
8746 2002-02-07 Michael Snyder <msnyder@redhat.com>
8747
8748 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
8749 Logic bug, remove misplaced else.
8750
8751 2002-02-07 Klee Dienes <klee@apple.com>
8752
8753 * fork-inferior.c (fork_inferior): Add '!' to the list of
8754 characters that need to be quoted when building a string for the
8755 shell. Quote '!' specifically with a backslash, since CSH chokes
8756 when trying to evaluate "str!str".
8757
8758 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
8759
8760 * rdi-share/host.h: Only provide a typedef for bool if it is not
8761 defined.
8762
8763 2002-02-04 Michael Snyder <msnyder@redhat.com>
8764
8765 * breakpoint.h (enum bptype): Add new overlay event bp type.
8766 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
8767
8768 * breakpoint.c (create_internal_breakpoint): New function.
8769 (internal_breakpoint_number): Moved into create_internal_breakpoint.
8770 (create_longjmp_breakpoint): Use create_internal_breakpoint.
8771 (create_thread_event_breakpoint): Ditto.
8772 (create_solib_event_breakpoint): Ditto.
8773 (create_overlay_event_breakpoint): New function.
8774 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
8775 (update_breakpoints_after_exec): Delete and re-initialize
8776 overlay event breakpoints after an exec. Add FIXME comment
8777 about longjmp breakpoint.
8778 (print_it_typical): Ignore overlay event breakpoints.
8779 (print_one_breakpoint): Ditto.
8780 (mention): Ditto.
8781 (bpstat_what): Do not stop for overlay event breakpoints.
8782 (delete_breakpoint): Don't delete overlay event breakpoints.
8783 (breakpoint_re_set_one): Delete the overlay event breakpoint.
8784 (breakpoint_re_set): Re-create overlay event breakpoint.
8785
8786 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
8787 (overlay_manual_command): Disable overlay breakpoints.
8788 (overlay_off_command): Disable overlay breakpoints.
8789
8790 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
8791
8792 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
8793 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
8794 to here from config/tm-arm.h.
8795 (coff_sym_is_thumb): Make static.
8796 (arm_elf_make_msymbol_special): New function.
8797 (arm_coff_make_msymbol_special): New function.
8798 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
8799 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
8800 (coff_sym_is_thumb): Delete declaration.
8801 (arm_elf_make_msymbol_special): Declare.
8802 (arm_coff_make_msymbol_special): Declare.
8803 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
8804 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
8805
8806 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
8807
8808 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
8809
8810 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
8811
8812 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
8813 * gdbarch.c gdbarch.h: Regenerate.
8814 * arch-utils.c (default_print_float_info): New function.
8815 * arch-utils.h (default_print_float_info): Prototype it.
8816 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
8817 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
8818 (PRINT_FLOAT_INFO): Document it.
8819
8820 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
8821 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
8822 (PRINT_FLOAT_INFO): Define.
8823
8824 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
8825
8826 * win32-nat.c (_initialize_check_for_gdb_ini):
8827 Add typecast to sprintf argument to suppress a warning.
8828
8829 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
8830
8831 * win32-nat.c (last_sig): Changed type of variable to target_signal,
8832 to allow easier handling of pass state.
8833 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
8834 that gives exception name and address.
8835 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
8836 and set last_sig value to ourstatus->value.sig. Some missing
8837 exceptions added.
8838 (child_continue): Correctly report continue_status.
8839 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
8840 TARGET_SIGNAL_0 (new default value).
8841 (child_resume): consider sig argument passed to decide if
8842 the exception should be passed to debuggee or not.
8843
8844 2002-02-05 Michael Snyder <msnyder@redhat.com>
8845
8846 * regcache.c (fetch_register): Call target_fetch_register
8847 only if we don't call FETCH_PSEUDO_REGISTER.
8848 (store_register): Call target_store_register only if we
8849 don't call STORE_PSEUDO_REGISTER.
8850
8851 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
8852
8853 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
8854 ELF_MAKE_MSYMBOL_SPECIAL.
8855 * gdbarch.c, gdbarch.h: Regenerate.
8856 * arch-utils.c (default_make_msymbol_special): New function.
8857 * arch-utils.h (default_make_msymbol_special): Export.
8858 * elfread.c (elf_symtab_read): Compile use of
8859 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
8860 multiarched.
8861 * coffread.c (coff_symtab_read): Ditto, for
8862 COFF_MAKE_MSYMBOL_SPECIAL.
8863
8864 2002-02-05 Jim Blandy <jimb@redhat.com>
8865
8866 * solib-svr4.c (svr4_truncate_ptr): New function.
8867 (svr4_relocate_section_addresses): Do the address arithmetic with
8868 the appropriate truncation for target addresses, even when
8869 CORE_ADDR is larger than a target address.
8870
8871 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
8872
8873 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
8874 to (int *).
8875
8876 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
8877
8878 * gdbserver/linux-low.c (kill_inferior): Remove commented out
8879 code.
8880
8881 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
8882
8883 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
8884
8885 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
8886
8887 * gdbserver/linux-low.c: Remove unused include files.
8888
8889 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
8890
8891 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
8892 (read_inferior_memory): Use it.
8893 (write_inferior_memory): Likewise.
8894
8895 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
8896
8897 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
8898 grubbing through sys_errlist.
8899
8900 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
8901
8902 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
8903
8904 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
8905 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
8906
8907 2002-02-04 Andrew Cagney <ac131313@redhat.com>
8908
8909 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
8910 (do_sfunc, set_cmd_sfunc): New functions.
8911
8912 * command.h (struct cmd_list_element): Add field func.
8913 * cli/cli-decode.h (struct cmd_list_element): Ditto.
8914 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
8915 * cli/cli-decode.h: Ditto.
8916
8917 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
8918 (help_all, help_cmd_list): Ditto.
8919 (find_cmd, complete_on_cmdlist): Ditto.
8920 * top.c (execute_command): Ditto.
8921
8922 * cli/cli-setshow.c (do_setshow_command): Call func instead of
8923 function.sfunc.
8924
8925 * infcmd.c (notice_args_read): Fix function signature.
8926
8927 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
8928 * cli/cli-decode.c (add_set_cmd): Ditto.
8929 * utils.c (initialize_utils): Ditto.
8930 * maint.c (_initialize_maint_cmds): Ditto.
8931 * infrun.c (_initialize_infrun): Ditto.
8932 * demangle.c (_initialize_demangler): Ditto.
8933 * remote.c (add_packet_config_cmd): Ditto.
8934 * mips-tdep.c (_initialize_mips_tdep): Ditto.
8935 * cris-tdep.c (_initialize_cris_tdep): Ditto.
8936 * proc-api.c (_initialize_proc_api): Ditto.
8937 * kod.c (_initialize_kod): Ditto.
8938 * valprint.c (_initialize_valprint): Ditto.
8939 * top.c (init_main): Ditto.
8940 * infcmd.c (_initialize_infcmd): Ditto.
8941 * corefile.c (_initialize_core): Ditto.
8942 * arm-tdep.c (_initialize_arm_tdep): Ditto.
8943 * arch-utils.c (initialize_current_architecture): Ditto.
8944 (_initialize_gdbarch_utils): Ditto.
8945 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
8946
8947 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
8948 * wince.c (_initialize_inftarg): Ditto.
8949 * symfile.c (_initialize_symfile): Ditto.
8950 * mips-tdep.c (_initialize_mips_tdep): Ditto.
8951 * language.c (_initialize_language): Ditto.
8952 * arc-tdep.c (_initialize_arc_tdep): Ditto.
8953
8954 2002-02-04 Michael Snyder <msnyder@redhat.com>
8955
8956 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
8957
8958 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
8959
8960 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
8961 Add rules for building the register data files.
8962
8963 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
8964
8965 * regformats/regdat.sh: Add braces to the definition of
8966 expedite_regs_${arch}.
8967
8968 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
8969
8970 * regformats/regdef.h (struct reg): Add comment describing the
8971 requirements for offset and size fields.
8972
8973 2002-02-04 Andreas Schwab <schwab@suse.de>
8974
8975 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
8976 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
8977
8978 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
8979
8980 * gdbarch.sh (copyright): Update years in generated header.
8981 (SMASH_TEXT_ADDRESS): Add rule.
8982 * gdbarch.h, gdbarch.c: Re-generate.
8983 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
8984 * dbxread.c: Likewise.
8985 * dwarfread.c: Likewise.
8986 * elfread.c: Likewise.
8987 * somread.c: Likewise.
8988
8989 * arm-tdep.c (arm_smash_text_address): New function.
8990 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
8991
8992 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
8993
8994 Add support for hardware watchpoints on win32 native.
8995 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
8996 CONTEXT_DEBUG_REGISTERS.
8997 (dr variable): New variable. Static array containing a local copy
8998 of debug registers.
8999 (debug_registers_changed): New variable. Reflects when debug registers
9000 are changed and need to be written to inferior.
9001 (debug_registers_used): New variable. Reflects when any debug register
9002 was set, used when new threads are created.
9003 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
9004 i386-nat code.
9005 (thread_rec): Set dr array if id is the thread of current_event .
9006 (child_continue, child_resume): Change the debug registers for all
9007 threads if debug_registers_changed.
9008 (child_add_thread): Change the debug registers if debug_registers_used.
9009 * config/i386/cygwin.mh: Add use of i386-nat.o file.
9010 Link nm.h to new nm-cygwin.h file.
9011 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
9012 of hardware registers.
9013
9014 2002-02-03 Andrew Cagney <ac131313@redhat.com>
9015
9016 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
9017 Restore behavour broken by 2002-01-20 Andrew Cagney
9018 <ac131313@redhat.com> IEEE_FLOAT removal.
9019
9020 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
9021
9022 * c-valprint.c (c_val_print): Pass a proper valaddr to
9023 cp_print_class_method.
9024 * valops.c (search_struct_method): If there is only one method
9025 and args is NULL, return that method.
9026
9027 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
9028
9029 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
9030 accessing tag_name directly.
9031
9032 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
9033
9034 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
9035 of accessing tag_name directly.
9036
9037 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
9038
9039 PR gdb/280
9040 * gdbtypes.c (replace_type): New function.
9041 * gdbtypes.h (replace_type): Add prototype.
9042 * stabsread.c (read_type): Use replace_type.
9043
9044 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
9045
9046 * Makefile.in (memattr.o): Add missing dependencies rule.
9047
9048 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9049
9050 * breakpoint.c (break_at_finish_command): Really export.
9051 (break_at_finish_at_depth_command): Ditto.
9052 (tbreak_at_finish_command): Ditto.
9053 * hppa-tdep.c: Include completer.h.
9054 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
9055 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
9056
9057 2002-02-01 Andrew Cagney <ac131313@redhat.com>
9058
9059 * utils.c (do_write): New function.
9060 (error_stream): Rewrite combining the code from error_begin and
9061 verror.
9062 (verror): Rewrite using error_stream.
9063 (error_begin): Delete function.
9064
9065 2002-02-01 Andrew Cagney <ac131313@redhat.com>
9066
9067 * utils.c (error_begin): Make static.
9068 * defs.h (error_begin): Delete declaration.
9069
9070 * linespec.c (cplusplus_error): Replace cplusplus_hint.
9071 (decode_line_1): Use cplusplus_error instead of error_begin,
9072 cplusplus_hint and return_to_top_level.
9073 * coffread.c (coff_symfile_read): Use error instead of error_begin
9074 and return_to_top_level.
9075 * infrun.c (default_skip_permanent_breakpoint): Ditto.
9076
9077 2002-02-01 Andrew Cagney <ac131313@redhat.com>
9078
9079 * language.h (type_error, range_error): Make string parameter
9080 constant.
9081 * language.c (warning_pre_print): Delete extern declaration.
9082 * dwarfread.c (warning_pre_print): Ditto.
9083 * language.c (type_error, range_error): Rewrite to use verror and
9084 vwarning instead of warning_begin.
9085
9086 2002-02-01 Michael Snyder <msnyder@redhat.com>
9087
9088 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
9089 (set_ignore_count): Move misplaced comment back where it belongs.
9090
9091 2002-02-01 Andrew Cagney <ac131313@redhat.com>
9092
9093 * command.h (NO_FUNCTION): Delete macro.
9094 * cli/cli-decode.h (NO_FUNCTION): Ditto.
9095 * top.c (execute_command): Replace NO_FUNCTION with NULL.
9096 * tracepoint.c (_initialize_tracepoint): Ditto.
9097 * cli/cli-decode.c (add_set_cmd): Ditto.
9098 * cli/cli-cmds.c (init_cli_cmds): Ditto.
9099
9100 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
9101
9102 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
9103 Update ``this'' pointer when calling virtual functions.
9104
9105 2002-02-01 Michael Snyder <msnyder@redhat.com>
9106
9107 * breakpoint.c (create_temp_exception_breakpoint): Delete.
9108 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
9109
9110 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
9111
9112 * regformats/reg-arm.dat: New file.
9113 * regformats/reg-i386.dat: New file.
9114 * regformats/reg-ia64.dat: New file.
9115 * regformats/reg-m68k.dat: New file.
9116 * regformats/reg-mips.dat: New file.
9117 * regformats/reg-ppc.dat: New file.
9118 * regformats/reg-sh.dat: New file.
9119 * regformats/regdef.h: New file.
9120 * regformats/regdat.sh: New file.
9121
9122 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
9123
9124 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
9125 (arm_frame_args_address, arm_frame_locals_address): New functions.
9126 (arm_frame_num_args): New function.
9127 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
9128 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
9129 (FRMA_NUM_ARGS): Call arm_frame_num_args.
9130
9131 2002-01-31 Michael Snyder <msnyder@redhat.com>
9132
9133 * breakpoint.c (break_at_finish_command): Export.
9134 (break_at_finish_at_depth_command): Export.
9135 (tbreak_at_finish_command): Export.
9136 (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
9137 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
9138 "tbreak" commands, which are HPPA specific.
9139
9140 * printcmd.c (disassemble_command): Remove an ancient
9141 artifact of an old merge.
9142
9143 * symfile.h (enum overlay_debugging_state):
9144 Define enum constant values for overlay mode.
9145 * symfile.c (overlay_debugging): Use enums instead of literals.
9146 (overlay_is_mapped, overlay_auto_command,
9147 overlay_manual_command): Ditto.
9148
9149 * breakpoint.c (insert_breakpoints, remove_breakpoint,
9150 breakpoint_here_p, breakpoint_inserted_here_p,
9151 breakpoint_thread_match, bpstat_stop_status,
9152 describe_other_breakpoints, check_duplicates, clear_command):
9153 Coding standard fixes.
9154
9155 * target.c (target_xfer_memory): Add spaces, coding standard.
9156 (do_xfer_memory): Add missing line to trust-readonly
9157 code: check bfd SEC_READONLY flag for section.
9158
9159 2002-01-31 Andrew Cagney <ac131313@redhat.com>
9160
9161 * PROBLEMS: Fix typo, 5.1->5.1.1.
9162
9163 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
9164
9165 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
9166 data symbols, since we search based on textlow and texthigh.
9167 (find_pc_sect_symtab): Likewise.
9168
9169 2002-01-30 Andrew Cagney <ac131313@redhat.com>
9170
9171 * defs.h (vwarning): Declare.
9172 * utils.c (vwarning): New function.
9173 (warning): Call vwarning.
9174 (warning_begin): Delete function.
9175
9176 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
9177 the warning message.
9178 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
9179 warning_begin.
9180
9181 2002-01-30 Michael Snyder <msnyder@redhat.com>
9182
9183 * NEWS: Mention "set trust-readonly-sections" command.
9184 Mention generate-core-file command.
9185
9186 2002-01-15 Michael Snyder <msnyder@redhat.com>
9187
9188 * target.c: New command, "set trust-readonly-sections on".
9189 (do_xfer_memory): Honor the suggestion to trust readonly sections
9190 by reading them from the object file instead of from the target.
9191 (initialize_targets): Register command "set trust-readonly-sections".
9192
9193 2002-01-29 Andrew Cagney <ac131313@redhat.com>
9194
9195 * parse.c (target_map_name_to_register): Simplify, search regs and
9196 pseudo-regs using a single loop.
9197
9198 2002-01-30 Andrew Cagney <ac131313@redhat.com>
9199
9200 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
9201
9202 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
9203
9204 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
9205 * config/i386/i386v42mp.mh: Add i387-nat.o .
9206 * i386v4-nat.c: Include i387-nat.h.
9207 (supply_fpregset): Use i387_supply_fsave.
9208 (fill_fpregset): Use i387_fill_fsave.
9209
9210 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
9211
9212 * arm-tdep.c (arm_call_dummy_words): Define.
9213 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
9214 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
9215 (CALL_DUMMY_WORDS): Define.
9216 (arm_call_dummy_words): Declare.
9217 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
9218 (arm_linux_call_dummy_words): Declare.
9219
9220 2002-01-30 Andreas Schwab <schwab@suse.de>
9221
9222 * m68klinux-nat.c: Fix last change to use regcache_collect
9223 instead of referencing registers[] directly.
9224
9225 2002-01-29 Andrew Cagney <ac131313@redhat.com>
9226
9227 * parse.c (target_map_name_to_register): Delete code wrapped in
9228 #ifdef REGISTER_NAME_ALIAS_HOOK.
9229
9230 2002-01-28 Michael Snyder <msnyder@redhat.com>
9231
9232 * regcache.c (legacy_read_register_gen): Need to be able to
9233 read pseudo-register as well as real register.
9234 (legacy_write_register_gen): Ditto.
9235
9236 2002-01-28 Andrew Cagney <ac131313@redhat.com>
9237
9238 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
9239 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
9240 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
9241 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
9242 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
9243 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
9244 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
9245 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
9246 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
9247 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
9248 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
9249 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
9250 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
9251 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
9252 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
9253 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
9254 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
9255 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
9256 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
9257 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
9258
9259 2002-01-28 Andrew Cagney <ac131313@redhat.com>
9260
9261 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
9262 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
9263 (initialize_current_architecture): Update target_byte_order using
9264 information from BFD.
9265 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
9266 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
9267
9268 2002-01-28 Andrew Cagney <ac131313@redhat.com>
9269
9270 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
9271 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
9272
9273 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
9274 #ifdef INVALID_FLOAT.
9275 * infcmd.c (do_registers_info): Ditto.
9276 * values.c (unpack_double): Ditto. Add comment.
9277
9278 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
9279 already commented out.
9280
9281 2002-01-26 Andreas Schwab <schwab@suse.de>
9282
9283 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
9284 * m68klinux-nat.c: Update ptrace interface for fetching/storing
9285 registers and add support for PTRACE_GETREGS.
9286
9287 2002-01-24 Andrew Cagney <ac131313@redhat.com>
9288
9289 GDB 5.1.1 released from 5.1 branch.
9290 * NEWS: Add 5.1.1 news.
9291 * README: Sync with 5.1 branch.
9292
9293 2002-01-23 Fred Fish <fnf@redhat.com>
9294
9295 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
9296 stabstring on initial malloc. Reallocing will copy it for us,
9297 if necessary.
9298
9299 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
9300
9301 * Makefile.in (hpread_h): Delete.
9302 (HFILES_NO_SRCDIR): Remove hpread.h.
9303 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
9304 (hpread.o): Update dependencies.
9305 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
9306
9307 * hp-psymtab-read.c: Remove file.
9308 * hp-symtab-read.c: Remove file.
9309 * hpread.h: Remove file.
9310
9311 * hpread.c: Merge all contents of hp-psymtab-read.c,
9312 hp-symtab-read.c and hpread.h into this file, as it was prior to
9313 January 1999.
9314
9315 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
9316 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
9317 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
9318 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
9319
9320 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
9321
9322 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
9323 fill_gregset): Call gdbarch_tdep() just once, assign result to
9324 variable and use that, instead of calling the function several
9325 times.
9326
9327 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
9328
9329 * configure.host: Accept sparcv9 as alias for sparc64.
9330 * configure.tgt: Likewise.
9331
9332 2002-01-22 Kevin Buettner <kevinb@redhat.com>
9333
9334 * solib-aix5.c (build_so_list_from_mapfile)
9335 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
9336 arguments is not reversed.
9337 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
9338 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
9339
9340 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
9341
9342 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
9343 modified version of obsolete sh_fetch_pseudo_register.
9344 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
9345 (sh4_register_read): New function.
9346 (sh_pseudo_register_write): New function. Renamed and modified
9347 version of obsolete sh_store_pseudo_register.
9348 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
9349 (sh4_register_write): New function.
9350 (sh_gdbarch_init): Remove setting of gdbarch function
9351 fetch_pseudo_register and store_pseudo_register. Remove setting of
9352 register_convert_to_raw, register_convert_to_virtual,
9353 register_convertible.
9354 (sh_sh4_register_convertible): Delete. No longer needed. All is
9355 taken care by architecture specific functions
9356 register_read/register_write.
9357 (sh_sh4_register_convert_to_virtual): Make static.
9358 (sh_sh4_register_convert_to_raw): Ditto.
9359
9360 2002-01-22 Andrew Cagney <ac131313@redhat.com>
9361
9362 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
9363 (floatformat_is_nan, floatformat_mantissa): Ditto.
9364
9365 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
9366 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
9367 builtin_type_ieee_double_little,
9368 builtin_type_ieee_double_littlebyte_bigword,
9369 builtin_type_m68881_ext, builtin_type_i960_ext,
9370 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
9371 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
9372 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
9373 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
9374
9375 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
9376
9377 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
9378 parameter. Set frameless flag if it exists and depended of
9379 whether the scanned function is frameless or not.
9380 (xstormy16_skip_prologue): If function is frameless, return
9381 result of xstormy16_scan_prologue().
9382 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
9383 call.
9384
9385 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
9386
9387 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
9388 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
9389 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
9390 sh_sh4_register_byte, sh_sh4_register_raw_size,
9391 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
9392 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
9393 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
9394 sh_store_pseudo_register, sh_do_pseudo_register): Call
9395 gdbarch_tdep() just once, assign result to variable and use that,
9396 instead of calling the function several times.
9397
9398 2002-01-20 Mark Kettenis <kettenis@gnu.org>
9399
9400 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
9401 macros instead of LAST_FPU_CTRL_REGNUM.
9402 (store_register): Likewise.
9403
9404 2002-01-21 Jim Blandy <jimb@redhat.com>
9405
9406 * infcmd.c (run_command): Check that the `exec' target layer's BFD
9407 is up-to-date before running the program, not just when a program
9408 exits.
9409
9410 2002-01-21 Fred Fish <fnf@redhat.com>
9411
9412 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
9413 when we have found all instructions we are looking for.
9414
9415 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
9416
9417 * arm-tdep.c (arm_register_name): New function.
9418 (arm_registers_names): Make static.
9419 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
9420 (arm_register_name): Declare.
9421 (REGISTER_NAME): Use it.
9422
9423 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
9424 Kevin Buettner <kevinb@redhat.com>
9425
9426 Convert arm targets to new FRAME interface.
9427 * arm-tdep.c (struct frame_extra_info): Remove fsr.
9428 (arm_frame_find_save_regs): Delete.
9429 (arm_frame_init_saved_regs): New.
9430 (arm_init_extra_frame_info): Alloacte saved_regs as required.
9431 Allocate extra_info as required. Convert all uses of fsr.regs
9432 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
9433 to use extra_info.
9434 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
9435 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
9436 (check_prologue_cache, save_prologue_cache): Likewise.
9437 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
9438 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
9439 (FRAME_FIND_SAVED_REGS): Delete.
9440 (arm_frame_find_saved_regs): Delete prototype.
9441 (arm_frame_init_saved_regs): New prototype.
9442 (FRAME_INIT_SAVED_REGS): Define.
9443
9444 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9445
9446 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
9447
9448 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9449
9450 From Jeff Law <law@redhat.com>:
9451 * infttrace.c: Include <sys/pstat.h>.
9452 (child_pid_to_exec_file): Revamp. Use pstat call to get the
9453 exec file if the ttrace equivalent fails.
9454
9455 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9456
9457 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
9458 (closeLogFile): Ditto.
9459
9460 2002-01-20 Michael Chastain <mec@shout.net>
9461
9462 * top.c (print_gdb_version): Bump copyright year to 2002.
9463
9464 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9465
9466 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
9467 Zannoni and Eli Zaretskii.
9468
9469 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
9470
9471 * buildsym.c: Update copyright years.
9472 * c-typeprint.c: Likewise.
9473 * dwarf2read.c: Likewise.
9474 * f-typeprint.c: Likewise.
9475 * gdbtypes.c: Likewise.
9476 * gdbtypes.h: Likewise.
9477 * hp-symtab-read.c: Likewise.
9478 * hpread.c: Likewise.
9479 * mdebugread.c: Likewise.
9480 * p-typeprint.c: Likewise.
9481
9482 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9483
9484 * remote-sim.c (gdbsim_open): Simplify code testing the macro
9485 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
9486 byte-order selectable.
9487 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
9488 * arch-utils.c: Ditto.
9489 (set_endian): Ditto.
9490 (set_endian_from_file): Ditto.
9491 * gdbserver/low-sim.c (create_inferior): Ditto.
9492 * gdbarch.sh: Ditto.
9493 * gdbarch.h: Re-generate.
9494 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9495 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
9496 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
9497 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9498 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9499 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9500 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
9501 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
9502 macro definition.
9503 * config/mips/tm-wince.h: Remove #undef of macro
9504 TARGET_BYTE_ORDER_SELECTABLE.
9505 * config/sh/tm-wince.h: Ditto.
9506
9507 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
9508
9509 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
9510 member function fields. Add accessor macro
9511 TYPE_FN_FIELD_ARTIFICIAL.
9512 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
9513 * c-typeprint.c (c_type_print_base): Skip artificial member
9514 functions.
9515
9516 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
9517
9518 * f-typeprint.c: Delete unused function f_type_print_args.
9519 * p-typeprint.c: Delete unused function pascal_type_print_args.
9520
9521 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
9522
9523 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
9524 comment. Add ``artificial'' to ``union field_location''.
9525
9526 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
9527
9528 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
9529 * mdebugread.c (parse_symbol): Likewise.
9530 * stabsread.c (define_symbol): Likewise.
9531 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
9532 initializing TYPE_FIELD_BITPOS to n (obsolete).
9533 (hpread_doc_function_type): Likewise.
9534 * hpread.c (hpread_function_type): Likewise.
9535
9536 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9537
9538 * configure.in (host_makefile_frag): Only require a host makefile
9539 fragment when a native build.
9540 * configure: Re-generate.
9541
9542 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9543
9544 * doublest.h (floatformat_from_type): Declare.
9545 * doublest.c (floatformat_from_type): New function.
9546 (convert_typed_floating): Use.
9547
9548 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
9549 call to function floatformat_from_type.
9550
9551 * gdbarch.sh (IEEE_FLOAT): Delete.
9552 * gdbarch.h, gdbarch.c: Re-generate.
9553 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
9554 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
9555 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
9556 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
9557 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
9558 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
9559 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
9560 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
9561 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
9562 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
9563 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
9564 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
9565
9566 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
9567 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
9568 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9569 * sh-tdep.c (sh_gdbarch_init): Ditto.
9570 * mips-tdep.c (mips_gdbarch_init): Ditto.
9571 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9572 * cris-tdep.c (cris_gdbarch_init): Ditto.
9573
9574 2002-01-20 Jiri Smid <smid@suse.cz>
9575
9576 * configure.host, configure.tgt: Support x86-64.
9577 * NEWS: Note new target x86-64.
9578
9579 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
9580 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
9581 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
9582 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
9583 x86-64-linux-nat.o): Fix dependencies.
9584
9585 2002-01-19 Andrew Cagney <ac131313@redhat.com>
9586
9587 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
9588 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
9589 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
9590 * config/sparc/xm-sun4os4.h: Delete file.
9591 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
9592
9593 2002-01-19 Andrew Cagney <ac131313@redhat.com>
9594
9595 * config/sparc/sparclynx.mh (XM_FILE): Delete.
9596 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
9597 * config/m68k/m68klynx.mh (XM_FILE): Delete.
9598 * config/i386/i386lynx.mh (XM_FILE): Delete.
9599 * config/rs6000/xm-rs6000ly.h: Delete file.
9600 * config/sparc/xm-sparclynx.h: Delete file.
9601 * config/m68k/xm-m68klynx.h: Delete file.
9602 * config/i386/xm-i386lynx.h: Delete file.
9603 * config/xm-lynx.h: Delete file.
9604 * config/djgpp/fnchange.lst: Update.
9605
9606 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
9607
9608 * alpha-tdep.c (alpha_register_byte): New function.
9609 (alpha_register_raw_size): Ditto.
9610 (alpha_register_virtual_size): Ditto.
9611 (alpha_skip_prologue_internal): Renamed from
9612 alpha_skip_prologue.
9613 (alpha_skip_prologue): New version that calls
9614 alpha_skip_prologue_internal.
9615 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
9616 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
9617 second argument from alpha_skip_prologue.
9618 (REGISTER_BYTE): Use alpha_register_byte.
9619 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
9620 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
9621 (FRAMELESS_FUNCTION_INVOCATION): Use
9622 generic_frameless_function_invocation_not.
9623 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
9624 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
9625
9626 2002-01-19 Andrew Cagney <ac131313@redhat.com>
9627
9628 * config/mips/xm-news-mips.h: Delete file.
9629 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
9630
9631 * config/m88k/xm-m88k.h: Delete file.
9632 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
9633 * config/m88k/xm-delta88v4.h: Ditto.
9634 * config/m88k/xm-delta88.h: Ditto.
9635
9636 * config/alpha/xm-fbsd.h: Delete file.
9637 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
9638
9639 * config/sparc/xm-sparc.h: Delete file.
9640 * Makefile.in (xm-sun4os4.h): Delete dependency.
9641 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
9642 * config/sparc/xm-sun4os4.h: Ditto.
9643 * config/sparc/xm-linux.h: Ditto.
9644
9645 * config/i386/xm-windows.h: Delete file.
9646
9647 2002-01-19 Andrew Cagney <ac131313@redhat.com>
9648
9649 * utils.c: Include <sys/param.h> for MAXPATHLEN.
9650 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
9651
9652 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
9653
9654 * alpha-tdep.c (alpha_call_dummy_words): New.
9655 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
9656 (CALL_DUMMY_P): Define.
9657 (CALL_DUMMY_WORDS): Define.
9658 (SIZEOF_CALL_DUMMY_WORDS): Define.
9659
9660 2002-01-19 Per Bothner <per@bothner.com>
9661
9662 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
9663 isn't NULL, which can happen with some gcj-3.x-produced code.
9664
9665 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
9666
9667 * alpha-tdep.c (alpha_register_virtual_type): New function.
9668 (alpha_init_frame_pc_first): Ditto.
9669 (alpha_fix_call_dummy): Ditto.
9670 (alpha_store_struct_return): Ditto.
9671 (alpha_extract_struct_value_address): Ditto.
9672 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
9673 alpha_register_virtual_type.
9674 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
9675 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
9676 alpha_extract_struct_value_address.
9677 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
9678 (INIT_FRAME_PC): Use init_frame_pc_noop.
9679 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
9680
9681 2002-01-19 Mark Kettenis <kettenis@gnu.org>
9682
9683 * i386gnu-nat.c: Include "i386-tdep.h".
9684 (fetch_fpregs): Simplify code dealing with uninitialized floating
9685 point states such that it doesn't require FP7_REGNUM.
9686
9687 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9688
9689 * alpha-tdep.c (frame_extra_info): New.
9690 (alpha_find_saved_regs): Make static. Use
9691 frame->extra_info.
9692 (alpha_frame_init_saved_regs): New function.
9693 (alpha_frame_saved_pc): Use frame->extra_info.
9694 (temp_saved_regs): Don't declare as struct frame_saved_regs.
9695 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
9696 (init_extra_frame_info): Rename to...
9697 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
9698 (alpha_print_extra_frame_info): New function.
9699 (alpha_frame_locals_address): Ditto.
9700 (alpha_frame_args_address): Ditto.
9701 (alpha_pop_frame): Use frame->extra_info.
9702 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
9703 alpha_frame_args_address.
9704 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
9705 (alpha_find_saved_regs): Remove prototype.
9706 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
9707 (EXTRA_FRAME_INFO): Remove.
9708 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
9709 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
9710
9711 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9712
9713 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
9714 (alpha_cannot_fetch_register): Ditto.
9715 (alpha_cannot_store_register): Ditto.
9716 (alpha_register_convertible): Ditto.
9717 (alpha_use_struct_convention): Ditto.
9718 * config/alpha/tm-alpha.h: Update copyright years.
9719 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
9720 (INNER_THAN): Use core_addr_lessthan.
9721 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
9722 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
9723 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
9724 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
9725 (FRAME_CHAIN): Remove unnecessary cast.
9726
9727 2002-01-18 Andrew Cagney <ac131313@redhat.com>
9728
9729 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
9730 obsolete.
9731
9732 2002-01-18 Andrew Cagney <ac131313@redhat.com>
9733
9734 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
9735 * monitor.c, remote-array.c, remote-bug.c: Ditto.
9736 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
9737 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
9738 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
9739 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
9740 * x86-64-linux-nat.c: Ditto.
9741
9742 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9743
9744 * alpha-tdep.c (alpha_register_name): New function.
9745 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
9746 (REGISTER_NAME): Define.
9747
9748 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9749
9750 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
9751
9752 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9753
9754 * alpha-tdep.c: Update copyright years.
9755 (alpha_next_pc): New function.
9756 (alpha_software_single_step): Ditto.
9757 * config/alpha/tm-alpha.h: Add prototype for
9758 alpha_software_single_step.
9759
9760 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9761
9762 * alphabsd-nat.c: Update copyright years.
9763 (fill_gregset): Use regcache_collect.
9764 (fill_fpregset): Likewise.
9765 (fetch_inferior_registers): Only fetch integer registers
9766 if requested to do so.
9767 (store_inferior_registers): Only store integer registers
9768 if requested to do so.
9769
9770 2002-01-17 Andrew Cagney <ac131313@redhat.com>
9771
9772 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
9773 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
9774 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
9775 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
9776 * config/alpha/fbsd.mh (XDEPFILES): Delete.
9777 * config/arm/linux.mh (XDEPFILES): Delete.
9778 * config/arm/nbsd.mh (XDEPFILES): Delete.
9779 * config/i386/i386dgux.mh (XDEPFILES): Delete.
9780 * config/i386/i386sol2.mh (XDEPFILES): Delete.
9781 * config/i386/i386m3.mh (XDEPFILES): Delete.
9782 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
9783 * config/i386/i386gnu.mh (XDEPFILES): Delete.
9784 * config/i386/fbsd.mh (XDEPFILES): Delete.
9785 * config/i386/i386bsd.mh (XDEPFILES): Delete.
9786 * config/i386/i386sco5.mh (XDEPFILES): Delete.
9787 * config/i386/i386v4.mh (XDEPFILES): Delete.
9788 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
9789 * config/i386/i386sco4.mh (XDEPFILES): Delete.
9790 * config/i386/i386aix.mh (XDEPFILES): Delete.
9791 * config/i386/go32.mh (XDEPFILES): Delete.
9792 * config/i386/cygwin.mh (XDEPFILES): Delete.
9793 * config/i386/i386lynx.mh (XDEPFILES): Delete.
9794 * config/i386/i386mach.mh (XDEPFILES): Delete.
9795 * config/i386/i386v32.mh (XDEPFILES): Delete.
9796 * config/i386/linux.mh (XDEPFILES): Delete.
9797 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
9798 * config/i386/ncr3000.mh (XDEPFILES): Delete.
9799 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
9800 * config/i386/i386sco.mh (XDEPFILES): Delete.
9801 * config/i386/i386v.mh (XDEPFILES): Delete.
9802 * config/i386/nbsd.mh (XDEPFILES): Delete.
9803 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
9804 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
9805 * config/i386/symmetry.mh (XDEPFILES): Delete.
9806 * config/i386/obsd.mh (XDEPFILES): Delete.
9807 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
9808 * config/ia64/linux.mh (XDEPFILES): Delete.
9809 * config/ia64/aix.mh (XDEPFILES): Delete.
9810 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
9811 * config/m68k/dpx2.mh (XDEPFILES): Delete.
9812 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
9813 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
9814 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
9815 * config/m68k/linux.mh (XDEPFILES): Delete.
9816 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
9817 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
9818 * config/m68k/nbsd.mh (XDEPFILES): Delete.
9819 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
9820 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
9821 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
9822 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
9823 * config/m88k/delta88.mh (XDEPFILES): Delete.
9824 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
9825 * config/m88k/m88k.mh (XDEPFILES): Delete.
9826 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
9827 * config/mips/linux.mh (XDEPFILES): Delete.
9828 * config/mips/irix6.mh (XDEPFILES): Delete.
9829 * config/mips/irix5.mh (XDEPFILES): Delete.
9830 * config/mips/irix4.mh (XDEPFILES): Delete.
9831 * config/mips/irix3.mh (XDEPFILES): Delete.
9832 * config/mips/decstation.mh (XDEPFILES): Delete.
9833 * config/mips/mipsm3.mh (XDEPFILES): Delete.
9834 (NATDEPFILES): Move core-aout.o to here.
9835 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
9836 * config/pa/hpux1020.mh (XDEPFILES): Delete.
9837 * config/pa/hppabsd.mh (XDEPFILES): Delete.
9838 * config/pa/hppahpux.mh (XDEPFILES): Delete.
9839 * config/pa/hpux11w.mh (XDEPFILES): Delete.
9840 * config/pa/hppaosf.mh (XDEPFILES): Delete.
9841 * config/pa/hpux11.mh (XDEPFILES): Delete.
9842 * config/powerpc/aix.mh (XDEPFILES): Delete.
9843 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
9844 * config/powerpc/linux.mh (XDEPFILES): Delete.
9845 * config/romp/rtbsd.mh: Rename XDEPFILES.
9846 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
9847 * config/rs6000/aix4.mh (XDEPFILES): Delete.
9848 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
9849 * config/s390/s390.mh (XDEPFILES): Delete.
9850 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
9851 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
9852 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
9853 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
9854 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
9855 * config/sparc/nbsd.mh (XDEPFILES): Delete.
9856 * config/sparc/linux.mh (XDEPFILES): Delete.
9857 * config/vax/vaxult.mh (XDEPFILES): Delete.
9858 * config/vax/vaxult2.mh (XDEPFILES): Delete.
9859 * Makefile.in (DEPFILES): Remove XDEPFILES.
9860
9861 2002-01-17 Andrew Cagney <ac131313@redhat.com>
9862
9863 * utils.c (internal_verror): Fix comments, default is yes not no.
9864 Update queries to match. Default to quit and dump core.
9865
9866 2002-01-17 Andrew Cagney <ac131313@redhat.com>
9867
9868 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
9869 copyright.
9870 * defs.h, event-top.c, gdbcmd.h: Ditto.
9871 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
9872 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
9873 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
9874 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
9875 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
9876 * mi/mi-main.c:Ditto.
9877
9878 * stack.c, symfile.c: Update copyright.
9879
9880 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
9881
9882 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
9883 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
9884 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
9885 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
9886
9887 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
9888
9889 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
9890 * gdbserver/low-lynx.c (myattach): Likewise.
9891 * gdbserver/low-nbsd.c (myattach): Likewise.
9892 * gdbserver/low-sim.c (myattach): Likewise.
9893 * gdbserver/low-sparc.c (myattach): Likewise.
9894 * gdbserver/low-sun3.c (myattach): Likewise.
9895
9896 * gdbserver/low-linux.c (myattach): New function.
9897
9898 * gdbserver/server.c (attach_inferior): New function.
9899 (main): Handle "--attach".
9900
9901 2002-01-16 Andrew Cagney <ac131313@redhat.com>
9902
9903 * MAINTAINERS (language support): Daniel Jacobwitz is C++
9904 maintainer.
9905
9906 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
9907
9908 * c-typeprint.c (is_type_conversion_operator): Add additional
9909 check for non-conversion operators.
9910
9911 2002-01-15 Michael Snyder <msnyder@redhat.com>
9912
9913 * linux-proc.c: Add "info proc" command, a la procfs.c.
9914 (read_mapping): New function, abstract and re-use code.
9915 (linux_find_memory_regions): Use new func read_mapping.
9916 (linux_info_proc_cmd): New function, implement "info proc".
9917 (_initialize_linux_proc): Add new command "info proc".
9918
9919 2002-01-15 Michael Snyder <msnyder@redhat.com>
9920
9921 * symfile.c (generic_load): Use bfd_map_over_sections method
9922 instead of manipulating bfd structure members directly.
9923 (add_section_size_callback): New function, bfd sections callback
9924 used by generic_load.
9925 (load_sections_callback): New function, bfd sections callback
9926 used by generic_load.
9927
9928 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
9929
9930 [Based on work by Jim Blandy]
9931 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
9932 (builtin_type_vec128): Export.
9933 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
9934 types.
9935 (builtin_type_vec128): New builtin type for 128 bit vector
9936 registers.
9937 (build_gdbtypes): Initialize builtin_type_v16qi and
9938 builtin_type_v8hi. Create the vec128 register builtin type
9939 structure.
9940 (build_builtin_type_vec128): New function.
9941 (_initialize_gdbtypes): Register builtin_type_v16qi and
9942 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
9943 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
9944 AltiVec register to new builtin type.
9945
9946 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
9947
9948 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
9949 to make_cv_type.
9950
9951 2002-01-14 Andrew Cagney <ac131313@redhat.com>
9952
9953 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
9954 CLEAN_UP_REGISTER_VALUE.
9955 * regcache.c (supply_register): Update only call.
9956
9957 2002-01-14 Andrew Cagney <ac131313@redhat.com>
9958
9959 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
9960 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
9961 a29k-*-vxworks* targets as obsolete.
9962
9963 2002-01-14 Michael Snyder <msnyder@redhat.com>
9964
9965 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
9966 until we can resolve portability issues.
9967 * gregset.h: Remove references to fpxregs.
9968 * gcore.c (gcore_command): Initialize note_sec to NULL.
9969
9970 2002-01-13 Andrew Cagney <ac131313@redhat.com>
9971
9972 * signals.c (target_signal_to_name): Rewrite. Only use
9973 signals[].name when in bounds and non-NULL.
9974
9975 2002-01-13 Andrew Cagney <ac131313@redhat.com>
9976
9977 From Petr Ledvina <ledvinap@kae.zcu.cz>:
9978 * signals.c (target_signal_to_name): Verify that SIG is within the
9979 bounds of the signals array.
9980
9981 2002-01-13 Andrew Cagney <ac131313@redhat.com>
9982
9983 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
9984
9985 2002-01-13 Keith Seitz <keiths@redhat.com>
9986
9987 * stack.c (print_frame_info_base): Print the frame's pc
9988 only if when print_frame_info_listing_hook is not defined.
9989
9990 2002-01-13 Keith Seitz <keiths@redhat.com>
9991
9992 * varobj.c (varobj_set_value): Make sure that there were no
9993 errors evaluating the object before attempting to set its
9994 value.
9995 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
9996 so this offset adjustment is no longer necessary.
9997 (create_child): Don't set the error flag if the child is
9998 a CPLUS_FAKE_CHILD.
9999 (value_of_child): If value_fetch_lazy fails, return NULL
10000 so that callers will be notified that an error occurred.
10001 (c_value_of_variable): Delay check of variable's validity
10002 until later. We actually want all structs and unions to have
10003 the value "{...}".
10004 Do not return "???" for variables which could not be evaluated.
10005 This error condition must be returned to the caller so that it
10006 can get the error condition from gdb.
10007 (cplus_name_of_child): Adjust index for vptr before figuring
10008 out the name of the child.
10009 (cplus_value_of_child): If a child's (real) parent is not valid,
10010 don't even bother trying to give a value for it. Just return
10011 an error. Change all instances in this function.
10012 (cplus_type_of_child): If our parent is one of the "fake"
10013 parents, we need to get at the type of the real parent, and
10014 derive the child's true type using this information.
10015
10016 2002-01-13 Andrew Cagney <ac131313@redhat.com>
10017
10018 From 2002-01-09 John Marshall <johnm@falch.net>:
10019 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
10020 sources.redhat.com, and tweak some related URLs which had
10021 suffered from linkrot.
10022
10023 2002-01-13 Andrew Cagney <ac131313@redhat.com>
10024
10025 From Jeff law:
10026 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
10027 structures passed in registers.
10028
10029 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
10030
10031 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
10032 white space which prevented compilation. Reported by DSK
10033 <dsk@student.unsw.edu.au>.
10034
10035 2002-01-11 Michael Snyder <msnyder@redhat.com>
10036
10037 * symfile.c (build_section_addr_info_from_section_tab):
10038 Use bfd access method instead of manipulating bfd directly.
10039 (syms_from_objfile): Ditto.
10040 (simple_overlay_update_1): Ditto.
10041 (simple_overlay_update): Ditto.
10042 (generic_load): Ditto.
10043 (overlay_unmapped_address): FIXME comment, bfd access methods.
10044 (sections_overlap): FIXME comment, bfd access methods.
10045 (pc_in_mapped_range): FIXME comment, bfd access methods.
10046 (pc_in_unmapped_range): FIXME comment, bfd access methods.
10047 (section_is_mapped): FIXME comment, bfd access methods.
10048 (section_is_overlay): FIXME comment, bfd access methods.
10049
10050 * symfile.c (generic_load): Whitespace and long line cleanups.
10051 Remove duplicate variable, change several local variables to
10052 more appropriate data types.
10053 (print_transfer_performance): Use %lu instead of %ld for ulongs.
10054
10055 2002-01-12 Andrew Cagney <ac131313@redhat.com>
10056
10057 From Peter Schauer:
10058 * language.c (longest_local_hex_string_custom): Use phex_nz to
10059 convert NUM to a hex string.
10060
10061 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
10062
10063 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
10064 the function.
10065 Update Copyright year.
10066
10067 2002-01-12 Andrew Cagney <ac131313@redhat.com>
10068
10069 * language.c (longest_raw_hex_string): Delete unused function.
10070
10071 2002-01-11 Petr Sorfa <petrs@caldera.com>
10072
10073 * MAINTAINERS (write-after-approval): Add myself.
10074 * dwarf2read.c (read_tag_string_type): Handling of
10075 DW_AT_byte_size.
10076 (read_tag_string_type): FORTRAN fix to prevent propagation of
10077 first string size.
10078 (set_cu_language): Handling of DW_LANG_Fortran95
10079
10080 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
10081
10082 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
10083 GETPID(inferior_ptid).
10084 (store_inferior_registers): Likewise.
10085
10086 2002-01-10 Jason Merrill <jason@redhat.com>
10087
10088 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
10089 Fix DW_OP_minus.
10090
10091 2002-01-10 Andrew Cagney <ac131313@redhat.com>
10092
10093 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
10094 and bfd/elf32-sh-nbsd.c.
10095
10096 2002-01-10 Michael Snyder <msnyder@redhat.com>
10097
10098 * NEWS: Mention --pid and corefile/proc-id behavior change.
10099
10100 * Makefile.in: Add rules for gcore.o and linux-proc.o.
10101 * gcore.c: Include cli/cli-decode.h instead of command.h.
10102
10103 * main.c (captured_main): Add new command line option "--pid".
10104 If the second command line argument (following the symbol-file)
10105 begins with a digit, try to attach to it before trying to open
10106 it as a corefile.
10107 (print_gdb_help): Document the "--pid" argument.
10108
10109 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
10110
10111 * completer.c (command_completer): New function.
10112
10113 * completer.h <command_completer>: Add prototype.
10114
10115 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
10116 completer for the "help" command.
10117
10118 2002-01-09 Jason Merrill <jason@redhat.com>
10119
10120 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
10121
10122 2002-01-09 Michael Snyder <msnyder@redhat.com>
10123
10124 * i386-linux-nat.c (fill_fpxregset): Make global.
10125 (store_fpxregset): Ditto.
10126
10127 * gregset.h (gdb_fpxregset_t): Define.
10128 (supply_fpxregset): Prototype.
10129 (fill_fpxregset): Prototype.
10130
10131 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
10132
10133 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
10134
10135 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
10136 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
10137 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
10138
10139 2002-01-09 Andrew Cagney <ac131313@redhat.com>
10140
10141 * MAINTAINERS: Update target maintainer rules so that any
10142 Maintainer can approve a tested patch for a maintenance-only
10143 target.
10144
10145 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
10146
10147 * MAINTAINERS (write-after-approval): Add myself.
10148
10149 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
10150 IN_SIGTRAMP.
10151
10152 2002-01-08 Michael Snyder <msnyder@redhat.com>
10153
10154 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
10155 real name of the executable, rather than the /proc name.
10156
10157 2002-01-03 Michael Snyder <msnyder@redhat.com>
10158
10159 Implement a "generate-core-file" command in gdb, save target state.
10160 * gcore.c: New file. Implement new command 'generate-core-file'.
10161 Save a corefile image of the current state of the inferior.
10162 * linux-proc.c: Add linux-specific code for saving corefiles.
10163 * target.h (struct target_ops): Add new target vectors for saving
10164 corefiles; to_find_memory_regions and to_make_corefile_notes.
10165 (target_find_memory_regions): New macro.
10166 (target_make_corefile_notes): New macro.
10167 * target.c (update_current_target): Inherit new target methods.
10168 (dummy_find_memory_regions): New place-holder method.
10169 (dummy_make_corefile_notes): New place-holder method.
10170 (init_dummy_target): Initialize new dummy target vectors.
10171 * exec.c (exec_set_find_memory_regions): New function.
10172 Allow the exec_ops vector for memory regions to be taken over.
10173 (exec_make_note_section): New function, target vector method.
10174 * defs.h (exec_set_find_memory_regions): Export prototype.
10175 * procfs.c (proc_find_memory_regions): New function, corefile method.
10176 (procfs_make_note_section): New function, corefile method.
10177 (init_procfs_ops): Set new target vector pointers.
10178 (find_memory_regions_callback): New function.
10179 (procfs_do_thread_registers): New function.
10180 (procfs_corefile_thread_callback): New function.
10181 * sol-thread.c (sol_find_memory_regions): New function.
10182 (sol_make_note_section): New function.
10183 (init_sol_thread_ops): Initialize new target vectors.
10184 * inftarg.c (inftarg_set_find_memory_regions): New function.
10185 Allow to_find_memory_regions vector to be taken over.
10186 (inftarg_set_make_corefile_notes): New function.
10187 Allow to_make_corefile_notes vector to be taken over.
10188 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
10189 interface layer if not target_has_execution (may be a corefile).
10190 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
10191 * config/sparc/sun4sol2.mh: Ditto.
10192 * config/alpha/alpha-linux.mh: Ditto.
10193 * config/arm/linux.mh: Ditto.
10194 * config/i386/x86-64linux.mh: Ditto.
10195 * config/ia64/linux.mh: Ditto.
10196 * config/m68k/linux.mh: Ditto.
10197 * config/mips/linux.mh: Ditto.
10198 * config/powerpc/linux.mh: Ditto.
10199 * config/sparc/linux.mh: Ditto.
10200
10201 2002-01-07 Michael Snyder <msnyder@redhat.com>
10202
10203 * arm-linux-nat.c: Remove references to regcache.c internal data
10204 (registers[] and register_valid[]).
10205
10206 2002-01-07 Michael Snyder <msnyder@redhat.com>
10207
10208 * linux-proc.c: New file. Implement child_pid_to_exec_file,
10209 so that attaching to a pid will automatically read the process's
10210 symbol file and shlibs.
10211 * Makefile.in: Add rule for linux-proc.o.
10212 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
10213 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
10214 * config/arm/linux.mh: Ditto.
10215 * config/i386/linux.mh: Ditto.
10216 * config/i386/x86-64linux.mh: Ditto.
10217 * config/ia64/linux.mh: Ditto.
10218 * config/m68k/linux.mh: Ditto.
10219 * config/mips/linux.mh: Ditto.
10220 * config/powerpc/linux.mh: Ditto.
10221 * config/sparc/linux.mh: Ditto.
10222
10223 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
10224
10225 * win32-nat.c: Add i386-tdep.h dependency.
10226
10227 2002-01-07 Michael Snyder <msnyder@redhat.com>
10228
10229 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
10230 instead of bfd_get_arch_size. Don't bail out just because
10231 there's no exec_bfd.
10232
10233 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
10234 * p-valprint.c (pascal_object_print_value): Ditto.
10235 * somread.c (som_symtab_read): Ditto.
10236 * symfile.c (simple_free_overlay_region_table): Ditto.
10237 * valops.c (value_assign): Ditto.
10238
10239 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
10240 use tilde_expand and strerror for opening save-tracepoints file.
10241
10242 * thread-db.c (thread_db_new_objfile): Indendation fix.
10243
10244 * infptrace.c (GDB_MAX_ALLOCA): New define.
10245 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
10246 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
10247 can be overridden with whatever value is appropriate to the host).
10248 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
10249 alloca to allocate potentially large buffer.
10250 * rs6000-nat.c (child_xfer_memory): Ditto.
10251 * symm-nat.c (child_xfer_memory): Ditto.
10252 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
10253
10254 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
10255
10256 From Nick Clifton <nickc@redhat.com>
10257 * d10v-tdep.c: Set STACK_START to 0x200bffe.
10258
10259 2002-01-07 Michael Snyder <msnyder@redhat.com>
10260
10261 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
10262 Don't use exec_bfd if it's NULL.
10263
10264 2002-01-06 Mark Kettenis <kettenis@gnu.org>
10265
10266 * valops.c (value_arg_coerce): Fix formatting.
10267
10268 2002-01-06 Andrew Cagney <ac131313@redhat.com>
10269
10270 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
10271 * gnu-nat.c: Ditto.
10272
10273 2002-01-06 Andrew Cagney <ac131313@redhat.com>
10274
10275 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
10276 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
10277 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
10278 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
10279 z8k-coff have not been multi-arched. Update z8k-coff build
10280 status.
10281
10282 2002-01-06 Andrew Cagney <ac131313@redhat.com>
10283
10284 * MAINTAINERS: Mark a29k target as obsolete.
10285 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
10286 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
10287 comments.
10288 * NEWS: Note that a29k targets are obsolete.
10289 * a29k-tdep.c: Mark as obsolete.
10290 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
10291 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
10292 a29k-*-vxworks* targets as obsolete.
10293 * remote-adapt.c: Obsolete.
10294 * remote-eb.c: Obsolete.
10295 * remote-mm.c: Obsolete.
10296 * remote-udi.c: Obsolete.
10297 * config/a29k/a29k-udi.mt: Obsolete.
10298 * config/a29k/a29k.mt: Obsolete.
10299 * config/a29k/tm-a29k.h: Obsolete.
10300 * config/a29k/tm-vx29k.h: Obsolete.
10301 * config/a29k/vx29k.mt: Obsolete.
10302
10303 2002-01-05 Andrew Cagney <ac131313@redhat.com>
10304
10305 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
10306 with BFD_ENDIAN_BIG.
10307
10308 2002-01-05 Andrew Cagney <ac131313@redhat.com>
10309
10310 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
10311 * configure, config.in: Re-generate.
10312 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
10313 * defs.h: Do not include <endian.h>.
10314
10315 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
10316
10317 * acconfig.h (HAVE_PT_GETXMMREGS): New.
10318 * config.in: Regenerate.
10319 * configure.in: Update copyright years.
10320 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
10321 * configure: Regenerate.
10322 * i386bsd-nat.c: Update copyright years.
10323 (fill_gregset): Use regcache_collect.
10324 (fetch_inferior_registers): Only fetch integer registers
10325 if requested to do so. Add support for XMM registers
10326 using PT_GETXMMREGS.
10327 (store_inferior_registers): Only store integer registers
10328 if requested to do so. Add support for XMM registers
10329 using PT_SETXMMREGS.
10330 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
10331 (store_inferior_registers): Remove.
10332 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
10333 (fetch_elfcore_registers): New function.
10334 (i386nbsd_elfcore_fns): New.
10335 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
10336 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
10337 i386bsd-nat.o.
10338 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
10339 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
10340 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
10341 * config/i386/tm-nbsd.h: Update copyright years.
10342 (HAVE_SSE_REGS): Define.
10343 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
10344 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
10345 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
10346 (SIGCONTEXT_PC_OFFSET): Remove.
10347 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
10348
10349 2002-01-05 Andrew Cagney <ac131313@redhat.com>
10350
10351 * configure.tgt: Remove powerpc-*-macos* target.
10352 * config/m68k/xm-mpw.h: Delete file.
10353 * config/xm-mpw.h: Delete file.
10354 * ser-mac.c: Delete file.
10355 * mpw-make.sed: Delete file.
10356 * mpw-config.in: Delete file.
10357 * mac-xdep.c: Delete file.
10358 * mac-gdb.r: Delete file.
10359 * mac-defs.h: Delete file.
10360 * mac-nat.c: Delete file.
10361 * config/powerpc/macos.mh: Delete file.
10362 * config/powerpc/macos.mt: Delete file.
10363 * config/powerpc/nm-macos.h: Delete file.
10364 * config/powerpc/tm-macos.h: Delete file.
10365 * source.c (openp, open_source_file): Remove obsolete code.
10366 * top.c (gdb_readline): Ditto.
10367 * utils.c (query): Ditto.
10368 * event-top.c (display_gdb_prompt): Ditto.
10369 * Makefile.in (ser-mac.o): Delete obsolete target.
10370 * NEWS: Update.
10371
10372 2002-01-04 Andrew Cagney <ac131313@redhat.com>
10373
10374 * defs.h (BIG_ENDIAN): Delete macro definition.
10375 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
10376 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
10377 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
10378 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
10379 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
10380 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
10381 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
10382 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
10383 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
10384 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
10385 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
10386 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
10387 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
10388 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
10389 * gdbarch.c: Re-generate.
10390
10391 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
10392
10393 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
10394 for core files.
10395
10396 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
10397
10398 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
10399
10400 2002-01-04 Andrew Cagney <ac131313@redhat.com>
10401
10402 * value.h (value_ptr): Delete typedef.
10403
10404 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
10405
10406 * i386nbsd-nat.c: Update copyright years.
10407 Include i386-tdep.h.
10408
10409 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
10410
10411 * stabsread.c: Update copyright years.
10412
10413 From Debashis Mahata <debashis.mahata@wipro.com>:
10414 (read_struct_fields): Deal with Sun C compiler erroneous stab
10415 output for structs and unions.
10416 Fix PR gdb/269.
10417
10418 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
10419
10420 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
10421 prototype.
10422
10423 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
10424
10425 * cp-abi.c: Fix whitespace.
10426 (baseclass_offset): New wrapper function.
10427 * cp-abi.h (baseclass_offset): Add prototype.
10428 (struct cp_abi_ops): Add baseclass_offset pointer.
10429
10430 * valops.c (vb_match): Move to...
10431 * gnu-v2-abi.c (vb_match): here.
10432 * valops.c (baseclass_offset): Move to...
10433 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
10434
10435 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
10436
10437 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
10438 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
10439 * hpacc-abi.c (init_hpacc_ops): Likewise.
10440
10441 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
10442
10443 * valops.c (find_overload_match): Accept obj as a
10444 reference parameter. Update it before returning.
10445 * value.h (find_overload_match): Update prototype.
10446 * eval.c (evaluate_subexp_standard): Pass object to
10447 find_overload_match by reference.
10448
10449 2002-01-03 Andrew Cagney <ac131313@redhat.com>
10450
10451 * valarith.c: Replace value_ptr with struct value pointer. Remove
10452 register attribute from value declarations.
10453 * valops.c: Ditto.
10454 * value.h: Ditto.
10455 * scm-lang.c (scm_lookup_name): Ditto.
10456
10457 2002-01-03 Michael Snyder <msnyder@redhat.com>
10458
10459 Abstract the functionality of iterating over mapped memory
10460 regions into a general purpose iterator function.
10461 * procfs.c (iterate_over_mappings): New function, general purpose
10462 iterator for memory sections.
10463 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
10464 (solib_mappings_callback): New function, callback for above.
10465 (info_proc_mappings): Reimpliment using iterate_over_mappings.
10466 (info_mappings_callback): New function, callback for above.
10467
10468 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
10469
10470 2002-01-01 Mark Kettenis <kettenis@gnu.org>
10471
10472 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
10473 * i386-tdep.c: Include "elf-bfd.h".
10474 (process_note_abi_tag_sections): New function.
10475 (i386_gdbarch_init): Add code to recognize various OS/ABI
10476 combinations.
10477
10478 * maint.c (_initialize_maint_cmds): Add missing \ in
10479 string-literal.
10480
10481 For older changes see ChangeLog-2001
10482 \f
10483 Local Variables:
10484 mode: change-log
10485 left-margin: 8
10486 fill-column: 74
10487 version-control: never
10488 End: