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