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