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