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