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