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