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