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