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