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