* i387-tdep.h (i387_print_float_info): New prototype.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2002-08-15 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
2
3 * i387-tdep.h (i387_print_float_info): New prototype.
4 * i387-tdep.c (print_i387_value, print_i387_ext,
5 print_i387_status_word, print_i387_control_word): Add `struct
6 ui_file *' argument and use it for output.
7 (i387_print_float_info): Renamed from i387_float_info. Add
8 `struct gdbarch *' and `struct ui_file *' arguments and use the
9 latter for output.
10 * i386-tdep.c: Include "i387-tdep.h".
11 (i386_gdbarch_init): Set print_float_info.
12 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
13 (FLOAT_INFO): Remove define.
14
15 2002-08-13 Michael Snyder <msnyder@redhat.com>
16
17 * mips-tdep.c (mips_push_arguments): Rename to
18 mips_eabi_push_arguments, and tune for EABI.
19 (MIPS_REGS_HAVE_HOME_P): Delete.
20 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
21 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
22 Delete references to mips_regs_have_home_p.
23
24 2002-08-14 Keith Seitz <keiths@redhat.com>
25
26 * Makefile.in (install-gdbtk): Create insight plugin directory.
27 Install plugins.tcl file.
28
29 2002-08-14 Keith Seitz <keiths@redhat.com>
30
31 * configure.in: Move SUBDIRS to near top of the file so that
32 --enable options may add things to it.
33 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
34 * configure: Regenerate.
35
36 2002-08-13 Michael Snyder <msnyder@redhat.com>
37
38 * mips-tdep.c (mips_o32o64_push_arguments): New function,
39 cloned from mips_push_arguments, tuned for o32/o64 ABI.
40 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
41
42 2002-08-13 Andrew Cagney <ac131313@redhat.com>
43
44 * vax-tdep.c (vax_get_saved_register): Delete function.
45 (vax_gdbarch_init): Update.
46 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
47 (ns32k_gdbarch_init): Update.
48 * alpha-tdep.c (alpha_get_saved_register): Delete function.
49 (alpha_gdbarch_init): Update.
50
51 2002-08-13 Andrew Cagney <cagney@redhat.com>
52
53 * regcache.c (init_regcache_descr): Overallocate the
54 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
55 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
56 nr_raw_registers.
57 (set_register_cached): Add range checking assertions. Use
58 current_regcache.
59
60 2002-08-13 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
61
62 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
63 numbers for MMX registers.
64
65 2002-08-13 Andrew Cagney <cagney@redhat.com>
66
67 * i386-tdep.c (i386_gdbarch_init): Use
68 generic_unwind_get_saved_register.
69
70 2002-08-13 Kevin Buettner <kevinb@redhat.com>
71
72 * procfs.c (procfs_can_use_hw_breakpoint): New function.
73 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
74 target vector.
75 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
76 Delete. Add comment regarding this now-deleted target method.
77
78 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
79
80 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
81 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
82 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
83 real PC and the page number (if it's within the memory bank window).
84 (m68hc11_pseudo_register_write): Likewise when saving.
85 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
86 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
87 (m68hc11_register_raw_size): And use 32-bit for it.
88 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
89 16K memory bank is used by the prog; also use the virtual pc.
90
91 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
92
93 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
94 (m68hc11_gdbarch_init): Install it in gdbarch.
95 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
96 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
97 (MSYMBOL_SIZE): New for documentation.
98 (insn_return_kind): Enum to specify how a function returns.
99 (frame_extra_info): Cleanup and record the return mode.
100 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
101 register in address computation.
102 (m68hc11_get_return_insn): New to obtain the return instruction used
103 by the function.
104 (m68hc11_frame_init_saved_regs): Take into account the return
105 instruction used by the function for far and interrupt functions.
106 (m68hc11_init_extra_frame_info): Take into account page register.
107 (m68hc11_frame_args_address): Adjust according to the return mode.
108 (show_regs): Print page register only when it's used.
109
110 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
111
112 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
113 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
114 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
115 registers.
116 (m68hc11_register_raw_size): Likewise.
117
118 2002-08-13 Andrew Cagney <cagney@redhat.com>
119
120 * i386-tdep.c (i386_register_name): Handle mmx registers.
121 (mmx_regnum_p): New function.
122 (i386_mmx_names): New array.
123 (mmx_num_regs): New variable.
124 (i386_pseudo_register_read): New function.
125 (i386_pseudo_register_write): New function.
126 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
127
128 * regcache.c (regcache_raw_read_unsigned): New function.
129 (regcache_raw_read_signed): New function.
130 * regcache.h (regcache_raw_read_unsigned): Declare.
131 (regcache_raw_read_signed): Declare.
132
133 2002-08-13 Andrew Cagney <cagney@redhat.com>
134
135 * regcache.c (regcache_raw_read_as_address): Delete function.
136 (regcache_cooked_read_signed): New function.
137 (regcache_cooked_read_unsigned): New function.
138 * regcache.h (regcache_cooked_read_signed): Declare.
139 (regcache_cooked_read_unsigned): Declare.
140 (regcache_raw_read_as_address): Delete declaration.
141
142 * blockframe.c (generic_read_register_dummy): Use
143 regcache_cooked_read_unsigned.
144 * i386-tdep.c (i386_extract_struct_value_address): Use
145 regcache_cooked_read_unsigned.
146
147 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
148
149 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
150 double sizes according to ELF ABI flags.
151 (gdbarch_tdep): Record elf_flags.
152
153 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
154
155 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
156 (m6812_prolog): They can appear in 68HC12 function prologue.
157 (m68hc11_frame_chain): Cleanup.
158
159 2002-08-12 Andrew Cagney <cagney@redhat.com>
160
161 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
162 declarations.
163 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
164 (i386_linux_register_raw_size): Delete function.
165 (i386_linux_init_abi): Update.
166 * i386-tdep.c (i386_register_raw_size): Delete function.
167 (i386_register_byte): Delete function.
168 (i386_gdbarch_init): Update.
169 (i386_register_size): Delete array.
170 (i386_register_offset): Delete array.
171
172 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
173 (REGISTER_RAW_SIZE): Delete macro.
174 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
175 (REGISTER_BYTE): Delete macro.
176
177 2002-08-11 Aidan Skinner <aidan@velvet.net>
178
179 * ada-lang.c (ada_lookup_partial_symbol)
180 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
181 prototype names so that grep ^func works properly.
182
183 * ada-lang.c (ada_array_element_type)
184 (ada_lookup_partial_symbol): Fix typos in parameter list.
185
186 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
187 Fix prototype names so that grep ^func works properly.
188
189 2002-08-10 Andrew Cagney <cagney@redhat.com>
190 Elena Zannoni <ezannoni@redhat.com>
191 Martin M. Hunt <hunt@redhat.com>
192
193 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
194 (build_builtin_type_vec128i): Set the vector bit.
195 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
196 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
197 (build_builtin_type_vec64): New function.
198 (build_builtin_type_vec64i): New function.
199 (build_gdbtypes): Initialize builtin_type_vec64 and
200 builtin_type_vec64i.
201
202 2002-08-09 Andrew Cagney <cagney@redhat.com>
203
204 * regcache.c (regcache_dump): Compare the register offset
205 with REGISTER_BYTE.
206 * arch-utils.c (generic_register_byte): New function.
207 * arch-utils.h (generic_register_byte): Declare.
208 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
209 * gdbarch.h, gdbarch.c: Regenerate.
210
211 2002-08-09 Andrew Cagney <cagney@redhat.com>
212
213 * regcache.c: Include "gdbcmd.h"
214 (_initialize_regcache): Add commands "maintenance print
215 registers", "maintenance print raw-registers" and "maintenance
216 print cooked-registers".
217 (enum regcache_dump_what): Define.
218 (dump_endian_bytes): New function.
219 (regcache_dump): New function.
220 (regcache_print): New function.
221 (maintenance_print_registers): New function.
222 (maintenance_print_raw_registers): New function.
223 (maintenance_print_cooked_registers): New function.
224 * Makefile.in (regcache.o): Update dependencies.
225
226 2002-08-09 Michael Snyder <msnyder@redhat.com>
227
228 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
229 (mips_push_arguments): Correct some comments. Use paddr_nz
230 for printing addresses in debug output. Replace static
231 allocation using MAX_REGISTER_RAW_SIZE with alloca.
232 (mips_n32n64_push_arguments): New function, cloned from
233 mips_push_arguments and tuned for the n32/n64 ABI.
234 (mips_push_register): Buffer needs dynamic allocation.
235 (mips_print_register): Ditto.
236 (do_gp_register_row): Ditto.
237 (mips_store_return_value): Ditto.
238 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
239
240 2002-08-09 Don Howard <dhoward@redhat.com>
241
242 * memattr.c (mem_info_command): Print special case of upper bound
243 as max CORE_ADDR + 1.
244
245 2002-08-08 Michael Snyder <msnyder@redhat.com>
246
247 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
248 returns structs by ref if they're too big to fit in two registers.
249
250 2002-08-09 Kevin Buettner <kevinb@redhat.com>
251
252 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
253 saved regs value.
254 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
255 mips_find_saved_regs().
256 (mips_pop_frame): Likewise.
257
258 2002-08-09 Kevin Buettner <kevinb@redhat.com>
259
260 * blockframe.c (frame_saved_regs_register_unwind): Revise
261 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
262 frames are in use.
263
264 2002-08-09 Grace Sainsbury <graces@redhat.com>
265
266 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
267 T-packets; the 'a' is not taken as a register number.
268 (remote_check_watch_resources, remote_stopped_by_watchpoint)
269 (remote_stopped_data_address): New functions; add to target
270 vector.
271 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
272 prototypes to match other implementations of this
273 function. replace integer argument with pointer -- the length
274 field in the Z-packet is the length of what is pointed to or 1 if
275 pointer is null. Add to target vector.
276 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
277 target vector.
278
279 From Mark Salter:
280 * remote.c (remote_wait): Add support to extract optional
281 watchpoint information from T-packet. Ignore unrecognized
282 optional info in T-packet.
283 (remote_async_wait): Ditto.
284
285 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
286
287 * cli/cli-dump.c: Change fopen modes to use binary open modes
288 as defined in include/fopen-bin.h throughout.
289
290 2002-08-08 Michael Snyder <msnyder@redhat.com>
291
292 * mips-tdep.c: Minor whitespace and indentation clean-ups.
293
294 2002-08-08 Kevin Buettner <kevinb@redhat.com>
295
296 * doublest.c (store_floating): Avoid floatformat_from_doublest()
297 assertion failure by returning early after a warning.
298
299 2002-08-08 Kevin Buettner <kevinb@redhat.com>
300
301 * mips-tdep.c (mips_find_saved_regs): Make static.
302 (mips_frame_init_saved_regs): New function.
303 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
304 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
305 (mips_find_saved_regs): Delete declaration.
306
307 2002-08-08 Grace Sainsbury <graces@redhat.com>
308
309 * remote.c (remote_wait, remote_async_wait): Change
310 thread_num from int to ULONGEST.
311 (unpack_varlen_hex): Change result parameter from
312 int * to ULONGEST *.
313
314 2002-08-08 Andrew Cagney <ac131313@redhat.com>
315
316 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
317 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
318 powerpc*-*-*.
319 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
320
321 2002-08-08 Andrew Cagney <cagney@redhat.com>
322
323 * gcore.c (override_derive_stack_segment): Delete variable.
324 (preempt_derive_stack_segment): Delete function.
325 (derive_stack_segment): Delete function.
326 (default_derive_stack_segment): Renamed to derive_stack_segment.
327 (override_derive_heap_segment): Delete variable.
328 (preempt_derive_heap_segment): Delete function.
329 (derive_heap_segment): Delete function.
330 (default_derive_heap_segment): Rename to derive_heap_segment.
331
332 2002-08-06 Michael Snyder <msnyder@redhat.com>
333
334 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
335 * mips-tdep.c (mips_EABI_use_struct_convention,
336 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
337 New functions. (mips_use_struct_convention): Delete.
338 (mips_gdbarch_init): set use_gdbarch_convention.
339
340 2002-08-06 Michael Snyder <msnyder@redhat.com>
341
342 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
343 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
344 mips_o32_reg_struct_has_addr): New functions.
345 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
346
347 2002-08-07 Andrew Cagney <ac131313@redhat.com>
348
349 * regcache.c (pseudo_register): Delete function.
350 (fetch_register): Delete function.
351 (store_register): Delete function.
352 (regcache_raw_read, legacy_read_register_gen): Use
353 target_fetch_registers instead of fetch_register.
354 (legacy_write_register_gen, regcache_raw_write): Use
355 target_store_register instead of store_register.
356 (write_register_bytes): Ditto.
357
358 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
359 (STORE_PSEUDO_REGISTER): Delete.
360 * gdbarch.h, gdbarch.c: Regenerate.
361
362 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
363
364 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
365 write dump file binary.
366
367 2002-08-05 Michael Snyder <msnyder@redhat.com>
368
369 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
370 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
371 (mips_gdbarch_init): Set N32 target to be mips64.
372
373 2002-08-06 Kevin Buettner <kevinb@redhat.com>
374
375 * frame.c (find_saved_register): Break out of loop once saved
376 register address is found. Don't mention sparc in loop comment
377 anymore.
378
379 2002-08-06 Kevin Buettner <kevinb@redhat.com>
380
381 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
382 mips_default_saved_regsize to 8.
383
384 2002-08-06 Andrew Cagney <ac131313@redhat.com>
385
386 * gcore.c: Do not include <sys/procfs.h>.
387 * Makefile.in (gcore.o): Update dependencies.
388
389 2002-08-06 Andrew Cagney <cagney@redhat.com>
390
391 * configure.tgt: Make arc-*-* obsolete.
392 * NEWS: Mention that arc-*-* has been identifed as obsolete.
393 * MAINTAINERS: Make arc-elf obsolete.
394 * arc-tdep.c: Make file obsolete.
395 * config/arc/arc.mt: Ditto.
396 * config/arc/tm-arc.h: Ditto.
397
398 2002-08-05 Theodore A. Roth <troth@verinet.com>
399
400 * gdb/avr-tdep.c(avr_skip_prologue): Fix to return the correct pc.
401
402 2002-08-05 Andrew Cagney <ac131313@redhat.com>
403
404 * mcore-tdep.c (mcore_gdbarch_init): Use
405 generic_unwind_get_saved_register instead of
406 generic_get_saved_register.
407 * v850-tdep.c (v850_gdbarch_init): Ditto.
408 * frv-tdep.c (frv_gdbarch_init): Ditto.
409 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
410 * s390-tdep.c (s390_gdbarch_init): Ditto.
411 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
412 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
413 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
414
415 2002-08-05 Joel Brobecker <brobecker@gnat.com>
416
417 * objfiles.h: Add missing #include "symfile.h"
418
419 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
420
421 2002-08-04 Andrew Cagney <ac131313@redhat.com>
422
423 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
424 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
425 of FIELD_BITSIZE.
426
427 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
428
429 * NEWS: Cleanup and nitpick.
430
431 2002-08-03 Andrew Cagney <ac131313@redhat.com>
432
433 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
434
435 2002-08-03 Andrew Cagney <ac131313@redhat.com>
436
437 * Makefile.in (gdbtk-bp.o): Update dependencies.
438 (gdbtk-register.o): Ditto.
439 (gdbtk-varobj.o): Ditto.
440
441 2002-08-03 Andrew Cagney <cagney@redhat.com>
442
443 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
444 m68hc11_fetch_pseudo_register.
445 (m68hc11_pseudo_register_write): Replace
446 m68hc11_store_pseudo_register.
447 (m68hc11_gdbarch_init): Update.
448
449 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
450
451 * gdbarch.sh: Include "gdb_string.h".
452 * gdbarch.c: Regenerate.
453
454 * regcache.c: Include "gdb_string.h".
455 * ax-general.c: Ditto.
456 * varobj.c: Ditto.
457 * std-regs.c: Ditto.
458 * fbsd-proc.c: Ditto.
459 * thread.c: Ditto.
460
461 * Makefile.in (regcache.o): Update dependencies.
462 (thread.o, gdbarch.o): Ditto.
463 (ax-general.o, gdbarch.o): Ditto.
464 (varobj.o, std-regs.o): Ditto.
465 (fbsd-proc.o): Specify dependencies.
466
467 2002-08-02 Andrew Cagney <cagney@redhat.com>
468
469 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
470 regnum.
471 (regcache_cooked_write): Ditto.
472
473 2002-08-02 Andrew Cagney <ac131313@redhat.com>
474
475 * regcache.c (regcache_cooked_read): New function.
476 (regcache_cooked_write): New function.
477 (read_register_gen): Rewrite using regcache_cooked_read.
478 (write_register_gen): Rewrite using regcache_cooked_write.
479
480 * regcache.h (regcache_cooked_read, regcache_cooked_write):
481 Declare.
482
483 2002-08-02 Andrew Cagney <cagney@redhat.com>
484
485 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
486 Replace the architecture methods register_read and register_write.
487 * gdbarch.h, gdbarch.c: Regenerate.
488 * regcache.c (init_regcache_descr): Update.
489 (read_register_gen): Update.
490 (write_register_gen): Update.
491 (supply_register): Update comment.
492
493 * sh-tdep.c (sh_gdbarch_init): Update.
494 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
495 `regcache' and `gdbarch' parameters. Make `buffer' a void
496 pointer. Update code.
497 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
498 `regcache' and `gdbarch' parameters. Make `buffer' a constant
499 void pointer. Update code.
500 (sh64_register_write): Delete.
501 (sh4_register_read): Delete.
502 (sh64_register_read): Delete.
503 (sh4_register_write): Delete.
504 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
505 void pointer, `to' parameter a void pointer.
506 (sh_sh64_register_convert_to_raw): Ditto.
507
508 2002-08-01 Kevin Buettner <kevinb@redhat.com>
509
510 * mips-tdep.c (mips_register_virtual_type): Use architecture
511 invariant return values.
512
513 2002-08-01 Andrew Cagney <cagney@redhat.com>
514
515 * linux-proc.c: Include "gdb_string.h".
516 * Makefile.in (linux-proc.o): Update dependency list.
517
518 2002-08-01 Kevin Buettner <kevinb@redhat.com>
519
520 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
521 comment.
522
523 2002-08-01 Grace Sainsbury <graces@redhat.com>
524
525 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
526 to_insert_watchpoint, to_remove_watchpoint,
527 to_stopped_by_watchpoint, to_stopped_data_address,
528 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
529 target vecctor. Define their corresponding macros so they call
530 them.
531
532 * target.c: Add default and debug versions of for
533 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
534 to_insert_watchpoint, to_remove_watchpoint,
535 to_stopped_by_watchpoint, to_stopped_data_address,
536 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
537
538 2002-08-01 Kevin Buettner <kevinb@redhat.com>
539
540 * mips-tdep.c (mips_register_virtual_type): New function.
541 (mips_gdbarch_init): Register mips_register_virtual_type()
542 with gdbarch machinery.
543 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
544 this file instead of tm-bigmips.h.
545 (MIPS_REGSIZE): Delete this macro.
546 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
547 multiarch version in mips-tdep.c will be found.
548
549 2002-08-01 Andrew Cagney <cagney@redhat.com>
550
551 * NEWS: Menion that CHILL has been made obsolete.
552
553 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
554 * gdbserver/Makefile.in: Ditto.
555 * stabsread.c (read_range_type): Ditto.
556 * gdbtypes.h: Ditto.
557 * language.c (binop_type_check): Ditto.
558 (binop_result_type): Ditto.
559 (integral_type): Ditto.
560 (character_type): Ditto.
561 (string_type): Ditto.
562 (boolean_type): Ditto.
563 (structured_type): Ditto.
564 (lang_bool_type): Ditto.
565 (binop_type_check): Ditto.
566 * language.h (_LANG_chill): Ditto.
567 * dwarfread.c (set_cu_language): Ditto.
568 * dwarfread.c (CHILL_PRODUCER): Ditto.
569 * dwarfread.c (handle_producer): Ditto.
570 * expression.h (enum exp_opcode): Ditto.
571 * eval.c: Ditto for comments.
572 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
573 * expprint.c (print_subexp): Ditto.
574 (print_subexp): Ditto.
575 * valops.c (value_cast): Ditto.
576 (search_struct_field): Ditto.
577 * value.h (COERCE_VARYING_ARRAY): Ditto.
578 * symfile.c (init_filename_language_table): Ditto.
579 (add_psymbol_with_dem_name_to_list): Ditto.
580 * valarith.c (value_binop): Ditto.
581 (value_neg): Ditto.
582 * valops.c (value_slice): Ditto.
583 * symtab.h (union language_specific): Ditto.
584 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
585 (SYMBOL_DEMANGLED_NAME): Ditto.
586 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
587 * defs.h (enum language): Ditto.
588 * symtab.c (got_symtab): Ditto.
589 * utils.c (fprintf_symbol_filtered): Ditto.
590
591 * ch-typeprint.c: Make file obsolete.
592 * ch-valprint.c: Make file obsolete.
593 * ch-lang.h: Make file obsolete.
594 * ch-exp.c: Make file obsolete.
595 * ch-lang.c: Make file obsolete.
596
597 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
598 CHILL_LIB.
599 (TARGET_FLAGS_TO_PASS): Ditto.
600 (CHILLFLAGS): Obsolete.
601 (CHILL): Obsolete.
602 (CHILL_FOR_TARGET): Obsolete.
603 (CHILL_LIB): Obsolete.
604 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
605 ch-valprint.c.
606 (HFILES_NO_SRCDIR): Remove ch-lang.h.
607 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
608 ch-lang.o.
609 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
610 targets.
611
612 2002-07-31 Joel Brobecker <brobecker@gnat.com>
613
614 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
615 This does not change anything at the moment, but will be helpful
616 later when full Ada support is integrated.
617
618 2002-07-31 Kevin Buettner <kevinb@redhat.com>
619
620 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
621 help message.
622
623 2002-07-31 Kevin Buettner <kevinb@redhat.com>
624
625 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
626 and save it in a local variable. Use variable in later test.
627
628 2002-07-31 Kevin Buettner <kevinb@redhat.com>
629
630 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
631 test. (Thanks to Daniel Jacobowitz.)
632
633 2002-07-31 Kevin Buettner <kevinb@redhat.com>
634
635 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
636 (mips_abi_strings): Add "n64".
637 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
638
639 2002-07-31 Kevin Buettner <kevinb@redhat.com>
640
641 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
642 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
643
644 2002-07-31 Kevin Buettner <kevinb@redhat.com>
645
646 * utils.c (host_pointer_to_address, address_to_host_pointer):
647 Use gdb_assert() instead of explicit call to internal_error().
648
649 2002-07-30 Kevin Buettner <kevinb@redhat.com>
650
651 * Makefile.in (rs6000-nat.o): Update dependencies.
652
653 From Nicholas Duffek:
654 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
655 (aix-thread.o): New rule.
656 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
657 * config/powerpc/aix432.mh: New file.
658
659 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
660
661 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
662 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
663 (fetch_core_registers, ppc_linux_supply_gregset)
664 (ppc_linux_supply_fpregset): New functions.
665 (ppc_linux_regset_core_fns): New.
666 (_initialize_ppc_linux_tdep): Call add_core_fns.
667 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
668 and ppc_linux_supply_gregset.
669 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
670 (supply_fpregset): Call ppc_linux_supply_fpregset.
671 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
672 corelow.o.
673 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
674
675 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
676
677 * symtab.c (lookup_symbol): Demangle before lowercasing.
678
679 2002-07-30 Andrew Cagney <ac131313@redhat.com>
680
681 * symtab.h: Replace #include "gdb_obstack.h" with opaque
682 declaration.
683 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
684 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
685 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
686 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
687 "gdb_string.h".
688 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
689 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
690 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
691 (avr-tdep.o, mon960-rom.o): Ditto.
692 (aout_stabs_gnu_h): Define.
693 (symtab_h): Remove $(gdb_obstack_h).
694
695 2002-07-30 Jim Blandy <jimb@redhat.com>
696
697 Patch from David Carlton <carlton@math.stanford.edu>:
698 * gdbinit.in: Move the `dir' commands that add GDB's own source
699 directory to the search path to the end, so that the `gdb' source
700 directory will be searched first.
701
702 2002-07-29 Andrew Cagney <ac131313@redhat.com>
703
704 * gdb_obstack.h: New file.
705 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
706 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
707 * objfiles.h: Include "gdb_obstack.h".
708 * Makefile.in (gdb_obstack_h): Define.
709 (symtab_h): Add $(gdb_obstack_h).
710 (objfiles_h): Add $(gdb_obstack_h).
711
712 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
713 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
714 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
715 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
716 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
717 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
718 * symfile.c, coffread.c, c-typeprint.c: Ditto.
719 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
720
721 * Makefile.in (bcache.o): Update dependencies.
722 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
723 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
724 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
725 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
726 (stabsread.o, symfile.o, symmisc.o): Ditto.
727 (symtab.o, typeprint.o, macroexp.o): Ditto.
728 (macrotab.o, mdebugread.o): Ditto.
729 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
730 (coff_ecoff_h, aout_aout64_h): Define.
731 (aout_stabs_gnu_h, libaout_h): Define.
732
733 2002-07-29 Andrew Cagney <cagney@redhat.com>
734
735 * regcache.c (struct regcache_descr): Rename nr_registers to
736 nr_cooked_registers. Revise comments describing the structure
737 member fields.
738 (init_regcache_descr): Update.
739 (init_legacy_regcache_descr): Update.
740 (read_register_gen, write_register_gen): When a cooked register in
741 the raw register range, directly access the value from the raw
742 register cache.
743
744 2002-07-29 Andrew Cagney <ac131313@redhat.com>
745
746 * z8k-tdep.c: Do not include "obstack.h".
747 * h8300-tdep.c, h8500-tdep.c: Ditto.
748 * m68hc11-tdep.c, sh-tdep.c: Ditto.
749 * valprint.c, v850-tdep.c: Ditto.
750 * d10v-tdep.c, mn10300-tdep.c: Ditto.
751 * mn10200-tdep.c: Ditto.
752
753 * Makefile.in (z8k-tdep.o): Update dependencies.
754 (m68hc11-tdep.o, valprint.o): Ditto.
755 (v850-tdep.o, d10v-tdep.o): Ditto.
756 (mn10300-tdep.o, sparc-tdep.o): Ditto.
757 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
758 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
759 (sh_opc_h, gdb_sim_sh_h): Define.
760 (elf_sh_h, elf_bfd_h): Define.
761 (opcode_m68hc11_h): Define.
762 (OPCODES_SRC, OPCODES_DIR): define.
763 (OPCODES): Use $(OPCODES_DIR).
764 (gdb_sim_d10v_h): Rename sim_d10v_h.
765 (gdb_sim_arm_h): Rename sim_arm_h.
766
767 2002-07-26 Kevin Buettner <kevinb@redhat.com>
768
769 * utils.c (host_pointer_to_address, address_to_host_pointer):
770 Change internal_error() message to indicate function responsible
771 for the error.
772
773 2002-07-26 Kevin Buettner <kevinb@redhat.com>
774
775 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
776 calls to local_hex_string_custom().
777
778 2002-07-26 Kevin Buettner <kevinb@redhat.com>
779
780 * irix5-nat.c: Move IRIX shared library support from here...
781 * solib-irix.c: ...to here. Revised substantially to work with
782 generic solib framework.
783
784 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
785 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
786 * mips-irix-tdep.c: New file.
787
788 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
789 (mips-irix-tdep.o, solib-irix.o): New rules.
790 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
791 solib-irix.o.
792 * config/mips/irix6.mt (TDEPFILES): Likewise.
793 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
794
795 2002-07-26 Kevin Buettner <kevinb@redhat.com>
796
797 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
798 disabled (via ``#if 0'') includes.
799
800 2002-07-26 Kevin Buettner <kevinb@redhat.com>
801
802 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
803 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
804 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
805 Add support for the fpscr register.
806 * rs6000-nat.c (regmap, fetch_inferior_registers)
807 (store_inferior_registers, fetch_core_registers): Likewise.
808
809 2002-07-26 Kevin Buettner <kevinb@redhat.com>
810
811 * rs6000-nat.c (language.h): Include.
812 (special_regs): Delete this array.
813 (regmap): New function.
814 (fetch_register, store_register): Use regmap() to map gdb
815 register numbers to ptrace register numbers. Also, use
816 outputs from regmap() to make decisions regarding type of
817 ptrace() call to make. In particular, don't compare against
818 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
819 (fetch_inferior_registers, store_inferior_registers): Where
820 possible, obtain register numbers from tdep struct. Don't
821 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
822 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
823 (LAST_UISA_SP_REGNUM): Delete.
824
825 2002-07-25 Kevin Buettner <kevinb@redhat.com>
826
827 * rs6000-nat.c (ppc-tdep.h): Include.
828 (fetch_registers, store_register, fetch_core_registers): Don't
829 access registers[] directly. Instead, use supply_register() or
830 regcache_collect() as appropriate.
831 (find_toc_address): Format hex address with local_hex_string().
832
833 2002-07-25 Andrew Cagney <ac131313@redhat.com>
834
835 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
836 bfd/elf32-frv.c.
837
838 2002-07-24 Tom Tromey <tromey@redhat.com>
839
840 * jv-exp.y: Marked all strings with _().
841 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
842 internal_error.
843 (MethodInvocation, CastExpression, parse_number, yyerror,
844 java_type_from_name, push_expression_name, yylex): Typo fixes.
845
846 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
847
848 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
849 (tee_file_flush, tee_file_write, tee_file_fputs)
850 (tee_file_isatty): New.
851 * ui-file.h (tee_file_new): Add prototype.
852
853 2002-07-24 Aidan Skinner <aidan@velvet.net>
854
855 * ada-lang.c: Change k&r style function definitions to prototyped
856 form.
857 * ada-typeprint.c: Change k&r style function definitions to prototyped
858 form.
859 * ada-valprint.c: Change k&r style function definitions to prototyped
860 form.
861
862 2002-07-24 Andrew Cagney <cagney@redhat.com>
863
864 * README: Remove reference to remote-bug.
865 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
866 remote-bug.c.
867 (m88k-nat.o): Delete rule.
868 (m88k-tdep.o): Delete rule.
869 (remote-bug.o): Delete rule.
870 * MAINTAINERS: Mark as obsolete.
871 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
872 * m88k-tdep.c: Make file obsolete.
873 * config/m88k/m88k.mh: Ditto.
874 * config/m88k/delta88v4.mh: Ditto.
875 * config/m88k/delta88v4.mt: Ditto.
876 * config/m88k/delta88.mt: Ditto.
877 * config/m88k/delta88.mh: Ditto.
878 * remote-bug.c: Ditto.
879 * config/m88k/tm-delta88.h: Ditto.
880 * config/m88k/nm-delta88v4.h: Ditto.
881 * config/m88k/xm-delta88.h: Ditto.
882 * config/m88k/xm-dgux.h: Ditto.
883 * config/m88k/tm-m88k.h: Ditto.
884 * config/m88k/nm-m88k.h: Ditto.
885 * config/m88k/tm-delta88v4.h: Ditto.
886 * m88k-nat.c: Ditto.
887 * cxux-nat.c: Ditto.
888 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
889 and m88*-*-* obsolete.
890 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
891 m88*-*-* obsolete.
892
893 2002-07-24 Andrew Cagney <cagney@redhat.com>
894
895 * findvar.c (extract_unsigned_integer): Make `addr' parameter
896 constant. Same for local pointer variables.
897 (extract_signed_integer): Ditto.
898 * defs.h (extract_unsigned_integer): Update.
899 (extract_signed_integer): Update.
900
901 2002-07-24 Kevin Buettner <kevinb@redhat.com>
902
903 * gdbserver/configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
904 * gdbserver/configure: Regenerate.
905 * gdbserver/config.in: Regenerate.
906
907 2002-07-24 Andrew Cagney <cagney@redhat.com>
908
909 * regcache.c (regcache_raw_write): Change buf parameter to a
910 constant void pointer.
911 (regcache_raw_read): Change buf parameter to a void pointer.
912 (legacy_write_register_gen): Change myaddr parameter a constant
913 void pointer.
914 (supply_register): Change val parameter to a const void pointer.
915 * regcache.h (regcache_raw_write): Update declaration.
916 (regcache_raw_read): Update declaration.
917 (supply_register): Update declaration.
918
919 2002-07-24 Tom Tromey <tromey@redhat.com>
920
921 * defs.h (gdb_readline_wrapper): Declare.
922 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
923 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
924 * top.c (gdb_readline_wrapper): New function.
925 (command_line_input): Use it.
926
927 2002-07-24 Andrew Cagney <cagney@redhat.com>
928
929 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
930 regcache_read and regcache_write.
931 (regcache_raw_read_as_address): Replace regcache_read_as_address.
932 * regcache.c: Update.
933 * sh-tdep.c (sh64_push_arguments): Update comment.
934 (sh_pseudo_register_read): Update.
935 (sh_pseudo_register_write): Update.
936 (sh4_register_read): Update.
937 (sh4_register_write): Update.
938 (sh64_pseudo_register_read): Update.
939 (sh64_pseudo_register_write): Update.
940 (sh64_register_read): Update.
941 (sh64_register_write): Update.
942 * i386-tdep.c (i386_extract_return_value): Update.
943 (i386_extract_struct_value_address): Update.
944 (i386_extract_return_value): Update.
945 * blockframe.c (generic_read_register_dummy): Update.
946 (generic_call_dummy_register_unwind): Update
947 * infrun.c (write_inferior_status_register): Update.
948
949 2002-07-23 Jim Blandy <jimb@redhat.com>
950
951 * parser-defs.h (expression_context_pc): Make this extern.
952 (Thanks to Michael Snyder.)
953
954 2002-07-23 Andrew Cagney <ac131313@redhat.com>
955
956 GDB 5.2.1 released from 5.2 branch.
957 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
958 * README: Update to mention 5.2.1.
959
960 2002-07-23 Mark Salter <msalter@redhat.com>
961
962 * remote.c (remote_read_bytes): Fix check for error.
963
964 2002-07-22 Kevin Buettner <kevinb@redhat.com>
965
966 * aix-thread.c (language.h): Include.
967 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
968 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
969 Print newlines at end of debug messages.
970 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
971 (pdc_write_data): Use local_hex_string() instead of %llx formats.
972
973 2002-07-22 Kevin Buettner <kevinb@redhat.com>
974
975 * aix-thread.c (ppc-tdep.h): Include.
976 (special_register_p): New function.
977 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
978 (store_regs_user_thread): Use register number information from
979 gdbarch_tdep struct instead of hardcoded offsets relative to
980 FIRST_UISA_SP_REGNUM.
981 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
982 special_register_p() instead of using FPLAST_REGNUM and
983 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
984 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
985 will be MQ's register number.
986
987 2002-07-22 Michael Snyder <msnyder@redhat.com>
988
989 * aix-thread.c (ops): Rename to aix_thread_ops.
990 (base_ops): Rename to base_target.
991 (ops_attach): Rename to aix_thread_attach.
992 (ops_detach): Rename to aix_thread_detach.
993 (ops_resume): Rename to aix_thread_detach.
994 (ops_wait): Rename to aix_thread_wait.
995 (ops_kill): Rename to aix_thread_kill.
996 (init_ops): Rename to init_aix_thread_ops.
997 (ops_fetch_register): Rename to aix_thread_fetch_register.
998 (ops_store_register): Rename to aix_thread_store_register.
999 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
1000 (ops_thread_alive): Rename to aix_thread_thread_alive.
1001 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
1002 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
1003 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
1004 (fetch_regs_lib): Rename to fetch_regs_user_thread.
1005 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
1006 (store_regs_lib): Rename to store_regs_user_thread.
1007 (store_regs_kern): Rename to store_regs_kernel_thread.
1008
1009 2002-07-22 Michael Snyder <msnyder@redhat.com>
1010
1011 * aix-thread.c (ops_prepare_to_store): Eliminate.
1012 (init_ops): Don't initialize ops.prepare_to_store.
1013 (store_regs_kern): Pre-fetch register buffers from child,
1014 because some registers may not be in the cache. Copy
1015 regs from register cache only if they are cached.
1016 (store_regs_lib): Copy regs from register cache only
1017 if they are cached.
1018 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
1019 fill_gprs64): Ditto.
1020
1021 2002-07-22 Kevin Buettner <kevinb@redhat.com>
1022
1023 * aix-thread.c (gdb_assert.h): Include.
1024 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
1025 register sizes (from register cache) match size of buffer holding
1026 register data.
1027 (fill_sprs32): Change parameter types to match those in the ptrace()
1028 buffer.
1029 (store_regs_lib): Likewise, but for 32-bit temporary variables.
1030 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
1031
1032 2002-07-22 Michael Snyder <msnyder@redhat.com>
1033
1034 * aix-thread.c (supply_sprs64): Cosmetic change.
1035 (supply_sprs32): Cosmetic change.
1036 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
1037 (fill_sprs64): Use regcache_collect instead of read_register.
1038 (store_regs_lib): Use regcache_collect instead of
1039 read_register. Use fill_sprs32 instead of fill_sprs64,
1040 if debugging a 32-bit architecture.
1041 (store_regs_kern): Use fill_gprs64 etc. to pull the values
1042 out of the register cache, instead of passing a pointer into
1043 the register cache directly to ptrace. Use regcache_collect
1044 insteaad of read_register.
1045 (ops_prepare_to_store): Use target_read_registers instead
1046 of read_register_bytes.
1047
1048 2002-07-20 Aidan Skinner <aidan@velvet.net>
1049
1050 * MAINTAINERS: Add self under write after approval.
1051
1052 2002-07-20 Aidan Skinner <aidan@velvet.net>
1053
1054 * ada-tasks.c: Change k&r style function definitions to prototyped
1055 form.
1056
1057 2002-07-19 Andrew Cagney <ac131313@redhat.com>
1058
1059 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
1060 * x86-64-tdep.c: Include "objfiles.h".
1061 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
1062 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
1063
1064 2002-07-17 Michal Ludvig <michal@suse.cz>
1065
1066 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
1067 (update_context): Initialise cfa variable.
1068
1069 2002-07-17 Michael Snyder <msnyder@redhat.com>
1070
1071 * aix-thread.c: Shorten some long lines.
1072 Bring comments into line with code spec.
1073
1074 2002-07-18 Joel Brobecker <brobecker@gnat.com>
1075
1076 * infrun.c: Re-indent using gdb_indent.sh.
1077
1078 2002-07-18 Joel Brobecker <brobecker@gnat.com>
1079
1080 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
1081 Leave the indentation temporarily untouched, to minimize the diffs.
1082
1083 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
1084
1085 * stabsread.c: Make os9k sections of the code obsolete,
1086 for real this time.
1087 * stabsread.h: Make os9k sections of the code obsolete.
1088
1089 2002-07-18 Michal Ludvig <mludvig@suse.cz>
1090
1091 * linux-low.c (regsets_store_inferior_registers): Add free()
1092 at the end of a loop to prevent memory leak.
1093 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
1094 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
1095 * config/sparc/tm-sp64linux.h: Make the rest of #endif
1096 line a comment.
1097 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
1098
1099 2002-07-17 Jim Blandy <jimb@redhat.com>
1100
1101 * macrocmd.c (info_macro_command): Remove newline from error
1102 message.
1103
1104 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
1105
1106 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
1107 (sh_gdbarch_init): Use it for sh-dsp.
1108
1109 2002-07-16 Kevin Buettner <kevinb@redhat.com>
1110
1111 * dwarf2read.c (read_initial_length): Handle older, non-standard,
1112 64-bit DWARF2 format.
1113
1114 2002-07-16 Joel Brobecker <brobecker@gnat.com>
1115
1116 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
1117 <sys/proc.h> when not available.
1118
1119 2002-07-16 Andrew Cagney <ac131313@redhat.com>
1120
1121 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
1122 * stabsread.c: Make os9k sections of the code obsolete.
1123 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
1124 * config/i386/i386os9k.mt: Make file obsolete.
1125 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
1126 (COMMON_OBS): Remove os9kread.o
1127 (SFILES): Remove os9kread.c.
1128 (os9kread.o, remote-os9k.o): Make target obsolete.
1129 * remote-os9k.c: Make file obsolete.
1130 * os9kread.c: Make file obsolete.
1131 * Makefile.in
1132
1133 2002-07-16 Andrew Cagney <ac131313@redhat.com>
1134
1135 * NEWS: Mention that the FR30 has been made obsolete.
1136 * fr30-tdep.c: Make file obsolete.
1137 * config/fr30/tm-fr30.h: Ditto.
1138 * config/fr30/fr30.mt: Ditto.
1139 * configure.tgt: Make fr30-*-elf obsolete.
1140 * MAINTAINERS: Make fr30-elf obsolete.
1141
1142 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
1143
1144 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
1145 found is not inside a section.
1146
1147 2002-07-15 Kevin Buettner <kevinb@redhat.com>
1148
1149 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
1150 strerror().
1151 (pdc_realloc): Use xrealloc() instead of realloc().
1152
1153 2002-07-15 Kevin Buettner <kevinb@redhat.com>
1154
1155 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
1156 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
1157 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
1158 macros.
1159
1160 2002-07-15 Kevin Buettner <kevinb@redhat.com>
1161
1162 * aix-thread.c (ptrace_check): Eliminate goto.
1163 (sync_threadlists): Eliminate gotos. Also, fix array overrun
1164 problem.
1165
1166 2002-07-15 Kevin Buettner <kevinb@redhat.com>
1167
1168 * aix-thread.c (gdbcmd.h): Include.
1169 (DEBUG, DBG, DBG2, dbg): Eliminate.
1170 (debug_aix_thread): New static global.
1171 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
1172 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
1173 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
1174 invocations to DBG and DBG2 macros to test against
1175 ``debug_aix_thread'' and call fprintf_unfiltered().
1176 (_initialize_aix_thread): Add new command "set debug aix-thread".
1177
1178 2002-07-15 Andrew Cagney <ac131313@redhat.com>
1179
1180 From Gerhard Tonn <TON@de.ibm.com>:
1181 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
1182 instead of supply_register.
1183
1184 2002-07-15 Andrew Cagney <ac131313@redhat.com>
1185
1186 * dwarf2cfi.c: Include "gdb_assert.h".
1187 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
1188 non-NULL.
1189 (update_context): Do not use __func__. Add missing ``break''.
1190 (update_context): Do not use __func__.
1191
1192 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
1193
1194 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
1195 and its setting. Set gdbarch instruction printing functions
1196 directly. For non-rs6000 case use new function
1197 gdb_print_insn_powerpc.
1198 (gdb_print_insn_powerpc): New function.
1199
1200 2002-07-13 Andrew Cagney <ac131313@redhat.com>
1201
1202 * NEWS: Mention that the d30v has been marked obsolete.
1203 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
1204 * configure.tgt: Mark d30v-*-* as obsolete.
1205 * d30v-tdep.c: Mark file as obsolete.
1206 * config/d30v/d30v.mt: Ditto.
1207 * config/d30v/tm-d30v.h: Ditto.
1208
1209 2002-07-13 Aidan Skinner <aidan@velvet.net>
1210
1211 * ada-tasks.c (add_task_entry): replace calls to
1212 malloc() with xmalloc
1213 * ada-tasks.c (init_task_list): replace calls to free with xfree()
1214
1215 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
1216 ada_finish_decode_line_1, all_sals_for_line
1217 ada_breakpoint_rewrite): replace calls to free() with xfree()
1218
1219 2002-07-12 Kevin Buettner <kevinb@redhat.com>
1220
1221 From Nicholas Duffek (with minor changes by Martin Hunt,
1222 Louis Hamilton, and Kevin Buettner):
1223 * aix-thread.c: New file.
1224
1225 2002-07-12 Petr Sorfa <petrs@caldera.com>
1226
1227 * dwarf2read.c (dwarf2_invalid_attrib_class): New
1228 complaint for invalid attribute class or form.
1229 (read_func_scope): DW_AT_frame_base
1230 better handling of DW_AT_block*.
1231 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
1232 better handling of DW_AT_block*.
1233 (read_common_block): DW_AT_location
1234 better handling of DW_AT_block*.
1235 (read_partial_die): DW_AT_location better handling
1236 of DW_AT_block*.
1237 (new_symbol): DW_AT_external better handling of
1238 DW_AT_block*. Proper initialization of variable
1239 "addr".
1240 (attr_form_is_block): New function that returns true
1241 if the attribute's form is of DW_FORM_block*.
1242
1243 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
1244
1245 * valops.c (find_method_list): Remove comment about
1246 removed STATIC_MEMFUNCP argument.
1247 (value_find_oload_method_list): Likewise.
1248
1249 2002-07-12 Kevin Buettner <kevinb@redhat.com>
1250
1251 From Nicholas Duffek:
1252 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
1253 target_new_objfile_hook.
1254
1255 2002-07-12 Kevin Buettner <kevinb@redhat.com>
1256
1257 From Nicholas Duffek:
1258 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
1259 csect.
1260
1261 2002-07-12 Andrew Cagney <cagney@redhat.com>
1262
1263 * MAINTAINERS: Mention --enable-sim-build-warnings.
1264 (m68hc11-elf): Disable sim build warnings.
1265 (m32r-elf): Mark as broken obsolete candidate.
1266 (x86_64-linux-gnu): Mark as buildable with -Werror.
1267 (arm-elf): Change -w to ``,'' which enables warnings but not
1268 -Werror.
1269
1270 2002-07-12 Andrew Cagney <ac131313@redhat.com>
1271
1272 * bcache.h: Update copyright.
1273 (struct bstring, struct bcache): Move definition to "bcache.c".
1274 Replaced by opaque declaration.
1275 (bcache_xfree): Replace free_bcache.
1276 (bcache_xmalloc, bcache_memory_used): Declare.
1277
1278 * bcache.c: Update copyright.
1279 (struct bstring, struct bcache): Moved to here from "bcache.h".
1280 Update comments.
1281 (bcache_xmalloc, bcache_memory_used): New functions.
1282 (bcache_xfree): Replace function free_bcache.
1283
1284 * Makefile.in (objfiles.o): Add $(bcache_h).
1285 (objfiles_h): Remove $(bcache_h).
1286 (symfile.o): Add $(bcache_h).
1287
1288 * symmisc.c: Update copyright.
1289 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
1290 (print_objfile_statistics): Use bcache_memory_used.
1291
1292 * symfile.c: Include "bcache.h".
1293 (reread_symbols): Use bcache_xfree.
1294 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
1295 (add_psymbol_to_list): Pass psymbol_cache by value.
1296 (add_psymbol_with_dem_name_to_list): Ditto.
1297
1298 * objfiles.h: Update copyright.
1299 (struct bcache): Declare opaque. Do not include "bcache.h".
1300 (struct objfile): Change psymbol_cache and macro_cache to ``struct
1301 bcache'' pointers.
1302 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
1303
1304 * objfiles.c: Include "bcache.h". Update copyright.
1305 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
1306 macro_cache.
1307 (free_objfile): Use bcache_xfree.
1308
1309 2002-07-11 Grace Sainsbury <graces@redhat.com>
1310
1311 * monitor.c (monitor_fetch_register): Make name a constant.
1312 (monitor_store_register): Same.
1313
1314 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
1315
1316 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
1317 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
1318 (finish_block) For non-function blocks, hash the symbol table. For
1319 function blocks, mark the symbol table as unhashed.
1320 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
1321 (msymbol_hash_iw): Likewise.
1322 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
1323 value.
1324 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
1325 (lookup_minimal_symbol): Likewise for both.
1326 * symtab.h (struct block): Add `hashtable' flag. Comment the
1327 hashtable.
1328 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
1329 (ALL_BLOCK_SYMBOLS): Update.
1330 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
1331 (struct symbol): Add `hash_next' pointer.
1332 * symtab.c (lookup_block_symbol): Search using the hash table when
1333 possible.
1334 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
1335 (search_symbols, find_addr_symbol): Likewise.
1336
1337 * dstread.c (process_dst_block): Clear hashtable bit for new block.
1338 (read_dst_symtab): Likewise.
1339 * jv-lang.c (get_java_class_symtab): Likewise.
1340 * mdebugread.c: Include "gdb_assert.h".
1341 (shrink_block): Assert that the block being modified is not hashed.
1342 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
1343 * symmisc.c (free_symtab_block): Walk the hash table when freeing
1344 symbols.
1345 (dump_symtab): Recognize hashed blocks.
1346 * printcmd.c (print_frame_args): Assert that function blocks do not
1347 have hashed symbol tables.
1348 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
1349 (fill_in_ada_prototype, debug_print_block): Likewise.
1350 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
1351
1352 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
1353
1354 * stack.c (print_frame): Use result of frame_address_in_block()
1355 instead of fi->pc when evaluating symbols.
1356 (backtrace_command_1): Ditto.
1357
1358 2002-07-11 Andrew Cagney <cagney@redhat.com>
1359
1360 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
1361 Make static.
1362
1363 * arm-tdep.c (arm_register_name): Make return type constant.
1364
1365 2002-07-10 Andrew Cagney <ac131313@redhat.com>
1366
1367 * win32-nat.c (has_detach_ability): Convert to strict ISO C
1368 prototype.
1369 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
1370 * s390-tdep.c (s390_fp_regnum): Ditto.
1371 (s390_read_fp): Ditto.
1372 (s390_pop_frame): Ditto.
1373 (_initialize_s390_tdep): Ditto.
1374 * remote.c (get_remote_state): Ditto.
1375 * procfs.c (mappingflags): Ditto.
1376 * memattr.c (_initialize_mem): Ditto.
1377 * mcore-tdep.c (mcore_pop_frame): Ditto.
1378 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
1379 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
1380 * language.c (set_case_str): Ditto.
1381 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
1382 * frv-tdep.c (new_variant): Ditto.
1383 (frv_stopped_data_address): Ditto.
1384 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
1385 (context_alloc): Ditto.
1386 (frame_state_alloc): Ditto.
1387 (unwind_tmp_obstack_init): Ditto.
1388 (unwind_tmp_obstack_free): Ditto.
1389 (cfi_read_fp): Ditto.
1390 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
1391 (cris_pop_frame): Ditto.
1392 * c-lang.c (scanning_macro_expansion): Ditto.
1393 (finished_macro_expansion): Ditto.
1394 (c_preprocess_and_parse): Ditto.
1395 * gdbarch.sh: Ditto.
1396 * gdbarch.h, gdbarch.c: Regenerate.
1397 * config/mn10200/tm-mn10200.h: Adjust indentation.
1398 * target.c: Adjust indentation.
1399 * symtab.h: Adjust indentation.
1400 * stabsread.h: Adjust indentation.
1401 * remote-es.c: Adjust indentation.
1402 * os9kread.c: Adjust indentation.
1403
1404 2002-07-10 Andrew Cagney <ac131313@redhat.com>
1405
1406 * wince.c (_initialize_wince): Rename _initialize_inftarg.
1407 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
1408
1409 2002-07-10 Grace Sainsbury <graces@redhat.com>
1410
1411 * NEWS: Mention m68k, mcore multi-arching.
1412 * MAINTAINERS: Change status of m68k, mcore to reflect
1413 multi-arching.
1414
1415 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
1416
1417 * valops.c (find_overload_match): Free oload_syms.
1418
1419 2002-07-09 Joel Brobecker <brobecker@gnat.com>
1420
1421 Define HAVE_SYS_PROC_H if sys/proc.h exists
1422 * configure.in: Add check for sys/proc.h
1423 * config.in: Regenerate.
1424 * configure: Regenerate.
1425
1426 2002-07-09 Grace Sainsbury <graces@redhat.com>
1427
1428 * config/m68k/tm-m68k.h: Remove macros wrapped in
1429 #if !GDB_MULTI_ARCH.
1430
1431 2002-07-09 David O'Brien <obrien@FreeBSD.org>
1432
1433 * gdbserver/gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
1434 (perror_with_name, remote_close, remote_open, expect, play): Static.
1435
1436 2002-07-08 Andrew Cagney <ac131313@redhat.com>
1437
1438 * config.in, configure: Regenerate.
1439
1440 2002-07-08 Mark Kettenis <kettenis@gnu.org>
1441
1442 * dwarf2cfi.c: Include "gcore.h".
1443 (execute_stack_op): Fix implementation of the
1444 DW_OP_deref and DW_OP_deref_size operators by letting do their
1445 lookup in the target.
1446
1447 2002-07-07 Mark Kettenis <kettenis@gnu.org>
1448
1449 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
1450 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
1451 tdep->sc_sp_offset.
1452
1453 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
1454
1455 Fix PR gdb/595, gdb/602
1456 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
1457 Don't call value_cast, just read the vtable pointer; update comments
1458 to match.
1459
1460 2002-07-05 Grace Sainsbury <graces@redhat.com>
1461
1462 * config/mcore/tm-mcore.h: Remove file.
1463 * config/mcore/mcore.mt: Remove definition of TM_FILE
1464 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
1465
1466 2002-07-05 Mark Kettenis <kettenis@gnu.org>
1467
1468 * i386bsd-tdep.c: Include "gdb_string.h".
1469
1470 2002-07-04 Grace Sainsbury <graces@redhat.com>
1471
1472 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
1473 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
1474 mcore-tdep.
1475 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
1476 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
1477 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
1478 (RETVAL_REGNUM): Move macros from tm-mcore.h
1479 (mcore_reg_struct_has_addr): New function.
1480 (mcore_gdbarch_init): Added initializations for the macros removed
1481 from tm-mcore.h.
1482
1483 2002-07-04 Mark Kettenis <kettenis@gnu.org>
1484
1485 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
1486 traditonal string branding within the ELF header.
1487
1488 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
1489
1490 * symtab.c (remove_params): New function.
1491 (make_symbol_overload_list): Use it instead of cplus_demangle.
1492 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
1493
1494 2002-07-04 Mark Kettenis <kettenis@gnu.org>
1495
1496 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
1497
1498 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
1499 New variables.
1500 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
1501 and tdep->sigtramp_end.
1502 * i386obsd-nat.c: New file.
1503 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
1504
1505 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
1506 Don't call get_current_frame().
1507
1508 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
1509
1510 * i386-nat.c (child_post_startup_inferior): New function
1511 calling i386_cleanup_dregs if
1512 I386_USE_GENERIC_WATCHPOINTS is defined.
1513 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
1514 conditional to acknowledge that i386-nat.c has its
1515 own child_post_startup_inferior function.
1516
1517 2002-07-04 Mark Kettenis <kettenis@gnu.org>
1518
1519 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
1520 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
1521 instead of MAX_REGISTER_RAW_SIZE.
1522 (i386_extract_return_value, i386_extract_struct_value_address):
1523 Convert to use regcache.
1524 (i386_gdbarch_init): Set max_register_raw_size and
1525 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
1526 Set extract_return_value and extract_struct_value_address instead
1527 of their deprecated variants.
1528
1529 Convert i386 target to generic dummy frames.
1530 * i386-tdep.c: Include "symfile.h".
1531 (i386_frameless_signal_p): Consider a function to be frameless if
1532 the pc points at the first instruction of the function.
1533 (i386_frame_chain): Handle (generic) call dummies.
1534 (i386_frame_saved_pc): Likewise.
1535 (i386_frame_init_saved_regs): Remove code dealing with call
1536 dummies on the stack.
1537 (i386_push_dummy_frame): Removed.
1538 (i386_call_dummy_words): Removed.
1539 (i386_fix_call_dummy): Removed.
1540 (i386_push_return_address): New function.
1541 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
1542 parameter, and don't call get_current_frame.
1543 (i386_pop_frame): New function.
1544 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
1545 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
1546 entry_point_address, set call_dummy_breakpoint_offset to 0, set
1547 call_dummy_length to 0, set call_dummy_words to NULL, set
1548 sizeof_call_dummy_words to 0, set fix_call_dummy to
1549 generic_fix_call_dummy, set pc_in_call_dummy to
1550 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
1551 generic_push_dummy_frame, set push_return_address to
1552 i386_push_return_address and set frame_chain_valid to
1553 generic_file_frame_chain_valid.
1554
1555 2002-07-04 Michal Ludvig <mludvig@suse.cz>
1556
1557 * gdbserver/linux-x86-64-low.c (x86_64_regmap): Make it an array of
1558 byte offsets instead of an array of indexes.
1559 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
1560
1561 2002-07-03 Andrew Cagney <ac131313@redhat.com>
1562
1563 * gdbarch.sh (struct regcache): Add opaque declaration.
1564 (EXTRACT_RETURN_VALUE): New architecture method.
1565 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
1566 * gdbarch.h, gdbarch.c: Regenerate.
1567 * arch-utils.c (legacy_extract_return_value): New function.
1568 * arch-utils.h (legacy_extract_return_value): Declare.
1569 * values.c (value_being_returned): Re-enable code handling
1570 EXTRACT_STRUCT_VALUE_ADDRESS. Move
1571 deprecated_grub_regcache_for_registers call to block handling
1572 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
1573 (EXTRACT_RETURN_VALUE): Do not define.
1574
1575 2002-07-03 Grace Sainsbury <graces@redhat.com>
1576
1577 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
1578 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
1579 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
1580 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
1581 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
1582 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
1583 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
1584 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
1585 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
1586 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
1587 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
1588 argument so the function fits the prototype in the architecture
1589 vector.
1590 (mcore_pop_frame): Remove argument so the function fits the
1591 prototype. Use get_current_frame instead of the argument.
1592 (mcore_push_arguments): Change type of struct_return so the
1593 function can be used in the architecture vector.
1594 (mcore_store_struct_return): Add.
1595 (mcore_frame_init_saved_regs): Add.
1596 (mcore_gdbarch_init): Add function calls to replace the macros
1597 removed from tm-mcore.h
1598
1599 2002-07-03 Andrew Cagney <ac131313@redhat.com>
1600
1601 * infcmd.c (print_return_value): Remove compatibility code calling
1602 deprecated_grub_regcache_for_registers.
1603
1604 * values.c: Include "regcache.h".
1605 (value_being_returned): Update. Use
1606 deprecated_grub_regcache_for_registers to extract the register
1607 buffer address.
1608 * value.h (value_being_returned): Change ``retbuf'' parameter to a
1609 ``struct regcache''.
1610 * Makefile.in (values.o): Add dependency on $(regcache_h).
1611
1612 * inferior.h (run_stack_dummy): Change type of second parameter to
1613 a ``struct regcache''.
1614 * valops.c (hand_function_call): Change type of retbuf to ``struct
1615 regcache''. Allocate using regcache_xmalloc, clean using
1616 make_cleanup_regcache_xfree.
1617 * infcmd.c (run_stack_dummy): Update. Use
1618 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
1619
1620 * regcache.c (do_regcache_xfree): New function.
1621 (make_cleanup_regcache_xfree): New function.
1622 * regcache.h (make_cleanup_regcache_xfree): Declare.
1623
1624 2002-07-03 Martin M. Hunt <hunt@redhat.com>
1625
1626 * event-top.c (command_line_handler): Don't read past
1627 beginning of buffer.
1628
1629 2002-07-03 Martin M. Hunt <hunt@redhat.com>
1630
1631 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
1632 struct frame_id.
1633 (varobj_create): Store frame_id for root.
1634 (varobj_gen_name): Use xasprintf.
1635 (varobj_update): Save and restore frame using get_frame_id() and
1636 frame_find_by_id().
1637 (create_child): Use xasprintf.
1638 (new_root_variable): Initialize frame_id.
1639 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
1640 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
1641 to prevent memory leak.
1642
1643 2002-07-03 Andrew Cagney <ac131313@redhat.com>
1644
1645 * valops.c (hand_function_call): Move declaration of retbuf to
1646 start of function, allocate using malloc, add a cleanup but before
1647 the inf_status cleanup, cleanup the buffer. Rename local variable
1648 old_chain to inf_status_cleanup.
1649
1650 2002-07-03 Martin M. Hunt <hunt@redhat.com>
1651
1652 * top.c (execute_command): Use cmd_func() and cmd_func_p().
1653
1654 * cli/cli-decode.c (cmd_func_p): New function.
1655 (cmd_func): New function.
1656
1657 * command.h: Add cmd_func() and cmd_func_p().
1658
1659 2002-07-03 Grace Sainsbury <graces@redhat.com>
1660
1661 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
1662 (REGISTER_SIZE): Remove.
1663 (MAX_REGISTER_RAW_SIZE): Remove.
1664 (REGISTER_VIRTUAL_TYPE): Remove.
1665 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
1666 (REGISTER_NAME): Remove.
1667 (USE_GENERIC_DUMMY_FRAMES): Remove.
1668 (CALL_DUMMY): Remove.
1669 (CALL_DUMMY_START_OFFSET): Remove.
1670 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
1671 (CALL_DUMMY_LOCATION): Remove.
1672 (FIX_CALL_DUMMY): Remove.
1673 (CALL_DUMMY_ADDRESS): Remove.
1674 (SIZEOF_CALL_DUMMY_WORDS): Remove.
1675 (SAVE_DUMMY_FRAME_TOS): Remove.
1676 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
1677 (mcore_register_virtual_type): New function.
1678 (mcore_register_byte): New function.
1679 (mcore_register_size): New function.
1680 (mcore_register_name): New function.
1681 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
1682 macros removed from tm-mcore.h.
1683 (mcore_dump_tdep): Add.
1684 (_initialize_mcore_tdep): Add gdbarch_register call.
1685
1686 2002-07-03 Mark Kettenis <kettenis@gnu.org>
1687
1688 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
1689 frameless_look_for_prologue, such that we actually call this
1690 function.
1691
1692 2002-07-02 Joel Brobecker <brobecker@gnat.com>
1693
1694 * frame.h (frame_address_in_block): New function.
1695
1696 * blockframe.c (frame_address_in_block): New function extracted
1697 from get_frame_block().
1698 (get_frame_block): Use frame_address_in_block().
1699 (block_innermost_frame): Use frame_address_in_block() to match
1700 the frame pc address against the block boundaries rather than
1701 the frame pc directly. This prevents a failure when a frame pc
1702 is actually a return-address pointing immediately after the end
1703 of the given block.
1704
1705 2002-07-02 Grace Sainsbury <graces@redhat.com>
1706
1707 * MAINTAINERS: Add self under write after approval.
1708
1709 2002-07-02 Grace Sainsbury <graces@redhat.com>
1710
1711 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
1712 used in architecture vector. The default is
1713 m68k_local_breakpoint_from_pc.
1714 (m68k_local_breakpoint_from_pc): Add.
1715 (enum): Add register numbers from tm-m68k.h.
1716 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
1717 vector.
1718 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
1719 GDB_MULTI_ARCH_PARTIAL.
1720 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
1721 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
1722 m68k-tdep.c.
1723 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
1724 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
1725 to enum in m68k-tdep.c
1726
1727 2002-07-02 Joel Brobecker <brobecker@gnat.com>
1728
1729 * solib-osf.c (open_map): Compute the list of shared libraries
1730 loaded by the inferior, rather than the list of libraries loaded
1731 by GDB itself. Otherwise, GDB ends up reading the symbols from
1732 the wrong shared libraries...
1733
1734 2002-07-02 Mark Kettenis <kettenis@gnu.org>
1735
1736 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
1737 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
1738 macros.
1739 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
1740 Remove functions.
1741 (FRAMELESS_SIGNAL): Remove function.
1742 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
1743 i386_linux_saved_pc_after_call): Removed.
1744 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
1745 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
1746 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
1747
1748 * i386-tdep.c (i386_frameless_signal_p): New function.
1749 (i386_frame_chain): Deal with frameless signals.
1750 (i386_sigtramp_saved_sp): New function.
1751 (i386_frame_saved_pc): Deal with frameless signals.
1752 (i386_saved_pc_after_call): Make sure the correct value is
1753 returned just after entry into a sigtramp.
1754 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
1755 i386fbsd4_sc_sp_offset): New variables.
1756 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
1757 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
1758 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
1759 similiar to what we already did for sc_pc_offset.
1760 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
1761 tdep->sc_sp_offset.
1762
1763 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
1764
1765 2002-07-02 Michal Ludvig <mludvig@suse.cz>
1766
1767 * config/i386/tm-x86-64linux.h: New.
1768 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
1769 definitions.
1770 * config/i386/nm-x86-64.h: Rename to ...
1771 * config/i386/nm-x86-64linux.h: ... this one.
1772 * config/i386/x86-64linux.mh: Reflect the above change.
1773
1774 2002-07-01 Mark Kettenis <kettenis@gnu.org>
1775
1776 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
1777 with sigcontext_addr. Add sc_sp_offset.
1778 (i386bsd_sigtramp_saved_pc): Remove prototype.
1779 (i386bsd_sicontext_addr): Add prototype.
1780 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
1781 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
1782 (i386_svr4_sigtramp_saved_pc): Removed.
1783 (i386_svr4_sigcontext_addr): New function.
1784 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
1785 Initialize tdep->sigcontext_addr instead. Initialize
1786 tdep->sc_pc_offset and tdep->sc_sp_offset.
1787 (i386_gdbarch_init): Likewise.
1788 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
1789 any more.
1790 (i386bsd_sigtramp_saved_pc): Remove function.
1791 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
1792 Initialize tdep->sigcontext_addr instead. Initialize
1793 tdep->sc_pc_offset.
1794 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
1795 of tdep->sigtramp_saved_pc.
1796 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
1797 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
1798 instead.
1799
1800 * i386-tdep.c (i386_frameless_function_invocation,
1801 i386_frame_num_args, i386_frame_init_saved_regs,
1802 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
1803 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
1804 i386_extract_return_value, i386_store_return_value,
1805 i386_extract_struct_value_address, i386_register_virtual_type,
1806 i386_register_convertible, i386_register_convert_to_virtual,
1807 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
1808 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
1809 static.
1810
1811 2002-07-01 Mark Kettenis <kettenis@gnu.org>
1812
1813 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
1814
1815 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
1816 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
1817 this macro. Include "value.h".
1818
1819 2002-06-30 Aidan Skinner <aidan@velvet.net>
1820
1821 * ada-exp.tab.c: remove as it's a generated file
1822 * ada-lex.c: remove as it's a generated file
1823
1824 2002-06-30 Mark Kettenis <kettenis@gnu.org>
1825
1826 * config/i386/tm-i386.h (struct frame_info, struct
1827 frame_saved_regs, struct value, struct type): Remove forward
1828 declarations.
1829
1830 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
1831 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
1832 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
1833 (FILL_FPXREGSET): Define.
1834
1835 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
1836
1837 * configure.tgt (i[3456]86-*-openbsd*): Fold into
1838 i[3456]86-*-netbsd* case.
1839 * config/i386/tm-obsd.h: Removed.
1840 * config/i386/obsd.mt: Removed.
1841 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
1842 core-aout.o.
1843 (MH_CFLAGS): Add -DYYDEBUG=0.
1844
1845 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
1846 i386nbsd_sc_pc_offset on OpenBSD too.
1847
1848 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
1849 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
1850 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
1851 define.
1852 * i386bsd-tdep.c: Include "arch-utils.h".
1853 (i386bsd_aout_in_solib_call_trampoline): New function.
1854 (i386bsd_init_abi): Set in_solib_call_trampoline to
1855 i386bsd_aout_in_solib_call_trampoline.
1856 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
1857 in_solib_call_trampoline to generic_in_solib_call_trampoline.
1858
1859 2002-06-28 Andrew Cagney <ac131313@redhat.com>
1860
1861 * macrotab.h: Do not include "obstack.h" or "bcache.h".
1862 (struct obstack, struct bcache): Add opaque declarations.
1863 * Makefile.in (macrotab_h): Update
1864
1865 2002-06-28 Andrew Cagney <ac131313@redhat.com>
1866
1867 * blockframe.c (generic_find_dummy_frame): Change return type to
1868 ``struct regcache''.
1869 (struct dummy_frame): Replace field ``registers'' with regcache, a
1870 struct regcache object.
1871 (generic_find_dummy_frame): Update.
1872 (generic_push_dummy_frame): Update. Use regcache_xfree,
1873 regcache_xmalloc and regcache_cpy.
1874 (generic_pop_dummy_frame): Update. Use regcache_cpy and
1875 regcache_xfree.
1876 (deprecated_generic_find_dummy_frame): Update.
1877 (generic_read_register_dummy): Update. Use
1878 regcache_read_as_address.
1879 (generic_call_dummy_register_unwind): Update. Use regcache_read.
1880 (generic_get_saved_register): Update. Use regcache_read.
1881
1882 2002-06-28 Andrew Cagney <ac131313@redhat.com>
1883
1884 * Makefile.in (objfiles_h): Add $(bcache_h).
1885 * objfiles.h: Include "bcache.h".
1886
1887 * Makefile.in (symtab_h): Remove $(bcache_h).
1888 * symtab.h: Do not include "bcache.h".
1889
1890 2002-06-28 Andrew Cagney <ac131313@redhat.com>
1891
1892 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
1893 generic_func_frame_chain_valid.
1894
1895 2002-06-28 David O'Brien <obrien@FreeBSD.org>
1896
1897 * config/i386/nm-fbsd.h: Include <sys/param.h>.
1898 * config/i386/tm-fbsd.h: Likewise.
1899
1900 2002-06-28 Andrew Cagney <ac131313@redhat.com>
1901
1902 * rs6000-tdep.c (rs6000_gdbarch_init): Use
1903 generic_unwind_get_saved_register.
1904
1905 2002-06-27 Andrew Cagney <ac131313@redhat.com>
1906
1907 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
1908 * regcache.c (supply_register): Add missing argument to
1909 register_buffer call.
1910
1911 2002-06-27 Andrew Cagney <ac131313@redhat.com>
1912
1913 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
1914 Solaris /bin/grep does not not like it. From Peter Schauer.
1915
1916 2002-06-26 Tom Tromey <tromey@redhat.com>
1917
1918 * command.h (add_setshow_cmd): Declare.
1919 (add_setshow_cmd_full): Declare.
1920 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
1921 returns void. Use add_setshow_cmd_full.
1922 (add_setshow_cmd_full): New function.
1923 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
1924 (add_setshow_boolean_cmd): Likewise.
1925
1926 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
1927
1928 * config/vax/tm-vax.h: Protect from multiple inclusion.
1929 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
1930 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
1931 * config/vax/tm-vaxbsd.h: ...here. New file.
1932 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
1933
1934 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
1935
1936 * config/vax/tm-vax.h (BREAKPOINT): Remove.
1937 (BELIEVE_PCC_PROMOTION): Remove.
1938 (AP_REGNUM): Move to...
1939 * config/vax/nm-vax.h: ...here.
1940 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
1941 (vax_breakpoint_from_pc): New function.
1942 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
1943 and gdbarch_believe_pcc_promotion.
1944
1945 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
1946
1947 * Makefile.in (vax_tdep_h): Define.
1948 (vax-tdep.o): Use $(vax_tdep_h).
1949 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
1950 (vax_dump_tdep): New function.
1951 (_initialize_vax_tdep): Register vax_dump_tdep.
1952 * vax-tdep.h: Include osabi.h.
1953 (struct gdbarch_tdep): New.
1954
1955 2002-06-26 Andrew Cagney <cagney@redhat.com>
1956
1957 * frame.h (deprecated_generic_find_dummy_frame): Rename
1958 generic_find_dummy_frame.
1959 * blockframe.c (generic_find_dummy_frame): Make static.
1960 (deprecated_generic_find_dummy_frame): New function.
1961 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
1962 generic_find_dummy_frame with deprecated_find_dummy_frame.
1963 (sh64_nofp_frame_init_saved_regs): Ditto.
1964 (sh_fp_frame_init_saved_regs): Ditto.
1965 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
1966 (s390_frame_chain): Ditto.
1967 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
1968
1969 2002-06-26 Grace Sainsbury <graces@redhat.com>
1970
1971 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
1972 gdbarch vector are at the top.
1973 (NUM_REGS): Remove.
1974 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
1975 (FRAME_ARGS_ADDRESS): Remove.
1976 (FRAME_LOCALS_ADDRESS): Remove.
1977 (FRAME_NUM_ARGS): Remove.
1978 (FRAME_ARGS_SKIP): Remove.
1979 * m68k-tdep.c (enum): Add eumeration of special register numbers.
1980 (m68k_gdbarch_init): Add gdbarch initializations for macros
1981 undefined in tm-m68k.h
1982
1983 2002-06-26 Grace Sainsbury <graces@redhat.com>
1984
1985 * monitor.h: Add the function regname to monitor_ops
1986 structure. This way NUM_REGS does not have to be a constant.
1987 * monitor.c (monitor_fetch_register): Added support for regname
1988 function. The function is called if the array regnames is NULL.
1989 (monitor_store_register): Same.
1990 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
1991 regnames array.
1992 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
1993 cpu32bug_cmds.regname to point to new function.
1994 * abug-rom.c (abug_regname): Same as above.
1995 (init_abug_cmds): Same.
1996 * dbug-rom.c (dbug_regname): Same as above.
1997 (init_dbug_cmds): Same.
1998 * remote-est.c (est_regname): Same.
1999 (init_est_cmds): Same.
2000 * rom68k-rom.c (rom68k_regname): Same.
2001 (init_rom68k_cmds): Same.
2002
2003 2002-06-25 Tom Tromey <tromey@redhat.com>
2004
2005 * breakpoint.c (delete_command): Don't repeat `delete' commands.
2006
2007 2002-06-25 Andrew Cagney <cagney@redhat.com>
2008
2009 * infrun.c (stop_registers): Change variable's type to ``struct
2010 regcache'''.
2011 (xmalloc_inferior_status): Delete function.
2012 (free_inferior_status): Delete function.
2013 (normal_stop): Use regcache_cpy.
2014 (struct inferior_status): Change type of fields ``stop_registers''
2015 and ``registers'' to ``struct regcache''.
2016 (write_inferior_status_register): Use regcache_write.
2017 (save_inferior_status): Instead of calling
2018 xmalloc_inferior_status, allocate the inf_status buffer directly.
2019 Use regcache_dup_no_passthrough and regcache_dup to save the
2020 buffers.
2021 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
2022 Replace the stop_registers regcache instead of overriding it. Use
2023 regcache_xfree. Instead of calling free_inferior_status, xfree
2024 the buffer directly.
2025 (discard_inferior_status): Use regcache_xfree. Instead of calling
2026 free_inferior_status, xfree the buffer directly.
2027 (build_infrun): Use regcache_xmalloc.
2028 (_initialize_infrun): Delete redundant call to build_infrun.
2029
2030 * Makefile.in (infcmd.o): Add $(regcache_h).
2031
2032 * infcmd.c: Include "regcache.h".
2033 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
2034 obtain the address of `stop_registers' register buffer.
2035 (print_return_value): Ditto.
2036
2037 * inferior.h (struct regcache): Add opaque declaration.
2038 (stop_registers): Change variable's declared type to ``struct
2039 regcache''.
2040
2041 2002-06-24 Tom Tromey <tromey@redhat.com>
2042
2043 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
2044 * target.c (initialize_targets): Fixed typo in
2045 trust-readonly-sections `show' documentation.
2046
2047 * main.c: Marked all strings with _().
2048
2049 2002-06-24 Don Howard <dhoward@redhat.com>
2050
2051 * memattr.c (create_mem_region): Treat hi == 0 as a special case
2052 that means max CORE_ADDR+1.
2053 (lookup_mem_region): Ditto.
2054 (mem_info_command): Ditto.
2055
2056 2002-06-24 Grace Sainsbury <graces@redhat.com>
2057
2058 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
2059 (REGISTER_BYTES_OK): Remove.
2060 (REGISTER_BYTES): Remove.
2061 (STORE_STRUCT_RETURN): Remove.
2062 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
2063 (STORE_RETURN_VALUE): Remove.
2064 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
2065 (FRAME_CHAIN): Remove.
2066 (FRAMELESS_FUNCTION_INVOCATION): Remove.
2067 (FRAME_SAVED_PC): Remove.
2068 * m68k-tdep.c (m68k_register_bytes_ok):Add.
2069 (m68k_store_struct_return): Add.
2070 (m68k_deprecated_extract_return_value): Add.
2071 (m68k_deprecated_extract_struct_value_address): Add.
2072 (m68k_store_return_value): Add.
2073 (m68k_frame_chain): Add.
2074 (m68k_frameless_function_invocation): Add.
2075 (m68k_frame_saved_pc): Add.
2076 (m68k_gdbarch_init): added set_gdbarch calls for new
2077 functions and deleted macros.
2078
2079 2002-06-23 Tom Tromey <tromey@redhat.com>
2080
2081 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
2082 (ALLDEPFILES): Likewise.
2083 (udiheaders): Removed.
2084 (udip2soc.o): Likewise.
2085 (udi2go32.o): Likewise.
2086 (udr.o): Likewise.
2087 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
2088
2089 2002-06-22 Andrew Cagney <ac131313@redhat.com>
2090
2091 * infrun.c (_initialize_infrun): Delete unnecessary call to
2092 build_infrun.
2093
2094 * regcache.h: Update comments describing the regcache_cpy family
2095 of functions.
2096 (regcache_save, regcache_restore): Delete declaration.
2097 (regcache_save_no_passthrough): Delete declaration.
2098 (regcache_restore_no_passthrough): Delete declaration.
2099 * regcache.c (regcache_save): Delete function.
2100 (regcache_save_no_passthrough): Delete function.
2101 (regcache_restore): Delete function.
2102 (regcache_restore_no_passthrough): Delete function.
2103
2104 2002-06-21 Andrew Cagney <ac131313@redhat.com>
2105
2106 * config/m68k/tm-m68k.h: Fix typo.
2107 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
2108 (m68k_frame_init_saved_regs): Declare.
2109
2110 2002-06-21 Jim Blandy <jimb@redhat.com>
2111
2112 Remove some vestiges of Harris 88k support.
2113 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
2114 register numbering quirk.
2115 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
2116 odd symbols occurring in Harris 88k ELF targets.
2117
2118 2002-06-21 Tom Tromey <tromey@redhat.com>
2119
2120 * gdb_locale.h: New file.
2121 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
2122 (defs_h): Added gdb_locale.h.
2123 * configure, config.in: Rebuilt.
2124 * configure.in (PACKAGE): Define.
2125 * defs.h: Include gdb_locale.h.
2126 * main.c (captured_main): Call setlocale, bindtextdomain,
2127 textdomain.
2128
2129 2002-06-21 Dave Brolley <brolley@redhat.com>
2130
2131 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
2132 * config/frv/frv.mt: New file.
2133 * config/frv/tm-frv.h: New file.
2134 * configure.tgt: Support frv-*-*.
2135 * Makefile.in (frv-tdep.o): New target.
2136 * frv-tdep.c: New file.
2137 * NEWS: Mention frv.
2138
2139 2002-06-21 Dave Brolley <brolley@redhat.com>
2140
2141 * MAINTAINERS: Add self to "Write After Approval" list.
2142
2143 2002-06-21 Grace Sainsbury <graces@redhat.com>
2144
2145 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
2146 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
2147 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
2148 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
2149 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
2150
2151 * m68k-tdep.c: Include arch-utils.h
2152 (m68k_register_raw_size): Add.
2153 (m68k_register_virtual_size): Add.
2154 (m68k_register_virtual_type): Add.
2155 (m68k_register_name): Add.
2156 (m68k_stack_align): Add.
2157 (m68k_register_byte): Add.
2158 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
2159 tm-m68k.h.
2160
2161 2002-06-21 Grace Sainsbury <graces@redhat.com>
2162
2163 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
2164 m68k_find_saved_regs.
2165 (m68k_pop_frame): Removed saved_regs structure, and replaced
2166 references to it with frame->saved_regs.
2167 (m68k_gdbarch_init): Added function calls to initialize the
2168 gdbarch structure.
2169 (m68k_fix_call_dummy): Add.
2170 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
2171 (CALL_DUMMY): Remove.
2172 (CALL_DUMMY_LENGTH): Remove.
2173 (CALL_DUMMY_START_OFFSET): Remove.
2174 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
2175 (FIX_CALL_DUMMY): Remove.
2176 (PUSH_DUMMY_FRAME): Remove.
2177 (POP_FRAME): Remove.
2178
2179 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
2180
2181 * parse.c (parse_fprintf): New function used to avoid calls to
2182 fprintf in bison parser generated debug code.
2183 * parser-defs.h: Declaration of new parse_fprintf function.
2184 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
2185 Set YYDEBUG to 1 by default.
2186 Set YYFPRINTF as parse_fprintf.
2187
2188 2002-06-21 Michal Ludvig <mludvig@suse.cz>
2189
2190 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
2191 encoding anymore.
2192 (pointer_encoding, enum ptr_encoding): New.
2193 (execute_cfa_program): Take care about pointer encoding.
2194 (dwarf2_build_frame_info): Only call parse_frame_info for
2195 .debug_frame and .eh_frame.
2196 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
2197 fixed augmentation handling, added relative addressing,
2198 ignore duplicate FDEs. Added comments.
2199 * dwarf2cfi.c: Reindented.
2200
2201 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
2202
2203 * event-top.c (command_handler): Don't use space_at_cmd_start
2204 unless there is sbrk() on the host. Assign time and space data
2205 to union fields of the appropriate length.
2206
2207 2002-06-20 Michal Ludvig <mludvig@suse.cz>
2208
2209 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
2210 x86_64_register_name. Return type changed to 'const char *'.
2211 (x86_64_register_name2nr): Rename to x86_64_register_number.
2212 (x86_64_gdbarch_init): Update to reflect the change.
2213 * x86-64-tdep.h: Ditto.
2214 * x86-64-linux-nat.c (x86_64_fxsave_offset)
2215 (supply_fpregset): Ditto.
2216
2217 2002-06-19 Andrew Cagney <cagney@redhat.com>
2218
2219 * regcache.h: Update copyright.
2220 (struct regcache, struct gdbarch): Add opaque declarations.
2221 (current_regcache): Declare global variable.
2222 (regcache_read, regcache_write): Add gdbarch parameter.
2223 (regcache_save, regcache_save_no_passthrough)
2224 (regcache_restore, regcache_restore_no_passthrough)
2225 (regcache_dup, regcache_dup_no_passthrough)
2226 (regcache_cpy, regcache_cpy_no_passthrough)
2227 (deprecated_grub_regcache_for_registers)
2228 (deprecated_grub_regcache_for_register_valid)
2229 (regcache_valid_p): Add function declarations.
2230
2231 * regcache.c: Update copyright.
2232 (regcache_descr_handle): New global variable.
2233 (struct regcache_descr): Define.
2234 (init_legacy_regcache_descr, init_regcache_descr): New functions.
2235 (regcache_descr, xfree_regcache_descr): New functions.
2236 (struct regcache): Define.
2237 (regcache_xmalloc, regcache_xfree): New functions.
2238 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
2239 (regcache_dup, regcache_dup_no_passthrough): New functions.
2240 (regcache_valid_p, regcache_read_as_address): New functions.
2241 (deprecated_grub_regcache_for_registers): New function.
2242 (deprecated_grub_regcache_for_register_valid): New function.
2243 (current_regcache): New global variable.
2244 (register_buffer): Add regcache parameter. Update calls.
2245 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
2246 (read_register_gen, write_register_gen): Update register_buffer
2247 call. Test for legacy_p instead of gdbarch_register_read_p or
2248 gdbarch_register_write_p.
2249 (regcache_collect): Update register_buffer call.
2250 (build_regcache): Rewrite. Use deprecated grub functions.
2251 (regcache_save, regcache_save_no_passthrough): New functions.
2252 (regcache_restore, regcache_restore_no_passthrough): New
2253 functions.
2254 (_initialize_regcache): Create the regcache_data_handle. Swap
2255 current_regcache global variable.
2256
2257 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
2258 parameter to regcache_read and regcache_write calls.
2259 (sh4_register_read): Ditto.
2260 (sh64_pseudo_register_read): Ditto.
2261 (sh64_register_read): Ditto.
2262 (sh_pseudo_register_write): Ditto.
2263 (sh4_register_write): Ditto.
2264 (sh64_pseudo_register_write): Ditto.
2265 (sh64_register_write): Ditto.
2266
2267 * defs.h (XCALLOC): Define.
2268
2269 2002-06-19 Grace Sainsbury <graces@redhat.com>
2270
2271 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
2272 * m68k-tdep.c (m68k_gdbarch_init): Added.
2273 (m68k_dump_tdep): Added.
2274
2275 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
2276
2277 * ada-lang.c (fill_in_ada_prototype): Update comment.
2278
2279 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
2280
2281 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
2282 MIPS_ABI_LAST.
2283 (mips_abi_string, mips_abi_strings): New.
2284 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
2285 (mips_gdbarch_init): Set tdep->found_abi. Don't set
2286 tdep->mips_abi_string. Honor mips_abi_string. Default to
2287 O32 if no ABI is found.
2288 (mips_dump_tdep): Use mips_abi_strings.
2289 (mips_abi_update): New function.
2290 (_initialize_mips_tdep): Initialize mips_abi_string. Add
2291 ``set mips abi'' and ``show mips abi''. Check the size of
2292 mips_abi_strings.
2293
2294 2002-06-19 Andrew Cagney <cagney@redhat.com>
2295
2296 * i386-linux-tdep.c (i386_linux_register_name): Make return type
2297 constant.
2298
2299 2002-06-18 Joel Brobecker <brobecker@gnat.com>
2300
2301 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
2302 current frame using only the first stack size adjustment. All
2303 subsequent size adjustments are not considered to be part of
2304 the "static" part of the current frame.
2305 Compute the address of the saved registers relative to the
2306 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
2307 in use in this frame.
2308
2309 2002-06-18 Don Howard <dhoward@redhat.com>
2310
2311 * valops.c (value_ind): Use value_at_lazy() when dereferencing
2312 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
2313 suggesting this solution.
2314
2315 2002-06-18 Andrew Cagney <ac131313@redhat.com>
2316
2317 * config/romp/xm-rtbsd.h: Delete file.
2318 * config/romp/rtbsd.mh: Delete file.
2319
2320 2002-06-18 Keith Seitz <keiths@redhat.com>
2321
2322 * breakpoint.c (condition_command): Post breakpoint_modify
2323 when a condition is added to an existing breakpoint.
2324 (commands_command): Likewise for commands.
2325 (set_ignore_count): Likewise for ignore counts.
2326 If no tty, do not simply return, still need to send event
2327 notification.
2328 (ignore_command): Only print a newline if the command came
2329 from a tty.
2330 Don't call breakpoints_changed, since this is now properly
2331 handled by set_ignore_count.
2332
2333 2002-06-18 Andrew Cagney <cagney@redhat.com>
2334
2335 * MAINTAINERS: Note that cris-elf target can be compiled with
2336 -Werror.
2337 * cris-tdep.c (cris_register_name): Make return type constant.
2338 (cris_breakpoint_from_pc): Ditto.
2339
2340 2002-06-18 Michal Ludvig <mludvig@suse.cz>
2341
2342 * frame.h (struct frame_info): Change type of context to
2343 'struct context'.
2344
2345 2002-06-17 Andrew Cagney <cagney@redhat.com>
2346
2347 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
2348 pointer.
2349 * gdbarch.h, gdbarch.c: Regenerate.
2350 * config/mips/tm-mips.h (mips_register_name): Update.
2351 * i386-tdep.h (i386_register_name): Update.
2352 * mips-tdep.c (mips_register_name): Update
2353 * alpha-tdep.c (alpha_register_name): Update.
2354 * arch-utils.c (legacy_register_name): Update.
2355 * arch-utils.h (legacy_register_name): Update.
2356 * avr-tdep.c (avr_register_name): Update.
2357 * ia64-tdep.c (ia64_register_name): Update.
2358 * i386-tdep.c (i386_register_name): Update.
2359 * sparc-tdep.c (sparc32_register_name): Update.
2360 (sparc64_register_name): Update.
2361 (sparclite_register_name): Update.
2362 (sparclet_register_name): Update.
2363 * sh-tdep.c (sh_generic_register_name): Update.
2364 (sh_sh_register_name): Update.
2365 (sh_sh3_register_name): Update.
2366 (sh_sh3e_register_name): Update.
2367 (sh_sh_dsp_register_name): Update.
2368 (sh_sh3_dsp_register_name): Update.
2369 (sh_sh4_register_name): Update.
2370 (sh_sh64_register_name): Update.
2371 * s390-tdep.c (s390_register_name): Update.
2372 * rs6000-tdep.c (rs6000_register_name): Update.
2373 * ns32k-tdep.c (ns32k_register_name_32082): Update.
2374 (ns32k_register_name_32382): Update.
2375 * d10v-tdep.c (d10v_ts2_register_name): Update.
2376 (d10v_ts3_register_name): Update.
2377 * xstormy16-tdep.c (xstormy16_register_name): Update.
2378 * vax-tdep.c (vax_register_name): Update.
2379 * v850-tdep.c (v850_register_name): Update.
2380 * m68hc11-tdep.c (m68hc11_register_name): Update.
2381 * mn10300-tdep.c (mn10300_generic_register_name): Update.
2382 (am33_register_name): Update.
2383
2384 2002-06-17 Grace Sainsbury <graces@redhat.com>
2385
2386 * m68k-tdep.c: Reindented.
2387
2388 2002-06-17 Andrew Cagney <ac131313@redhat.com>
2389
2390 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
2391 list of predefined types.
2392
2393 2002-06-16 Mark Kettenis <kettenis@gnu.org>
2394
2395 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
2396 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
2397 REGISTER_CONVERT_TO_RAW): Remove defines.
2398 (i386_register_virtual_type, i386_register_convertible,
2399 i386_register_convert_to_virtual, i386_register_convert_to_raw):
2400 Remove prototypes.
2401 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
2402 macros mentioned above.
2403
2404 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
2405 (i386lynx_saved_pc_after_call): Remove prototype.
2406 * i386ly-tdep.c: Include "i386-tdep.h".
2407 (i386lynx_saved_pc_after_call): Make static. Use
2408 read_memory_nobpt instead of read_memory. Use
2409 read_memory_unsigned_integer instead of read_memory_integer.
2410 (i386lynx_init_abi): New function.
2411 (i386lynx_coff_osabi_sniffer): New function.
2412 (_initialize_i386bsd_tdep): New function.
2413
2414 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
2415 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
2416 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
2417 (i386_fix_call_dummy): Remove prototype.
2418 * i386-tdep.c (i386_call_dummy_words): New variable.
2419 (i386_gdbarch_init): Adjust for removal of the
2420 macros mentioned above.
2421
2422 2002-06-15 Andrew Cagney <ac131313@redhat.com>
2423
2424 * command.h (add_setshow_auto_boolean_cmd): Replace
2425 add_set_auto_boolean_cmd.
2426 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
2427 add_set_auto_boolean_cmd.
2428 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
2429 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
2430 mask-address'' command.
2431 (show_mask_address): Add cmd parameter.
2432 * remote.c (add_packet_config_cmd): Update. Change type of
2433 set_func and show_func to cmd_sfunc_ftype.
2434 (_initialize_remote): Update `set remote Z-packet'
2435 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
2436 (show_remote_protocol_e_packet_cmd): Ditto.
2437 (show_remote_protocol_E_packet_cmd): Ditto.
2438 (show_remote_protocol_P_packet_cmd): Ditto.
2439 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
2440 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
2441 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
2442 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
2443 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
2444 (show_remote_protocol_Z_packet_cmd): Ditto.
2445 (show_remote_protocol_binary_download_cmd): Ditto.
2446 (show_remote_cmd): Pass NULL to all of above.
2447
2448 2002-06-15 Mark Kettenis <kettenis@gnu.org>
2449
2450 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
2451 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
2452 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
2453 POP_FRAME): Remove defines.
2454 (i386_push_arguments, i386_store_struct_return,
2455 i386_extract_return_value, i386_store_return_value,
2456 i386_extract_struct_value_address, i386_push_dummy_frame,
2457 i386_pop_frame): Renove prototypes.
2458 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
2459 macros mentioned above.
2460
2461 2002-06-15 Andrew Cagney <ac131313@redhat.com>
2462
2463 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
2464 add_set_boolean_cmd.
2465 (add_setshow_cmd): New function.
2466 * command.h (add_setshow_boolean_cmd): Replace
2467 add_set_boolean_cmd.
2468 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
2469 and ``set rdiromatzero''.
2470 * maint.c (_initialize_maint_cmds): Update commented out code.
2471 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
2472 * target.c (initialize_targets): Update `set
2473 trust-readonly-sections'.
2474 * remote.c (_initialize_remote): Update `set remotebreak'.
2475
2476 2002-06-15 Mark Kettenis <kettenis@gnu.org>
2477
2478 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
2479 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
2480 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
2481 fit into multi-arch framework.
2482 (i386_breakpoint_from_pc): New function.
2483 (i386_gdbarch_init): Adjust for removal of the macros mentioned
2484 above.
2485
2486 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
2487 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
2488 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
2489 (i386_frameless_function_invocation, i386_frame_num_args,
2490 i386_frame_init_saved_regs): Remove prototypes.
2491 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
2492 macros mentioned above.
2493
2494 2002-06-15 Andrew Cagney <ac131313@redhat.com>
2495
2496 * cli/cli-decode.c (set_cmd_cfunc): Update.
2497 (set_cmd_sfunc): Update.
2498 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
2499 (set_cmd_sfunc, set_cmd_cfunc): Update.
2500 * cli/cli-decode.h: Update.
2501
2502 2002-06-15 Mark Kettenis <kettenis@gnu.org>
2503
2504 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
2505 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
2506
2507 2002-06-15 Andrew Cagney <ac131313@redhat.com>
2508
2509 * defs.h (auto_boolean): Declare enum.
2510 * command.h (cmd_auto_boolean): Delete enum.
2511 * mips-tdep.c (mask_address_var): Update.
2512 (mips_mask_address_p): Update.
2513 (show_mask_address): Update.
2514 * remote.c (struct packet_config): Update.
2515 (update_packet_config): Update.
2516 (show_packet_config_cmd): Update.
2517 (packet_ok): Update.
2518 (add_packet_config_cmd): Update.
2519 (_initialize_remote):
2520 * command.h: Update.
2521 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
2522 (do_setshow_command): Update.
2523 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
2524 * cli/cli-decode.h: Update.
2525
2526 2002-06-15 Mark Kettenis <kettenis@gnu.org>
2527
2528 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
2529 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
2530 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
2531 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
2532 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
2533 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
2534
2535 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
2536 list of DJGPP COFF targets.
2537
2538 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
2539 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
2540 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
2541 (FP0_REGNUM): Remove define.
2542 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
2543 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
2544 (i386_register_virtual_size): Remove protoype.
2545 * i386-tdep.c (i386_register_virtual_size): Removed.
2546 (i386_extract_return_value, i386_store_return_value): Use
2547 FP0_REGNUM instead of NUM_FREGS to determine whether the
2548 floating-point registers are available.
2549 (i386_gdbarch_init): Tweak FIXME about FPU registers.
2550 Adjust for removal of macros mentioned above.
2551
2552 2002-06-15 Mark Kettenis <kettenis@gnu.org>
2553
2554 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
2555 comments.
2556 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
2557 Remove prototypes.
2558 (supply_gregset, fill_gregset): Remove use of register keyword and
2559 remove declaration for regmap. Use I386_NUM_GREGS instead of
2560 NUM_REGS and NUM_FREGS.
2561 (FPREGSET_FSAVE_OFFSET): Remove.
2562 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
2563 NUM_FREGS to determine whether the floating-point registers are
2564 available.
2565
2566 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
2567 gnu_store_registers): Replace usage of NUM_GREGS with
2568 I386_NUM_GREGS.
2569
2570 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
2571 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
2572 usage of NUM_GREGS with I386_NUM_GREGS.
2573
2574 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
2575
2576 * i386bsd-nat.c: Include "i386-tdep.h".
2577 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
2578 I386_NUM_GREGS.
2579
2580 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
2581 and associated comment. They no longer make any sense, since we
2582 don't use this file anymore on Linux.
2583
2584 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
2585 * i386-tdep.c (i386_register_offset, i386_register_size): Use
2586 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
2587 elements in these arrays.
2588 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
2589 MAX_NUM_REGS.
2590
2591 2002-06-15 Mark Kettenis <kettenis@gnu.org>
2592
2593 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
2594 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
2595
2596 2002-06-14 Andrew Cagney <cagney@redhat.com>
2597
2598 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
2599 EXTRACT_RETURN_VALUE.
2600 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
2601 EXTRACT_STRUCT_VALUE_ADDRESS.
2602 * gdbarch.h, gdbarch.c: Regenerate.
2603
2604 * values.c (value_being_returned): Handle
2605 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
2606 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
2607
2608 * arm-linux-tdep.c (arm_linux_init_abi): Update.
2609 * arm-tdep.c (arm_gdbarch_init): Update.
2610 * avr-tdep.c (avr_gdbarch_init): Update.
2611 * cris-tdep.c (cris_gdbarch_init): Update.
2612 * d10v-tdep.c (d10v_gdbarch_init): Update.
2613 * ia64-tdep.c (ia64_gdbarch_init): Update.
2614 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2615 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2616 * s390-tdep.c (s390_gdbarch_init): Update.
2617 * sh-tdep.c (sh_gdbarch_init): Update.
2618 * s390-tdep.c (s390_gdbarch_init): Update.
2619 * sparc-tdep.c (sparc_gdbarch_init): Update.
2620 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2621 * v850-tdep.c (v850_gdbarch_init): Update.
2622 * vax-tdep.c (vax_gdbarch_init): Update.
2623 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
2624 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2625
2626 * config/arc/tm-arc.h: Update.
2627 * config/d30v/tm-d30v.h: Update.
2628 * config/fr30/tm-fr30.h: Update.
2629 * config/h8300/tm-h8300.h: Update.
2630 * config/h8500/tm-h8500.h: Update.
2631 * config/i386/tm-i386.h: Update.
2632 * config/i386/tm-ptx.h: Update.
2633 * config/i386/tm-symmetry.h: Update.
2634 * config/i960/tm-i960.h: Update.
2635 * config/m32r/tm-m32r.h: Update.
2636 * config/m68k/tm-delta68.h: Update.
2637 * config/m68k/tm-linux.h: Update.
2638 * config/m68k/tm-m68k.h: Update.
2639 * config/m88k/tm-m88k.h: Update.
2640 * config/mcore/tm-mcore.h: Update.
2641 * config/mips/tm-mips.h: Update.
2642 * config/mn10200/tm-mn10200.h: Update.
2643 * config/pa/tm-hppa.h: Update.
2644 * config/pa/tm-hppa64.h: Update.
2645 * config/sparc/tm-sp64.h: Update.
2646 * config/sparc/tm-sparc.h: Update.
2647 * config/sparc/tm-sparclet.h: Update.
2648 * config/z8k/tm-z8k.h: Update.
2649
2650 2002-06-14 Andrew Cagney <cagney@redhat.com>
2651
2652 * Makefile.in (i386_linux_tdep_h): Define.
2653 (i386_tdep_h, i387_tdep_h): Define.
2654 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
2655 $(i386_tdep_h) and $(i387_tdep_h).
2656 * i386-linux-nat.c: Include "i386-linux-tdep.h".
2657
2658 2002-06-14 Mark Kettenis <kettenis@gnu.org>
2659
2660 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
2661 Already covered by the default.
2662
2663 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
2664 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
2665 (i386_gdbarch_init): Initialize long_double_format and long_double
2666 bit.
2667
2668 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
2669 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
2670 Move these to ...
2671 * config/i386/i386sol2.mh: ... here.
2672 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
2673 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
2674 (SIGCONTEXT_PC_OFFSET): Remove define.
2675 (IN_SIGTRAMP): Remove define.
2676 * i386-sol2-tdep.c: New file.
2677
2678 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
2679 * config/i386/tm-i386nw.h: Removed.
2680
2681 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
2682 USE_STRUCT_CONVENTION): Remove defines.
2683 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
2684 (get_longjmp_target): Remove prototype.
2685 (IN_SIGTRAMP): Remove define.
2686 (i386bsd_in_sigtramp): Remove prototype.
2687 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
2688 function. Update comment accordingly
2689 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
2690 (FRAME_SAVED_PC): Remove define.
2691 (i386bsd_frame_saved_pc): Remove prototype.
2692 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
2693 GET_LONGJMP_TARGET): Remove defines.
2694 (get_longjmp_target): Remove prototype.
2695 (IN_SIGTRAMP): Remove define.
2696 (i386bsd_in_sigtramp): Remove prototype.
2697 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
2698 function. Update comment accordingly
2699 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
2700 (FRAME_SAVED_PC): Remove define.
2701 (i386bsd_frame_saved_pc): Remove prototype.
2702 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
2703 Remove prototype.
2704 (USE_STRUCT_CONVENTION): Remove prototype.
2705 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
2706 declaration.
2707 (_initialize_i386bsd_nat): Revise logic to determine some
2708 constants at compile time when compiling a native GDB. Warn if
2709 things don't match up with what we expect.
2710 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
2711 Remove variables.
2712 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
2713 to use date stored in `struct gdbarch_tdep'.
2714 (i386bsd_sigcontext_offset): Remove varaible.
2715 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
2716 stored in `struct gdbarch_tdep'.
2717 (i386bsd_frame_saved_pc): Make static.
2718 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
2719 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
2720 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
2721 i386fbsd4_sc_pc_offset): New variables.
2722 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
2723 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
2724 functions.
2725 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
2726 functions.
2727 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
2728 Modify the value of i386fbsd_sigtramp_start and
2729 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
2730 i386fbsd_sigtramp_end.
2731 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
2732 function.
2733
2734 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
2735 define to i386-linux-tdep.h.
2736 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
2737 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
2738 defines.
2739 (i386_linux_register_name, i386_linux_register_byte,
2740 i386_linux_register_raw_size): Remove prototypes.
2741 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
2742 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
2743 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
2744 TARGET_WRITE_PC): Remove defines.
2745 (i386_linux_in_sigtramp, i386_linux_frame_chain,
2746 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
2747 i386_linux_write_pc): Remove prototypes.
2748 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
2749 (get_longjmp_target): Remove prototype.
2750 * i386-linux-tdep.h: New file.
2751 * i386-linux-nat.c: Include "i386-linux-tdep.h".
2752 * i386-linux-tdep.c: Include "i386-tdep.h" and
2753 "i386-linux-tdep.h".
2754 (i386_linux_register_name, i386_linux_register_byte,
2755 i386_linux_register_raw_size, i386_linux_in_sigtramp,
2756 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
2757 Make static.
2758 (i386_linux_init_abi): New function.
2759 (_initialize_i386_linux_tdep): New function.
2760
2761 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
2762 (i386_saved_pc_after_call): Remove prototype.
2763 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
2764 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
2765 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
2766 (i386_register_name, i386_stab_reg_to_regnum,
2767 i386_dwarf_reg_to_regnum): Remove prototypes.
2768 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
2769 SIZEOF_SSE_REGS): Remove defines.
2770 (REGISTER_BYTES): Remove define.
2771 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
2772 (i386_register_byte, i386_register_raw_size): Remove prototypes.
2773 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
2774 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
2775 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
2776 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
2777 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
2778 (get_longjmp_target): Remove prototype.
2779 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
2780 (sigtramp_saved_pc): Remove define.
2781 (i386v4_sigtramp_saved_pc): Remove prototype.
2782 * config/i386/tm-go32.h (FRAME_CHAIN,
2783 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
2784 (i386go32_frame_saved_pc): Remove prototype.
2785 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
2786 (get_longjmp_target): Remove prototype.
2787 * i386-tdep.h: Include "osabi.h".
2788 (enum i386_abi): Removed.
2789 (enum struct_return): New enum.
2790 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
2791 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
2792 sc_pc_offset members.
2793 (i386_gdbarch_register_os_abi): Remove prototype.
2794 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
2795 I386_SSE_NUM_REGS): New defines.
2796 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
2797 I386_SSE_SIZEOF_REGS): New defines.
2798 (i386_register_name, i386_register_byte, i386_register_raw_size):
2799 New prototypes.
2800 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
2801 (i386bsd_sigtramp_saved_pc): New prototype.
2802 * i386-tdep.c: Don't include "elf-bfd.h".
2803 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
2804 i386_frame_chain, i386_saved_pc_after_call): Make static.
2805 (i386_frame_saved_pc): Rewrite to call architecture dependent
2806 function to deal with signal handlers. Make static.
2807 (i386go32_frame_saved_pc): Removed.
2808 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
2809 Removed.
2810 (i386_get_longjmp_target): New function.
2811 (default_struct_convention, pcc_struct_convention,
2812 reg_struct_convention, valid_conventions, struct_convention): New
2813 variables.
2814 (i386_use_struct_convention): New function.
2815 (i386v4_sigtramp_saved_pc): Renamed to
2816 i386_svr4_sigtramp_saved_pc. Made static. Moved.
2817 (i386_pc_in_sigtramp): New function.
2818 (i386_abi_names): Removed.
2819 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
2820 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
2821 Removed.
2822 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
2823 i386_gdbarch_register_os_abi): Removed.
2824 (struct i386_abi_handler): Removed.
2825 (i386_abi_handler_list): Removed.
2826 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
2827 functions.
2828 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
2829 i386_nw_init_abi): New functions.
2830 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
2831 Use set_gdbarch_xxx() calls instead of relying on macros for a
2832 number of calls.
2833 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
2834 (_initialize_i386_tdep): Add new 'struct-convcention' command.
2835 Register the various architecture variants defined in this file.
2836
2837 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
2838
2839 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
2840 (struct main_type): Remove arg_types member. Update comments for
2841 struct field.
2842 (TYPE_ARG_TYPES): Remove.
2843 (TYPE_FN_FIELD_ARGS): Update.
2844 (smash_to_method_type): Update prototype.
2845
2846 * c-typeprint.c (cp_type_print_method_args): Take method type
2847 instead of argument list. Use new argument layout. Simplify.
2848 (c_type_print_args): Use new argument layout. Simplify.
2849 (c_type_print_base): Update call to cp_type_print_method_args.
2850 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
2851 argument; use die->type instead. Update call to
2852 smash_to_method_type.
2853 (read_structure_scope): Update call to dwarf2_add_member_fn.
2854 * gdbtypes.c (allocate_stub_method): Update comment.
2855 (smash_to_method_type): Take new NARGS and VARARGS arguments.
2856 Use new argument layout.
2857 (check_stub_method): Use new argument layout. Don't count
2858 void as an argument.
2859 (print_arg_types): Update comments. Use new argument layout.
2860 (recursive_dump_type): Don't print arg_types member.
2861 * hpread.c (hpread_read_struct_type): Use new argument layout.
2862 (fixup_class_method_type): Likewise.
2863 (hpread_type_lookup): Likewise.
2864 * stabsread.c (read_type): Update calls to read_args and
2865 smash_to_method_type.
2866 (read_args): Use new argument layout. Simplify.
2867 * valops.c (typecmp): Use new argument layout. Update parameters
2868 and comments. Simplify.
2869 (hand_function_call): Use new argument layout.
2870 (search_struct_method): Update call to typecmp.
2871 (find_overload_match): Use new argument layout.
2872
2873 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
2874
2875 * NEWS: Mention multithreaded debug support for gdbserver.
2876
2877 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
2878
2879 * MAINTAINERS: Mention NEWS.
2880
2881 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
2882
2883 * gdbserver/regcache.c: Add comment.
2884
2885 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
2886
2887 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
2888 (struct mips_objfile_private, compare_pdr_entries): New.
2889 (non_heuristic_proc_desc): Read the ".pdr" section if it
2890 is present.
2891
2892 2002-06-12 Andrew Cagney <ac131313@redhat.com>
2893
2894 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
2895 (arm_debug): New static variable.
2896 (_initialize_arm_tdep): Add ``set debug arm'' command.
2897
2898 2002-06-12 Andrew Cagney <ac131313@redhat.com>
2899
2900 * Makefile.in (sim_arm_h): Define.
2901 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
2902 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
2903 (arm_register_sim_regno): New function, map an internal REGNUM
2904 onto a simulator register number.
2905 (arm_gdbarch_init): Set register_sim_regno.
2906
2907 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
2908
2909 * MAINTAINERS: Add self.
2910
2911 2002-06-11 Jim Blandy <jimb@redhat.com>
2912
2913 * source.c (source_info): Mention whether the symtab has
2914 information about preprocessor macros.
2915
2916 Call the command `info macro', not `show macro'.
2917 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
2918 Fix error message.
2919 (_initialize_macrocmd): Register `info_macro_command' in
2920 `infolist', not `showlist'.
2921
2922 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
2923
2924 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
2925 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
2926 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
2927 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
2928 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
2929 unconditionally.
2930 (set_mipsfpu_single_command, set_mipsfpu_double_command)
2931 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
2932 (_initialize_mips_tdep): Remove dead code.
2933 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
2934 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
2935 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
2936 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
2937 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
2938 MIPS_LAST_FP_ARG_REGNUM): Remove.
2939
2940 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
2941
2942 * gdbserver/thread-db.c: New file.
2943 * gdbserver/proc-service.c: New file.
2944 * gdbserver/acinclude.m4: New file.
2945 * gdbserver/Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
2946 proc-service.o, and thread-db.o.
2947 (linux-low.o): Add USE_THREAD_DB.
2948 * gdbserver/acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
2949 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
2950 * gdbserver/aclocal.m4: Regenerated.
2951 * gdbserver/config.in: Regenerated.
2952 * gdbserver/configure: Regenerated.
2953 * gdbserver/configure.in: Check for proc_service.h, sys/procfs.h,
2954 thread_db.h, and linux/elf.h headrs.
2955 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
2956 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
2957 Check for -lthread_db and thread support.
2958 * gdbserver/configure.srv: Enable thread_db support for ARM, i386, MIPS,
2959 PowerPC, and SuperH.
2960 * gdbserver/i387-fp.c: Constify arguments.
2961 * gdbserver/i387-fp.h: Likewise.
2962 * gdbserver/inferiors.c: (struct thread_info): Renamed from
2963 `struct inferior_info'. Remove PID member. Use generic inferior
2964 list header. All uses updated.
2965 (inferiors, signal_pid): Removed.
2966 (all_threads): New variable.
2967 (get_thread): Define.
2968 (add_inferior_to_list): New function.
2969 (for_each_inferior): New function.
2970 (change_inferior_id): New function.
2971 (add_inferior): Removed.
2972 (remove_inferior): New function.
2973 (add_thread): New function.
2974 (free_one_thread): New function.
2975 (remove_thread): New function.
2976 (clear_inferiors): Use for_each_inferior and free_one_thread.
2977 (find_inferior): New function.
2978 (find_inferior_id): New function.
2979 (inferior_target_data): Update argument type.
2980 (set_inferior_target_data): Likewise.
2981 (inferior_regcache_data): Likewise.
2982 (set_inferior_regcache_data): Likewise.
2983 * gdbserver/linux-low.c (linux_bp_reinsert): Remove.
2984 (all_processes, stopping_threads, using_thrads)
2985 (struct pending_signals, debug_threads, pid_of): New.
2986 (inferior_pid): Replace with macro.
2987 (struct inferior_linux_data): Remove.
2988 (get_stop_pc, add_process): New functions.
2989 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
2990 Use add_process and add_thread.
2991 (linux_attach_lwp): New function, based on old linux_attach. Use
2992 add_process and add_thread. Set stop_expected for new threads.
2993 (linux_attach): New function.
2994 (linux_kill_one_process): New function.
2995 (linux_kill): Kill all LWPs.
2996 (linux_thread_alive): Use find_inferior_id.
2997 (check_removed_breakpoints, status_pending_p): New functions.
2998 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
2999 Update. Use WNOHANG. Wait for cloned processes also. Update process
3000 struct for the found process.
3001 (linux_wait_for_event): New function.
3002 (linux_wait): Use it. Support LWPs.
3003 (send_sigstop, wait_for_sigstop, stop_all_processes)
3004 (linux_resume_one_process, linux_continue_one_process): New functions.
3005 (linux_resume): Support LWPs.
3006 (REGISTER_RAW_SIZE): Remove.
3007 (fetch_register): Use register_size instead. Call supply_register.
3008 (usr_store_inferior_registers): Likewise. Call collect_register.
3009 Fix recursive case.
3010 (regsets_fetch_inferior_registers): Improve error message.
3011 (regsets_store_inferior_registers): Add debugging.
3012 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
3013 (unstopped_p, linux_signal_pid): New functions.
3014 (linux_target_ops): Add linux_signal_pid.
3015 (linux_init_signals): New function.
3016 (initialize_low): Call it. Initialize using_threads.
3017 * gdbserver/regcache.c (inferior_regcache_data): Add valid
3018 flag.
3019 (get_regcache): Fetch registers lazily. Add fetch argument
3020 and update all callers.
3021 (regcache_invalidate_one, regcache_invalidate): New
3022 functions.
3023 (new_register_cache): Renamed from create_register_cache.
3024 Return the new regcache.
3025 (free_register_cache): Change argument to a void *.
3026 (registers_to_string, registers_from_string): Call get_regcache
3027 with fetch flag set.
3028 (register_data): Make static. Pass fetch flag to get_regcache.
3029 (supply_register): Call get_regcache with fetch flag clear.
3030 (collect_register): Call get_regcache with fetch flag set.
3031 (collect_register_as_string): New function.
3032 * gdbserver/regcache.h: Update.
3033 * gdbserver/remote-utils.c (putpkt): Flush after debug output and use
3034 stderr.
3035 Handle input interrupts while waiting for an ACK.
3036 (input_interrupt): Use signal_pid method.
3037 (getpkt): Flush after debug output and use stderr.
3038 (outreg): Use collect_register_as_string.
3039 (new_thread_notify, dead_thread_notify): New functions.
3040 (prepare_resume_reply): Check using_threads. Set thread_from_wait
3041 and general_thread.
3042 (look_up_one_symbol): Flush after debug output.
3043 * gdbserver/server.c (step_thread, server_waiting): New variables.
3044 (start_inferior): Don't use signal_pid. Update call to mywait.
3045 (attach_inferior): Update call to mywait.
3046 (handle_query): Handle qfThreadInfo and qsThreadInfo.
3047 (main): Don't fetch/store registers explicitly. Use
3048 set_desired_inferior. Support proposed ``Hs'' packet. Update
3049 calls to mywait.
3050 * gdbserver/server.h: Update.
3051 (struct inferior_list, struct_inferior_list_entry): New.
3052 * gdbserver/target.c (set_desired_inferior): New.
3053 (write_inferior_memory): Constify.
3054 (mywait): New function.
3055 * gdbserver/target.h: Update.
3056 (struct target_ops): New signal_pid method.
3057 (mywait): Removed macro, added prototype.
3058
3059 * gdbserver/linux-low.h (regset_func): Removed.
3060 (regset_fill_func, regset_store_func): New.
3061 (enum regset_type): New.
3062 (struct regset_info): Add type field. Use new operation types.
3063 (struct linux_target_ops): stop_pc renamed to get_pc.
3064 Add decr_pc_after_break and breakpoint_at.
3065 (get_process, get_thread_proess, get_process_thread)
3066 (strut process_info, all_processes, linux_attach_lwp)
3067 (thread_db_init): New.
3068
3069 * gdbserver/linux-arm-low.c (arm_get_pc, arm_set_pc,
3070 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
3071 (the_low_target): Add new members.
3072 * gdbserver/linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
3073 (i386_store_fpxregset): Constify.
3074 (target_regsets): Add new kind identifier.
3075 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
3076 (i386_set_pc): Add debugging.
3077 (i386_breakpoint_at): New function.
3078 (the_low_target): Add new members.
3079 * gdbserver/linux-mips-low.c (mips_get_pc, mips_set_pc)
3080 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
3081 (mips_breakpoint_at): New.
3082 (the_low_target): Add new members.
3083 * gdbserver/linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
3084 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
3085 (the_low_target): Add new members.
3086 * gdbserver/linux-sh-low.c (sh_get_pc, sh_set_pc)
3087 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
3088 (the_low_target): Add new members.
3089 * gdbserver/linux-x86-64-low.c (target_regsets): Add new kind
3090 identifier.
3091
3092 2002-06-11 Michal Ludvig <mludvig@suse.cz>
3093
3094 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
3095 (unwind_tmp_obstack_free, parse_frame_info)
3096 (update_context, cfi_read_fp, cfi_write_fp)
3097 (cfi_frame_chain, cfi_init_extra_frame_info)
3098 (cfi_virtual_frame_pointer): Use the above function.
3099 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
3100
3101 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
3102
3103 * v850-tdep.c (v850_type_is_scalar): New function.
3104 (v850_use_struct_convention): Match current gcc implementation
3105 as close as possible.
3106 (v850_push_arguments): Fix stack_offset handling. Don't write
3107 struct_addr into register. This is done by v850_store_struct_return.
3108 (v850_extract_return_value): Care for structs.
3109 (v850_store_return_value): Ditto.
3110 (v850_store_struct_return): Actually write address.
3111
3112 2002-06-11 Michal Ludvig <mludvig@suse.cz>
3113
3114 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
3115 without debug information too.
3116
3117 2002-06-10 Andrew Cagney <ac131313@redhat.com>
3118
3119 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
3120 Make multi-arch pure.
3121 * gdbarch.h, gdbarch.c: Re-generate.
3122 * arm-tdep.c (arm_print_float_info): Update.
3123 * arch-utils.h (default_print_float_info): Update.
3124 * arch-utils.c (default_print_float_info): Update.
3125 * infcmd.c (float_info): Update call.
3126
3127 2002-06-10 Andrew Cagney <ac131313@redhat.com>
3128
3129 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
3130 the front of the initialize list.
3131
3132 2002-06-10 Andrew Cagney <ac131313@redhat.com>
3133
3134 * infrun.c (struct inferior_status): Replace fields
3135 selected_frame_address and selected_level with field
3136 selected_frame_id.
3137 (save_inferior_status): Update. Use get_frame_id.
3138 (struct restore_selected_frame_args): Delete.
3139 (restore_selected_frame): Update. Use frame_find_by_id.
3140 (restore_inferior_status): Update.
3141
3142 * breakpoint.h (struct breakpoint): Change type of
3143 watchpoint_frame to frame_id.
3144 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
3145 call to get_current_frame.
3146 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
3147 get_current_frame.
3148 (watchpoint_check): Use frame_find_by_id.
3149
3150 * frame.h (record_selected_frame): Delete declaration.
3151 * stack.c (record_selected_frame): Delete function.
3152
3153 * frame.h (struct frame_id): Define.
3154 (get_frame_id): Declare.
3155 (frame_find_by_id): Declare.
3156 * frame.c (frame_find_by_id): New function.
3157 (get_frame_id): New function.
3158
3159 2002-06-10 Andrey Volkov <avolkov@transas.com>
3160
3161 * ser-e7kpc.c: Fix duplicated define and call of
3162 _initialize_ser_e7000pc
3163
3164 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
3165
3166 * signals/signals.c (target_signal_from_host): Fix #ifdef
3167 SIGRTMIN case.
3168 (do_target_signal_to_host): Likewise.
3169
3170 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
3171
3172 * mips-tdep.c (mips_find_abi_section): New function.
3173 (mips_gdbarch_init): Call it.
3174
3175 2002-06-09 Mark Kettenis <kettenis@gnu.org>
3176
3177 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
3178 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
3179 after Andrew's 2002-06-08 gdbarch change.
3180
3181 2002-06-09 Mark Kettenis <kettenis@gnu.org>
3182
3183 * i386-linux-nat.c (suppy_gregset): Don't supply
3184 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
3185 register cache.
3186 (fill_gregset): Don't fetch it under the same circumstances.
3187
3188 2002-06-09 Andrew Cagney <cagney@redhat.com>
3189
3190 * Makefile.in (callback_h): Define.
3191 (remote_sim_h): Update path to remote-sim.h.
3192 (remote-rdp.o): Add $(callback_h).
3193 (remote-sim.o): Use $(callback_h).
3194 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
3195 * remote-rdp.c: Include "gdb/callback.h".
3196
3197 2002-06-09 Mark Kettenis <kettenis@gnu.org>
3198
3199 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
3200 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
3201
3202 2002-06-08 Andrew Cagney <ac131313@redhat.com>
3203
3204 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
3205 * rdi-share/serpardr.c: Ditto.
3206 * rdi-share/unixcomm.c: Ditto.
3207 * rdi-share/serdrv.c: Ditto.
3208 * rdi-share/hostchan.h: Ditto.
3209 * rdi-share/hostchan.c: Ditto.
3210 * rdi-share/host.h: Ditto.
3211 * rdi-share/devsw.c: Ditto.
3212
3213 * objfiles.h: Change type of obj_private to void pointer.
3214 * pa64solib.c: Update copyright. Don't include "assert.h", use
3215 strcmp instead of STREQ, use LONGEST, do not use PTR
3216 * somsolib.c: Ditto.
3217
3218 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
3219 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
3220 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
3221
3222 2002-06-08 Andrew Cagney <ac131313@redhat.com>
3223
3224 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
3225 (default_get_saved_register): Delete function.
3226 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
3227 generic_unwind_get_saved_register.
3228 * gdbarch.h, gdbarch.c: Re-generate.
3229
3230 2002-06-08 Andrew Cagney <ac131313@redhat.com>
3231
3232 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
3233 generic_func_frame_chain_valid.
3234 * gdbarch.h, gdbarch.c: Re-generate.
3235 * blockframe.c (generic_func_frame_chain_valid): Only check
3236 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
3237 passing FP to PC_IN_CALL_DUMMY.
3238 Fix PR gdb/360.
3239
3240 2002-06-08 Andrew Cagney <ac131313@redhat.com>
3241
3242 * gdbarch.sh (struct gdbarch_data): Add field init_p.
3243 (register_gdbarch_data): Initialize init_p.
3244 (gdbarch_data): Initialize data pointer using the init function.
3245 (init_gdbarch_data): Delete function.
3246 (gdbarch_update_p): Update.
3247 (initialize_non_multiarch): Update.
3248 (struct gdbarch): Add field initialized_p.
3249 * gdbarch.h, gdbarch.c: Re-generate.
3250
3251 2002-06-07 Michal Ludvig <mludvig@suse.cz>
3252
3253 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
3254 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
3255 better do the things actually here.
3256 * x86-64-tdep.c (x86_64_register_name2nr): New.
3257 (x86_64_register_name): Renamed to x86_64_register_nr2name.
3258 (x86_64_gdbarch_init): Respect the above change.
3259 * x86-64-tdep.h (x86_64_register_name2nr)
3260 (x86_64_register_nr2name): Add prototypes.
3261 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
3262
3263 2002-06-06 Michael Snyder <msnyder@redhat.com>
3264
3265 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
3266 Delete extra braces and re-indent.
3267 (d10v_store_return_value): Char return values
3268 must be shifted over by one byte in R0.
3269 (d10v_extract_return_value): Delete extra braces, re-indent.
3270
3271 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
3272
3273 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
3274 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
3275 (d10v_integer_to_address): Rewrite.
3276 (d10v_frame_init_saved_regs): When reading fp and sp registers use
3277 the d10v specific functions which take care of converting to the
3278 correct space.
3279
3280 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
3281
3282 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
3283 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
3284
3285 2002-06-02 Andrew Cagney <ac131313@redhat.com>
3286
3287 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
3288 includes.
3289 * config/tm-linux.h: Ditto.
3290 * config/alpha/tm-alphalinux.h: Ditto.
3291 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
3292 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
3293 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
3294 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
3295 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
3296 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
3297 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
3298 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
3299 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
3300 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
3301 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
3302 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
3303 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
3304 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
3305 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
3306 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
3307 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
3308 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
3309 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
3310 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
3311 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
3312 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
3313 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
3314 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
3315 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
3316 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
3317 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
3318 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
3319 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
3320 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
3321 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
3322 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
3323 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
3324 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
3325 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
3326 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
3327 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
3328
3329 2002-05-04 Aidan Skinner <aidan@velvet.net>
3330
3331 * ada-exp.tab.c: New file
3332 * ada-exp.y: New file
3333 * ada-lang.c: New file
3334 * ada-lang.h: New file
3335 * ada-lex.c: New file
3336 * ada-lex.l: New file
3337 * ada-tasks.c: New file
3338 * ada-typeprint.c: New file
3339 * ada-valprint.c: New file
3340
3341 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
3342
3343 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
3344 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
3345
3346 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
3347
3348 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
3349 insetead of ppc-linux-tdep.o.
3350 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
3351 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
3352
3353 2002-06-02 Andrew Cagney <ac131313@redhat.com>
3354
3355 2002-05-07 Christian Groessler <chris@groessler.org>
3356 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
3357 bit register contents for little endian hosts.
3358
3359 2002-06-01 Andrew Cagney <ac131313@redhat.com>
3360
3361 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
3362 any maintainer.
3363
3364 2002-06-01 Andrew Cagney <ac131313@redhat.com>
3365
3366 * gdbarch.h: Regenerate.
3367
3368 2002-06-01 Andrew Cagney <ac131313@redhat.com>
3369
3370 * MAINTAINERS: Add everyone to write-after-approval list.
3371
3372 2002-06-01 Andrew Cagney <ac131313@redhat.com>
3373
3374 * stack.c (frame_info): Use frame_register_unwind instead of
3375 saved_regs. Mention when the SP is on the stack or in a register.
3376
3377 * frame.h (frame_register_unwind_ftype): Define. Document.
3378 (struct frame_info): Add field register_unwind and
3379 register_unwind_cache.
3380 (frame_register_unwind): Declare.
3381 (generic_unwind_get_saved_register): Declare.
3382
3383 * frame.c (frame_register_unwind): New function.
3384 (generic_unwind_get_saved_register): New function.
3385
3386 * blockframe.c (generic_call_dummy_register_unwind): New function.
3387 (frame_saved_regs_register_unwind): New function.
3388 (set_unwind_by_pc): New function.
3389 (create_new_frame): New function.
3390 (get_prev_frame): New function.
3391
3392 2002-05-30 Andrew Cagney <ac131313@redhat.com>
3393
3394 * a29k-share/: Delete directory.
3395 * remote-vx29k.c: Delete file.
3396
3397 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
3398
3399 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
3400 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
3401
3402 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
3403
3404 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
3405 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
3406 (sparc64nbsd-nat.o)
3407 (sparcnbsd-nat.o)
3408 (sparcnbsd-tdep.o): New dependency lists.
3409 * NEWS: Note new UltraSPARC NetBSD native configuration.
3410 * configure.host (sparc64-*-netbsd*): New host.
3411 * configure.tgt (sparc-*-netbsdelf*)
3412 (sparc-*-netbsd*): Set gdb_target to nbsd.
3413 (sparc64-*-netbsd*): New target.
3414 * sparc64nbsd-nat.c: New file.
3415 * sparcnbsd-nat.c: New file.
3416 * sparcnbsd-tdep.c: New file.
3417 * sparcnbsd-tdep.h: New file.
3418 * config/sparc/nbsd.mt: New file.
3419 * config/sparc/nbsd64.mh: New file.
3420 * config/sparc/nbsd64.mt: New file.
3421 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
3422 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
3423 (HOST_IPC): Remove.
3424 * config/sparc/nbsdaout.mt: Remove.
3425 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
3426 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
3427 (HOST_IPC): Remove.
3428 * config/sparc/nbsdelf.mt: Remove.
3429 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
3430 sparc-nat.c compatiblity defines.
3431 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
3432 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
3433 * config/sparc/tm-nbsd64.h: New file.
3434 * config/sparc/tm-nbsdaout.h: Remove.
3435 * config/sparc/xm-nbsd.h: Remove.
3436
3437 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
3438
3439 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
3440 * sparc-tdep.c: Include osabi.h.
3441 (gdbarch_tdep): Add osabi member.
3442 (_initialize_sparc_tdep): Use gdbarch_register.
3443 (sparc_gdbarch_init): Use generic OS ABI framework.
3444 (sparc_dump_tdep): New function.
3445
3446 2002-05-30 Kevin Buettner <kevinb@redhat.com>
3447
3448 * corefile.c (do_captured_read_memory_integer): Return non-zero
3449 result.
3450 (safe_read_memory_integer): Copy result of memory read when
3451 status is non-zero. Also, add comments.
3452
3453 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
3454
3455 * Makefile.in (ppc_tdep_h): Define.
3456 (ppc-linux-nat.o)
3457 (ppc-linux-tdep.o)
3458 (rs6000-tdep.o): Use $(ppc_tdep_h).
3459 (ppc-sysv-tdep.o)
3460 (ppcnbsd-nat.o)
3461 (ppcnbsd-tdep.o): New dependency lists.
3462 * ppc-tdep.h: Use generic OS ABI framework.
3463 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
3464 (ppc_linux_init_abi): New functions.
3465 (ppc_sysv_abi_broken_use_struct_convention)
3466 (ppc_sysv_abi_use_struct_convention)
3467 (ppc_sysv_abi_push_arguments): Move to...
3468 * ppc-sysv-tdep.c: ...here.
3469 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
3470 * rs6000-tdep.c (process_note_abi_tag_sections)
3471 (get_elfosabi): Remove.
3472 (rs6000_gdbarch_init): Use generic OS ABI framework.
3473 (rs6000_dump_tdep): New function.
3474 (_initialize_rs6000_tdep): Use gdbarch_register.
3475 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
3476 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
3477 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
3478 of ppc-linux-tdep.o.
3479 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
3480 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
3481 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
3482 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
3483 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
3484 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
3485
3486 2002-05-29 Jim Blandy <jimb@redhat.com>
3487
3488 * macroscope.c (default_macro_scope): Put `void' in empty argument
3489 list.
3490
3491 2002-05-29 Andrew Cagney <ac131313@redhat.com>
3492
3493 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
3494 * arch-utils.c: Include "sim-regno.h".
3495 * gdbarch.sh: Don't include "sim-regno.h".
3496 * gdbarch.h, gdbarch.c: Regenerate.
3497 * sim-regno.h (legacy_register_sim_regno): Move declaration from
3498 here.
3499 * arch-utils.h (legacy_register_sim_regno): To here.
3500 * remote-sim.c (legacy_register_sim_regno): Move function from
3501 here.
3502 * arch-utils.c (legacy_register_sim_regno): To here.
3503
3504 2002-05-28 Andrew Cagney <ac131313@redhat.com>
3505
3506 * sim-regno.h: New file.
3507 * Makefile.in (sim_regno_h): Define.
3508 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
3509 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
3510 (legacy_register_sim_regno): New function.
3511 (one2one_register_sim_regno): New function.
3512 (gdbsim_fetch_register): Rewrite.
3513 (gdbsim_store_register): Only store a register when
3514 REGISTER_SIM_REGNO is valid.
3515 * d10v-tdep.c: Include "sim-regno.h".
3516 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
3517 (d10v_ts3_register_sim_regno): Ditto.
3518 * gdbarch.sh: Include "sim-regno.h".
3519 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
3520 * gdbarch.h, gdbarch.c: Regenerate.
3521 * arch-utils.h (default_register_sim_regno): Delete declaration.
3522 * arch-utils.c (default_register_sim_regno): Delete function.
3523
3524 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
3525
3526 * ppcnbsd-nat.c: Rewrite.
3527 * ppcnbsd-tdep.c: New file.
3528 * ppcnbsd-tdep.h: New file.
3529 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
3530 solib.o, and solib-svr4.o.
3531 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
3532 nbsd-tdep.o, and corelow.o.
3533
3534 2002-05-28 Andrew Cagney <ac131313@redhat.com>
3535
3536 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
3537 `tr' and `sed'. Mention that `broken' targets are not expected to
3538 build.
3539
3540 2002-05-27 Michal Ludvig <mludvig@suse.cz>
3541
3542 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
3543 Let PC point right after the prologue before looking up symbols.
3544
3545 2002-05-27 Martin M. Hunt <hunt@redhat.com>
3546
3547 * i386-tdep.c (i386_register_virtual_type): Return
3548 builtin_type_vec128i for SSE registers.
3549
3550 * gdbtypes.h (builtin_type_vec128i): Declare.
3551
3552 * gdbtypes.c (build_builtin_type_vec128i): New function.
3553 (builtin_type_v2_double, builtin_type_v4_int64): New types.
3554 (builtin_type_vec128i): New type for SSE2 128-bit registers.
3555 (build_gdbtypes): Initialize new builtin vector types.
3556 (_initialize_gdbtypes): Register new vector types with gdbarch.
3557
3558 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
3559
3560 * MAINTAINERS: ns32k is not longer an obsolete candidate,
3561 since it has been multi-arch'd.
3562 * NEWS: Note that ns32k-*-* is now partial multi-arch.
3563 Move Alpha and VAX multi-arch news entries to same section
3564 as other multi-arch news.
3565
3566 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
3567
3568 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
3569 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
3570 static. Rename some register numbers to put them in ns32k-tdep
3571 private namespace.
3572 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
3573 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
3574 functions.
3575 (_initialize_ns32k_tdep): Use gdbarch_register.
3576 * ns32k-tdep.h: New file.
3577 * ns32knbsd-tdep.c: New file.
3578 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
3579 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
3580 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
3581 REGISTER_BYTES, REGISTER_BYTE): Remove.
3582 * config/ns32k/tm-ns32k.h: New file.
3583 * config/ns32k/tm-umax.h: Remove.
3584
3585 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
3586
3587 * ns32k-tdep.c (ns32k_saved_pc_after_call,
3588 ns32k_store_struct_return, ns32k_extract_return_value,
3589 ns32k_store_return_value, ns32k_extract_struct_value_address): New
3590 functions.
3591 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
3592 ns32k_saved_pc_after_call.
3593 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
3594 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
3595 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
3596 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
3597 ns32k_extract_struct_value_address.
3598
3599 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
3600
3601 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
3602 ns32k_fix_call_dummy): New.
3603 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
3604 ns32k_call_dummy_words.
3605 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
3606 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
3607 CALL_DUMMY_NARGS): Remove.
3608 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
3609
3610 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
3611
3612 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
3613 ns32k_frame_saved_pc, ns32k_frame_args_address,
3614 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
3615 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
3616 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
3617 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
3618 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
3619 (BREAKPOINT): Remove..
3620 (FRAME_CHAIN): Define as ns32k_frame_chain.
3621 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
3622 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
3623 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
3624 (FRAME_FIND_SAVED_REGS): Remove.
3625 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
3626 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
3627 (POP_FRAME): Define as ns32k_pop_frame.
3628
3629 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
3630
3631 * ns32k-tdep.c (ns32k_register_byte_32082,
3632 ns32k_register_byte_32382, ns32k_register_raw_size,
3633 ns32k_register_virtual_size, ns32k_register_virtual_type): New
3634 functions.
3635 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
3636 ns32k_register_byte_32382.
3637 * config/ns32k/tm-umax.h: Update copyright years.
3638 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
3639 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
3640 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
3641 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
3642 (ns32k_get_enter_addr): Fix prototype.
3643
3644 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
3645
3646 * ns32k-tdep.c: Update copyright years.
3647 (ns32k_register_name_32082): New function.
3648 (ns32k_register_name_32382): Ditto.
3649 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
3650 (REGISTER_NAME): Define as ns32k_register_name_32382.
3651 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
3652 (REGISTER_NAME): Define as ns32k_register_name_32082.
3653
3654 2002-05-24 Jim Blandy <jimb@redhat.com>
3655
3656 * dwarf2read.c (free_line_header): Use xfree, not free.
3657
3658 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
3659
3660 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
3661 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
3662
3663 2002-05-23 Andrew Cagney <ac131313@redhat.com>
3664
3665 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
3666
3667 2002-05-23 Andrew Cagney <ac131313@redhat.com>
3668
3669 From Ross Alexander at NEC Europe:
3670 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
3671
3672 2002-05-23 Michael Snyder <msnyder@redhat.com>
3673
3674 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
3675 for input, rather than parse_and_eval_address.
3676
3677 2002-05-23 Andrew Cagney <ac131313@redhat.com>
3678
3679 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
3680 * Makefile.in (sim_d10v_h): Update definition.
3681
3682 2002-05-24 Andrew Cagney <cagney@redhat.com>
3683
3684 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
3685 change `2002-05-22 Michael Snyder' below.
3686 (d10v_push_arguments): Ditto.
3687 (d10v_extract_return_value): Ditto.
3688
3689 2002-05-23 Jim Blandy <jimb@redhat.com>
3690
3691 * macrotab.c (check_for_redefinition): Don't complain if the new
3692 definition is the same as the previous one. Take more arguments
3693 to allow the comparison.
3694 (macro_define_object, macro_define_function): Pass more arguments
3695 to check_for_redefinition.
3696
3697 2002-05-22 Michael Snyder <msnyder@redhat.com>
3698
3699 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
3700 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
3701 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
3702 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
3703 Don't bail if return_pc is PC_IN_CALL_DUMMY.
3704 Add a temp variable to save a call (and a memory read).
3705 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
3706 if possible (so that PC_IN_CALL_DUMMY will work).
3707
3708 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
3709
3710 * MAINTAINERS: Remove status `OBSOLETE' from v850.
3711
3712 2002-05-22 Michal Ludvig <mludvig@suse.cz>
3713
3714 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
3715 fde->cie_ptr.
3716 (dwarf2_build_frame_info): Corrected handling of eh_frame.
3717 (dwarf2_build_frame_info): Add offset to fde->initial_location
3718 so that frames of shared libraries are mapped correctly.
3719 (execute_stack_op): Change type of 'result' from ULONGEST to
3720 CORE_ADDR.
3721
3722 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
3723
3724 * config/alpha/tm-nbsd.h: Include solib.h.
3725
3726 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
3727
3728 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
3729 assumptions about the host's byte order.
3730
3731 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
3732
3733 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
3734 to dependency list.
3735 * alphanbsd-tdep.c: Include solib-svr4.h.
3736 * shnbsd-tdep.c: Ditto.
3737
3738 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
3739
3740 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
3741 nbsd-tdep.h to dependency list.
3742 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
3743 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
3744 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
3745 nbsdaout.mh and nbsdelf.mh consistently.
3746 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
3747 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
3748 nbsdaout.mt and nbsdelf.mh consistently.
3749 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
3750 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
3751 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
3752 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
3753 a.out shared library stuff from here...
3754 * config/nm-nbsdaout.h: ...to here.
3755 * config/tm-nbsd.h: Remove.
3756 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
3757 * config/arm/nbsd.mh: Remove.
3758 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
3759 nbsd-tdep.o.
3760 * config/arm/nbsdaout.mh: New file.
3761 * config/arm/nbsdelf.mh: New file.
3762 * config/arm/nm-nbsdaout.h: New file.
3763 * config/i386/nbsd.mh: Remove.
3764 * config/i386/nbsd.mt: Remove.
3765 * config/i386/nbsdaout.mh: New file.
3766 * config/i386/nbsdaout.mt: New file.
3767 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
3768 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
3769 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
3770 i386_register_u_addr): Remove.
3771 * config/i386/nm-nbsdaout.h: New file.
3772 * config/i386/nm-nbsdelf.h: Remove.
3773 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
3774 (USE_STRUCT_CONVENTION): Remove.
3775 * config/i386/tm-nbsdaout.h: New file.
3776 * config/i386/tm-nbsdelf.h: Remove.
3777 * config/m68k/nbsd.mh: Remove.
3778 * config/m68k/nbsd.mt: Remove.
3779 * config/m68k/nbsdaout.mh: New file.
3780 * config/m68k/nbsdaout.mt: New file.
3781 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
3782 * config/m68k/nm-nbsdaout.h: New file.
3783 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
3784 (IN_SOLIB_CALL_TRAMPOLINE): Define.
3785 * config/ns32k/nbsd.mh: Remove.
3786 * config/ns32k/nbsd.mt: Remove.
3787 * config/ns32k/nbsdaout.mh: New file.
3788 * config/ns32k/nbsdaout.mt: New file.
3789 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
3790 * config/ns32k/nm-nbsdaout.h: New file.
3791 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
3792 (IN_SOLIB_CALL_TRAMPOLINE): Define.
3793 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
3794 (SVR4_SHARED_LIBS): Remove.
3795 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
3796 * config/sparc/nbsd.mh: Remove.
3797 * config/sparc/nbsd.mt: Remove.
3798 * config/sparc/nbsdaout.mh: New file.
3799 * config/sparc/nbsdaout.mt: New file.
3800 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
3801 * config/sparc/nbsdelf.mt: New file.
3802 * config/sparc/nm-nbsdaout.h: New file.
3803 * config/sparc/nm-nbsdelf.h: Remove.
3804 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
3805 * config/sparc/tm-nbsdaout.h: New file.
3806
3807 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
3808
3809 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
3810 mipsnbsd-tdep.c
3811 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
3812
3813 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
3814
3815 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
3816 shnbsd-nat.c.
3817 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
3818
3819 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
3820
3821 * NEWS: Note new MIPS NetBSD native configuration.
3822 * configure.host (mips*-*-netbsd*): New host.
3823 * configure.tgt (mips*-*-netbsd*): New target.
3824 * mipsnbsd-nat.c: New file.
3825 * mipsnbsd-tdep.c: New file.
3826 * mipsnbsd-tdep.h: New file.
3827 * config/mips/nbsd.mh: New file.
3828 * config/mips/nbsd.mt: New file.
3829 * config/mips/nm-nbsd.h: New file.
3830 * config/mips/tm-nbsd.h: New file.
3831
3832 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
3833
3834 * Makefile.in (SFILES): Add osabi.c.
3835 (COMMON_OBS): Add osabi.o.
3836 (osabi.o): New dependency list.
3837 * osabi.c: New file.
3838 * osabi.h: New file.
3839 * doc/gdbint.texinfo: Document new generic OS ABI framework.
3840
3841 * Makefile.in (alpha_tdep_h): Define and use instead of
3842 alpha-tdep.h.
3843 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
3844 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
3845 Remove.
3846 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
3847 * alpha-tdep.h: Include osabi.h.
3848 (alpha_abi): Remove.
3849 (gdbarch_tdep): Use generic OS ABI framework.
3850 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
3851 gdbarch_register_osabi.
3852 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
3853 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
3854 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
3855
3856 * Makefile.in (sh_tdep_h): Add osabi.h.
3857 * sh-tdep.h (sh_osabi): Remove.
3858 (gdbarch_tdep): Use generic OS ABI framework.
3859 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
3860 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
3861 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
3862 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
3863
3864 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
3865 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
3866 gdbarch_register_osabi.
3867 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
3868 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
3869 (get_elfosabi): Rename to...
3870 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
3871 ABI framework support routines.
3872 (arm_gdbarch_init): Use generic OS ABI framework.
3873 (arm_dump_tdep): Likewise.
3874 (_initialize_arm_tdep): Likewise.
3875 * arm-tdep.h: Include osabi.h.
3876 (arm_abi): Remove.
3877 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
3878 osabi member.
3879 (arm_gdbarch_register_os_abi): Remove prototype.
3880 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
3881 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
3882
3883 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
3884 * mips-tdep.c: Include osabi.h.
3885 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
3886 OS ABI framework.
3887
3888 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
3889
3890 * h8300-tdep.c: Fix formatting.
3891
3892 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
3893
3894 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
3895 printing vector registers.
3896
3897 2002-05-19 Andrew Cagney <ac131313@redhat.com>
3898
3899 From Fernando Nasser:
3900 * remote.c (remote_async_open_1): Re-throw the exception when the
3901 connection fails.
3902 (remote_cisco_open): Ditto.
3903 (remote_open_1): Ditto.
3904
3905 2002-05-19 Andrew Cagney <ac131313@redhat.com>
3906
3907 * remote.c (remote_start_remote_dummy): Add uiout parameter.
3908 (remote_start_remote): Add uiout parameter. Pass through to
3909 remote_start_remote_dummy.
3910 (remote_open_1): Use catch_exception instead of catch_errors.
3911 (remote_async_open_1): Ditto.
3912 (remote_cisco_open): Ditto.
3913
3914 2002-05-19 Andrew Cagney <ac131313@redhat.com>
3915
3916 * remote.c (remote_start_remote): Replace PTR with void pointer.
3917 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
3918 static.
3919
3920 2002-05-18 Andrew Cagney <ac131313@redhat.com>
3921
3922 * gdb_indent.sh: Allow the script to be run in the sim directory.
3923
3924 2002-05-18 Mark Kettenis <kettenis@gnu.org>
3925
3926 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
3927 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
3928
3929 * corelow.c (core_open): Only call set_gdbarch_from_file if
3930 exec_bfd is NULL.
3931
3932 2002-05-17 Andrey Volkov <avolkov@transas.com>
3933
3934 * h8300-tdep.c: Add support of EXR register
3935 * config/h8300/tm-h8300.h: Ditto.
3936
3937 2002-05-17 Andrey Volkov <avolkov@transas.com>
3938
3939 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
3940
3941 2002-05-17 Andrey Volkov <avolkov@transas.com>
3942
3943 * h8300-tdep.c: Change literal regnums to REGNO.
3944
3945 2002-05-17 Jim Blandy <jimb@redhat.com>
3946
3947 * NEWS: Note addition of macro support.
3948
3949 Expand preprocessor macros in C expressions.
3950 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
3951 (scan_macro_expansion, scanning_macro_expansion,
3952 finished_macro_expansion): New function declarations.
3953 (expression_macro_lookup_func, expression_macro_lookup_baton): New
3954 variable declarations.
3955 * parser-defs.h (expression_context_pc): New declaration.
3956 * parse.c (expression_context_pc): New variable.
3957 (parse_exp_1): Set expression_context_pc, as well as
3958 expression_context_block.
3959 * c-exp.y (yylex): If we're not already reading the result of a
3960 macro expansion, try to macro-expand the next token. When we're
3961 done scanning a macro expansion, switch back to the mainline text.
3962 Commas and `if's in a macro's expansion don't terminate the input.
3963 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
3964 (macro_original_text, macro_expanded_text,
3965 expression_macro_lookup_func, expression_macro_lookup_baton): New
3966 variables.
3967 (scan_macro_expansion, scanning_macro_expansion,
3968 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
3969 c_preprocess_and_parse): New functions.
3970 (c_language_defn, cplus_language_defn, asm_language_defn): Call
3971 c_preprocess_and_parse, instead of c_parse.
3972 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
3973 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
3974
3975 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
3976
3977 * sh-tdep.c (gdb_print_insn_sh64): Delete.
3978 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
3979 (sh_gdbarch_init): Always use gdb_print_insn_sh.
3980
3981 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
3982
3983 * NEWS: Add section for multi-arched targets. Add v850 to that section.
3984
3985 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
3986
3987 * Makefile.in (sh_tdep_h): Define and use.
3988 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
3989 register enum): Move to...
3990 * * sh-tdep.h: ...here.
3991 * sh-tdep.c: Include sh-tdep.h.
3992 * sh3-rom.c: Likewise.
3993 * shnbsd-tdep.c: Likewise.
3994
3995 2002-05-16 Michael Snyder <msnyder@redhat.com>
3996
3997 * arm-tdep.c: Spelling fix in comment.
3998
3999 2002-05-16 Jim Blandy <jimb@redhat.com>
4000
4001 Add commands for manually expanding macros and showing their
4002 definitions.
4003 * macrocmd.c, macroscope.c, macroscope.h: New files.
4004 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
4005 (macroscope_h): New variable.
4006 (HFILES_NO_SRCDIR): Add macroscope.h.
4007 (COMMON_OBS): Add macrocmd.o, macroscope.o.
4008 (macroscope.o, macrocmd.o): New rules.
4009
4010 Teach the Dwarf 2 reader to read macro information.
4011 * dwarf2read.c: #include "macrotab.h".
4012 (dwarf_macinfo_buffer): New variable.
4013 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
4014 dwarf_macinfo_size.
4015 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
4016 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
4017 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
4018 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
4019 dwarf2_macro_spaces_in_definition): New complaints.
4020 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
4021 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
4022 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
4023 the partial symbol table.
4024 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
4025 from what's recorded in the partial symbol table.
4026 (read_file_scope): If the compilation unit has a
4027 `DW_AT_macro_info' attribute, read its macro information.
4028 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
4029
4030 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
4031
4032 Fix PR gdb/546
4033 * ser-tcp.c: Don't include <netinet/udp.h>.
4034
4035 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
4036
4037 * MAINTAINERS: Update my email address.
4038
4039 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
4040
4041 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
4042 include file of the same name.
4043
4044 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
4045
4046 * configure.tgt: Mark v850 as multi-arched.
4047 * config/v850/tm-v850.h: Remove file.
4048 * config/v850/v850.mt: Eliminate TM_FILE.
4049
4050 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
4051
4052 * v850-tdep.c: Full multi-arch.
4053 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
4054 Define GDB_MULTI_ARCH to 2.
4055
4056 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
4057
4058 * p-exp.y (current_type): New static variable.
4059 Carries the type of the expression at the position that is parsed.
4060 (push_current_type, pop_current_type): Two new functions. Used
4061 to store/restore current_type in expression on specific tokens.
4062 (search_field): New static variable. Set to one after parsing a point
4063 as at that point only a FIELDNAME token should be searched.
4064 (FIELDNAME): New token. After a point only a token belonging to
4065 current_type type definition is allowed.
4066 (all over token rules): reset and change current_type according
4067 to rules.
4068 (exp '[' rule): insert implicit array index field if
4069 exp is a pascal string type.
4070
4071 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
4072
4073 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
4074 frame info. Use frame_info's saved_regs instead of matching member
4075 in extra_frame_info throughout.
4076 (v850_frame_init_saved_regs): New function.
4077 (v850_init_extra_frame_info): Move most functionality into
4078 v850_frame_init_saved_regs().
4079 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
4080 (v850_frame_find_saved_regs): Remove declaration.
4081 (FRAME_FIND_SAVED_REGS): Remove definition.
4082 (v850_frame_init_saved_regs): Add declaration.
4083 (FRAME_INIT_SAVED_REGS): Add definition.
4084
4085 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
4086
4087 * v850-tdep.c: Begin multi-arch'ing v850.
4088 (v850_target_architecture_hook): Remove function.
4089 (v850_gdbarch_init): New function. Add code previously in
4090 v850_target_architecture_hook().
4091 (_initialize_v850_tdep): Don't set target_architecture_hook.
4092 Call register_gdbarch_init() instead.
4093
4094 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
4095
4096 * gdbtypes.h (struct cplus_struct_type): Remove args field.
4097 * hpread.c (hpread_read_struct_type): Remove assignments to args.
4098 (fixup_class_method_type): Likewise.
4099
4100 2002-05-15 Daniel Jacobowitz <drow@mvista.com>
4101
4102 From Martin Pool <mbp@samba.org>:
4103 * gdbserver/server.c (gdbserver_usage): New function.
4104 (main): Call it.
4105
4106 2002-05-15 Jim Blandy <jimb@redhat.com>
4107
4108 Add macro structures to GDB's symbol tables. Nobody puts anything
4109 in them yet.
4110 * symtab.h (struct symtab): New member: `macro_table'.
4111 * buildsym.h (pending_macros): New global variable.
4112 * buildsym.c: #include "macrotab.h".
4113 (buildsym_init): Initialize `pending_macros'.
4114 (end_symtab): If we found macro information while reading a CU's
4115 debugging info, do build a symtab structure for it. Make the
4116 symtab point to the macro information, and clear the
4117 `pending_macros' pointer which held it while we were reading the
4118 debug info.
4119 (really_free_pendings): Free any pending macro table.
4120 * objfiles.h (struct objfile): New member: `macro_cache'.
4121 * objfiles.c (allocate_objfile): Set allocate and free functions
4122 for the macro cache's objstack.
4123 (free_objfile): Empty the macro cache's obstack.
4124 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
4125 set new allocate and free functions for it.
4126 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
4127 free functions for the macro cache's objstack. (Why is this
4128 function building its own objfile?)
4129 * symmisc.c (print_objfile_statistics): Print statistics on the
4130 macro bcache.
4131 * Makefile.in: Note that buildsym.o depends on macrotab.h.
4132
4133 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
4134
4135 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
4136 (REGISTER_U_ADDR): Delete definition.
4137 (arm_register_u_addr): Delete declaration.
4138
4139 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
4140
4141 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
4142 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
4143
4144 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
4145
4146 * gdbserver/mem-break.c (reinsert_breakpoint_by_bp): Correct typo
4147 stop_at -> stop_pc.
4148
4149 2002-05-14 Andrew Cagney <ac131313@redhat.com>
4150
4151 * regcache.c (register_valid): Revise comments refering to "Not
4152 available" and "unavailable".
4153 * frame.c (frame_register_read): Ditto.
4154 * findvar.c (value_of_register): Ditto.
4155
4156 2002-05-15 Andrew Cagney <cagney@redhat.com>
4157
4158 * Makefile.in (remote_sim_h): Replace remote-sim_h.
4159 (remote-sim.o): Update dependencies.
4160 (d10v-tdep.o): Specify dependencies.
4161 (sim_d10v_h): Define.
4162
4163 2002-05-14 Jim Blandy <jimb@redhat.com>
4164
4165 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
4166 * macrotab.c (macro_lookup_inclusion, find_definition,
4167 new_macro_table): Same.
4168
4169 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
4170 not `! strcmp ()'. This is a dubious improvement.
4171 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
4172
4173 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
4174 although it's not necessary, to avoid a warning.
4175
4176 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
4177
4178 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
4179 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
4180 TYPE_INSTANCE_FLAGS.
4181 (struct main_type): New.
4182 (struct type): Move most members to struct main_type. Change
4183 cv_type and as_type to new type_chain member. Add instance_flags.
4184 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
4185 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
4186 (finish_cv_type): Remove prototype.
4187 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
4188 Set TYPE_CHAIN.
4189 (alloc_type_instance): New function.
4190 (smash_type): New function.
4191 (make_pointer_type, make_reference_type, make_function_type)
4192 (smash_to_member_type, smash_to_method_type): Call smash_type.
4193 (make_qualified_type): New function.
4194 (make_type_with_address_space): Call make_qualified_type.
4195 (make_cv_type): Likewise.
4196 (finish_cv_type): Remove unnecessary function.
4197 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
4198 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
4199 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
4200 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
4201 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
4202 * hpread.c (hpread_read_struct_type): Likewise.
4203 * stabsread.c (read_struct_type): Likewise.
4204
4205 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
4206
4207 * configure.tgt: Add a catch all sh* target, for cases like
4208 sh[2,3,4]-elf and sh-hms.
4209
4210 2002-05-14 Keith Seitz <keiths@redhat.com>
4211
4212 * event-loop.c (create_file_handler): Don't do anything but
4213 update data when we are given a fd which we are already
4214 monitoring.
4215
4216 2002-05-14 Michal Ludvig <mludvig@suse.cz>
4217
4218 * dwarf2cfi.c (context_cpy): Copy registers correctly.
4219 (update_context): Use __func__ in warnings.
4220
4221 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
4222
4223 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
4224 and tcp_close to net_open and net_close.
4225 (net_open): Accept "udp:" and "tcp:" specifications. Connect
4226 using UDP if requested. Don't try to disable Nagle on UDP
4227 sockets.
4228 * remote.c (remote_serial_open): New function. Warn about UDP.
4229 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
4230
4231 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
4232
4233 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
4234
4235 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
4236
4237 * configure.tgt: Remove sh-hms target.
4238 * MAINTAINERS: Don't list sh-hms as a separate target.
4239
4240 2002-05-13 Jim Blandy <jimb@redhat.com>
4241
4242 Add first preprocessor macro-expansion files.
4243 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
4244 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
4245 (splay_tree_h, macroexp_h, macrotab_h): New variable.
4246 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
4247 (COMMON_OBS): Add macrotab.o, macroexp.o.
4248 (macroexp.o, macrotab.o): New rules.
4249
4250 2002-05-13 Andrew Cagney <ac131313@redhat.com>
4251
4252 * config/m88k/tm-m88k.h: Update copyright.
4253 (m88k_target_write_pc): Declare
4254 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
4255 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
4256 (SHIFT_INST_REGS): Update definition.
4257 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
4258 using old definition of TARGET_WRITE_PC.
4259 * regcache.c (generic_target_write_pc): Delete code handling
4260 NNPC_REGNUM.
4261 * gdbarch.sh (NNPC_REGNUM): Delete.
4262 * gdbarch.h, gdbarch.c: Regenerate.
4263
4264 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
4265
4266 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
4267 builtin reg number.
4268
4269 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
4270
4271 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
4272 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
4273 (gen_address_of, gen_struct_ref, gen_repeat): Use type
4274 access macros.
4275 * c-typeprint.c (cp_type_print_method_args): Likewise.
4276 (c_type_print_args): Likewise.
4277 * d10v-tdep.c (d10v_push_arguments): Likewise.
4278 (d10v_extract_return_value): Likewise.
4279 * expprint.c (print_subexp): Likewise.
4280 * gdbtypes.c (lookup_primitive_typename): Likewise.
4281 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
4282 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
4283 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
4284 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
4285 (TYPE_VECTOR): Likewise.
4286 * hpread.c (hpread_read_struct_type)
4287 (fix_static_member_physnames, fixup_class_method_type)
4288 (hpread_type_lookup): Likewise.
4289 * mdebugread.c (parse_symbol, parse_type): Likewise.
4290 * p-lang.c (is_pascal_string_type): Likewise.
4291 * valops.c (hand_function_call): Likewise.
4292 * x86-64-tdep.c (classify_argument): Likewise.
4293
4294 * hpread.c (hpread_read_function_type)
4295 (hpread_read_doc_function_type): Call replace_type.
4296 * dstread.c (create_new_type): Delete.
4297 (decode_dst_structure, process_dst_function): Call alloc_type.
4298 Use type access macros.
4299
4300 2002-05-12 Mark Kettenis <kettenis@gnu.org>
4301
4302 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
4303 the're not supported by the current architecture.
4304 (i387_fill_fxsave): Likewise.
4305
4306 2002-05-12 Fred Fish <fnf@redhat.com>
4307
4308 * symfile.c (default_symfile_offsets): Arrange for uninitialized
4309 sect_index_xxx members to index the first slot in section_offsets
4310 if all of the section_offsets are zero.
4311
4312 2002-05-12 Mark Kettenis <kettenis@gnu.org>
4313
4314 * configure.tgt (sparc-*openbsd): Remove entry accidentially
4315 checked in with last change.
4316
4317 2002-05-12 Mark Kettenis <kettenis@gnu.org>
4318
4319 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
4320 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
4321 config.sub.
4322
4323 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
4324
4325 * Makefile.in: Update dependencies.
4326
4327 2002-05-11 Andrew Cagney <ac131313@redhat.com>
4328
4329 * language.c (local_hex_string_custom): Simplify. Do not depend
4330 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
4331
4332 * memattr.c (mem_info_command): Replace calls to
4333 longest_local_hex_string and longest_local_hex_string_custom.
4334 * buildsym.c (make_blockvector): Ditto.
4335 * solib.c (info_sharedlibrary_command): Ditto.
4336 * tracepoint.c (tracepoints_info): Ditto.
4337 * symtab.c (print_msymbol_info): Ditto.
4338
4339 * language.c (local_hex_string): Delete.
4340 (local_hex_string_custom): Delete.
4341 (longest_local_hex_string): Rename to local_hex_string.
4342 (longest_local_hex_string_custom): Rename to
4343 local_hex_string_custom.
4344 * language.h (local_hex_string): Change parameter type to LONGEST.
4345 (local_hex_string_custom): Ditto.
4346 (longest_local_hex_string): Delete declaration.
4347 (longest_local_hex_string_custom): Ditto.
4348
4349 * solib.c: Update copyright.
4350 * memattr.c: Update copyright.
4351
4352 2002-05-11 Andrew Cagney <ac131313@redhat.com>
4353
4354 * arch-utils.h (legacy_register_to_value): Declare.
4355 (legacy_value_to_register): Declare.
4356 (legacy_convert_register_p): Declare.
4357 * arch-utils.c (legacy_register_to_value): New function.
4358 (legacy_value_to_register): New function.
4359 (legacy_convert_register_p): New function.
4360
4361 * gdbarch.sh (REGISTER_TO_VALUE): Define.
4362 (VALUE_TO_REGISTER): Define.
4363 (CONVERT_REGISTER_P): Define.
4364 * gdbarch.h, gdbarch.c: Regenerate.
4365
4366 * valops.c (value_assign): Use CONVERT_REGISTER_P and
4367 VALUE_TO_REGISTER.
4368 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
4369 CONVERT_REGISTER_P.
4370
4371 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
4372 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
4373
4374 * Makefile.in: Update dependencies for valops.c.
4375 * valops.c: Include "gdb_assert.h".
4376 (typecmp): Skip THIS parameter to methods.
4377 (find_method_list): Remove static_memfuncp argument,
4378 update callers. Check for stub methods.
4379 (find_value_oload_method_list): Don't set *static_memfuncp.
4380 (find_overload_match): Don't check for stub methods. Assert
4381 that methods are not stubbed. Handle static methods.
4382 (value_find_oload_method_list): Remove static_memfuncp argument.
4383 * gdbtypes.c (check_stub_method): Do not add THIS pointer
4384 to the argument list for static stub methods.
4385 * value.h (value_find_oload_method_list): Update prototype.
4386
4387 2002-05-11 Andrew Cagney <ac131313@redhat.com>
4388
4389 * arch-utils.h (generic_register_size): Declare.
4390 (generic_register_raw_size, generic_register_virtual_size): Delete
4391 declarations.
4392 * arch-utils.c (generic_register_raw_size): Delete.
4393 (generic_register_size): New function.
4394 (generic_register_virtual_size): Delete.
4395
4396 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
4397 default generic_register_size.
4398 * gdbarch.h, gdbarch.c: Re-generate.
4399
4400 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
4401 register_virtual_size.
4402 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
4403 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4404
4405 2002-05-11 Andrew Cagney <ac131313@redhat.com>
4406
4407 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
4408 * gdbarch.h, gdbarch.c: Regenerate.
4409 * gnu-v3-abi.c: Update copyright.
4410 (vtable_address_point_offset): Update.
4411 (gnuv3_rtti_type): Update.
4412 (gnuv3_baseclass_offset): Update.
4413 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
4414 (init_fetch_link_map_offsets): Update.
4415 * remote.c (get_remote_state): Update.
4416
4417 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
4418
4419 * TODO: Remove value_headof/value_from_vtable_info comment.
4420 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
4421 * values.c (value_headof, value_from_vtable_info): Delete.
4422 * value.h (value_from_vtable_info): Delete prototype.
4423
4424 2002-05-11 Andrew Cagney <ac131313@redhat.com>
4425
4426 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
4427 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
4428 $(gdb_regex_h).
4429 (gdb_assert_h): Define.
4430 (gdb_wait_h): Define.
4431 (gdb_regex_h): Define.
4432
4433 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
4434
4435 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
4436 * linespec.c (find_methods): Handle GCC 3.x template constructors.
4437
4438 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
4439
4440 * nbsd-tdep.c: Fix comment.
4441
4442 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
4443
4444 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
4445 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
4446 (nbsd-tdep.o): New dependency list.
4447 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
4448 nbsd-tdep.h.
4449 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
4450 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
4451 * nbsd-tdep.c: New file.
4452 * nbsd-tdep.h: New file.
4453 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
4454 nbsd-tdep.h.
4455 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
4456 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
4457 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
4458 * config/sh/nbsd.mt (TDEPFILES): Ditto.
4459
4460 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
4461
4462 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
4463 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
4464 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
4465 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
4466 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
4467 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
4468
4469 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
4470
4471 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
4472 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
4473 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
4474 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
4475 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
4476 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
4477 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
4478
4479 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
4480
4481 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
4482 fetch_elfcore_registers to...
4483 * i386nbsd-tdep.c: ...here.
4484 (i386nbsd_use_struct_convention): Rename to...
4485 (i386nbsd_aout_use_struct_convention): ...this.
4486 (i386nbsd_supply_reg): New function.
4487 (i386nbsd_fill_reg): New function.
4488 (fetch_core_registers): Use i386nbsd_supply_reg.
4489 (fetch_elfcore_registers): Likewise.
4490 (_initialize_i386nbsd_tdep): New function.
4491 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
4492 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
4493 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
4494 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
4495 (i386nbsd_aout_use_struct_convention): ...this.
4496
4497 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
4498
4499 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
4500 (store_inferior_registers): Use shnbsd_fill_reg.
4501 * shnbsd-tdep.c (sh_nbsd_supply_registers,
4502 sh_nbsd_supply_register): Collapse into...
4503 (shnbsd_supply_reg): ...this.
4504 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
4505 (shnbsd_fill_reg): ...this.
4506 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
4507 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
4508 (fetch_core_registers): Use shnbsd_supply_reg.
4509 (fetch_elfcore_registers): Use shnbsd_supply_reg.
4510 (sh_nbsd_core_fns): Rename to...
4511 (shnbsd_core_fns): ...this.
4512 (sh_nbsd_elfcore_fns): Rename to...
4513 (shnbsd_elfcore_fns): ...this.
4514 (sh_nbsd_init_abi): Rename to...
4515 (shnbsd_init_abi): ...this.
4516 (_initialize_sh_nbsd_tdep): Rename to...
4517 (_initialize_shnbsd_tdep): ...this.
4518 * shnbsd-tdep.h (sh_nbsd_supply_registers,
4519 sh_nbsd_supply_register, sh_nbsd_fill_registers,
4520 sh_nbsd_fill_register): Remove prototypes.
4521 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
4522
4523 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
4524
4525 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
4526 (i387-nat.o): Delete dependency list.
4527 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
4528 (x86-64-linux-nat.o): Likewise.
4529 * i387-nat.c: Delete file, moving contents to...
4530 * i387-tdep.c: ...here.
4531 * i387-nat.h: Rename...
4532 * i387-tdep.h: ...to this.
4533 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
4534 * i386-linux-nat.c: Likewise.
4535 * i386bsd-nat.c: Likewise.
4536 * i386gnu-nat.c: Likewise.
4537 * i386nbsd-nat.c: Likewise.
4538 * i386v4-nat.c: Likewise.
4539 * x86-64-linux-nat.c: Likewise.
4540 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
4541 * config/i386/go32.mh (NATDEPFILES): Likewise.
4542 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
4543 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
4544 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
4545 * config/i386/linux.mh (NATDEPFILES): Likewise.
4546 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
4547 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
4548 * config/i386/obsd.mh (NATDEPFILES): Likewise.
4549 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
4550
4551 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
4552
4553 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
4554 (alphanbsd-nat.o): Remove dependency list.
4555 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
4556 * alphanbsd-nat.c: Delete. Contents moved to...
4557 * alphanbsd-tdep.c: ...here.
4558 (_initialize_alphanbsd_tdep): Register core functions.
4559 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
4560
4561 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
4562
4563 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
4564 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
4565 (alphanbsd-nat.o): Likewise.
4566 (alphabsd-tdep.o): New dependency list.
4567 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
4568 (fill_gregset): Use alphabsd_fill_reg.
4569 (supply_fpregset): Use alphabsd_supply_fpreg.
4570 (fill_fpregset): Use alphabsd_fill_fpreg.
4571 (fetch_inferior_registers): Use struct reg and struct fpreg
4572 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
4573 and alphabsd_supply_fpreg.
4574 (store_inferior_registers): Use struct reg and struct fpreg
4575 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
4576 and alphabsd_fill_fpreg.
4577 * alphabsd-tdep.c: New file.
4578 * alphabsd-tdep.h: New file.
4579 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
4580 (fetch_elfcore_registers): Use alphabsd_supply_reg and
4581 alphabsd_supply_fpreg.
4582 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
4583 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
4584
4585 2002-05-11 Eric Christopher <echristo@redhat.com>
4586
4587 * mips-tdep.c (mips_double_register_type): Fix thinko.
4588 (mips_single_register_type): Ditto.
4589 * MAINTAINERS: Add self.
4590
4591 2002-05-11 Mark Kettenis <kettenis@gnu.org>
4592
4593 * i387-nat.c (i387_supply_register, i387_fill_fsave,
4594 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
4595 right thing on architectures with different endianness and/or
4596 integer sizes.
4597
4598 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
4599
4600 From Christian Limpach <chris@Pin.LU>
4601 * configure.in: Change sed expression which comments out
4602 NATDEPFILES to also comment out continuation lines.
4603 * configure: Regenerate.
4604
4605 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
4606
4607 * sh-tdep.c: Clean up code erroneously reintroduced by previous
4608 big patch.
4609
4610 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
4611
4612 * sh-tdep.c: Include correct file.
4613
4614 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
4615
4616 New support for sh64-elf (sh5) target.
4617
4618 * configure.tgt: For sh64-elf target, default to sh-elf.
4619
4620 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
4621 (struct gdbarch_tdep): Add new fields for new registers and ABI
4622 info.
4623
4624 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
4625 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
4626 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
4627 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
4628 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
4629 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
4630 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
4631 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
4632 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
4633 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
4634 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
4635 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
4636 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
4637 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
4638 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
4639 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
4640 sh64_get_gdb_regnum, sh64_media_reg_base_num,
4641 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
4642 sign_extend, sh64_nofp_frame_init_saved_regs,
4643 sh64_init_extra_frame_info, sh64_get_saved_register,
4644 sh64_extract_struct_value_address, sh64_pop_frame,
4645 sh64_push_arguments, sh64_extract_return_value,
4646 sh64_store_return_value, sh64_show_media_regs,
4647 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
4648 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
4649 sh_sh64_register_virtual_type,
4650 sh_sh64_register_convert_to_virtual,
4651 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
4652 sh64_register_read, sh64_pseudo_register_write,
4653 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
4654 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
4655 sh64_do_pseudo_register, sh_compact_do_registers_info,
4656 sh64_do_registers_info, sh_gdbarch_init): New functions.
4657
4658 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
4659
4660 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
4661
4662 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
4663
4664 * linespec.c (decode_line_1): Check for a double quote after
4665 a filename correctly.
4666
4667 2002-05-10 Jim Blandy <jimb@redhat.com>
4668
4669 Properly track the size of the current objfile's .debug_line section.
4670 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
4671 (DWARF_LINE_SIZE): New macro.
4672 (dwarf2_build_psymtabs_hard): Record the line section's size in
4673 the partial symbol table.
4674 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
4675 symbol table.
4676
4677 2002-05-10 Petr Sorfa <petrs@caldera.com>
4678
4679 * ia64-tdep.c: Handle breakpoints on L instruction type
4680 in MLX instruction bundle by moving the breakpoint to
4681 the third slot (X instruction type) as L holds only data.
4682
4683 2002-05-10 Kevin Buettner <kevinb@redhat.com>
4684
4685 * dbxread.c (discarding_local_symbols_complaint): New complaint.
4686 (process_one_symbol): Complain about discarding local symbols
4687 due to a misplaced N_LBRAC entry.
4688
4689 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
4690
4691 From Daniel Berlin <dan@cgsoftware.com>
4692 * linespec.c (find_toplevel_char): '<' and '>' also increase and
4693 decrease the depth we are at, in the case of templates.
4694
4695 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
4696
4697 * mips-tdep.c (mips_float_register_type): New function.
4698 (mips_double_register_type): New function.
4699 (mips_print_register): Use them.
4700 (do_fp_register_row): Likewise.
4701
4702 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
4703
4704 * signals/signals.c (signals): Remove conditional compilation around
4705 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
4706 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
4707
4708 2002-05-09 Michael Snyder <msnyder@redhat.com>
4709
4710 * remote-rdp.c (remote_rdp_can_run): Remove.
4711
4712 2002-05-09 Tom Tromey <tromey@redhat.com>
4713
4714 * jv-valprint.c (java_val_print): Handle `char' as a special case
4715 of TYPE_CODE_INT.
4716
4717 2002-05-09 Michael Snyder <msnyder@redhat.com>
4718
4719 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
4720 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
4721 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
4722 str r(0123),[sp,#nn].
4723 (arm_skip_prologue): Ditto. Also make disassembly
4724 order-independent by placing it in a loop.
4725
4726 2002-05-06 Michael Snyder <msnyder@redhat.com>
4727
4728 * stabsread.c (read_type): Add recognition for new attribute:
4729 "@V;" means that an array type is actually a vector.
4730 This is analogous to the vector flag that's been added to dwarf2.
4731
4732 2002-05-09 Mark Kettenis <kettenis@gnu.org>
4733
4734 * i386-tdep.h (i386_abi): New enum.
4735 (struct gdbarch_tdep): Replace os_ident member with abi.
4736 (i386_gdbarch_register_os_abi): New prototype.
4737 * i386-tdep.c (i386_abi_names): New array.
4738 (process_note_abi_tag_sections): Removed.
4739 (process_note_sections): New function.
4740 (i386_elf_abi_from_note, i386_elf_abi): New functions.
4741 (struct i386_abi_handler): New struct.
4742 (i386_abi_handler_list): New variable.
4743 (i386_gdbarch_register_os_abi): New function.
4744 (i386_gdbarch_init): Adapt for the changes given above.
4745
4746 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
4747
4748 * gregset.h: Say "GNU/Linux".
4749
4750 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
4751
4752 * gdbtypes.c : Add new builtin type for 64 bit vectors.
4753 (build_gdbtypes): Build builtin_type_v2_float.
4754 (_initialize_gdbtypes): Register new builtin type.
4755
4756 2002-05-08 Andrew Cagney <ac131313@redhat.com>
4757
4758 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
4759 (clear_gdbarch_swap): New function.
4760 (initialize_non_multiarch): Call.
4761 (gdbarch_update_p): Before calling init(), swap out and clear the
4762 existing architecture.
4763 * gdbarch.c: Regenerate.
4764
4765 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
4766
4767 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
4768 alphanbsd-tdep.c.
4769
4770 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
4771
4772 * sh-nbsd-nat.c: Rename to...
4773 * shnbsd-nat.c: ...this.
4774 * sh-nbsd-tdep.c: Rename to...
4775 * shnbsd-tdep.c: ...this.
4776 * sh-nbsd-tdep.h: Rename to...
4777 * shnbsd-tdep.h: ...this.
4778 * config/sh/nbsd.mh: Use shnbsd-nat.o.
4779 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
4780
4781 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
4782
4783 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
4784 concatenation for command help messages.
4785
4786 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
4787
4788 * NEWS: Note new sh*-*-netbsdelf* configuration.
4789 * configure.host: Set gdb_host_cpu to sh for all sh*.
4790 (sh*-*-netbsdelf*): New host.
4791 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
4792 (sh*-*-netbsdelf*): New target.
4793 * sh-nbsd-nat.c: New file.
4794 * sh-nbsd-tdep.c: New file.
4795 * sh-nbsd-tdep.h: New file.
4796 * config/sh/nbsd.mh: New file.
4797 * config/sh/nbsd.mt: New file.
4798 * config/sh/nm-nbsd.h: New file.
4799 * config/sh/tm-nbsd.h: New file.
4800
4801 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
4802
4803 * sh-tdep.c (sh_osabi_names): Declare.
4804 (process_note_abi_tag_sections): New function.
4805 (get_elfosabi): Ditto.
4806 (sh_gdbarch_register_os_abi): Ditto.
4807 (sh_dump_tdep): Ditto.
4808 _initialize_sh_tdep): Use gdbarch_register to register
4809 sh_gdbarch_init and sh_dump_tdep.
4810 * config/sh/tm-sh.h (sh_osabi): Declare.
4811 (gdbarch_tdep): Add sh_osabi and osabi_name members.
4812
4813 2002-05-07 Andrew Cagney <ac131313@redhat.com>
4814
4815 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
4816 (thumb_scan_prologue): Ditto.
4817 (arm_find_callers_reg): Ditto.
4818 (arm_frame_chain): Ditto.
4819 (arm_init_extra_frame_info): Ditto.
4820 (arm_frame_saved_pc): Ditto.
4821 (arm_pop_frame): Ditto.
4822 (arm_push_return_address): New function.
4823 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
4824 call_dummy_location, call_dummy_breakpoint_offset_p,
4825 call_dummy_breakpoint_offset, call_dummy_p,
4826 call_dummy_stack_adjust_p, call_dummy_words,
4827 sizeof_call_dummy_words, call_dummy_start_offset,
4828 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
4829 call_dummy_address, push_return_address and push_dummy_frame for
4830 generic dummy frames.
4831
4832 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
4833
4834 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
4835 size computation for alloca.
4836 (sh_fp_frame_init_saved_regs): Likewise.
4837
4838 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
4839
4840 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
4841 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
4842 * arm-tdep.c (arm_store_return_value): Use them.
4843 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
4844 * remote-rdp.c (remote_rdp_fetch_register): Use
4845 ARM_MAX_REGISTER_RAW_SIZE.
4846 (remote_rdp_store_register): Likewise.
4847
4848 2002-05-07 Michal Ludvig <mludvig@suse.cz>
4849
4850 * dwarf2cfi.c: Code cleanup, removed unused variables,
4851 added default labels to switch {} statements.
4852 * x86-64-tdep.c: Ditto.
4853 * x86-64-linux-nat.c: Ditto.
4854
4855 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
4856
4857 * solib.h: Protect against multiple inclusion.
4858
4859 2002-05-06 Jim Blandy <jimb@redhat.com>
4860
4861 Add first preprocessor macro-expansion files.
4862 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
4863 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
4864 (splay_tree_h, macroexp_h, macrotab_h): New variable.
4865 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
4866 (COMMON_OBS): Add macrotab.o, macroexp.o.
4867 (macroexp.o, macrotab.o): New rules.
4868
4869 Separate the job of reading the line number info statement program
4870 header (...expialidocious) out into its own function.
4871 * dwarf2read.c (struct line_head, struct filenames, struct
4872 directories): Replace with...
4873 (struct line_header): New structure, containing the full
4874 contents of the statement program header, including the
4875 include directory and file name tables.
4876 (read_file_scope): If we have line number info, instead of just
4877 calling dwarf_decode_lines to do all the work, call
4878 dwarf_decode_line_header first to get a `struct line_header'
4879 containing the data in the statement program header, and then
4880 pass that to dwarf_decode_lines, which will pick up where that
4881 left off. Be sure to clean up the `struct line_header' object.
4882 (dwarf_decode_line_header, free_line_header, add_include_dir,
4883 add_file_name): New functions.
4884 (dwarf_decode_lines): Move all the code to read the statement
4885 program header into dwarf_decode_line_header. Take the line
4886 header it built as the first argument, instead of the offset to
4887 the compilation unit's line number info. Use the new `struct
4888 line_header' type instead of the old structures. No need to do
4889 cleanups here now, since we don't allocate anything.
4890 (dwarf2_statement_list_fits_in_line_number_section,
4891 dwarf2_line_header_too_long): New complaints.
4892
4893 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
4894
4895 * gdbtypes.c (init_vector_type): New function.
4896 (build_builtin_type_vec128): Simplify the representation of SIMD
4897 registers.
4898 (build_gdbtypes): Initialize new builtin vector types.
4899 (_initialize_gdbtypes): Register new vector types with gdbarch.
4900 (builtin_type_v4_float, builtin_type_v4_int32,
4901 builtin_type_v8_int16, builtin_type_v16_int8,
4902 builtin_type_v2_int32, builtin_type_v4_int16,
4903 builtin_type_v8_int8): New (renamed) SIMD types.
4904
4905 2002-05-06 Mark Kettenis <kettenis@gnu.org>
4906
4907 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
4908 (i387_fill_fxsave): Likewise.
4909
4910 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
4911
4912 * alpha-tdep.c (alpha_extract_return_value): Don't use
4913 non-constant array size in prototype.
4914
4915 2002-05-04 Andrew Cagney <ac131313@redhat.com>
4916
4917 From Brian Taylor <briant at model dot com>:
4918 * ui-out.c (ui_out_field_core_addr): Use the function
4919 longest_local_hex_string_custom'to format addresses > 32 bits
4920 wide.
4921
4922 * ui-out.c (ui_out_field_core_addr): Update comment.
4923
4924 2002-05-04 Andrew Cagney <ac131313@redhat.com>
4925
4926 * stack.c (select_and_print_frame): Make static. Delete the
4927 parameter `level'.
4928 (func_command): Update call.
4929 (select_frame_command): Delete code computing the frame level.
4930 * frame.h (select_and_print_frame): Delete declaration.
4931
4932 2002-05-04 Andrew Cagney <ac131313@redhat.com>
4933
4934 * sparc-tdep.c (sparc_get_saved_register): Comment why
4935 get_prev_frame call is safe.
4936
4937 2002-05-04 Andrew Cagney <ac131313@redhat.com>
4938
4939 * frame.h (select_frame): Delete level parameter.
4940 * stack.c (select_frame): Update. Use frame_relative_level to
4941 obtain the frame's level.
4942 (select_and_print_frame): Update call.
4943 (select_frame_command): Ditto.
4944 (up_silently_base): Ditto.
4945 (down_silently_base): Ditto.
4946 * ocd.c (ocd_start_remote): Ditto.
4947 * remote-rdp.c (remote_rdp_open): Ditto.
4948 * remote-mips.c (mips_initialize): Ditto.
4949 (common_open): Ditto.
4950 * remote-e7000.c (e7000_start_remote): Ditto.
4951 * m3-nat.c (select_thread): Ditto.
4952 * hppa-tdep.c (child_get_current_exception_event): Ditto.
4953 (child_get_current_exception_event): Ditto.
4954 * varobj.c (varobj_create): Ditto.
4955 (varobj_update): Ditto.
4956 (c_value_of_root): Ditto.
4957 * tracepoint.c (finish_tfind_command): Ditto.
4958 * corelow.c (core_open): Ditto.
4959 * arch-utils.c (generic_prepare_to_proceed): Ditto.
4960 * thread.c (info_threads_command): Ditto.
4961 (switch_to_thread): Ditto.
4962 * infrun.c (normal_stop): Ditto.
4963 (restore_selected_frame): Ditto.
4964 (restore_inferior_status): Ditto.
4965 * breakpoint.c (insert_breakpoints): Ditto.
4966 (watchpoint_check): Ditto.
4967 (bpstat_stop_status): Ditto.
4968 (do_enable_breakpoint): Ditto.
4969 * blockframe.c (flush_cached_frames): Ditto.
4970 (reinit_frame_cache): Ditto.
4971
4972 2002-05-04 Andrew Cagney <ac131313@redhat.com>
4973
4974 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
4975 maintainer.
4976
4977 2002-05-04 Jim Blandy <jimb@redhat.com>
4978
4979 * gdbtypes.c (replace_type): Doc fix.
4980
4981 2002-05-04 Andrew Cagney <ac131313@redhat.com>
4982
4983 * valprint.c (strcat_longest): Delete commented out function.
4984 Update copyright.
4985
4986 2002-05-04 Andrew Cagney <ac131313@redhat.com>
4987
4988 * MAINTAINERS: Mark a29k as deleted.
4989 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
4990 Move new configurations to the top.
4991 * configure.tgt: Remove a29k.
4992 * config/a29k/tm-vx29k.h: Delete.
4993 * config/a29k/vx29k.mt: Delete.
4994 * config/a29k/tm-a29k.h: Delete.
4995 * config/a29k/a29k-udi.mt: Delete.
4996 * config/a29k/a29k.mt: Delete.
4997 * a29k-tdep.c: Delete.
4998 * remote-udi.c: Delete.
4999 * remote-mm.c: Delete.
5000 * remote-eb.c: Delete.
5001 * remote-adapt.c: Delete.
5002 * Makefile.in: Remove obsolete code.
5003 * gdbserver/Makefile.in: Ditto.
5004 * config/s390/s390x.mt: Ditto.
5005 * config/s390/s390.mt: Ditto.
5006 * config/sparc/sparclynx.mh: Ditto.
5007 * config/sparc/linux.mh: Ditto.
5008 * config/pa/hppaosf.mh: Ditto.
5009 * config/pa/hppabsd.mh: Ditto.
5010 * config/ns32k/nbsd.mt: Ditto.
5011 * config/mips/vr5000.mt: Ditto.
5012 * config/m68k/sun3os4.mh: Ditto.
5013 * config/m68k/nbsd.mt: Ditto.
5014 * config/m68k/m68klynx.mh: Ditto.
5015 * config/m32r/m32r.mt: Ditto.
5016 * config/i386/x86-64linux.mt: Ditto.
5017 * config/i386/nbsdelf.mt: Ditto.
5018 * config/i386/nbsd.mt: Ditto.
5019 * config/i386/i386lynx.mh: Ditto.
5020
5021 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5022
5023 * target.c (debug_print_register): New function. Handle oversize
5024 registers.
5025 (debug_to_fetch_registers): Call.
5026 (debug_to_store_registers): Call.
5027
5028 2002-05-03 Jim Blandy <jimb@redhat.com>
5029
5030 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
5031 (read_type): Doc fix.
5032 * gdbtypes.c (replace_type): Doc fix.
5033
5034 * stabsread.c (multiply_defined_struct): New complaint.
5035 (read_struct_type): If the type we were passed isn't empty, or
5036 incomplete, don't read the new struct type into it; complain,
5037 and return the original type unchanged. Take a new `type_code'
5038 argument, which is the type code for the new type.
5039 (read_type): Rather than storing the type's type code here, pass
5040 it as an argument to read_struct_type, and let that take care of
5041 storing it. That way, we don't overwrite the original type code,
5042 so read_struct_type can use it to decide whether we're overwriting
5043 something we shouldn't.
5044 (complain_about_struct_wipeout): New function.
5045
5046 2002-05-03 Andrew Cagney <ac131313@redhat.com>
5047
5048 * gdbarch.sh: Assert that gdbarch is non-NULL.
5049 * gdbarch.c: Regenerate.
5050
5051 2002-05-03 Jason Merrill <jason@redhat.com>
5052
5053 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
5054 and return NULL.
5055
5056 2002-05-03 Michal Ludvig <mludvig@suse.cz>
5057
5058 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
5059 (x86_64_dwarf2gdb_regno_map_length),
5060 (x86_64_dwarf2_reg_to_regnum): Added.
5061 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
5062 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
5063 (_initialize_x86_64_tdep): Synced with the change above.
5064 (x86_64_skip_prologue): Reformulated message.
5065
5066 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
5067
5068 * f-exp.y: Also use new prev_lexptr variable
5069 to improve error reporting. Based on Michael Snyder
5070 2002-04-24 dated patch to c-exp.y.
5071 * jv-exp.y: Likewise.
5072 * m2-exp.y: Likewise.
5073
5074 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
5075
5076 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
5077 we are dealing with vectors.
5078
5079 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
5080
5081 * config/m68k/tm-nbsd.h: Obvious fix,
5082 correct machine name.
5083
5084 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
5085
5086 * p-typeprint.c (pascal_type_print_base): Add support
5087 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
5088
5089 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
5090
5091 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
5092 for fondamental pascal 'char' type.
5093
5094 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
5095
5096 * p-lang.h (is_pascal_string_type): Declaration changed,
5097 new sixth argument of type char ** added.
5098 * p-lang.c (is_pascal_string_type): Implementation
5099 changed. Args length_pos, length_size, string_pos, char_size
5100 can now be NULL. New argument arrayname set to the field
5101 name of the char array. Return value set to char array
5102 field index plus one.
5103 * p-valprint.c (pascal_val_print): Adapt to new declaration of
5104 is_pascal_string_type function.
5105
5106 2002-05-02 Andrew Cagney <cagney@redhat.com>
5107
5108 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
5109 <cagney@redhat.com> change.
5110 * gdbarch.c: Regenerate.
5111
5112 2002-05-02 Andrew Cagney <cagney@redhat.com>
5113
5114 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
5115 before probing for a new one. Detect errorenous gdbarch_init
5116 functions.
5117 * gdbarch.c: Regenerate.
5118
5119 2002-05-01 Andrew Cagney <cagney@redhat.com>
5120
5121 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
5122 * config/mcore/tm-mcore.h: Ditto. Update copyright.
5123 * config/v850/tm-v850.h: Ditto. Update copyright.
5124
5125 2002-04-30 Andrew Cagney <ac131313@redhat.com>
5126
5127 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
5128 current_gdbarch.
5129
5130 2002-04-30 Michael Snyder <msnyder@redhat.com>
5131
5132 * arm-tdep.c: Whitespace clean-ups.
5133 (arm_skip_prologue): Fix thinko; two lines
5134 should have been removed as part of 4/24 change.
5135
5136 2002-04-30 Kevin Buettner <kevinb@redhat.com>
5137
5138 * rs6000-tdep.c: Added comment describing how fpscr register
5139 numbers were chosen.
5140
5141 2002-04-30 Michael Snyder <msnyder@redhat.com>
5142
5143 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
5144
5145 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
5146
5147 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
5148 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
5149 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
5150
5151 2002-04-29 Kevin Buettner <kevinb@redhat.com>
5152
5153 From Louis Hamilton <hamilton@redhat.com>:
5154 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
5155 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
5156 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
5157 not bfd-private xcoff data, to determine wordsize.
5158 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
5159
5160 2002-04-29 Andrew Cagney <ac131313@redhat.com>
5161
5162 GDB 5.2 released from 5.2 branch.
5163
5164 2002-04-29 Michal Ludvig <mludvig@suse.cz>
5165
5166 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
5167 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
5168 (x86_64_register_info_table): Added comments with register numbers.
5169
5170 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
5171
5172 * rs6000-tdep.c (rs6000_extract_return_value,
5173 rs6000_store_return_value): Handle returning vectors.
5174 (rs6000_gdbarch_init): Use
5175 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
5176 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
5177 New function.
5178 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
5179 vectors.
5180 (ppc_sysv_abi_push_arguments): Handle vector parameters.
5181 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
5182
5183 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
5184
5185 * hpread.c (hpread_psymtab_to_symtab_1,
5186 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
5187 with fprintf_unfiltered (gdb_stderr,...).
5188
5189 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
5190
5191 * remote-array.c (printf_monitor, write_monitor,
5192 array_insert_breakpoint, array_remove_breakpoint ):
5193 Replace fprintf (stderr,...
5194 with fprintf_unfiltered (gdb_stderr,....
5195 * remote-es.c: Likewise.
5196 * remote-os9k.c: Likewise.
5197 * remote-st.c: Likewise.
5198
5199 2002-04-28 Andreas Schwab <schwab@suse.de>
5200
5201 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
5202 linux-proc.o and gcore.o.
5203
5204 2002-04-26 Michal Ludvig <mludvig@suse.cz>
5205
5206 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
5207 code without frame pointers.
5208
5209 2002-04-26 Andrew Cagney <ac131313@redhat.com>
5210
5211 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
5212 ON_STACK is needed.
5213
5214 2002-04-26 Ben Elliston <bje@redhat.com>
5215
5216 * target.c (do_xfer_memory): Correct reference to the new option
5217 "trust-readonly-sections".
5218
5219 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
5220
5221 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
5222 * gdbtypes.c (recursive_dump_type): Output the vector flag.
5223 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
5224 vectors.
5225 (read_array_type): Record the fact that this array type is really a
5226 vector (i.e. are passed in by value).
5227
5228 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
5229
5230 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
5231 * alpha-tdep.c (alpha_sigcontext_addr): New function.
5232 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
5233 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
5234 * alpha-linux-tdep.c: Include frame.h.
5235 (alpha_linux_sigcontext_addr): New function.
5236 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
5237 alpha_linux_sigcontext_addr.
5238 * alpha-osf1-tdep.c: Include gdbcore.h.
5239 (alpha_osf1_sigcontext_addr): New function.
5240 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
5241 alpha_osf1_sigcontext_addr.
5242 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
5243 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
5244
5245 2002-04-26 Andrew Cagney <ac131313@redhat.com>
5246
5247 * stack.c (selected_frame_level):
5248 (select_frame): Do not set selected_frame_level.
5249 * frame.h (selected_frame_level): Delete declaration.
5250
5251 2002-04-26 Andrew Cagney <ac131313@redhat.com>
5252
5253 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
5254 convert_from_func_ptr-addr when AIX / PowerOpen.
5255
5256 2002-04-25 Andrew Cagney <ac131313@redhat.com>
5257
5258 * valops.c (hand_function_call): Call
5259 generic_save_call_dummy_addr.
5260 * frame.h (generic_save_call_dummy_addr): Declare.
5261 * blockframe.c (struct dummy_frame): Add fields call_lo and
5262 call_hi.
5263 (generic_find_dummy_frame): Check for PC in range call_lo to
5264 call_hi instead of entry_point_address.
5265 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
5266 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
5267 (generic_save_call_dummy_addr): New function.
5268
5269 2002-04-24 David S. Miller <davem@redhat.com>
5270
5271 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
5272 sparc_skip_prologue.
5273 (sparc_skip_prologue): Kill frameless_p arg, and use line number
5274 information to find prologue when possible.
5275 (sparc_prologue_frameless_p): Call examine_prologue directly.
5276 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
5277 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
5278 second argument.
5279 (SKIP_PROLOGUE): Likewise.
5280
5281 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
5282
5283 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
5284 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
5285 indicate that the condition it was testing is always true.
5286 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
5287 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
5288 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
5289
5290 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
5291
5292 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
5293 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
5294 tdep->jb_pc and tdep->jb_elt_size.
5295 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
5296 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
5297 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
5298 * alpha-nat.c (get_longjmp_target): Remove.
5299 (JB_ELEMENT_SIZE): Ditto.
5300 (JB_PC): Ditto.
5301 * alpha-tdep.c (alpha_get_longjmp_target): New function.
5302 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
5303 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
5304 to alpha_get_longjmp_target.
5305 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
5306 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
5307 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
5308
5309 2002-04-25 Andrew Cagney <ac131313@redhat.com>
5310
5311 * README: Update to GDB 5.2.
5312
5313 2002-04-25 Andrew Cagney <ac131313@redhat.com>
5314
5315 * gdbarch.sh (LC_ALL): Set to `c'.
5316
5317 2002-04-25 Theodore A. Roth <troth@verinet.com>
5318
5319 * avr-tdep.c: Ran through gdb_indent.sh.
5320
5321 2002-04-25 Theodore A. Roth <troth@verinet.com>
5322
5323 * MAINTAINERS: Add myself as AVR maintainer.
5324 * NEWS: Note new target avr.
5325
5326 2002-04-25 Theodore A. Roth <troth@verinet.com>
5327
5328 * Makefile.in: Add support for AVR target.
5329 * configure.tgt: Add support for AVR target.
5330 * avr-tdep.c: New file
5331 * config/avr/avr.mt: New file.
5332
5333 2002-04-25 Theodore A. Roth <troth@verinet.com>
5334
5335 * MAINTAINERS: Add myself to write-after-approval.
5336
5337 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
5338
5339 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
5340 with fprintf_unfiltered (gdb_stderr,....
5341
5342 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
5343
5344 Fix PR gdb/508.
5345 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
5346
5347 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
5348
5349 * p-exp.y: Also use new prev_lexptr variable
5350 to improve error reporting. Based on Michael Snyder
5351 2002-04-24 dated patch to c-exp.y.
5352
5353 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
5354
5355 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
5356 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
5357 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
5358 to 0.
5359 * config/alpha/tm-alpha.h: Remove forward decls of struct type
5360 and struct value.
5361 (FUNCTION_START_OFFSET): Remove.
5362 (BREAKPOINT): Ditto.
5363
5364 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
5365
5366 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
5367 * NEWS: Ditto.
5368
5369 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
5370
5371 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
5372 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
5373 alpha_linux_pc_in_sigtramp.
5374 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
5375 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
5376 alpha_osf1_pc_in_sigtramp.
5377 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
5378 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
5379 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
5380 alphafbsd_pc_in_sigtramp.
5381 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
5382 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
5383 alphanbsd_pc_in_sigtramp.
5384 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
5385 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
5386
5387 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
5388
5389 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
5390
5391 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
5392
5393 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
5394 alphanbsd-tdep.c.
5395 (alphanbsd-nat.o): New dependency list.
5396 (alphanbsd-tdep.o): Ditto.
5397 * NEWS: Note new native NetBSD/alpha configuration.
5398 * alphanbsd-nat.c: New file.
5399 * alphanbsd-tdep.c: Ditto.
5400 * configure.host (alpha*-*-netbsd*): New host.
5401 * configure.tgt (alpha*-*-netbsd*): New target.
5402 * config/alpha/nbsd.mh: New file.
5403 * config/alpha/nbsd.mt: Ditto.
5404 * config/alpha/nm-nbsd.h: Ditto.
5405 * config/alpha/tm-nbsd.h: Ditto.
5406
5407 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
5408
5409 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
5410 (alpha-osf1-tdep.o): New dependency list.
5411 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
5412 and skip_sigtramp_frame members.
5413 * alpha-linux-tdep.c: Include gdbcore.h.
5414 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
5415 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
5416 * alpha-osf1-tdep.c: New file.
5417 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
5418 alpha-osf1-dep.c.
5419 (alpha_frame_past_sigtramp_frame): New function.
5420 (alpha_dynamic_sigtramp_offset): Ditto.
5421 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
5422 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
5423 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
5424 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
5425 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
5426 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
5427 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
5428 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
5429 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
5430 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
5431 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
5432 to find_solib_trampoline_target.
5433 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
5434 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
5435 (SKIP_TRAMPOLINE_CODE): Remove.
5436 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
5437 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
5438 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
5439 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
5440 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
5441 (PROC_SIGTRAMP_MAGIC): Ditto.
5442 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
5443 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
5444 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
5445 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
5446 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
5447
5448 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
5449
5450 * NEWS: Note that Alpha targets are now multi-arch.
5451
5452 2002-04-24 Michael Snyder <msnyder@redhat.com>
5453
5454 * parser-defs.h (prev_lexptr): New external variable.
5455 * parse.c (parse_exp_1): Set prev_lexptr to null before
5456 calling the language-specific parser.
5457 * c-exp.y (yylex): Set prev_lexptr to start of current token.
5458 (yyerror): Use prev_lexptr in error reporting.
5459
5460 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
5461
5462 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
5463 * gregset.h: If FILL_FPXREGSET is defined, provide
5464 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
5465 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
5466 is defined, call fill_fpxregset.
5467
5468 2002-04-24 Roland McGrath <roland@frob.com>
5469
5470 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
5471 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
5472 (supply_gregset, supply_fpregset): New functions.
5473
5474 * gnu-nat.c (gnu_find_memory_regions): New function.
5475 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
5476 (gnu_xfer_memory): Add a cast.
5477
5478 2002-04-24 Michael Snyder <msnyder@redhat.com>
5479
5480 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
5481 loop. Add handling for "str lr, [sp, #-4]!" and for saves
5482 of argument regs ("str r(0123), [r11, #-nn"]).
5483 (arm_skip_prologue): Better handling for frameless functions.
5484 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
5485 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
5486
5487 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
5488
5489 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
5490 NUM_PSEUDO_REGS can be used.
5491
5492 2002-04-24 Andrew Cagney <ac131313@redhat.com>
5493
5494 * arch-utils.h: Update copyright.
5495
5496 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
5497 * gdbarch.h, gdbarch.c: Re-generate.
5498
5499 * inferior.h (IN_SIGTRAMP): Delete definition.
5500 * arch-utils.c (legacy_pc_in_sigtramp): New function.
5501 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
5502
5503 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
5504 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
5505 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
5506 (find_proc_framesize): Ditto.
5507 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
5508 (alpha_init_extra_frame_info): Ditto.
5509 * infrun.c (handle_inferior_event): Ditto.
5510 (handle_inferior_event): Ditto.
5511 (check_sigtramp2): Ditto.
5512 * blockframe.c (create_new_frame): Ditto.
5513 (get_prev_frame): Ditto.
5514 * ppc-linux-tdep.c: Update comments.
5515 * i386-linux-tdep.c: Update comments.
5516 * breakpoint.c (bpstat_what): Update comment.
5517
5518 2002-04-24 Michal Ludvig <mludvig@suse.cz>
5519
5520 * gdbserver/linux-low.c (regsets_fetch_inferior_registers),
5521 (regsets_store_inferior_registers): Removed cast to int from
5522 ptrace() calls.
5523 * gdbserver/regcache.h: Added declaration of struct inferior_info.
5524
5525 2002-04-24 David S. Miller <davem@redhat.com>
5526
5527 * i960-tdep.c (register_in_window_p): New function.
5528 (i960_find_saved_register): Use it instead of
5529 REGISTER_IN_WINDOW_P.
5530 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
5531
5532 * symtab.h (find_stab_function_addr): Kill extern.
5533 * minsyms.c (find_stab_function_addr): Remove from here...
5534 * dbxread.c: ... to here, and mark it static.
5535
5536 2002-04-20 David S. Miller <davem@redhat.com>
5537
5538 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
5539 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
5540
5541 2002-04-21 David S. Miller <davem@redhat.com>
5542
5543 * remote-vxsparc.c (vx_read_register): Fix typo, we want
5544 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
5545 (vx_write_register): Likewise.
5546
5547 2002-04-23 J. Brobecker <brobecker@gnat.com>
5548
5549 * source.c (is_regular_file): New function.
5550 (openp): Check wether file to open is a regular file
5551 to avoid opening directories.
5552
5553 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
5554
5555 * findvar.c (extract_signed_integer): Cast printf argument
5556 to suppress format warning.
5557 (extract_unsigned_integer): Likewise.
5558 * infcmd.c (registers_info): Likewise.
5559 * top.c (get_prompt_1): Likewise.
5560 * valops.c (value_assign): Likewise.
5561 * valprint.c (print_decimal): Likewise.
5562
5563 2002-04-22 H.J. Lu (hjl@gnu.org)
5564
5565 * c-exp.y (typebase): Support
5566
5567 [long|long long|short] [signed|unsigned] [int|]
5568
5569 and
5570
5571 signed [long|long long|short] int
5572
5573 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
5574
5575 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
5576 and vax-tdep.h.
5577 * vax-tdep.h: New file.
5578 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
5579 Make several routines static.
5580 (vax_get_saved_register): New function.
5581 (vax_gdbarch_init): New function.
5582 (_initialize_vax_tdep): Register vax_gdbarch_init.
5583 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
5584 Remove macros now under the control of gdbarch.
5585
5586 2002-04-22 Michael Snyder <msnyder@redhat.com>
5587
5588 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
5589 Some whitespace and coding standards tweaks.
5590
5591 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
5592
5593 * vax-tdep.c: Include regcache.h.
5594 (vax_call_dummy_words): New.
5595 (sizeof_vax_call_dummy_words): New.
5596 (vax_fix_call_dummy): New function.
5597 (vax_saved_pc_after_call): Ditto.
5598 * config/vax/tm-vax.h: Don't include regcache.h.
5599 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
5600 (CALL_DUMMY): Remove.
5601 (CALL_DUMMY_WORDS): Define.
5602 (SIZEOF_CALL_DUMMY_WORDS): Define.
5603 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
5604
5605 2002-04-18 Michael Snyder <msnyder@redhat.com>
5606
5607 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
5608
5609 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
5610
5611 * vax-tdep.c (vax_frame_chain): New function.
5612 (vax_push_dummy_frame): Ditto.
5613 (vax_pop_frame): Ditto.
5614 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
5615 (FRAMELESS_FUNCTION_INVOCATION): Use
5616 generic_frameless_function_invocation_not.
5617 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
5618 (POP_FRAME): Use vax_pop_frame.
5619
5620 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
5621
5622 * vax-tdep.c (vax_store_struct_return): New function.
5623 (vax_extract_return_value): Ditto.
5624 (vax_store_return_value): Ditto.
5625 (vax_extract_struct_value_address): Ditto.
5626 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
5627 vax_store_struct_return.
5628 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
5629 (STORE_RETURN_VALUE): Use vax_store_return_value.
5630 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
5631
5632 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
5633
5634 * vax-tdep.c (vax_frame_saved_pc): New function.
5635 (vax_frame_args_address_correct): Ditto.
5636 (vax_frame_args_address): Ditto.
5637 (vax_frame_locals_address): Ditto.
5638 (vax_frame_num_args): Move code to be in proximity to
5639 other frame-related functions.
5640 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
5641 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
5642 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
5643 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
5644 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
5645
5646 2002-04-22 H.J. Lu (hjl@gnu.org)
5647
5648 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
5649 includedir.
5650
5651 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
5652
5653 * vax-tdep.c (vax_frame_init_saved_regs): New function.
5654 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
5655 (FRAME_INIT_SAVED_REGS): New macro.
5656
5657 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
5658
5659 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
5660
5661 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
5662
5663 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
5664 where needed.
5665 (fetch_osf_core_registers): Likewise.
5666 (supply_gregset): Likewise.
5667
5668 2002-04-22 J. Brobecker <brobecker@gnat.com>
5669
5670 * symfile.h (get_section_index): Define.
5671 * symfile.c (get_section_index): New function.
5672 * mdebugread.c (SC_IS_SBSS): New macro.
5673 (SC_IS_BSS): Return true for the scBss storage class only, as
5674 the scSBss storage class refers to the .sbss section.
5675 (parse_partial_symbols): Discard the symbols which associated
5676 section does not exist.
5677 Make sure to use the .sbss section index for symbols which
5678 storage class is scBss, rather than using the .bss section index.
5679
5680 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
5681
5682 * vax-tdep.c: Update copyright years.
5683 (vax_register_name): New function.
5684 (vax_register_byte): Ditto.
5685 (vax_register_raw_size): Ditto.
5686 (vax_register_virtual_size): Ditto.
5687 (vax_register_virtual_type): Ditto.
5688 * config/vax/tm-vax.h: Update copyright years.
5689 (REGISTER_NAMES): Remove.
5690 (REGISTER_NAME): Define.
5691 (REGISTER_BYTE): Use vax_register_byte.
5692 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
5693 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
5694 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
5695
5696 2002-04-21 Andrew Cagney <ac131313@redhat.com>
5697
5698 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
5699 declaration
5700 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
5701
5702 2002-04-21 David S. Miller <davem@redhat.com>
5703
5704 * arch-utils.c (generic_prologue_frameless_p): Kill
5705 SKIP_PROLOGUE_FRAMELESS_P code.
5706 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
5707 references.
5708 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
5709 * arc-tdep.c (arc_prologue_frameless_p): Implement.
5710 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
5711 references.
5712 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
5713 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
5714 (sparc_gdbarch_init): Pass it to
5715 set_gdbarch_prologue_frameless_p.
5716
5717 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
5718
5719 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
5720 (alphabsd-nat.o): New dependency list.
5721
5722 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
5723
5724 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
5725 alphafbsd-tdep.c.
5726 (alpha-linux-tdep.o): New dependency list.
5727 (alphafbsd-tdep.o): Likewise.
5728
5729 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
5730
5731 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
5732 to here...
5733 * alpha-tdep.c: ...from here.
5734 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
5735
5736 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
5737
5738 * config/alpha/tm-alpha.h: Move alpha_software_single_step
5739 prototype from here...
5740 * alpha-tdep.h: ...to here.
5741
5742 2002-04-21 Andrew Cagney <ac131313@redhat.com>
5743
5744 * frame.h (selected_frame_level): Document as deprecated.
5745 (frame_relative_level): Declare.
5746 * stack.c (frame_relative_level): New function.
5747 (selected_frame_level): Document as deprecated.
5748 (select_frame): Do not set the selected_frame_level.
5749
5750 * stack.c (frame_info, record_selected_frame): Update.
5751 (frame_command, current_frame_command): Update.
5752 (up_silently_base, up_command, down_silently_base): Update.
5753 (down_command): Update.
5754 * inflow.c (kill_command): Update.
5755 * tracepoint.c (finish_tfind_command): Update.
5756 * corelow.c (core_open): Update.
5757 * thread.c (info_threads_command): Update.
5758 (do_captured_thread_select): Update.
5759 * infcmd.c (finish_command): Update.
5760 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
5761
5762 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
5763
5764 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
5765
5766 2002-04-21 Andrew Cagney <ac131313@redhat.com>
5767
5768 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
5769 type const.
5770
5771 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
5772
5773 * alphafbsd-tdep.c: Update copyright years. Include
5774 alpha-tdep.h.
5775 (alphafbsd_use_struct_convention): Make static.
5776 (alphafbsd_init_abi): New function.
5777 (_initialize_alphafbsd_tdep): New function.
5778 * config/alpha/tm-fbsd.h: Update copyright years.
5779 (USE_STRUCT_CONVENTION): Remove.
5780
5781 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
5782
5783 * alpha-tdep.c (alpha_abi_handler): New structure to describe
5784 an Alpha ABI variant.
5785 (alpha_abi_handler_list): Declare.
5786 (alpha_gdbarch_register_os_abi): New function.
5787 (alpha_gdbarch_init): Give registered ABI variant handlers a
5788 chance to tweak the gdbarch once we have set up defaults.
5789 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
5790
5791 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
5792
5793 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
5794 to standard_coerce_float_to_double.
5795 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
5796
5797 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
5798
5799 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
5800 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
5801 from gdbarch_tdep rather than a constant.
5802 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
5803 the default text address for all Alpha Unix ABIs.
5804 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
5805 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
5806
5807 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
5808
5809 * alpha-tdep.h: New file. Includes several Alpha target constants
5810 taken from...
5811 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
5812 let gdbarch deal with.
5813 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
5814 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
5815 to dependency list.
5816 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
5817 Alpha target register names.
5818 * alphabsd-nat.c: Likewise.
5819 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
5820 Alpha target register names. Make serveral routines static.
5821 (alpha_get_saved_register): New function.
5822 (alpha_abi_names): New.
5823 (process_note_abi_tag_sections): New function.
5824 (get_elfosabi): New function.
5825 (alpha_gdbarch_init): New function.
5826 (alpha_dump_tdep): New function.
5827 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
5828
5829 2002-04-21 Andrew Cagney <ac131313@redhat.com>
5830
5831 * frame.c (find_saved_register): Delete #ifdef
5832 HAVE_REGISTER_WINDOWS code.
5833 * config/sparc/tm-sparc.h: Update comments.
5834 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
5835
5836 2002-04-21 Andrew Cagney <ac131313@redhat.com>
5837
5838 * i960-tdep.c (i960_find_saved_register): New function.
5839 (i960_get_saved_register): New function.
5840 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
5841 (i960_get_saved_register): Declare.
5842 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
5843
5844 2002-04-20 David S. Miller <davem@redhat.com>
5845
5846 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
5847
5848 2002-04-20 Andrew Cagney <ac131313@redhat.com>
5849
5850 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
5851 instead of NUM_PSEUDO_REGS.
5852
5853 2002-04-20 David S. Miller <davem@redhat.com>
5854
5855 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
5856 GDB_MULTI_ARCH_PARTIAL
5857 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
5858 define, let tm-sp64.h do it.
5859
5860 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
5861
5862 * frame.c (find_saved_register): Avoid a NULL pointer
5863 dereference and actually walk the frame list.
5864
5865 2002-04-20 Andrew Cagney <ac131313@redhat.com>
5866
5867 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
5868 sorted in most most-recent-used order. Document.
5869 * gdbarch.h, gdbarch.c: Regenerate.
5870
5871 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
5872
5873 * gdbserver/inferiors.c (struct inferior_info): Add regcache_data.
5874 (add_inferior): Call create_register_cache.
5875 (clear_inferiors): Call free_register_cache.
5876 (inferior_regcache_data, set_inferior_regcache_data): New functions.
5877 * gdbserver/regcache.c (struct inferior_regcache_data): New.
5878 (registers): Remove.
5879 (get_regcache): New function.
5880 (create_register_cache, free_register_cache): New functions.
5881 (set_register_cache): Don't initialize the register cache here.
5882 (registers_to_string, registers_from_string, register_data): Call
5883 get_regcache.
5884 * gdbserver/regcache.h: Add prototypes.
5885 * gdbserver/server.h: Likewise.
5886
5887 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
5888
5889 * gdbserver/mem-break.c: New file.
5890 * gdbserver/mem-break.h: New file.
5891 * gdbserver/Makefile.in: Add mem-break.o rule; update server.h
5892 dependencies.
5893 * gdbserver/inferiors.c (struct inferior_info): Add target_data
5894 member.
5895 (clear_inferiors): Free target_data member if set.
5896 (inferior_target_data, set_inferior_target_data): New functions.
5897 * gdbserver/linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
5898 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
5899 * gdbserver/linux-low.c (linux_bp_reinsert): New variable.
5900 (struct inferior_linux_data): New.
5901 (linux_create_inferior): Use set_inferior_target_data.
5902 (linux_attach): Likewise. Call add_inferior.
5903 (linux_wait_for_one_inferior): New function.
5904 (linux_wait): Call it.
5905 (linux_write_memory): Add const.
5906 (initialize_low): Call set_breakpoint_data.
5907 * gdbserver/linux-low.h (struct linux_target_ops): Add breakpoint
5908 handling members.
5909 * gdbserver/server.c (attach_inferior): Remove extra add_inferior
5910 call.
5911 * gdbserver/server.h: Include mem-break.h. Update inferior.c
5912 prototypes.
5913 * gdbserver/target.c (read_inferior_memory)
5914 (write_inferior_memory): New functions.
5915 * gdbserver/target.h (read_inferior_memory)
5916 (write_inferior_memory): Change macros to prototypes.
5917 (struct target_ops): Update comments. Add const to write_memory
5918 definition.
5919
5920 2002-04-19 Andrew Cagney <ac131313@redhat.com>
5921
5922 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
5923 instead of ->prev.
5924 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
5925 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
5926 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
5927 instead of ->prev.
5928
5929 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
5930
5931 Fix PR gdb/471.
5932 * gdbtypes.c (init_simd_type): Rewrite using new functions.
5933 (build_builtin_type_vec128): Ditto.
5934 (append_composite_type_field): Fix calculation of type length in
5935 union case.
5936
5937 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
5938
5939 * config/djgpp/README: Update.
5940
5941 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
5942 compiler warnings.
5943
5944 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
5945
5946 * alpha-tdep.c (setup_arbitrary_frame): Rename...
5947 (alpha_setup_arbitrary_frame): ...to this.
5948 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
5949 for alpha_setup_arbitrary_frame.
5950
5951 2002-04-18 Andrew Cagney <cagney@redhat.com>
5952
5953 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
5954 * gdbarch.h, gdbarch.c: Regenerate.
5955
5956 * defs.h (breakpoint_from_pc_fn): Delete type definition.
5957 * target.h (memory_breakpoint_from_pc): Update declaration.
5958 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
5959
5960 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
5961 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
5962 * mem-break.c (memory_breakpoint_from_pc): Ditto.
5963 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
5964 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
5965 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
5966 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
5967 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
5968 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
5969 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
5970 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
5971 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
5972
5973 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
5974 const pointer.
5975 * monitor.c (monitor_insert_breakpoint): Ditto.
5976 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
5977
5978 * config/mcore/tm-mcore.h: Update copyright.
5979 * mem-break.c: Ditto.
5980 * xstormy16-tdep.c: Ditto.
5981
5982 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
5983
5984 * p-exp.y: Add precedence rule for '^' token.
5985 This removes the shift/reduce conflicts.
5986 Remove the comment concerning these shift/reduce conflicts.
5987
5988 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
5989
5990 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
5991 (registers_powerpc_nofp): New register set for processors
5992 without floating point unit.
5993
5994 2002-04-18 David S. Miller <davem@redhat.com>
5995
5996 * MAINTAINERS: Add myself to write-after-approval.
5997
5998 2002-04-17 Michael Snyder <msnyder@redhat.com>
5999
6000 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
6001
6002 2002-04-17 Andrew Cagney <ac131313@redhat.com>
6003
6004 * rs6000-tdep.c (frame_initial_stack_address): Use
6005 frame_register_read to read the alloca_reg.
6006
6007 2002-04-17 Andrew Cagney <ac131313@redhat.com>
6008
6009 * frame.c (find_saved_register): Find saved registers in the next
6010 not prev frame.
6011 Fix PR gdb/365.
6012
6013 2002-04-17 Andrew Cagney <ac131313@redhat.com>
6014
6015 * gdbarch.sh (LANG): Set to ``c''.
6016
6017 2002-04-15 Andrew Cagney <ac131313@redhat.com>
6018
6019 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
6020
6021 2002-04-15 Andrew Cagney <ac131313@redhat.com>
6022
6023 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
6024 Update copyright.
6025
6026 * hpread.c (hpread_get_lntt): Add declaration.
6027 Also fix PR gdb/391.
6028
6029 2002-04-14 Andrew Cagney <ac131313@redhat.com>
6030
6031 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
6032 * aclocal.m4, configure: Re-generate.
6033 Fix PR gdb/391.
6034
6035 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
6036
6037 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
6038 instead of tm_print_insn.
6039
6040 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
6041
6042 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
6043
6044 2002-04-14 Andrew Cagney <ac131313@redhat.com>
6045
6046 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
6047 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
6048 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
6049
6050 2002-04-12 Don Howard <dhoward@redhat.com>
6051
6052 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
6053 max_user_call_depth.
6054 (init_cmd_lists): Initialize the new value;
6055 * cli/cli-script.c (execute_user_command): Limit the call depth of
6056 user defined commands. This avoids a core-dump when user commands
6057 are infinitly recursive.
6058
6059 2002-04-12 Kevin Buettner <kevinb@redhat.com>
6060
6061 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
6062 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
6063 from tdep struct instead of DEFAULT_LR_SAVE.
6064 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
6065 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
6066 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
6067
6068 2002-04-12 Michael Snyder <msnyder@redhat.com>
6069
6070 * Remote.c: Spelling fix.
6071 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
6072 If no symbol found for "sbrk", try "_sbrk".
6073 (make_output_phdrs): Use bfd_section_name.
6074 (gcore_copy_callback): Use bfd_section_name.
6075 * eval.c: Indentation fix-ups.
6076 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
6077 in case it gets applied to an address that is already
6078 in the instruction space.
6079 * cli/cli-decode.c (help_list): Allow long lines to wrap.
6080 * symfile.c: Fix indentation, long lines.
6081 * source.c: White space fix-up.
6082
6083 2002-04-12 Andrew Cagney <cagney@redhat.com>
6084
6085 * defs.h (read_relative_register_raw_bytes): Delete declaration.
6086 * frame.c (frame_register_read): New function. Return non-zero on
6087 success.
6088 (read_relative_register_raw_bytes_for_frame): Delete.
6089 (read_relative_register_raw_bytes): Delete.
6090 * frame.h (frame_register_read): Declare.
6091 * d30v-tdep.c: Update Copyright. Use frame_register_read.
6092 * sh-tdep.c: Ditto.
6093 * infcmd.c (do_registers_info): Ditto.
6094 * hppa-tdep.c: Ditto.
6095 * rs6000-tdep.c: Ditto.
6096 * h8500-tdep.c: Ditto.
6097 * mips-tdep.c: Ditto.
6098 * h8300-tdep.c: Ditto.
6099 * z8k-tdep.c: Ditto.
6100
6101 2002-04-12 Kevin Buettner <kevinb@redhat.com>
6102
6103 From Jimi X <jimix@watson.ibm.com>:
6104 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
6105 64-bit SysV ABI.
6106
6107 2002-04-12 Kevin Buettner <kevinb@redhat.com>
6108
6109 From Jimi X <jimix@watson.ibm.com>:
6110 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
6111 bfd info.
6112
6113 2002-04-12 Kevin Buettner <kevinb@redhat.com>
6114
6115 From Jimi X <jimix@watson.ibm.com>:
6116 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
6117 register sets for these processor variants.
6118
6119 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
6120
6121 * gdbserver/linux-low.c (usr_store_inferior_registers): Support
6122 registers which are allowed to fail to store.
6123 * gdbserver/linux-low.h (linux_target_ops): Likewise.
6124 * gdbserver/linux-ppc-low.c (ppc_regmap): Support FPSCR.
6125 (ppc_cannot_store_register): FPSCR may not be storable.
6126 * regformats/reg-ppc.dat: Support FPSCR.
6127
6128 2002-04-11 Kevin Buettner <kevinb@redhat.com>
6129
6130 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
6131 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
6132 Add fpscr as an invalid/unfetchable register.
6133 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
6134 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
6135 (fill_fpregset): Add support for register fpscr.
6136 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
6137 (fill_gregset): Account for the fact that register ``mq'' might
6138 not exist.
6139 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
6140 (registers_power): Add fpscr to register set at slot 71.
6141 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
6142 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
6143
6144 2002-04-11 Michael Snyder <msnyder@redhat.com>
6145
6146 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
6147 * configure: Regenerate.
6148 * config.in: Regenerate.
6149 * acconfig.h: Add define for _SYSCALL32.
6150 * core-sol2.c: Remove #define _SYSCALL32.
6151 * solib-legacy.c: Remove #define _SYSCALL32.
6152
6153 2002-04-10 Andrew Cagney <ac131313@redhat.com>
6154
6155 * stack.c (select_frame): Cleanup internal error message, do not
6156 use %p.
6157
6158 2002-04-10 Andrew Cagney <ac131313@redhat.com>
6159
6160 * stack.c (select_frame): Check that selected_frame and the
6161 specified level are as expected.
6162 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
6163 Update copyright.
6164 * frame.h (struct frame_info): Add field `level'. Update
6165 copyright.
6166 Work-in-progress PR gdb/464.
6167
6168 2002-04-10 Andrew Cagney <ac131313@redhat.com>
6169
6170 * maint.c (maint_print_section_info): Rename print_section_info.
6171 (print_bfd_section_info, print_objfile_section_info): Update.
6172 * inferior.h (struct gdbarch): Add opaque declaration.
6173 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
6174 * gdbarch.h: Regenerate.
6175
6176 2002-04-10 Michal Ludvig <mludvig@suse.cz>
6177
6178 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
6179 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
6180 (kernel_u_size): Added.
6181 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
6182 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
6183
6184 2002-04-04 Jim Ingham <jingham@apple.com>
6185
6186 * valarith.c (find_size_for_pointer_math): New function, either returns
6187 the size for a pointer's target, returns 1 for void *, or errors for
6188 incomplete types.
6189 (value_add, value_sub): use find_size_for_pointer_math.
6190
6191 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
6192
6193 * linux-low.c (linux_look_up_symbols): New hook.
6194 (linux_target_ops): Add linux_look_up_symbols.
6195 * remote-utils.c (decode_address): New function.
6196 (look_up_one_symbol): New function.
6197 * server.c (handle_query): Call target look_up_symbols hook.
6198 * server.h (look_up_one_symbol): Add prototype.
6199 * target.h (struct target_ops): Add look_up_symbols hook.
6200
6201 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
6202
6203 * gdbserver/server.h: Include <string.h> if HAVE_STRING_H.
6204 * ChangeLog: Correct paths in last ChangeLog entry.
6205
6206 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
6207
6208 * gdbserver/linux-low.h: Remove obsolete prototypes.
6209 (struct linux_target_ops): New.
6210 (extern the_low_target): New.
6211 * gdbserver/linux-low.c (num_regs, regmap): Remove declarations.
6212 (register_addr): Use the_low_target explicitly.
6213 (fetch_register): Likewise.
6214 (usr_fetch_inferior_registers): Likewise.
6215 (usr_store_inferior_registers): Likewise.
6216 * gdbserver/linux-arm-low.c (num_regs): Remove.
6217 (arm_num_regs): Define.
6218 (arm_regmap): Renamed from regmap, made static.
6219 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
6220 made static.
6221 (arm_cannot_store_register): Renamed from cannot_store_register,
6222 made static.
6223 (the_low_target): New.
6224 * gdbserver/linux-i386-low.c (num_regs): Remove.
6225 (i386_num_regs): Define.
6226 (i386_regmap): Renamed from regmap, made static.
6227 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
6228 made static.
6229 (i386_cannot_store_register): Renamed from cannot_store_register,
6230 made static.
6231 (the_low_target): New.
6232 * gdbserver/linux-ia64-low.c (num_regs): Remove.
6233 (ia64_num_regs): Define.
6234 (ia64_regmap): Renamed from regmap, made static.
6235 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
6236 made static.
6237 (ia64_cannot_store_register): Renamed from cannot_store_register,
6238 made static.
6239 (the_low_target): New.
6240 * gdbserver/linux-m68k-low.c (num_regs): Remove.
6241 (m68k_num_regs): Define.
6242 (m68k_regmap): Renamed from regmap, made static.
6243 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
6244 made static.
6245 (m68k_cannot_store_register): Renamed from cannot_store_register,
6246 made static.
6247 (the_low_target): New.
6248 * gdbserver/linux-mips-low.c (num_regs): Remove.
6249 (mips_num_regs): Define.
6250 (mips_regmap): Renamed from regmap, made static.
6251 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
6252 made static.
6253 (mips_cannot_store_register): Renamed from cannot_store_register,
6254 made static.
6255 (the_low_target): New.
6256 * gdbserver/linux-ppc-low.c (num_regs): Remove.
6257 (ppc_num_regs): Define.
6258 (ppc_regmap): Renamed from regmap, made static.
6259 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
6260 made static.
6261 (ppc_cannot_store_register): Renamed from cannot_store_register,
6262 made static.
6263 (the_low_target): New.
6264 * gdbserver/linux-s390-low.c (num_regs): Remove.
6265 (s390_num_regs): Define.
6266 (s390_regmap): Renamed from regmap, made static.
6267 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
6268 made static.
6269 (s390_cannot_store_register): Renamed from cannot_store_register,
6270 made static.
6271 (the_low_target): New.
6272 * gdbserver/linux-sh-low.c (num_regs): Remove.
6273 (sh_num_regs): Define.
6274 (sh_regmap): Renamed from regmap, made static.
6275 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
6276 made static.
6277 (sh_cannot_store_register): Renamed from cannot_store_register,
6278 made static.
6279 (the_low_target): New.
6280 * gdbserver/linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
6281 (the_low_target): New.
6282
6283 2002-04-09 Andrew Cagney <ac131313@redhat.com>
6284
6285 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
6286 override FP_REGNUM with frame->fp. Update copyright.
6287 * parse.c (num_std_regs, std_regs): Delete.
6288 (target_map_name_to_register): Do not search std_regs. Update
6289 function description.
6290 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
6291 declarations. Update copyright.
6292 Fix PR gdb/251.
6293
6294 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
6295
6296 * gdbserver/Makefile.in: Add stamp-h target.
6297 * gdbserver/configure.in: Create stamp-h.
6298 * gdbserver/configure: Regenerated.
6299
6300 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
6301
6302 * gdbserver/inferiors.c: New file.
6303 * gdbserver/target.c: New file.
6304 * gdbserver/target.h: New file.
6305 * gdbserver/Makefile.in: Add target.o and inferiors.o. Update
6306 dependencies.
6307 * gdbserver/linux-low.c (inferior_pid): New static variable,
6308 moved from server.c.
6309 (linux_create_inferior): Renamed from create_inferior.
6310 Call add_inferior. Return 0 on success instead of a PID.
6311 (linux_attach): Renamed from myattach.
6312 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
6313 (linux_thread_alive): Renamed from mythread_alive.
6314 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
6315 child dies.
6316 (linux_resume): Renamed from myresume. Add missing ``return 0''.
6317 (regsets_store_inferior_registers): Correct error message.
6318 Add missing ``return 0''.
6319 (linux_fetch_registers): Renamed from fetch_inferior_registers.
6320 (linux_store_registers): Renamed from store_inferior_registers.
6321 (linux_read_memory): Renamed from read_inferior_memory.
6322 (linux_write_memory): Renamed from write_inferior_memory.
6323 (linux_target_ops): New structure.
6324 (initialize_low): Call set_target_ops ().
6325 * gdbserver/remote-utils.c (unhexify): New function.
6326 (hexify): New function.
6327 (input_interrupt): Send signals to ``signal_pid''.
6328 * gdbserver/server.c (inferior_pid): Remove.
6329 (start_inferior): Update create_inferior call.
6330 (attach_inferior): Call add_inferior.
6331 (handle_query): New function.
6332 (main): Call handle_query for `q' packets.
6333 * gdbserver/server.h: Include "target.h". Remove obsolete prototypes.
6334 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
6335
6336 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
6337
6338 * gdbserver/Makefile.in: Add WARN_CFLAGS. Update configury
6339 dependencies.
6340 * gdbserver/configure.in: Check for <string.h>
6341 * gdbserver/configure: Regenerate.
6342 * gdbserver/config.in: Regenerate.
6343 * gdbserver/gdbreplay.c: Include needed system headers.
6344 (remote_open): Remove strchr prototype.
6345 * gdbserver/linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
6346 * gdbserver/regcache.c (supply_register): Change buf argument to const void *.
6347 (supply_register_by_name): Likewise.
6348 (collect_register): Change buf argument to void *.
6349 (collect_register_by_name): Likewise.
6350 * gdbserver/regcache.h: Add missing prototypes.
6351 * gdbserver/remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
6352 * gdbserver/server.c (handle_query): New function.
6353 (attached): New static variable, moved out of main.
6354 (main): Quiet longjmp clobber warnings.
6355 * gdbserver/server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
6356 * gdbserver/utils.c (error): Remove NORETURN.
6357 (fatal): Likewise.
6358
6359 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
6360
6361 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
6362 after the last symbol in a block.
6363
6364 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
6365
6366 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
6367 is non zero as a found symbol.
6368
6369 2002-04-08 Andrew Cagney <ac131313@redhat.com>
6370
6371 * findvar.c: Include "builtin-regs.h".
6372 (value_of_register): Call value_of_builtin_reg when applicable.
6373 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
6374 (target_map_name_to_register): Call
6375 builtin_reg_map_name_to_regnum.
6376 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
6377 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
6378 (builtin_regs_h): Define.
6379 (builtin-regs.o): New target.
6380 (findvar.o): Add $(builtin_regs_h).
6381 * builtin-regs.c, builtin-regs.h: New files.
6382 * std-regs.c: New file.
6383 Partial fix for PR gdb/251.
6384
6385 2002-04-08 Kevin Buettner <kevinb@redhat.com>
6386
6387 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
6388 it's no longer required.
6389
6390 2002-04-08 Andrew Cagney <ac131313@redhat.com>
6391
6392 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
6393
6394 2002-04-08 Kevin Buettner <kevinb@redhat.com>
6395
6396 From Jimi X <jimix@watson.ibm.com>:
6397 * rs6000-tdep.c (rs6000_software_single_step): Use
6398 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
6399 and size. Use target_insert_breakpoint() and
6400 target_remove_breakpoint() to insert and remove breakpoints
6401 instead of explicit memory reads and writes.
6402
6403 2002-04-08 Kevin Buettner <kevinb@redhat.com>
6404
6405 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
6406 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
6407 ELF_OBJECT_FORMAT ifdef.
6408
6409 2002-04-08 Kevin Buettner <kevinb@redhat.com>
6410
6411 From Jimi X <jimix@watson.ibm.com>:
6412 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
6413
6414 2002-04-08 Kevin Buettner <kevinb@redhat.com>
6415
6416 From Jimi X <jimix@watson.ibm.com>:
6417 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
6418 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
6419
6420 2002-04-07 Mark Kettenis <kettenis@gnu.org>
6421
6422 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
6423 s/asprintf/xasprintf/.
6424 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
6425
6426 2002-04-07 Andrew Cagney <ac131313@redhat.com>
6427
6428 I believe Jeff Law denies responsability for this one:
6429 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
6430 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
6431 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
6432 Work-around for PR gdb/366.
6433
6434 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
6435
6436 * remote-e7000.c (write_small, e7000_read_inferior_memory,
6437 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
6438 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
6439
6440 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
6441
6442 * sh-tdep.c (sh_fp_frame_init_saved_regs,
6443 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
6444 information.
6445
6446 2002-04-07 Andrew Cagney <ac131313@redhat.com>
6447
6448 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
6449 maintainer.
6450
6451 2002-04-07 Andrew Cagney <ac131313@redhat.com>
6452
6453 * README (Reporting Bugs in GDB): Document the bug web page as the
6454 prefered way of submitting bugs.
6455 Fix PR gdb/402.
6456
6457 2002-04-06 Andrew Cagney <ac131313@redhat.com>
6458
6459 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
6460 -1. Update comment.
6461 * gdbarch.h, gdbarch.c: Re-generate.
6462
6463 2002-04-07 Andreas Schwab <schwab@suse.de>
6464
6465 * m68klinux-nat.c (fill_fpregset): Properly pass address of
6466 buffer to regcache_collect.
6467
6468 2002-04-06 Andrew Cagney <ac131313@redhat.com>
6469
6470 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
6471 * gdbarch.c, gdbarch.h: Re-generate.
6472
6473 2002-04-06 Andrew Cagney <ac131313@redhat.com>
6474
6475 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
6476 declaration. Fix -Werror.
6477
6478 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
6479
6480 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
6481 * gdbarch.c: Regenerate.
6482
6483 2002-04-05 Michael Snyder <msnyder@redhat.com>
6484
6485 * breakpoint.c (clear_command): Rewrite middle section to
6486 combine two loops with identical control conditions.
6487 Add a cleanup to eliminate a memory leak.
6488 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
6489
6490 2002-04-05 H.J. Lu (hjl@gnu.org)
6491
6492 * solib-svr4.c (bkpt_names): Add "__start".
6493
6494 2002-04-04 Andrew Cagney <ac131313@redhat.com>
6495
6496 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
6497 as test for 64 bit target.
6498
6499 2002-04-05 Andrew Cagney <ac131313@redhat.com>
6500
6501 * h8500-tdep.c (h8500_write_fp): Delete function.
6502 * dwarf2cfi.c (cfi_write_fp): Document as not used.
6503 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
6504 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
6505 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
6506 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
6507 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
6508 (s390_write_fp):
6509 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
6510 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
6511 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
6512 (d10v_write_fp): Delete function.
6513 * inferior.h (write_fp, generic_target_write_fp): Delete
6514 declarations.
6515 * regcache.c (generic_target_write_fp): Delete function.
6516 (write_fp): Delete function.
6517 * gdbarch.sh (TARGET_WRITE_FP): Delete.
6518 * gdbarch.h, gdbarch.c: Regenerate.
6519 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
6520 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
6521 (sparc64_write_fp): Delete declaration.
6522 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
6523 (h8500_write_fp): Delete declaration.
6524
6525 2002-04-04 Andrew Cagney <ac131313@redhat.com>
6526
6527 * sparc-tdep.c (sparc64_write_fp): Delete.
6528 (sparc_push_dummy_frame): Replace write_fp call with code to store
6529 the FP directly.
6530 (sparc_gdbarch_init): Do not initialize write_fp.
6531
6532 2002-04-05 Kevin Buettner <kevinb@redhat.com>
6533
6534 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
6535 clause.
6536
6537 2002-03-29 Jim Blandy <jimb@redhat.com>
6538
6539 * stack.c (get_selected_block): Add new argument `addr_in_block',
6540 used to return the exact code address we used to select the block,
6541 not just the block.
6542 * blockframe.c (get_frame_block, get_current_block): Same.
6543 * frame.h (get_frame_block, get_current_block,
6544 get_selected_block): Update declarations.
6545 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
6546 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
6547
6548 2002-04-05 Michael Snyder <msnyder@redhat.com>
6549
6550 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
6551 warning message.
6552
6553 2002-04-05 J. Brobecker <brobecker@gnat.com>
6554
6555 * utils.c (xfullpath): New function.
6556 * defs.h (xfullpath): Add declaration.
6557 * source.c (openp): Use xfullpath in place of gdb_realpath to
6558 avoid resolving the basename part of filenames when the
6559 associated file is a symbolic link. This fixes a potential
6560 inconsistency between the filenames known to GDB and the
6561 filenames it prints in the annotations.
6562 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
6563 to be able to match a filename with either the real filename, or
6564 the name of any symbolic link to this file.
6565 (lookup_partial_symtab): Ditto.
6566
6567 2002-04-04 Michael Snyder <msnyder@redhat.com>
6568
6569 * breakpoint.c: Add support for hardware breakpoints in overlays.
6570 (overlay_events_enabled): New state variable.
6571 (insert_breakpoints): Use overlay_events_enabled to decide
6572 whether to attempt to set a breakpoint at the overlay load addr.
6573 Handle bp_hardware_breakpoint as well as bp_breakpoint.
6574 (remove_breakpoint): Use overlay_events_enabled to decide
6575 whether breakpoints need to be removed from overlay load addr.
6576 Handle bp_hardware_breakpoint as well as bp_breakpoint.
6577 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
6578 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
6579 disable_overlay_breakpoints): Update overlay_events_enabled.
6580
6581 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
6582
6583 * dwarf2read.c (struct function_range): New.
6584 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
6585 (check_cu_functions): New.
6586 (read_file_scope): Initialize global function lists.
6587 Call dwarf_decode_line after processing children.
6588 (read_func_scope): Add to global function list.
6589 (dwarf_decode_lines): Call check_cu_functions everywhere
6590 record_line is called. Call record_line with a linenumber
6591 of 0 to mark sequence ends.
6592
6593 2002-04-04 Michal Ludvig <mludvig@suse.cz>
6594
6595 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
6596 change sync with glibc.
6597
6598 2002-04-03 Jim Blandy <jimb@redhat.com>
6599
6600 * configure.in: Call AC_C_INLINE.
6601 * configure: Regenerated.
6602
6603 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
6604
6605 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
6606 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
6607
6608 2002-03-31 Mark Kettenis <kettenis@gnu.org>
6609
6610 * NEWS: Mention gcore support on FreeBSD/i386.
6611
6612 * fbsd-proc.c: New file.
6613 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
6614 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
6615
6616 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
6617 while statement.
6618
6619 2002-03-29 Jim Blandy <jimb@redhat.com>
6620
6621 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
6622 unescaped newlines in string literals, but newer ones don't. So
6623 escape them.
6624
6625 2002-03-26 Michael Snyder <msnyder@redhat.com>
6626 Andrew Cagney <cagney@redhat.com>
6627
6628 * cli/cli-dump.c: New file. Dump memory to file,
6629 restore file to memory.
6630 * cli/cli-dump.h: New file.
6631 * Makefile.in: Add rules, dependencies for cli-dump.o.
6632 * NEWS: Mention new commands.
6633
6634 2002-03-28 Michael Snyder <msnyder@redhat.com>
6635
6636 * symfile.c (symbol_file_add): Move test for null symbols to later.
6637
6638 2002-03-27 Andrew Cagney <ac131313@redhat.com>
6639
6640 From veksler at il.ibm.com:
6641 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
6642 the xstrduped original path.
6643 Fix PR gdb/417.
6644
6645 2002-03-27 Michael Snyder <msnyder@redhat.com>
6646
6647 * breakpoint.c (_initialize_breakpoint): Clean up help string.
6648 * infcmd.c (_initialize_infcmd): Ditto.
6649 * language.c (_initialize_language): Ditto.
6650 * symfile.c (_initialize_symfile): Ditto.
6651 * top.c (_init_main): Ditto.
6652 * cli/cli-cmds.c (init_cli_cmds): Ditto.
6653
6654 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
6655
6656 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
6657 vector registers handling.
6658 (skip_prologue): Handle new AltiVec instructions. Fill in new
6659 fields of frame data.
6660 (frame_get_saved_regs): Fill in information for AltiVec registers.
6661
6662 2002-03-27 Jim Blandy <jimb@redhat.com>
6663
6664 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
6665 a function; leave this macro here to invoke that function.
6666 (symbol_init_mangled_name): Declaration for that function.
6667 * symtab.c (symbol_init_mangled_name): New function.
6668
6669 2002-03-27 Andrew Cagney <ac131313@redhat.com>
6670
6671 * valarith.c: Replace strerror with safe_strerror.
6672 * tracepoint.c: Ditto.
6673 * lin-lwp.c: Ditto.
6674 * go32-nat.c: Ditto.
6675 * inflow.c: Ditto.
6676 * gnu-nat.c: Ditto.
6677
6678 2002-03-27 Andreas Schwab <schwab@suse.de>
6679
6680 * event-top.c (command_line_handler): Remove useless if.
6681
6682 2002-03-27 Andreas Jaeger <aj@suse.de>
6683
6684 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
6685 comment.
6686
6687 2002-03-27 Michal Ludvig <mludvig@suse.cz>
6688
6689 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
6690 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
6691 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
6692 (x86_64_linux_dr_get_status, supply_gregset),
6693 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
6694 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
6695 (x86_64_register_info_table): Add.
6696 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
6697 (x86_64_register_raw_size, x86_64_register_virtual_type),
6698 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
6699 general x86_64_register_info_table.
6700 (i386_gdbarch_init): gdbarch_register_bytes is now set
6701 dynamicaly during initialization.
6702 * regformats/reg-x86-64.dat: Synced with changes to registers above.
6703 * gdbserver/linux-x86-64-low.c: Ditto.
6704
6705 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
6706
6707 * gdbserver/server.c (main): Call target_signal_to_host_p
6708 and target_signal_to_host on signals received from the remote.
6709 * gdbserver/remote-utils.c (prepare_resume_reply): Call
6710 target_signal_from_host on signals sent to the remote.
6711 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
6712 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
6713
6714 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
6715
6716 * signals/signals.c: Include "server.h" in gdbserver build.
6717 (target_signal_from_name): Don't use STREQ.
6718 (_initialize_signals): Likewise. Don't include function in
6719 gdbserver build.
6720
6721 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
6722
6723 * signals.c: Moved to...
6724 * signals/signals.c: Here.
6725 * Makefile (signals.o): Update.
6726
6727 2002-03-26 Jeff Law (law@redhat.com)
6728
6729 * somread.c (som_symtab_read): Remove some commented out code and
6730 updated related comments. Do not set the minimal symbol table to
6731 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
6732 in a dynamic executable.
6733 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
6734 where we are unable to find the minimal symbol for the given
6735 PC value.
6736
6737 2002-03-25 Jeff Law (law@redhat.com)
6738
6739 * linux-proc.c (read_mapping): Scan up to end of line for filename.
6740
6741 2002-03-25 Michal Ludvig <mludvig@suse.cz>
6742
6743 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
6744
6745 2002-03-23 Andrew Cagney <ac131313@redhat.com>
6746
6747 * command.h: Update copyright.
6748 (struct cmd_list_element): Replace definition with opaque
6749 declaration.
6750 (enum cmd_types): Document that it will eventually be moved to
6751 cli/cli-decode.h
6752 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
6753 (MALLOCED_REPLACEMENT): Delete macro.
6754 * Makefile.in (cli_decode_h): Add $(command_h).
6755 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
6756 * top.c: Include "cli/cli-decode.h".
6757 * completer.c: Include "cli/cli-decode.h".
6758 * maint.c: Include "cli/cli-decode.h".
6759 * cli/cli-decode.h: Include "command.h".
6760 (enum command_class): Delete.
6761 (enum cmd_types): Comment out.
6762 (enum cmd_auto_boolean): Delete.
6763 (enum var_types): Delete.
6764
6765 2002-03-23 Andrew Cagney <ac131313@redhat.com>
6766
6767 * cli/cli-decode.c: Include "gdb_assert.h".
6768 (add_set_or_show_cmd): New static function.
6769 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
6770 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
6771 all fields, such as func, from the set command.
6772
6773 2002-03-23 Andrew Cagney <ac131313@redhat.com>
6774
6775 * MAINTAINERS (sh-elf): Change warning flag to -w.
6776
6777 2002-03-23 Andrew Cagney <cagney@redhat.com>
6778
6779 * defs.h (error): Add printf format attribute.
6780 * thread-db.c (thread_from_lwp): Fix error format string.
6781 * stack.c (parse_frame_specification): Ditto.
6782 * cli/cli-decode.c (undef_cmd_error): Ditto.
6783 * scm-lang.c (scm_lookup_name): Ditto.
6784 * tracepoint.c (trace_error): Ditto.
6785 * remote-utils.c (usage): Ditto.
6786 * remote.c (compare_sections_command): Ditto.
6787 Fix PR gdb/328.
6788
6789 2002-03-22 Andrew Cagney <ac131313@redhat.com>
6790
6791 * gdbtypes.c (append_composite_type_field): New function.
6792 (init_composite_type): New function.
6793 * gdbtypes.h (append_composite_type_field): Declare.
6794 (init_composite_type): Ditto.
6795
6796 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
6797
6798 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
6799 function.
6800 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
6801 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
6802 structure returning convention for SYSV ABI case, but not
6803 for GNU/Linux, FreeBSD, or NetBSD.
6804
6805 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
6806
6807 * symtab.h (lookup_block_symbol): Add mangled_name argument
6808 to prototype.
6809
6810 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
6811 with new mangled_name argument.
6812 * linespec.c (decode_line_1): Likewise.
6813 * valops (value_of_this): Likewise.
6814 * symtab.c (lookup_transparent_type): Likewise.
6815 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
6816 (lookup_symbol): If we are given a mangled name, pass it down
6817 to lookup_symbol_aux.
6818 (lookup_block_symbol): If we are given a mangled name to check
6819 against, only return symbols which match it.
6820
6821 2002-03-22 Christopher Faylor <cgf@redhat.com>
6822
6823 * win32-nat.c (child_create_inferior): Check for proper shell to use
6824 here, in case the user changes it on the fly.
6825 (_initialize_inftarg): Remove shell path considerations.
6826
6827 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
6828
6829 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
6830 for gdbarch_max_register_raw_size and max_register_virtual_size.
6831 Adjust copyright year.
6832
6833 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
6834
6835 * dbxread.c (process_one_symbol): Extend the first N_SLINE
6836 in a function to cover the entire beginning of the function
6837 as well if it does not already.
6838
6839 2002-03-21 Tom Rix <trix@redhat.com>
6840
6841 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
6842 (rs6000_ptrace64): Renamed from ptrace64.
6843
6844 2002-03-20 Martin M. Hunt <hunt@redhat.com>
6845
6846 * gdbserver/remote-utils.c (remote_open): Don't call
6847 getprotobyname, we're all using TCP here so just use
6848 IPPROTO_TCP.
6849 * gdbserver/gdbreplay.c (remote_open): Ditto.
6850
6851 2002-03-20 Martin M. Hunt <hunt@redhat.com>
6852
6853 * regcache.c (_initialize_regcache): No need to call
6854 build_regcache() at this time; it gets called whenever
6855 the gdbarch changes.
6856
6857 2002-03-20 David O'Brien <obrien@FreeBSD.org>
6858
6859 * sparc-nat.c: Include sys/param.h where possible.
6860
6861 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
6862
6863 Fix PR gdb/422.
6864 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
6865 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
6866 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
6867 complex types.
6868 * stabsread.c (rs6000_builtin_type): Likewise.
6869 (read_sun_floating_type): Likewise.
6870
6871 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6872
6873 * stabsread.c (read_member_functions): Remove skip code for duplicate
6874 constructor/destructor methods. Use standard parsing for these
6875 methods and just do not chain them to the list of methods after
6876 parsing.
6877
6878 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
6879
6880 * coffread.c: Remove redundant static declarations. Replace
6881 occurrences of `PTR' with `void *'.
6882 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
6883 * top.h (quit_cover): Likewise.
6884 * defs.h (catch_errors): Likewise.
6885
6886 2002-03-18 Andrew Cagney <ac131313@redhat.com>
6887
6888 * defs.h (XMALLOC): Define.
6889 * gdb-events.sh (XMALLOC): Delete macro.
6890 * gdb-events.c, gdb-events.h: Regenerate.
6891 * gdbarch.sh (XMALLOC): Delete macro.
6892 * gdbarch.c: Regenerate.
6893 * serial.c (XMALLOC): Delete macro.
6894 * ui-file.c (XMALLOC): Ditto.
6895 * ser-unix.h (XMALLOC): Ditto.
6896 * sh-tdep.c (XMALLOC): Ditto.
6897 * ui-out.c (XMALLOC): Ditto.
6898 * utils.c (XMALLOC): Ditto.
6899 * i386-tdep.c (XMALLOC): Ditto.
6900 * gdb-events.c (XMALLOC): Ditto.
6901 * d10v-tdep.c (XMALLOC): Ditto.
6902 * cli-out.c (XMALLOC): Ditto.
6903
6904 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
6905 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
6906 * ui-file.c, ui-out.c: Ditto.
6907
6908 2002-03-18 Andrew Cagney <ac131313@redhat.com>
6909
6910 * command.h (struct cmd_list_element): Add field context.
6911 (set_cmd_context, get_cmd_context): Declare.
6912 * cli/cli-decode.h: Ditto.
6913 * cli/cli-decode.c (get_cmd_context): New function.
6914 (set_cmd_context): New function.
6915 (add_cmd): Initialize context.
6916 Part of fixing PR gdb/145 and PR gdb/146.
6917
6918 2002-03-17 Andrew Cagney <ac131313@redhat.com>
6919
6920 * cli/cli-decode.c (cmd_type): New function.
6921 * command.h (cmd_type): Declare.
6922 * infrun.c (set_schedlock_func): Call function cmd_type.
6923 * kod.c (kod_set_os): Call cmd_type.
6924 * cris-tdep.c (cris_version_update): Use function cmd_type.
6925 (cris_mode_update, cris_abi_update): Ditto.
6926
6927 * command.h: (execute_cmd_post_hook): Declare.
6928 (execute_cmd_pre_hook): Declare.
6929 * cli/cli-script.c (clear_hook_in_cleanup): New function.
6930 (execute_cmd_post_hook, execute_cmd_pre_hook): New
6931 functions. Execute pre/post hook while ensuring that afterwords
6932 hook_in is cleared.
6933 * top.c (execute_command): Use execute_cmd_post_hook, and
6934 execute_cmd_pre_hook to execute pre/post commands.
6935 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
6936 hook_stop_stub.
6937 (hook_stop_stub): Call execute_cmd_pre_hook.
6938
6939 2002-03-17 Andrew Cagney <ac131313@redhat.com>
6940
6941 * kod.c (kod_set_os): Revert previous change. Is called by ``info
6942 set'' and this leads to a core dump. Move xstrdup of
6943 operating_system to after check that it is not NULL.
6944
6945 2002-03-17 Andrew Cagney <ac131313@redhat.com>
6946
6947 * kod.c (kod_set_os): Remove unnecessary check that
6948 ``command->type'' is set_cmd.
6949
6950 * valprint.c (set_input_radix): Use input_radix.
6951 (set_output_radix): Use output_radix.
6952 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
6953 isn't reverted.
6954
6955 2002-03-16 Andrew Cagney <ac131313@redhat.com>
6956
6957 * value.h (struct value): Delete field ``substring_addr''. Change
6958 aligner fields to force_doublest_align, force_longest_align,
6959 force_core_addr_align and force_pointer_aligh.
6960
6961 * value.h (struct value): Fix typo in above change.
6962
6963 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6964
6965 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
6966 to fix internal_error from ``maintenance print architecture''.
6967
6968 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6969
6970 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
6971 for gcc versions after gcc-2.8.1.
6972
6973 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6974
6975 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
6976 for method resolution. Restore adjustment of ``this'' pointer after
6977 calling value_struct_elt, which was accidentally removed during the
6978 HP merge.
6979
6980 2002-03-15 Andrew Cagney <ac131313@redhat.com>
6981
6982 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
6983 value_of_register.
6984 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
6985 get_saved_register.
6986 * value.h (value_of_register): Update.
6987
6988 2002-03-14 Richard Henderson <rth@redhat.com>
6989
6990 * configure.in: Detect declaration for canonicalize_file_name.
6991 * utils.c (canonicalize_file_name): Declare, if needed.
6992 (gdb_realpath): Prefer realpath if available and usable.
6993 * config.in, configure: Rebuild.
6994
6995 2002-03-14 Richard Henderson <rth@redhat.com>
6996
6997 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
6998 a constant array bound.
6999
7000 * MAINTAINERS: Add myself to write-after-approval.
7001
7002 2002-03-14 Michael Snyder <msnyder@redhat.com>
7003
7004 * symfile.c (syms_from_objfile): Return immediately if no syms.
7005 (symbol_file_add): Return immediately if no syms.
7006 (find_sym_fns): Return immediately if no syms.
7007
7008 2002-03-13 Michal Ludvig <mludvig@suse.cz>
7009
7010 * gdbserver/remote-util.c (remote_open): Print remote-side's
7011 IP address when remote debugging over the network.
7012
7013 2002-03-12 David O'Brien <obrien@FreeBSD.org>
7014
7015 * config/sparc/fbsd.mh: Fix copyright.
7016 * config/sparc/fbsd.mt: Likewise.
7017
7018 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
7019
7020 * MAINTAINERS: Fix typo in name of gdb warnings option.
7021 (x86-64): Fix formating so that this can be parsed by awk.
7022
7023 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
7024
7025 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
7026 * defs.h: Include "gdb/signals.h".
7027 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
7028
7029 2002-03-10 Michal Ludvig <mludvig@suse.cz>
7030
7031 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7032 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
7033 from x86-64-tdep.h
7034
7035 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
7036 Don Howard <dhoward@redhat.com>
7037
7038 * mips-tdep.c (ST0_FR): Define.
7039 (mips2_fp_compat): New function, temporarily disabled.
7040 (mips_read_fp_register_single): New function.
7041 (mips_read_fp_register_double): New function.
7042 (mips_print_register): Use them.
7043 (do_fp_register_row): Likewise.
7044
7045 2002-03-09 Andrew Cagney <ac131313@redhat.com>
7046
7047 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
7048 approval''.
7049
7050 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7051
7052 * stabsread.c (read_member_functions): Fix is_stub test for
7053 static member functions, improve comment.
7054
7055 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
7056
7057 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
7058 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
7059 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
7060 commands that set boolean values.
7061 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
7062 (arm_rdi_resume): Always initialize PC.
7063 (arm_rdi_open): Don't use rslt as a boolean.
7064 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
7065 (arm_rdi_fetch_registers, arm_rdi_store_registers)
7066 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
7067 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
7068
7069 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
7070
7071 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
7072 * configure: Rebuilt.
7073
7074 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
7075
7076 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
7077 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
7078
7079 2002-03-06 Andrew Cagney <ac131313@redhat.com>
7080
7081 * cli/cli-decode.c (set_cmd_completer): New function.
7082 * command.h (set_cmd_completer): Declare.
7083 * cli/cli-decode.h (set_cmd_completer): Ditto.
7084
7085 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
7086 * cli/cli-cmds.c (init_cli_cmds): Ditto.
7087 * win32-nat.c (_initialize_inftarg): Ditto.
7088 * remote-rdi.c (_initialize_remote_rdi): Ditto.
7089 * proc-api.c (_initialize_proc_api): Ditto.
7090 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
7091 * source.c (_initialize_source): Ditto.
7092 * exec.c (_initialize_exec): Ditto.
7093 * solib.c (_initialize_solib): Ditto.
7094 * top.c (init_main): Ditto.
7095 * tracepoint.c (_initialize_tracepoint): Ditto.
7096 * symfile.c (_initialize_symfile): Ditto.
7097 * printcmd.c (_initialize_printcmd): Ditto.
7098 * infcmd.c (_initialize_infcmd): Ditto.
7099 * corefile.c (_initialize_core): Ditto.
7100
7101 2002-03-05 Andrew Cagney <ac131313@redhat.com>
7102
7103 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
7104
7105 2002-03-05 Andrew Cagney <ac131313@redhat.com>
7106
7107 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
7108
7109 2002-03-05 Andrew Cagney <ac131313@redhat.com>
7110
7111 * NEWS: Update headings, 5.2 has branched.
7112
7113 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
7114
7115 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
7116 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
7117 (register_addr, REGISTER_RAW_SIZE): Likewise.
7118 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
7119 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
7120
7121 2002-03-03 Michal Ludvig <mludvig@suse.cz>
7122
7123 * MAINTAINERS (x86-64): Add myself.
7124 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
7125 changed value_ptr -> struct value *
7126
7127 2002-03-01 David O'Brien <obrien@FreeBSD.org>
7128
7129 * configure.host (sparc64-*-freebsd): Add.
7130 * configure.tgt: Likewise.
7131 * config/sparc/fbsd.mh: New file.
7132 * config/sparc/fbsd.mt: Likewise.
7133 * config/sparc/nm-fbsd.h: Likewise.
7134 * config/sparc/tm-fbsd.h: Likewise.
7135
7136 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
7137
7138 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
7139 regformats/reg-s390x.dat.
7140
7141 2002-03-01 Andrew Cagney <ac131313@redhat.com>
7142
7143 * utils.c: Add FIXME explaining true/false problem.
7144
7145 2002-02-28 Andrew Cagney <ac131313@redhat.com>
7146
7147 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
7148
7149 2002-02-28 Michael Chastain <mec@shout.net>
7150
7151 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
7152
7153 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
7154
7155 * gdbserver/linux-s390-low.c: New file.
7156 * regformats/reg-s390.dat: New file.
7157 * regformats/reg-s390x.dat: New file.
7158 * gdbserver/configure.srv: Add S/390.
7159 * gdbserver/Makefile.in: Add S/390.
7160 * configure.tgt: Enable gdbserver for S/390.
7161
7162 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
7163
7164 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
7165 first line of the doc string for "info dos", except at the end of
7166 the sentence, since the short help stops at the first period.
7167
7168 2002-02-28 Jason Merrill <jason@redhat.com>
7169
7170 * dwarf2read.c (dwarf_cfi_name): Add new codes.
7171
7172 2002-02-27 Fred Fish <fnf@redhat.com>
7173
7174 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
7175 comment (dumy -> dummy).
7176
7177 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7178
7179 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
7180
7181 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
7182
7183 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
7184
7185 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
7186
7187 * gdbserver/acconfig.h: New file.
7188 * gdbserver/i387-fp.c: New file.
7189 * gdbserver/i387-fp.h: New file.
7190 * gdbserver/linux-x86-64.c: New file.
7191 * regformats/reg-x86-64.dat: New file.
7192 * configure.tgt: Add x86_64-*-linux* gdbserver support.
7193 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
7194 * gdbserver/configure.in: Add support for regsets.
7195 * gdbserver/config.in: Regenerate.
7196 * gdbserver/configure: Regenerate.
7197 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
7198 * gdbserver/linux-low.h: New file.
7199 * gdbserver/linux-low.c: Include "linux-low.h". Add support
7200 for regsets.
7201 * gdbserver/linux-arm-low.c: Include "linux-low.h".
7202 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
7203 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
7204 * gdbserver/linux-mips-low.c: Include "linux-low.h".
7205 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
7206 * gdbserver/linux-sh-low.c: Include "linux-low.h".
7207 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
7208 "i387-fp.h". Add PTRACE_GETREGS and friends.
7209 * gdbserver/regcache.c (supply_register): New function.
7210 (supply_register_by_name): New function.
7211 (collect_register): New function.
7212 (collect_register_by_name): New function.
7213
7214 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
7215
7216 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
7217 (config.status): Add configure.srv dependency.
7218 (server_h): Add config.h dependency.
7219
7220 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
7221
7222 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
7223 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
7224 * gdbserver/configure.srv: Change i386-*-linux* to use
7225 reg-i386-linux.o.
7226
7227 2002-02-26 Andrew Cagney <ac131313@redhat.com>
7228
7229 * x86-64-tdep.c: Re-indent. Update copyright date.
7230
7231 2002-02-26 Andrew Cagney <ac131313@redhat.com>
7232
7233 From Michal Ludvig <mludvig@suse.cz>:
7234 * x86-64-tdep.c (value.h): Delete.
7235 (gdb_assert.h): Include.
7236 (x86_64_register_convert_to_virtual,
7237 x86_64_register_convert_to_raw ): Add check which lets only
7238 floating-point values to be converted.
7239 (value_push): Delete.
7240 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
7241 (i386_gdbarch_init): Number of register_bytes fixed.
7242
7243 2002-02-26 Andrew Cagney <ac131313@redhat.com>
7244
7245 * MAINTAINERS: Add x86-64 target.
7246
7247 2002-02-26 Andrew Cagney <ac131313@redhat.com>
7248
7249 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
7250 * osfsolib.c (solib_map_sections): Ditto.
7251 * irix5-nat.c (solib_map_sections): Ditto.
7252 * corelow.c (gdb_check_format): Ditto.
7253 * symfile.c (symfile_bfd_open): Ditto.
7254 * solib.c (solib_map_sections): Ditto.
7255 Fix PR gdb/354.
7256
7257 2002-02-26 Andrew Cagney <ac131313@redhat.com>
7258
7259 * remote.c (_initialize_remote): By default, disable ``e'' and
7260 ``E'' step out-of-range packets.
7261
7262 2002-02-26 Andreas Schwab <schwab@suse.de>
7263
7264 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
7265 m68k_linux_frame_saved_pc.
7266 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
7267 in_sigtramp.
7268 (SIGCONTEXT_PC_OFFSET): Remove.
7269 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
7270 m68k_linux_sigtramp_saved_pc): New functions.
7271 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
7272 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
7273 (UCONTEXT_PC_OFFSET): Define.
7274 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
7275 non-RT and RT signal trampolines.
7276
7277 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
7278
7279 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
7280 (TARGET_NBPG, STACK_END_ADDR): Delete
7281 (VARIABLES_INSIDE_BLOCK): Delete.
7282
7283 2002-02-25 Andrew Cagney <ac131313@redhat.com>
7284
7285 * utils.c (perror_with_name): Make string parameter constant.
7286 (print_sys_errmsg): Ditto.
7287 (query): Ditto.
7288 * defs.h (perror_with_name): Update.
7289 (print_sys_errmsg): Update.
7290 (query): Update.
7291
7292 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
7293
7294 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
7295 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
7296
7297 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7298
7299 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
7300 if it already matches the current architecture from the exec file.
7301 Include arch-utils.h for gdbarch_info_init prototype.
7302 * Makefile.in (rs6000-nat.o): Update dependencies.
7303
7304 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
7305
7306 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
7307 list of exported variables.
7308
7309 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
7310
7311 * gdbserver/configure.srv: New file.
7312 * gdbserver/configure.in: Use configure.srv instead
7313 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
7314 from it.
7315 * gdbserver/configure: Regenerated.
7316 * gdbserver/terminal.h: New file.
7317 * gdbserver/Makefile.in: Update for configure changes. Remove
7318 more unneeded include paths.
7319
7320 2002-02-24 Andrew Cagney <ac131313@redhat.com>
7321
7322 From wiz at danbala:
7323 * config/sparc/tm-sp64.h: Fix grammar and typos.
7324 Fix PR gdb/287.
7325
7326 2002-02-24 Andrew Cagney <ac131313@redhat.com>
7327
7328 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
7329 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
7330 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
7331 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
7332 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
7333 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
7334 * s390-tdep.c: Ditto.
7335 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
7336 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
7337 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
7338 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
7339 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
7340 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
7341 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
7342 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
7343 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
7344 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
7345 Fix PR gdb/378.
7346
7347 2002-02-23 Andrew Cagney <ac131313@redhat.com>
7348
7349 * lin-thread.c: Delete file.
7350 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
7351 to gdb_proc_service.h.
7352 * configure: Re-generate.
7353
7354 * ocd.c (ocd_open): Do not try to open the "ocd" device.
7355 * serial.c (serial_open): Delete check for "ocd".
7356 Fix PR gdb/349.
7357
7358 * Makefile.in (linux-thread.o): Delete target.
7359 * linux-thread.c: Delete file.
7360
7361 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
7362 renamed SH files to be consistent.
7363
7364 * symtab.c (sort_search_symbols): Use xfree.
7365
7366 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
7367
7368 * arm-linux-tdep.c (arm_linux_init_abi): Register
7369 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
7370 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
7371 definition with undef, since we don't want the sysvr4 definition.
7372 (SKIP_TRAMPOLINE_CODE): Likewise.
7373
7374 2002-02-23 Andrew Cagney <ac131313@redhat.com>
7375
7376 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
7377
7378 * configure.in: (AC_CHECK_FUNCS) Added test for
7379 canonicalize_file_name Regenerated.
7380 * config.in, configure: Regenerated.
7381 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
7382 defined use canonicalize_file_name.
7383
7384 2002-02-23 Michael Chastain <mec@shout.net>
7385
7386 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
7387
7388 2002-02-23 Andrew Cagney <ac131313@redhat.com>
7389
7390 * README: Remove references to cygnus.com.
7391 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
7392 dot com'' form. Remove references to cygnus.com and sourceware.
7393
7394 2002-02-23 Andrew Cagney <ac131313@redhat.com>
7395
7396 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
7397 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
7398 1003.1-2001 no longer allows "head -1".
7399 * gdb/Makefile.in (version.c): Likewise.
7400 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
7401 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
7402 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
7403
7404 2002-02-23 Andrew Cagney <ac131313@redhat.com>
7405
7406 * cli/cli-decode.c (cmd_cfunc_eq): New function.
7407 * command.h (cmd_cfunc_eq): Declare.
7408 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
7409
7410 * cli/cli-cmds.h (is_complete_command): Change parameter to a
7411 ``struct cmd_list_element *''.
7412 * cli/cli-cmds.c (is_complete_command): Update. Use
7413 cmd_cfunc_eq.
7414 * top.c (execute_command): Pass the command to
7415 is_complete_command.
7416 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
7417
7418 2002-02-23 Andrew Cagney <ac131313@redhat.com>
7419
7420 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
7421 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
7422 architecture defines.
7423 * s390-tdep.c (s390_gdbarch_init): Likewise.
7424
7425 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
7426
7427 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
7428 (arm_linux_push_arguments): Likewise.
7429 (arm_linux_init_abi): Register them. Also register linux-specific
7430 call_dummy_words.
7431 (find_minsym_and_objfile): Use strcmp, not STREQ.
7432 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
7433 (arm_linux_call_dummy_words): Delete declaration.
7434 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
7435 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
7436 declarations.
7437 (LOWEST_PC): Delete.
7438
7439 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7440
7441 * maint.c (print_section_info): Do not prepend `0x' to filepos
7442 output, it will be handled by local_hex_string_custom.
7443
7444 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
7445
7446 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
7447 (store_newfpe_double, store_newfpe_extended, store_fpregister)
7448 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
7449
7450 2002-02-22 Jim Blandy <jimb@redhat.com>
7451
7452 Indicate that the bcache functions don't change the strings
7453 they're passed.
7454 * bcache.h (bcache, hash): Add `const' keywords to declarations.
7455 * bcache.c (bcache, hash): Add `const' keywords to definitions.
7456
7457 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
7458
7459 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
7460
7461 2002-02-21 Christopher Faylor <cgf@redhat.com>
7462
7463 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
7464 find the complete path to a loaded DLL.
7465
7466 2002-02-21 Fred Fish <fnf@redhat.com>
7467
7468 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
7469 that marks the end of the range of a function, enter a line number
7470 entry that has a line number of zero and a PC offset that matches
7471 the end of the function. This starts a range of PC's for which no
7472 line number information is known.
7473 * symtab.c (find_pc_sect_line): If our best fit is in a range of
7474 PC's for which no line number info is found (line number is zero)
7475 then we didn't find any valid line information.
7476 * symtab.h: Document use of zero line number entry.
7477
7478 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
7479
7480 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
7481 (have_ptrace_getvrregs): Define for run time checks.
7482 (gdb_vrregset_t): New type for Altivec register handling.
7483 (fetch_register, store_register): Fetch/store altivec register
7484 when needed.
7485 (fetch_altivec_register, store_altivec_register): New functions.
7486 (supply_vrregset, fill_vrregset): New functions.
7487 (fetch_altivec_registers, store_altivec_registers): New functions.
7488 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
7489 registers as well.
7490
7491 2002-02-21 Jiri Smid <smid@suse.cz>
7492
7493 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
7494
7495 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
7496
7497 * Makefile.in (armnbsd-nat.o): Update dependencies.
7498 * armnbsd-nat.c (supply_gregset): New function. Common code to
7499 supply the integer register set.
7500 (supply_fparegset): New function. Similar for FPA registers.
7501 (fetch_regs, fetch_fp_regs): Use them.
7502 (fetch_core_registers): Likewise.
7503 (fetch_elfcore_registers): New function.
7504 (arm_netbsd_elfcore_fns): New core-file type specification.
7505 (_initialize_arm_netbsd_nat): Register it.
7506
7507 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
7508
7509 * armnbsd-nat.c: Include gdbcore.h.
7510 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
7511 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
7512 'void' to declaration, to shut up ARI.
7513 (fetch_core_registers): Make static. Rewrite using supply_register.
7514 (arm_netbsd_core_fns): New core-file type specification.
7515 (_initialize_arm_netbsd_nat): New function.
7516
7517 2002-02-21 Christopher Faylor <cgf@redhat.com>
7518
7519 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
7520 value.
7521
7522 2002-02-20 Christopher Faylor <cgf@redhat.com>
7523
7524 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
7525 fails.
7526
7527 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
7528
7529 * jv-exp.y (parse_number): Change type of implicit longs
7530 to builtin_type_uint64.
7531
7532 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
7533
7534 * gdbserver/linux-low.c (mywait): Change argument to waitpid
7535 to be an integer instead of a `union wait'.
7536
7537 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
7538
7539 * mips-linux-nat.c: Call the operating system GNU/Linux.
7540 * mips-linux-tdep.c: Likewise.
7541 * mips-tdep.c: Likewise.
7542
7543 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
7544
7545 Fix PR gdb/265.
7546 * jv-exp.y (parse_number): Handle 64-bit integers.
7547
7548 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
7549
7550 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
7551 AC_STDC_HEADERS to AC_HEADER_STDC.
7552 * gdbserver/configure: Regenerated.
7553
7554 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
7555
7556 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
7557 is defined.
7558 * sparc-tdep.c (get_longjmp_target): Likewise.
7559
7560 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
7561
7562 * News: Add news about ARM and Multi-arch. Mention the new target
7563 arm*-*-netbsd*.
7564
7565 2002-02-19 Jim Blandy <jimb@redhat.com>
7566
7567 * stabsread.c (error_type_complaint): Improve error message.
7568
7569 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
7570
7571 * gdbserver/README: Update documentation.
7572 * gdbserver/configure.in: Update configury to match documentation.
7573 * gdbserver/Makefile.in: Likewise.
7574 * gdbserver/configure: Regenerated.
7575 * gdbserver/aclocal.m4: New file, generated by aclocal.
7576 * gdbserver/config.in: New file, generated by autoheader.
7577
7578 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
7579
7580 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
7581 armnbsd-nat.c.
7582
7583 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
7584
7585 * arm-tdep.h (enum arm_float_model): New enum.
7586 (struct gdbarch_tdep): Add fp_model.
7587 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
7588 up floating-point conversions until we know the floating-point model
7589 in use by the inferior. Don't complain about being unable to
7590 determine the ABI of the inferior when we don't have one.
7591 (arm_extract_return_value): Support different floating-point models.
7592 (arm_store_return_value): Likewise.
7593 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
7594 ARM_FLOAT_SOFT.
7595 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
7596
7597 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7598
7599 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
7600 of ``current_gdbarch''.
7601
7602 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
7603
7604 * armnbsd-nat.c : ANSIfy all function declarations.
7605 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
7606 (fetch_inferior_registers): Re-implement in terms of above.
7607 (store_register, store_regs, store_fp_register, store_fp_regs): New.
7608 (store_inferior_registers): Re-implement in terms of above.
7609
7610 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
7611
7612 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
7613 kernel.
7614 * arm-linux-tdep.c: Likewise.
7615 * config/arm/tm-linux.h: Likewise.
7616
7617 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
7618
7619 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
7620 * config/arm/nbsd.mt (TM_FILE): Delete.
7621 * config/arm/tm-nbsd.h: Delete.
7622
7623 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
7624
7625 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
7626 Initialize CALL_DUMMY_LENGTH.
7627
7628 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
7629
7630 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
7631 function.
7632 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
7633 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
7634 defines one thing and that is incorrect for this port.
7635 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
7636
7637 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
7638
7639 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
7640
7641 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
7642
7643 * win32-nat.c (display_selector): New function. Displays information
7644 about the information returned by GetThreadSelectorEntry API function.
7645 (display_selectors): New function. Displays the infomation of
7646 the selector given as argument, or of CS, DS ans FS selectors
7647 if no argument is given.
7648 ( _initialize_inftarg): Add "w32" as info prefix command.
7649 Add "info w32 selector" as command calling display_selectors.
7650
7651 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
7652
7653 * i386-tdep.c (get_longjmp_target): Fix compilation failure
7654 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
7655 if not defined.
7656
7657 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
7658
7659 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
7660
7661 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
7662
7663 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
7664 (arm_fix_call_dummy): Call it.
7665 (arm_call_dummy_breakpoint_offset): Delete.
7666 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
7667 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
7668
7669 2002-02-18 Andrew Cagney <ac131313@redhat.com>
7670
7671 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
7672 Default to func_frame_chain_valid.
7673 * gdbarch.h, gdbarch.c: Re-generate.
7674 * frame.h (FRAME_CHAIN_VALID): Delete definition.
7675
7676 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
7677
7678 * ppc-linux-nat.c: Update copyright.
7679 (fetch_register, store_register): Add tid parameter, don't compute
7680 tid here.
7681 (fetch_ppc_registers, store_ppc_registers): Add tid
7682 parameter. Pass it along to callees.
7683 (fetch_inferior_registers, store_inferior_registers): Compute tid
7684 here, and pass it to calleed functions.
7685 (fill_gregset, supply_fpregset): Clean up formatting.
7686
7687 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
7688
7689 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
7690 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
7691
7692 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
7693
7694 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
7695 * gdbarch.c gdbarch.h: Regenerate.
7696 * breakpoint.c (create_longjmp_breakpoint): Always compile this
7697 function.
7698 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
7699 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
7700 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
7701
7702 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
7703 * arm-tdep.c (arm_get_longjmp_target): New function.
7704 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
7705 this to a positive value register arm_get_longjmp_target as the
7706 longjmp handler.
7707 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
7708 (arm_linux_init_abi): Set up longjmp description in tdep.
7709 * armnbsd-nat.c (get_longjmp_target): Delete.
7710 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
7711 description in tdep.
7712 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
7713 (get_longjmp_target): Delete declaration.
7714 (GET_LONGJMP_TARGET): Delete.
7715 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
7716 (GET_LONGJMP_TARGET): Delete.
7717
7718 2002-02-17 Kevin Buettner <kevinb@redhat.com>
7719
7720 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
7721 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
7722 of ``current_gdbarch''.
7723
7724 2002-02-17 Tom Tromey <tromey@redhat.com>
7725
7726 * cli/cli-cmds.c (compare_strings): New function.
7727 (complete_command): Only print each unique item once.
7728 * completer.h (complete_line): Declare.
7729 * completer.c (complete_line): New function.
7730 (line_completion_function): Use it.
7731
7732 2002-02-16 Andrew Cagney <ac131313@redhat.com>
7733
7734 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
7735 * gdbarch.h, gdbarch.c: Re-generate.
7736
7737 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
7738
7739 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
7740
7741 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
7742
7743 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
7744 * valops.c (value_arg_coerce): Don't take the address of a reference
7745 to convert an argument to a reference.
7746
7747 2002-02-15 Christopher Faylor <cgf@redhat.com>
7748
7749 * win32-nat.c (get_image_name): New function.
7750 (handle_load_dll): Use get_image_name function.
7751 (get_child_debug_event): Avoid registering debug events until possibly
7752 execed process is started.
7753 (child_create_inferior): Allow invocation via shell so that command
7754 line redirection, etc. works ok.
7755 (_initialize_inftarg): Add new command: "set shell" to control whether
7756 a shell is used to start a process.
7757
7758 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
7759
7760 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
7761 instead of find_register_by_number.
7762 (cannot_store_register): Likewise.
7763
7764 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
7765
7766 * dwarf2read.c: Replace fprintf (stderr, ...) by
7767 fprintf_unfiltered (gdb_stderr, ...).
7768
7769 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
7770
7771 * gdbserver/gdbserver.1: Document --attach.
7772
7773 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
7774
7775 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
7776 descriptions.
7777 * arm-tdep.c (arm_default_arm_le_breakpoint)
7778 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
7779 (arm_default_thumb_be_breakpoint): New. Initialize them from
7780 traditional breakpoint defines.
7781 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
7782 (arm_gdbarch_init): Initialize new breakpoint variables.
7783 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
7784 (arm_linux_init_abi): Initialize linux-specific breakpoint.
7785 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
7786 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
7787 code out to ...
7788 (arm_netbsd_init_abi_common): ... here; new function.
7789 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
7790 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
7791 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
7792 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
7793
7794 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
7795
7796 * arm-tdep.h (enum arm_abi): New enum.
7797 (struct gdbarch_tdep): New structure.
7798 (LOWEST_PC): Provide a default.
7799 (arm_gdbarch_register_os_abi): Declare new function.
7800 * arm-tdep.c (arm_abi_names): New array.
7801 (process_note_abi_tag_sections): New function.
7802 (get_elfosabi): New function.
7803 (arm_gdbarch_register_os_abi): New function.
7804 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
7805 support for that ABI has been built in, then call the appropriate
7806 configuration routine. Use gdbarch_num_regs() to get the number
7807 of registers.
7808 (arm_dump_tdep): New function.
7809 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
7810 place-holder functions.
7811 (_initialize_arm_tdep): Register them.
7812 * config/arm/tm-arm.h (LOWEST_PC): Delete.
7813
7814 * armnbsd-tdep.c: New file.
7815 * Makefile.in (armnbsd-tdep.o): Add dependencies.
7816 * config/arm/nbsd.mt (TDEPFILES): Add it.
7817 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
7818
7819 * armnbsd-nat.c: Include regcache.h.
7820 * Makefile.in (armnbsd-nat.o): Update dependency list.
7821
7822 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
7823
7824 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
7825
7826 * gdbserver/Makefile.in: Fix typos in target rules.
7827
7828 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
7829
7830 Fix part of PR gdb/267.
7831 * linespec.c (find_methods): Handle constructors specially for now.
7832
7833 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
7834
7835 * arm-tdep.c (arm_push_arguments): Eliminate special float type
7836 handling.
7837 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
7838 standard_coerce_float_to_double().
7839
7840 2002-02-14 Christopher Faylor <cgf@redhat.com>
7841
7842 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
7843 GDBINIT_FILENAME.
7844
7845 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
7846
7847 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
7848 find_variant_by_name, because it confuses the multiarch
7849 framework. Return NULL if there isn't an architecture with the
7850 user supplied name, instead of forcing a different one without
7851 recording the change with the multiarch machinery.
7852 (find_variant_by_name): Delete.
7853
7854 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7855
7856 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
7857 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
7858
7859 2002-02-13 Martin M. Hunt <hunt@redhat.com>
7860
7861 * stack.c (print_frame_info_base): When calling
7862 print_frame_info_listing_hook, set current_source_symtab.
7863
7864 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
7865
7866 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
7867 and remove unused $(INCLUDE_DIR).
7868 Add regcache.c to OBS.
7869 Add generated register protocol files to clean target.
7870 Update dependencies for new objects, obsolete old target code.
7871
7872 * gdbserver/linux-low.c: Remove all platform-specific code to
7873 new files. Remove various dead code. Update to use regcache
7874 functionality.
7875 * gdbserver/remote-utils.c (fromhex): Add return statement
7876 to quiet warning.
7877 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
7878 constant.
7879 (input_interrupt): Add integer parameter to match prototype
7880 of a signal handler.
7881 (outreg): Use register_data ().
7882 (prepare_resume_reply): Use gdbserver_expedite_regs.
7883 * gdbserver/server.c (main): Dynamically allocate own_buf because
7884 PBUFSIZ is no longer constant. Use registers_to_string () and
7885 registers_from_string ().
7886 * gdbserver/server.h: No longer include "defs.h". Add prototypes
7887 for error (), fatal (), and warning (). Update definition of
7888 PBUFSIZ to use regcache functionality. Add include guard.
7889 * gdbserver/utils.c (fatal): Add missing ``const''.
7890 (warning): New function.
7891
7892 * regformats/regdat.sh: Include "regcache.h" in generated files.
7893 Provide init_registers () function.
7894 * regformats/regdef.h: Add prototype for set_register_cache ().
7895 Add include guard.
7896
7897 * gdbserver/linux-arm-low.c: New file.
7898 * gdbserver/linux-i386-low.c: New file.
7899 * gdbserver/linux-ia64-low.c: New file.
7900 * gdbserver/linux-m68k-low.c: New file.
7901 * gdbserver/linux-mips-low.c: New file.
7902 * gdbserver/linux-ppc-low.c: New file.
7903 * gdbserver/linux-sh-low.c: New file.
7904
7905 * gdbserver/regcache.c: New file.
7906 * gdbserver/regcache.h: New file.
7907
7908 * gdbserver/low-linux.c: Removed obsolete file.
7909
7910 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
7911
7912 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
7913 * config/i386/linux.mt: Likewise.
7914 * config/ia64/linux.mt: Likewise.
7915 * config/m68k/linux.mh: Likewise.
7916 * config/powerpc/linux.mh: Likewise.
7917 * config/mips/linux.mt: Likewise.
7918
7919 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
7920
7921 * config/i386/i386lynx.mh: Mark gdbserver variables
7922 as (currently) obsolete for this target.
7923 * config/i386/nbsd.mt: Likewise.
7924 * config/i386/nbsdelf.mt: Likewise.
7925 * config/m32r/m32r.mt: Likewise.
7926 * config/m68k/m68klynx.mh: Likewise.
7927 * config/m68k/nbsd.mt: Likewise.
7928 * config/m68k/sun3os4.mh: Likewise.
7929 * config/mips/vr5000.mt: Likewise.
7930 * config/ns32k/nbsd.mt: Likewise.
7931 * config/pa/hppabsd.mh: Likewise.
7932 * config/pa/hppaosf.mh: Likewise.
7933 * config/powerpc/nbsd.mt: Likewise.
7934 * config/rs6000/rs6000lynx.mh: Likewise.
7935 * config/s390/s390.mt: Likewise.
7936 * config/s390/s390x.mt: Likewise.
7937 * config/sparc/sparclynx.mh: Likewise.
7938 * config/sparc/sun4os4.mh: Likewise.
7939 * config/i386/x86-64linux.mt: Likewise.
7940 * config/sparc/linux.mh: Likewise.
7941
7942 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
7943
7944 * configure.tgt: Configure gdbserver only for known working
7945 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
7946 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
7947 SUBDIRS if it is configured. Update comment for ${nativefile}.
7948 * configure: Regenerated.
7949
7950 2002-02-13 Michael Snyder <msnyder@redhat.com>
7951
7952 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
7953
7954 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
7955 (default_gcore_mach): Just return 0, work around a problem in bfd.
7956 (default_gcore_target): OK to return NULL if exec_bfd is null.
7957 (make_mem_sec): Use a cast, avoid a warning.
7958
7959 * procfs.c (find_memory_regions_callback): Use a cast instead of
7960 calling host_pointer_to_address (which complains if
7961 sizeof (host pointer) != sizeof (target pointer)).
7962 (procfs_make_note_section): Avoid overflow in psargs string.
7963
7964 * procfs.c (procfs_make_note_section): Make the default
7965 implementation return an error.
7966
7967 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
7968
7969 * procfs.c (procfs_make_note_section): Provide a default definition
7970 (for alpha-dec-osf4.0f). Fix typos.
7971
7972 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
7973
7974 * linux-proc.c: Add include of regcache.h.
7975 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
7976
7977 2002-02-13 Andrew Cagney <ac131313@redhat.com>
7978
7979 From 2002-01-18 Greg McGary <greg@mcgary.org>:
7980 * memattr.c (create_mem_region): Disallow useless empty region.
7981 Regions are half-open intervals, so allow [A..B) [B..C) as
7982 non-overlapping.
7983
7984 2002-02-13 Michael Chastain <mec@shout.net>
7985
7986 * defs.h: Kill CONST_PTR.
7987 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
7988 * c-lang.c (c_builtin_types): Likewise.
7989 * ch-lang.c (ch_builtin_types): Likewise.
7990 * f-lang.c (f_builtin_types): Likewise.
7991 * language.c (unknown_builtin_types): Likewise.
7992 * m2-lang.c (m2_builtin_types): Likewise.
7993 * p-lang.c (pascal_builtin_types): Likewise.
7994 * scm-lang.c (c_builtin_types): Likewise.
7995
7996 2002-02-13 Keith Seitz <keiths@redhat.com>
7997
7998 * arm-tdep.h (arm_get_next_pc): Add declaration.
7999
8000 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
8001
8002 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
8003 with other related struct-returning functions.
8004 (arm_extract_struct_value_address): New function.
8005 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
8006 initialize float_format, double_format and long_double_format as
8007 appropriate to the endianness of the target.
8008 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
8009 (arm_use_struct_convention): Delete declaration.
8010 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
8011
8012 2002-02-13 Keith Seitz <keiths@redhat.com>
8013
8014 * defs.h (core_addr_to_string_nz): New function.
8015
8016 2002-02-13 Mark Kettenis <kettenis@gnu.org>
8017
8018 Apply missing bits of 2002-01-15 patch.
8019 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
8020 (fill_fpregset): Use i387_fill_fsave.
8021
8022 2002-02-12 Keith Seitz <keiths@redhat.com>
8023
8024 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
8025 (core_addr_to_string_nz): New function.
8026
8027 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
8028
8029 * arm-linux-nat.c: Really include arm-tdep.h.
8030 * config/arm/tm-linux.h (struct type, struct value): Declare.
8031
8032 2002-02-11 Michael Snyder <msnyder@redhat.com>
8033
8034 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
8035 (gcore section): Ifdef for Solaris and Unixware only.
8036 (procfs_do_thread_registers): Unixware needs one lwpstatus
8037 per thread (not one prstatus or pstatus).
8038 (procfs_make_note_section): Iterate only over kernel threads (lwps),
8039 not over all gdb threads. For unixware, call elfcore_write_pstatus
8040 once before iterating over threads.
8041
8042 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
8043
8044 * arm-tdep.h: New file.
8045 * arm-tdep.c: Include arm-tdep.h.
8046 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
8047 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
8048 (arm_print_float_info, arm_register_type, convert_to_extended)
8049 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
8050 (arm_extract_return_value, arm_register_name): Make static.
8051 (arm_software_single_step): Similarly. Fix types in declaration.
8052 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
8053 (arm_store_return_value, arm_store_struct_return): New functions.
8054 (arm_gdbarch_init): Register the above functions. Also register
8055 call_dummy_start_offset, sizeof_call_dummy_words,
8056 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
8057 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
8058 max_register_virtual_size, register_size. Set up
8059 prologue_cache.saved_regs here, rather than ...
8060 (_initialize_arm_tdep): ... here.
8061 * config/arm/tm-arm.h (struct type, struct value): Delete forward
8062 declarations.
8063 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
8064 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
8065 (arm_print_float_info, arm_register_type, convert_to_extended)
8066 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
8067 (arm_extract_return_value, arm_register_name): Delete declarations.
8068 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
8069 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
8070 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
8071 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
8072 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
8073 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
8074 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
8075 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
8076 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
8077 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
8078 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
8079 (arm_get_next_pc): No-longer static -- these are needed by the RDI
8080 interface.
8081 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
8082 * remote-rdi.c remote-rdp.c: Likewise.
8083 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
8084 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
8085 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
8086 definition.
8087
8088 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
8089 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
8090 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
8091 from non-ARM_ prefixed definitions.
8092 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
8093 all uses of above.
8094 * remote-rdi.c remote-rdp.c: Likewise.
8095 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
8096
8097 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
8098
8099 * arm-tdep.c (arm_frameless_function_invocation)
8100 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
8101 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
8102 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
8103 (arm_pop_frame, arm_get_next_pc): Make static.
8104 (arm_gdbarch_init): Register above in gdbarch structure.
8105 (arm_read_fp): Renamed from arm_target_read_fp.
8106 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
8107 * config/arm/tm-arm.h (arm_frameless_function_invocation)
8108 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
8109 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
8110 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
8111 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
8112 (arm_pc_is_thumb_dummy): Delete declarations.
8113 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
8114 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
8115 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
8116 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
8117
8118 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
8119
8120 * symtab.c (compare_search_syms): New function.
8121 (sort_search_symbols): New function.
8122 (search_symbols): Sort symbols after searching rather than
8123 before.
8124
8125 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8126
8127 * NEWS: Linux -> GNU/Linux.
8128
8129 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8130
8131 * gdbarch.sh: For for level one methods, disallow a definition
8132 when partially multi-arched. Add comments explaining rationale.
8133 * gdbarch.h: Re-generate.
8134
8135 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8136
8137 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
8138 multi-arch partial.
8139
8140 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8141
8142 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
8143 field. Use diff -u.
8144 * gdbarch.c: Re-generate.
8145
8146 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8147
8148 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
8149 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
8150 partial.
8151
8152 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8153
8154 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
8155 multi-arch partial.
8156 (PUSH_ARGUMENTS): Switch to using predefault.
8157 * gdbarch.c: Regenerate.
8158
8159 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8160
8161 * valops.c (PUSH_ARGUMENTS): Delete definition.
8162 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
8163 partial. Default to default_push_arguments.
8164 * gdbarch.h, gdbarch.c: Regenerate.
8165
8166 2002-02-09 Andrew Cagney <ac131313@redhat.com>
8167
8168 * defs.h (throw_exception): Rename return_to_top_level. Update
8169 comments.
8170 * utils.c (error_stream, internal_verror, quit): Ditto.
8171 * top.c (throw_exception, catcher): Ditto.
8172 * sparclet-rom.c (sparclet_load): Ditto.
8173 * remote.c (interrupt_query, minitelnet): Ditto.
8174 * remote-sds.c (interrupt_query): Ditto.
8175 * remote-mips.c (mips_error, mips_kill): Ditto.
8176 * ocd.c (interrupt_query): Ditto.
8177 * monitor.c (monitor_interrupt_query): Ditto.
8178 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
8179 * target.h: Update comment.
8180
8181 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
8182
8183 2002-02-09 Andrew Cagney <ac131313@redhat.com>
8184
8185 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
8186 default_double_format.
8187 * gdbarch.h, gdbarch.c: Re-generate.
8188 * findvar.c (floatformat_unknown): Delete variable definition.
8189 * doublest.h (floatformat_unknown): Delete variable declaration.
8190
8191 2002-02-09 Jim Blandy <jimb@redhat.com>
8192
8193 * stabsread.c (read_type): Add code to parse Sun's syntax for
8194 prototyped function types.
8195
8196 2002-02-09 Andrew Cagney <ac131313@redhat.com>
8197
8198 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
8199 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
8200
8201 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8202
8203 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
8204 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
8205 now _initialize_xcoffsolib gets called again and overrides the
8206 commands from solib.c in a native configuration.
8207
8208 2002-02-09 Mark Kettenis <kettenis@gnu.org>
8209
8210 * doublest.c (store_typed_floating): Don't try to return a value.
8211 Fixes PR gdb/290.
8212
8213 2002-02-08 Jim Blandy <jimb@redhat.com>
8214
8215 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
8216 is prototyped and has no arguments, print its argument list as
8217 `(void)'.
8218
8219 2002-02-08 Chris Demetriou <cgd@broadcom.com>
8220
8221 * MAINTAINERS (write-after-approval): Add myself.
8222 (paper-trail): I've escaped!
8223
8224 2002-02-08 Christopher Faylor <cgf@redhat.com>
8225
8226 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
8227 changes.
8228 (_initialize_check_for_gdb_ini): Ditto.
8229
8230 2002-02-08 Martin M. Hunt <hunt@redhat.com>
8231
8232 * win32-nat.c (cygwin_pid_to_str): Fix typo.
8233 xaprintf -> xasprintf.
8234
8235 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
8236
8237 * win32-nat.c: Remove use of printf and sprintf functions.
8238
8239 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
8240
8241 * arm-tdep.c (arm_frame_chain_valid): Make static.
8242 (arm_push_arguments): Likewise.
8243 (arm_gdbarch_init): New function.
8244 (_initialize_arm_tdep): Call it.
8245 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
8246 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
8247 (FRAME_CHAIN_VALID): Delete.
8248 (arm_frame_chain_valid): Delete declaration.
8249 (PUSH_ARGUMENTS): Delete.
8250 (arm_push_arguments): Delete declaration.
8251 (CALL_DUMMY_P): Delete.
8252
8253 2002-02-08 Andrew Cagney <ac131313@redhat.com>
8254 Corinna Vinschen <vinschen@redhat.com>
8255
8256 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
8257 on builtin float types.
8258
8259 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
8260
8261 * utils.c: Include <curses.h> before "bfd.h".
8262 * tui/tui-hooks.c: Likewise.
8263 * tui/tui.c: Likewise.
8264 * tui/tuiCommand.c: Likewise.
8265 * tui/tuiData.c: Likewise.
8266 * tui/tuiDataWin.c: Likewise.
8267 * tui/tuiDisassem.c: Likewise.
8268 * tui/tuiGeneralWin.c: Likewise.
8269 * tui/tuiIO.c: Likewise.
8270 * tui/tuiLayout.c: Likewise.
8271 * tui/tuiRegs.c: Likewise.
8272 * tui/tuiSource.c: Likewise.
8273 * tui/tuiSourceWin.c: Likewise.
8274 * tui/tuiStack.c: Likewise.
8275 * tui/tuiWin.c: Likewise.
8276
8277 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
8278
8279 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
8280 to include space for pseudoregs as well. Update loops accordingly.
8281 (sh_fp_frame_init_saved_regs): Ditto.
8282 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
8283
8284 2002-02-07 Andrew Cagney <ac131313@redhat.com>
8285
8286 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
8287 Add Richard Earnshaw to Arm maintainers.
8288
8289 2002-02-07 Andrew Cagney <ac131313@redhat.com>
8290
8291 * defs.h (warning_begin): Delete declaration.
8292
8293 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
8294 Delete macro.
8295
8296 2002-02-07 Michael Snyder <msnyder@redhat.com>
8297
8298 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
8299 Logic bug, remove misplaced else.
8300
8301 2002-02-07 Klee Dienes <klee@apple.com>
8302
8303 * fork-inferior.c (fork_inferior): Add '!' to the list of
8304 characters that need to be quoted when building a string for the
8305 shell. Quote '!' specifically with a backslash, since CSH chokes
8306 when trying to evaluate "str!str".
8307
8308 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
8309
8310 * rdi-share/host.h: Only provide a typedef for bool if it is not
8311 defined.
8312
8313 2002-02-04 Michael Snyder <msnyder@redhat.com>
8314
8315 * breakpoint.h (enum bptype): Add new overlay event bp type.
8316 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
8317
8318 * breakpoint.c (create_internal_breakpoint): New function.
8319 (internal_breakpoint_number): Moved into create_internal_breakpoint.
8320 (create_longjmp_breakpoint): Use create_internal_breakpoint.
8321 (create_thread_event_breakpoint): Ditto.
8322 (create_solib_event_breakpoint): Ditto.
8323 (create_overlay_event_breakpoint): New function.
8324 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
8325 (update_breakpoints_after_exec): Delete and re-initialize
8326 overlay event breakpoints after an exec. Add FIXME comment
8327 about longjmp breakpoint.
8328 (print_it_typical): Ignore overlay event breakpoints.
8329 (print_one_breakpoint): Ditto.
8330 (mention): Ditto.
8331 (bpstat_what): Do not stop for overlay event breakpoints.
8332 (delete_breakpoint): Don't delete overlay event breakpoints.
8333 (breakpoint_re_set_one): Delete the overlay event breakpoint.
8334 (breakpoint_re_set): Re-create overlay event breakpoint.
8335
8336 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
8337 (overlay_manual_command): Disable overlay breakpoints.
8338 (overlay_off_command): Disable overlay breakpoints.
8339
8340 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
8341
8342 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
8343 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
8344 to here from config/tm-arm.h.
8345 (coff_sym_is_thumb): Make static.
8346 (arm_elf_make_msymbol_special): New function.
8347 (arm_coff_make_msymbol_special): New function.
8348 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
8349 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
8350 (coff_sym_is_thumb): Delete declaration.
8351 (arm_elf_make_msymbol_special): Declare.
8352 (arm_coff_make_msymbol_special): Declare.
8353 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
8354 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
8355
8356 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
8357
8358 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
8359
8360 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
8361
8362 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
8363 * gdbarch.c gdbarch.h: Regenerate.
8364 * arch-utils.c (default_print_float_info): New function.
8365 * arch-utils.h (default_print_float_info): Prototype it.
8366 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
8367 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
8368 (PRINT_FLOAT_INFO): Document it.
8369
8370 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
8371 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
8372 (PRINT_FLOAT_INFO): Define.
8373
8374 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
8375
8376 * win32-nat.c (_initialize_check_for_gdb_ini):
8377 Add typecast to sprintf argument to suppress a warning.
8378
8379 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
8380
8381 * win32-nat.c (last_sig): Changed type of variable to target_signal,
8382 to allow easier handling of pass state.
8383 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
8384 that gives exception name and address.
8385 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
8386 and set last_sig value to ourstatus->value.sig. Some missing
8387 exceptions added.
8388 (child_continue): Correctly report continue_status.
8389 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
8390 TARGET_SIGNAL_0 (new default value).
8391 (child_resume): consider sig argument passed to decide if
8392 the exception should be passed to debuggee or not.
8393
8394 2002-02-05 Michael Snyder <msnyder@redhat.com>
8395
8396 * regcache.c (fetch_register): Call target_fetch_register
8397 only if we don't call FETCH_PSEUDO_REGISTER.
8398 (store_register): Call target_store_register only if we
8399 don't call STORE_PSEUDO_REGISTER.
8400
8401 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
8402
8403 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
8404 ELF_MAKE_MSYMBOL_SPECIAL.
8405 * gdbarch.c, gdbarch.h: Regenerate.
8406 * arch-utils.c (default_make_msymbol_special): New function.
8407 * arch-utils.h (default_make_msymbol_special): Export.
8408 * elfread.c (elf_symtab_read): Compile use of
8409 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
8410 multiarched.
8411 * coffread.c (coff_symtab_read): Ditto, for
8412 COFF_MAKE_MSYMBOL_SPECIAL.
8413
8414 2002-02-05 Jim Blandy <jimb@redhat.com>
8415
8416 * solib-svr4.c (svr4_truncate_ptr): New function.
8417 (svr4_relocate_section_addresses): Do the address arithmetic with
8418 the appropriate truncation for target addresses, even when
8419 CORE_ADDR is larger than a target address.
8420
8421 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
8422
8423 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
8424 to (int *).
8425
8426 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
8427
8428 * gdbserver/linux-low.c (kill_inferior): Remove commented out
8429 code.
8430
8431 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
8432
8433 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
8434
8435 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
8436
8437 * gdbserver/linux-low.c: Remove unused include files.
8438
8439 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
8440
8441 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
8442 (read_inferior_memory): Use it.
8443 (write_inferior_memory): Likewise.
8444
8445 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
8446
8447 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
8448 grubbing through sys_errlist.
8449
8450 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
8451
8452 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
8453
8454 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
8455 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
8456
8457 2002-02-04 Andrew Cagney <ac131313@redhat.com>
8458
8459 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
8460 (do_sfunc, set_cmd_sfunc): New functions.
8461
8462 * command.h (struct cmd_list_element): Add field func.
8463 * cli/cli-decode.h (struct cmd_list_element): Ditto.
8464 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
8465 * cli/cli-decode.h: Ditto.
8466
8467 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
8468 (help_all, help_cmd_list): Ditto.
8469 (find_cmd, complete_on_cmdlist): Ditto.
8470 * top.c (execute_command): Ditto.
8471
8472 * cli/cli-setshow.c (do_setshow_command): Call func instead of
8473 function.sfunc.
8474
8475 * infcmd.c (notice_args_read): Fix function signature.
8476
8477 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
8478 * cli/cli-decode.c (add_set_cmd): Ditto.
8479 * utils.c (initialize_utils): Ditto.
8480 * maint.c (_initialize_maint_cmds): Ditto.
8481 * infrun.c (_initialize_infrun): Ditto.
8482 * demangle.c (_initialize_demangler): Ditto.
8483 * remote.c (add_packet_config_cmd): Ditto.
8484 * mips-tdep.c (_initialize_mips_tdep): Ditto.
8485 * cris-tdep.c (_initialize_cris_tdep): Ditto.
8486 * proc-api.c (_initialize_proc_api): Ditto.
8487 * kod.c (_initialize_kod): Ditto.
8488 * valprint.c (_initialize_valprint): Ditto.
8489 * top.c (init_main): Ditto.
8490 * infcmd.c (_initialize_infcmd): Ditto.
8491 * corefile.c (_initialize_core): Ditto.
8492 * arm-tdep.c (_initialize_arm_tdep): Ditto.
8493 * arch-utils.c (initialize_current_architecture): Ditto.
8494 (_initialize_gdbarch_utils): Ditto.
8495 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
8496
8497 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
8498 * wince.c (_initialize_inftarg): Ditto.
8499 * symfile.c (_initialize_symfile): Ditto.
8500 * mips-tdep.c (_initialize_mips_tdep): Ditto.
8501 * language.c (_initialize_language): Ditto.
8502 * arc-tdep.c (_initialize_arc_tdep): Ditto.
8503
8504 2002-02-04 Michael Snyder <msnyder@redhat.com>
8505
8506 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
8507
8508 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
8509
8510 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
8511 Add rules for building the register data files.
8512
8513 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
8514
8515 * regformats/regdat.sh: Add braces to the definition of
8516 expedite_regs_${arch}.
8517
8518 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
8519
8520 * regformats/regdef.h (struct reg): Add comment describing the
8521 requirements for offset and size fields.
8522
8523 2002-02-04 Andreas Schwab <schwab@suse.de>
8524
8525 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
8526 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
8527
8528 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
8529
8530 * gdbarch.sh (copyright): Update years in generated header.
8531 (SMASH_TEXT_ADDRESS): Add rule.
8532 * gdbarch.h, gdbarch.c: Re-generate.
8533 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
8534 * dbxread.c: Likewise.
8535 * dwarfread.c: Likewise.
8536 * elfread.c: Likewise.
8537 * somread.c: Likewise.
8538
8539 * arm-tdep.c (arm_smash_text_address): New function.
8540 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
8541
8542 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
8543
8544 Add support for hardware watchpoints on win32 native.
8545 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
8546 CONTEXT_DEBUG_REGISTERS.
8547 (dr variable): New variable. Static array containing a local copy
8548 of debug registers.
8549 (debug_registers_changed): New variable. Reflects when debug registers
8550 are changed and need to be written to inferior.
8551 (debug_registers_used): New variable. Reflects when any debug register
8552 was set, used when new threads are created.
8553 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
8554 i386-nat code.
8555 (thread_rec): Set dr array if id is the thread of current_event .
8556 (child_continue, child_resume): Change the debug registers for all
8557 threads if debug_registers_changed.
8558 (child_add_thread): Change the debug registers if debug_registers_used.
8559 * config/i386/cygwin.mh: Add use of i386-nat.o file.
8560 Link nm.h to new nm-cygwin.h file.
8561 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
8562 of hardware registers.
8563
8564 2002-02-03 Andrew Cagney <ac131313@redhat.com>
8565
8566 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
8567 Restore behavour broken by 2002-01-20 Andrew Cagney
8568 <ac131313@redhat.com> IEEE_FLOAT removal.
8569
8570 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
8571
8572 * c-valprint.c (c_val_print): Pass a proper valaddr to
8573 cp_print_class_method.
8574 * valops.c (search_struct_method): If there is only one method
8575 and args is NULL, return that method.
8576
8577 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
8578
8579 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
8580 accessing tag_name directly.
8581
8582 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
8583
8584 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
8585 of accessing tag_name directly.
8586
8587 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
8588
8589 PR gdb/280
8590 * gdbtypes.c (replace_type): New function.
8591 * gdbtypes.h (replace_type): Add prototype.
8592 * stabsread.c (read_type): Use replace_type.
8593
8594 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
8595
8596 * Makefile.in (memattr.o): Add missing dependencies rule.
8597
8598 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8599
8600 * breakpoint.c (break_at_finish_command): Really export.
8601 (break_at_finish_at_depth_command): Ditto.
8602 (tbreak_at_finish_command): Ditto.
8603 * hppa-tdep.c: Include completer.h.
8604 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
8605 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
8606
8607 2002-02-01 Andrew Cagney <ac131313@redhat.com>
8608
8609 * utils.c (do_write): New function.
8610 (error_stream): Rewrite combining the code from error_begin and
8611 verror.
8612 (verror): Rewrite using error_stream.
8613 (error_begin): Delete function.
8614
8615 2002-02-01 Andrew Cagney <ac131313@redhat.com>
8616
8617 * utils.c (error_begin): Make static.
8618 * defs.h (error_begin): Delete declaration.
8619
8620 * linespec.c (cplusplus_error): Replace cplusplus_hint.
8621 (decode_line_1): Use cplusplus_error instead of error_begin,
8622 cplusplus_hint and return_to_top_level.
8623 * coffread.c (coff_symfile_read): Use error instead of error_begin
8624 and return_to_top_level.
8625 * infrun.c (default_skip_permanent_breakpoint): Ditto.
8626
8627 2002-02-01 Andrew Cagney <ac131313@redhat.com>
8628
8629 * language.h (type_error, range_error): Make string parameter
8630 constant.
8631 * language.c (warning_pre_print): Delete extern declaration.
8632 * dwarfread.c (warning_pre_print): Ditto.
8633 * language.c (type_error, range_error): Rewrite to use verror and
8634 vwarning instead of warning_begin.
8635
8636 2002-02-01 Michael Snyder <msnyder@redhat.com>
8637
8638 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
8639 (set_ignore_count): Move misplaced comment back where it belongs.
8640
8641 2002-02-01 Andrew Cagney <ac131313@redhat.com>
8642
8643 * command.h (NO_FUNCTION): Delete macro.
8644 * cli/cli-decode.h (NO_FUNCTION): Ditto.
8645 * top.c (execute_command): Replace NO_FUNCTION with NULL.
8646 * tracepoint.c (_initialize_tracepoint): Ditto.
8647 * cli/cli-decode.c (add_set_cmd): Ditto.
8648 * cli/cli-cmds.c (init_cli_cmds): Ditto.
8649
8650 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
8651
8652 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
8653 Update ``this'' pointer when calling virtual functions.
8654
8655 2002-02-01 Michael Snyder <msnyder@redhat.com>
8656
8657 * breakpoint.c (create_temp_exception_breakpoint): Delete.
8658 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
8659
8660 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
8661
8662 * regformats/reg-arm.dat: New file.
8663 * regformats/reg-i386.dat: New file.
8664 * regformats/reg-ia64.dat: New file.
8665 * regformats/reg-m68k.dat: New file.
8666 * regformats/reg-mips.dat: New file.
8667 * regformats/reg-ppc.dat: New file.
8668 * regformats/reg-sh.dat: New file.
8669 * regformats/regdef.h: New file.
8670 * regformats/regdat.sh: New file.
8671
8672 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
8673
8674 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
8675 (arm_frame_args_address, arm_frame_locals_address): New functions.
8676 (arm_frame_num_args): New function.
8677 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
8678 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
8679 (FRMA_NUM_ARGS): Call arm_frame_num_args.
8680
8681 2002-01-31 Michael Snyder <msnyder@redhat.com>
8682
8683 * breakpoint.c (break_at_finish_command): Export.
8684 (break_at_finish_at_depth_command): Export.
8685 (tbreak_at_finish_command): Export.
8686 (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
8687 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
8688 "tbreak" commands, which are HPPA specific.
8689
8690 * printcmd.c (disassemble_command): Remove an ancient
8691 artifact of an old merge.
8692
8693 * symfile.h (enum overlay_debugging_state):
8694 Define enum constant values for overlay mode.
8695 * symfile.c (overlay_debugging): Use enums instead of literals.
8696 (overlay_is_mapped, overlay_auto_command,
8697 overlay_manual_command): Ditto.
8698
8699 * breakpoint.c (insert_breakpoints, remove_breakpoint,
8700 breakpoint_here_p, breakpoint_inserted_here_p,
8701 breakpoint_thread_match, bpstat_stop_status,
8702 describe_other_breakpoints, check_duplicates, clear_command):
8703 Coding standard fixes.
8704
8705 * target.c (target_xfer_memory): Add spaces, coding standard.
8706 (do_xfer_memory): Add missing line to trust-readonly
8707 code: check bfd SEC_READONLY flag for section.
8708
8709 2002-01-31 Andrew Cagney <ac131313@redhat.com>
8710
8711 * PROBLEMS: Fix typo, 5.1->5.1.1.
8712
8713 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
8714
8715 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
8716 data symbols, since we search based on textlow and texthigh.
8717 (find_pc_sect_symtab): Likewise.
8718
8719 2002-01-30 Andrew Cagney <ac131313@redhat.com>
8720
8721 * defs.h (vwarning): Declare.
8722 * utils.c (vwarning): New function.
8723 (warning): Call vwarning.
8724 (warning_begin): Delete function.
8725
8726 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
8727 the warning message.
8728 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
8729 warning_begin.
8730
8731 2002-01-30 Michael Snyder <msnyder@redhat.com>
8732
8733 * NEWS: Mention "set trust-readonly-sections" command.
8734 Mention generate-core-file command.
8735
8736 2002-01-15 Michael Snyder <msnyder@redhat.com>
8737
8738 * target.c: New command, "set trust-readonly-sections on".
8739 (do_xfer_memory): Honor the suggestion to trust readonly sections
8740 by reading them from the object file instead of from the target.
8741 (initialize_targets): Register command "set trust-readonly-sections".
8742
8743 2002-01-29 Andrew Cagney <ac131313@redhat.com>
8744
8745 * parse.c (target_map_name_to_register): Simplify, search regs and
8746 pseudo-regs using a single loop.
8747
8748 2002-01-30 Andrew Cagney <ac131313@redhat.com>
8749
8750 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
8751
8752 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
8753
8754 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
8755 * config/i386/i386v42mp.mh: Add i387-nat.o .
8756 * i386v4-nat.c: Include i387-nat.h.
8757 (supply_fpregset): Use i387_supply_fsave.
8758 (fill_fpregset): Use i387_fill_fsave.
8759
8760 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
8761
8762 * arm-tdep.c (arm_call_dummy_words): Define.
8763 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
8764 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
8765 (CALL_DUMMY_WORDS): Define.
8766 (arm_call_dummy_words): Declare.
8767 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
8768 (arm_linux_call_dummy_words): Declare.
8769
8770 2002-01-30 Andreas Schwab <schwab@suse.de>
8771
8772 * m68klinux-nat.c: Fix last change to use regcache_collect
8773 instead of referencing registers[] directly.
8774
8775 2002-01-29 Andrew Cagney <ac131313@redhat.com>
8776
8777 * parse.c (target_map_name_to_register): Delete code wrapped in
8778 #ifdef REGISTER_NAME_ALIAS_HOOK.
8779
8780 2002-01-28 Michael Snyder <msnyder@redhat.com>
8781
8782 * regcache.c (legacy_read_register_gen): Need to be able to
8783 read pseudo-register as well as real register.
8784 (legacy_write_register_gen): Ditto.
8785
8786 2002-01-28 Andrew Cagney <ac131313@redhat.com>
8787
8788 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
8789 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
8790 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
8791 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
8792 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
8793 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
8794 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
8795 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
8796 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
8797 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
8798 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
8799 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
8800 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
8801 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
8802 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
8803 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
8804 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
8805 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
8806 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
8807 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
8808
8809 2002-01-28 Andrew Cagney <ac131313@redhat.com>
8810
8811 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
8812 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
8813 (initialize_current_architecture): Update target_byte_order using
8814 information from BFD.
8815 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
8816 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
8817
8818 2002-01-28 Andrew Cagney <ac131313@redhat.com>
8819
8820 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
8821 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
8822
8823 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
8824 #ifdef INVALID_FLOAT.
8825 * infcmd.c (do_registers_info): Ditto.
8826 * values.c (unpack_double): Ditto. Add comment.
8827
8828 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
8829 already commented out.
8830
8831 2002-01-26 Andreas Schwab <schwab@suse.de>
8832
8833 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
8834 * m68klinux-nat.c: Update ptrace interface for fetching/storing
8835 registers and add support for PTRACE_GETREGS.
8836
8837 2002-01-24 Andrew Cagney <ac131313@redhat.com>
8838
8839 GDB 5.1.1 released from 5.1 branch.
8840 * NEWS: Add 5.1.1 news.
8841 * README: Sync with 5.1 branch.
8842
8843 2002-01-23 Fred Fish <fnf@redhat.com>
8844
8845 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
8846 stabstring on initial malloc. Reallocing will copy it for us,
8847 if necessary.
8848
8849 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
8850
8851 * Makefile.in (hpread_h): Delete.
8852 (HFILES_NO_SRCDIR): Remove hpread.h.
8853 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
8854 (hpread.o): Update dependencies.
8855 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
8856
8857 * hp-psymtab-read.c: Remove file.
8858 * hp-symtab-read.c: Remove file.
8859 * hpread.h: Remove file.
8860
8861 * hpread.c: Merge all contents of hp-psymtab-read.c,
8862 hp-symtab-read.c and hpread.h into this file, as it was prior to
8863 January 1999.
8864
8865 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
8866 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
8867 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
8868 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
8869
8870 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
8871
8872 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
8873 fill_gregset): Call gdbarch_tdep() just once, assign result to
8874 variable and use that, instead of calling the function several
8875 times.
8876
8877 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
8878
8879 * configure.host: Accept sparcv9 as alias for sparc64.
8880 * configure.tgt: Likewise.
8881
8882 2002-01-22 Kevin Buettner <kevinb@redhat.com>
8883
8884 * solib-aix5.c (build_so_list_from_mapfile)
8885 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
8886 arguments is not reversed.
8887 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
8888 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
8889
8890 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
8891
8892 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
8893 modified version of obsolete sh_fetch_pseudo_register.
8894 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
8895 (sh4_register_read): New function.
8896 (sh_pseudo_register_write): New function. Renamed and modified
8897 version of obsolete sh_store_pseudo_register.
8898 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
8899 (sh4_register_write): New function.
8900 (sh_gdbarch_init): Remove setting of gdbarch function
8901 fetch_pseudo_register and store_pseudo_register. Remove setting of
8902 register_convert_to_raw, register_convert_to_virtual,
8903 register_convertible.
8904 (sh_sh4_register_convertible): Delete. No longer needed. All is
8905 taken care by architecture specific functions
8906 register_read/register_write.
8907 (sh_sh4_register_convert_to_virtual): Make static.
8908 (sh_sh4_register_convert_to_raw): Ditto.
8909
8910 2002-01-22 Andrew Cagney <ac131313@redhat.com>
8911
8912 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
8913 (floatformat_is_nan, floatformat_mantissa): Ditto.
8914
8915 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
8916 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
8917 builtin_type_ieee_double_little,
8918 builtin_type_ieee_double_littlebyte_bigword,
8919 builtin_type_m68881_ext, builtin_type_i960_ext,
8920 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
8921 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
8922 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
8923 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
8924
8925 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
8926
8927 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
8928 parameter. Set frameless flag if it exists and depended of
8929 whether the scanned function is frameless or not.
8930 (xstormy16_skip_prologue): If function is frameless, return
8931 result of xstormy16_scan_prologue().
8932 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
8933 call.
8934
8935 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
8936
8937 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
8938 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
8939 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
8940 sh_sh4_register_byte, sh_sh4_register_raw_size,
8941 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
8942 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
8943 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
8944 sh_store_pseudo_register, sh_do_pseudo_register): Call
8945 gdbarch_tdep() just once, assign result to variable and use that,
8946 instead of calling the function several times.
8947
8948 2002-01-20 Mark Kettenis <kettenis@gnu.org>
8949
8950 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
8951 macros instead of LAST_FPU_CTRL_REGNUM.
8952 (store_register): Likewise.
8953
8954 2002-01-21 Jim Blandy <jimb@redhat.com>
8955
8956 * infcmd.c (run_command): Check that the `exec' target layer's BFD
8957 is up-to-date before running the program, not just when a program
8958 exits.
8959
8960 2002-01-21 Fred Fish <fnf@redhat.com>
8961
8962 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
8963 when we have found all instructions we are looking for.
8964
8965 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
8966
8967 * arm-tdep.c (arm_register_name): New function.
8968 (arm_registers_names): Make static.
8969 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
8970 (arm_register_name): Declare.
8971 (REGISTER_NAME): Use it.
8972
8973 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
8974 Kevin Buettner <kevinb@redhat.com>
8975
8976 Convert arm targets to new FRAME interface.
8977 * arm-tdep.c (struct frame_extra_info): Remove fsr.
8978 (arm_frame_find_save_regs): Delete.
8979 (arm_frame_init_saved_regs): New.
8980 (arm_init_extra_frame_info): Alloacte saved_regs as required.
8981 Allocate extra_info as required. Convert all uses of fsr.regs
8982 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
8983 to use extra_info.
8984 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
8985 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
8986 (check_prologue_cache, save_prologue_cache): Likewise.
8987 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
8988 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
8989 (FRAME_FIND_SAVED_REGS): Delete.
8990 (arm_frame_find_saved_regs): Delete prototype.
8991 (arm_frame_init_saved_regs): New prototype.
8992 (FRAME_INIT_SAVED_REGS): Define.
8993
8994 2002-01-20 Andrew Cagney <ac131313@redhat.com>
8995
8996 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
8997
8998 2002-01-20 Andrew Cagney <ac131313@redhat.com>
8999
9000 From Jeff Law <law@redhat.com>:
9001 * infttrace.c: Include <sys/pstat.h>.
9002 (child_pid_to_exec_file): Revamp. Use pstat call to get the
9003 exec file if the ttrace equivalent fails.
9004
9005 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9006
9007 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
9008 (closeLogFile): Ditto.
9009
9010 2002-01-20 Michael Chastain <mec@shout.net>
9011
9012 * top.c (print_gdb_version): Bump copyright year to 2002.
9013
9014 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9015
9016 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
9017 Zannoni and Eli Zaretskii.
9018
9019 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
9020
9021 * buildsym.c: Update copyright years.
9022 * c-typeprint.c: Likewise.
9023 * dwarf2read.c: Likewise.
9024 * f-typeprint.c: Likewise.
9025 * gdbtypes.c: Likewise.
9026 * gdbtypes.h: Likewise.
9027 * hp-symtab-read.c: Likewise.
9028 * hpread.c: Likewise.
9029 * mdebugread.c: Likewise.
9030 * p-typeprint.c: Likewise.
9031
9032 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9033
9034 * remote-sim.c (gdbsim_open): Simplify code testing the macro
9035 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
9036 byte-order selectable.
9037 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
9038 * arch-utils.c: Ditto.
9039 (set_endian): Ditto.
9040 (set_endian_from_file): Ditto.
9041 * gdbserver/low-sim.c (create_inferior): Ditto.
9042 * gdbarch.sh: Ditto.
9043 * gdbarch.h: Re-generate.
9044 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9045 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
9046 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
9047 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9048 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9049 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9050 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
9051 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
9052 macro definition.
9053 * config/mips/tm-wince.h: Remove #undef of macro
9054 TARGET_BYTE_ORDER_SELECTABLE.
9055 * config/sh/tm-wince.h: Ditto.
9056
9057 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
9058
9059 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
9060 member function fields. Add accessor macro
9061 TYPE_FN_FIELD_ARTIFICIAL.
9062 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
9063 * c-typeprint.c (c_type_print_base): Skip artificial member
9064 functions.
9065
9066 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
9067
9068 * f-typeprint.c: Delete unused function f_type_print_args.
9069 * p-typeprint.c: Delete unused function pascal_type_print_args.
9070
9071 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
9072
9073 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
9074 comment. Add ``artificial'' to ``union field_location''.
9075
9076 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
9077
9078 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
9079 * mdebugread.c (parse_symbol): Likewise.
9080 * stabsread.c (define_symbol): Likewise.
9081 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
9082 initializing TYPE_FIELD_BITPOS to n (obsolete).
9083 (hpread_doc_function_type): Likewise.
9084 * hpread.c (hpread_function_type): Likewise.
9085
9086 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9087
9088 * configure.in (host_makefile_frag): Only require a host makefile
9089 fragment when a native build.
9090 * configure: Re-generate.
9091
9092 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9093
9094 * doublest.h (floatformat_from_type): Declare.
9095 * doublest.c (floatformat_from_type): New function.
9096 (convert_typed_floating): Use.
9097
9098 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
9099 call to function floatformat_from_type.
9100
9101 * gdbarch.sh (IEEE_FLOAT): Delete.
9102 * gdbarch.h, gdbarch.c: Re-generate.
9103 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
9104 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
9105 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
9106 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
9107 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
9108 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
9109 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
9110 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
9111 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
9112 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
9113 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
9114 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
9115
9116 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
9117 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
9118 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9119 * sh-tdep.c (sh_gdbarch_init): Ditto.
9120 * mips-tdep.c (mips_gdbarch_init): Ditto.
9121 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9122 * cris-tdep.c (cris_gdbarch_init): Ditto.
9123
9124 2002-01-20 Jiri Smid <smid@suse.cz>
9125
9126 * configure.host, configure.tgt: Support x86-64.
9127 * NEWS: Note new target x86-64.
9128
9129 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
9130 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
9131 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
9132 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
9133 x86-64-linux-nat.o): Fix dependencies.
9134
9135 2002-01-19 Andrew Cagney <ac131313@redhat.com>
9136
9137 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
9138 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
9139 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
9140 * config/sparc/xm-sun4os4.h: Delete file.
9141 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
9142
9143 2002-01-19 Andrew Cagney <ac131313@redhat.com>
9144
9145 * config/sparc/sparclynx.mh (XM_FILE): Delete.
9146 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
9147 * config/m68k/m68klynx.mh (XM_FILE): Delete.
9148 * config/i386/i386lynx.mh (XM_FILE): Delete.
9149 * config/rs6000/xm-rs6000ly.h: Delete file.
9150 * config/sparc/xm-sparclynx.h: Delete file.
9151 * config/m68k/xm-m68klynx.h: Delete file.
9152 * config/i386/xm-i386lynx.h: Delete file.
9153 * config/xm-lynx.h: Delete file.
9154 * config/djgpp/fnchange.lst: Update.
9155
9156 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
9157
9158 * alpha-tdep.c (alpha_register_byte): New function.
9159 (alpha_register_raw_size): Ditto.
9160 (alpha_register_virtual_size): Ditto.
9161 (alpha_skip_prologue_internal): Renamed from
9162 alpha_skip_prologue.
9163 (alpha_skip_prologue): New version that calls
9164 alpha_skip_prologue_internal.
9165 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
9166 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
9167 second argument from alpha_skip_prologue.
9168 (REGISTER_BYTE): Use alpha_register_byte.
9169 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
9170 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
9171 (FRAMELESS_FUNCTION_INVOCATION): Use
9172 generic_frameless_function_invocation_not.
9173 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
9174 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
9175
9176 2002-01-19 Andrew Cagney <ac131313@redhat.com>
9177
9178 * config/mips/xm-news-mips.h: Delete file.
9179 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
9180
9181 * config/m88k/xm-m88k.h: Delete file.
9182 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
9183 * config/m88k/xm-delta88v4.h: Ditto.
9184 * config/m88k/xm-delta88.h: Ditto.
9185
9186 * config/alpha/xm-fbsd.h: Delete file.
9187 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
9188
9189 * config/sparc/xm-sparc.h: Delete file.
9190 * Makefile.in (xm-sun4os4.h): Delete dependency.
9191 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
9192 * config/sparc/xm-sun4os4.h: Ditto.
9193 * config/sparc/xm-linux.h: Ditto.
9194
9195 * config/i386/xm-windows.h: Delete file.
9196
9197 2002-01-19 Andrew Cagney <ac131313@redhat.com>
9198
9199 * utils.c: Include <sys/param.h> for MAXPATHLEN.
9200 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
9201
9202 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
9203
9204 * alpha-tdep.c (alpha_call_dummy_words): New.
9205 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
9206 (CALL_DUMMY_P): Define.
9207 (CALL_DUMMY_WORDS): Define.
9208 (SIZEOF_CALL_DUMMY_WORDS): Define.
9209
9210 2002-01-19 Per Bothner <per@bothner.com>
9211
9212 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
9213 isn't NULL, which can happen with some gcj-3.x-produced code.
9214
9215 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
9216
9217 * alpha-tdep.c (alpha_register_virtual_type): New function.
9218 (alpha_init_frame_pc_first): Ditto.
9219 (alpha_fix_call_dummy): Ditto.
9220 (alpha_store_struct_return): Ditto.
9221 (alpha_extract_struct_value_address): Ditto.
9222 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
9223 alpha_register_virtual_type.
9224 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
9225 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
9226 alpha_extract_struct_value_address.
9227 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
9228 (INIT_FRAME_PC): Use init_frame_pc_noop.
9229 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
9230
9231 2002-01-19 Mark Kettenis <kettenis@gnu.org>
9232
9233 * i386gnu-nat.c: Include "i386-tdep.h".
9234 (fetch_fpregs): Simplify code dealing with uninitialized floating
9235 point states such that it doesn't require FP7_REGNUM.
9236
9237 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9238
9239 * alpha-tdep.c (frame_extra_info): New.
9240 (alpha_find_saved_regs): Make static. Use
9241 frame->extra_info.
9242 (alpha_frame_init_saved_regs): New function.
9243 (alpha_frame_saved_pc): Use frame->extra_info.
9244 (temp_saved_regs): Don't declare as struct frame_saved_regs.
9245 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
9246 (init_extra_frame_info): Rename to...
9247 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
9248 (alpha_print_extra_frame_info): New function.
9249 (alpha_frame_locals_address): Ditto.
9250 (alpha_frame_args_address): Ditto.
9251 (alpha_pop_frame): Use frame->extra_info.
9252 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
9253 alpha_frame_args_address.
9254 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
9255 (alpha_find_saved_regs): Remove prototype.
9256 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
9257 (EXTRA_FRAME_INFO): Remove.
9258 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
9259 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
9260
9261 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9262
9263 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
9264 (alpha_cannot_fetch_register): Ditto.
9265 (alpha_cannot_store_register): Ditto.
9266 (alpha_register_convertible): Ditto.
9267 (alpha_use_struct_convention): Ditto.
9268 * config/alpha/tm-alpha.h: Update copyright years.
9269 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
9270 (INNER_THAN): Use core_addr_lessthan.
9271 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
9272 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
9273 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
9274 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
9275 (FRAME_CHAIN): Remove unnecessary cast.
9276
9277 2002-01-18 Andrew Cagney <ac131313@redhat.com>
9278
9279 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
9280 obsolete.
9281
9282 2002-01-18 Andrew Cagney <ac131313@redhat.com>
9283
9284 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
9285 * monitor.c, remote-array.c, remote-bug.c: Ditto.
9286 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
9287 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
9288 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
9289 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
9290 * x86-64-linux-nat.c: Ditto.
9291
9292 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9293
9294 * alpha-tdep.c (alpha_register_name): New function.
9295 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
9296 (REGISTER_NAME): Define.
9297
9298 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9299
9300 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
9301
9302 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9303
9304 * alpha-tdep.c: Update copyright years.
9305 (alpha_next_pc): New function.
9306 (alpha_software_single_step): Ditto.
9307 * config/alpha/tm-alpha.h: Add prototype for
9308 alpha_software_single_step.
9309
9310 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9311
9312 * alphabsd-nat.c: Update copyright years.
9313 (fill_gregset): Use regcache_collect.
9314 (fill_fpregset): Likewise.
9315 (fetch_inferior_registers): Only fetch integer registers
9316 if requested to do so.
9317 (store_inferior_registers): Only store integer registers
9318 if requested to do so.
9319
9320 2002-01-17 Andrew Cagney <ac131313@redhat.com>
9321
9322 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
9323 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
9324 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
9325 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
9326 * config/alpha/fbsd.mh (XDEPFILES): Delete.
9327 * config/arm/linux.mh (XDEPFILES): Delete.
9328 * config/arm/nbsd.mh (XDEPFILES): Delete.
9329 * config/i386/i386dgux.mh (XDEPFILES): Delete.
9330 * config/i386/i386sol2.mh (XDEPFILES): Delete.
9331 * config/i386/i386m3.mh (XDEPFILES): Delete.
9332 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
9333 * config/i386/i386gnu.mh (XDEPFILES): Delete.
9334 * config/i386/fbsd.mh (XDEPFILES): Delete.
9335 * config/i386/i386bsd.mh (XDEPFILES): Delete.
9336 * config/i386/i386sco5.mh (XDEPFILES): Delete.
9337 * config/i386/i386v4.mh (XDEPFILES): Delete.
9338 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
9339 * config/i386/i386sco4.mh (XDEPFILES): Delete.
9340 * config/i386/i386aix.mh (XDEPFILES): Delete.
9341 * config/i386/go32.mh (XDEPFILES): Delete.
9342 * config/i386/cygwin.mh (XDEPFILES): Delete.
9343 * config/i386/i386lynx.mh (XDEPFILES): Delete.
9344 * config/i386/i386mach.mh (XDEPFILES): Delete.
9345 * config/i386/i386v32.mh (XDEPFILES): Delete.
9346 * config/i386/linux.mh (XDEPFILES): Delete.
9347 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
9348 * config/i386/ncr3000.mh (XDEPFILES): Delete.
9349 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
9350 * config/i386/i386sco.mh (XDEPFILES): Delete.
9351 * config/i386/i386v.mh (XDEPFILES): Delete.
9352 * config/i386/nbsd.mh (XDEPFILES): Delete.
9353 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
9354 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
9355 * config/i386/symmetry.mh (XDEPFILES): Delete.
9356 * config/i386/obsd.mh (XDEPFILES): Delete.
9357 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
9358 * config/ia64/linux.mh (XDEPFILES): Delete.
9359 * config/ia64/aix.mh (XDEPFILES): Delete.
9360 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
9361 * config/m68k/dpx2.mh (XDEPFILES): Delete.
9362 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
9363 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
9364 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
9365 * config/m68k/linux.mh (XDEPFILES): Delete.
9366 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
9367 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
9368 * config/m68k/nbsd.mh (XDEPFILES): Delete.
9369 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
9370 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
9371 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
9372 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
9373 * config/m88k/delta88.mh (XDEPFILES): Delete.
9374 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
9375 * config/m88k/m88k.mh (XDEPFILES): Delete.
9376 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
9377 * config/mips/linux.mh (XDEPFILES): Delete.
9378 * config/mips/irix6.mh (XDEPFILES): Delete.
9379 * config/mips/irix5.mh (XDEPFILES): Delete.
9380 * config/mips/irix4.mh (XDEPFILES): Delete.
9381 * config/mips/irix3.mh (XDEPFILES): Delete.
9382 * config/mips/decstation.mh (XDEPFILES): Delete.
9383 * config/mips/mipsm3.mh (XDEPFILES): Delete.
9384 (NATDEPFILES): Move core-aout.o to here.
9385 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
9386 * config/pa/hpux1020.mh (XDEPFILES): Delete.
9387 * config/pa/hppabsd.mh (XDEPFILES): Delete.
9388 * config/pa/hppahpux.mh (XDEPFILES): Delete.
9389 * config/pa/hpux11w.mh (XDEPFILES): Delete.
9390 * config/pa/hppaosf.mh (XDEPFILES): Delete.
9391 * config/pa/hpux11.mh (XDEPFILES): Delete.
9392 * config/powerpc/aix.mh (XDEPFILES): Delete.
9393 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
9394 * config/powerpc/linux.mh (XDEPFILES): Delete.
9395 * config/romp/rtbsd.mh: Rename XDEPFILES.
9396 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
9397 * config/rs6000/aix4.mh (XDEPFILES): Delete.
9398 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
9399 * config/s390/s390.mh (XDEPFILES): Delete.
9400 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
9401 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
9402 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
9403 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
9404 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
9405 * config/sparc/nbsd.mh (XDEPFILES): Delete.
9406 * config/sparc/linux.mh (XDEPFILES): Delete.
9407 * config/vax/vaxult.mh (XDEPFILES): Delete.
9408 * config/vax/vaxult2.mh (XDEPFILES): Delete.
9409 * Makefile.in (DEPFILES): Remove XDEPFILES.
9410
9411 2002-01-17 Andrew Cagney <ac131313@redhat.com>
9412
9413 * utils.c (internal_verror): Fix comments, default is yes not no.
9414 Update queries to match. Default to quit and dump core.
9415
9416 2002-01-17 Andrew Cagney <ac131313@redhat.com>
9417
9418 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
9419 copyright.
9420 * defs.h, event-top.c, gdbcmd.h: Ditto.
9421 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
9422 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
9423 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
9424 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
9425 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
9426 * mi/mi-main.c:Ditto.
9427
9428 * stack.c, symfile.c: Update copyright.
9429
9430 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
9431
9432 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
9433 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
9434 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
9435 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
9436
9437 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
9438
9439 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
9440 * gdbserver/low-lynx.c (myattach): Likewise.
9441 * gdbserver/low-nbsd.c (myattach): Likewise.
9442 * gdbserver/low-sim.c (myattach): Likewise.
9443 * gdbserver/low-sparc.c (myattach): Likewise.
9444 * gdbserver/low-sun3.c (myattach): Likewise.
9445
9446 * gdbserver/low-linux.c (myattach): New function.
9447
9448 * gdbserver/server.c (attach_inferior): New function.
9449 (main): Handle "--attach".
9450
9451 2002-01-16 Andrew Cagney <ac131313@redhat.com>
9452
9453 * MAINTAINERS (language support): Daniel Jacobwitz is C++
9454 maintainer.
9455
9456 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
9457
9458 * c-typeprint.c (is_type_conversion_operator): Add additional
9459 check for non-conversion operators.
9460
9461 2002-01-15 Michael Snyder <msnyder@redhat.com>
9462
9463 * linux-proc.c: Add "info proc" command, a la procfs.c.
9464 (read_mapping): New function, abstract and re-use code.
9465 (linux_find_memory_regions): Use new func read_mapping.
9466 (linux_info_proc_cmd): New function, implement "info proc".
9467 (_initialize_linux_proc): Add new command "info proc".
9468
9469 2002-01-15 Michael Snyder <msnyder@redhat.com>
9470
9471 * symfile.c (generic_load): Use bfd_map_over_sections method
9472 instead of manipulating bfd structure members directly.
9473 (add_section_size_callback): New function, bfd sections callback
9474 used by generic_load.
9475 (load_sections_callback): New function, bfd sections callback
9476 used by generic_load.
9477
9478 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
9479
9480 [Based on work by Jim Blandy]
9481 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
9482 (builtin_type_vec128): Export.
9483 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
9484 types.
9485 (builtin_type_vec128): New builtin type for 128 bit vector
9486 registers.
9487 (build_gdbtypes): Initialize builtin_type_v16qi and
9488 builtin_type_v8hi. Create the vec128 register builtin type
9489 structure.
9490 (build_builtin_type_vec128): New function.
9491 (_initialize_gdbtypes): Register builtin_type_v16qi and
9492 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
9493 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
9494 AltiVec register to new builtin type.
9495
9496 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
9497
9498 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
9499 to make_cv_type.
9500
9501 2002-01-14 Andrew Cagney <ac131313@redhat.com>
9502
9503 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
9504 CLEAN_UP_REGISTER_VALUE.
9505 * regcache.c (supply_register): Update only call.
9506
9507 2002-01-14 Andrew Cagney <ac131313@redhat.com>
9508
9509 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
9510 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
9511 a29k-*-vxworks* targets as obsolete.
9512
9513 2002-01-14 Michael Snyder <msnyder@redhat.com>
9514
9515 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
9516 until we can resolve portability issues.
9517 * gregset.h: Remove references to fpxregs.
9518 * gcore.c (gcore_command): Initialize note_sec to NULL.
9519
9520 2002-01-13 Andrew Cagney <ac131313@redhat.com>
9521
9522 * signals.c (target_signal_to_name): Rewrite. Only use
9523 signals[].name when in bounds and non-NULL.
9524
9525 2002-01-13 Andrew Cagney <ac131313@redhat.com>
9526
9527 From Petr Ledvina <ledvinap@kae.zcu.cz>:
9528 * signals.c (target_signal_to_name): Verify that SIG is within the
9529 bounds of the signals array.
9530
9531 2002-01-13 Andrew Cagney <ac131313@redhat.com>
9532
9533 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
9534
9535 2002-01-13 Keith Seitz <keiths@redhat.com>
9536
9537 * stack.c (print_frame_info_base): Print the frame's pc
9538 only if when print_frame_info_listing_hook is not defined.
9539
9540 2002-01-13 Keith Seitz <keiths@redhat.com>
9541
9542 * varobj.c (varobj_set_value): Make sure that there were no
9543 errors evaluating the object before attempting to set its
9544 value.
9545 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
9546 so this offset adjustment is no longer necessary.
9547 (create_child): Don't set the error flag if the child is
9548 a CPLUS_FAKE_CHILD.
9549 (value_of_child): If value_fetch_lazy fails, return NULL
9550 so that callers will be notified that an error occurred.
9551 (c_value_of_variable): Delay check of variable's validity
9552 until later. We actually want all structs and unions to have
9553 the value "{...}".
9554 Do not return "???" for variables which could not be evaluated.
9555 This error condition must be returned to the caller so that it
9556 can get the error condition from gdb.
9557 (cplus_name_of_child): Adjust index for vptr before figuring
9558 out the name of the child.
9559 (cplus_value_of_child): If a child's (real) parent is not valid,
9560 don't even bother trying to give a value for it. Just return
9561 an error. Change all instances in this function.
9562 (cplus_type_of_child): If our parent is one of the "fake"
9563 parents, we need to get at the type of the real parent, and
9564 derive the child's true type using this information.
9565
9566 2002-01-13 Andrew Cagney <ac131313@redhat.com>
9567
9568 From 2002-01-09 John Marshall <johnm@falch.net>:
9569 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
9570 sources.redhat.com, and tweak some related URLs which had
9571 suffered from linkrot.
9572
9573 2002-01-13 Andrew Cagney <ac131313@redhat.com>
9574
9575 From Jeff law:
9576 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
9577 structures passed in registers.
9578
9579 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
9580
9581 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
9582 white space which prevented compilation. Reported by DSK
9583 <dsk@student.unsw.edu.au>.
9584
9585 2002-01-11 Michael Snyder <msnyder@redhat.com>
9586
9587 * symfile.c (build_section_addr_info_from_section_tab):
9588 Use bfd access method instead of manipulating bfd directly.
9589 (syms_from_objfile): Ditto.
9590 (simple_overlay_update_1): Ditto.
9591 (simple_overlay_update): Ditto.
9592 (generic_load): Ditto.
9593 (overlay_unmapped_address): FIXME comment, bfd access methods.
9594 (sections_overlap): FIXME comment, bfd access methods.
9595 (pc_in_mapped_range): FIXME comment, bfd access methods.
9596 (pc_in_unmapped_range): FIXME comment, bfd access methods.
9597 (section_is_mapped): FIXME comment, bfd access methods.
9598 (section_is_overlay): FIXME comment, bfd access methods.
9599
9600 * symfile.c (generic_load): Whitespace and long line cleanups.
9601 Remove duplicate variable, change several local variables to
9602 more appropriate data types.
9603 (print_transfer_performance): Use %lu instead of %ld for ulongs.
9604
9605 2002-01-12 Andrew Cagney <ac131313@redhat.com>
9606
9607 From Peter Schauer:
9608 * language.c (longest_local_hex_string_custom): Use phex_nz to
9609 convert NUM to a hex string.
9610
9611 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
9612
9613 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
9614 the function.
9615 Update Copyright year.
9616
9617 2002-01-12 Andrew Cagney <ac131313@redhat.com>
9618
9619 * language.c (longest_raw_hex_string): Delete unused function.
9620
9621 2002-01-11 Petr Sorfa <petrs@caldera.com>
9622
9623 * MAINTAINERS (write-after-approval): Add myself.
9624 * dwarf2read.c (read_tag_string_type): Handling of
9625 DW_AT_byte_size.
9626 (read_tag_string_type): FORTRAN fix to prevent propagation of
9627 first string size.
9628 (set_cu_language): Handling of DW_LANG_Fortran95
9629
9630 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
9631
9632 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
9633 GETPID(inferior_ptid).
9634 (store_inferior_registers): Likewise.
9635
9636 2002-01-10 Jason Merrill <jason@redhat.com>
9637
9638 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
9639 Fix DW_OP_minus.
9640
9641 2002-01-10 Andrew Cagney <ac131313@redhat.com>
9642
9643 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
9644 and bfd/elf32-sh-nbsd.c.
9645
9646 2002-01-10 Michael Snyder <msnyder@redhat.com>
9647
9648 * NEWS: Mention --pid and corefile/proc-id behavior change.
9649
9650 * Makefile.in: Add rules for gcore.o and linux-proc.o.
9651 * gcore.c: Include cli/cli-decode.h instead of command.h.
9652
9653 * main.c (captured_main): Add new command line option "--pid".
9654 If the second command line argument (following the symbol-file)
9655 begins with a digit, try to attach to it before trying to open
9656 it as a corefile.
9657 (print_gdb_help): Document the "--pid" argument.
9658
9659 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
9660
9661 * completer.c (command_completer): New function.
9662
9663 * completer.h <command_completer>: Add prototype.
9664
9665 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
9666 completer for the "help" command.
9667
9668 2002-01-09 Jason Merrill <jason@redhat.com>
9669
9670 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
9671
9672 2002-01-09 Michael Snyder <msnyder@redhat.com>
9673
9674 * i386-linux-nat.c (fill_fpxregset): Make global.
9675 (store_fpxregset): Ditto.
9676
9677 * gregset.h (gdb_fpxregset_t): Define.
9678 (supply_fpxregset): Prototype.
9679 (fill_fpxregset): Prototype.
9680
9681 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
9682
9683 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
9684
9685 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
9686 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
9687 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
9688
9689 2002-01-09 Andrew Cagney <ac131313@redhat.com>
9690
9691 * MAINTAINERS: Update target maintainer rules so that any
9692 Maintainer can approve a tested patch for a maintenance-only
9693 target.
9694
9695 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
9696
9697 * MAINTAINERS (write-after-approval): Add myself.
9698
9699 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
9700 IN_SIGTRAMP.
9701
9702 2002-01-08 Michael Snyder <msnyder@redhat.com>
9703
9704 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
9705 real name of the executable, rather than the /proc name.
9706
9707 2002-01-03 Michael Snyder <msnyder@redhat.com>
9708
9709 Implement a "generate-core-file" command in gdb, save target state.
9710 * gcore.c: New file. Implement new command 'generate-core-file'.
9711 Save a corefile image of the current state of the inferior.
9712 * linux-proc.c: Add linux-specific code for saving corefiles.
9713 * target.h (struct target_ops): Add new target vectors for saving
9714 corefiles; to_find_memory_regions and to_make_corefile_notes.
9715 (target_find_memory_regions): New macro.
9716 (target_make_corefile_notes): New macro.
9717 * target.c (update_current_target): Inherit new target methods.
9718 (dummy_find_memory_regions): New place-holder method.
9719 (dummy_make_corefile_notes): New place-holder method.
9720 (init_dummy_target): Initialize new dummy target vectors.
9721 * exec.c (exec_set_find_memory_regions): New function.
9722 Allow the exec_ops vector for memory regions to be taken over.
9723 (exec_make_note_section): New function, target vector method.
9724 * defs.h (exec_set_find_memory_regions): Export prototype.
9725 * procfs.c (proc_find_memory_regions): New function, corefile method.
9726 (procfs_make_note_section): New function, corefile method.
9727 (init_procfs_ops): Set new target vector pointers.
9728 (find_memory_regions_callback): New function.
9729 (procfs_do_thread_registers): New function.
9730 (procfs_corefile_thread_callback): New function.
9731 * sol-thread.c (sol_find_memory_regions): New function.
9732 (sol_make_note_section): New function.
9733 (init_sol_thread_ops): Initialize new target vectors.
9734 * inftarg.c (inftarg_set_find_memory_regions): New function.
9735 Allow to_find_memory_regions vector to be taken over.
9736 (inftarg_set_make_corefile_notes): New function.
9737 Allow to_make_corefile_notes vector to be taken over.
9738 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
9739 interface layer if not target_has_execution (may be a corefile).
9740 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
9741 * config/sparc/sun4sol2.mh: Ditto.
9742 * config/alpha/alpha-linux.mh: Ditto.
9743 * config/arm/linux.mh: Ditto.
9744 * config/i386/x86-64linux.mh: Ditto.
9745 * config/ia64/linux.mh: Ditto.
9746 * config/m68k/linux.mh: Ditto.
9747 * config/mips/linux.mh: Ditto.
9748 * config/powerpc/linux.mh: Ditto.
9749 * config/sparc/linux.mh: Ditto.
9750
9751 2002-01-07 Michael Snyder <msnyder@redhat.com>
9752
9753 * arm-linux-nat.c: Remove references to regcache.c internal data
9754 (registers[] and register_valid[]).
9755
9756 2002-01-07 Michael Snyder <msnyder@redhat.com>
9757
9758 * linux-proc.c: New file. Implement child_pid_to_exec_file,
9759 so that attaching to a pid will automatically read the process's
9760 symbol file and shlibs.
9761 * Makefile.in: Add rule for linux-proc.o.
9762 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
9763 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
9764 * config/arm/linux.mh: Ditto.
9765 * config/i386/linux.mh: Ditto.
9766 * config/i386/x86-64linux.mh: Ditto.
9767 * config/ia64/linux.mh: Ditto.
9768 * config/m68k/linux.mh: Ditto.
9769 * config/mips/linux.mh: Ditto.
9770 * config/powerpc/linux.mh: Ditto.
9771 * config/sparc/linux.mh: Ditto.
9772
9773 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
9774
9775 * win32-nat.c: Add i386-tdep.h dependency.
9776
9777 2002-01-07 Michael Snyder <msnyder@redhat.com>
9778
9779 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
9780 instead of bfd_get_arch_size. Don't bail out just because
9781 there's no exec_bfd.
9782
9783 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
9784 * p-valprint.c (pascal_object_print_value): Ditto.
9785 * somread.c (som_symtab_read): Ditto.
9786 * symfile.c (simple_free_overlay_region_table): Ditto.
9787 * valops.c (value_assign): Ditto.
9788
9789 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
9790 use tilde_expand and strerror for opening save-tracepoints file.
9791
9792 * thread-db.c (thread_db_new_objfile): Indendation fix.
9793
9794 * infptrace.c (GDB_MAX_ALLOCA): New define.
9795 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
9796 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
9797 can be overridden with whatever value is appropriate to the host).
9798 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
9799 alloca to allocate potentially large buffer.
9800 * rs6000-nat.c (child_xfer_memory): Ditto.
9801 * symm-nat.c (child_xfer_memory): Ditto.
9802 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
9803
9804 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
9805
9806 From Nick Clifton <nickc@redhat.com>
9807 * d10v-tdep.c: Set STACK_START to 0x200bffe.
9808
9809 2002-01-07 Michael Snyder <msnyder@redhat.com>
9810
9811 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
9812 Don't use exec_bfd if it's NULL.
9813
9814 2002-01-06 Mark Kettenis <kettenis@gnu.org>
9815
9816 * valops.c (value_arg_coerce): Fix formatting.
9817
9818 2002-01-06 Andrew Cagney <ac131313@redhat.com>
9819
9820 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
9821 * gnu-nat.c: Ditto.
9822
9823 2002-01-06 Andrew Cagney <ac131313@redhat.com>
9824
9825 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
9826 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
9827 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
9828 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
9829 z8k-coff have not been multi-arched. Update z8k-coff build
9830 status.
9831
9832 2002-01-06 Andrew Cagney <ac131313@redhat.com>
9833
9834 * MAINTAINERS: Mark a29k target as obsolete.
9835 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
9836 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
9837 comments.
9838 * NEWS: Note that a29k targets are obsolete.
9839 * a29k-tdep.c: Mark as obsolete.
9840 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
9841 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
9842 a29k-*-vxworks* targets as obsolete.
9843 * remote-adapt.c: Obsolete.
9844 * remote-eb.c: Obsolete.
9845 * remote-mm.c: Obsolete.
9846 * remote-udi.c: Obsolete.
9847 * config/a29k/a29k-udi.mt: Obsolete.
9848 * config/a29k/a29k.mt: Obsolete.
9849 * config/a29k/tm-a29k.h: Obsolete.
9850 * config/a29k/tm-vx29k.h: Obsolete.
9851 * config/a29k/vx29k.mt: Obsolete.
9852
9853 2002-01-05 Andrew Cagney <ac131313@redhat.com>
9854
9855 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
9856 with BFD_ENDIAN_BIG.
9857
9858 2002-01-05 Andrew Cagney <ac131313@redhat.com>
9859
9860 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
9861 * configure, config.in: Re-generate.
9862 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
9863 * defs.h: Do not include <endian.h>.
9864
9865 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
9866
9867 * acconfig.h (HAVE_PT_GETXMMREGS): New.
9868 * config.in: Regenerate.
9869 * configure.in: Update copyright years.
9870 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
9871 * configure: Regenerate.
9872 * i386bsd-nat.c: Update copyright years.
9873 (fill_gregset): Use regcache_collect.
9874 (fetch_inferior_registers): Only fetch integer registers
9875 if requested to do so. Add support for XMM registers
9876 using PT_GETXMMREGS.
9877 (store_inferior_registers): Only store integer registers
9878 if requested to do so. Add support for XMM registers
9879 using PT_SETXMMREGS.
9880 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
9881 (store_inferior_registers): Remove.
9882 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
9883 (fetch_elfcore_registers): New function.
9884 (i386nbsd_elfcore_fns): New.
9885 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
9886 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
9887 i386bsd-nat.o.
9888 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9889 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
9890 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
9891 * config/i386/tm-nbsd.h: Update copyright years.
9892 (HAVE_SSE_REGS): Define.
9893 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
9894 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
9895 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
9896 (SIGCONTEXT_PC_OFFSET): Remove.
9897 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
9898
9899 2002-01-05 Andrew Cagney <ac131313@redhat.com>
9900
9901 * configure.tgt: Remove powerpc-*-macos* target.
9902 * config/m68k/xm-mpw.h: Delete file.
9903 * config/xm-mpw.h: Delete file.
9904 * ser-mac.c: Delete file.
9905 * mpw-make.sed: Delete file.
9906 * mpw-config.in: Delete file.
9907 * mac-xdep.c: Delete file.
9908 * mac-gdb.r: Delete file.
9909 * mac-defs.h: Delete file.
9910 * mac-nat.c: Delete file.
9911 * config/powerpc/macos.mh: Delete file.
9912 * config/powerpc/macos.mt: Delete file.
9913 * config/powerpc/nm-macos.h: Delete file.
9914 * config/powerpc/tm-macos.h: Delete file.
9915 * source.c (openp, open_source_file): Remove obsolete code.
9916 * top.c (gdb_readline): Ditto.
9917 * utils.c (query): Ditto.
9918 * event-top.c (display_gdb_prompt): Ditto.
9919 * Makefile.in (ser-mac.o): Delete obsolete target.
9920 * NEWS: Update.
9921
9922 2002-01-04 Andrew Cagney <ac131313@redhat.com>
9923
9924 * defs.h (BIG_ENDIAN): Delete macro definition.
9925 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
9926 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
9927 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
9928 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
9929 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
9930 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
9931 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
9932 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
9933 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
9934 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
9935 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
9936 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
9937 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
9938 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
9939 * gdbarch.c: Re-generate.
9940
9941 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
9942
9943 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
9944 for core files.
9945
9946 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
9947
9948 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
9949
9950 2002-01-04 Andrew Cagney <ac131313@redhat.com>
9951
9952 * value.h (value_ptr): Delete typedef.
9953
9954 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
9955
9956 * i386nbsd-nat.c: Update copyright years.
9957 Include i386-tdep.h.
9958
9959 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
9960
9961 * stabsread.c: Update copyright years.
9962
9963 From Debashis Mahata <debashis.mahata@wipro.com>:
9964 (read_struct_fields): Deal with Sun C compiler erroneous stab
9965 output for structs and unions.
9966 Fix PR gdb/269.
9967
9968 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
9969
9970 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
9971 prototype.
9972
9973 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
9974
9975 * cp-abi.c: Fix whitespace.
9976 (baseclass_offset): New wrapper function.
9977 * cp-abi.h (baseclass_offset): Add prototype.
9978 (struct cp_abi_ops): Add baseclass_offset pointer.
9979
9980 * valops.c (vb_match): Move to...
9981 * gnu-v2-abi.c (vb_match): here.
9982 * valops.c (baseclass_offset): Move to...
9983 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
9984
9985 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
9986
9987 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
9988 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
9989 * hpacc-abi.c (init_hpacc_ops): Likewise.
9990
9991 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
9992
9993 * valops.c (find_overload_match): Accept obj as a
9994 reference parameter. Update it before returning.
9995 * value.h (find_overload_match): Update prototype.
9996 * eval.c (evaluate_subexp_standard): Pass object to
9997 find_overload_match by reference.
9998
9999 2002-01-03 Andrew Cagney <ac131313@redhat.com>
10000
10001 * valarith.c: Replace value_ptr with struct value pointer. Remove
10002 register attribute from value declarations.
10003 * valops.c: Ditto.
10004 * value.h: Ditto.
10005 * scm-lang.c (scm_lookup_name): Ditto.
10006
10007 2002-01-03 Michael Snyder <msnyder@redhat.com>
10008
10009 Abstract the functionality of iterating over mapped memory
10010 regions into a general purpose iterator function.
10011 * procfs.c (iterate_over_mappings): New function, general purpose
10012 iterator for memory sections.
10013 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
10014 (solib_mappings_callback): New function, callback for above.
10015 (info_proc_mappings): Reimpliment using iterate_over_mappings.
10016 (info_mappings_callback): New function, callback for above.
10017
10018 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
10019
10020 2002-01-01 Mark Kettenis <kettenis@gnu.org>
10021
10022 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
10023 * i386-tdep.c: Include "elf-bfd.h".
10024 (process_note_abi_tag_sections): New function.
10025 (i386_gdbarch_init): Add code to recognize various OS/ABI
10026 combinations.
10027
10028 * maint.c (_initialize_maint_cmds): Add missing \ in
10029 string-literal.
10030
10031 For older changes see ChangeLog-2001
10032 \f
10033 Local Variables:
10034 mode: change-log
10035 left-margin: 8
10036 fill-column: 74
10037 version-control: never
10038 End:
This page took 0.257356 seconds and 5 git commands to generate.