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