1 2002-06-18 Keith Seitz <keiths@redhat.com>
3 * breakpoint.c (condition_command): Post breakpoint_modify
4 when a condition is added to an existing breakpoint.
5 (commands_command): Likewise for commands.
6 (set_ignore_count): Likewise for ignore counts.
7 If no tty, do not simply return, still need to send event
9 (ignore_command): Only print a newline if the command came
11 Don't call breakpoints_changed, since this is now properly
12 handled by set_ignore_count.
14 2002-06-18 Andrew Cagney <cagney@redhat.com>
16 * MAINTAINERS: Note that cris-elf target can be compiled with
18 * cris-tdep.c (cris_register_name): Make return type constant.
19 (cris_breakpoint_from_pc): Ditto.
21 2002-06-18 Michal Ludvig <mludvig@suse.cz>
23 * frame.h (struct frame_info): Change type of context to
26 2002-06-17 Andrew Cagney <cagney@redhat.com>
28 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
30 * gdbarch.h, gdbarch.c: Regenerate.
31 * config/mips/tm-mips.h (mips_register_name): Update.
32 * i386-tdep.h (i386_register_name): Update.
33 * mips-tdep.c (mips_register_name): Update
34 * alpha-tdep.c (alpha_register_name): Update.
35 * arch-utils.c (legacy_register_name): Update.
36 * arch-utils.h (legacy_register_name): Update.
37 * avr-tdep.c (avr_register_name): Update.
38 * ia64-tdep.c (ia64_register_name): Update.
39 * i386-tdep.c (i386_register_name): Update.
40 * sparc-tdep.c (sparc32_register_name): Update.
41 (sparc64_register_name): Update.
42 (sparclite_register_name): Update.
43 (sparclet_register_name): Update.
44 * sh-tdep.c (sh_generic_register_name): Update.
45 (sh_sh_register_name): Update.
46 (sh_sh3_register_name): Update.
47 (sh_sh3e_register_name): Update.
48 (sh_sh_dsp_register_name): Update.
49 (sh_sh3_dsp_register_name): Update.
50 (sh_sh4_register_name): Update.
51 (sh_sh64_register_name): Update.
52 * s390-tdep.c (s390_register_name): Update.
53 * rs6000-tdep.c (rs6000_register_name): Update.
54 * ns32k-tdep.c (ns32k_register_name_32082): Update.
55 (ns32k_register_name_32382): Update.
56 * d10v-tdep.c (d10v_ts2_register_name): Update.
57 (d10v_ts3_register_name): Update.
58 * xstormy16-tdep.c (xstormy16_register_name): Update.
59 * vax-tdep.c (vax_register_name): Update.
60 * v850-tdep.c (v850_register_name): Update.
61 * m68hc11-tdep.c (m68hc11_register_name): Update.
62 * mn10300-tdep.c (mn10300_generic_register_name): Update.
63 (am33_register_name): Update.
65 2002-06-17 Grace Sainsbury <graces@redhat.com>
67 * m68k-tdep.c: Reindented.
69 2002-06-17 Andrew Cagney <ac131313@redhat.com>
71 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
72 list of predefined types.
74 2002-06-16 Mark Kettenis <kettenis@gnu.org>
76 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
77 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
78 REGISTER_CONVERT_TO_RAW): Remove defines.
79 (i386_register_virtual_type, i386_register_convertible,
80 i386_register_convert_to_virtual, i386_register_convert_to_raw):
82 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
83 macros mentioned above.
85 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
86 (i386lynx_saved_pc_after_call): Remove prototype.
87 * i386ly-tdep.c: Include "i386-tdep.h".
88 (i386lynx_saved_pc_after_call): Make static. Use
89 read_memory_nobpt instead of read_memory. Use
90 read_memory_unsigned_integer instead of read_memory_integer.
91 (i386lynx_init_abi): New function.
92 (i386lynx_coff_osabi_sniffer): New function.
93 (_initialize_i386bsd_tdep): New function.
95 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
96 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
97 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
98 (i386_fix_call_dummy): Remove prototype.
99 * i386-tdep.c (i386_call_dummy_words): New variable.
100 (i386_gdbarch_init): Adjust for removal of the
101 macros mentioned above.
103 2002-06-15 Andrew Cagney <ac131313@redhat.com>
105 * command.h (add_setshow_auto_boolean_cmd): Replace
106 add_set_auto_boolean_cmd.
107 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
108 add_set_auto_boolean_cmd.
109 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
110 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
111 mask-address'' command.
112 (show_mask_address): Add cmd parameter.
113 * remote.c (add_packet_config_cmd): Update. Change type of
114 set_func and show_func to cmd_sfunc_ftype.
115 (_initialize_remote): Update `set remote Z-packet'
116 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
117 (show_remote_protocol_e_packet_cmd): Ditto.
118 (show_remote_protocol_E_packet_cmd): Ditto.
119 (show_remote_protocol_P_packet_cmd): Ditto.
120 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
121 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
122 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
123 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
124 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
125 (show_remote_protocol_Z_packet_cmd): Ditto.
126 (show_remote_protocol_binary_download_cmd): Ditto.
127 (show_remote_cmd): Pass NULL to all of above.
129 2002-06-15 Mark Kettenis <kettenis@gnu.org>
131 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
132 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
133 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
134 POP_FRAME): Remove defines.
135 (i386_push_arguments, i386_store_struct_return,
136 i386_extract_return_value, i386_store_return_value,
137 i386_extract_struct_value_address, i386_push_dummy_frame,
138 i386_pop_frame): Renove prototypes.
139 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
140 macros mentioned above.
142 2002-06-15 Andrew Cagney <ac131313@redhat.com>
144 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
146 (add_setshow_cmd): New function.
147 * command.h (add_setshow_boolean_cmd): Replace
149 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
150 and ``set rdiromatzero''.
151 * maint.c (_initialize_maint_cmds): Update commented out code.
152 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
153 * target.c (initialize_targets): Update `set
154 trust-readonly-sections'.
155 * remote.c (_initialize_remote): Update `set remotebreak'.
157 2002-06-15 Mark Kettenis <kettenis@gnu.org>
159 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
160 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
161 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
162 fit into multi-arch framework.
163 (i386_breakpoint_from_pc): New function.
164 (i386_gdbarch_init): Adjust for removal of the macros mentioned
167 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
168 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
169 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
170 (i386_frameless_function_invocation, i386_frame_num_args,
171 i386_frame_init_saved_regs): Remove prototypes.
172 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
173 macros mentioned above.
175 2002-06-15 Andrew Cagney <ac131313@redhat.com>
177 * cli/cli-decode.c (set_cmd_cfunc): Update.
178 (set_cmd_sfunc): Update.
179 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
180 (set_cmd_sfunc, set_cmd_cfunc): Update.
181 * cli/cli-decode.h: Update.
183 2002-06-15 Mark Kettenis <kettenis@gnu.org>
185 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
186 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
188 2002-06-15 Andrew Cagney <ac131313@redhat.com>
190 * defs.h (auto_boolean): Declare enum.
191 * command.h (cmd_auto_boolean): Delete enum.
192 * mips-tdep.c (mask_address_var): Update.
193 (mips_mask_address_p): Update.
194 (show_mask_address): Update.
195 * remote.c (struct packet_config): Update.
196 (update_packet_config): Update.
197 (show_packet_config_cmd): Update.
199 (add_packet_config_cmd): Update.
200 (_initialize_remote):
202 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
203 (do_setshow_command): Update.
204 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
205 * cli/cli-decode.h: Update.
207 2002-06-15 Mark Kettenis <kettenis@gnu.org>
209 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
210 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
211 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
212 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
213 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
214 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
216 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
217 list of DJGPP COFF targets.
219 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
220 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
221 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
222 (FP0_REGNUM): Remove define.
223 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
224 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
225 (i386_register_virtual_size): Remove protoype.
226 * i386-tdep.c (i386_register_virtual_size): Removed.
227 (i386_extract_return_value, i386_store_return_value): Use
228 FP0_REGNUM instead of NUM_FREGS to determine whether the
229 floating-point registers are available.
230 (i386_gdbarch_init): Tweak FIXME about FPU registers.
231 Adjust for removal of macros mentioned above.
233 2002-06-15 Mark Kettenis <kettenis@gnu.org>
235 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
237 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
239 (supply_gregset, fill_gregset): Remove use of register keyword and
240 remove declaration for regmap. Use I386_NUM_GREGS instead of
241 NUM_REGS and NUM_FREGS.
242 (FPREGSET_FSAVE_OFFSET): Remove.
243 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
244 NUM_FREGS to determine whether the floating-point registers are
247 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
248 gnu_store_registers): Replace usage of NUM_GREGS with
251 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
252 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
253 usage of NUM_GREGS with I386_NUM_GREGS.
255 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
257 * i386bsd-nat.c: Include "i386-tdep.h".
258 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
261 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
262 and associated comment. They no longer make any sense, since we
263 don't use this file anymore on Linux.
265 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
266 * i386-tdep.c (i386_register_offset, i386_register_size): Use
267 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
268 elements in these arrays.
269 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
272 2002-06-15 Mark Kettenis <kettenis@gnu.org>
274 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
275 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
277 2002-06-14 Andrew Cagney <cagney@redhat.com>
279 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
280 EXTRACT_RETURN_VALUE.
281 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
282 EXTRACT_STRUCT_VALUE_ADDRESS.
283 * gdbarch.h, gdbarch.c: Regenerate.
285 * values.c (value_being_returned): Handle
286 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
287 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
289 * arm-linux-tdep.c (arm_linux_init_abi): Update.
290 * arm-tdep.c (arm_gdbarch_init): Update.
291 * avr-tdep.c (avr_gdbarch_init): Update.
292 * cris-tdep.c (cris_gdbarch_init): Update.
293 * d10v-tdep.c (d10v_gdbarch_init): Update.
294 * ia64-tdep.c (ia64_gdbarch_init): Update.
295 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
296 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
297 * s390-tdep.c (s390_gdbarch_init): Update.
298 * sh-tdep.c (sh_gdbarch_init): Update.
299 * s390-tdep.c (s390_gdbarch_init): Update.
300 * sparc-tdep.c (sparc_gdbarch_init): Update.
301 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
302 * v850-tdep.c (v850_gdbarch_init): Update.
303 * vax-tdep.c (vax_gdbarch_init): Update.
304 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
305 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
307 * config/arc/tm-arc.h: Update.
308 * config/d30v/tm-d30v.h: Update.
309 * config/fr30/tm-fr30.h: Update.
310 * config/h8300/tm-h8300.h: Update.
311 * config/h8500/tm-h8500.h: Update.
312 * config/i386/tm-i386.h: Update.
313 * config/i386/tm-ptx.h: Update.
314 * config/i386/tm-symmetry.h: Update.
315 * config/i960/tm-i960.h: Update.
316 * config/m32r/tm-m32r.h: Update.
317 * config/m68k/tm-delta68.h: Update.
318 * config/m68k/tm-linux.h: Update.
319 * config/m68k/tm-m68k.h: Update.
320 * config/m88k/tm-m88k.h: Update.
321 * config/mcore/tm-mcore.h: Update.
322 * config/mips/tm-mips.h: Update.
323 * config/mn10200/tm-mn10200.h: Update.
324 * config/pa/tm-hppa.h: Update.
325 * config/pa/tm-hppa64.h: Update.
326 * config/sparc/tm-sp64.h: Update.
327 * config/sparc/tm-sparc.h: Update.
328 * config/sparc/tm-sparclet.h: Update.
329 * config/z8k/tm-z8k.h: Update.
331 2002-06-14 Andrew Cagney <cagney@redhat.com>
333 * Makefile.in (i386_linux_tdep_h): Define.
334 (i386_tdep_h, i387_tdep_h): Define.
335 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
336 $(i386_tdep_h) and $(i387_tdep_h).
337 * i386-linux-nat.c: Include "i386-linux-tdep.h".
339 2002-06-14 Mark Kettenis <kettenis@gnu.org>
341 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
342 Already covered by the default.
344 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
345 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
346 (i386_gdbarch_init): Initialize long_double_format and long_double
349 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
350 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
352 * config/i386/i386sol2.mh: ... here.
353 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
354 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
355 (SIGCONTEXT_PC_OFFSET): Remove define.
356 (IN_SIGTRAMP): Remove define.
357 * i386-sol2-tdep.c: New file.
359 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
360 * config/i386/tm-i386nw.h: Removed.
362 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
363 USE_STRUCT_CONVENTION): Remove defines.
364 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
365 (get_longjmp_target): Remove prototype.
366 (IN_SIGTRAMP): Remove define.
367 (i386bsd_in_sigtramp): Remove prototype.
368 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
369 function. Update comment accordingly
370 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
371 (FRAME_SAVED_PC): Remove define.
372 (i386bsd_frame_saved_pc): Remove prototype.
373 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
374 GET_LONGJMP_TARGET): Remove defines.
375 (get_longjmp_target): Remove prototype.
376 (IN_SIGTRAMP): Remove define.
377 (i386bsd_in_sigtramp): Remove prototype.
378 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
379 function. Update comment accordingly
380 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
381 (FRAME_SAVED_PC): Remove define.
382 (i386bsd_frame_saved_pc): Remove prototype.
383 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
385 (USE_STRUCT_CONVENTION): Remove prototype.
386 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
388 (_initialize_i386bsd_nat): Revise logic to determine some
389 constants at compile time when compiling a native GDB. Warn if
390 things don't match up with what we expect.
391 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
393 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
394 to use date stored in `struct gdbarch_tdep'.
395 (i386bsd_sigcontext_offset): Remove varaible.
396 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
397 stored in `struct gdbarch_tdep'.
398 (i386bsd_frame_saved_pc): Make static.
399 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
400 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
401 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
402 i386fbsd4_sc_pc_offset): New variables.
403 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
404 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
406 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
408 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
409 Modify the value of i386fbsd_sigtramp_start and
410 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
411 i386fbsd_sigtramp_end.
412 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
415 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
416 define to i386-linux-tdep.h.
417 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
418 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
420 (i386_linux_register_name, i386_linux_register_byte,
421 i386_linux_register_raw_size): Remove prototypes.
422 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
423 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
424 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
425 TARGET_WRITE_PC): Remove defines.
426 (i386_linux_in_sigtramp, i386_linux_frame_chain,
427 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
428 i386_linux_write_pc): Remove prototypes.
429 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
430 (get_longjmp_target): Remove prototype.
431 * i386-linux-tdep.h: New file.
432 * i386-linux-nat.c: Include "i386-linux-tdep.h".
433 * i386-linux-tdep.c: Include "i386-tdep.h" and
435 (i386_linux_register_name, i386_linux_register_byte,
436 i386_linux_register_raw_size, i386_linux_in_sigtramp,
437 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
439 (i386_linux_init_abi): New function.
440 (_initialize_i386_linux_tdep): New function.
442 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
443 (i386_saved_pc_after_call): Remove prototype.
444 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
445 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
446 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
447 (i386_register_name, i386_stab_reg_to_regnum,
448 i386_dwarf_reg_to_regnum): Remove prototypes.
449 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
450 SIZEOF_SSE_REGS): Remove defines.
451 (REGISTER_BYTES): Remove define.
452 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
453 (i386_register_byte, i386_register_raw_size): Remove prototypes.
454 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
455 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
456 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
457 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
458 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
459 (get_longjmp_target): Remove prototype.
460 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
461 (sigtramp_saved_pc): Remove define.
462 (i386v4_sigtramp_saved_pc): Remove prototype.
463 * config/i386/tm-go32.h (FRAME_CHAIN,
464 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
465 (i386go32_frame_saved_pc): Remove prototype.
466 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
467 (get_longjmp_target): Remove prototype.
468 * i386-tdep.h: Include "osabi.h".
469 (enum i386_abi): Removed.
470 (enum struct_return): New enum.
471 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
472 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
473 sc_pc_offset members.
474 (i386_gdbarch_register_os_abi): Remove prototype.
475 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
476 I386_SSE_NUM_REGS): New defines.
477 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
478 I386_SSE_SIZEOF_REGS): New defines.
479 (i386_register_name, i386_register_byte, i386_register_raw_size):
481 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
482 (i386bsd_sigtramp_saved_pc): New prototype.
483 * i386-tdep.c: Don't include "elf-bfd.h".
484 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
485 i386_frame_chain, i386_saved_pc_after_call): Make static.
486 (i386_frame_saved_pc): Rewrite to call architecture dependent
487 function to deal with signal handlers. Make static.
488 (i386go32_frame_saved_pc): Removed.
489 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
491 (i386_get_longjmp_target): New function.
492 (default_struct_convention, pcc_struct_convention,
493 reg_struct_convention, valid_conventions, struct_convention): New
495 (i386_use_struct_convention): New function.
496 (i386v4_sigtramp_saved_pc): Renamed to
497 i386_svr4_sigtramp_saved_pc. Made static. Moved.
498 (i386_pc_in_sigtramp): New function.
499 (i386_abi_names): Removed.
500 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
501 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
503 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
504 i386_gdbarch_register_os_abi): Removed.
505 (struct i386_abi_handler): Removed.
506 (i386_abi_handler_list): Removed.
507 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
509 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
510 i386_nw_init_abi): New functions.
511 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
512 Use set_gdbarch_xxx() calls instead of relying on macros for a
514 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
515 (_initialize_i386_tdep): Add new 'struct-convcention' command.
516 Register the various architecture variants defined in this file.
518 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
520 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
521 (struct main_type): Remove arg_types member. Update comments for
523 (TYPE_ARG_TYPES): Remove.
524 (TYPE_FN_FIELD_ARGS): Update.
525 (smash_to_method_type): Update prototype.
527 * c-typeprint.c (cp_type_print_method_args): Take method type
528 instead of argument list. Use new argument layout. Simplify.
529 (c_type_print_args): Use new argument layout. Simplify.
530 (c_type_print_base): Update call to cp_type_print_method_args.
531 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
532 argument; use die->type instead. Update call to
533 smash_to_method_type.
534 (read_structure_scope): Update call to dwarf2_add_member_fn.
535 * gdbtypes.c (allocate_stub_method): Update comment.
536 (smash_to_method_type): Take new NARGS and VARARGS arguments.
537 Use new argument layout.
538 (check_stub_method): Use new argument layout. Don't count
540 (print_arg_types): Update comments. Use new argument layout.
541 (recursive_dump_type): Don't print arg_types member.
542 * hpread.c (hpread_read_struct_type): Use new argument layout.
543 (fixup_class_method_type): Likewise.
544 (hpread_type_lookup): Likewise.
545 * stabsread.c (read_type): Update calls to read_args and
546 smash_to_method_type.
547 (read_args): Use new argument layout. Simplify.
548 * valops.c (typecmp): Use new argument layout. Update parameters
549 and comments. Simplify.
550 (hand_function_call): Use new argument layout.
551 (search_struct_method): Update call to typecmp.
552 (find_overload_match): Use new argument layout.
554 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
556 * NEWS: Mention multithreaded debug support for gdbserver.
558 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
560 * MAINTAINERS: Mention NEWS.
562 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
564 * gdbserver/regcache.c: Add comment.
566 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
568 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
569 (struct mips_objfile_private, compare_pdr_entries): New.
570 (non_heuristic_proc_desc): Read the ".pdr" section if it
573 2002-06-12 Andrew Cagney <ac131313@redhat.com>
575 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
576 (arm_debug): New static variable.
577 (_initialize_arm_tdep): Add ``set debug arm'' command.
579 2002-06-12 Andrew Cagney <ac131313@redhat.com>
581 * Makefile.in (sim_arm_h): Define.
582 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
583 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
584 (arm_register_sim_regno): New function, map an internal REGNUM
585 onto a simulator register number.
586 (arm_gdbarch_init): Set register_sim_regno.
588 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
590 * MAINTAINERS: Add self.
592 2002-06-11 Jim Blandy <jimb@redhat.com>
594 * source.c (source_info): Mention whether the symtab has
595 information about preprocessor macros.
597 Call the command `info macro', not `show macro'.
598 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
600 (_initialize_macrocmd): Register `info_macro_command' in
601 `infolist', not `showlist'.
603 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
605 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
606 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
607 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
608 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
609 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
611 (set_mipsfpu_single_command, set_mipsfpu_double_command)
612 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
613 (_initialize_mips_tdep): Remove dead code.
614 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
615 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
616 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
617 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
618 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
619 MIPS_LAST_FP_ARG_REGNUM): Remove.
621 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
623 * gdbserver/thread-db.c: New file.
624 * gdbserver/proc-service.c: New file.
625 * gdbserver/acinclude.m4: New file.
626 * gdbserver/Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
627 proc-service.o, and thread-db.o.
628 (linux-low.o): Add USE_THREAD_DB.
629 * gdbserver/acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
630 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
631 * gdbserver/aclocal.m4: Regenerated.
632 * gdbserver/config.in: Regenerated.
633 * gdbserver/configure: Regenerated.
634 * gdbserver/configure.in: Check for proc_service.h, sys/procfs.h,
635 thread_db.h, and linux/elf.h headrs.
636 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
637 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
638 Check for -lthread_db and thread support.
639 * gdbserver/configure.srv: Enable thread_db support for ARM, i386, MIPS,
641 * gdbserver/i387-fp.c: Constify arguments.
642 * gdbserver/i387-fp.h: Likewise.
643 * gdbserver/inferiors.c: (struct thread_info): Renamed from
644 `struct inferior_info'. Remove PID member. Use generic inferior
645 list header. All uses updated.
646 (inferiors, signal_pid): Removed.
647 (all_threads): New variable.
648 (get_thread): Define.
649 (add_inferior_to_list): New function.
650 (for_each_inferior): New function.
651 (change_inferior_id): New function.
652 (add_inferior): Removed.
653 (remove_inferior): New function.
654 (add_thread): New function.
655 (free_one_thread): New function.
656 (remove_thread): New function.
657 (clear_inferiors): Use for_each_inferior and free_one_thread.
658 (find_inferior): New function.
659 (find_inferior_id): New function.
660 (inferior_target_data): Update argument type.
661 (set_inferior_target_data): Likewise.
662 (inferior_regcache_data): Likewise.
663 (set_inferior_regcache_data): Likewise.
664 * gdbserver/linux-low.c (linux_bp_reinsert): Remove.
665 (all_processes, stopping_threads, using_thrads)
666 (struct pending_signals, debug_threads, pid_of): New.
667 (inferior_pid): Replace with macro.
668 (struct inferior_linux_data): Remove.
669 (get_stop_pc, add_process): New functions.
670 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
671 Use add_process and add_thread.
672 (linux_attach_lwp): New function, based on old linux_attach. Use
673 add_process and add_thread. Set stop_expected for new threads.
674 (linux_attach): New function.
675 (linux_kill_one_process): New function.
676 (linux_kill): Kill all LWPs.
677 (linux_thread_alive): Use find_inferior_id.
678 (check_removed_breakpoints, status_pending_p): New functions.
679 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
680 Update. Use WNOHANG. Wait for cloned processes also. Update process
681 struct for the found process.
682 (linux_wait_for_event): New function.
683 (linux_wait): Use it. Support LWPs.
684 (send_sigstop, wait_for_sigstop, stop_all_processes)
685 (linux_resume_one_process, linux_continue_one_process): New functions.
686 (linux_resume): Support LWPs.
687 (REGISTER_RAW_SIZE): Remove.
688 (fetch_register): Use register_size instead. Call supply_register.
689 (usr_store_inferior_registers): Likewise. Call collect_register.
691 (regsets_fetch_inferior_registers): Improve error message.
692 (regsets_store_inferior_registers): Add debugging.
693 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
694 (unstopped_p, linux_signal_pid): New functions.
695 (linux_target_ops): Add linux_signal_pid.
696 (linux_init_signals): New function.
697 (initialize_low): Call it. Initialize using_threads.
698 * gdbserver/regcache.c (inferior_regcache_data): Add valid
700 (get_regcache): Fetch registers lazily. Add fetch argument
701 and update all callers.
702 (regcache_invalidate_one, regcache_invalidate): New
704 (new_register_cache): Renamed from create_register_cache.
705 Return the new regcache.
706 (free_register_cache): Change argument to a void *.
707 (registers_to_string, registers_from_string): Call get_regcache
709 (register_data): Make static. Pass fetch flag to get_regcache.
710 (supply_register): Call get_regcache with fetch flag clear.
711 (collect_register): Call get_regcache with fetch flag set.
712 (collect_register_as_string): New function.
713 * gdbserver/regcache.h: Update.
714 * gdbserver/remote-utils.c (putpkt): Flush after debug output and use
716 Handle input interrupts while waiting for an ACK.
717 (input_interrupt): Use signal_pid method.
718 (getpkt): Flush after debug output and use stderr.
719 (outreg): Use collect_register_as_string.
720 (new_thread_notify, dead_thread_notify): New functions.
721 (prepare_resume_reply): Check using_threads. Set thread_from_wait
723 (look_up_one_symbol): Flush after debug output.
724 * gdbserver/server.c (step_thread, server_waiting): New variables.
725 (start_inferior): Don't use signal_pid. Update call to mywait.
726 (attach_inferior): Update call to mywait.
727 (handle_query): Handle qfThreadInfo and qsThreadInfo.
728 (main): Don't fetch/store registers explicitly. Use
729 set_desired_inferior. Support proposed ``Hs'' packet. Update
731 * gdbserver/server.h: Update.
732 (struct inferior_list, struct_inferior_list_entry): New.
733 * gdbserver/target.c (set_desired_inferior): New.
734 (write_inferior_memory): Constify.
735 (mywait): New function.
736 * gdbserver/target.h: Update.
737 (struct target_ops): New signal_pid method.
738 (mywait): Removed macro, added prototype.
740 * gdbserver/linux-low.h (regset_func): Removed.
741 (regset_fill_func, regset_store_func): New.
742 (enum regset_type): New.
743 (struct regset_info): Add type field. Use new operation types.
744 (struct linux_target_ops): stop_pc renamed to get_pc.
745 Add decr_pc_after_break and breakpoint_at.
746 (get_process, get_thread_proess, get_process_thread)
747 (strut process_info, all_processes, linux_attach_lwp)
748 (thread_db_init): New.
750 * gdbserver/linux-arm-low.c (arm_get_pc, arm_set_pc,
751 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
752 (the_low_target): Add new members.
753 * gdbserver/linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
754 (i386_store_fpxregset): Constify.
755 (target_regsets): Add new kind identifier.
756 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
757 (i386_set_pc): Add debugging.
758 (i386_breakpoint_at): New function.
759 (the_low_target): Add new members.
760 * gdbserver/linux-mips-low.c (mips_get_pc, mips_set_pc)
761 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
762 (mips_breakpoint_at): New.
763 (the_low_target): Add new members.
764 * gdbserver/linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
765 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
766 (the_low_target): Add new members.
767 * gdbserver/linux-sh-low.c (sh_get_pc, sh_set_pc)
768 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
769 (the_low_target): Add new members.
770 * gdbserver/linux-x86-64-low.c (target_regsets): Add new kind
773 2002-06-11 Michal Ludvig <mludvig@suse.cz>
775 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
776 (unwind_tmp_obstack_free, parse_frame_info)
777 (update_context, cfi_read_fp, cfi_write_fp)
778 (cfi_frame_chain, cfi_init_extra_frame_info)
779 (cfi_virtual_frame_pointer): Use the above function.
780 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
782 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
784 * v850-tdep.c (v850_type_is_scalar): New function.
785 (v850_use_struct_convention): Match current gcc implementation
786 as close as possible.
787 (v850_push_arguments): Fix stack_offset handling. Don't write
788 struct_addr into register. This is done by v850_store_struct_return.
789 (v850_extract_return_value): Care for structs.
790 (v850_store_return_value): Ditto.
791 (v850_store_struct_return): Actually write address.
793 2002-06-11 Michal Ludvig <mludvig@suse.cz>
795 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
796 without debug information too.
798 2002-06-10 Andrew Cagney <ac131313@redhat.com>
800 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
801 Make multi-arch pure.
802 * gdbarch.h, gdbarch.c: Re-generate.
803 * arm-tdep.c (arm_print_float_info): Update.
804 * arch-utils.h (default_print_float_info): Update.
805 * arch-utils.c (default_print_float_info): Update.
806 * infcmd.c (float_info): Update call.
808 2002-06-10 Andrew Cagney <ac131313@redhat.com>
810 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
811 the front of the initialize list.
813 2002-06-10 Andrew Cagney <ac131313@redhat.com>
815 * infrun.c (struct inferior_status): Replace fields
816 selected_frame_address and selected_level with field
818 (save_inferior_status): Update. Use get_frame_id.
819 (struct restore_selected_frame_args): Delete.
820 (restore_selected_frame): Update. Use frame_find_by_id.
821 (restore_inferior_status): Update.
823 * breakpoint.h (struct breakpoint): Change type of
824 watchpoint_frame to frame_id.
825 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
826 call to get_current_frame.
827 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
829 (watchpoint_check): Use frame_find_by_id.
831 * frame.h (record_selected_frame): Delete declaration.
832 * stack.c (record_selected_frame): Delete function.
834 * frame.h (struct frame_id): Define.
835 (get_frame_id): Declare.
836 (frame_find_by_id): Declare.
837 * frame.c (frame_find_by_id): New function.
838 (get_frame_id): New function.
840 2002-06-10 Andrey Volkov <avolkov@transas.com>
842 * ser-e7kpc.c: Fix duplicated define and call of
843 _initialize_ser_e7000pc
845 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
847 * signals/signals.c (target_signal_from_host): Fix #ifdef
849 (do_target_signal_to_host): Likewise.
851 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
853 * mips-tdep.c (mips_find_abi_section): New function.
854 (mips_gdbarch_init): Call it.
856 2002-06-09 Mark Kettenis <kettenis@gnu.org>
858 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
859 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
860 after Andrew's 2002-06-08 gdbarch change.
862 2002-06-09 Mark Kettenis <kettenis@gnu.org>
864 * i386-linux-nat.c (suppy_gregset): Don't supply
865 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
867 (fill_gregset): Don't fetch it under the same circumstances.
869 2002-06-09 Andrew Cagney <cagney@redhat.com>
871 * Makefile.in (callback_h): Define.
872 (remote_sim_h): Update path to remote-sim.h.
873 (remote-rdp.o): Add $(callback_h).
874 (remote-sim.o): Use $(callback_h).
875 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
876 * remote-rdp.c: Include "gdb/callback.h".
878 2002-06-09 Mark Kettenis <kettenis@gnu.org>
880 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
881 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
883 2002-06-08 Andrew Cagney <ac131313@redhat.com>
885 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
886 * rdi-share/serpardr.c: Ditto.
887 * rdi-share/unixcomm.c: Ditto.
888 * rdi-share/serdrv.c: Ditto.
889 * rdi-share/hostchan.h: Ditto.
890 * rdi-share/hostchan.c: Ditto.
891 * rdi-share/host.h: Ditto.
892 * rdi-share/devsw.c: Ditto.
894 * objfiles.h: Change type of obj_private to void pointer.
895 * pa64solib.c: Update copyright. Don't include "assert.h", use
896 strcmp instead of STREQ, use LONGEST, do not use PTR
899 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
900 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
901 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
903 2002-06-08 Andrew Cagney <ac131313@redhat.com>
905 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
906 (default_get_saved_register): Delete function.
907 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
908 generic_unwind_get_saved_register.
909 * gdbarch.h, gdbarch.c: Re-generate.
911 2002-06-08 Andrew Cagney <ac131313@redhat.com>
913 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
914 generic_func_frame_chain_valid.
915 * gdbarch.h, gdbarch.c: Re-generate.
916 * blockframe.c (generic_func_frame_chain_valid): Only check
917 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
918 passing FP to PC_IN_CALL_DUMMY.
921 2002-06-08 Andrew Cagney <ac131313@redhat.com>
923 * gdbarch.sh (struct gdbarch_data): Add field init_p.
924 (register_gdbarch_data): Initialize init_p.
925 (gdbarch_data): Initialize data pointer using the init function.
926 (init_gdbarch_data): Delete function.
927 (gdbarch_update_p): Update.
928 (initialize_non_multiarch): Update.
929 (struct gdbarch): Add field initialized_p.
930 * gdbarch.h, gdbarch.c: Re-generate.
932 2002-06-07 Michal Ludvig <mludvig@suse.cz>
934 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
935 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
936 better do the things actually here.
937 * x86-64-tdep.c (x86_64_register_name2nr): New.
938 (x86_64_register_name): Renamed to x86_64_register_nr2name.
939 (x86_64_gdbarch_init): Respect the above change.
940 * x86-64-tdep.h (x86_64_register_name2nr)
941 (x86_64_register_nr2name): Add prototypes.
942 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
944 2002-06-06 Michael Snyder <msnyder@redhat.com>
946 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
947 Delete extra braces and re-indent.
948 (d10v_store_return_value): Char return values
949 must be shifted over by one byte in R0.
950 (d10v_extract_return_value): Delete extra braces, re-indent.
952 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
954 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
955 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
956 (d10v_integer_to_address): Rewrite.
957 (d10v_frame_init_saved_regs): When reading fp and sp registers use
958 the d10v specific functions which take care of converting to the
961 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
963 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
964 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
966 2002-06-02 Andrew Cagney <ac131313@redhat.com>
968 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
970 * config/tm-linux.h: Ditto.
971 * config/alpha/tm-alphalinux.h: Ditto.
972 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
973 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
974 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
975 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
976 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
977 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
978 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
979 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
980 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
981 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
982 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
983 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
984 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
985 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
986 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
987 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
988 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
989 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
990 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
991 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
992 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
993 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
994 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
995 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
996 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
997 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
998 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
999 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
1000 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
1001 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
1002 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
1003 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
1004 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
1005 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
1006 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
1007 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
1008 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
1010 2002-05-04 Aidan Skinner <aidan@velvet.net>
1012 * ada-exp.tab.c: New file
1013 * ada-exp.y: New file
1014 * ada-lang.c: New file
1015 * ada-lang.h: New file
1016 * ada-lex.c: New file
1017 * ada-lex.l: New file
1018 * ada-tasks.c: New file
1019 * ada-typeprint.c: New file
1020 * ada-valprint.c: New file
1022 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
1024 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
1025 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
1027 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
1029 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
1030 insetead of ppc-linux-tdep.o.
1031 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
1032 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
1034 2002-06-02 Andrew Cagney <ac131313@redhat.com>
1036 2002-05-07 Christian Groessler <chris@groessler.org>
1037 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
1038 bit register contents for little endian hosts.
1040 2002-06-01 Andrew Cagney <ac131313@redhat.com>
1042 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
1045 2002-06-01 Andrew Cagney <ac131313@redhat.com>
1047 * gdbarch.h: Regenerate.
1049 2002-06-01 Andrew Cagney <ac131313@redhat.com>
1051 * MAINTAINERS: Add everyone to write-after-approval list.
1053 2002-06-01 Andrew Cagney <ac131313@redhat.com>
1055 * stack.c (frame_info): Use frame_register_unwind instead of
1056 saved_regs. Mention when the SP is on the stack or in a register.
1058 * frame.h (frame_register_unwind_ftype): Define. Document.
1059 (struct frame_info): Add field register_unwind and
1060 register_unwind_cache.
1061 (frame_register_unwind): Declare.
1062 (generic_unwind_get_saved_register): Declare.
1064 * frame.c (frame_register_unwind): New function.
1065 (generic_unwind_get_saved_register): New function.
1067 * blockframe.c (generic_call_dummy_register_unwind): New function.
1068 (frame_saved_regs_register_unwind): New function.
1069 (set_unwind_by_pc): New function.
1070 (create_new_frame): New function.
1071 (get_prev_frame): New function.
1073 2002-05-30 Andrew Cagney <ac131313@redhat.com>
1075 * a29k-share/: Delete directory.
1076 * remote-vx29k.c: Delete file.
1078 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
1080 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
1081 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
1083 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
1085 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
1086 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
1089 (sparcnbsd-tdep.o): New dependency lists.
1090 * NEWS: Note new UltraSPARC NetBSD native configuration.
1091 * configure.host (sparc64-*-netbsd*): New host.
1092 * configure.tgt (sparc-*-netbsdelf*)
1093 (sparc-*-netbsd*): Set gdb_target to nbsd.
1094 (sparc64-*-netbsd*): New target.
1095 * sparc64nbsd-nat.c: New file.
1096 * sparcnbsd-nat.c: New file.
1097 * sparcnbsd-tdep.c: New file.
1098 * sparcnbsd-tdep.h: New file.
1099 * config/sparc/nbsd.mt: New file.
1100 * config/sparc/nbsd64.mh: New file.
1101 * config/sparc/nbsd64.mt: New file.
1102 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
1103 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
1105 * config/sparc/nbsdaout.mt: Remove.
1106 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
1107 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
1109 * config/sparc/nbsdelf.mt: Remove.
1110 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
1111 sparc-nat.c compatiblity defines.
1112 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
1113 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
1114 * config/sparc/tm-nbsd64.h: New file.
1115 * config/sparc/tm-nbsdaout.h: Remove.
1116 * config/sparc/xm-nbsd.h: Remove.
1118 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
1120 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
1121 * sparc-tdep.c: Include osabi.h.
1122 (gdbarch_tdep): Add osabi member.
1123 (_initialize_sparc_tdep): Use gdbarch_register.
1124 (sparc_gdbarch_init): Use generic OS ABI framework.
1125 (sparc_dump_tdep): New function.
1127 2002-05-30 Kevin Buettner <kevinb@redhat.com>
1129 * corefile.c (do_captured_read_memory_integer): Return non-zero
1131 (safe_read_memory_integer): Copy result of memory read when
1132 status is non-zero. Also, add comments.
1134 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
1136 * Makefile.in (ppc_tdep_h): Define.
1139 (rs6000-tdep.o): Use $(ppc_tdep_h).
1142 (ppcnbsd-tdep.o): New dependency lists.
1143 * ppc-tdep.h: Use generic OS ABI framework.
1144 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
1145 (ppc_linux_init_abi): New functions.
1146 (ppc_sysv_abi_broken_use_struct_convention)
1147 (ppc_sysv_abi_use_struct_convention)
1148 (ppc_sysv_abi_push_arguments): Move to...
1149 * ppc-sysv-tdep.c: ...here.
1150 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
1151 * rs6000-tdep.c (process_note_abi_tag_sections)
1152 (get_elfosabi): Remove.
1153 (rs6000_gdbarch_init): Use generic OS ABI framework.
1154 (rs6000_dump_tdep): New function.
1155 (_initialize_rs6000_tdep): Use gdbarch_register.
1156 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
1157 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
1158 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
1159 of ppc-linux-tdep.o.
1160 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
1161 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
1162 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
1163 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
1164 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
1165 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
1167 2002-05-29 Jim Blandy <jimb@redhat.com>
1169 * macroscope.c (default_macro_scope): Put `void' in empty argument
1172 2002-05-29 Andrew Cagney <ac131313@redhat.com>
1174 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
1175 * arch-utils.c: Include "sim-regno.h".
1176 * gdbarch.sh: Don't include "sim-regno.h".
1177 * gdbarch.h, gdbarch.c: Regenerate.
1178 * sim-regno.h (legacy_register_sim_regno): Move declaration from
1180 * arch-utils.h (legacy_register_sim_regno): To here.
1181 * remote-sim.c (legacy_register_sim_regno): Move function from
1183 * arch-utils.c (legacy_register_sim_regno): To here.
1185 2002-05-28 Andrew Cagney <ac131313@redhat.com>
1187 * sim-regno.h: New file.
1188 * Makefile.in (sim_regno_h): Define.
1189 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
1190 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
1191 (legacy_register_sim_regno): New function.
1192 (one2one_register_sim_regno): New function.
1193 (gdbsim_fetch_register): Rewrite.
1194 (gdbsim_store_register): Only store a register when
1195 REGISTER_SIM_REGNO is valid.
1196 * d10v-tdep.c: Include "sim-regno.h".
1197 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
1198 (d10v_ts3_register_sim_regno): Ditto.
1199 * gdbarch.sh: Include "sim-regno.h".
1200 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
1201 * gdbarch.h, gdbarch.c: Regenerate.
1202 * arch-utils.h (default_register_sim_regno): Delete declaration.
1203 * arch-utils.c (default_register_sim_regno): Delete function.
1205 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
1207 * ppcnbsd-nat.c: Rewrite.
1208 * ppcnbsd-tdep.c: New file.
1209 * ppcnbsd-tdep.h: New file.
1210 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
1211 solib.o, and solib-svr4.o.
1212 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
1213 nbsd-tdep.o, and corelow.o.
1215 2002-05-28 Andrew Cagney <ac131313@redhat.com>
1217 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
1218 `tr' and `sed'. Mention that `broken' targets are not expected to
1221 2002-05-27 Michal Ludvig <mludvig@suse.cz>
1223 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
1224 Let PC point right after the prologue before looking up symbols.
1226 2002-05-27 Martin M. Hunt <hunt@redhat.com>
1228 * i386-tdep.c (i386_register_virtual_type): Return
1229 builtin_type_vec128i for SSE registers.
1231 * gdbtypes.h (builtin_type_vec128i): Declare.
1233 * gdbtypes.c (build_builtin_type_vec128i): New function.
1234 (builtin_type_v2_double, builtin_type_v4_int64): New types.
1235 (builtin_type_vec128i): New type for SSE2 128-bit registers.
1236 (build_gdbtypes): Initialize new builtin vector types.
1237 (_initialize_gdbtypes): Register new vector types with gdbarch.
1239 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
1241 * MAINTAINERS: ns32k is not longer an obsolete candidate,
1242 since it has been multi-arch'd.
1243 * NEWS: Note that ns32k-*-* is now partial multi-arch.
1244 Move Alpha and VAX multi-arch news entries to same section
1245 as other multi-arch news.
1247 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
1249 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
1250 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
1251 static. Rename some register numbers to put them in ns32k-tdep
1253 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
1254 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
1256 (_initialize_ns32k_tdep): Use gdbarch_register.
1257 * ns32k-tdep.h: New file.
1258 * ns32knbsd-tdep.c: New file.
1259 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
1260 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
1261 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
1262 REGISTER_BYTES, REGISTER_BYTE): Remove.
1263 * config/ns32k/tm-ns32k.h: New file.
1264 * config/ns32k/tm-umax.h: Remove.
1266 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
1268 * ns32k-tdep.c (ns32k_saved_pc_after_call,
1269 ns32k_store_struct_return, ns32k_extract_return_value,
1270 ns32k_store_return_value, ns32k_extract_struct_value_address): New
1272 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
1273 ns32k_saved_pc_after_call.
1274 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
1275 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
1276 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
1277 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
1278 ns32k_extract_struct_value_address.
1280 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
1282 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
1283 ns32k_fix_call_dummy): New.
1284 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
1285 ns32k_call_dummy_words.
1286 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
1287 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
1288 CALL_DUMMY_NARGS): Remove.
1289 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
1291 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
1293 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
1294 ns32k_frame_saved_pc, ns32k_frame_args_address,
1295 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
1296 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
1297 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
1298 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
1299 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
1300 (BREAKPOINT): Remove..
1301 (FRAME_CHAIN): Define as ns32k_frame_chain.
1302 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
1303 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
1304 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
1305 (FRAME_FIND_SAVED_REGS): Remove.
1306 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
1307 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
1308 (POP_FRAME): Define as ns32k_pop_frame.
1310 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
1312 * ns32k-tdep.c (ns32k_register_byte_32082,
1313 ns32k_register_byte_32382, ns32k_register_raw_size,
1314 ns32k_register_virtual_size, ns32k_register_virtual_type): New
1316 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
1317 ns32k_register_byte_32382.
1318 * config/ns32k/tm-umax.h: Update copyright years.
1319 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
1320 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
1321 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
1322 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
1323 (ns32k_get_enter_addr): Fix prototype.
1325 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
1327 * ns32k-tdep.c: Update copyright years.
1328 (ns32k_register_name_32082): New function.
1329 (ns32k_register_name_32382): Ditto.
1330 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
1331 (REGISTER_NAME): Define as ns32k_register_name_32382.
1332 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
1333 (REGISTER_NAME): Define as ns32k_register_name_32082.
1335 2002-05-24 Jim Blandy <jimb@redhat.com>
1337 * dwarf2read.c (free_line_header): Use xfree, not free.
1339 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
1341 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
1342 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
1344 2002-05-23 Andrew Cagney <ac131313@redhat.com>
1346 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
1348 2002-05-23 Andrew Cagney <ac131313@redhat.com>
1350 From Ross Alexander at NEC Europe:
1351 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
1353 2002-05-23 Michael Snyder <msnyder@redhat.com>
1355 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
1356 for input, rather than parse_and_eval_address.
1358 2002-05-23 Andrew Cagney <ac131313@redhat.com>
1360 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
1361 * Makefile.in (sim_d10v_h): Update definition.
1363 2002-05-24 Andrew Cagney <cagney@redhat.com>
1365 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
1366 change `2002-05-22 Michael Snyder' below.
1367 (d10v_push_arguments): Ditto.
1368 (d10v_extract_return_value): Ditto.
1370 2002-05-23 Jim Blandy <jimb@redhat.com>
1372 * macrotab.c (check_for_redefinition): Don't complain if the new
1373 definition is the same as the previous one. Take more arguments
1374 to allow the comparison.
1375 (macro_define_object, macro_define_function): Pass more arguments
1376 to check_for_redefinition.
1378 2002-05-22 Michael Snyder <msnyder@redhat.com>
1380 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
1381 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
1382 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
1383 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
1384 Don't bail if return_pc is PC_IN_CALL_DUMMY.
1385 Add a temp variable to save a call (and a memory read).
1386 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
1387 if possible (so that PC_IN_CALL_DUMMY will work).
1389 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
1391 * MAINTAINERS: Remove status `OBSOLETE' from v850.
1393 2002-05-22 Michal Ludvig <mludvig@suse.cz>
1395 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
1397 (dwarf2_build_frame_info): Corrected handling of eh_frame.
1398 (dwarf2_build_frame_info): Add offset to fde->initial_location
1399 so that frames of shared libraries are mapped correctly.
1400 (execute_stack_op): Change type of 'result' from ULONGEST to
1403 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
1405 * config/alpha/tm-nbsd.h: Include solib.h.
1407 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
1409 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
1410 assumptions about the host's byte order.
1412 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
1414 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
1416 * alphanbsd-tdep.c: Include solib-svr4.h.
1417 * shnbsd-tdep.c: Ditto.
1419 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
1421 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
1422 nbsd-tdep.h to dependency list.
1423 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
1424 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
1425 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
1426 nbsdaout.mh and nbsdelf.mh consistently.
1427 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
1428 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
1429 nbsdaout.mt and nbsdelf.mh consistently.
1430 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
1431 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
1432 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
1433 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
1434 a.out shared library stuff from here...
1435 * config/nm-nbsdaout.h: ...to here.
1436 * config/tm-nbsd.h: Remove.
1437 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
1438 * config/arm/nbsd.mh: Remove.
1439 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
1441 * config/arm/nbsdaout.mh: New file.
1442 * config/arm/nbsdelf.mh: New file.
1443 * config/arm/nm-nbsdaout.h: New file.
1444 * config/i386/nbsd.mh: Remove.
1445 * config/i386/nbsd.mt: Remove.
1446 * config/i386/nbsdaout.mh: New file.
1447 * config/i386/nbsdaout.mt: New file.
1448 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
1449 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
1450 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
1451 i386_register_u_addr): Remove.
1452 * config/i386/nm-nbsdaout.h: New file.
1453 * config/i386/nm-nbsdelf.h: Remove.
1454 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
1455 (USE_STRUCT_CONVENTION): Remove.
1456 * config/i386/tm-nbsdaout.h: New file.
1457 * config/i386/tm-nbsdelf.h: Remove.
1458 * config/m68k/nbsd.mh: Remove.
1459 * config/m68k/nbsd.mt: Remove.
1460 * config/m68k/nbsdaout.mh: New file.
1461 * config/m68k/nbsdaout.mt: New file.
1462 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
1463 * config/m68k/nm-nbsdaout.h: New file.
1464 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
1465 (IN_SOLIB_CALL_TRAMPOLINE): Define.
1466 * config/ns32k/nbsd.mh: Remove.
1467 * config/ns32k/nbsd.mt: Remove.
1468 * config/ns32k/nbsdaout.mh: New file.
1469 * config/ns32k/nbsdaout.mt: New file.
1470 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
1471 * config/ns32k/nm-nbsdaout.h: New file.
1472 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
1473 (IN_SOLIB_CALL_TRAMPOLINE): Define.
1474 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
1475 (SVR4_SHARED_LIBS): Remove.
1476 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
1477 * config/sparc/nbsd.mh: Remove.
1478 * config/sparc/nbsd.mt: Remove.
1479 * config/sparc/nbsdaout.mh: New file.
1480 * config/sparc/nbsdaout.mt: New file.
1481 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
1482 * config/sparc/nbsdelf.mt: New file.
1483 * config/sparc/nm-nbsdaout.h: New file.
1484 * config/sparc/nm-nbsdelf.h: Remove.
1485 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
1486 * config/sparc/tm-nbsdaout.h: New file.
1488 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
1490 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
1492 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
1494 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
1496 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
1498 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
1500 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
1502 * NEWS: Note new MIPS NetBSD native configuration.
1503 * configure.host (mips*-*-netbsd*): New host.
1504 * configure.tgt (mips*-*-netbsd*): New target.
1505 * mipsnbsd-nat.c: New file.
1506 * mipsnbsd-tdep.c: New file.
1507 * mipsnbsd-tdep.h: New file.
1508 * config/mips/nbsd.mh: New file.
1509 * config/mips/nbsd.mt: New file.
1510 * config/mips/nm-nbsd.h: New file.
1511 * config/mips/tm-nbsd.h: New file.
1513 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
1515 * Makefile.in (SFILES): Add osabi.c.
1516 (COMMON_OBS): Add osabi.o.
1517 (osabi.o): New dependency list.
1518 * osabi.c: New file.
1519 * osabi.h: New file.
1520 * doc/gdbint.texinfo: Document new generic OS ABI framework.
1522 * Makefile.in (alpha_tdep_h): Define and use instead of
1524 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
1525 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
1527 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
1528 * alpha-tdep.h: Include osabi.h.
1529 (alpha_abi): Remove.
1530 (gdbarch_tdep): Use generic OS ABI framework.
1531 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
1532 gdbarch_register_osabi.
1533 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
1534 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
1535 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
1537 * Makefile.in (sh_tdep_h): Add osabi.h.
1538 * sh-tdep.h (sh_osabi): Remove.
1539 (gdbarch_tdep): Use generic OS ABI framework.
1540 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
1541 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
1542 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
1543 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
1545 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
1546 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
1547 gdbarch_register_osabi.
1548 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
1549 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
1550 (get_elfosabi): Rename to...
1551 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
1552 ABI framework support routines.
1553 (arm_gdbarch_init): Use generic OS ABI framework.
1554 (arm_dump_tdep): Likewise.
1555 (_initialize_arm_tdep): Likewise.
1556 * arm-tdep.h: Include osabi.h.
1558 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
1560 (arm_gdbarch_register_os_abi): Remove prototype.
1561 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
1562 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
1564 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
1565 * mips-tdep.c: Include osabi.h.
1566 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
1569 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
1571 * h8300-tdep.c: Fix formatting.
1573 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
1575 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
1576 printing vector registers.
1578 2002-05-19 Andrew Cagney <ac131313@redhat.com>
1580 From Fernando Nasser:
1581 * remote.c (remote_async_open_1): Re-throw the exception when the
1583 (remote_cisco_open): Ditto.
1584 (remote_open_1): Ditto.
1586 2002-05-19 Andrew Cagney <ac131313@redhat.com>
1588 * remote.c (remote_start_remote_dummy): Add uiout parameter.
1589 (remote_start_remote): Add uiout parameter. Pass through to
1590 remote_start_remote_dummy.
1591 (remote_open_1): Use catch_exception instead of catch_errors.
1592 (remote_async_open_1): Ditto.
1593 (remote_cisco_open): Ditto.
1595 2002-05-19 Andrew Cagney <ac131313@redhat.com>
1597 * remote.c (remote_start_remote): Replace PTR with void pointer.
1598 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
1601 2002-05-18 Andrew Cagney <ac131313@redhat.com>
1603 * gdb_indent.sh: Allow the script to be run in the sim directory.
1605 2002-05-18 Mark Kettenis <kettenis@gnu.org>
1607 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
1608 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
1610 * corelow.c (core_open): Only call set_gdbarch_from_file if
1613 2002-05-17 Andrey Volkov <avolkov@transas.com>
1615 * h8300-tdep.c: Add support of EXR register
1616 * config/h8300/tm-h8300.h: Ditto.
1618 2002-05-17 Andrey Volkov <avolkov@transas.com>
1620 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
1622 2002-05-17 Andrey Volkov <avolkov@transas.com>
1624 * h8300-tdep.c: Change literal regnums to REGNO.
1626 2002-05-17 Jim Blandy <jimb@redhat.com>
1628 * NEWS: Note addition of macro support.
1630 Expand preprocessor macros in C expressions.
1631 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
1632 (scan_macro_expansion, scanning_macro_expansion,
1633 finished_macro_expansion): New function declarations.
1634 (expression_macro_lookup_func, expression_macro_lookup_baton): New
1635 variable declarations.
1636 * parser-defs.h (expression_context_pc): New declaration.
1637 * parse.c (expression_context_pc): New variable.
1638 (parse_exp_1): Set expression_context_pc, as well as
1639 expression_context_block.
1640 * c-exp.y (yylex): If we're not already reading the result of a
1641 macro expansion, try to macro-expand the next token. When we're
1642 done scanning a macro expansion, switch back to the mainline text.
1643 Commas and `if's in a macro's expansion don't terminate the input.
1644 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
1645 (macro_original_text, macro_expanded_text,
1646 expression_macro_lookup_func, expression_macro_lookup_baton): New
1648 (scan_macro_expansion, scanning_macro_expansion,
1649 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
1650 c_preprocess_and_parse): New functions.
1651 (c_language_defn, cplus_language_defn, asm_language_defn): Call
1652 c_preprocess_and_parse, instead of c_parse.
1653 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
1654 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
1656 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
1658 * sh-tdep.c (gdb_print_insn_sh64): Delete.
1659 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
1660 (sh_gdbarch_init): Always use gdb_print_insn_sh.
1662 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
1664 * NEWS: Add section for multi-arched targets. Add v850 to that section.
1666 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
1668 * Makefile.in (sh_tdep_h): Define and use.
1669 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
1670 register enum): Move to...
1671 * * sh-tdep.h: ...here.
1672 * sh-tdep.c: Include sh-tdep.h.
1673 * sh3-rom.c: Likewise.
1674 * shnbsd-tdep.c: Likewise.
1676 2002-05-16 Michael Snyder <msnyder@redhat.com>
1678 * arm-tdep.c: Spelling fix in comment.
1680 2002-05-16 Jim Blandy <jimb@redhat.com>
1682 Add commands for manually expanding macros and showing their
1684 * macrocmd.c, macroscope.c, macroscope.h: New files.
1685 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
1686 (macroscope_h): New variable.
1687 (HFILES_NO_SRCDIR): Add macroscope.h.
1688 (COMMON_OBS): Add macrocmd.o, macroscope.o.
1689 (macroscope.o, macrocmd.o): New rules.
1691 Teach the Dwarf 2 reader to read macro information.
1692 * dwarf2read.c: #include "macrotab.h".
1693 (dwarf_macinfo_buffer): New variable.
1694 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
1696 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
1697 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
1698 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
1699 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
1700 dwarf2_macro_spaces_in_definition): New complaints.
1701 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
1702 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
1703 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
1704 the partial symbol table.
1705 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
1706 from what's recorded in the partial symbol table.
1707 (read_file_scope): If the compilation unit has a
1708 `DW_AT_macro_info' attribute, read its macro information.
1709 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
1711 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
1714 * ser-tcp.c: Don't include <netinet/udp.h>.
1716 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
1718 * MAINTAINERS: Update my email address.
1720 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
1722 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
1723 include file of the same name.
1725 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
1727 * configure.tgt: Mark v850 as multi-arched.
1728 * config/v850/tm-v850.h: Remove file.
1729 * config/v850/v850.mt: Eliminate TM_FILE.
1731 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
1733 * v850-tdep.c: Full multi-arch.
1734 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
1735 Define GDB_MULTI_ARCH to 2.
1737 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
1739 * p-exp.y (current_type): New static variable.
1740 Carries the type of the expression at the position that is parsed.
1741 (push_current_type, pop_current_type): Two new functions. Used
1742 to store/restore current_type in expression on specific tokens.
1743 (search_field): New static variable. Set to one after parsing a point
1744 as at that point only a FIELDNAME token should be searched.
1745 (FIELDNAME): New token. After a point only a token belonging to
1746 current_type type definition is allowed.
1747 (all over token rules): reset and change current_type according
1749 (exp '[' rule): insert implicit array index field if
1750 exp is a pascal string type.
1752 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
1754 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
1755 frame info. Use frame_info's saved_regs instead of matching member
1756 in extra_frame_info throughout.
1757 (v850_frame_init_saved_regs): New function.
1758 (v850_init_extra_frame_info): Move most functionality into
1759 v850_frame_init_saved_regs().
1760 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
1761 (v850_frame_find_saved_regs): Remove declaration.
1762 (FRAME_FIND_SAVED_REGS): Remove definition.
1763 (v850_frame_init_saved_regs): Add declaration.
1764 (FRAME_INIT_SAVED_REGS): Add definition.
1766 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
1768 * v850-tdep.c: Begin multi-arch'ing v850.
1769 (v850_target_architecture_hook): Remove function.
1770 (v850_gdbarch_init): New function. Add code previously in
1771 v850_target_architecture_hook().
1772 (_initialize_v850_tdep): Don't set target_architecture_hook.
1773 Call register_gdbarch_init() instead.
1775 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
1777 * gdbtypes.h (struct cplus_struct_type): Remove args field.
1778 * hpread.c (hpread_read_struct_type): Remove assignments to args.
1779 (fixup_class_method_type): Likewise.
1781 2002-05-15 Daniel Jacobowitz <drow@mvista.com>
1783 From Martin Pool <mbp@samba.org>:
1784 * gdbserver/server.c (gdbserver_usage): New function.
1787 2002-05-15 Jim Blandy <jimb@redhat.com>
1789 Add macro structures to GDB's symbol tables. Nobody puts anything
1791 * symtab.h (struct symtab): New member: `macro_table'.
1792 * buildsym.h (pending_macros): New global variable.
1793 * buildsym.c: #include "macrotab.h".
1794 (buildsym_init): Initialize `pending_macros'.
1795 (end_symtab): If we found macro information while reading a CU's
1796 debugging info, do build a symtab structure for it. Make the
1797 symtab point to the macro information, and clear the
1798 `pending_macros' pointer which held it while we were reading the
1800 (really_free_pendings): Free any pending macro table.
1801 * objfiles.h (struct objfile): New member: `macro_cache'.
1802 * objfiles.c (allocate_objfile): Set allocate and free functions
1803 for the macro cache's objstack.
1804 (free_objfile): Empty the macro cache's obstack.
1805 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
1806 set new allocate and free functions for it.
1807 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
1808 free functions for the macro cache's objstack. (Why is this
1809 function building its own objfile?)
1810 * symmisc.c (print_objfile_statistics): Print statistics on the
1812 * Makefile.in: Note that buildsym.o depends on macrotab.h.
1814 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
1816 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
1817 (REGISTER_U_ADDR): Delete definition.
1818 (arm_register_u_addr): Delete declaration.
1820 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
1822 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
1823 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
1825 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
1827 * gdbserver/mem-break.c (reinsert_breakpoint_by_bp): Correct typo
1830 2002-05-14 Andrew Cagney <ac131313@redhat.com>
1832 * regcache.c (register_valid): Revise comments refering to "Not
1833 available" and "unavailable".
1834 * frame.c (frame_register_read): Ditto.
1835 * findvar.c (value_of_register): Ditto.
1837 2002-05-15 Andrew Cagney <cagney@redhat.com>
1839 * Makefile.in (remote_sim_h): Replace remote-sim_h.
1840 (remote-sim.o): Update dependencies.
1841 (d10v-tdep.o): Specify dependencies.
1842 (sim_d10v_h): Define.
1844 2002-05-14 Jim Blandy <jimb@redhat.com>
1846 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
1847 * macrotab.c (macro_lookup_inclusion, find_definition,
1848 new_macro_table): Same.
1850 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
1851 not `! strcmp ()'. This is a dubious improvement.
1852 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
1854 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
1855 although it's not necessary, to avoid a warning.
1857 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
1859 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
1860 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
1861 TYPE_INSTANCE_FLAGS.
1862 (struct main_type): New.
1863 (struct type): Move most members to struct main_type. Change
1864 cv_type and as_type to new type_chain member. Add instance_flags.
1865 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
1866 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
1867 (finish_cv_type): Remove prototype.
1868 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
1870 (alloc_type_instance): New function.
1871 (smash_type): New function.
1872 (make_pointer_type, make_reference_type, make_function_type)
1873 (smash_to_member_type, smash_to_method_type): Call smash_type.
1874 (make_qualified_type): New function.
1875 (make_type_with_address_space): Call make_qualified_type.
1876 (make_cv_type): Likewise.
1877 (finish_cv_type): Remove unnecessary function.
1878 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
1879 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
1880 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
1881 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
1882 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
1883 * hpread.c (hpread_read_struct_type): Likewise.
1884 * stabsread.c (read_struct_type): Likewise.
1886 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
1888 * configure.tgt: Add a catch all sh* target, for cases like
1889 sh[2,3,4]-elf and sh-hms.
1891 2002-05-14 Keith Seitz <keiths@redhat.com>
1893 * event-loop.c (create_file_handler): Don't do anything but
1894 update data when we are given a fd which we are already
1897 2002-05-14 Michal Ludvig <mludvig@suse.cz>
1899 * dwarf2cfi.c (context_cpy): Copy registers correctly.
1900 (update_context): Use __func__ in warnings.
1902 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
1904 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
1905 and tcp_close to net_open and net_close.
1906 (net_open): Accept "udp:" and "tcp:" specifications. Connect
1907 using UDP if requested. Don't try to disable Nagle on UDP
1909 * remote.c (remote_serial_open): New function. Warn about UDP.
1910 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
1912 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
1914 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
1916 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
1918 * configure.tgt: Remove sh-hms target.
1919 * MAINTAINERS: Don't list sh-hms as a separate target.
1921 2002-05-13 Jim Blandy <jimb@redhat.com>
1923 Add first preprocessor macro-expansion files.
1924 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
1925 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
1926 (splay_tree_h, macroexp_h, macrotab_h): New variable.
1927 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
1928 (COMMON_OBS): Add macrotab.o, macroexp.o.
1929 (macroexp.o, macrotab.o): New rules.
1931 2002-05-13 Andrew Cagney <ac131313@redhat.com>
1933 * config/m88k/tm-m88k.h: Update copyright.
1934 (m88k_target_write_pc): Declare
1935 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
1936 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
1937 (SHIFT_INST_REGS): Update definition.
1938 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
1939 using old definition of TARGET_WRITE_PC.
1940 * regcache.c (generic_target_write_pc): Delete code handling
1942 * gdbarch.sh (NNPC_REGNUM): Delete.
1943 * gdbarch.h, gdbarch.c: Regenerate.
1945 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
1947 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
1950 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
1952 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
1953 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
1954 (gen_address_of, gen_struct_ref, gen_repeat): Use type
1956 * c-typeprint.c (cp_type_print_method_args): Likewise.
1957 (c_type_print_args): Likewise.
1958 * d10v-tdep.c (d10v_push_arguments): Likewise.
1959 (d10v_extract_return_value): Likewise.
1960 * expprint.c (print_subexp): Likewise.
1961 * gdbtypes.c (lookup_primitive_typename): Likewise.
1962 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
1963 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
1964 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
1965 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
1966 (TYPE_VECTOR): Likewise.
1967 * hpread.c (hpread_read_struct_type)
1968 (fix_static_member_physnames, fixup_class_method_type)
1969 (hpread_type_lookup): Likewise.
1970 * mdebugread.c (parse_symbol, parse_type): Likewise.
1971 * p-lang.c (is_pascal_string_type): Likewise.
1972 * valops.c (hand_function_call): Likewise.
1973 * x86-64-tdep.c (classify_argument): Likewise.
1975 * hpread.c (hpread_read_function_type)
1976 (hpread_read_doc_function_type): Call replace_type.
1977 * dstread.c (create_new_type): Delete.
1978 (decode_dst_structure, process_dst_function): Call alloc_type.
1979 Use type access macros.
1981 2002-05-12 Mark Kettenis <kettenis@gnu.org>
1983 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
1984 the're not supported by the current architecture.
1985 (i387_fill_fxsave): Likewise.
1987 2002-05-12 Fred Fish <fnf@redhat.com>
1989 * symfile.c (default_symfile_offsets): Arrange for uninitialized
1990 sect_index_xxx members to index the first slot in section_offsets
1991 if all of the section_offsets are zero.
1993 2002-05-12 Mark Kettenis <kettenis@gnu.org>
1995 * configure.tgt (sparc-*openbsd): Remove entry accidentially
1996 checked in with last change.
1998 2002-05-12 Mark Kettenis <kettenis@gnu.org>
2000 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
2001 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
2004 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
2006 * Makefile.in: Update dependencies.
2008 2002-05-11 Andrew Cagney <ac131313@redhat.com>
2010 * language.c (local_hex_string_custom): Simplify. Do not depend
2011 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
2013 * memattr.c (mem_info_command): Replace calls to
2014 longest_local_hex_string and longest_local_hex_string_custom.
2015 * buildsym.c (make_blockvector): Ditto.
2016 * solib.c (info_sharedlibrary_command): Ditto.
2017 * tracepoint.c (tracepoints_info): Ditto.
2018 * symtab.c (print_msymbol_info): Ditto.
2020 * language.c (local_hex_string): Delete.
2021 (local_hex_string_custom): Delete.
2022 (longest_local_hex_string): Rename to local_hex_string.
2023 (longest_local_hex_string_custom): Rename to
2024 local_hex_string_custom.
2025 * language.h (local_hex_string): Change parameter type to LONGEST.
2026 (local_hex_string_custom): Ditto.
2027 (longest_local_hex_string): Delete declaration.
2028 (longest_local_hex_string_custom): Ditto.
2030 * solib.c: Update copyright.
2031 * memattr.c: Update copyright.
2033 2002-05-11 Andrew Cagney <ac131313@redhat.com>
2035 * arch-utils.h (legacy_register_to_value): Declare.
2036 (legacy_value_to_register): Declare.
2037 (legacy_convert_register_p): Declare.
2038 * arch-utils.c (legacy_register_to_value): New function.
2039 (legacy_value_to_register): New function.
2040 (legacy_convert_register_p): New function.
2042 * gdbarch.sh (REGISTER_TO_VALUE): Define.
2043 (VALUE_TO_REGISTER): Define.
2044 (CONVERT_REGISTER_P): Define.
2045 * gdbarch.h, gdbarch.c: Regenerate.
2047 * valops.c (value_assign): Use CONVERT_REGISTER_P and
2049 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
2052 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
2053 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2055 * Makefile.in: Update dependencies for valops.c.
2056 * valops.c: Include "gdb_assert.h".
2057 (typecmp): Skip THIS parameter to methods.
2058 (find_method_list): Remove static_memfuncp argument,
2059 update callers. Check for stub methods.
2060 (find_value_oload_method_list): Don't set *static_memfuncp.
2061 (find_overload_match): Don't check for stub methods. Assert
2062 that methods are not stubbed. Handle static methods.
2063 (value_find_oload_method_list): Remove static_memfuncp argument.
2064 * gdbtypes.c (check_stub_method): Do not add THIS pointer
2065 to the argument list for static stub methods.
2066 * value.h (value_find_oload_method_list): Update prototype.
2068 2002-05-11 Andrew Cagney <ac131313@redhat.com>
2070 * arch-utils.h (generic_register_size): Declare.
2071 (generic_register_raw_size, generic_register_virtual_size): Delete
2073 * arch-utils.c (generic_register_raw_size): Delete.
2074 (generic_register_size): New function.
2075 (generic_register_virtual_size): Delete.
2077 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
2078 default generic_register_size.
2079 * gdbarch.h, gdbarch.c: Re-generate.
2081 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
2082 register_virtual_size.
2083 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
2084 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2086 2002-05-11 Andrew Cagney <ac131313@redhat.com>
2088 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
2089 * gdbarch.h, gdbarch.c: Regenerate.
2090 * gnu-v3-abi.c: Update copyright.
2091 (vtable_address_point_offset): Update.
2092 (gnuv3_rtti_type): Update.
2093 (gnuv3_baseclass_offset): Update.
2094 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
2095 (init_fetch_link_map_offsets): Update.
2096 * remote.c (get_remote_state): Update.
2098 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
2100 * TODO: Remove value_headof/value_from_vtable_info comment.
2101 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
2102 * values.c (value_headof, value_from_vtable_info): Delete.
2103 * value.h (value_from_vtable_info): Delete prototype.
2105 2002-05-11 Andrew Cagney <ac131313@redhat.com>
2107 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
2108 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
2110 (gdb_assert_h): Define.
2111 (gdb_wait_h): Define.
2112 (gdb_regex_h): Define.
2114 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
2116 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
2117 * linespec.c (find_methods): Handle GCC 3.x template constructors.
2119 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
2121 * nbsd-tdep.c: Fix comment.
2123 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
2125 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
2126 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
2127 (nbsd-tdep.o): New dependency list.
2128 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
2130 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
2131 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
2132 * nbsd-tdep.c: New file.
2133 * nbsd-tdep.h: New file.
2134 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
2136 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
2137 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
2138 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
2139 * config/sh/nbsd.mt (TDEPFILES): Ditto.
2141 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
2143 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
2144 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
2145 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
2146 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
2147 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
2148 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
2150 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
2152 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
2153 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
2154 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
2155 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
2156 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
2157 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
2158 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
2160 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
2162 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
2163 fetch_elfcore_registers to...
2164 * i386nbsd-tdep.c: ...here.
2165 (i386nbsd_use_struct_convention): Rename to...
2166 (i386nbsd_aout_use_struct_convention): ...this.
2167 (i386nbsd_supply_reg): New function.
2168 (i386nbsd_fill_reg): New function.
2169 (fetch_core_registers): Use i386nbsd_supply_reg.
2170 (fetch_elfcore_registers): Likewise.
2171 (_initialize_i386nbsd_tdep): New function.
2172 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
2173 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
2174 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
2175 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
2176 (i386nbsd_aout_use_struct_convention): ...this.
2178 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
2180 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
2181 (store_inferior_registers): Use shnbsd_fill_reg.
2182 * shnbsd-tdep.c (sh_nbsd_supply_registers,
2183 sh_nbsd_supply_register): Collapse into...
2184 (shnbsd_supply_reg): ...this.
2185 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
2186 (shnbsd_fill_reg): ...this.
2187 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
2188 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
2189 (fetch_core_registers): Use shnbsd_supply_reg.
2190 (fetch_elfcore_registers): Use shnbsd_supply_reg.
2191 (sh_nbsd_core_fns): Rename to...
2192 (shnbsd_core_fns): ...this.
2193 (sh_nbsd_elfcore_fns): Rename to...
2194 (shnbsd_elfcore_fns): ...this.
2195 (sh_nbsd_init_abi): Rename to...
2196 (shnbsd_init_abi): ...this.
2197 (_initialize_sh_nbsd_tdep): Rename to...
2198 (_initialize_shnbsd_tdep): ...this.
2199 * shnbsd-tdep.h (sh_nbsd_supply_registers,
2200 sh_nbsd_supply_register, sh_nbsd_fill_registers,
2201 sh_nbsd_fill_register): Remove prototypes.
2202 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
2204 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
2206 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
2207 (i387-nat.o): Delete dependency list.
2208 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
2209 (x86-64-linux-nat.o): Likewise.
2210 * i387-nat.c: Delete file, moving contents to...
2211 * i387-tdep.c: ...here.
2212 * i387-nat.h: Rename...
2213 * i387-tdep.h: ...to this.
2214 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
2215 * i386-linux-nat.c: Likewise.
2216 * i386bsd-nat.c: Likewise.
2217 * i386gnu-nat.c: Likewise.
2218 * i386nbsd-nat.c: Likewise.
2219 * i386v4-nat.c: Likewise.
2220 * x86-64-linux-nat.c: Likewise.
2221 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
2222 * config/i386/go32.mh (NATDEPFILES): Likewise.
2223 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
2224 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
2225 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
2226 * config/i386/linux.mh (NATDEPFILES): Likewise.
2227 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
2228 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
2229 * config/i386/obsd.mh (NATDEPFILES): Likewise.
2230 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
2232 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
2234 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
2235 (alphanbsd-nat.o): Remove dependency list.
2236 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
2237 * alphanbsd-nat.c: Delete. Contents moved to...
2238 * alphanbsd-tdep.c: ...here.
2239 (_initialize_alphanbsd_tdep): Register core functions.
2240 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
2242 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
2244 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
2245 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
2246 (alphanbsd-nat.o): Likewise.
2247 (alphabsd-tdep.o): New dependency list.
2248 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
2249 (fill_gregset): Use alphabsd_fill_reg.
2250 (supply_fpregset): Use alphabsd_supply_fpreg.
2251 (fill_fpregset): Use alphabsd_fill_fpreg.
2252 (fetch_inferior_registers): Use struct reg and struct fpreg
2253 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
2254 and alphabsd_supply_fpreg.
2255 (store_inferior_registers): Use struct reg and struct fpreg
2256 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
2257 and alphabsd_fill_fpreg.
2258 * alphabsd-tdep.c: New file.
2259 * alphabsd-tdep.h: New file.
2260 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
2261 (fetch_elfcore_registers): Use alphabsd_supply_reg and
2262 alphabsd_supply_fpreg.
2263 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
2264 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
2266 2002-05-11 Eric Christopher <echristo@redhat.com>
2268 * mips-tdep.c (mips_double_register_type): Fix thinko.
2269 (mips_single_register_type): Ditto.
2270 * MAINTAINERS: Add self.
2272 2002-05-11 Mark Kettenis <kettenis@gnu.org>
2274 * i387-nat.c (i387_supply_register, i387_fill_fsave,
2275 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
2276 right thing on architectures with different endianness and/or
2279 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
2281 From Christian Limpach <chris@Pin.LU>
2282 * configure.in: Change sed expression which comments out
2283 NATDEPFILES to also comment out continuation lines.
2284 * configure: Regenerate.
2286 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
2288 * sh-tdep.c: Clean up code erroneously reintroduced by previous
2291 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
2293 * sh-tdep.c: Include correct file.
2295 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
2297 New support for sh64-elf (sh5) target.
2299 * configure.tgt: For sh64-elf target, default to sh-elf.
2301 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
2302 (struct gdbarch_tdep): Add new fields for new registers and ABI
2305 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
2306 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
2307 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
2308 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
2309 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
2310 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
2311 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
2312 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
2313 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
2314 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
2315 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
2316 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
2317 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
2318 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
2319 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
2320 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
2321 sh64_get_gdb_regnum, sh64_media_reg_base_num,
2322 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
2323 sign_extend, sh64_nofp_frame_init_saved_regs,
2324 sh64_init_extra_frame_info, sh64_get_saved_register,
2325 sh64_extract_struct_value_address, sh64_pop_frame,
2326 sh64_push_arguments, sh64_extract_return_value,
2327 sh64_store_return_value, sh64_show_media_regs,
2328 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
2329 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
2330 sh_sh64_register_virtual_type,
2331 sh_sh64_register_convert_to_virtual,
2332 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
2333 sh64_register_read, sh64_pseudo_register_write,
2334 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
2335 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
2336 sh64_do_pseudo_register, sh_compact_do_registers_info,
2337 sh64_do_registers_info, sh_gdbarch_init): New functions.
2339 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
2341 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
2343 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
2345 * linespec.c (decode_line_1): Check for a double quote after
2346 a filename correctly.
2348 2002-05-10 Jim Blandy <jimb@redhat.com>
2350 Properly track the size of the current objfile's .debug_line section.
2351 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
2352 (DWARF_LINE_SIZE): New macro.
2353 (dwarf2_build_psymtabs_hard): Record the line section's size in
2354 the partial symbol table.
2355 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
2358 2002-05-10 Petr Sorfa <petrs@caldera.com>
2360 * ia64-tdep.c: Handle breakpoints on L instruction type
2361 in MLX instruction bundle by moving the breakpoint to
2362 the third slot (X instruction type) as L holds only data.
2364 2002-05-10 Kevin Buettner <kevinb@redhat.com>
2366 * dbxread.c (discarding_local_symbols_complaint): New complaint.
2367 (process_one_symbol): Complain about discarding local symbols
2368 due to a misplaced N_LBRAC entry.
2370 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
2372 From Daniel Berlin <dan@cgsoftware.com>
2373 * linespec.c (find_toplevel_char): '<' and '>' also increase and
2374 decrease the depth we are at, in the case of templates.
2376 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
2378 * mips-tdep.c (mips_float_register_type): New function.
2379 (mips_double_register_type): New function.
2380 (mips_print_register): Use them.
2381 (do_fp_register_row): Likewise.
2383 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
2385 * signals/signals.c (signals): Remove conditional compilation around
2386 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
2387 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
2389 2002-05-09 Michael Snyder <msnyder@redhat.com>
2391 * remote-rdp.c (remote_rdp_can_run): Remove.
2393 2002-05-09 Tom Tromey <tromey@redhat.com>
2395 * jv-valprint.c (java_val_print): Handle `char' as a special case
2398 2002-05-09 Michael Snyder <msnyder@redhat.com>
2400 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
2401 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
2402 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
2403 str r(0123),[sp,#nn].
2404 (arm_skip_prologue): Ditto. Also make disassembly
2405 order-independent by placing it in a loop.
2407 2002-05-06 Michael Snyder <msnyder@redhat.com>
2409 * stabsread.c (read_type): Add recognition for new attribute:
2410 "@V;" means that an array type is actually a vector.
2411 This is analogous to the vector flag that's been added to dwarf2.
2413 2002-05-09 Mark Kettenis <kettenis@gnu.org>
2415 * i386-tdep.h (i386_abi): New enum.
2416 (struct gdbarch_tdep): Replace os_ident member with abi.
2417 (i386_gdbarch_register_os_abi): New prototype.
2418 * i386-tdep.c (i386_abi_names): New array.
2419 (process_note_abi_tag_sections): Removed.
2420 (process_note_sections): New function.
2421 (i386_elf_abi_from_note, i386_elf_abi): New functions.
2422 (struct i386_abi_handler): New struct.
2423 (i386_abi_handler_list): New variable.
2424 (i386_gdbarch_register_os_abi): New function.
2425 (i386_gdbarch_init): Adapt for the changes given above.
2427 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
2429 * gregset.h: Say "GNU/Linux".
2431 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
2433 * gdbtypes.c : Add new builtin type for 64 bit vectors.
2434 (build_gdbtypes): Build builtin_type_v2_float.
2435 (_initialize_gdbtypes): Register new builtin type.
2437 2002-05-08 Andrew Cagney <ac131313@redhat.com>
2439 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
2440 (clear_gdbarch_swap): New function.
2441 (initialize_non_multiarch): Call.
2442 (gdbarch_update_p): Before calling init(), swap out and clear the
2443 existing architecture.
2444 * gdbarch.c: Regenerate.
2446 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
2448 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
2451 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
2453 * sh-nbsd-nat.c: Rename to...
2454 * shnbsd-nat.c: ...this.
2455 * sh-nbsd-tdep.c: Rename to...
2456 * shnbsd-tdep.c: ...this.
2457 * sh-nbsd-tdep.h: Rename to...
2458 * shnbsd-tdep.h: ...this.
2459 * config/sh/nbsd.mh: Use shnbsd-nat.o.
2460 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
2462 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
2464 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
2465 concatenation for command help messages.
2467 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
2469 * NEWS: Note new sh*-*-netbsdelf* configuration.
2470 * configure.host: Set gdb_host_cpu to sh for all sh*.
2471 (sh*-*-netbsdelf*): New host.
2472 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
2473 (sh*-*-netbsdelf*): New target.
2474 * sh-nbsd-nat.c: New file.
2475 * sh-nbsd-tdep.c: New file.
2476 * sh-nbsd-tdep.h: New file.
2477 * config/sh/nbsd.mh: New file.
2478 * config/sh/nbsd.mt: New file.
2479 * config/sh/nm-nbsd.h: New file.
2480 * config/sh/tm-nbsd.h: New file.
2482 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
2484 * sh-tdep.c (sh_osabi_names): Declare.
2485 (process_note_abi_tag_sections): New function.
2486 (get_elfosabi): Ditto.
2487 (sh_gdbarch_register_os_abi): Ditto.
2488 (sh_dump_tdep): Ditto.
2489 _initialize_sh_tdep): Use gdbarch_register to register
2490 sh_gdbarch_init and sh_dump_tdep.
2491 * config/sh/tm-sh.h (sh_osabi): Declare.
2492 (gdbarch_tdep): Add sh_osabi and osabi_name members.
2494 2002-05-07 Andrew Cagney <ac131313@redhat.com>
2496 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
2497 (thumb_scan_prologue): Ditto.
2498 (arm_find_callers_reg): Ditto.
2499 (arm_frame_chain): Ditto.
2500 (arm_init_extra_frame_info): Ditto.
2501 (arm_frame_saved_pc): Ditto.
2502 (arm_pop_frame): Ditto.
2503 (arm_push_return_address): New function.
2504 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
2505 call_dummy_location, call_dummy_breakpoint_offset_p,
2506 call_dummy_breakpoint_offset, call_dummy_p,
2507 call_dummy_stack_adjust_p, call_dummy_words,
2508 sizeof_call_dummy_words, call_dummy_start_offset,
2509 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
2510 call_dummy_address, push_return_address and push_dummy_frame for
2511 generic dummy frames.
2513 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
2515 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
2516 size computation for alloca.
2517 (sh_fp_frame_init_saved_regs): Likewise.
2519 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
2521 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
2522 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
2523 * arm-tdep.c (arm_store_return_value): Use them.
2524 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
2525 * remote-rdp.c (remote_rdp_fetch_register): Use
2526 ARM_MAX_REGISTER_RAW_SIZE.
2527 (remote_rdp_store_register): Likewise.
2529 2002-05-07 Michal Ludvig <mludvig@suse.cz>
2531 * dwarf2cfi.c: Code cleanup, removed unused variables,
2532 added default labels to switch {} statements.
2533 * x86-64-tdep.c: Ditto.
2534 * x86-64-linux-nat.c: Ditto.
2536 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
2538 * solib.h: Protect against multiple inclusion.
2540 2002-05-06 Jim Blandy <jimb@redhat.com>
2542 Add first preprocessor macro-expansion files.
2543 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
2544 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
2545 (splay_tree_h, macroexp_h, macrotab_h): New variable.
2546 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
2547 (COMMON_OBS): Add macrotab.o, macroexp.o.
2548 (macroexp.o, macrotab.o): New rules.
2550 Separate the job of reading the line number info statement program
2551 header (...expialidocious) out into its own function.
2552 * dwarf2read.c (struct line_head, struct filenames, struct
2553 directories): Replace with...
2554 (struct line_header): New structure, containing the full
2555 contents of the statement program header, including the
2556 include directory and file name tables.
2557 (read_file_scope): If we have line number info, instead of just
2558 calling dwarf_decode_lines to do all the work, call
2559 dwarf_decode_line_header first to get a `struct line_header'
2560 containing the data in the statement program header, and then
2561 pass that to dwarf_decode_lines, which will pick up where that
2562 left off. Be sure to clean up the `struct line_header' object.
2563 (dwarf_decode_line_header, free_line_header, add_include_dir,
2564 add_file_name): New functions.
2565 (dwarf_decode_lines): Move all the code to read the statement
2566 program header into dwarf_decode_line_header. Take the line
2567 header it built as the first argument, instead of the offset to
2568 the compilation unit's line number info. Use the new `struct
2569 line_header' type instead of the old structures. No need to do
2570 cleanups here now, since we don't allocate anything.
2571 (dwarf2_statement_list_fits_in_line_number_section,
2572 dwarf2_line_header_too_long): New complaints.
2574 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
2576 * gdbtypes.c (init_vector_type): New function.
2577 (build_builtin_type_vec128): Simplify the representation of SIMD
2579 (build_gdbtypes): Initialize new builtin vector types.
2580 (_initialize_gdbtypes): Register new vector types with gdbarch.
2581 (builtin_type_v4_float, builtin_type_v4_int32,
2582 builtin_type_v8_int16, builtin_type_v16_int8,
2583 builtin_type_v2_int32, builtin_type_v4_int16,
2584 builtin_type_v8_int8): New (renamed) SIMD types.
2586 2002-05-06 Mark Kettenis <kettenis@gnu.org>
2588 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
2589 (i387_fill_fxsave): Likewise.
2591 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
2593 * alpha-tdep.c (alpha_extract_return_value): Don't use
2594 non-constant array size in prototype.
2596 2002-05-04 Andrew Cagney <ac131313@redhat.com>
2598 From Brian Taylor <briant at model dot com>:
2599 * ui-out.c (ui_out_field_core_addr): Use the function
2600 longest_local_hex_string_custom'to format addresses > 32 bits
2603 * ui-out.c (ui_out_field_core_addr): Update comment.
2605 2002-05-04 Andrew Cagney <ac131313@redhat.com>
2607 * stack.c (select_and_print_frame): Make static. Delete the
2609 (func_command): Update call.
2610 (select_frame_command): Delete code computing the frame level.
2611 * frame.h (select_and_print_frame): Delete declaration.
2613 2002-05-04 Andrew Cagney <ac131313@redhat.com>
2615 * sparc-tdep.c (sparc_get_saved_register): Comment why
2616 get_prev_frame call is safe.
2618 2002-05-04 Andrew Cagney <ac131313@redhat.com>
2620 * frame.h (select_frame): Delete level parameter.
2621 * stack.c (select_frame): Update. Use frame_relative_level to
2622 obtain the frame's level.
2623 (select_and_print_frame): Update call.
2624 (select_frame_command): Ditto.
2625 (up_silently_base): Ditto.
2626 (down_silently_base): Ditto.
2627 * ocd.c (ocd_start_remote): Ditto.
2628 * remote-rdp.c (remote_rdp_open): Ditto.
2629 * remote-mips.c (mips_initialize): Ditto.
2630 (common_open): Ditto.
2631 * remote-e7000.c (e7000_start_remote): Ditto.
2632 * m3-nat.c (select_thread): Ditto.
2633 * hppa-tdep.c (child_get_current_exception_event): Ditto.
2634 (child_get_current_exception_event): Ditto.
2635 * varobj.c (varobj_create): Ditto.
2636 (varobj_update): Ditto.
2637 (c_value_of_root): Ditto.
2638 * tracepoint.c (finish_tfind_command): Ditto.
2639 * corelow.c (core_open): Ditto.
2640 * arch-utils.c (generic_prepare_to_proceed): Ditto.
2641 * thread.c (info_threads_command): Ditto.
2642 (switch_to_thread): Ditto.
2643 * infrun.c (normal_stop): Ditto.
2644 (restore_selected_frame): Ditto.
2645 (restore_inferior_status): Ditto.
2646 * breakpoint.c (insert_breakpoints): Ditto.
2647 (watchpoint_check): Ditto.
2648 (bpstat_stop_status): Ditto.
2649 (do_enable_breakpoint): Ditto.
2650 * blockframe.c (flush_cached_frames): Ditto.
2651 (reinit_frame_cache): Ditto.
2653 2002-05-04 Andrew Cagney <ac131313@redhat.com>
2655 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
2658 2002-05-04 Jim Blandy <jimb@redhat.com>
2660 * gdbtypes.c (replace_type): Doc fix.
2662 2002-05-04 Andrew Cagney <ac131313@redhat.com>
2664 * valprint.c (strcat_longest): Delete commented out function.
2667 2002-05-04 Andrew Cagney <ac131313@redhat.com>
2669 * MAINTAINERS: Mark a29k as deleted.
2670 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
2671 Move new configurations to the top.
2672 * configure.tgt: Remove a29k.
2673 * config/a29k/tm-vx29k.h: Delete.
2674 * config/a29k/vx29k.mt: Delete.
2675 * config/a29k/tm-a29k.h: Delete.
2676 * config/a29k/a29k-udi.mt: Delete.
2677 * config/a29k/a29k.mt: Delete.
2678 * a29k-tdep.c: Delete.
2679 * remote-udi.c: Delete.
2680 * remote-mm.c: Delete.
2681 * remote-eb.c: Delete.
2682 * remote-adapt.c: Delete.
2683 * Makefile.in: Remove obsolete code.
2684 * gdbserver/Makefile.in: Ditto.
2685 * config/s390/s390x.mt: Ditto.
2686 * config/s390/s390.mt: Ditto.
2687 * config/sparc/sparclynx.mh: Ditto.
2688 * config/sparc/linux.mh: Ditto.
2689 * config/pa/hppaosf.mh: Ditto.
2690 * config/pa/hppabsd.mh: Ditto.
2691 * config/ns32k/nbsd.mt: Ditto.
2692 * config/mips/vr5000.mt: Ditto.
2693 * config/m68k/sun3os4.mh: Ditto.
2694 * config/m68k/nbsd.mt: Ditto.
2695 * config/m68k/m68klynx.mh: Ditto.
2696 * config/m32r/m32r.mt: Ditto.
2697 * config/i386/x86-64linux.mt: Ditto.
2698 * config/i386/nbsdelf.mt: Ditto.
2699 * config/i386/nbsd.mt: Ditto.
2700 * config/i386/i386lynx.mh: Ditto.
2702 2002-05-04 Andrew Cagney <ac131313@redhat.com>
2704 * target.c (debug_print_register): New function. Handle oversize
2706 (debug_to_fetch_registers): Call.
2707 (debug_to_store_registers): Call.
2709 2002-05-03 Jim Blandy <jimb@redhat.com>
2711 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
2712 (read_type): Doc fix.
2713 * gdbtypes.c (replace_type): Doc fix.
2715 * stabsread.c (multiply_defined_struct): New complaint.
2716 (read_struct_type): If the type we were passed isn't empty, or
2717 incomplete, don't read the new struct type into it; complain,
2718 and return the original type unchanged. Take a new `type_code'
2719 argument, which is the type code for the new type.
2720 (read_type): Rather than storing the type's type code here, pass
2721 it as an argument to read_struct_type, and let that take care of
2722 storing it. That way, we don't overwrite the original type code,
2723 so read_struct_type can use it to decide whether we're overwriting
2724 something we shouldn't.
2725 (complain_about_struct_wipeout): New function.
2727 2002-05-03 Andrew Cagney <ac131313@redhat.com>
2729 * gdbarch.sh: Assert that gdbarch is non-NULL.
2730 * gdbarch.c: Regenerate.
2732 2002-05-03 Jason Merrill <jason@redhat.com>
2734 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
2737 2002-05-03 Michal Ludvig <mludvig@suse.cz>
2739 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
2740 (x86_64_dwarf2gdb_regno_map_length),
2741 (x86_64_dwarf2_reg_to_regnum): Added.
2742 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
2743 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
2744 (_initialize_x86_64_tdep): Synced with the change above.
2745 (x86_64_skip_prologue): Reformulated message.
2747 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
2749 * f-exp.y: Also use new prev_lexptr variable
2750 to improve error reporting. Based on Michael Snyder
2751 2002-04-24 dated patch to c-exp.y.
2752 * jv-exp.y: Likewise.
2753 * m2-exp.y: Likewise.
2755 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
2757 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
2758 we are dealing with vectors.
2760 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
2762 * config/m68k/tm-nbsd.h: Obvious fix,
2763 correct machine name.
2765 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
2767 * p-typeprint.c (pascal_type_print_base): Add support
2768 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
2770 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
2772 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
2773 for fondamental pascal 'char' type.
2775 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
2777 * p-lang.h (is_pascal_string_type): Declaration changed,
2778 new sixth argument of type char ** added.
2779 * p-lang.c (is_pascal_string_type): Implementation
2780 changed. Args length_pos, length_size, string_pos, char_size
2781 can now be NULL. New argument arrayname set to the field
2782 name of the char array. Return value set to char array
2783 field index plus one.
2784 * p-valprint.c (pascal_val_print): Adapt to new declaration of
2785 is_pascal_string_type function.
2787 2002-05-02 Andrew Cagney <cagney@redhat.com>
2789 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
2790 <cagney@redhat.com> change.
2791 * gdbarch.c: Regenerate.
2793 2002-05-02 Andrew Cagney <cagney@redhat.com>
2795 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
2796 before probing for a new one. Detect errorenous gdbarch_init
2798 * gdbarch.c: Regenerate.
2800 2002-05-01 Andrew Cagney <cagney@redhat.com>
2802 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
2803 * config/mcore/tm-mcore.h: Ditto. Update copyright.
2804 * config/v850/tm-v850.h: Ditto. Update copyright.
2806 2002-04-30 Andrew Cagney <ac131313@redhat.com>
2808 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
2811 2002-04-30 Michael Snyder <msnyder@redhat.com>
2813 * arm-tdep.c: Whitespace clean-ups.
2814 (arm_skip_prologue): Fix thinko; two lines
2815 should have been removed as part of 4/24 change.
2817 2002-04-30 Kevin Buettner <kevinb@redhat.com>
2819 * rs6000-tdep.c: Added comment describing how fpscr register
2820 numbers were chosen.
2822 2002-04-30 Michael Snyder <msnyder@redhat.com>
2824 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
2826 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
2828 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
2829 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
2830 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
2832 2002-04-29 Kevin Buettner <kevinb@redhat.com>
2834 From Louis Hamilton <hamilton@redhat.com>:
2835 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
2836 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
2837 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
2838 not bfd-private xcoff data, to determine wordsize.
2839 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
2841 2002-04-29 Andrew Cagney <ac131313@redhat.com>
2843 GDB 5.2 released from 5.2 branch.
2845 2002-04-29 Michal Ludvig <mludvig@suse.cz>
2847 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
2848 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
2849 (x86_64_register_info_table): Added comments with register numbers.
2851 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
2853 * rs6000-tdep.c (rs6000_extract_return_value,
2854 rs6000_store_return_value): Handle returning vectors.
2855 (rs6000_gdbarch_init): Use
2856 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
2857 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
2859 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
2861 (ppc_sysv_abi_push_arguments): Handle vector parameters.
2862 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
2864 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
2866 * hpread.c (hpread_psymtab_to_symtab_1,
2867 hpread_psymtab_to_symtab): Replace fprintf (stderr,...)
2868 with fprintf_unfiltered (gdb_stderr,...).
2870 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
2872 * remote-array.c (printf_monitor, write_monitor,
2873 array_insert_breakpoint, array_remove_breakpoint ):
2874 Replace fprintf (stderr,...
2875 with fprintf_unfiltered (gdb_stderr,....
2876 * remote-es.c: Likewise.
2877 * remote-os9k.c: Likewise.
2878 * remote-st.c: Likewise.
2880 2002-04-28 Andreas Schwab <schwab@suse.de>
2882 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
2883 linux-proc.o and gcore.o.
2885 2002-04-26 Michal Ludvig <mludvig@suse.cz>
2887 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
2888 code without frame pointers.
2890 2002-04-26 Andrew Cagney <ac131313@redhat.com>
2892 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
2895 2002-04-26 Ben Elliston <bje@redhat.com>
2897 * target.c (do_xfer_memory): Correct reference to the new option
2898 "trust-readonly-sections".
2900 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
2902 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
2903 * gdbtypes.c (recursive_dump_type): Output the vector flag.
2904 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
2906 (read_array_type): Record the fact that this array type is really a
2907 vector (i.e. are passed in by value).
2909 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
2911 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
2912 * alpha-tdep.c (alpha_sigcontext_addr): New function.
2913 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
2914 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
2915 * alpha-linux-tdep.c: Include frame.h.
2916 (alpha_linux_sigcontext_addr): New function.
2917 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
2918 alpha_linux_sigcontext_addr.
2919 * alpha-osf1-tdep.c: Include gdbcore.h.
2920 (alpha_osf1_sigcontext_addr): New function.
2921 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
2922 alpha_osf1_sigcontext_addr.
2923 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
2924 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
2926 2002-04-26 Andrew Cagney <ac131313@redhat.com>
2928 * stack.c (selected_frame_level):
2929 (select_frame): Do not set selected_frame_level.
2930 * frame.h (selected_frame_level): Delete declaration.
2932 2002-04-26 Andrew Cagney <ac131313@redhat.com>
2934 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
2935 convert_from_func_ptr-addr when AIX / PowerOpen.
2937 2002-04-25 Andrew Cagney <ac131313@redhat.com>
2939 * valops.c (hand_function_call): Call
2940 generic_save_call_dummy_addr.
2941 * frame.h (generic_save_call_dummy_addr): Declare.
2942 * blockframe.c (struct dummy_frame): Add fields call_lo and
2944 (generic_find_dummy_frame): Check for PC in range call_lo to
2945 call_hi instead of entry_point_address.
2946 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
2947 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
2948 (generic_save_call_dummy_addr): New function.
2950 2002-04-24 David S. Miller <davem@redhat.com>
2952 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
2953 sparc_skip_prologue.
2954 (sparc_skip_prologue): Kill frameless_p arg, and use line number
2955 information to find prologue when possible.
2956 (sparc_prologue_frameless_p): Call examine_prologue directly.
2957 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
2958 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
2960 (SKIP_PROLOGUE): Likewise.
2962 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
2964 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
2965 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
2966 indicate that the condition it was testing is always true.
2967 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
2968 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
2969 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
2971 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
2973 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
2974 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
2975 tdep->jb_pc and tdep->jb_elt_size.
2976 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
2977 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
2978 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
2979 * alpha-nat.c (get_longjmp_target): Remove.
2980 (JB_ELEMENT_SIZE): Ditto.
2982 * alpha-tdep.c (alpha_get_longjmp_target): New function.
2983 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
2984 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
2985 to alpha_get_longjmp_target.
2986 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
2987 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
2988 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
2990 2002-04-25 Andrew Cagney <ac131313@redhat.com>
2992 * README: Update to GDB 5.2.
2994 2002-04-25 Andrew Cagney <ac131313@redhat.com>
2996 * gdbarch.sh (LC_ALL): Set to `c'.
2998 2002-04-25 Theodore A. Roth <troth@verinet.com>
3000 * avr-tdep.c: Ran through gdb_indent.sh.
3002 2002-04-25 Theodore A. Roth <troth@verinet.com>
3004 * MAINTAINERS: Add myself as AVR maintainer.
3005 * NEWS: Note new target avr.
3007 2002-04-25 Theodore A. Roth <troth@verinet.com>
3009 * Makefile.in: Add support for AVR target.
3010 * configure.tgt: Add support for AVR target.
3011 * avr-tdep.c: New file
3012 * config/avr/avr.mt: New file.
3014 2002-04-25 Theodore A. Roth <troth@verinet.com>
3016 * MAINTAINERS: Add myself to write-after-approval.
3018 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
3020 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
3021 with fprintf_unfiltered (gdb_stderr,....
3023 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
3026 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
3028 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
3030 * p-exp.y: Also use new prev_lexptr variable
3031 to improve error reporting. Based on Michael Snyder
3032 2002-04-24 dated patch to c-exp.y.
3034 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
3036 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
3037 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
3038 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
3040 * config/alpha/tm-alpha.h: Remove forward decls of struct type
3042 (FUNCTION_START_OFFSET): Remove.
3043 (BREAKPOINT): Ditto.
3045 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
3047 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
3050 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
3052 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
3053 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
3054 alpha_linux_pc_in_sigtramp.
3055 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
3056 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
3057 alpha_osf1_pc_in_sigtramp.
3058 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
3059 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
3060 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3061 alphafbsd_pc_in_sigtramp.
3062 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
3063 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3064 alphanbsd_pc_in_sigtramp.
3065 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
3066 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
3068 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
3070 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
3072 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
3074 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
3076 (alphanbsd-nat.o): New dependency list.
3077 (alphanbsd-tdep.o): Ditto.
3078 * NEWS: Note new native NetBSD/alpha configuration.
3079 * alphanbsd-nat.c: New file.
3080 * alphanbsd-tdep.c: Ditto.
3081 * configure.host (alpha*-*-netbsd*): New host.
3082 * configure.tgt (alpha*-*-netbsd*): New target.
3083 * config/alpha/nbsd.mh: New file.
3084 * config/alpha/nbsd.mt: Ditto.
3085 * config/alpha/nm-nbsd.h: Ditto.
3086 * config/alpha/tm-nbsd.h: Ditto.
3088 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
3090 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
3091 (alpha-osf1-tdep.o): New dependency list.
3092 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
3093 and skip_sigtramp_frame members.
3094 * alpha-linux-tdep.c: Include gdbcore.h.
3095 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
3096 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
3097 * alpha-osf1-tdep.c: New file.
3098 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
3100 (alpha_frame_past_sigtramp_frame): New function.
3101 (alpha_dynamic_sigtramp_offset): Ditto.
3102 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
3103 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
3104 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
3105 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
3106 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
3107 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
3108 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
3109 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
3110 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
3111 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
3112 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
3113 to find_solib_trampoline_target.
3114 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
3115 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
3116 (SKIP_TRAMPOLINE_CODE): Remove.
3117 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
3118 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
3119 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
3120 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
3121 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
3122 (PROC_SIGTRAMP_MAGIC): Ditto.
3123 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
3124 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
3125 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
3126 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
3127 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
3129 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
3131 * NEWS: Note that Alpha targets are now multi-arch.
3133 2002-04-24 Michael Snyder <msnyder@redhat.com>
3135 * parser-defs.h (prev_lexptr): New external variable.
3136 * parse.c (parse_exp_1): Set prev_lexptr to null before
3137 calling the language-specific parser.
3138 * c-exp.y (yylex): Set prev_lexptr to start of current token.
3139 (yyerror): Use prev_lexptr in error reporting.
3141 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
3143 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
3144 * gregset.h: If FILL_FPXREGSET is defined, provide
3145 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
3146 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
3147 is defined, call fill_fpxregset.
3149 2002-04-24 Roland McGrath <roland@frob.com>
3151 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
3152 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
3153 (supply_gregset, supply_fpregset): New functions.
3155 * gnu-nat.c (gnu_find_memory_regions): New function.
3156 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
3157 (gnu_xfer_memory): Add a cast.
3159 2002-04-24 Michael Snyder <msnyder@redhat.com>
3161 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
3162 loop. Add handling for "str lr, [sp, #-4]!" and for saves
3163 of argument regs ("str r(0123), [r11, #-nn"]).
3164 (arm_skip_prologue): Better handling for frameless functions.
3165 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
3166 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
3168 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
3170 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
3171 NUM_PSEUDO_REGS can be used.
3173 2002-04-24 Andrew Cagney <ac131313@redhat.com>
3175 * arch-utils.h: Update copyright.
3177 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
3178 * gdbarch.h, gdbarch.c: Re-generate.
3180 * inferior.h (IN_SIGTRAMP): Delete definition.
3181 * arch-utils.c (legacy_pc_in_sigtramp): New function.
3182 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
3184 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
3185 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
3186 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
3187 (find_proc_framesize): Ditto.
3188 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
3189 (alpha_init_extra_frame_info): Ditto.
3190 * infrun.c (handle_inferior_event): Ditto.
3191 (handle_inferior_event): Ditto.
3192 (check_sigtramp2): Ditto.
3193 * blockframe.c (create_new_frame): Ditto.
3194 (get_prev_frame): Ditto.
3195 * ppc-linux-tdep.c: Update comments.
3196 * i386-linux-tdep.c: Update comments.
3197 * breakpoint.c (bpstat_what): Update comment.
3199 2002-04-24 Michal Ludvig <mludvig@suse.cz>
3201 * gdbserver/linux-low.c (regsets_fetch_inferior_registers),
3202 (regsets_store_inferior_registers): Removed cast to int from
3204 * gdbserver/regcache.h: Added declaration of struct inferior_info.
3206 2002-04-24 David S. Miller <davem@redhat.com>
3208 * i960-tdep.c (register_in_window_p): New function.
3209 (i960_find_saved_register): Use it instead of
3210 REGISTER_IN_WINDOW_P.
3211 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
3213 * symtab.h (find_stab_function_addr): Kill extern.
3214 * minsyms.c (find_stab_function_addr): Remove from here...
3215 * dbxread.c: ... to here, and mark it static.
3217 2002-04-20 David S. Miller <davem@redhat.com>
3219 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
3220 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
3222 2002-04-21 David S. Miller <davem@redhat.com>
3224 * remote-vxsparc.c (vx_read_register): Fix typo, we want
3225 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
3226 (vx_write_register): Likewise.
3228 2002-04-23 J. Brobecker <brobecker@gnat.com>
3230 * source.c (is_regular_file): New function.
3231 (openp): Check wether file to open is a regular file
3232 to avoid opening directories.
3234 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
3236 * findvar.c (extract_signed_integer): Cast printf argument
3237 to suppress format warning.
3238 (extract_unsigned_integer): Likewise.
3239 * infcmd.c (registers_info): Likewise.
3240 * top.c (get_prompt_1): Likewise.
3241 * valops.c (value_assign): Likewise.
3242 * valprint.c (print_decimal): Likewise.
3244 2002-04-22 H.J. Lu (hjl@gnu.org)
3246 * c-exp.y (typebase): Support
3248 [long|long long|short] [signed|unsigned] [int|]
3252 signed [long|long long|short] int
3254 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
3256 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
3258 * vax-tdep.h: New file.
3259 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
3260 Make several routines static.
3261 (vax_get_saved_register): New function.
3262 (vax_gdbarch_init): New function.
3263 (_initialize_vax_tdep): Register vax_gdbarch_init.
3264 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
3265 Remove macros now under the control of gdbarch.
3267 2002-04-22 Michael Snyder <msnyder@redhat.com>
3269 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
3270 Some whitespace and coding standards tweaks.
3272 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
3274 * vax-tdep.c: Include regcache.h.
3275 (vax_call_dummy_words): New.
3276 (sizeof_vax_call_dummy_words): New.
3277 (vax_fix_call_dummy): New function.
3278 (vax_saved_pc_after_call): Ditto.
3279 * config/vax/tm-vax.h: Don't include regcache.h.
3280 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
3281 (CALL_DUMMY): Remove.
3282 (CALL_DUMMY_WORDS): Define.
3283 (SIZEOF_CALL_DUMMY_WORDS): Define.
3284 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
3286 2002-04-18 Michael Snyder <msnyder@redhat.com>
3288 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
3290 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
3292 * vax-tdep.c (vax_frame_chain): New function.
3293 (vax_push_dummy_frame): Ditto.
3294 (vax_pop_frame): Ditto.
3295 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
3296 (FRAMELESS_FUNCTION_INVOCATION): Use
3297 generic_frameless_function_invocation_not.
3298 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
3299 (POP_FRAME): Use vax_pop_frame.
3301 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
3303 * vax-tdep.c (vax_store_struct_return): New function.
3304 (vax_extract_return_value): Ditto.
3305 (vax_store_return_value): Ditto.
3306 (vax_extract_struct_value_address): Ditto.
3307 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
3308 vax_store_struct_return.
3309 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
3310 (STORE_RETURN_VALUE): Use vax_store_return_value.
3311 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
3313 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
3315 * vax-tdep.c (vax_frame_saved_pc): New function.
3316 (vax_frame_args_address_correct): Ditto.
3317 (vax_frame_args_address): Ditto.
3318 (vax_frame_locals_address): Ditto.
3319 (vax_frame_num_args): Move code to be in proximity to
3320 other frame-related functions.
3321 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
3322 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
3323 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
3324 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
3325 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
3327 2002-04-22 H.J. Lu (hjl@gnu.org)
3329 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
3332 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
3334 * vax-tdep.c (vax_frame_init_saved_regs): New function.
3335 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
3336 (FRAME_INIT_SAVED_REGS): New macro.
3338 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
3340 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
3342 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
3344 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
3346 (fetch_osf_core_registers): Likewise.
3347 (supply_gregset): Likewise.
3349 2002-04-22 J. Brobecker <brobecker@gnat.com>
3351 * symfile.h (get_section_index): Define.
3352 * symfile.c (get_section_index): New function.
3353 * mdebugread.c (SC_IS_SBSS): New macro.
3354 (SC_IS_BSS): Return true for the scBss storage class only, as
3355 the scSBss storage class refers to the .sbss section.
3356 (parse_partial_symbols): Discard the symbols which associated
3357 section does not exist.
3358 Make sure to use the .sbss section index for symbols which
3359 storage class is scBss, rather than using the .bss section index.
3361 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
3363 * vax-tdep.c: Update copyright years.
3364 (vax_register_name): New function.
3365 (vax_register_byte): Ditto.
3366 (vax_register_raw_size): Ditto.
3367 (vax_register_virtual_size): Ditto.
3368 (vax_register_virtual_type): Ditto.
3369 * config/vax/tm-vax.h: Update copyright years.
3370 (REGISTER_NAMES): Remove.
3371 (REGISTER_NAME): Define.
3372 (REGISTER_BYTE): Use vax_register_byte.
3373 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
3374 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
3375 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
3377 2002-04-21 Andrew Cagney <ac131313@redhat.com>
3379 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
3381 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
3383 2002-04-21 David S. Miller <davem@redhat.com>
3385 * arch-utils.c (generic_prologue_frameless_p): Kill
3386 SKIP_PROLOGUE_FRAMELESS_P code.
3387 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
3389 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
3390 * arc-tdep.c (arc_prologue_frameless_p): Implement.
3391 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
3393 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
3394 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
3395 (sparc_gdbarch_init): Pass it to
3396 set_gdbarch_prologue_frameless_p.
3398 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
3400 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
3401 (alphabsd-nat.o): New dependency list.
3403 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
3405 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
3407 (alpha-linux-tdep.o): New dependency list.
3408 (alphafbsd-tdep.o): Likewise.
3410 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
3412 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
3414 * alpha-tdep.c: ...from here.
3415 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
3417 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
3419 * config/alpha/tm-alpha.h: Move alpha_software_single_step
3420 prototype from here...
3421 * alpha-tdep.h: ...to here.
3423 2002-04-21 Andrew Cagney <ac131313@redhat.com>
3425 * frame.h (selected_frame_level): Document as deprecated.
3426 (frame_relative_level): Declare.
3427 * stack.c (frame_relative_level): New function.
3428 (selected_frame_level): Document as deprecated.
3429 (select_frame): Do not set the selected_frame_level.
3431 * stack.c (frame_info, record_selected_frame): Update.
3432 (frame_command, current_frame_command): Update.
3433 (up_silently_base, up_command, down_silently_base): Update.
3434 (down_command): Update.
3435 * inflow.c (kill_command): Update.
3436 * tracepoint.c (finish_tfind_command): Update.
3437 * corelow.c (core_open): Update.
3438 * thread.c (info_threads_command): Update.
3439 (do_captured_thread_select): Update.
3440 * infcmd.c (finish_command): Update.
3441 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
3443 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
3445 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
3447 2002-04-21 Andrew Cagney <ac131313@redhat.com>
3449 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
3452 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
3454 * alphafbsd-tdep.c: Update copyright years. Include
3456 (alphafbsd_use_struct_convention): Make static.
3457 (alphafbsd_init_abi): New function.
3458 (_initialize_alphafbsd_tdep): New function.
3459 * config/alpha/tm-fbsd.h: Update copyright years.
3460 (USE_STRUCT_CONVENTION): Remove.
3462 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
3464 * alpha-tdep.c (alpha_abi_handler): New structure to describe
3465 an Alpha ABI variant.
3466 (alpha_abi_handler_list): Declare.
3467 (alpha_gdbarch_register_os_abi): New function.
3468 (alpha_gdbarch_init): Give registered ABI variant handlers a
3469 chance to tweak the gdbarch once we have set up defaults.
3470 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
3472 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
3474 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
3475 to standard_coerce_float_to_double.
3476 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
3478 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
3480 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
3481 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
3482 from gdbarch_tdep rather than a constant.
3483 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
3484 the default text address for all Alpha Unix ABIs.
3485 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
3486 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
3488 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
3490 * alpha-tdep.h: New file. Includes several Alpha target constants
3492 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
3493 let gdbarch deal with.
3494 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
3495 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
3497 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
3498 Alpha target register names.
3499 * alphabsd-nat.c: Likewise.
3500 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
3501 Alpha target register names. Make serveral routines static.
3502 (alpha_get_saved_register): New function.
3503 (alpha_abi_names): New.
3504 (process_note_abi_tag_sections): New function.
3505 (get_elfosabi): New function.
3506 (alpha_gdbarch_init): New function.
3507 (alpha_dump_tdep): New function.
3508 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
3510 2002-04-21 Andrew Cagney <ac131313@redhat.com>
3512 * frame.c (find_saved_register): Delete #ifdef
3513 HAVE_REGISTER_WINDOWS code.
3514 * config/sparc/tm-sparc.h: Update comments.
3515 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
3517 2002-04-21 Andrew Cagney <ac131313@redhat.com>
3519 * i960-tdep.c (i960_find_saved_register): New function.
3520 (i960_get_saved_register): New function.
3521 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
3522 (i960_get_saved_register): Declare.
3523 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
3525 2002-04-20 David S. Miller <davem@redhat.com>
3527 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
3529 2002-04-20 Andrew Cagney <ac131313@redhat.com>
3531 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
3532 instead of NUM_PSEUDO_REGS.
3534 2002-04-20 David S. Miller <davem@redhat.com>
3536 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
3537 GDB_MULTI_ARCH_PARTIAL
3538 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
3539 define, let tm-sp64.h do it.
3541 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
3543 * frame.c (find_saved_register): Avoid a NULL pointer
3544 dereference and actually walk the frame list.
3546 2002-04-20 Andrew Cagney <ac131313@redhat.com>
3548 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
3549 sorted in most most-recent-used order. Document.
3550 * gdbarch.h, gdbarch.c: Regenerate.
3552 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
3554 * gdbserver/inferiors.c (struct inferior_info): Add regcache_data.
3555 (add_inferior): Call create_register_cache.
3556 (clear_inferiors): Call free_register_cache.
3557 (inferior_regcache_data, set_inferior_regcache_data): New functions.
3558 * gdbserver/regcache.c (struct inferior_regcache_data): New.
3559 (registers): Remove.
3560 (get_regcache): New function.
3561 (create_register_cache, free_register_cache): New functions.
3562 (set_register_cache): Don't initialize the register cache here.
3563 (registers_to_string, registers_from_string, register_data): Call
3565 * gdbserver/regcache.h: Add prototypes.
3566 * gdbserver/server.h: Likewise.
3568 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
3570 * gdbserver/mem-break.c: New file.
3571 * gdbserver/mem-break.h: New file.
3572 * gdbserver/Makefile.in: Add mem-break.o rule; update server.h
3574 * gdbserver/inferiors.c (struct inferior_info): Add target_data
3576 (clear_inferiors): Free target_data member if set.
3577 (inferior_target_data, set_inferior_target_data): New functions.
3578 * gdbserver/linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
3579 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
3580 * gdbserver/linux-low.c (linux_bp_reinsert): New variable.
3581 (struct inferior_linux_data): New.
3582 (linux_create_inferior): Use set_inferior_target_data.
3583 (linux_attach): Likewise. Call add_inferior.
3584 (linux_wait_for_one_inferior): New function.
3585 (linux_wait): Call it.
3586 (linux_write_memory): Add const.
3587 (initialize_low): Call set_breakpoint_data.
3588 * gdbserver/linux-low.h (struct linux_target_ops): Add breakpoint
3590 * gdbserver/server.c (attach_inferior): Remove extra add_inferior
3592 * gdbserver/server.h: Include mem-break.h. Update inferior.c
3594 * gdbserver/target.c (read_inferior_memory)
3595 (write_inferior_memory): New functions.
3596 * gdbserver/target.h (read_inferior_memory)
3597 (write_inferior_memory): Change macros to prototypes.
3598 (struct target_ops): Update comments. Add const to write_memory
3601 2002-04-19 Andrew Cagney <ac131313@redhat.com>
3603 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
3605 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
3606 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
3607 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
3610 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
3613 * gdbtypes.c (init_simd_type): Rewrite using new functions.
3614 (build_builtin_type_vec128): Ditto.
3615 (append_composite_type_field): Fix calculation of type length in
3618 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
3620 * config/djgpp/README: Update.
3622 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
3625 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
3627 * alpha-tdep.c (setup_arbitrary_frame): Rename...
3628 (alpha_setup_arbitrary_frame): ...to this.
3629 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
3630 for alpha_setup_arbitrary_frame.
3632 2002-04-18 Andrew Cagney <cagney@redhat.com>
3634 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
3635 * gdbarch.h, gdbarch.c: Regenerate.
3637 * defs.h (breakpoint_from_pc_fn): Delete type definition.
3638 * target.h (memory_breakpoint_from_pc): Update declaration.
3639 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
3641 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
3642 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
3643 * mem-break.c (memory_breakpoint_from_pc): Ditto.
3644 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
3645 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
3646 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
3647 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
3648 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
3649 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
3650 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
3651 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
3652 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
3654 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
3656 * monitor.c (monitor_insert_breakpoint): Ditto.
3657 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
3659 * config/mcore/tm-mcore.h: Update copyright.
3660 * mem-break.c: Ditto.
3661 * xstormy16-tdep.c: Ditto.
3663 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
3665 * p-exp.y: Add precedence rule for '^' token.
3666 This removes the shift/reduce conflicts.
3667 Remove the comment concerning these shift/reduce conflicts.
3669 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
3671 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
3672 (registers_powerpc_nofp): New register set for processors
3673 without floating point unit.
3675 2002-04-18 David S. Miller <davem@redhat.com>
3677 * MAINTAINERS: Add myself to write-after-approval.
3679 2002-04-17 Michael Snyder <msnyder@redhat.com>
3681 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
3683 2002-04-17 Andrew Cagney <ac131313@redhat.com>
3685 * rs6000-tdep.c (frame_initial_stack_address): Use
3686 frame_register_read to read the alloca_reg.
3688 2002-04-17 Andrew Cagney <ac131313@redhat.com>
3690 * frame.c (find_saved_register): Find saved registers in the next
3694 2002-04-17 Andrew Cagney <ac131313@redhat.com>
3696 * gdbarch.sh (LANG): Set to ``c''.
3698 2002-04-15 Andrew Cagney <ac131313@redhat.com>
3700 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
3702 2002-04-15 Andrew Cagney <ac131313@redhat.com>
3704 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
3707 * hpread.c (hpread_get_lntt): Add declaration.
3708 Also fix PR gdb/391.
3710 2002-04-14 Andrew Cagney <ac131313@redhat.com>
3712 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
3713 * aclocal.m4, configure: Re-generate.
3716 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
3718 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
3719 instead of tm_print_insn.
3721 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
3723 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
3725 2002-04-14 Andrew Cagney <ac131313@redhat.com>
3727 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
3728 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
3729 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
3731 2002-04-12 Don Howard <dhoward@redhat.com>
3733 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
3734 max_user_call_depth.
3735 (init_cmd_lists): Initialize the new value;
3736 * cli/cli-script.c (execute_user_command): Limit the call depth of
3737 user defined commands. This avoids a core-dump when user commands
3738 are infinitly recursive.
3740 2002-04-12 Kevin Buettner <kevinb@redhat.com>
3742 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
3743 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
3744 from tdep struct instead of DEFAULT_LR_SAVE.
3745 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
3746 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
3747 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
3749 2002-04-12 Michael Snyder <msnyder@redhat.com>
3751 * Remote.c: Spelling fix.
3752 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
3753 If no symbol found for "sbrk", try "_sbrk".
3754 (make_output_phdrs): Use bfd_section_name.
3755 (gcore_copy_callback): Use bfd_section_name.
3756 * eval.c: Indentation fix-ups.
3757 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
3758 in case it gets applied to an address that is already
3759 in the instruction space.
3760 * cli/cli-decode.c (help_list): Allow long lines to wrap.
3761 * symfile.c: Fix indentation, long lines.
3762 * source.c: White space fix-up.
3764 2002-04-12 Andrew Cagney <cagney@redhat.com>
3766 * defs.h (read_relative_register_raw_bytes): Delete declaration.
3767 * frame.c (frame_register_read): New function. Return non-zero on
3769 (read_relative_register_raw_bytes_for_frame): Delete.
3770 (read_relative_register_raw_bytes): Delete.
3771 * frame.h (frame_register_read): Declare.
3772 * d30v-tdep.c: Update Copyright. Use frame_register_read.
3774 * infcmd.c (do_registers_info): Ditto.
3775 * hppa-tdep.c: Ditto.
3776 * rs6000-tdep.c: Ditto.
3777 * h8500-tdep.c: Ditto.
3778 * mips-tdep.c: Ditto.
3779 * h8300-tdep.c: Ditto.
3780 * z8k-tdep.c: Ditto.
3782 2002-04-12 Kevin Buettner <kevinb@redhat.com>
3784 From Jimi X <jimix@watson.ibm.com>:
3785 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
3788 2002-04-12 Kevin Buettner <kevinb@redhat.com>
3790 From Jimi X <jimix@watson.ibm.com>:
3791 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
3794 2002-04-12 Kevin Buettner <kevinb@redhat.com>
3796 From Jimi X <jimix@watson.ibm.com>:
3797 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
3798 register sets for these processor variants.
3800 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
3802 * gdbserver/linux-low.c (usr_store_inferior_registers): Support
3803 registers which are allowed to fail to store.
3804 * gdbserver/linux-low.h (linux_target_ops): Likewise.
3805 * gdbserver/linux-ppc-low.c (ppc_regmap): Support FPSCR.
3806 (ppc_cannot_store_register): FPSCR may not be storable.
3807 * regformats/reg-ppc.dat: Support FPSCR.
3809 2002-04-11 Kevin Buettner <kevinb@redhat.com>
3811 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
3812 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
3813 Add fpscr as an invalid/unfetchable register.
3814 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
3815 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
3816 (fill_fpregset): Add support for register fpscr.
3817 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
3818 (fill_gregset): Account for the fact that register ``mq'' might
3820 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
3821 (registers_power): Add fpscr to register set at slot 71.
3822 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
3823 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
3825 2002-04-11 Michael Snyder <msnyder@redhat.com>
3827 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
3828 * configure: Regenerate.
3829 * config.in: Regenerate.
3830 * acconfig.h: Add define for _SYSCALL32.
3831 * core-sol2.c: Remove #define _SYSCALL32.
3832 * solib-legacy.c: Remove #define _SYSCALL32.
3834 2002-04-10 Andrew Cagney <ac131313@redhat.com>
3836 * stack.c (select_frame): Cleanup internal error message, do not
3839 2002-04-10 Andrew Cagney <ac131313@redhat.com>
3841 * stack.c (select_frame): Check that selected_frame and the
3842 specified level are as expected.
3843 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
3845 * frame.h (struct frame_info): Add field `level'. Update
3847 Work-in-progress PR gdb/464.
3849 2002-04-10 Andrew Cagney <ac131313@redhat.com>
3851 * maint.c (maint_print_section_info): Rename print_section_info.
3852 (print_bfd_section_info, print_objfile_section_info): Update.
3853 * inferior.h (struct gdbarch): Add opaque declaration.
3854 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
3855 * gdbarch.h: Regenerate.
3857 2002-04-10 Michal Ludvig <mludvig@suse.cz>
3859 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
3860 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
3861 (kernel_u_size): Added.
3862 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
3863 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
3865 2002-04-04 Jim Ingham <jingham@apple.com>
3867 * valarith.c (find_size_for_pointer_math): New function, either returns
3868 the size for a pointer's target, returns 1 for void *, or errors for
3870 (value_add, value_sub): use find_size_for_pointer_math.
3872 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
3874 * linux-low.c (linux_look_up_symbols): New hook.
3875 (linux_target_ops): Add linux_look_up_symbols.
3876 * remote-utils.c (decode_address): New function.
3877 (look_up_one_symbol): New function.
3878 * server.c (handle_query): Call target look_up_symbols hook.
3879 * server.h (look_up_one_symbol): Add prototype.
3880 * target.h (struct target_ops): Add look_up_symbols hook.
3882 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
3884 * gdbserver/server.h: Include <string.h> if HAVE_STRING_H.
3885 * ChangeLog: Correct paths in last ChangeLog entry.
3887 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
3889 * gdbserver/linux-low.h: Remove obsolete prototypes.
3890 (struct linux_target_ops): New.
3891 (extern the_low_target): New.
3892 * gdbserver/linux-low.c (num_regs, regmap): Remove declarations.
3893 (register_addr): Use the_low_target explicitly.
3894 (fetch_register): Likewise.
3895 (usr_fetch_inferior_registers): Likewise.
3896 (usr_store_inferior_registers): Likewise.
3897 * gdbserver/linux-arm-low.c (num_regs): Remove.
3898 (arm_num_regs): Define.
3899 (arm_regmap): Renamed from regmap, made static.
3900 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
3902 (arm_cannot_store_register): Renamed from cannot_store_register,
3904 (the_low_target): New.
3905 * gdbserver/linux-i386-low.c (num_regs): Remove.
3906 (i386_num_regs): Define.
3907 (i386_regmap): Renamed from regmap, made static.
3908 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
3910 (i386_cannot_store_register): Renamed from cannot_store_register,
3912 (the_low_target): New.
3913 * gdbserver/linux-ia64-low.c (num_regs): Remove.
3914 (ia64_num_regs): Define.
3915 (ia64_regmap): Renamed from regmap, made static.
3916 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
3918 (ia64_cannot_store_register): Renamed from cannot_store_register,
3920 (the_low_target): New.
3921 * gdbserver/linux-m68k-low.c (num_regs): Remove.
3922 (m68k_num_regs): Define.
3923 (m68k_regmap): Renamed from regmap, made static.
3924 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
3926 (m68k_cannot_store_register): Renamed from cannot_store_register,
3928 (the_low_target): New.
3929 * gdbserver/linux-mips-low.c (num_regs): Remove.
3930 (mips_num_regs): Define.
3931 (mips_regmap): Renamed from regmap, made static.
3932 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
3934 (mips_cannot_store_register): Renamed from cannot_store_register,
3936 (the_low_target): New.
3937 * gdbserver/linux-ppc-low.c (num_regs): Remove.
3938 (ppc_num_regs): Define.
3939 (ppc_regmap): Renamed from regmap, made static.
3940 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
3942 (ppc_cannot_store_register): Renamed from cannot_store_register,
3944 (the_low_target): New.
3945 * gdbserver/linux-s390-low.c (num_regs): Remove.
3946 (s390_num_regs): Define.
3947 (s390_regmap): Renamed from regmap, made static.
3948 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
3950 (s390_cannot_store_register): Renamed from cannot_store_register,
3952 (the_low_target): New.
3953 * gdbserver/linux-sh-low.c (num_regs): Remove.
3954 (sh_num_regs): Define.
3955 (sh_regmap): Renamed from regmap, made static.
3956 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
3958 (sh_cannot_store_register): Renamed from cannot_store_register,
3960 (the_low_target): New.
3961 * gdbserver/linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
3962 (the_low_target): New.
3964 2002-04-09 Andrew Cagney <ac131313@redhat.com>
3966 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
3967 override FP_REGNUM with frame->fp. Update copyright.
3968 * parse.c (num_std_regs, std_regs): Delete.
3969 (target_map_name_to_register): Do not search std_regs. Update
3970 function description.
3971 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
3972 declarations. Update copyright.
3975 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
3977 * gdbserver/Makefile.in: Add stamp-h target.
3978 * gdbserver/configure.in: Create stamp-h.
3979 * gdbserver/configure: Regenerated.
3981 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
3983 * gdbserver/inferiors.c: New file.
3984 * gdbserver/target.c: New file.
3985 * gdbserver/target.h: New file.
3986 * gdbserver/Makefile.in: Add target.o and inferiors.o. Update
3988 * gdbserver/linux-low.c (inferior_pid): New static variable,
3989 moved from server.c.
3990 (linux_create_inferior): Renamed from create_inferior.
3991 Call add_inferior. Return 0 on success instead of a PID.
3992 (linux_attach): Renamed from myattach.
3993 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
3994 (linux_thread_alive): Renamed from mythread_alive.
3995 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
3997 (linux_resume): Renamed from myresume. Add missing ``return 0''.
3998 (regsets_store_inferior_registers): Correct error message.
3999 Add missing ``return 0''.
4000 (linux_fetch_registers): Renamed from fetch_inferior_registers.
4001 (linux_store_registers): Renamed from store_inferior_registers.
4002 (linux_read_memory): Renamed from read_inferior_memory.
4003 (linux_write_memory): Renamed from write_inferior_memory.
4004 (linux_target_ops): New structure.
4005 (initialize_low): Call set_target_ops ().
4006 * gdbserver/remote-utils.c (unhexify): New function.
4007 (hexify): New function.
4008 (input_interrupt): Send signals to ``signal_pid''.
4009 * gdbserver/server.c (inferior_pid): Remove.
4010 (start_inferior): Update create_inferior call.
4011 (attach_inferior): Call add_inferior.
4012 (handle_query): New function.
4013 (main): Call handle_query for `q' packets.
4014 * gdbserver/server.h: Include "target.h". Remove obsolete prototypes.
4015 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
4017 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
4019 * gdbserver/Makefile.in: Add WARN_CFLAGS. Update configury
4021 * gdbserver/configure.in: Check for <string.h>
4022 * gdbserver/configure: Regenerate.
4023 * gdbserver/config.in: Regenerate.
4024 * gdbserver/gdbreplay.c: Include needed system headers.
4025 (remote_open): Remove strchr prototype.
4026 * gdbserver/linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
4027 * gdbserver/regcache.c (supply_register): Change buf argument to const void *.
4028 (supply_register_by_name): Likewise.
4029 (collect_register): Change buf argument to void *.
4030 (collect_register_by_name): Likewise.
4031 * gdbserver/regcache.h: Add missing prototypes.
4032 * gdbserver/remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
4033 * gdbserver/server.c (handle_query): New function.
4034 (attached): New static variable, moved out of main.
4035 (main): Quiet longjmp clobber warnings.
4036 * gdbserver/server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
4037 * gdbserver/utils.c (error): Remove NORETURN.
4040 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
4042 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
4043 after the last symbol in a block.
4045 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
4047 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
4048 is non zero as a found symbol.
4050 2002-04-08 Andrew Cagney <ac131313@redhat.com>
4052 * findvar.c: Include "builtin-regs.h".
4053 (value_of_register): Call value_of_builtin_reg when applicable.
4054 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
4055 (target_map_name_to_register): Call
4056 builtin_reg_map_name_to_regnum.
4057 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
4058 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
4059 (builtin_regs_h): Define.
4060 (builtin-regs.o): New target.
4061 (findvar.o): Add $(builtin_regs_h).
4062 * builtin-regs.c, builtin-regs.h: New files.
4063 * std-regs.c: New file.
4064 Partial fix for PR gdb/251.
4066 2002-04-08 Kevin Buettner <kevinb@redhat.com>
4068 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
4069 it's no longer required.
4071 2002-04-08 Andrew Cagney <ac131313@redhat.com>
4073 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
4075 2002-04-08 Kevin Buettner <kevinb@redhat.com>
4077 From Jimi X <jimix@watson.ibm.com>:
4078 * rs6000-tdep.c (rs6000_software_single_step): Use
4079 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
4080 and size. Use target_insert_breakpoint() and
4081 target_remove_breakpoint() to insert and remove breakpoints
4082 instead of explicit memory reads and writes.
4084 2002-04-08 Kevin Buettner <kevinb@redhat.com>
4086 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
4087 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
4088 ELF_OBJECT_FORMAT ifdef.
4090 2002-04-08 Kevin Buettner <kevinb@redhat.com>
4092 From Jimi X <jimix@watson.ibm.com>:
4093 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
4095 2002-04-08 Kevin Buettner <kevinb@redhat.com>
4097 From Jimi X <jimix@watson.ibm.com>:
4098 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
4099 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
4101 2002-04-07 Mark Kettenis <kettenis@gnu.org>
4103 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
4104 s/asprintf/xasprintf/.
4105 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
4107 2002-04-07 Andrew Cagney <ac131313@redhat.com>
4109 I believe Jeff Law denies responsability for this one:
4110 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
4111 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
4112 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
4113 Work-around for PR gdb/366.
4115 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
4117 * remote-e7000.c (write_small, e7000_read_inferior_memory,
4118 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
4119 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
4121 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
4123 * sh-tdep.c (sh_fp_frame_init_saved_regs,
4124 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
4127 2002-04-07 Andrew Cagney <ac131313@redhat.com>
4129 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
4132 2002-04-07 Andrew Cagney <ac131313@redhat.com>
4134 * README (Reporting Bugs in GDB): Document the bug web page as the
4135 prefered way of submitting bugs.
4138 2002-04-06 Andrew Cagney <ac131313@redhat.com>
4140 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
4142 * gdbarch.h, gdbarch.c: Re-generate.
4144 2002-04-07 Andreas Schwab <schwab@suse.de>
4146 * m68klinux-nat.c (fill_fpregset): Properly pass address of
4147 buffer to regcache_collect.
4149 2002-04-06 Andrew Cagney <ac131313@redhat.com>
4151 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
4152 * gdbarch.c, gdbarch.h: Re-generate.
4154 2002-04-06 Andrew Cagney <ac131313@redhat.com>
4156 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
4157 declaration. Fix -Werror.
4159 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
4161 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
4162 * gdbarch.c: Regenerate.
4164 2002-04-05 Michael Snyder <msnyder@redhat.com>
4166 * breakpoint.c (clear_command): Rewrite middle section to
4167 combine two loops with identical control conditions.
4168 Add a cleanup to eliminate a memory leak.
4169 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
4171 2002-04-05 H.J. Lu (hjl@gnu.org)
4173 * solib-svr4.c (bkpt_names): Add "__start".
4175 2002-04-04 Andrew Cagney <ac131313@redhat.com>
4177 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
4178 as test for 64 bit target.
4180 2002-04-05 Andrew Cagney <ac131313@redhat.com>
4182 * h8500-tdep.c (h8500_write_fp): Delete function.
4183 * dwarf2cfi.c (cfi_write_fp): Document as not used.
4184 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
4185 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
4186 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
4187 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
4188 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
4190 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
4191 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
4192 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
4193 (d10v_write_fp): Delete function.
4194 * inferior.h (write_fp, generic_target_write_fp): Delete
4196 * regcache.c (generic_target_write_fp): Delete function.
4197 (write_fp): Delete function.
4198 * gdbarch.sh (TARGET_WRITE_FP): Delete.
4199 * gdbarch.h, gdbarch.c: Regenerate.
4200 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
4201 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
4202 (sparc64_write_fp): Delete declaration.
4203 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
4204 (h8500_write_fp): Delete declaration.
4206 2002-04-04 Andrew Cagney <ac131313@redhat.com>
4208 * sparc-tdep.c (sparc64_write_fp): Delete.
4209 (sparc_push_dummy_frame): Replace write_fp call with code to store
4211 (sparc_gdbarch_init): Do not initialize write_fp.
4213 2002-04-05 Kevin Buettner <kevinb@redhat.com>
4215 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
4218 2002-03-29 Jim Blandy <jimb@redhat.com>
4220 * stack.c (get_selected_block): Add new argument `addr_in_block',
4221 used to return the exact code address we used to select the block,
4223 * blockframe.c (get_frame_block, get_current_block): Same.
4224 * frame.h (get_frame_block, get_current_block,
4225 get_selected_block): Update declarations.
4226 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
4227 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
4229 2002-04-05 Michael Snyder <msnyder@redhat.com>
4231 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
4234 2002-04-05 J. Brobecker <brobecker@gnat.com>
4236 * utils.c (xfullpath): New function.
4237 * defs.h (xfullpath): Add declaration.
4238 * source.c (openp): Use xfullpath in place of gdb_realpath to
4239 avoid resolving the basename part of filenames when the
4240 associated file is a symbolic link. This fixes a potential
4241 inconsistency between the filenames known to GDB and the
4242 filenames it prints in the annotations.
4243 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
4244 to be able to match a filename with either the real filename, or
4245 the name of any symbolic link to this file.
4246 (lookup_partial_symtab): Ditto.
4248 2002-04-04 Michael Snyder <msnyder@redhat.com>
4250 * breakpoint.c: Add support for hardware breakpoints in overlays.
4251 (overlay_events_enabled): New state variable.
4252 (insert_breakpoints): Use overlay_events_enabled to decide
4253 whether to attempt to set a breakpoint at the overlay load addr.
4254 Handle bp_hardware_breakpoint as well as bp_breakpoint.
4255 (remove_breakpoint): Use overlay_events_enabled to decide
4256 whether breakpoints need to be removed from overlay load addr.
4257 Handle bp_hardware_breakpoint as well as bp_breakpoint.
4258 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
4259 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
4260 disable_overlay_breakpoints): Update overlay_events_enabled.
4262 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
4264 * dwarf2read.c (struct function_range): New.
4265 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
4266 (check_cu_functions): New.
4267 (read_file_scope): Initialize global function lists.
4268 Call dwarf_decode_line after processing children.
4269 (read_func_scope): Add to global function list.
4270 (dwarf_decode_lines): Call check_cu_functions everywhere
4271 record_line is called. Call record_line with a linenumber
4272 of 0 to mark sequence ends.
4274 2002-04-04 Michal Ludvig <mludvig@suse.cz>
4276 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
4277 change sync with glibc.
4279 2002-04-03 Jim Blandy <jimb@redhat.com>
4281 * configure.in: Call AC_C_INLINE.
4282 * configure: Regenerated.
4284 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
4286 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
4287 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
4289 2002-03-31 Mark Kettenis <kettenis@gnu.org>
4291 * NEWS: Mention gcore support on FreeBSD/i386.
4293 * fbsd-proc.c: New file.
4294 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
4295 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
4297 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
4300 2002-03-29 Jim Blandy <jimb@redhat.com>
4302 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
4303 unescaped newlines in string literals, but newer ones don't. So
4306 2002-03-26 Michael Snyder <msnyder@redhat.com>
4307 Andrew Cagney <cagney@redhat.com>
4309 * cli/cli-dump.c: New file. Dump memory to file,
4310 restore file to memory.
4311 * cli/cli-dump.h: New file.
4312 * Makefile.in: Add rules, dependencies for cli-dump.o.
4313 * NEWS: Mention new commands.
4315 2002-03-28 Michael Snyder <msnyder@redhat.com>
4317 * symfile.c (symbol_file_add): Move test for null symbols to later.
4319 2002-03-27 Andrew Cagney <ac131313@redhat.com>
4321 From veksler at il.ibm.com:
4322 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
4323 the xstrduped original path.
4326 2002-03-27 Michael Snyder <msnyder@redhat.com>
4328 * breakpoint.c (_initialize_breakpoint): Clean up help string.
4329 * infcmd.c (_initialize_infcmd): Ditto.
4330 * language.c (_initialize_language): Ditto.
4331 * symfile.c (_initialize_symfile): Ditto.
4332 * top.c (_init_main): Ditto.
4333 * cli/cli-cmds.c (init_cli_cmds): Ditto.
4335 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
4337 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
4338 vector registers handling.
4339 (skip_prologue): Handle new AltiVec instructions. Fill in new
4340 fields of frame data.
4341 (frame_get_saved_regs): Fill in information for AltiVec registers.
4343 2002-03-27 Jim Blandy <jimb@redhat.com>
4345 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
4346 a function; leave this macro here to invoke that function.
4347 (symbol_init_mangled_name): Declaration for that function.
4348 * symtab.c (symbol_init_mangled_name): New function.
4350 2002-03-27 Andrew Cagney <ac131313@redhat.com>
4352 * valarith.c: Replace strerror with safe_strerror.
4353 * tracepoint.c: Ditto.
4355 * go32-nat.c: Ditto.
4359 2002-03-27 Andreas Schwab <schwab@suse.de>
4361 * event-top.c (command_line_handler): Remove useless if.
4363 2002-03-27 Andreas Jaeger <aj@suse.de>
4365 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
4368 2002-03-27 Michal Ludvig <mludvig@suse.cz>
4370 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
4371 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
4372 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
4373 (x86_64_linux_dr_get_status, supply_gregset),
4374 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
4375 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
4376 (x86_64_register_info_table): Add.
4377 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
4378 (x86_64_register_raw_size, x86_64_register_virtual_type),
4379 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
4380 general x86_64_register_info_table.
4381 (i386_gdbarch_init): gdbarch_register_bytes is now set
4382 dynamicaly during initialization.
4383 * regformats/reg-x86-64.dat: Synced with changes to registers above.
4384 * gdbserver/linux-x86-64-low.c: Ditto.
4386 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
4388 * gdbserver/server.c (main): Call target_signal_to_host_p
4389 and target_signal_to_host on signals received from the remote.
4390 * gdbserver/remote-utils.c (prepare_resume_reply): Call
4391 target_signal_from_host on signals sent to the remote.
4392 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
4393 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
4395 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
4397 * signals/signals.c: Include "server.h" in gdbserver build.
4398 (target_signal_from_name): Don't use STREQ.
4399 (_initialize_signals): Likewise. Don't include function in
4402 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
4404 * signals.c: Moved to...
4405 * signals/signals.c: Here.
4406 * Makefile (signals.o): Update.
4408 2002-03-26 Jeff Law (law@redhat.com)
4410 * somread.c (som_symtab_read): Remove some commented out code and
4411 updated related comments. Do not set the minimal symbol table to
4412 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
4413 in a dynamic executable.
4414 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
4415 where we are unable to find the minimal symbol for the given
4418 2002-03-25 Jeff Law (law@redhat.com)
4420 * linux-proc.c (read_mapping): Scan up to end of line for filename.
4422 2002-03-25 Michal Ludvig <mludvig@suse.cz>
4424 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
4426 2002-03-23 Andrew Cagney <ac131313@redhat.com>
4428 * command.h: Update copyright.
4429 (struct cmd_list_element): Replace definition with opaque
4431 (enum cmd_types): Document that it will eventually be moved to
4433 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
4434 (MALLOCED_REPLACEMENT): Delete macro.
4435 * Makefile.in (cli_decode_h): Add $(command_h).
4436 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
4437 * top.c: Include "cli/cli-decode.h".
4438 * completer.c: Include "cli/cli-decode.h".
4439 * maint.c: Include "cli/cli-decode.h".
4440 * cli/cli-decode.h: Include "command.h".
4441 (enum command_class): Delete.
4442 (enum cmd_types): Comment out.
4443 (enum cmd_auto_boolean): Delete.
4444 (enum var_types): Delete.
4446 2002-03-23 Andrew Cagney <ac131313@redhat.com>
4448 * cli/cli-decode.c: Include "gdb_assert.h".
4449 (add_set_or_show_cmd): New static function.
4450 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
4451 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
4452 all fields, such as func, from the set command.
4454 2002-03-23 Andrew Cagney <ac131313@redhat.com>
4456 * MAINTAINERS (sh-elf): Change warning flag to -w.
4458 2002-03-23 Andrew Cagney <cagney@redhat.com>
4460 * defs.h (error): Add printf format attribute.
4461 * thread-db.c (thread_from_lwp): Fix error format string.
4462 * stack.c (parse_frame_specification): Ditto.
4463 * cli/cli-decode.c (undef_cmd_error): Ditto.
4464 * scm-lang.c (scm_lookup_name): Ditto.
4465 * tracepoint.c (trace_error): Ditto.
4466 * remote-utils.c (usage): Ditto.
4467 * remote.c (compare_sections_command): Ditto.
4470 2002-03-22 Andrew Cagney <ac131313@redhat.com>
4472 * gdbtypes.c (append_composite_type_field): New function.
4473 (init_composite_type): New function.
4474 * gdbtypes.h (append_composite_type_field): Declare.
4475 (init_composite_type): Ditto.
4477 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
4479 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
4481 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
4482 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
4483 structure returning convention for SYSV ABI case, but not
4484 for GNU/Linux, FreeBSD, or NetBSD.
4486 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
4488 * symtab.h (lookup_block_symbol): Add mangled_name argument
4491 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
4492 with new mangled_name argument.
4493 * linespec.c (decode_line_1): Likewise.
4494 * valops (value_of_this): Likewise.
4495 * symtab.c (lookup_transparent_type): Likewise.
4496 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
4497 (lookup_symbol): If we are given a mangled name, pass it down
4498 to lookup_symbol_aux.
4499 (lookup_block_symbol): If we are given a mangled name to check
4500 against, only return symbols which match it.
4502 2002-03-22 Christopher Faylor <cgf@redhat.com>
4504 * win32-nat.c (child_create_inferior): Check for proper shell to use
4505 here, in case the user changes it on the fly.
4506 (_initialize_inftarg): Remove shell path considerations.
4508 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
4510 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
4511 for gdbarch_max_register_raw_size and max_register_virtual_size.
4512 Adjust copyright year.
4514 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
4516 * dbxread.c (process_one_symbol): Extend the first N_SLINE
4517 in a function to cover the entire beginning of the function
4518 as well if it does not already.
4520 2002-03-21 Tom Rix <trix@redhat.com>
4522 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
4523 (rs6000_ptrace64): Renamed from ptrace64.
4525 2002-03-20 Martin M. Hunt <hunt@redhat.com>
4527 * gdbserver/remote-utils.c (remote_open): Don't call
4528 getprotobyname, we're all using TCP here so just use
4530 * gdbserver/gdbreplay.c (remote_open): Ditto.
4532 2002-03-20 Martin M. Hunt <hunt@redhat.com>
4534 * regcache.c (_initialize_regcache): No need to call
4535 build_regcache() at this time; it gets called whenever
4536 the gdbarch changes.
4538 2002-03-20 David O'Brien <obrien@FreeBSD.org>
4540 * sparc-nat.c: Include sys/param.h where possible.
4542 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
4545 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
4546 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
4547 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
4549 * stabsread.c (rs6000_builtin_type): Likewise.
4550 (read_sun_floating_type): Likewise.
4552 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
4554 * stabsread.c (read_member_functions): Remove skip code for duplicate
4555 constructor/destructor methods. Use standard parsing for these
4556 methods and just do not chain them to the list of methods after
4559 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
4561 * coffread.c: Remove redundant static declarations. Replace
4562 occurrences of `PTR' with `void *'.
4563 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
4564 * top.h (quit_cover): Likewise.
4565 * defs.h (catch_errors): Likewise.
4567 2002-03-18 Andrew Cagney <ac131313@redhat.com>
4569 * defs.h (XMALLOC): Define.
4570 * gdb-events.sh (XMALLOC): Delete macro.
4571 * gdb-events.c, gdb-events.h: Regenerate.
4572 * gdbarch.sh (XMALLOC): Delete macro.
4573 * gdbarch.c: Regenerate.
4574 * serial.c (XMALLOC): Delete macro.
4575 * ui-file.c (XMALLOC): Ditto.
4576 * ser-unix.h (XMALLOC): Ditto.
4577 * sh-tdep.c (XMALLOC): Ditto.
4578 * ui-out.c (XMALLOC): Ditto.
4579 * utils.c (XMALLOC): Ditto.
4580 * i386-tdep.c (XMALLOC): Ditto.
4581 * gdb-events.c (XMALLOC): Ditto.
4582 * d10v-tdep.c (XMALLOC): Ditto.
4583 * cli-out.c (XMALLOC): Ditto.
4585 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
4586 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
4587 * ui-file.c, ui-out.c: Ditto.
4589 2002-03-18 Andrew Cagney <ac131313@redhat.com>
4591 * command.h (struct cmd_list_element): Add field context.
4592 (set_cmd_context, get_cmd_context): Declare.
4593 * cli/cli-decode.h: Ditto.
4594 * cli/cli-decode.c (get_cmd_context): New function.
4595 (set_cmd_context): New function.
4596 (add_cmd): Initialize context.
4597 Part of fixing PR gdb/145 and PR gdb/146.
4599 2002-03-17 Andrew Cagney <ac131313@redhat.com>
4601 * cli/cli-decode.c (cmd_type): New function.
4602 * command.h (cmd_type): Declare.
4603 * infrun.c (set_schedlock_func): Call function cmd_type.
4604 * kod.c (kod_set_os): Call cmd_type.
4605 * cris-tdep.c (cris_version_update): Use function cmd_type.
4606 (cris_mode_update, cris_abi_update): Ditto.
4608 * command.h: (execute_cmd_post_hook): Declare.
4609 (execute_cmd_pre_hook): Declare.
4610 * cli/cli-script.c (clear_hook_in_cleanup): New function.
4611 (execute_cmd_post_hook, execute_cmd_pre_hook): New
4612 functions. Execute pre/post hook while ensuring that afterwords
4614 * top.c (execute_command): Use execute_cmd_post_hook, and
4615 execute_cmd_pre_hook to execute pre/post commands.
4616 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
4618 (hook_stop_stub): Call execute_cmd_pre_hook.
4620 2002-03-17 Andrew Cagney <ac131313@redhat.com>
4622 * kod.c (kod_set_os): Revert previous change. Is called by ``info
4623 set'' and this leads to a core dump. Move xstrdup of
4624 operating_system to after check that it is not NULL.
4626 2002-03-17 Andrew Cagney <ac131313@redhat.com>
4628 * kod.c (kod_set_os): Remove unnecessary check that
4629 ``command->type'' is set_cmd.
4631 * valprint.c (set_input_radix): Use input_radix.
4632 (set_output_radix): Use output_radix.
4633 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
4636 2002-03-16 Andrew Cagney <ac131313@redhat.com>
4638 * value.h (struct value): Delete field ``substring_addr''. Change
4639 aligner fields to force_doublest_align, force_longest_align,
4640 force_core_addr_align and force_pointer_aligh.
4642 * value.h (struct value): Fix typo in above change.
4644 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
4646 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
4647 to fix internal_error from ``maintenance print architecture''.
4649 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
4651 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
4652 for gcc versions after gcc-2.8.1.
4654 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
4656 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
4657 for method resolution. Restore adjustment of ``this'' pointer after
4658 calling value_struct_elt, which was accidentally removed during the
4661 2002-03-15 Andrew Cagney <ac131313@redhat.com>
4663 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
4665 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
4667 * value.h (value_of_register): Update.
4669 2002-03-14 Richard Henderson <rth@redhat.com>
4671 * configure.in: Detect declaration for canonicalize_file_name.
4672 * utils.c (canonicalize_file_name): Declare, if needed.
4673 (gdb_realpath): Prefer realpath if available and usable.
4674 * config.in, configure: Rebuild.
4676 2002-03-14 Richard Henderson <rth@redhat.com>
4678 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
4679 a constant array bound.
4681 * MAINTAINERS: Add myself to write-after-approval.
4683 2002-03-14 Michael Snyder <msnyder@redhat.com>
4685 * symfile.c (syms_from_objfile): Return immediately if no syms.
4686 (symbol_file_add): Return immediately if no syms.
4687 (find_sym_fns): Return immediately if no syms.
4689 2002-03-13 Michal Ludvig <mludvig@suse.cz>
4691 * gdbserver/remote-util.c (remote_open): Print remote-side's
4692 IP address when remote debugging over the network.
4694 2002-03-12 David O'Brien <obrien@FreeBSD.org>
4696 * config/sparc/fbsd.mh: Fix copyright.
4697 * config/sparc/fbsd.mt: Likewise.
4699 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
4701 * MAINTAINERS: Fix typo in name of gdb warnings option.
4702 (x86-64): Fix formating so that this can be parsed by awk.
4704 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
4706 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
4707 * defs.h: Include "gdb/signals.h".
4708 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
4710 2002-03-10 Michal Ludvig <mludvig@suse.cz>
4712 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
4713 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
4716 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
4717 Don Howard <dhoward@redhat.com>
4719 * mips-tdep.c (ST0_FR): Define.
4720 (mips2_fp_compat): New function, temporarily disabled.
4721 (mips_read_fp_register_single): New function.
4722 (mips_read_fp_register_double): New function.
4723 (mips_print_register): Use them.
4724 (do_fp_register_row): Likewise.
4726 2002-03-09 Andrew Cagney <ac131313@redhat.com>
4728 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
4731 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
4733 * stabsread.c (read_member_functions): Fix is_stub test for
4734 static member functions, improve comment.
4736 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
4738 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
4739 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
4740 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
4741 commands that set boolean values.
4742 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
4743 (arm_rdi_resume): Always initialize PC.
4744 (arm_rdi_open): Don't use rslt as a boolean.
4745 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
4746 (arm_rdi_fetch_registers, arm_rdi_store_registers)
4747 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
4748 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
4750 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
4752 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
4753 * configure: Rebuilt.
4755 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4757 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
4758 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
4760 2002-03-06 Andrew Cagney <ac131313@redhat.com>
4762 * cli/cli-decode.c (set_cmd_completer): New function.
4763 * command.h (set_cmd_completer): Declare.
4764 * cli/cli-decode.h (set_cmd_completer): Ditto.
4766 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
4767 * cli/cli-cmds.c (init_cli_cmds): Ditto.
4768 * win32-nat.c (_initialize_inftarg): Ditto.
4769 * remote-rdi.c (_initialize_remote_rdi): Ditto.
4770 * proc-api.c (_initialize_proc_api): Ditto.
4771 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
4772 * source.c (_initialize_source): Ditto.
4773 * exec.c (_initialize_exec): Ditto.
4774 * solib.c (_initialize_solib): Ditto.
4775 * top.c (init_main): Ditto.
4776 * tracepoint.c (_initialize_tracepoint): Ditto.
4777 * symfile.c (_initialize_symfile): Ditto.
4778 * printcmd.c (_initialize_printcmd): Ditto.
4779 * infcmd.c (_initialize_infcmd): Ditto.
4780 * corefile.c (_initialize_core): Ditto.
4782 2002-03-05 Andrew Cagney <ac131313@redhat.com>
4784 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
4786 2002-03-05 Andrew Cagney <ac131313@redhat.com>
4788 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
4790 2002-03-05 Andrew Cagney <ac131313@redhat.com>
4792 * NEWS: Update headings, 5.2 has branched.
4794 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
4796 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
4797 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
4798 (register_addr, REGISTER_RAW_SIZE): Likewise.
4799 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
4800 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
4802 2002-03-03 Michal Ludvig <mludvig@suse.cz>
4804 * MAINTAINERS (x86-64): Add myself.
4805 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
4806 changed value_ptr -> struct value *
4808 2002-03-01 David O'Brien <obrien@FreeBSD.org>
4810 * configure.host (sparc64-*-freebsd): Add.
4811 * configure.tgt: Likewise.
4812 * config/sparc/fbsd.mh: New file.
4813 * config/sparc/fbsd.mt: Likewise.
4814 * config/sparc/nm-fbsd.h: Likewise.
4815 * config/sparc/tm-fbsd.h: Likewise.
4817 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
4819 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
4820 regformats/reg-s390x.dat.
4822 2002-03-01 Andrew Cagney <ac131313@redhat.com>
4824 * utils.c: Add FIXME explaining true/false problem.
4826 2002-02-28 Andrew Cagney <ac131313@redhat.com>
4828 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
4830 2002-02-28 Michael Chastain <mec@shout.net>
4832 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
4834 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
4836 * gdbserver/linux-s390-low.c: New file.
4837 * regformats/reg-s390.dat: New file.
4838 * regformats/reg-s390x.dat: New file.
4839 * gdbserver/configure.srv: Add S/390.
4840 * gdbserver/Makefile.in: Add S/390.
4841 * configure.tgt: Enable gdbserver for S/390.
4843 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
4845 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
4846 first line of the doc string for "info dos", except at the end of
4847 the sentence, since the short help stops at the first period.
4849 2002-02-28 Jason Merrill <jason@redhat.com>
4851 * dwarf2read.c (dwarf_cfi_name): Add new codes.
4853 2002-02-27 Fred Fish <fnf@redhat.com>
4855 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
4856 comment (dumy -> dummy).
4858 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
4860 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
4862 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
4864 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
4866 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
4868 * gdbserver/acconfig.h: New file.
4869 * gdbserver/i387-fp.c: New file.
4870 * gdbserver/i387-fp.h: New file.
4871 * gdbserver/linux-x86-64.c: New file.
4872 * regformats/reg-x86-64.dat: New file.
4873 * configure.tgt: Add x86_64-*-linux* gdbserver support.
4874 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
4875 * gdbserver/configure.in: Add support for regsets.
4876 * gdbserver/config.in: Regenerate.
4877 * gdbserver/configure: Regenerate.
4878 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
4879 * gdbserver/linux-low.h: New file.
4880 * gdbserver/linux-low.c: Include "linux-low.h". Add support
4882 * gdbserver/linux-arm-low.c: Include "linux-low.h".
4883 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
4884 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
4885 * gdbserver/linux-mips-low.c: Include "linux-low.h".
4886 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
4887 * gdbserver/linux-sh-low.c: Include "linux-low.h".
4888 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
4889 "i387-fp.h". Add PTRACE_GETREGS and friends.
4890 * gdbserver/regcache.c (supply_register): New function.
4891 (supply_register_by_name): New function.
4892 (collect_register): New function.
4893 (collect_register_by_name): New function.
4895 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
4897 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
4898 (config.status): Add configure.srv dependency.
4899 (server_h): Add config.h dependency.
4901 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
4903 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
4904 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
4905 * gdbserver/configure.srv: Change i386-*-linux* to use
4908 2002-02-26 Andrew Cagney <ac131313@redhat.com>
4910 * x86-64-tdep.c: Re-indent. Update copyright date.
4912 2002-02-26 Andrew Cagney <ac131313@redhat.com>
4914 From Michal Ludvig <mludvig@suse.cz>:
4915 * x86-64-tdep.c (value.h): Delete.
4916 (gdb_assert.h): Include.
4917 (x86_64_register_convert_to_virtual,
4918 x86_64_register_convert_to_raw ): Add check which lets only
4919 floating-point values to be converted.
4920 (value_push): Delete.
4921 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
4922 (i386_gdbarch_init): Number of register_bytes fixed.
4924 2002-02-26 Andrew Cagney <ac131313@redhat.com>
4926 * MAINTAINERS: Add x86-64 target.
4928 2002-02-26 Andrew Cagney <ac131313@redhat.com>
4930 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
4931 * osfsolib.c (solib_map_sections): Ditto.
4932 * irix5-nat.c (solib_map_sections): Ditto.
4933 * corelow.c (gdb_check_format): Ditto.
4934 * symfile.c (symfile_bfd_open): Ditto.
4935 * solib.c (solib_map_sections): Ditto.
4938 2002-02-26 Andrew Cagney <ac131313@redhat.com>
4940 * remote.c (_initialize_remote): By default, disable ``e'' and
4941 ``E'' step out-of-range packets.
4943 2002-02-26 Andreas Schwab <schwab@suse.de>
4945 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
4946 m68k_linux_frame_saved_pc.
4947 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
4949 (SIGCONTEXT_PC_OFFSET): Remove.
4950 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
4951 m68k_linux_sigtramp_saved_pc): New functions.
4952 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
4953 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
4954 (UCONTEXT_PC_OFFSET): Define.
4955 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
4956 non-RT and RT signal trampolines.
4958 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
4960 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
4961 (TARGET_NBPG, STACK_END_ADDR): Delete
4962 (VARIABLES_INSIDE_BLOCK): Delete.
4964 2002-02-25 Andrew Cagney <ac131313@redhat.com>
4966 * utils.c (perror_with_name): Make string parameter constant.
4967 (print_sys_errmsg): Ditto.
4969 * defs.h (perror_with_name): Update.
4970 (print_sys_errmsg): Update.
4973 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
4975 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
4976 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
4978 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
4980 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
4981 if it already matches the current architecture from the exec file.
4982 Include arch-utils.h for gdbarch_info_init prototype.
4983 * Makefile.in (rs6000-nat.o): Update dependencies.
4985 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
4987 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
4988 list of exported variables.
4990 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
4992 * gdbserver/configure.srv: New file.
4993 * gdbserver/configure.in: Use configure.srv instead
4994 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
4996 * gdbserver/configure: Regenerated.
4997 * gdbserver/terminal.h: New file.
4998 * gdbserver/Makefile.in: Update for configure changes. Remove
4999 more unneeded include paths.
5001 2002-02-24 Andrew Cagney <ac131313@redhat.com>
5003 From wiz at danbala:
5004 * config/sparc/tm-sp64.h: Fix grammar and typos.
5007 2002-02-24 Andrew Cagney <ac131313@redhat.com>
5009 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
5010 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
5011 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
5012 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
5013 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
5014 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
5015 * s390-tdep.c: Ditto.
5016 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
5017 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
5018 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
5019 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
5020 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
5021 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
5022 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
5023 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
5024 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
5025 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
5028 2002-02-23 Andrew Cagney <ac131313@redhat.com>
5030 * lin-thread.c: Delete file.
5031 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
5032 to gdb_proc_service.h.
5033 * configure: Re-generate.
5035 * ocd.c (ocd_open): Do not try to open the "ocd" device.
5036 * serial.c (serial_open): Delete check for "ocd".
5039 * Makefile.in (linux-thread.o): Delete target.
5040 * linux-thread.c: Delete file.
5042 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
5043 renamed SH files to be consistent.
5045 * symtab.c (sort_search_symbols): Use xfree.
5047 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
5049 * arm-linux-tdep.c (arm_linux_init_abi): Register
5050 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
5051 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
5052 definition with undef, since we don't want the sysvr4 definition.
5053 (SKIP_TRAMPOLINE_CODE): Likewise.
5055 2002-02-23 Andrew Cagney <ac131313@redhat.com>
5057 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
5059 * configure.in: (AC_CHECK_FUNCS) Added test for
5060 canonicalize_file_name Regenerated.
5061 * config.in, configure: Regenerated.
5062 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
5063 defined use canonicalize_file_name.
5065 2002-02-23 Michael Chastain <mec@shout.net>
5067 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
5069 2002-02-23 Andrew Cagney <ac131313@redhat.com>
5071 * README: Remove references to cygnus.com.
5072 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
5073 dot com'' form. Remove references to cygnus.com and sourceware.
5075 2002-02-23 Andrew Cagney <ac131313@redhat.com>
5077 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
5078 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
5079 1003.1-2001 no longer allows "head -1".
5080 * gdb/Makefile.in (version.c): Likewise.
5081 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
5082 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
5083 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
5085 2002-02-23 Andrew Cagney <ac131313@redhat.com>
5087 * cli/cli-decode.c (cmd_cfunc_eq): New function.
5088 * command.h (cmd_cfunc_eq): Declare.
5089 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
5091 * cli/cli-cmds.h (is_complete_command): Change parameter to a
5092 ``struct cmd_list_element *''.
5093 * cli/cli-cmds.c (is_complete_command): Update. Use
5095 * top.c (execute_command): Pass the command to
5096 is_complete_command.
5097 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
5099 2002-02-23 Andrew Cagney <ac131313@redhat.com>
5101 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
5102 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
5103 architecture defines.
5104 * s390-tdep.c (s390_gdbarch_init): Likewise.
5106 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
5108 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
5109 (arm_linux_push_arguments): Likewise.
5110 (arm_linux_init_abi): Register them. Also register linux-specific
5112 (find_minsym_and_objfile): Use strcmp, not STREQ.
5113 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
5114 (arm_linux_call_dummy_words): Delete declaration.
5115 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
5116 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
5118 (LOWEST_PC): Delete.
5120 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
5122 * maint.c (print_section_info): Do not prepend `0x' to filepos
5123 output, it will be handled by local_hex_string_custom.
5125 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
5127 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
5128 (store_newfpe_double, store_newfpe_extended, store_fpregister)
5129 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
5131 2002-02-22 Jim Blandy <jimb@redhat.com>
5133 Indicate that the bcache functions don't change the strings
5135 * bcache.h (bcache, hash): Add `const' keywords to declarations.
5136 * bcache.c (bcache, hash): Add `const' keywords to definitions.
5138 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
5140 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
5142 2002-02-21 Christopher Faylor <cgf@redhat.com>
5144 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
5145 find the complete path to a loaded DLL.
5147 2002-02-21 Fred Fish <fnf@redhat.com>
5149 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
5150 that marks the end of the range of a function, enter a line number
5151 entry that has a line number of zero and a PC offset that matches
5152 the end of the function. This starts a range of PC's for which no
5153 line number information is known.
5154 * symtab.c (find_pc_sect_line): If our best fit is in a range of
5155 PC's for which no line number info is found (line number is zero)
5156 then we didn't find any valid line information.
5157 * symtab.h: Document use of zero line number entry.
5159 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
5161 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
5162 (have_ptrace_getvrregs): Define for run time checks.
5163 (gdb_vrregset_t): New type for Altivec register handling.
5164 (fetch_register, store_register): Fetch/store altivec register
5166 (fetch_altivec_register, store_altivec_register): New functions.
5167 (supply_vrregset, fill_vrregset): New functions.
5168 (fetch_altivec_registers, store_altivec_registers): New functions.
5169 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
5172 2002-02-21 Jiri Smid <smid@suse.cz>
5174 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
5176 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
5178 * Makefile.in (armnbsd-nat.o): Update dependencies.
5179 * armnbsd-nat.c (supply_gregset): New function. Common code to
5180 supply the integer register set.
5181 (supply_fparegset): New function. Similar for FPA registers.
5182 (fetch_regs, fetch_fp_regs): Use them.
5183 (fetch_core_registers): Likewise.
5184 (fetch_elfcore_registers): New function.
5185 (arm_netbsd_elfcore_fns): New core-file type specification.
5186 (_initialize_arm_netbsd_nat): Register it.
5188 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
5190 * armnbsd-nat.c: Include gdbcore.h.
5191 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
5192 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
5193 'void' to declaration, to shut up ARI.
5194 (fetch_core_registers): Make static. Rewrite using supply_register.
5195 (arm_netbsd_core_fns): New core-file type specification.
5196 (_initialize_arm_netbsd_nat): New function.
5198 2002-02-21 Christopher Faylor <cgf@redhat.com>
5200 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
5203 2002-02-20 Christopher Faylor <cgf@redhat.com>
5205 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
5208 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
5210 * jv-exp.y (parse_number): Change type of implicit longs
5211 to builtin_type_uint64.
5213 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
5215 * gdbserver/linux-low.c (mywait): Change argument to waitpid
5216 to be an integer instead of a `union wait'.
5218 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
5220 * mips-linux-nat.c: Call the operating system GNU/Linux.
5221 * mips-linux-tdep.c: Likewise.
5222 * mips-tdep.c: Likewise.
5224 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
5227 * jv-exp.y (parse_number): Handle 64-bit integers.
5229 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
5231 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
5232 AC_STDC_HEADERS to AC_HEADER_STDC.
5233 * gdbserver/configure: Regenerated.
5235 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
5237 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
5239 * sparc-tdep.c (get_longjmp_target): Likewise.
5241 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
5243 * News: Add news about ARM and Multi-arch. Mention the new target
5246 2002-02-19 Jim Blandy <jimb@redhat.com>
5248 * stabsread.c (error_type_complaint): Improve error message.
5250 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
5252 * gdbserver/README: Update documentation.
5253 * gdbserver/configure.in: Update configury to match documentation.
5254 * gdbserver/Makefile.in: Likewise.
5255 * gdbserver/configure: Regenerated.
5256 * gdbserver/aclocal.m4: New file, generated by aclocal.
5257 * gdbserver/config.in: New file, generated by autoheader.
5259 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
5261 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
5264 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
5266 * arm-tdep.h (enum arm_float_model): New enum.
5267 (struct gdbarch_tdep): Add fp_model.
5268 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
5269 up floating-point conversions until we know the floating-point model
5270 in use by the inferior. Don't complain about being unable to
5271 determine the ABI of the inferior when we don't have one.
5272 (arm_extract_return_value): Support different floating-point models.
5273 (arm_store_return_value): Likewise.
5274 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
5276 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
5278 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
5280 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
5281 of ``current_gdbarch''.
5283 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
5285 * armnbsd-nat.c : ANSIfy all function declarations.
5286 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
5287 (fetch_inferior_registers): Re-implement in terms of above.
5288 (store_register, store_regs, store_fp_register, store_fp_regs): New.
5289 (store_inferior_registers): Re-implement in terms of above.
5291 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
5293 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
5295 * arm-linux-tdep.c: Likewise.
5296 * config/arm/tm-linux.h: Likewise.
5298 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
5300 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
5301 * config/arm/nbsd.mt (TM_FILE): Delete.
5302 * config/arm/tm-nbsd.h: Delete.
5304 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
5306 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
5307 Initialize CALL_DUMMY_LENGTH.
5309 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
5311 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
5313 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
5314 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
5315 defines one thing and that is incorrect for this port.
5316 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
5318 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
5320 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
5322 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
5324 * win32-nat.c (display_selector): New function. Displays information
5325 about the information returned by GetThreadSelectorEntry API function.
5326 (display_selectors): New function. Displays the infomation of
5327 the selector given as argument, or of CS, DS ans FS selectors
5328 if no argument is given.
5329 ( _initialize_inftarg): Add "w32" as info prefix command.
5330 Add "info w32 selector" as command calling display_selectors.
5332 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
5334 * i386-tdep.c (get_longjmp_target): Fix compilation failure
5335 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
5338 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
5340 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
5342 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
5344 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
5345 (arm_fix_call_dummy): Call it.
5346 (arm_call_dummy_breakpoint_offset): Delete.
5347 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
5348 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
5350 2002-02-18 Andrew Cagney <ac131313@redhat.com>
5352 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
5353 Default to func_frame_chain_valid.
5354 * gdbarch.h, gdbarch.c: Re-generate.
5355 * frame.h (FRAME_CHAIN_VALID): Delete definition.
5357 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
5359 * ppc-linux-nat.c: Update copyright.
5360 (fetch_register, store_register): Add tid parameter, don't compute
5362 (fetch_ppc_registers, store_ppc_registers): Add tid
5363 parameter. Pass it along to callees.
5364 (fetch_inferior_registers, store_inferior_registers): Compute tid
5365 here, and pass it to calleed functions.
5366 (fill_gregset, supply_fpregset): Clean up formatting.
5368 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
5370 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
5371 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
5373 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
5375 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
5376 * gdbarch.c gdbarch.h: Regenerate.
5377 * breakpoint.c (create_longjmp_breakpoint): Always compile this
5379 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
5380 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
5381 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
5383 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
5384 * arm-tdep.c (arm_get_longjmp_target): New function.
5385 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
5386 this to a positive value register arm_get_longjmp_target as the
5388 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
5389 (arm_linux_init_abi): Set up longjmp description in tdep.
5390 * armnbsd-nat.c (get_longjmp_target): Delete.
5391 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
5392 description in tdep.
5393 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
5394 (get_longjmp_target): Delete declaration.
5395 (GET_LONGJMP_TARGET): Delete.
5396 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
5397 (GET_LONGJMP_TARGET): Delete.
5399 2002-02-17 Kevin Buettner <kevinb@redhat.com>
5401 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
5402 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
5403 of ``current_gdbarch''.
5405 2002-02-17 Tom Tromey <tromey@redhat.com>
5407 * cli/cli-cmds.c (compare_strings): New function.
5408 (complete_command): Only print each unique item once.
5409 * completer.h (complete_line): Declare.
5410 * completer.c (complete_line): New function.
5411 (line_completion_function): Use it.
5413 2002-02-16 Andrew Cagney <ac131313@redhat.com>
5415 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
5416 * gdbarch.h, gdbarch.c: Re-generate.
5418 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
5420 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
5422 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
5424 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
5425 * valops.c (value_arg_coerce): Don't take the address of a reference
5426 to convert an argument to a reference.
5428 2002-02-15 Christopher Faylor <cgf@redhat.com>
5430 * win32-nat.c (get_image_name): New function.
5431 (handle_load_dll): Use get_image_name function.
5432 (get_child_debug_event): Avoid registering debug events until possibly
5433 execed process is started.
5434 (child_create_inferior): Allow invocation via shell so that command
5435 line redirection, etc. works ok.
5436 (_initialize_inftarg): Add new command: "set shell" to control whether
5437 a shell is used to start a process.
5439 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
5441 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
5442 instead of find_register_by_number.
5443 (cannot_store_register): Likewise.
5445 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
5447 * dwarf2read.c: Replace fprintf (stderr, ...) by
5448 fprintf_unfiltered (gdb_stderr, ...).
5450 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
5452 * gdbserver/gdbserver.1: Document --attach.
5454 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
5456 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
5458 * arm-tdep.c (arm_default_arm_le_breakpoint)
5459 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
5460 (arm_default_thumb_be_breakpoint): New. Initialize them from
5461 traditional breakpoint defines.
5462 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
5463 (arm_gdbarch_init): Initialize new breakpoint variables.
5464 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
5465 (arm_linux_init_abi): Initialize linux-specific breakpoint.
5466 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
5467 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
5469 (arm_netbsd_init_abi_common): ... here; new function.
5470 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
5471 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
5472 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
5473 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
5475 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
5477 * arm-tdep.h (enum arm_abi): New enum.
5478 (struct gdbarch_tdep): New structure.
5479 (LOWEST_PC): Provide a default.
5480 (arm_gdbarch_register_os_abi): Declare new function.
5481 * arm-tdep.c (arm_abi_names): New array.
5482 (process_note_abi_tag_sections): New function.
5483 (get_elfosabi): New function.
5484 (arm_gdbarch_register_os_abi): New function.
5485 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
5486 support for that ABI has been built in, then call the appropriate
5487 configuration routine. Use gdbarch_num_regs() to get the number
5489 (arm_dump_tdep): New function.
5490 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
5491 place-holder functions.
5492 (_initialize_arm_tdep): Register them.
5493 * config/arm/tm-arm.h (LOWEST_PC): Delete.
5495 * armnbsd-tdep.c: New file.
5496 * Makefile.in (armnbsd-tdep.o): Add dependencies.
5497 * config/arm/nbsd.mt (TDEPFILES): Add it.
5498 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
5500 * armnbsd-nat.c: Include regcache.h.
5501 * Makefile.in (armnbsd-nat.o): Update dependency list.
5503 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
5505 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
5507 * gdbserver/Makefile.in: Fix typos in target rules.
5509 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
5511 Fix part of PR gdb/267.
5512 * linespec.c (find_methods): Handle constructors specially for now.
5514 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
5516 * arm-tdep.c (arm_push_arguments): Eliminate special float type
5518 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
5519 standard_coerce_float_to_double().
5521 2002-02-14 Christopher Faylor <cgf@redhat.com>
5523 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
5526 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
5528 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
5529 find_variant_by_name, because it confuses the multiarch
5530 framework. Return NULL if there isn't an architecture with the
5531 user supplied name, instead of forcing a different one without
5532 recording the change with the multiarch machinery.
5533 (find_variant_by_name): Delete.
5535 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
5537 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
5538 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
5540 2002-02-13 Martin M. Hunt <hunt@redhat.com>
5542 * stack.c (print_frame_info_base): When calling
5543 print_frame_info_listing_hook, set current_source_symtab.
5545 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
5547 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
5548 and remove unused $(INCLUDE_DIR).
5549 Add regcache.c to OBS.
5550 Add generated register protocol files to clean target.
5551 Update dependencies for new objects, obsolete old target code.
5553 * gdbserver/linux-low.c: Remove all platform-specific code to
5554 new files. Remove various dead code. Update to use regcache
5556 * gdbserver/remote-utils.c (fromhex): Add return statement
5558 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
5560 (input_interrupt): Add integer parameter to match prototype
5561 of a signal handler.
5562 (outreg): Use register_data ().
5563 (prepare_resume_reply): Use gdbserver_expedite_regs.
5564 * gdbserver/server.c (main): Dynamically allocate own_buf because
5565 PBUFSIZ is no longer constant. Use registers_to_string () and
5566 registers_from_string ().
5567 * gdbserver/server.h: No longer include "defs.h". Add prototypes
5568 for error (), fatal (), and warning (). Update definition of
5569 PBUFSIZ to use regcache functionality. Add include guard.
5570 * gdbserver/utils.c (fatal): Add missing ``const''.
5571 (warning): New function.
5573 * regformats/regdat.sh: Include "regcache.h" in generated files.
5574 Provide init_registers () function.
5575 * regformats/regdef.h: Add prototype for set_register_cache ().
5578 * gdbserver/linux-arm-low.c: New file.
5579 * gdbserver/linux-i386-low.c: New file.
5580 * gdbserver/linux-ia64-low.c: New file.
5581 * gdbserver/linux-m68k-low.c: New file.
5582 * gdbserver/linux-mips-low.c: New file.
5583 * gdbserver/linux-ppc-low.c: New file.
5584 * gdbserver/linux-sh-low.c: New file.
5586 * gdbserver/regcache.c: New file.
5587 * gdbserver/regcache.h: New file.
5589 * gdbserver/low-linux.c: Removed obsolete file.
5591 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
5593 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
5594 * config/i386/linux.mt: Likewise.
5595 * config/ia64/linux.mt: Likewise.
5596 * config/m68k/linux.mh: Likewise.
5597 * config/powerpc/linux.mh: Likewise.
5598 * config/mips/linux.mt: Likewise.
5600 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
5602 * config/i386/i386lynx.mh: Mark gdbserver variables
5603 as (currently) obsolete for this target.
5604 * config/i386/nbsd.mt: Likewise.
5605 * config/i386/nbsdelf.mt: Likewise.
5606 * config/m32r/m32r.mt: Likewise.
5607 * config/m68k/m68klynx.mh: Likewise.
5608 * config/m68k/nbsd.mt: Likewise.
5609 * config/m68k/sun3os4.mh: Likewise.
5610 * config/mips/vr5000.mt: Likewise.
5611 * config/ns32k/nbsd.mt: Likewise.
5612 * config/pa/hppabsd.mh: Likewise.
5613 * config/pa/hppaosf.mh: Likewise.
5614 * config/powerpc/nbsd.mt: Likewise.
5615 * config/rs6000/rs6000lynx.mh: Likewise.
5616 * config/s390/s390.mt: Likewise.
5617 * config/s390/s390x.mt: Likewise.
5618 * config/sparc/sparclynx.mh: Likewise.
5619 * config/sparc/sun4os4.mh: Likewise.
5620 * config/i386/x86-64linux.mt: Likewise.
5621 * config/sparc/linux.mh: Likewise.
5623 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
5625 * configure.tgt: Configure gdbserver only for known working
5626 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
5627 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
5628 SUBDIRS if it is configured. Update comment for ${nativefile}.
5629 * configure: Regenerated.
5631 2002-02-13 Michael Snyder <msnyder@redhat.com>
5633 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
5635 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
5636 (default_gcore_mach): Just return 0, work around a problem in bfd.
5637 (default_gcore_target): OK to return NULL if exec_bfd is null.
5638 (make_mem_sec): Use a cast, avoid a warning.
5640 * procfs.c (find_memory_regions_callback): Use a cast instead of
5641 calling host_pointer_to_address (which complains if
5642 sizeof (host pointer) != sizeof (target pointer)).
5643 (procfs_make_note_section): Avoid overflow in psargs string.
5645 * procfs.c (procfs_make_note_section): Make the default
5646 implementation return an error.
5648 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
5650 * procfs.c (procfs_make_note_section): Provide a default definition
5651 (for alpha-dec-osf4.0f). Fix typos.
5653 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
5655 * linux-proc.c: Add include of regcache.h.
5656 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
5658 2002-02-13 Andrew Cagney <ac131313@redhat.com>
5660 From 2002-01-18 Greg McGary <greg@mcgary.org>:
5661 * memattr.c (create_mem_region): Disallow useless empty region.
5662 Regions are half-open intervals, so allow [A..B) [B..C) as
5665 2002-02-13 Michael Chastain <mec@shout.net>
5667 * defs.h: Kill CONST_PTR.
5668 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
5669 * c-lang.c (c_builtin_types): Likewise.
5670 * ch-lang.c (ch_builtin_types): Likewise.
5671 * f-lang.c (f_builtin_types): Likewise.
5672 * language.c (unknown_builtin_types): Likewise.
5673 * m2-lang.c (m2_builtin_types): Likewise.
5674 * p-lang.c (pascal_builtin_types): Likewise.
5675 * scm-lang.c (c_builtin_types): Likewise.
5677 2002-02-13 Keith Seitz <keiths@redhat.com>
5679 * arm-tdep.h (arm_get_next_pc): Add declaration.
5681 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
5683 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
5684 with other related struct-returning functions.
5685 (arm_extract_struct_value_address): New function.
5686 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
5687 initialize float_format, double_format and long_double_format as
5688 appropriate to the endianness of the target.
5689 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
5690 (arm_use_struct_convention): Delete declaration.
5691 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
5693 2002-02-13 Keith Seitz <keiths@redhat.com>
5695 * defs.h (core_addr_to_string_nz): New function.
5697 2002-02-13 Mark Kettenis <kettenis@gnu.org>
5699 Apply missing bits of 2002-01-15 patch.
5700 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
5701 (fill_fpregset): Use i387_fill_fsave.
5703 2002-02-12 Keith Seitz <keiths@redhat.com>
5705 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
5706 (core_addr_to_string_nz): New function.
5708 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
5710 * arm-linux-nat.c: Really include arm-tdep.h.
5711 * config/arm/tm-linux.h (struct type, struct value): Declare.
5713 2002-02-11 Michael Snyder <msnyder@redhat.com>
5715 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
5716 (gcore section): Ifdef for Solaris and Unixware only.
5717 (procfs_do_thread_registers): Unixware needs one lwpstatus
5718 per thread (not one prstatus or pstatus).
5719 (procfs_make_note_section): Iterate only over kernel threads (lwps),
5720 not over all gdb threads. For unixware, call elfcore_write_pstatus
5721 once before iterating over threads.
5723 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
5725 * arm-tdep.h: New file.
5726 * arm-tdep.c: Include arm-tdep.h.
5727 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
5728 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
5729 (arm_print_float_info, arm_register_type, convert_to_extended)
5730 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
5731 (arm_extract_return_value, arm_register_name): Make static.
5732 (arm_software_single_step): Similarly. Fix types in declaration.
5733 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
5734 (arm_store_return_value, arm_store_struct_return): New functions.
5735 (arm_gdbarch_init): Register the above functions. Also register
5736 call_dummy_start_offset, sizeof_call_dummy_words,
5737 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
5738 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
5739 max_register_virtual_size, register_size. Set up
5740 prologue_cache.saved_regs here, rather than ...
5741 (_initialize_arm_tdep): ... here.
5742 * config/arm/tm-arm.h (struct type, struct value): Delete forward
5744 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
5745 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
5746 (arm_print_float_info, arm_register_type, convert_to_extended)
5747 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
5748 (arm_extract_return_value, arm_register_name): Delete declarations.
5749 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
5750 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
5751 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
5752 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
5753 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
5754 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
5755 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
5756 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
5757 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
5758 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
5759 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
5760 (arm_get_next_pc): No-longer static -- these are needed by the RDI
5762 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
5763 * remote-rdi.c remote-rdp.c: Likewise.
5764 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
5765 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
5766 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
5769 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
5770 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
5771 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
5772 from non-ARM_ prefixed definitions.
5773 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
5775 * remote-rdi.c remote-rdp.c: Likewise.
5776 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
5778 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
5780 * arm-tdep.c (arm_frameless_function_invocation)
5781 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
5782 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
5783 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
5784 (arm_pop_frame, arm_get_next_pc): Make static.
5785 (arm_gdbarch_init): Register above in gdbarch structure.
5786 (arm_read_fp): Renamed from arm_target_read_fp.
5787 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
5788 * config/arm/tm-arm.h (arm_frameless_function_invocation)
5789 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
5790 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
5791 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
5792 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
5793 (arm_pc_is_thumb_dummy): Delete declarations.
5794 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
5795 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
5796 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
5797 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
5799 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
5801 * symtab.c (compare_search_syms): New function.
5802 (sort_search_symbols): New function.
5803 (search_symbols): Sort symbols after searching rather than
5806 2002-02-10 Andrew Cagney <ac131313@redhat.com>
5808 * NEWS: Linux -> GNU/Linux.
5810 2002-02-10 Andrew Cagney <ac131313@redhat.com>
5812 * gdbarch.sh: For for level one methods, disallow a definition
5813 when partially multi-arched. Add comments explaining rationale.
5814 * gdbarch.h: Re-generate.
5816 2002-02-10 Andrew Cagney <ac131313@redhat.com>
5818 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
5821 2002-02-10 Andrew Cagney <ac131313@redhat.com>
5823 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
5825 * gdbarch.c: Re-generate.
5827 2002-02-10 Andrew Cagney <ac131313@redhat.com>
5829 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
5830 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
5833 2002-02-10 Andrew Cagney <ac131313@redhat.com>
5835 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
5837 (PUSH_ARGUMENTS): Switch to using predefault.
5838 * gdbarch.c: Regenerate.
5840 2002-02-10 Andrew Cagney <ac131313@redhat.com>
5842 * valops.c (PUSH_ARGUMENTS): Delete definition.
5843 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
5844 partial. Default to default_push_arguments.
5845 * gdbarch.h, gdbarch.c: Regenerate.
5847 2002-02-09 Andrew Cagney <ac131313@redhat.com>
5849 * defs.h (throw_exception): Rename return_to_top_level. Update
5851 * utils.c (error_stream, internal_verror, quit): Ditto.
5852 * top.c (throw_exception, catcher): Ditto.
5853 * sparclet-rom.c (sparclet_load): Ditto.
5854 * remote.c (interrupt_query, minitelnet): Ditto.
5855 * remote-sds.c (interrupt_query): Ditto.
5856 * remote-mips.c (mips_error, mips_kill): Ditto.
5857 * ocd.c (interrupt_query): Ditto.
5858 * monitor.c (monitor_interrupt_query): Ditto.
5859 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
5860 * target.h: Update comment.
5862 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
5864 2002-02-09 Andrew Cagney <ac131313@redhat.com>
5866 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
5867 default_double_format.
5868 * gdbarch.h, gdbarch.c: Re-generate.
5869 * findvar.c (floatformat_unknown): Delete variable definition.
5870 * doublest.h (floatformat_unknown): Delete variable declaration.
5872 2002-02-09 Jim Blandy <jimb@redhat.com>
5874 * stabsread.c (read_type): Add code to parse Sun's syntax for
5875 prototyped function types.
5877 2002-02-09 Andrew Cagney <ac131313@redhat.com>
5879 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
5880 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
5882 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
5884 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
5885 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
5886 now _initialize_xcoffsolib gets called again and overrides the
5887 commands from solib.c in a native configuration.
5889 2002-02-09 Mark Kettenis <kettenis@gnu.org>
5891 * doublest.c (store_typed_floating): Don't try to return a value.
5894 2002-02-08 Jim Blandy <jimb@redhat.com>
5896 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
5897 is prototyped and has no arguments, print its argument list as
5900 2002-02-08 Chris Demetriou <cgd@broadcom.com>
5902 * MAINTAINERS (write-after-approval): Add myself.
5903 (paper-trail): I've escaped!
5905 2002-02-08 Christopher Faylor <cgf@redhat.com>
5907 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
5909 (_initialize_check_for_gdb_ini): Ditto.
5911 2002-02-08 Martin M. Hunt <hunt@redhat.com>
5913 * win32-nat.c (cygwin_pid_to_str): Fix typo.
5914 xaprintf -> xasprintf.
5916 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
5918 * win32-nat.c: Remove use of printf and sprintf functions.
5920 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
5922 * arm-tdep.c (arm_frame_chain_valid): Make static.
5923 (arm_push_arguments): Likewise.
5924 (arm_gdbarch_init): New function.
5925 (_initialize_arm_tdep): Call it.
5926 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
5927 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
5928 (FRAME_CHAIN_VALID): Delete.
5929 (arm_frame_chain_valid): Delete declaration.
5930 (PUSH_ARGUMENTS): Delete.
5931 (arm_push_arguments): Delete declaration.
5932 (CALL_DUMMY_P): Delete.
5934 2002-02-08 Andrew Cagney <ac131313@redhat.com>
5935 Corinna Vinschen <vinschen@redhat.com>
5937 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
5938 on builtin float types.
5940 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
5942 * utils.c: Include <curses.h> before "bfd.h".
5943 * tui/tui-hooks.c: Likewise.
5944 * tui/tui.c: Likewise.
5945 * tui/tuiCommand.c: Likewise.
5946 * tui/tuiData.c: Likewise.
5947 * tui/tuiDataWin.c: Likewise.
5948 * tui/tuiDisassem.c: Likewise.
5949 * tui/tuiGeneralWin.c: Likewise.
5950 * tui/tuiIO.c: Likewise.
5951 * tui/tuiLayout.c: Likewise.
5952 * tui/tuiRegs.c: Likewise.
5953 * tui/tuiSource.c: Likewise.
5954 * tui/tuiSourceWin.c: Likewise.
5955 * tui/tuiStack.c: Likewise.
5956 * tui/tuiWin.c: Likewise.
5958 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
5960 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
5961 to include space for pseudoregs as well. Update loops accordingly.
5962 (sh_fp_frame_init_saved_regs): Ditto.
5963 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
5965 2002-02-07 Andrew Cagney <ac131313@redhat.com>
5967 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
5968 Add Richard Earnshaw to Arm maintainers.
5970 2002-02-07 Andrew Cagney <ac131313@redhat.com>
5972 * defs.h (warning_begin): Delete declaration.
5974 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
5977 2002-02-07 Michael Snyder <msnyder@redhat.com>
5979 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
5980 Logic bug, remove misplaced else.
5982 2002-02-07 Klee Dienes <klee@apple.com>
5984 * fork-inferior.c (fork_inferior): Add '!' to the list of
5985 characters that need to be quoted when building a string for the
5986 shell. Quote '!' specifically with a backslash, since CSH chokes
5987 when trying to evaluate "str!str".
5989 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
5991 * rdi-share/host.h: Only provide a typedef for bool if it is not
5994 2002-02-04 Michael Snyder <msnyder@redhat.com>
5996 * breakpoint.h (enum bptype): Add new overlay event bp type.
5997 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
5999 * breakpoint.c (create_internal_breakpoint): New function.
6000 (internal_breakpoint_number): Moved into create_internal_breakpoint.
6001 (create_longjmp_breakpoint): Use create_internal_breakpoint.
6002 (create_thread_event_breakpoint): Ditto.
6003 (create_solib_event_breakpoint): Ditto.
6004 (create_overlay_event_breakpoint): New function.
6005 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
6006 (update_breakpoints_after_exec): Delete and re-initialize
6007 overlay event breakpoints after an exec. Add FIXME comment
6008 about longjmp breakpoint.
6009 (print_it_typical): Ignore overlay event breakpoints.
6010 (print_one_breakpoint): Ditto.
6012 (bpstat_what): Do not stop for overlay event breakpoints.
6013 (delete_breakpoint): Don't delete overlay event breakpoints.
6014 (breakpoint_re_set_one): Delete the overlay event breakpoint.
6015 (breakpoint_re_set): Re-create overlay event breakpoint.
6017 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
6018 (overlay_manual_command): Disable overlay breakpoints.
6019 (overlay_off_command): Disable overlay breakpoints.
6021 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
6023 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
6024 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
6025 to here from config/tm-arm.h.
6026 (coff_sym_is_thumb): Make static.
6027 (arm_elf_make_msymbol_special): New function.
6028 (arm_coff_make_msymbol_special): New function.
6029 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
6030 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
6031 (coff_sym_is_thumb): Delete declaration.
6032 (arm_elf_make_msymbol_special): Declare.
6033 (arm_coff_make_msymbol_special): Declare.
6034 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
6035 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
6037 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
6039 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
6041 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
6043 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
6044 * gdbarch.c gdbarch.h: Regenerate.
6045 * arch-utils.c (default_print_float_info): New function.
6046 * arch-utils.h (default_print_float_info): Prototype it.
6047 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
6048 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
6049 (PRINT_FLOAT_INFO): Document it.
6051 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
6052 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
6053 (PRINT_FLOAT_INFO): Define.
6055 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
6057 * win32-nat.c (_initialize_check_for_gdb_ini):
6058 Add typecast to sprintf argument to suppress a warning.
6060 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
6062 * win32-nat.c (last_sig): Changed type of variable to target_signal,
6063 to allow easier handling of pass state.
6064 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
6065 that gives exception name and address.
6066 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
6067 and set last_sig value to ourstatus->value.sig. Some missing
6069 (child_continue): Correctly report continue_status.
6070 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
6071 TARGET_SIGNAL_0 (new default value).
6072 (child_resume): consider sig argument passed to decide if
6073 the exception should be passed to debuggee or not.
6075 2002-02-05 Michael Snyder <msnyder@redhat.com>
6077 * regcache.c (fetch_register): Call target_fetch_register
6078 only if we don't call FETCH_PSEUDO_REGISTER.
6079 (store_register): Call target_store_register only if we
6080 don't call STORE_PSEUDO_REGISTER.
6082 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
6084 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
6085 ELF_MAKE_MSYMBOL_SPECIAL.
6086 * gdbarch.c, gdbarch.h: Regenerate.
6087 * arch-utils.c (default_make_msymbol_special): New function.
6088 * arch-utils.h (default_make_msymbol_special): Export.
6089 * elfread.c (elf_symtab_read): Compile use of
6090 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
6092 * coffread.c (coff_symtab_read): Ditto, for
6093 COFF_MAKE_MSYMBOL_SPECIAL.
6095 2002-02-05 Jim Blandy <jimb@redhat.com>
6097 * solib-svr4.c (svr4_truncate_ptr): New function.
6098 (svr4_relocate_section_addresses): Do the address arithmetic with
6099 the appropriate truncation for target addresses, even when
6100 CORE_ADDR is larger than a target address.
6102 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
6104 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
6107 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
6109 * gdbserver/linux-low.c (kill_inferior): Remove commented out
6112 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
6114 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
6116 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
6118 * gdbserver/linux-low.c: Remove unused include files.
6120 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
6122 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
6123 (read_inferior_memory): Use it.
6124 (write_inferior_memory): Likewise.
6126 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
6128 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
6129 grubbing through sys_errlist.
6131 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
6133 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
6135 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
6136 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
6138 2002-02-04 Andrew Cagney <ac131313@redhat.com>
6140 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
6141 (do_sfunc, set_cmd_sfunc): New functions.
6143 * command.h (struct cmd_list_element): Add field func.
6144 * cli/cli-decode.h (struct cmd_list_element): Ditto.
6145 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
6146 * cli/cli-decode.h: Ditto.
6148 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
6149 (help_all, help_cmd_list): Ditto.
6150 (find_cmd, complete_on_cmdlist): Ditto.
6151 * top.c (execute_command): Ditto.
6153 * cli/cli-setshow.c (do_setshow_command): Call func instead of
6156 * infcmd.c (notice_args_read): Fix function signature.
6158 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
6159 * cli/cli-decode.c (add_set_cmd): Ditto.
6160 * utils.c (initialize_utils): Ditto.
6161 * maint.c (_initialize_maint_cmds): Ditto.
6162 * infrun.c (_initialize_infrun): Ditto.
6163 * demangle.c (_initialize_demangler): Ditto.
6164 * remote.c (add_packet_config_cmd): Ditto.
6165 * mips-tdep.c (_initialize_mips_tdep): Ditto.
6166 * cris-tdep.c (_initialize_cris_tdep): Ditto.
6167 * proc-api.c (_initialize_proc_api): Ditto.
6168 * kod.c (_initialize_kod): Ditto.
6169 * valprint.c (_initialize_valprint): Ditto.
6170 * top.c (init_main): Ditto.
6171 * infcmd.c (_initialize_infcmd): Ditto.
6172 * corefile.c (_initialize_core): Ditto.
6173 * arm-tdep.c (_initialize_arm_tdep): Ditto.
6174 * arch-utils.c (initialize_current_architecture): Ditto.
6175 (_initialize_gdbarch_utils): Ditto.
6176 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
6178 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
6179 * wince.c (_initialize_inftarg): Ditto.
6180 * symfile.c (_initialize_symfile): Ditto.
6181 * mips-tdep.c (_initialize_mips_tdep): Ditto.
6182 * language.c (_initialize_language): Ditto.
6183 * arc-tdep.c (_initialize_arc_tdep): Ditto.
6185 2002-02-04 Michael Snyder <msnyder@redhat.com>
6187 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
6189 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
6191 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
6192 Add rules for building the register data files.
6194 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
6196 * regformats/regdat.sh: Add braces to the definition of
6197 expedite_regs_${arch}.
6199 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
6201 * regformats/regdef.h (struct reg): Add comment describing the
6202 requirements for offset and size fields.
6204 2002-02-04 Andreas Schwab <schwab@suse.de>
6206 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
6207 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
6209 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
6211 * gdbarch.sh (copyright): Update years in generated header.
6212 (SMASH_TEXT_ADDRESS): Add rule.
6213 * gdbarch.h, gdbarch.c: Re-generate.
6214 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
6215 * dbxread.c: Likewise.
6216 * dwarfread.c: Likewise.
6217 * elfread.c: Likewise.
6218 * somread.c: Likewise.
6220 * arm-tdep.c (arm_smash_text_address): New function.
6221 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
6223 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
6225 Add support for hardware watchpoints on win32 native.
6226 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
6227 CONTEXT_DEBUG_REGISTERS.
6228 (dr variable): New variable. Static array containing a local copy
6230 (debug_registers_changed): New variable. Reflects when debug registers
6231 are changed and need to be written to inferior.
6232 (debug_registers_used): New variable. Reflects when any debug register
6233 was set, used when new threads are created.
6234 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
6236 (thread_rec): Set dr array if id is the thread of current_event .
6237 (child_continue, child_resume): Change the debug registers for all
6238 threads if debug_registers_changed.
6239 (child_add_thread): Change the debug registers if debug_registers_used.
6240 * config/i386/cygwin.mh: Add use of i386-nat.o file.
6241 Link nm.h to new nm-cygwin.h file.
6242 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
6243 of hardware registers.
6245 2002-02-03 Andrew Cagney <ac131313@redhat.com>
6247 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
6248 Restore behavour broken by 2002-01-20 Andrew Cagney
6249 <ac131313@redhat.com> IEEE_FLOAT removal.
6251 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
6253 * c-valprint.c (c_val_print): Pass a proper valaddr to
6254 cp_print_class_method.
6255 * valops.c (search_struct_method): If there is only one method
6256 and args is NULL, return that method.
6258 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
6260 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
6261 accessing tag_name directly.
6263 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
6265 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
6266 of accessing tag_name directly.
6268 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
6271 * gdbtypes.c (replace_type): New function.
6272 * gdbtypes.h (replace_type): Add prototype.
6273 * stabsread.c (read_type): Use replace_type.
6275 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
6277 * Makefile.in (memattr.o): Add missing dependencies rule.
6279 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6281 * breakpoint.c (break_at_finish_command): Really export.
6282 (break_at_finish_at_depth_command): Ditto.
6283 (tbreak_at_finish_command): Ditto.
6284 * hppa-tdep.c: Include completer.h.
6285 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
6286 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
6288 2002-02-01 Andrew Cagney <ac131313@redhat.com>
6290 * utils.c (do_write): New function.
6291 (error_stream): Rewrite combining the code from error_begin and
6293 (verror): Rewrite using error_stream.
6294 (error_begin): Delete function.
6296 2002-02-01 Andrew Cagney <ac131313@redhat.com>
6298 * utils.c (error_begin): Make static.
6299 * defs.h (error_begin): Delete declaration.
6301 * linespec.c (cplusplus_error): Replace cplusplus_hint.
6302 (decode_line_1): Use cplusplus_error instead of error_begin,
6303 cplusplus_hint and return_to_top_level.
6304 * coffread.c (coff_symfile_read): Use error instead of error_begin
6305 and return_to_top_level.
6306 * infrun.c (default_skip_permanent_breakpoint): Ditto.
6308 2002-02-01 Andrew Cagney <ac131313@redhat.com>
6310 * language.h (type_error, range_error): Make string parameter
6312 * language.c (warning_pre_print): Delete extern declaration.
6313 * dwarfread.c (warning_pre_print): Ditto.
6314 * language.c (type_error, range_error): Rewrite to use verror and
6315 vwarning instead of warning_begin.
6317 2002-02-01 Michael Snyder <msnyder@redhat.com>
6319 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
6320 (set_ignore_count): Move misplaced comment back where it belongs.
6322 2002-02-01 Andrew Cagney <ac131313@redhat.com>
6324 * command.h (NO_FUNCTION): Delete macro.
6325 * cli/cli-decode.h (NO_FUNCTION): Ditto.
6326 * top.c (execute_command): Replace NO_FUNCTION with NULL.
6327 * tracepoint.c (_initialize_tracepoint): Ditto.
6328 * cli/cli-decode.c (add_set_cmd): Ditto.
6329 * cli/cli-cmds.c (init_cli_cmds): Ditto.
6331 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
6333 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
6334 Update ``this'' pointer when calling virtual functions.
6336 2002-02-01 Michael Snyder <msnyder@redhat.com>
6338 * breakpoint.c (create_temp_exception_breakpoint): Delete.
6339 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
6341 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
6343 * regformats/reg-arm.dat: New file.
6344 * regformats/reg-i386.dat: New file.
6345 * regformats/reg-ia64.dat: New file.
6346 * regformats/reg-m68k.dat: New file.
6347 * regformats/reg-mips.dat: New file.
6348 * regformats/reg-ppc.dat: New file.
6349 * regformats/reg-sh.dat: New file.
6350 * regformats/regdef.h: New file.
6351 * regformats/regdat.sh: New file.
6353 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
6355 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
6356 (arm_frame_args_address, arm_frame_locals_address): New functions.
6357 (arm_frame_num_args): New function.
6358 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
6359 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
6360 (FRMA_NUM_ARGS): Call arm_frame_num_args.
6362 2002-01-31 Michael Snyder <msnyder@redhat.com>
6364 * breakpoint.c (break_at_finish_command): Export.
6365 (break_at_finish_at_depth_command): Export.
6366 (tbreak_at_finish_command): Export.
6367 (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
6368 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
6369 "tbreak" commands, which are HPPA specific.
6371 * printcmd.c (disassemble_command): Remove an ancient
6372 artifact of an old merge.
6374 * symfile.h (enum overlay_debugging_state):
6375 Define enum constant values for overlay mode.
6376 * symfile.c (overlay_debugging): Use enums instead of literals.
6377 (overlay_is_mapped, overlay_auto_command,
6378 overlay_manual_command): Ditto.
6380 * breakpoint.c (insert_breakpoints, remove_breakpoint,
6381 breakpoint_here_p, breakpoint_inserted_here_p,
6382 breakpoint_thread_match, bpstat_stop_status,
6383 describe_other_breakpoints, check_duplicates, clear_command):
6384 Coding standard fixes.
6386 * target.c (target_xfer_memory): Add spaces, coding standard.
6387 (do_xfer_memory): Add missing line to trust-readonly
6388 code: check bfd SEC_READONLY flag for section.
6390 2002-01-31 Andrew Cagney <ac131313@redhat.com>
6392 * PROBLEMS: Fix typo, 5.1->5.1.1.
6394 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
6396 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
6397 data symbols, since we search based on textlow and texthigh.
6398 (find_pc_sect_symtab): Likewise.
6400 2002-01-30 Andrew Cagney <ac131313@redhat.com>
6402 * defs.h (vwarning): Declare.
6403 * utils.c (vwarning): New function.
6404 (warning): Call vwarning.
6405 (warning_begin): Delete function.
6407 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
6408 the warning message.
6409 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
6412 2002-01-30 Michael Snyder <msnyder@redhat.com>
6414 * NEWS: Mention "set trust-readonly-sections" command.
6415 Mention generate-core-file command.
6417 2002-01-15 Michael Snyder <msnyder@redhat.com>
6419 * target.c: New command, "set trust-readonly-sections on".
6420 (do_xfer_memory): Honor the suggestion to trust readonly sections
6421 by reading them from the object file instead of from the target.
6422 (initialize_targets): Register command "set trust-readonly-sections".
6424 2002-01-29 Andrew Cagney <ac131313@redhat.com>
6426 * parse.c (target_map_name_to_register): Simplify, search regs and
6427 pseudo-regs using a single loop.
6429 2002-01-30 Andrew Cagney <ac131313@redhat.com>
6431 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
6433 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
6435 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
6436 * config/i386/i386v42mp.mh: Add i387-nat.o .
6437 * i386v4-nat.c: Include i387-nat.h.
6438 (supply_fpregset): Use i387_supply_fsave.
6439 (fill_fpregset): Use i387_fill_fsave.
6441 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
6443 * arm-tdep.c (arm_call_dummy_words): Define.
6444 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
6445 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
6446 (CALL_DUMMY_WORDS): Define.
6447 (arm_call_dummy_words): Declare.
6448 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
6449 (arm_linux_call_dummy_words): Declare.
6451 2002-01-30 Andreas Schwab <schwab@suse.de>
6453 * m68klinux-nat.c: Fix last change to use regcache_collect
6454 instead of referencing registers[] directly.
6456 2002-01-29 Andrew Cagney <ac131313@redhat.com>
6458 * parse.c (target_map_name_to_register): Delete code wrapped in
6459 #ifdef REGISTER_NAME_ALIAS_HOOK.
6461 2002-01-28 Michael Snyder <msnyder@redhat.com>
6463 * regcache.c (legacy_read_register_gen): Need to be able to
6464 read pseudo-register as well as real register.
6465 (legacy_write_register_gen): Ditto.
6467 2002-01-28 Andrew Cagney <ac131313@redhat.com>
6469 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
6470 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
6471 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
6472 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
6473 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
6474 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
6475 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
6476 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
6477 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
6478 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
6479 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
6480 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
6481 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
6482 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
6483 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
6484 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
6485 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
6486 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
6487 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
6488 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
6490 2002-01-28 Andrew Cagney <ac131313@redhat.com>
6492 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
6493 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
6494 (initialize_current_architecture): Update target_byte_order using
6495 information from BFD.
6496 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
6497 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
6499 2002-01-28 Andrew Cagney <ac131313@redhat.com>
6501 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
6502 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
6504 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
6505 #ifdef INVALID_FLOAT.
6506 * infcmd.c (do_registers_info): Ditto.
6507 * values.c (unpack_double): Ditto. Add comment.
6509 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
6510 already commented out.
6512 2002-01-26 Andreas Schwab <schwab@suse.de>
6514 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
6515 * m68klinux-nat.c: Update ptrace interface for fetching/storing
6516 registers and add support for PTRACE_GETREGS.
6518 2002-01-24 Andrew Cagney <ac131313@redhat.com>
6520 GDB 5.1.1 released from 5.1 branch.
6521 * NEWS: Add 5.1.1 news.
6522 * README: Sync with 5.1 branch.
6524 2002-01-23 Fred Fish <fnf@redhat.com>
6526 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
6527 stabstring on initial malloc. Reallocing will copy it for us,
6530 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
6532 * Makefile.in (hpread_h): Delete.
6533 (HFILES_NO_SRCDIR): Remove hpread.h.
6534 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
6535 (hpread.o): Update dependencies.
6536 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
6538 * hp-psymtab-read.c: Remove file.
6539 * hp-symtab-read.c: Remove file.
6540 * hpread.h: Remove file.
6542 * hpread.c: Merge all contents of hp-psymtab-read.c,
6543 hp-symtab-read.c and hpread.h into this file, as it was prior to
6546 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
6547 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
6548 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
6549 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
6551 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
6553 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
6554 fill_gregset): Call gdbarch_tdep() just once, assign result to
6555 variable and use that, instead of calling the function several
6558 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
6560 * configure.host: Accept sparcv9 as alias for sparc64.
6561 * configure.tgt: Likewise.
6563 2002-01-22 Kevin Buettner <kevinb@redhat.com>
6565 * solib-aix5.c (build_so_list_from_mapfile)
6566 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
6567 arguments is not reversed.
6568 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
6569 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
6571 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
6573 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
6574 modified version of obsolete sh_fetch_pseudo_register.
6575 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
6576 (sh4_register_read): New function.
6577 (sh_pseudo_register_write): New function. Renamed and modified
6578 version of obsolete sh_store_pseudo_register.
6579 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
6580 (sh4_register_write): New function.
6581 (sh_gdbarch_init): Remove setting of gdbarch function
6582 fetch_pseudo_register and store_pseudo_register. Remove setting of
6583 register_convert_to_raw, register_convert_to_virtual,
6584 register_convertible.
6585 (sh_sh4_register_convertible): Delete. No longer needed. All is
6586 taken care by architecture specific functions
6587 register_read/register_write.
6588 (sh_sh4_register_convert_to_virtual): Make static.
6589 (sh_sh4_register_convert_to_raw): Ditto.
6591 2002-01-22 Andrew Cagney <ac131313@redhat.com>
6593 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
6594 (floatformat_is_nan, floatformat_mantissa): Ditto.
6596 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
6597 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
6598 builtin_type_ieee_double_little,
6599 builtin_type_ieee_double_littlebyte_bigword,
6600 builtin_type_m68881_ext, builtin_type_i960_ext,
6601 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
6602 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
6603 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
6604 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
6606 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
6608 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
6609 parameter. Set frameless flag if it exists and depended of
6610 whether the scanned function is frameless or not.
6611 (xstormy16_skip_prologue): If function is frameless, return
6612 result of xstormy16_scan_prologue().
6613 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
6616 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
6618 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
6619 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
6620 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
6621 sh_sh4_register_byte, sh_sh4_register_raw_size,
6622 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
6623 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
6624 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
6625 sh_store_pseudo_register, sh_do_pseudo_register): Call
6626 gdbarch_tdep() just once, assign result to variable and use that,
6627 instead of calling the function several times.
6629 2002-01-20 Mark Kettenis <kettenis@gnu.org>
6631 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
6632 macros instead of LAST_FPU_CTRL_REGNUM.
6633 (store_register): Likewise.
6635 2002-01-21 Jim Blandy <jimb@redhat.com>
6637 * infcmd.c (run_command): Check that the `exec' target layer's BFD
6638 is up-to-date before running the program, not just when a program
6641 2002-01-21 Fred Fish <fnf@redhat.com>
6643 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
6644 when we have found all instructions we are looking for.
6646 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
6648 * arm-tdep.c (arm_register_name): New function.
6649 (arm_registers_names): Make static.
6650 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
6651 (arm_register_name): Declare.
6652 (REGISTER_NAME): Use it.
6654 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
6655 Kevin Buettner <kevinb@redhat.com>
6657 Convert arm targets to new FRAME interface.
6658 * arm-tdep.c (struct frame_extra_info): Remove fsr.
6659 (arm_frame_find_save_regs): Delete.
6660 (arm_frame_init_saved_regs): New.
6661 (arm_init_extra_frame_info): Alloacte saved_regs as required.
6662 Allocate extra_info as required. Convert all uses of fsr.regs
6663 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
6665 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
6666 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
6667 (check_prologue_cache, save_prologue_cache): Likewise.
6668 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
6669 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
6670 (FRAME_FIND_SAVED_REGS): Delete.
6671 (arm_frame_find_saved_regs): Delete prototype.
6672 (arm_frame_init_saved_regs): New prototype.
6673 (FRAME_INIT_SAVED_REGS): Define.
6675 2002-01-20 Andrew Cagney <ac131313@redhat.com>
6677 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
6679 2002-01-20 Andrew Cagney <ac131313@redhat.com>
6681 From Jeff Law <law@redhat.com>:
6682 * infttrace.c: Include <sys/pstat.h>.
6683 (child_pid_to_exec_file): Revamp. Use pstat call to get the
6684 exec file if the ttrace equivalent fails.
6686 2002-01-20 Andrew Cagney <ac131313@redhat.com>
6688 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
6689 (closeLogFile): Ditto.
6691 2002-01-20 Michael Chastain <mec@shout.net>
6693 * top.c (print_gdb_version): Bump copyright year to 2002.
6695 2002-01-20 Andrew Cagney <ac131313@redhat.com>
6697 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
6698 Zannoni and Eli Zaretskii.
6700 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
6702 * buildsym.c: Update copyright years.
6703 * c-typeprint.c: Likewise.
6704 * dwarf2read.c: Likewise.
6705 * f-typeprint.c: Likewise.
6706 * gdbtypes.c: Likewise.
6707 * gdbtypes.h: Likewise.
6708 * hp-symtab-read.c: Likewise.
6709 * hpread.c: Likewise.
6710 * mdebugread.c: Likewise.
6711 * p-typeprint.c: Likewise.
6713 2002-01-20 Andrew Cagney <ac131313@redhat.com>
6715 * remote-sim.c (gdbsim_open): Simplify code testing the macro
6716 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
6717 byte-order selectable.
6718 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
6719 * arch-utils.c: Ditto.
6720 (set_endian): Ditto.
6721 (set_endian_from_file): Ditto.
6722 * gdbserver/low-sim.c (create_inferior): Ditto.
6723 * gdbarch.sh: Ditto.
6724 * gdbarch.h: Re-generate.
6725 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
6726 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
6727 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
6728 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
6729 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
6730 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
6731 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
6732 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
6734 * config/mips/tm-wince.h: Remove #undef of macro
6735 TARGET_BYTE_ORDER_SELECTABLE.
6736 * config/sh/tm-wince.h: Ditto.
6738 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
6740 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
6741 member function fields. Add accessor macro
6742 TYPE_FN_FIELD_ARTIFICIAL.
6743 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
6744 * c-typeprint.c (c_type_print_base): Skip artificial member
6747 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
6749 * f-typeprint.c: Delete unused function f_type_print_args.
6750 * p-typeprint.c: Delete unused function pascal_type_print_args.
6752 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
6754 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
6755 comment. Add ``artificial'' to ``union field_location''.
6757 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
6759 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
6760 * mdebugread.c (parse_symbol): Likewise.
6761 * stabsread.c (define_symbol): Likewise.
6762 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
6763 initializing TYPE_FIELD_BITPOS to n (obsolete).
6764 (hpread_doc_function_type): Likewise.
6765 * hpread.c (hpread_function_type): Likewise.
6767 2002-01-20 Andrew Cagney <ac131313@redhat.com>
6769 * configure.in (host_makefile_frag): Only require a host makefile
6770 fragment when a native build.
6771 * configure: Re-generate.
6773 2002-01-20 Andrew Cagney <ac131313@redhat.com>
6775 * doublest.h (floatformat_from_type): Declare.
6776 * doublest.c (floatformat_from_type): New function.
6777 (convert_typed_floating): Use.
6779 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
6780 call to function floatformat_from_type.
6782 * gdbarch.sh (IEEE_FLOAT): Delete.
6783 * gdbarch.h, gdbarch.c: Re-generate.
6784 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
6785 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
6786 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
6787 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
6788 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
6789 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
6790 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
6791 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
6792 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
6793 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
6794 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
6795 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
6797 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
6798 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
6799 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6800 * sh-tdep.c (sh_gdbarch_init): Ditto.
6801 * mips-tdep.c (mips_gdbarch_init): Ditto.
6802 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6803 * cris-tdep.c (cris_gdbarch_init): Ditto.
6805 2002-01-20 Jiri Smid <smid@suse.cz>
6807 * configure.host, configure.tgt: Support x86-64.
6808 * NEWS: Note new target x86-64.
6810 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
6811 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
6812 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
6813 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
6814 x86-64-linux-nat.o): Fix dependencies.
6816 2002-01-19 Andrew Cagney <ac131313@redhat.com>
6818 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
6819 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
6820 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
6821 * config/sparc/xm-sun4os4.h: Delete file.
6822 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
6824 2002-01-19 Andrew Cagney <ac131313@redhat.com>
6826 * config/sparc/sparclynx.mh (XM_FILE): Delete.
6827 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
6828 * config/m68k/m68klynx.mh (XM_FILE): Delete.
6829 * config/i386/i386lynx.mh (XM_FILE): Delete.
6830 * config/rs6000/xm-rs6000ly.h: Delete file.
6831 * config/sparc/xm-sparclynx.h: Delete file.
6832 * config/m68k/xm-m68klynx.h: Delete file.
6833 * config/i386/xm-i386lynx.h: Delete file.
6834 * config/xm-lynx.h: Delete file.
6835 * config/djgpp/fnchange.lst: Update.
6837 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
6839 * alpha-tdep.c (alpha_register_byte): New function.
6840 (alpha_register_raw_size): Ditto.
6841 (alpha_register_virtual_size): Ditto.
6842 (alpha_skip_prologue_internal): Renamed from
6843 alpha_skip_prologue.
6844 (alpha_skip_prologue): New version that calls
6845 alpha_skip_prologue_internal.
6846 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
6847 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
6848 second argument from alpha_skip_prologue.
6849 (REGISTER_BYTE): Use alpha_register_byte.
6850 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
6851 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
6852 (FRAMELESS_FUNCTION_INVOCATION): Use
6853 generic_frameless_function_invocation_not.
6854 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
6855 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
6857 2002-01-19 Andrew Cagney <ac131313@redhat.com>
6859 * config/mips/xm-news-mips.h: Delete file.
6860 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
6862 * config/m88k/xm-m88k.h: Delete file.
6863 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
6864 * config/m88k/xm-delta88v4.h: Ditto.
6865 * config/m88k/xm-delta88.h: Ditto.
6867 * config/alpha/xm-fbsd.h: Delete file.
6868 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
6870 * config/sparc/xm-sparc.h: Delete file.
6871 * Makefile.in (xm-sun4os4.h): Delete dependency.
6872 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
6873 * config/sparc/xm-sun4os4.h: Ditto.
6874 * config/sparc/xm-linux.h: Ditto.
6876 * config/i386/xm-windows.h: Delete file.
6878 2002-01-19 Andrew Cagney <ac131313@redhat.com>
6880 * utils.c: Include <sys/param.h> for MAXPATHLEN.
6881 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
6883 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
6885 * alpha-tdep.c (alpha_call_dummy_words): New.
6886 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
6887 (CALL_DUMMY_P): Define.
6888 (CALL_DUMMY_WORDS): Define.
6889 (SIZEOF_CALL_DUMMY_WORDS): Define.
6891 2002-01-19 Per Bothner <per@bothner.com>
6893 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
6894 isn't NULL, which can happen with some gcj-3.x-produced code.
6896 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
6898 * alpha-tdep.c (alpha_register_virtual_type): New function.
6899 (alpha_init_frame_pc_first): Ditto.
6900 (alpha_fix_call_dummy): Ditto.
6901 (alpha_store_struct_return): Ditto.
6902 (alpha_extract_struct_value_address): Ditto.
6903 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
6904 alpha_register_virtual_type.
6905 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
6906 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
6907 alpha_extract_struct_value_address.
6908 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
6909 (INIT_FRAME_PC): Use init_frame_pc_noop.
6910 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
6912 2002-01-19 Mark Kettenis <kettenis@gnu.org>
6914 * i386gnu-nat.c: Include "i386-tdep.h".
6915 (fetch_fpregs): Simplify code dealing with uninitialized floating
6916 point states such that it doesn't require FP7_REGNUM.
6918 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
6920 * alpha-tdep.c (frame_extra_info): New.
6921 (alpha_find_saved_regs): Make static. Use
6923 (alpha_frame_init_saved_regs): New function.
6924 (alpha_frame_saved_pc): Use frame->extra_info.
6925 (temp_saved_regs): Don't declare as struct frame_saved_regs.
6926 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
6927 (init_extra_frame_info): Rename to...
6928 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
6929 (alpha_print_extra_frame_info): New function.
6930 (alpha_frame_locals_address): Ditto.
6931 (alpha_frame_args_address): Ditto.
6932 (alpha_pop_frame): Use frame->extra_info.
6933 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
6934 alpha_frame_args_address.
6935 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
6936 (alpha_find_saved_regs): Remove prototype.
6937 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
6938 (EXTRA_FRAME_INFO): Remove.
6939 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
6940 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
6942 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
6944 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
6945 (alpha_cannot_fetch_register): Ditto.
6946 (alpha_cannot_store_register): Ditto.
6947 (alpha_register_convertible): Ditto.
6948 (alpha_use_struct_convention): Ditto.
6949 * config/alpha/tm-alpha.h: Update copyright years.
6950 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
6951 (INNER_THAN): Use core_addr_lessthan.
6952 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
6953 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
6954 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
6955 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
6956 (FRAME_CHAIN): Remove unnecessary cast.
6958 2002-01-18 Andrew Cagney <ac131313@redhat.com>
6960 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
6963 2002-01-18 Andrew Cagney <ac131313@redhat.com>
6965 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
6966 * monitor.c, remote-array.c, remote-bug.c: Ditto.
6967 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
6968 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
6969 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
6970 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
6971 * x86-64-linux-nat.c: Ditto.
6973 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
6975 * alpha-tdep.c (alpha_register_name): New function.
6976 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
6977 (REGISTER_NAME): Define.
6979 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
6981 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
6983 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
6985 * alpha-tdep.c: Update copyright years.
6986 (alpha_next_pc): New function.
6987 (alpha_software_single_step): Ditto.
6988 * config/alpha/tm-alpha.h: Add prototype for
6989 alpha_software_single_step.
6991 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
6993 * alphabsd-nat.c: Update copyright years.
6994 (fill_gregset): Use regcache_collect.
6995 (fill_fpregset): Likewise.
6996 (fetch_inferior_registers): Only fetch integer registers
6997 if requested to do so.
6998 (store_inferior_registers): Only store integer registers
6999 if requested to do so.
7001 2002-01-17 Andrew Cagney <ac131313@redhat.com>
7003 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
7004 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
7005 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
7006 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
7007 * config/alpha/fbsd.mh (XDEPFILES): Delete.
7008 * config/arm/linux.mh (XDEPFILES): Delete.
7009 * config/arm/nbsd.mh (XDEPFILES): Delete.
7010 * config/i386/i386dgux.mh (XDEPFILES): Delete.
7011 * config/i386/i386sol2.mh (XDEPFILES): Delete.
7012 * config/i386/i386m3.mh (XDEPFILES): Delete.
7013 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
7014 * config/i386/i386gnu.mh (XDEPFILES): Delete.
7015 * config/i386/fbsd.mh (XDEPFILES): Delete.
7016 * config/i386/i386bsd.mh (XDEPFILES): Delete.
7017 * config/i386/i386sco5.mh (XDEPFILES): Delete.
7018 * config/i386/i386v4.mh (XDEPFILES): Delete.
7019 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
7020 * config/i386/i386sco4.mh (XDEPFILES): Delete.
7021 * config/i386/i386aix.mh (XDEPFILES): Delete.
7022 * config/i386/go32.mh (XDEPFILES): Delete.
7023 * config/i386/cygwin.mh (XDEPFILES): Delete.
7024 * config/i386/i386lynx.mh (XDEPFILES): Delete.
7025 * config/i386/i386mach.mh (XDEPFILES): Delete.
7026 * config/i386/i386v32.mh (XDEPFILES): Delete.
7027 * config/i386/linux.mh (XDEPFILES): Delete.
7028 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
7029 * config/i386/ncr3000.mh (XDEPFILES): Delete.
7030 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
7031 * config/i386/i386sco.mh (XDEPFILES): Delete.
7032 * config/i386/i386v.mh (XDEPFILES): Delete.
7033 * config/i386/nbsd.mh (XDEPFILES): Delete.
7034 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
7035 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
7036 * config/i386/symmetry.mh (XDEPFILES): Delete.
7037 * config/i386/obsd.mh (XDEPFILES): Delete.
7038 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
7039 * config/ia64/linux.mh (XDEPFILES): Delete.
7040 * config/ia64/aix.mh (XDEPFILES): Delete.
7041 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
7042 * config/m68k/dpx2.mh (XDEPFILES): Delete.
7043 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
7044 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
7045 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
7046 * config/m68k/linux.mh (XDEPFILES): Delete.
7047 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
7048 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
7049 * config/m68k/nbsd.mh (XDEPFILES): Delete.
7050 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
7051 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
7052 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
7053 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
7054 * config/m88k/delta88.mh (XDEPFILES): Delete.
7055 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
7056 * config/m88k/m88k.mh (XDEPFILES): Delete.
7057 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
7058 * config/mips/linux.mh (XDEPFILES): Delete.
7059 * config/mips/irix6.mh (XDEPFILES): Delete.
7060 * config/mips/irix5.mh (XDEPFILES): Delete.
7061 * config/mips/irix4.mh (XDEPFILES): Delete.
7062 * config/mips/irix3.mh (XDEPFILES): Delete.
7063 * config/mips/decstation.mh (XDEPFILES): Delete.
7064 * config/mips/mipsm3.mh (XDEPFILES): Delete.
7065 (NATDEPFILES): Move core-aout.o to here.
7066 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
7067 * config/pa/hpux1020.mh (XDEPFILES): Delete.
7068 * config/pa/hppabsd.mh (XDEPFILES): Delete.
7069 * config/pa/hppahpux.mh (XDEPFILES): Delete.
7070 * config/pa/hpux11w.mh (XDEPFILES): Delete.
7071 * config/pa/hppaosf.mh (XDEPFILES): Delete.
7072 * config/pa/hpux11.mh (XDEPFILES): Delete.
7073 * config/powerpc/aix.mh (XDEPFILES): Delete.
7074 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
7075 * config/powerpc/linux.mh (XDEPFILES): Delete.
7076 * config/romp/rtbsd.mh: Rename XDEPFILES.
7077 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
7078 * config/rs6000/aix4.mh (XDEPFILES): Delete.
7079 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
7080 * config/s390/s390.mh (XDEPFILES): Delete.
7081 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
7082 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
7083 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
7084 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
7085 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
7086 * config/sparc/nbsd.mh (XDEPFILES): Delete.
7087 * config/sparc/linux.mh (XDEPFILES): Delete.
7088 * config/vax/vaxult.mh (XDEPFILES): Delete.
7089 * config/vax/vaxult2.mh (XDEPFILES): Delete.
7090 * Makefile.in (DEPFILES): Remove XDEPFILES.
7092 2002-01-17 Andrew Cagney <ac131313@redhat.com>
7094 * utils.c (internal_verror): Fix comments, default is yes not no.
7095 Update queries to match. Default to quit and dump core.
7097 2002-01-17 Andrew Cagney <ac131313@redhat.com>
7099 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
7101 * defs.h, event-top.c, gdbcmd.h: Ditto.
7102 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
7103 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
7104 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
7105 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
7106 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
7107 * mi/mi-main.c:Ditto.
7109 * stack.c, symfile.c: Update copyright.
7111 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
7113 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
7114 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
7115 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
7116 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
7118 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
7120 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
7121 * gdbserver/low-lynx.c (myattach): Likewise.
7122 * gdbserver/low-nbsd.c (myattach): Likewise.
7123 * gdbserver/low-sim.c (myattach): Likewise.
7124 * gdbserver/low-sparc.c (myattach): Likewise.
7125 * gdbserver/low-sun3.c (myattach): Likewise.
7127 * gdbserver/low-linux.c (myattach): New function.
7129 * gdbserver/server.c (attach_inferior): New function.
7130 (main): Handle "--attach".
7132 2002-01-16 Andrew Cagney <ac131313@redhat.com>
7134 * MAINTAINERS (language support): Daniel Jacobwitz is C++
7137 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
7139 * c-typeprint.c (is_type_conversion_operator): Add additional
7140 check for non-conversion operators.
7142 2002-01-15 Michael Snyder <msnyder@redhat.com>
7144 * linux-proc.c: Add "info proc" command, a la procfs.c.
7145 (read_mapping): New function, abstract and re-use code.
7146 (linux_find_memory_regions): Use new func read_mapping.
7147 (linux_info_proc_cmd): New function, implement "info proc".
7148 (_initialize_linux_proc): Add new command "info proc".
7150 2002-01-15 Michael Snyder <msnyder@redhat.com>
7152 * symfile.c (generic_load): Use bfd_map_over_sections method
7153 instead of manipulating bfd structure members directly.
7154 (add_section_size_callback): New function, bfd sections callback
7155 used by generic_load.
7156 (load_sections_callback): New function, bfd sections callback
7157 used by generic_load.
7159 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
7161 [Based on work by Jim Blandy]
7162 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
7163 (builtin_type_vec128): Export.
7164 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
7166 (builtin_type_vec128): New builtin type for 128 bit vector
7168 (build_gdbtypes): Initialize builtin_type_v16qi and
7169 builtin_type_v8hi. Create the vec128 register builtin type
7171 (build_builtin_type_vec128): New function.
7172 (_initialize_gdbtypes): Register builtin_type_v16qi and
7173 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
7174 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
7175 AltiVec register to new builtin type.
7177 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
7179 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
7182 2002-01-14 Andrew Cagney <ac131313@redhat.com>
7184 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
7185 CLEAN_UP_REGISTER_VALUE.
7186 * regcache.c (supply_register): Update only call.
7188 2002-01-14 Andrew Cagney <ac131313@redhat.com>
7190 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
7191 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
7192 a29k-*-vxworks* targets as obsolete.
7194 2002-01-14 Michael Snyder <msnyder@redhat.com>
7196 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
7197 until we can resolve portability issues.
7198 * gregset.h: Remove references to fpxregs.
7199 * gcore.c (gcore_command): Initialize note_sec to NULL.
7201 2002-01-13 Andrew Cagney <ac131313@redhat.com>
7203 * signals.c (target_signal_to_name): Rewrite. Only use
7204 signals[].name when in bounds and non-NULL.
7206 2002-01-13 Andrew Cagney <ac131313@redhat.com>
7208 From Petr Ledvina <ledvinap@kae.zcu.cz>:
7209 * signals.c (target_signal_to_name): Verify that SIG is within the
7210 bounds of the signals array.
7212 2002-01-13 Andrew Cagney <ac131313@redhat.com>
7214 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
7216 2002-01-13 Keith Seitz <keiths@redhat.com>
7218 * stack.c (print_frame_info_base): Print the frame's pc
7219 only if when print_frame_info_listing_hook is not defined.
7221 2002-01-13 Keith Seitz <keiths@redhat.com>
7223 * varobj.c (varobj_set_value): Make sure that there were no
7224 errors evaluating the object before attempting to set its
7226 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
7227 so this offset adjustment is no longer necessary.
7228 (create_child): Don't set the error flag if the child is
7230 (value_of_child): If value_fetch_lazy fails, return NULL
7231 so that callers will be notified that an error occurred.
7232 (c_value_of_variable): Delay check of variable's validity
7233 until later. We actually want all structs and unions to have
7235 Do not return "???" for variables which could not be evaluated.
7236 This error condition must be returned to the caller so that it
7237 can get the error condition from gdb.
7238 (cplus_name_of_child): Adjust index for vptr before figuring
7239 out the name of the child.
7240 (cplus_value_of_child): If a child's (real) parent is not valid,
7241 don't even bother trying to give a value for it. Just return
7242 an error. Change all instances in this function.
7243 (cplus_type_of_child): If our parent is one of the "fake"
7244 parents, we need to get at the type of the real parent, and
7245 derive the child's true type using this information.
7247 2002-01-13 Andrew Cagney <ac131313@redhat.com>
7249 From 2002-01-09 John Marshall <johnm@falch.net>:
7250 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
7251 sources.redhat.com, and tweak some related URLs which had
7252 suffered from linkrot.
7254 2002-01-13 Andrew Cagney <ac131313@redhat.com>
7257 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
7258 structures passed in registers.
7260 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
7262 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
7263 white space which prevented compilation. Reported by DSK
7264 <dsk@student.unsw.edu.au>.
7266 2002-01-11 Michael Snyder <msnyder@redhat.com>
7268 * symfile.c (build_section_addr_info_from_section_tab):
7269 Use bfd access method instead of manipulating bfd directly.
7270 (syms_from_objfile): Ditto.
7271 (simple_overlay_update_1): Ditto.
7272 (simple_overlay_update): Ditto.
7273 (generic_load): Ditto.
7274 (overlay_unmapped_address): FIXME comment, bfd access methods.
7275 (sections_overlap): FIXME comment, bfd access methods.
7276 (pc_in_mapped_range): FIXME comment, bfd access methods.
7277 (pc_in_unmapped_range): FIXME comment, bfd access methods.
7278 (section_is_mapped): FIXME comment, bfd access methods.
7279 (section_is_overlay): FIXME comment, bfd access methods.
7281 * symfile.c (generic_load): Whitespace and long line cleanups.
7282 Remove duplicate variable, change several local variables to
7283 more appropriate data types.
7284 (print_transfer_performance): Use %lu instead of %ld for ulongs.
7286 2002-01-12 Andrew Cagney <ac131313@redhat.com>
7289 * language.c (longest_local_hex_string_custom): Use phex_nz to
7290 convert NUM to a hex string.
7292 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
7294 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
7296 Update Copyright year.
7298 2002-01-12 Andrew Cagney <ac131313@redhat.com>
7300 * language.c (longest_raw_hex_string): Delete unused function.
7302 2002-01-11 Petr Sorfa <petrs@caldera.com>
7304 * MAINTAINERS (write-after-approval): Add myself.
7305 * dwarf2read.c (read_tag_string_type): Handling of
7307 (read_tag_string_type): FORTRAN fix to prevent propagation of
7309 (set_cu_language): Handling of DW_LANG_Fortran95
7311 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
7313 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
7314 GETPID(inferior_ptid).
7315 (store_inferior_registers): Likewise.
7317 2002-01-10 Jason Merrill <jason@redhat.com>
7319 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
7322 2002-01-10 Andrew Cagney <ac131313@redhat.com>
7324 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
7325 and bfd/elf32-sh-nbsd.c.
7327 2002-01-10 Michael Snyder <msnyder@redhat.com>
7329 * NEWS: Mention --pid and corefile/proc-id behavior change.
7331 * Makefile.in: Add rules for gcore.o and linux-proc.o.
7332 * gcore.c: Include cli/cli-decode.h instead of command.h.
7334 * main.c (captured_main): Add new command line option "--pid".
7335 If the second command line argument (following the symbol-file)
7336 begins with a digit, try to attach to it before trying to open
7338 (print_gdb_help): Document the "--pid" argument.
7340 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
7342 * completer.c (command_completer): New function.
7344 * completer.h <command_completer>: Add prototype.
7346 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
7347 completer for the "help" command.
7349 2002-01-09 Jason Merrill <jason@redhat.com>
7351 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
7353 2002-01-09 Michael Snyder <msnyder@redhat.com>
7355 * i386-linux-nat.c (fill_fpxregset): Make global.
7356 (store_fpxregset): Ditto.
7358 * gregset.h (gdb_fpxregset_t): Define.
7359 (supply_fpxregset): Prototype.
7360 (fill_fpxregset): Prototype.
7362 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
7364 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
7366 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
7367 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
7368 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
7370 2002-01-09 Andrew Cagney <ac131313@redhat.com>
7372 * MAINTAINERS: Update target maintainer rules so that any
7373 Maintainer can approve a tested patch for a maintenance-only
7376 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
7378 * MAINTAINERS (write-after-approval): Add myself.
7380 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
7383 2002-01-08 Michael Snyder <msnyder@redhat.com>
7385 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
7386 real name of the executable, rather than the /proc name.
7388 2002-01-03 Michael Snyder <msnyder@redhat.com>
7390 Implement a "generate-core-file" command in gdb, save target state.
7391 * gcore.c: New file. Implement new command 'generate-core-file'.
7392 Save a corefile image of the current state of the inferior.
7393 * linux-proc.c: Add linux-specific code for saving corefiles.
7394 * target.h (struct target_ops): Add new target vectors for saving
7395 corefiles; to_find_memory_regions and to_make_corefile_notes.
7396 (target_find_memory_regions): New macro.
7397 (target_make_corefile_notes): New macro.
7398 * target.c (update_current_target): Inherit new target methods.
7399 (dummy_find_memory_regions): New place-holder method.
7400 (dummy_make_corefile_notes): New place-holder method.
7401 (init_dummy_target): Initialize new dummy target vectors.
7402 * exec.c (exec_set_find_memory_regions): New function.
7403 Allow the exec_ops vector for memory regions to be taken over.
7404 (exec_make_note_section): New function, target vector method.
7405 * defs.h (exec_set_find_memory_regions): Export prototype.
7406 * procfs.c (proc_find_memory_regions): New function, corefile method.
7407 (procfs_make_note_section): New function, corefile method.
7408 (init_procfs_ops): Set new target vector pointers.
7409 (find_memory_regions_callback): New function.
7410 (procfs_do_thread_registers): New function.
7411 (procfs_corefile_thread_callback): New function.
7412 * sol-thread.c (sol_find_memory_regions): New function.
7413 (sol_make_note_section): New function.
7414 (init_sol_thread_ops): Initialize new target vectors.
7415 * inftarg.c (inftarg_set_find_memory_regions): New function.
7416 Allow to_find_memory_regions vector to be taken over.
7417 (inftarg_set_make_corefile_notes): New function.
7418 Allow to_make_corefile_notes vector to be taken over.
7419 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
7420 interface layer if not target_has_execution (may be a corefile).
7421 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
7422 * config/sparc/sun4sol2.mh: Ditto.
7423 * config/alpha/alpha-linux.mh: Ditto.
7424 * config/arm/linux.mh: Ditto.
7425 * config/i386/x86-64linux.mh: Ditto.
7426 * config/ia64/linux.mh: Ditto.
7427 * config/m68k/linux.mh: Ditto.
7428 * config/mips/linux.mh: Ditto.
7429 * config/powerpc/linux.mh: Ditto.
7430 * config/sparc/linux.mh: Ditto.
7432 2002-01-07 Michael Snyder <msnyder@redhat.com>
7434 * arm-linux-nat.c: Remove references to regcache.c internal data
7435 (registers[] and register_valid[]).
7437 2002-01-07 Michael Snyder <msnyder@redhat.com>
7439 * linux-proc.c: New file. Implement child_pid_to_exec_file,
7440 so that attaching to a pid will automatically read the process's
7441 symbol file and shlibs.
7442 * Makefile.in: Add rule for linux-proc.o.
7443 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
7444 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
7445 * config/arm/linux.mh: Ditto.
7446 * config/i386/linux.mh: Ditto.
7447 * config/i386/x86-64linux.mh: Ditto.
7448 * config/ia64/linux.mh: Ditto.
7449 * config/m68k/linux.mh: Ditto.
7450 * config/mips/linux.mh: Ditto.
7451 * config/powerpc/linux.mh: Ditto.
7452 * config/sparc/linux.mh: Ditto.
7454 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
7456 * win32-nat.c: Add i386-tdep.h dependency.
7458 2002-01-07 Michael Snyder <msnyder@redhat.com>
7460 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
7461 instead of bfd_get_arch_size. Don't bail out just because
7462 there's no exec_bfd.
7464 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
7465 * p-valprint.c (pascal_object_print_value): Ditto.
7466 * somread.c (som_symtab_read): Ditto.
7467 * symfile.c (simple_free_overlay_region_table): Ditto.
7468 * valops.c (value_assign): Ditto.
7470 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
7471 use tilde_expand and strerror for opening save-tracepoints file.
7473 * thread-db.c (thread_db_new_objfile): Indendation fix.
7475 * infptrace.c (GDB_MAX_ALLOCA): New define.
7476 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
7477 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
7478 can be overridden with whatever value is appropriate to the host).
7479 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
7480 alloca to allocate potentially large buffer.
7481 * rs6000-nat.c (child_xfer_memory): Ditto.
7482 * symm-nat.c (child_xfer_memory): Ditto.
7483 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
7485 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
7487 From Nick Clifton <nickc@redhat.com>
7488 * d10v-tdep.c: Set STACK_START to 0x200bffe.
7490 2002-01-07 Michael Snyder <msnyder@redhat.com>
7492 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
7493 Don't use exec_bfd if it's NULL.
7495 2002-01-06 Mark Kettenis <kettenis@gnu.org>
7497 * valops.c (value_arg_coerce): Fix formatting.
7499 2002-01-06 Andrew Cagney <ac131313@redhat.com>
7501 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
7504 2002-01-06 Andrew Cagney <ac131313@redhat.com>
7506 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
7507 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
7508 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
7509 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
7510 z8k-coff have not been multi-arched. Update z8k-coff build
7513 2002-01-06 Andrew Cagney <ac131313@redhat.com>
7515 * MAINTAINERS: Mark a29k target as obsolete.
7516 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
7517 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
7519 * NEWS: Note that a29k targets are obsolete.
7520 * a29k-tdep.c: Mark as obsolete.
7521 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
7522 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
7523 a29k-*-vxworks* targets as obsolete.
7524 * remote-adapt.c: Obsolete.
7525 * remote-eb.c: Obsolete.
7526 * remote-mm.c: Obsolete.
7527 * remote-udi.c: Obsolete.
7528 * config/a29k/a29k-udi.mt: Obsolete.
7529 * config/a29k/a29k.mt: Obsolete.
7530 * config/a29k/tm-a29k.h: Obsolete.
7531 * config/a29k/tm-vx29k.h: Obsolete.
7532 * config/a29k/vx29k.mt: Obsolete.
7534 2002-01-05 Andrew Cagney <ac131313@redhat.com>
7536 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
7537 with BFD_ENDIAN_BIG.
7539 2002-01-05 Andrew Cagney <ac131313@redhat.com>
7541 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
7542 * configure, config.in: Re-generate.
7543 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
7544 * defs.h: Do not include <endian.h>.
7546 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
7548 * acconfig.h (HAVE_PT_GETXMMREGS): New.
7549 * config.in: Regenerate.
7550 * configure.in: Update copyright years.
7551 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
7552 * configure: Regenerate.
7553 * i386bsd-nat.c: Update copyright years.
7554 (fill_gregset): Use regcache_collect.
7555 (fetch_inferior_registers): Only fetch integer registers
7556 if requested to do so. Add support for XMM registers
7557 using PT_GETXMMREGS.
7558 (store_inferior_registers): Only store integer registers
7559 if requested to do so. Add support for XMM registers
7560 using PT_SETXMMREGS.
7561 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
7562 (store_inferior_registers): Remove.
7563 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
7564 (fetch_elfcore_registers): New function.
7565 (i386nbsd_elfcore_fns): New.
7566 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
7567 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
7569 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
7570 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
7571 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
7572 * config/i386/tm-nbsd.h: Update copyright years.
7573 (HAVE_SSE_REGS): Define.
7574 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
7575 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
7576 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
7577 (SIGCONTEXT_PC_OFFSET): Remove.
7578 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
7580 2002-01-05 Andrew Cagney <ac131313@redhat.com>
7582 * configure.tgt: Remove powerpc-*-macos* target.
7583 * config/m68k/xm-mpw.h: Delete file.
7584 * config/xm-mpw.h: Delete file.
7585 * ser-mac.c: Delete file.
7586 * mpw-make.sed: Delete file.
7587 * mpw-config.in: Delete file.
7588 * mac-xdep.c: Delete file.
7589 * mac-gdb.r: Delete file.
7590 * mac-defs.h: Delete file.
7591 * mac-nat.c: Delete file.
7592 * config/powerpc/macos.mh: Delete file.
7593 * config/powerpc/macos.mt: Delete file.
7594 * config/powerpc/nm-macos.h: Delete file.
7595 * config/powerpc/tm-macos.h: Delete file.
7596 * source.c (openp, open_source_file): Remove obsolete code.
7597 * top.c (gdb_readline): Ditto.
7598 * utils.c (query): Ditto.
7599 * event-top.c (display_gdb_prompt): Ditto.
7600 * Makefile.in (ser-mac.o): Delete obsolete target.
7603 2002-01-04 Andrew Cagney <ac131313@redhat.com>
7605 * defs.h (BIG_ENDIAN): Delete macro definition.
7606 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
7607 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
7608 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
7609 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
7610 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
7611 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
7612 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
7613 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
7614 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
7615 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
7616 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
7617 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
7618 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
7619 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
7620 * gdbarch.c: Re-generate.
7622 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
7624 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
7627 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
7629 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
7631 2002-01-04 Andrew Cagney <ac131313@redhat.com>
7633 * value.h (value_ptr): Delete typedef.
7635 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
7637 * i386nbsd-nat.c: Update copyright years.
7638 Include i386-tdep.h.
7640 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
7642 * stabsread.c: Update copyright years.
7644 From Debashis Mahata <debashis.mahata@wipro.com>:
7645 (read_struct_fields): Deal with Sun C compiler erroneous stab
7646 output for structs and unions.
7649 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
7651 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
7654 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
7656 * cp-abi.c: Fix whitespace.
7657 (baseclass_offset): New wrapper function.
7658 * cp-abi.h (baseclass_offset): Add prototype.
7659 (struct cp_abi_ops): Add baseclass_offset pointer.
7661 * valops.c (vb_match): Move to...
7662 * gnu-v2-abi.c (vb_match): here.
7663 * valops.c (baseclass_offset): Move to...
7664 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
7666 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
7668 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
7669 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
7670 * hpacc-abi.c (init_hpacc_ops): Likewise.
7672 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
7674 * valops.c (find_overload_match): Accept obj as a
7675 reference parameter. Update it before returning.
7676 * value.h (find_overload_match): Update prototype.
7677 * eval.c (evaluate_subexp_standard): Pass object to
7678 find_overload_match by reference.
7680 2002-01-03 Andrew Cagney <ac131313@redhat.com>
7682 * valarith.c: Replace value_ptr with struct value pointer. Remove
7683 register attribute from value declarations.
7686 * scm-lang.c (scm_lookup_name): Ditto.
7688 2002-01-03 Michael Snyder <msnyder@redhat.com>
7690 Abstract the functionality of iterating over mapped memory
7691 regions into a general purpose iterator function.
7692 * procfs.c (iterate_over_mappings): New function, general purpose
7693 iterator for memory sections.
7694 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
7695 (solib_mappings_callback): New function, callback for above.
7696 (info_proc_mappings): Reimpliment using iterate_over_mappings.
7697 (info_mappings_callback): New function, callback for above.
7699 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
7701 2002-01-01 Mark Kettenis <kettenis@gnu.org>
7703 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
7704 * i386-tdep.c: Include "elf-bfd.h".
7705 (process_note_abi_tag_sections): New function.
7706 (i386_gdbarch_init): Add code to recognize various OS/ABI
7709 * maint.c (_initialize_maint_cmds): Add missing \ in
7712 For older changes see ChangeLog-2001
7718 version-control: never