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