]> Git Repo - binutils.git/blame_incremental - gdb/ChangeLog
2002-06-19 Daniel Jacobowitz <[email protected]>
[binutils.git] / gdb / ChangeLog
... / ...
CommitLineData
12002-06-19 Daniel Jacobowitz <[email protected]>
2
3 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
4 MIPS_ABI_LAST.
5 (mips_abi_string, mips_abi_strings): New.
6 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
7 (mips_gdbarch_init): Set tdep->found_abi. Don't set
8 tdep->mips_abi_string. Honor mips_abi_string. Default to
9 O32 if no ABI is found.
10 (mips_dump_tdep): Use mips_abi_strings.
11 (mips_abi_update): New function.
12 (_initialize_mips_tdep): Initialize mips_abi_string. Add
13 ``set mips abi'' and ``show mips abi''. Check the size of
14 mips_abi_strings.
15
162002-06-19 Andrew Cagney <[email protected]>
17
18 * i386-linux-tdep.c (i386_linux_register_name): Make return type
19 constant.
20
212002-06-18 Joel Brobecker <[email protected]>
22
23 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
24 current frame using only the first stack size adjustment. All
25 subsequent size adjustments are not considered to be part of
26 the "static" part of the current frame.
27 Compute the address of the saved registers relative to the
28 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
29 in use in this frame.
30
312002-06-18 Don Howard <[email protected]>
32
33 * valops.c (value_ind): Use value_at_lazy() when dereferencing
34 type int expressions. Thanks to Jim Blandy <[email protected]> for
35 suggesting this solution.
36
372002-06-18 Andrew Cagney <[email protected]>
38
39 * config/romp/xm-rtbsd.h: Delete file.
40 * config/romp/rtbsd.mh: Delete file.
41
422002-06-18 Keith Seitz <[email protected]>
43
44 * breakpoint.c (condition_command): Post breakpoint_modify
45 when a condition is added to an existing breakpoint.
46 (commands_command): Likewise for commands.
47 (set_ignore_count): Likewise for ignore counts.
48 If no tty, do not simply return, still need to send event
49 notification.
50 (ignore_command): Only print a newline if the command came
51 from a tty.
52 Don't call breakpoints_changed, since this is now properly
53 handled by set_ignore_count.
54
552002-06-18 Andrew Cagney <[email protected]>
56
57 * MAINTAINERS: Note that cris-elf target can be compiled with
58 -Werror.
59 * cris-tdep.c (cris_register_name): Make return type constant.
60 (cris_breakpoint_from_pc): Ditto.
61
622002-06-18 Michal Ludvig <[email protected]>
63
64 * frame.h (struct frame_info): Change type of context to
65 'struct context'.
66
672002-06-17 Andrew Cagney <[email protected]>
68
69 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
70 pointer.
71 * gdbarch.h, gdbarch.c: Regenerate.
72 * config/mips/tm-mips.h (mips_register_name): Update.
73 * i386-tdep.h (i386_register_name): Update.
74 * mips-tdep.c (mips_register_name): Update
75 * alpha-tdep.c (alpha_register_name): Update.
76 * arch-utils.c (legacy_register_name): Update.
77 * arch-utils.h (legacy_register_name): Update.
78 * avr-tdep.c (avr_register_name): Update.
79 * ia64-tdep.c (ia64_register_name): Update.
80 * i386-tdep.c (i386_register_name): Update.
81 * sparc-tdep.c (sparc32_register_name): Update.
82 (sparc64_register_name): Update.
83 (sparclite_register_name): Update.
84 (sparclet_register_name): Update.
85 * sh-tdep.c (sh_generic_register_name): Update.
86 (sh_sh_register_name): Update.
87 (sh_sh3_register_name): Update.
88 (sh_sh3e_register_name): Update.
89 (sh_sh_dsp_register_name): Update.
90 (sh_sh3_dsp_register_name): Update.
91 (sh_sh4_register_name): Update.
92 (sh_sh64_register_name): Update.
93 * s390-tdep.c (s390_register_name): Update.
94 * rs6000-tdep.c (rs6000_register_name): Update.
95 * ns32k-tdep.c (ns32k_register_name_32082): Update.
96 (ns32k_register_name_32382): Update.
97 * d10v-tdep.c (d10v_ts2_register_name): Update.
98 (d10v_ts3_register_name): Update.
99 * xstormy16-tdep.c (xstormy16_register_name): Update.
100 * vax-tdep.c (vax_register_name): Update.
101 * v850-tdep.c (v850_register_name): Update.
102 * m68hc11-tdep.c (m68hc11_register_name): Update.
103 * mn10300-tdep.c (mn10300_generic_register_name): Update.
104 (am33_register_name): Update.
105
1062002-06-17 Grace Sainsbury <[email protected]>
107
108 * m68k-tdep.c: Reindented.
109
1102002-06-17 Andrew Cagney <[email protected]>
111
112 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
113 list of predefined types.
114
1152002-06-16 Mark Kettenis <[email protected]>
116
117 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
118 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
119 REGISTER_CONVERT_TO_RAW): Remove defines.
120 (i386_register_virtual_type, i386_register_convertible,
121 i386_register_convert_to_virtual, i386_register_convert_to_raw):
122 Remove prototypes.
123 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
124 macros mentioned above.
125
126 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
127 (i386lynx_saved_pc_after_call): Remove prototype.
128 * i386ly-tdep.c: Include "i386-tdep.h".
129 (i386lynx_saved_pc_after_call): Make static. Use
130 read_memory_nobpt instead of read_memory. Use
131 read_memory_unsigned_integer instead of read_memory_integer.
132 (i386lynx_init_abi): New function.
133 (i386lynx_coff_osabi_sniffer): New function.
134 (_initialize_i386bsd_tdep): New function.
135
136 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
137 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
138 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
139 (i386_fix_call_dummy): Remove prototype.
140 * i386-tdep.c (i386_call_dummy_words): New variable.
141 (i386_gdbarch_init): Adjust for removal of the
142 macros mentioned above.
143
1442002-06-15 Andrew Cagney <[email protected]>
145
146 * command.h (add_setshow_auto_boolean_cmd): Replace
147 add_set_auto_boolean_cmd.
148 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
149 add_set_auto_boolean_cmd.
150 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
151 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
152 mask-address'' command.
153 (show_mask_address): Add cmd parameter.
154 * remote.c (add_packet_config_cmd): Update. Change type of
155 set_func and show_func to cmd_sfunc_ftype.
156 (_initialize_remote): Update `set remote Z-packet'
157 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
158 (show_remote_protocol_e_packet_cmd): Ditto.
159 (show_remote_protocol_E_packet_cmd): Ditto.
160 (show_remote_protocol_P_packet_cmd): Ditto.
161 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
162 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
163 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
164 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
165 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
166 (show_remote_protocol_Z_packet_cmd): Ditto.
167 (show_remote_protocol_binary_download_cmd): Ditto.
168 (show_remote_cmd): Pass NULL to all of above.
169
1702002-06-15 Mark Kettenis <[email protected]>
171
172 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
173 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
174 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
175 POP_FRAME): Remove defines.
176 (i386_push_arguments, i386_store_struct_return,
177 i386_extract_return_value, i386_store_return_value,
178 i386_extract_struct_value_address, i386_push_dummy_frame,
179 i386_pop_frame): Renove prototypes.
180 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
181 macros mentioned above.
182
1832002-06-15 Andrew Cagney <[email protected]>
184
185 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
186 add_set_boolean_cmd.
187 (add_setshow_cmd): New function.
188 * command.h (add_setshow_boolean_cmd): Replace
189 add_set_boolean_cmd.
190 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
191 and ``set rdiromatzero''.
192 * maint.c (_initialize_maint_cmds): Update commented out code.
193 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
194 * target.c (initialize_targets): Update `set
195 trust-readonly-sections'.
196 * remote.c (_initialize_remote): Update `set remotebreak'.
197
1982002-06-15 Mark Kettenis <[email protected]>
199
200 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
201 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
202 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
203 fit into multi-arch framework.
204 (i386_breakpoint_from_pc): New function.
205 (i386_gdbarch_init): Adjust for removal of the macros mentioned
206 above.
207
208 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
209 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
210 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
211 (i386_frameless_function_invocation, i386_frame_num_args,
212 i386_frame_init_saved_regs): Remove prototypes.
213 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
214 macros mentioned above.
215
2162002-06-15 Andrew Cagney <[email protected]>
217
218 * cli/cli-decode.c (set_cmd_cfunc): Update.
219 (set_cmd_sfunc): Update.
220 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
221 (set_cmd_sfunc, set_cmd_cfunc): Update.
222 * cli/cli-decode.h: Update.
223
2242002-06-15 Mark Kettenis <[email protected]>
225
226 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
227 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
228
2292002-06-15 Andrew Cagney <[email protected]>
230
231 * defs.h (auto_boolean): Declare enum.
232 * command.h (cmd_auto_boolean): Delete enum.
233 * mips-tdep.c (mask_address_var): Update.
234 (mips_mask_address_p): Update.
235 (show_mask_address): Update.
236 * remote.c (struct packet_config): Update.
237 (update_packet_config): Update.
238 (show_packet_config_cmd): Update.
239 (packet_ok): Update.
240 (add_packet_config_cmd): Update.
241 (_initialize_remote):
242 * command.h: Update.
243 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
244 (do_setshow_command): Update.
245 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
246 * cli/cli-decode.h: Update.
247
2482002-06-15 Mark Kettenis <[email protected]>
249
250 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
251 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
252 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
253 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
254 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
255 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
256
257 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
258 list of DJGPP COFF targets.
259
260 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
261 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
262 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
263 (FP0_REGNUM): Remove define.
264 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
265 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
266 (i386_register_virtual_size): Remove protoype.
267 * i386-tdep.c (i386_register_virtual_size): Removed.
268 (i386_extract_return_value, i386_store_return_value): Use
269 FP0_REGNUM instead of NUM_FREGS to determine whether the
270 floating-point registers are available.
271 (i386_gdbarch_init): Tweak FIXME about FPU registers.
272 Adjust for removal of macros mentioned above.
273
2742002-06-15 Mark Kettenis <[email protected]>
275
276 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
277 comments.
278 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
279 Remove prototypes.
280 (supply_gregset, fill_gregset): Remove use of register keyword and
281 remove declaration for regmap. Use I386_NUM_GREGS instead of
282 NUM_REGS and NUM_FREGS.
283 (FPREGSET_FSAVE_OFFSET): Remove.
284 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
285 NUM_FREGS to determine whether the floating-point registers are
286 available.
287
288 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
289 gnu_store_registers): Replace usage of NUM_GREGS with
290 I386_NUM_GREGS.
291
292 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
293 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
294 usage of NUM_GREGS with I386_NUM_GREGS.
295
296 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
297
298 * i386bsd-nat.c: Include "i386-tdep.h".
299 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
300 I386_NUM_GREGS.
301
302 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
303 and associated comment. They no longer make any sense, since we
304 don't use this file anymore on Linux.
305
306 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
307 * i386-tdep.c (i386_register_offset, i386_register_size): Use
308 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
309 elements in these arrays.
310 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
311 MAX_NUM_REGS.
312
3132002-06-15 Mark Kettenis <[email protected]>
314
315 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
316 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
317
3182002-06-14 Andrew Cagney <[email protected]>
319
320 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
321 EXTRACT_RETURN_VALUE.
322 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
323 EXTRACT_STRUCT_VALUE_ADDRESS.
324 * gdbarch.h, gdbarch.c: Regenerate.
325
326 * values.c (value_being_returned): Handle
327 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
328 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
329
330 * arm-linux-tdep.c (arm_linux_init_abi): Update.
331 * arm-tdep.c (arm_gdbarch_init): Update.
332 * avr-tdep.c (avr_gdbarch_init): Update.
333 * cris-tdep.c (cris_gdbarch_init): Update.
334 * d10v-tdep.c (d10v_gdbarch_init): Update.
335 * ia64-tdep.c (ia64_gdbarch_init): Update.
336 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
337 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
338 * s390-tdep.c (s390_gdbarch_init): Update.
339 * sh-tdep.c (sh_gdbarch_init): Update.
340 * s390-tdep.c (s390_gdbarch_init): Update.
341 * sparc-tdep.c (sparc_gdbarch_init): Update.
342 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
343 * v850-tdep.c (v850_gdbarch_init): Update.
344 * vax-tdep.c (vax_gdbarch_init): Update.
345 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
346 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
347
348 * config/arc/tm-arc.h: Update.
349 * config/d30v/tm-d30v.h: Update.
350 * config/fr30/tm-fr30.h: Update.
351 * config/h8300/tm-h8300.h: Update.
352 * config/h8500/tm-h8500.h: Update.
353 * config/i386/tm-i386.h: Update.
354 * config/i386/tm-ptx.h: Update.
355 * config/i386/tm-symmetry.h: Update.
356 * config/i960/tm-i960.h: Update.
357 * config/m32r/tm-m32r.h: Update.
358 * config/m68k/tm-delta68.h: Update.
359 * config/m68k/tm-linux.h: Update.
360 * config/m68k/tm-m68k.h: Update.
361 * config/m88k/tm-m88k.h: Update.
362 * config/mcore/tm-mcore.h: Update.
363 * config/mips/tm-mips.h: Update.
364 * config/mn10200/tm-mn10200.h: Update.
365 * config/pa/tm-hppa.h: Update.
366 * config/pa/tm-hppa64.h: Update.
367 * config/sparc/tm-sp64.h: Update.
368 * config/sparc/tm-sparc.h: Update.
369 * config/sparc/tm-sparclet.h: Update.
370 * config/z8k/tm-z8k.h: Update.
371
3722002-06-14 Andrew Cagney <[email protected]>
373
374 * Makefile.in (i386_linux_tdep_h): Define.
375 (i386_tdep_h, i387_tdep_h): Define.
376 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
377 $(i386_tdep_h) and $(i387_tdep_h).
378 * i386-linux-nat.c: Include "i386-linux-tdep.h".
379
3802002-06-14 Mark Kettenis <[email protected]>
381
382 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
383 Already covered by the default.
384
385 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
386 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
387 (i386_gdbarch_init): Initialize long_double_format and long_double
388 bit.
389
390 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
391 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
392 Move these to ...
393 * config/i386/i386sol2.mh: ... here.
394 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
395 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
396 (SIGCONTEXT_PC_OFFSET): Remove define.
397 (IN_SIGTRAMP): Remove define.
398 * i386-sol2-tdep.c: New file.
399
400 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
401 * config/i386/tm-i386nw.h: Removed.
402
403 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
404 USE_STRUCT_CONVENTION): Remove defines.
405 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
406 (get_longjmp_target): Remove prototype.
407 (IN_SIGTRAMP): Remove define.
408 (i386bsd_in_sigtramp): Remove prototype.
409 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
410 function. Update comment accordingly
411 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
412 (FRAME_SAVED_PC): Remove define.
413 (i386bsd_frame_saved_pc): Remove prototype.
414 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
415 GET_LONGJMP_TARGET): Remove defines.
416 (get_longjmp_target): Remove prototype.
417 (IN_SIGTRAMP): Remove define.
418 (i386bsd_in_sigtramp): Remove prototype.
419 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
420 function. Update comment accordingly
421 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
422 (FRAME_SAVED_PC): Remove define.
423 (i386bsd_frame_saved_pc): Remove prototype.
424 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
425 Remove prototype.
426 (USE_STRUCT_CONVENTION): Remove prototype.
427 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
428 declaration.
429 (_initialize_i386bsd_nat): Revise logic to determine some
430 constants at compile time when compiling a native GDB. Warn if
431 things don't match up with what we expect.
432 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
433 Remove variables.
434 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
435 to use date stored in `struct gdbarch_tdep'.
436 (i386bsd_sigcontext_offset): Remove varaible.
437 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
438 stored in `struct gdbarch_tdep'.
439 (i386bsd_frame_saved_pc): Make static.
440 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
441 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
442 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
443 i386fbsd4_sc_pc_offset): New variables.
444 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
445 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
446 functions.
447 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
448 functions.
449 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
450 Modify the value of i386fbsd_sigtramp_start and
451 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
452 i386fbsd_sigtramp_end.
453 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
454 function.
455
456 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
457 define to i386-linux-tdep.h.
458 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
459 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
460 defines.
461 (i386_linux_register_name, i386_linux_register_byte,
462 i386_linux_register_raw_size): Remove prototypes.
463 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
464 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
465 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
466 TARGET_WRITE_PC): Remove defines.
467 (i386_linux_in_sigtramp, i386_linux_frame_chain,
468 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
469 i386_linux_write_pc): Remove prototypes.
470 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
471 (get_longjmp_target): Remove prototype.
472 * i386-linux-tdep.h: New file.
473 * i386-linux-nat.c: Include "i386-linux-tdep.h".
474 * i386-linux-tdep.c: Include "i386-tdep.h" and
475 "i386-linux-tdep.h".
476 (i386_linux_register_name, i386_linux_register_byte,
477 i386_linux_register_raw_size, i386_linux_in_sigtramp,
478 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
479 Make static.
480 (i386_linux_init_abi): New function.
481 (_initialize_i386_linux_tdep): New function.
482
483 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
484 (i386_saved_pc_after_call): Remove prototype.
485 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
486 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
487 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
488 (i386_register_name, i386_stab_reg_to_regnum,
489 i386_dwarf_reg_to_regnum): Remove prototypes.
490 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
491 SIZEOF_SSE_REGS): Remove defines.
492 (REGISTER_BYTES): Remove define.
493 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
494 (i386_register_byte, i386_register_raw_size): Remove prototypes.
495 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
496 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
497 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
498 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
499 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
500 (get_longjmp_target): Remove prototype.
501 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
502 (sigtramp_saved_pc): Remove define.
503 (i386v4_sigtramp_saved_pc): Remove prototype.
504 * config/i386/tm-go32.h (FRAME_CHAIN,
505 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
506 (i386go32_frame_saved_pc): Remove prototype.
507 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
508 (get_longjmp_target): Remove prototype.
509 * i386-tdep.h: Include "osabi.h".
510 (enum i386_abi): Removed.
511 (enum struct_return): New enum.
512 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
513 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
514 sc_pc_offset members.
515 (i386_gdbarch_register_os_abi): Remove prototype.
516 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
517 I386_SSE_NUM_REGS): New defines.
518 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
519 I386_SSE_SIZEOF_REGS): New defines.
520 (i386_register_name, i386_register_byte, i386_register_raw_size):
521 New prototypes.
522 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
523 (i386bsd_sigtramp_saved_pc): New prototype.
524 * i386-tdep.c: Don't include "elf-bfd.h".
525 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
526 i386_frame_chain, i386_saved_pc_after_call): Make static.
527 (i386_frame_saved_pc): Rewrite to call architecture dependent
528 function to deal with signal handlers. Make static.
529 (i386go32_frame_saved_pc): Removed.
530 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
531 Removed.
532 (i386_get_longjmp_target): New function.
533 (default_struct_convention, pcc_struct_convention,
534 reg_struct_convention, valid_conventions, struct_convention): New
535 variables.
536 (i386_use_struct_convention): New function.
537 (i386v4_sigtramp_saved_pc): Renamed to
538 i386_svr4_sigtramp_saved_pc. Made static. Moved.
539 (i386_pc_in_sigtramp): New function.
540 (i386_abi_names): Removed.
541 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
542 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
543 Removed.
544 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
545 i386_gdbarch_register_os_abi): Removed.
546 (struct i386_abi_handler): Removed.
547 (i386_abi_handler_list): Removed.
548 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
549 functions.
550 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
551 i386_nw_init_abi): New functions.
552 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
553 Use set_gdbarch_xxx() calls instead of relying on macros for a
554 number of calls.
555 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
556 (_initialize_i386_tdep): Add new 'struct-convcention' command.
557 Register the various architecture variants defined in this file.
558
5592002-06-14 Daniel Jacobowitz <[email protected]>
560
561 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
562 (struct main_type): Remove arg_types member. Update comments for
563 struct field.
564 (TYPE_ARG_TYPES): Remove.
565 (TYPE_FN_FIELD_ARGS): Update.
566 (smash_to_method_type): Update prototype.
567
568 * c-typeprint.c (cp_type_print_method_args): Take method type
569 instead of argument list. Use new argument layout. Simplify.
570 (c_type_print_args): Use new argument layout. Simplify.
571 (c_type_print_base): Update call to cp_type_print_method_args.
572 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
573 argument; use die->type instead. Update call to
574 smash_to_method_type.
575 (read_structure_scope): Update call to dwarf2_add_member_fn.
576 * gdbtypes.c (allocate_stub_method): Update comment.
577 (smash_to_method_type): Take new NARGS and VARARGS arguments.
578 Use new argument layout.
579 (check_stub_method): Use new argument layout. Don't count
580 void as an argument.
581 (print_arg_types): Update comments. Use new argument layout.
582 (recursive_dump_type): Don't print arg_types member.
583 * hpread.c (hpread_read_struct_type): Use new argument layout.
584 (fixup_class_method_type): Likewise.
585 (hpread_type_lookup): Likewise.
586 * stabsread.c (read_type): Update calls to read_args and
587 smash_to_method_type.
588 (read_args): Use new argument layout. Simplify.
589 * valops.c (typecmp): Use new argument layout. Update parameters
590 and comments. Simplify.
591 (hand_function_call): Use new argument layout.
592 (search_struct_method): Update call to typecmp.
593 (find_overload_match): Use new argument layout.
594
5952002-06-13 Daniel Jacobowitz <[email protected]>
596
597 * NEWS: Mention multithreaded debug support for gdbserver.
598
5992002-06-13 Daniel Jacobowitz <[email protected]>
600
601 * MAINTAINERS: Mention NEWS.
602
6032002-06-13 Daniel Jacobowitz <[email protected]>
604
605 * gdbserver/regcache.c: Add comment.
606
6072002-06-13 Daniel Jacobowitz <[email protected]>
608
609 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
610 (struct mips_objfile_private, compare_pdr_entries): New.
611 (non_heuristic_proc_desc): Read the ".pdr" section if it
612 is present.
613
6142002-06-12 Andrew Cagney <[email protected]>
615
616 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
617 (arm_debug): New static variable.
618 (_initialize_arm_tdep): Add ``set debug arm'' command.
619
6202002-06-12 Andrew Cagney <[email protected]>
621
622 * Makefile.in (sim_arm_h): Define.
623 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
624 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
625 (arm_register_sim_regno): New function, map an internal REGNUM
626 onto a simulator register number.
627 (arm_gdbarch_init): Set register_sim_regno.
628
6292002-06-09 Aldy Hernandez <[email protected]>
630
631 * MAINTAINERS: Add self.
632
6332002-06-11 Jim Blandy <[email protected]>
634
635 * source.c (source_info): Mention whether the symtab has
636 information about preprocessor macros.
637
638 Call the command `info macro', not `show macro'.
639 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
640 Fix error message.
641 (_initialize_macrocmd): Register `info_macro_command' in
642 `infolist', not `showlist'.
643
6442002-06-11 Daniel Jacobowitz <[email protected]>
645
646 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
647 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
648 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
649 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
650 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
651 unconditionally.
652 (set_mipsfpu_single_command, set_mipsfpu_double_command)
653 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
654 (_initialize_mips_tdep): Remove dead code.
655 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
656 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
657 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
658 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
659 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
660 MIPS_LAST_FP_ARG_REGNUM): Remove.
661
6622002-06-11 Daniel Jacobowitz <[email protected]>
663
664 * gdbserver/thread-db.c: New file.
665 * gdbserver/proc-service.c: New file.
666 * gdbserver/acinclude.m4: New file.
667 * gdbserver/Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
668 proc-service.o, and thread-db.o.
669 (linux-low.o): Add USE_THREAD_DB.
670 * gdbserver/acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
671 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
672 * gdbserver/aclocal.m4: Regenerated.
673 * gdbserver/config.in: Regenerated.
674 * gdbserver/configure: Regenerated.
675 * gdbserver/configure.in: Check for proc_service.h, sys/procfs.h,
676 thread_db.h, and linux/elf.h headrs.
677 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
678 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
679 Check for -lthread_db and thread support.
680 * gdbserver/configure.srv: Enable thread_db support for ARM, i386, MIPS,
681 PowerPC, and SuperH.
682 * gdbserver/i387-fp.c: Constify arguments.
683 * gdbserver/i387-fp.h: Likewise.
684 * gdbserver/inferiors.c: (struct thread_info): Renamed from
685 `struct inferior_info'. Remove PID member. Use generic inferior
686 list header. All uses updated.
687 (inferiors, signal_pid): Removed.
688 (all_threads): New variable.
689 (get_thread): Define.
690 (add_inferior_to_list): New function.
691 (for_each_inferior): New function.
692 (change_inferior_id): New function.
693 (add_inferior): Removed.
694 (remove_inferior): New function.
695 (add_thread): New function.
696 (free_one_thread): New function.
697 (remove_thread): New function.
698 (clear_inferiors): Use for_each_inferior and free_one_thread.
699 (find_inferior): New function.
700 (find_inferior_id): New function.
701 (inferior_target_data): Update argument type.
702 (set_inferior_target_data): Likewise.
703 (inferior_regcache_data): Likewise.
704 (set_inferior_regcache_data): Likewise.
705 * gdbserver/linux-low.c (linux_bp_reinsert): Remove.
706 (all_processes, stopping_threads, using_thrads)
707 (struct pending_signals, debug_threads, pid_of): New.
708 (inferior_pid): Replace with macro.
709 (struct inferior_linux_data): Remove.
710 (get_stop_pc, add_process): New functions.
711 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
712 Use add_process and add_thread.
713 (linux_attach_lwp): New function, based on old linux_attach. Use
714 add_process and add_thread. Set stop_expected for new threads.
715 (linux_attach): New function.
716 (linux_kill_one_process): New function.
717 (linux_kill): Kill all LWPs.
718 (linux_thread_alive): Use find_inferior_id.
719 (check_removed_breakpoints, status_pending_p): New functions.
720 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
721 Update. Use WNOHANG. Wait for cloned processes also. Update process
722 struct for the found process.
723 (linux_wait_for_event): New function.
724 (linux_wait): Use it. Support LWPs.
725 (send_sigstop, wait_for_sigstop, stop_all_processes)
726 (linux_resume_one_process, linux_continue_one_process): New functions.
727 (linux_resume): Support LWPs.
728 (REGISTER_RAW_SIZE): Remove.
729 (fetch_register): Use register_size instead. Call supply_register.
730 (usr_store_inferior_registers): Likewise. Call collect_register.
731 Fix recursive case.
732 (regsets_fetch_inferior_registers): Improve error message.
733 (regsets_store_inferior_registers): Add debugging.
734 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
735 (unstopped_p, linux_signal_pid): New functions.
736 (linux_target_ops): Add linux_signal_pid.
737 (linux_init_signals): New function.
738 (initialize_low): Call it. Initialize using_threads.
739 * gdbserver/regcache.c (inferior_regcache_data): Add valid
740 flag.
741 (get_regcache): Fetch registers lazily. Add fetch argument
742 and update all callers.
743 (regcache_invalidate_one, regcache_invalidate): New
744 functions.
745 (new_register_cache): Renamed from create_register_cache.
746 Return the new regcache.
747 (free_register_cache): Change argument to a void *.
748 (registers_to_string, registers_from_string): Call get_regcache
749 with fetch flag set.
750 (register_data): Make static. Pass fetch flag to get_regcache.
751 (supply_register): Call get_regcache with fetch flag clear.
752 (collect_register): Call get_regcache with fetch flag set.
753 (collect_register_as_string): New function.
754 * gdbserver/regcache.h: Update.
755 * gdbserver/remote-utils.c (putpkt): Flush after debug output and use
756 stderr.
757 Handle input interrupts while waiting for an ACK.
758 (input_interrupt): Use signal_pid method.
759 (getpkt): Flush after debug output and use stderr.
760 (outreg): Use collect_register_as_string.
761 (new_thread_notify, dead_thread_notify): New functions.
762 (prepare_resume_reply): Check using_threads. Set thread_from_wait
763 and general_thread.
764 (look_up_one_symbol): Flush after debug output.
765 * gdbserver/server.c (step_thread, server_waiting): New variables.
766 (start_inferior): Don't use signal_pid. Update call to mywait.
767 (attach_inferior): Update call to mywait.
768 (handle_query): Handle qfThreadInfo and qsThreadInfo.
769 (main): Don't fetch/store registers explicitly. Use
770 set_desired_inferior. Support proposed ``Hs'' packet. Update
771 calls to mywait.
772 * gdbserver/server.h: Update.
773 (struct inferior_list, struct_inferior_list_entry): New.
774 * gdbserver/target.c (set_desired_inferior): New.
775 (write_inferior_memory): Constify.
776 (mywait): New function.
777 * gdbserver/target.h: Update.
778 (struct target_ops): New signal_pid method.
779 (mywait): Removed macro, added prototype.
780
781 * gdbserver/linux-low.h (regset_func): Removed.
782 (regset_fill_func, regset_store_func): New.
783 (enum regset_type): New.
784 (struct regset_info): Add type field. Use new operation types.
785 (struct linux_target_ops): stop_pc renamed to get_pc.
786 Add decr_pc_after_break and breakpoint_at.
787 (get_process, get_thread_proess, get_process_thread)
788 (strut process_info, all_processes, linux_attach_lwp)
789 (thread_db_init): New.
790
791 * gdbserver/linux-arm-low.c (arm_get_pc, arm_set_pc,
792 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
793 (the_low_target): Add new members.
794 * gdbserver/linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
795 (i386_store_fpxregset): Constify.
796 (target_regsets): Add new kind identifier.
797 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
798 (i386_set_pc): Add debugging.
799 (i386_breakpoint_at): New function.
800 (the_low_target): Add new members.
801 * gdbserver/linux-mips-low.c (mips_get_pc, mips_set_pc)
802 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
803 (mips_breakpoint_at): New.
804 (the_low_target): Add new members.
805 * gdbserver/linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
806 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
807 (the_low_target): Add new members.
808 * gdbserver/linux-sh-low.c (sh_get_pc, sh_set_pc)
809 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
810 (the_low_target): Add new members.
811 * gdbserver/linux-x86-64-low.c (target_regsets): Add new kind
812 identifier.
813
8142002-06-11 Michal Ludvig <[email protected]>
815
816 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
817 (unwind_tmp_obstack_free, parse_frame_info)
818 (update_context, cfi_read_fp, cfi_write_fp)
819 (cfi_frame_chain, cfi_init_extra_frame_info)
820 (cfi_virtual_frame_pointer): Use the above function.
821 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
822
8232002-06-11 Corinna Vinschen <[email protected]>
824
825 * v850-tdep.c (v850_type_is_scalar): New function.
826 (v850_use_struct_convention): Match current gcc implementation
827 as close as possible.
828 (v850_push_arguments): Fix stack_offset handling. Don't write
829 struct_addr into register. This is done by v850_store_struct_return.
830 (v850_extract_return_value): Care for structs.
831 (v850_store_return_value): Ditto.
832 (v850_store_struct_return): Actually write address.
833
8342002-06-11 Michal Ludvig <[email protected]>
835
836 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
837 without debug information too.
838
8392002-06-10 Andrew Cagney <[email protected]>
840
841 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
842 Make multi-arch pure.
843 * gdbarch.h, gdbarch.c: Re-generate.
844 * arm-tdep.c (arm_print_float_info): Update.
845 * arch-utils.h (default_print_float_info): Update.
846 * arch-utils.c (default_print_float_info): Update.
847 * infcmd.c (float_info): Update call.
848
8492002-06-10 Andrew Cagney <[email protected]>
850
851 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
852 the front of the initialize list.
853
8542002-06-10 Andrew Cagney <[email protected]>
855
856 * infrun.c (struct inferior_status): Replace fields
857 selected_frame_address and selected_level with field
858 selected_frame_id.
859 (save_inferior_status): Update. Use get_frame_id.
860 (struct restore_selected_frame_args): Delete.
861 (restore_selected_frame): Update. Use frame_find_by_id.
862 (restore_inferior_status): Update.
863
864 * breakpoint.h (struct breakpoint): Change type of
865 watchpoint_frame to frame_id.
866 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
867 call to get_current_frame.
868 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
869 get_current_frame.
870 (watchpoint_check): Use frame_find_by_id.
871
872 * frame.h (record_selected_frame): Delete declaration.
873 * stack.c (record_selected_frame): Delete function.
874
875 * frame.h (struct frame_id): Define.
876 (get_frame_id): Declare.
877 (frame_find_by_id): Declare.
878 * frame.c (frame_find_by_id): New function.
879 (get_frame_id): New function.
880
8812002-06-10 Andrey Volkov <[email protected]>
882
883 * ser-e7kpc.c: Fix duplicated define and call of
884 _initialize_ser_e7000pc
885
8862002-06-09 Daniel Jacobowitz <[email protected]>
887
888 * signals/signals.c (target_signal_from_host): Fix #ifdef
889 SIGRTMIN case.
890 (do_target_signal_to_host): Likewise.
891
8922002-06-09 Daniel Jacobowitz <[email protected]>
893
894 * mips-tdep.c (mips_find_abi_section): New function.
895 (mips_gdbarch_init): Call it.
896
8972002-06-09 Mark Kettenis <[email protected]>
898
899 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
900 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
901 after Andrew's 2002-06-08 gdbarch change.
902
9032002-06-09 Mark Kettenis <[email protected]>
904
905 * i386-linux-nat.c (suppy_gregset): Don't supply
906 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
907 register cache.
908 (fill_gregset): Don't fetch it under the same circumstances.
909
9102002-06-09 Andrew Cagney <[email protected]>
911
912 * Makefile.in (callback_h): Define.
913 (remote_sim_h): Update path to remote-sim.h.
914 (remote-rdp.o): Add $(callback_h).
915 (remote-sim.o): Use $(callback_h).
916 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
917 * remote-rdp.c: Include "gdb/callback.h".
918
9192002-06-09 Mark Kettenis <[email protected]>
920
921 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
922 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
923
9242002-06-08 Andrew Cagney <[email protected]>
925
926 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
927 * rdi-share/serpardr.c: Ditto.
928 * rdi-share/unixcomm.c: Ditto.
929 * rdi-share/serdrv.c: Ditto.
930 * rdi-share/hostchan.h: Ditto.
931 * rdi-share/hostchan.c: Ditto.
932 * rdi-share/host.h: Ditto.
933 * rdi-share/devsw.c: Ditto.
934
935 * objfiles.h: Change type of obj_private to void pointer.
936 * pa64solib.c: Update copyright. Don't include "assert.h", use
937 strcmp instead of STREQ, use LONGEST, do not use PTR
938 * somsolib.c: Ditto.
939
940 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
941 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
942 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
943
9442002-06-08 Andrew Cagney <[email protected]>
945
946 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
947 (default_get_saved_register): Delete function.
948 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
949 generic_unwind_get_saved_register.
950 * gdbarch.h, gdbarch.c: Re-generate.
951
9522002-06-08 Andrew Cagney <[email protected]>
953
954 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
955 generic_func_frame_chain_valid.
956 * gdbarch.h, gdbarch.c: Re-generate.
957 * blockframe.c (generic_func_frame_chain_valid): Only check
958 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
959 passing FP to PC_IN_CALL_DUMMY.
960 Fix PR gdb/360.
961
9622002-06-08 Andrew Cagney <[email protected]>
963
964 * gdbarch.sh (struct gdbarch_data): Add field init_p.
965 (register_gdbarch_data): Initialize init_p.
966 (gdbarch_data): Initialize data pointer using the init function.
967 (init_gdbarch_data): Delete function.
968 (gdbarch_update_p): Update.
969 (initialize_non_multiarch): Update.
970 (struct gdbarch): Add field initialized_p.
971 * gdbarch.h, gdbarch.c: Re-generate.
972
9732002-06-07 Michal Ludvig <[email protected]>
974
975 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
976 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
977 better do the things actually here.
978 * x86-64-tdep.c (x86_64_register_name2nr): New.
979 (x86_64_register_name): Renamed to x86_64_register_nr2name.
980 (x86_64_gdbarch_init): Respect the above change.
981 * x86-64-tdep.h (x86_64_register_name2nr)
982 (x86_64_register_nr2name): Add prototypes.
983 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
984
9852002-06-06 Michael Snyder <[email protected]>
986
987 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
988 Delete extra braces and re-indent.
989 (d10v_store_return_value): Char return values
990 must be shifted over by one byte in R0.
991 (d10v_extract_return_value): Delete extra braces, re-indent.
992
9932002-06-06 Elena Zannoni <[email protected]>
994
995 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
996 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
997 (d10v_integer_to_address): Rewrite.
998 (d10v_frame_init_saved_regs): When reading fp and sp registers use
999 the d10v specific functions which take care of converting to the
1000 correct space.
1001
10022002-06-06 Elena Zannoni <[email protected]>
1003
1004 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
1005 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
1006
10072002-06-02 Andrew Cagney <[email protected]>
1008
1009 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
1010 includes.
1011 * config/tm-linux.h: Ditto.
1012 * config/alpha/tm-alphalinux.h: Ditto.
1013 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
1014 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
1015 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
1016 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
1017 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
1018 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
1019 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
1020 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
1021 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
1022 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
1023 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
1024 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
1025 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
1026 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
1027 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
1028 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
1029 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
1030 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
1031 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
1032 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
1033 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
1034 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
1035 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
1036 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
1037 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
1038 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
1039 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
1040 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
1041 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
1042 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
1043 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
1044 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
1045 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
1046 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
1047 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
1048 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
1049 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
1050
10512002-05-04 Aidan Skinner <[email protected]>
1052
1053 * ada-exp.tab.c: New file
1054 * ada-exp.y: New file
1055 * ada-lang.c: New file
1056 * ada-lang.h: New file
1057 * ada-lex.c: New file
1058 * ada-lex.l: New file
1059 * ada-tasks.c: New file
1060 * ada-typeprint.c: New file
1061 * ada-valprint.c: New file
1062
10632002-06-02 Jason Thorpe <[email protected]>
1064
1065 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
1066 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
1067
10682002-06-02 Jason Thorpe <[email protected]>
1069
1070 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
1071 insetead of ppc-linux-tdep.o.
1072 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
1073 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
1074
10752002-06-02 Andrew Cagney <[email protected]>
1076
1077 2002-05-07 Christian Groessler <[email protected]>
1078 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
1079 bit register contents for little endian hosts.
1080
10812002-06-01 Andrew Cagney <[email protected]>
1082
1083 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
1084 any maintainer.
1085
10862002-06-01 Andrew Cagney <[email protected]>
1087
1088 * gdbarch.h: Regenerate.
1089
10902002-06-01 Andrew Cagney <[email protected]>
1091
1092 * MAINTAINERS: Add everyone to write-after-approval list.
1093
10942002-06-01 Andrew Cagney <[email protected]>
1095
1096 * stack.c (frame_info): Use frame_register_unwind instead of
1097 saved_regs. Mention when the SP is on the stack or in a register.
1098
1099 * frame.h (frame_register_unwind_ftype): Define. Document.
1100 (struct frame_info): Add field register_unwind and
1101 register_unwind_cache.
1102 (frame_register_unwind): Declare.
1103 (generic_unwind_get_saved_register): Declare.
1104
1105 * frame.c (frame_register_unwind): New function.
1106 (generic_unwind_get_saved_register): New function.
1107
1108 * blockframe.c (generic_call_dummy_register_unwind): New function.
1109 (frame_saved_regs_register_unwind): New function.
1110 (set_unwind_by_pc): New function.
1111 (create_new_frame): New function.
1112 (get_prev_frame): New function.
1113
11142002-05-30 Andrew Cagney <[email protected]>
1115
1116 * a29k-share/: Delete directory.
1117 * remote-vx29k.c: Delete file.
1118
11192002-05-30 Jason Thorpe <[email protected]>
1120
1121 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
1122 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
1123
11242002-05-30 Jason Thorpe <[email protected]>
1125
1126 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
1127 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
1128 (sparc64nbsd-nat.o)
1129 (sparcnbsd-nat.o)
1130 (sparcnbsd-tdep.o): New dependency lists.
1131 * NEWS: Note new UltraSPARC NetBSD native configuration.
1132 * configure.host (sparc64-*-netbsd*): New host.
1133 * configure.tgt (sparc-*-netbsdelf*)
1134 (sparc-*-netbsd*): Set gdb_target to nbsd.
1135 (sparc64-*-netbsd*): New target.
1136 * sparc64nbsd-nat.c: New file.
1137 * sparcnbsd-nat.c: New file.
1138 * sparcnbsd-tdep.c: New file.
1139 * sparcnbsd-tdep.h: New file.
1140 * config/sparc/nbsd.mt: New file.
1141 * config/sparc/nbsd64.mh: New file.
1142 * config/sparc/nbsd64.mt: New file.
1143 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
1144 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
1145 (HOST_IPC): Remove.
1146 * config/sparc/nbsdaout.mt: Remove.
1147 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
1148 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
1149 (HOST_IPC): Remove.
1150 * config/sparc/nbsdelf.mt: Remove.
1151 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
1152 sparc-nat.c compatiblity defines.
1153 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
1154 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
1155 * config/sparc/tm-nbsd64.h: New file.
1156 * config/sparc/tm-nbsdaout.h: Remove.
1157 * config/sparc/xm-nbsd.h: Remove.
1158
11592002-05-30 Jason Thorpe <[email protected]>
1160
1161 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
1162 * sparc-tdep.c: Include osabi.h.
1163 (gdbarch_tdep): Add osabi member.
1164 (_initialize_sparc_tdep): Use gdbarch_register.
1165 (sparc_gdbarch_init): Use generic OS ABI framework.
1166 (sparc_dump_tdep): New function.
1167
11682002-05-30 Kevin Buettner <[email protected]>
1169
1170 * corefile.c (do_captured_read_memory_integer): Return non-zero
1171 result.
1172 (safe_read_memory_integer): Copy result of memory read when
1173 status is non-zero. Also, add comments.
1174
11752002-05-20 Jason Thorpe <[email protected]>
1176
1177 * Makefile.in (ppc_tdep_h): Define.
1178 (ppc-linux-nat.o)
1179 (ppc-linux-tdep.o)
1180 (rs6000-tdep.o): Use $(ppc_tdep_h).
1181 (ppc-sysv-tdep.o)
1182 (ppcnbsd-nat.o)
1183 (ppcnbsd-tdep.o): New dependency lists.
1184 * ppc-tdep.h: Use generic OS ABI framework.
1185 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
1186 (ppc_linux_init_abi): New functions.
1187 (ppc_sysv_abi_broken_use_struct_convention)
1188 (ppc_sysv_abi_use_struct_convention)
1189 (ppc_sysv_abi_push_arguments): Move to...
1190 * ppc-sysv-tdep.c: ...here.
1191 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
1192 * rs6000-tdep.c (process_note_abi_tag_sections)
1193 (get_elfosabi): Remove.
1194 (rs6000_gdbarch_init): Use generic OS ABI framework.
1195 (rs6000_dump_tdep): New function.
1196 (_initialize_rs6000_tdep): Use gdbarch_register.
1197 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
1198 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
1199 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
1200 of ppc-linux-tdep.o.
1201 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
1202 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
1203 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
1204 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
1205 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
1206 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
1207
12082002-05-29 Jim Blandy <[email protected]>
1209
1210 * macroscope.c (default_macro_scope): Put `void' in empty argument
1211 list.
1212
12132002-05-29 Andrew Cagney <[email protected]>
1214
1215 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
1216 * arch-utils.c: Include "sim-regno.h".
1217 * gdbarch.sh: Don't include "sim-regno.h".
1218 * gdbarch.h, gdbarch.c: Regenerate.
1219 * sim-regno.h (legacy_register_sim_regno): Move declaration from
1220 here.
1221 * arch-utils.h (legacy_register_sim_regno): To here.
1222 * remote-sim.c (legacy_register_sim_regno): Move function from
1223 here.
1224 * arch-utils.c (legacy_register_sim_regno): To here.
1225
12262002-05-28 Andrew Cagney <[email protected]>
1227
1228 * sim-regno.h: New file.
1229 * Makefile.in (sim_regno_h): Define.
1230 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
1231 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
1232 (legacy_register_sim_regno): New function.
1233 (one2one_register_sim_regno): New function.
1234 (gdbsim_fetch_register): Rewrite.
1235 (gdbsim_store_register): Only store a register when
1236 REGISTER_SIM_REGNO is valid.
1237 * d10v-tdep.c: Include "sim-regno.h".
1238 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
1239 (d10v_ts3_register_sim_regno): Ditto.
1240 * gdbarch.sh: Include "sim-regno.h".
1241 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
1242 * gdbarch.h, gdbarch.c: Regenerate.
1243 * arch-utils.h (default_register_sim_regno): Delete declaration.
1244 * arch-utils.c (default_register_sim_regno): Delete function.
1245
12462002-05-28 Jason Thorpe <[email protected]>
1247
1248 * ppcnbsd-nat.c: Rewrite.
1249 * ppcnbsd-tdep.c: New file.
1250 * ppcnbsd-tdep.h: New file.
1251 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
1252 solib.o, and solib-svr4.o.
1253 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
1254 nbsd-tdep.o, and corelow.o.
1255
12562002-05-28 Andrew Cagney <[email protected]>
1257
1258 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
1259 `tr' and `sed'. Mention that `broken' targets are not expected to
1260 build.
1261
12622002-05-27 Michal Ludvig <[email protected]>
1263
1264 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
1265 Let PC point right after the prologue before looking up symbols.
1266
12672002-05-27 Martin M. Hunt <[email protected]>
1268
1269 * i386-tdep.c (i386_register_virtual_type): Return
1270 builtin_type_vec128i for SSE registers.
1271
1272 * gdbtypes.h (builtin_type_vec128i): Declare.
1273
1274 * gdbtypes.c (build_builtin_type_vec128i): New function.
1275 (builtin_type_v2_double, builtin_type_v4_int64): New types.
1276 (builtin_type_vec128i): New type for SSE2 128-bit registers.
1277 (build_gdbtypes): Initialize new builtin vector types.
1278 (_initialize_gdbtypes): Register new vector types with gdbarch.
1279
12802002-05-26 Jason Thorpe <[email protected]>
1281
1282 * MAINTAINERS: ns32k is not longer an obsolete candidate,
1283 since it has been multi-arch'd.
1284 * NEWS: Note that ns32k-*-* is now partial multi-arch.
1285 Move Alpha and VAX multi-arch news entries to same section
1286 as other multi-arch news.
1287
12882002-05-26 Jason Thorpe <[email protected]>
1289
1290 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
1291 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
1292 static. Rename some register numbers to put them in ns32k-tdep
1293 private namespace.
1294 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
1295 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
1296 functions.
1297 (_initialize_ns32k_tdep): Use gdbarch_register.
1298 * ns32k-tdep.h: New file.
1299 * ns32knbsd-tdep.c: New file.
1300 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
1301 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
1302 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
1303 REGISTER_BYTES, REGISTER_BYTE): Remove.
1304 * config/ns32k/tm-ns32k.h: New file.
1305 * config/ns32k/tm-umax.h: Remove.
1306
13072002-05-26 Jason Thorpe <[email protected]>
1308
1309 * ns32k-tdep.c (ns32k_saved_pc_after_call,
1310 ns32k_store_struct_return, ns32k_extract_return_value,
1311 ns32k_store_return_value, ns32k_extract_struct_value_address): New
1312 functions.
1313 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
1314 ns32k_saved_pc_after_call.
1315 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
1316 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
1317 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
1318 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
1319 ns32k_extract_struct_value_address.
1320
13212002-05-26 Jason Thorpe <[email protected]>
1322
1323 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
1324 ns32k_fix_call_dummy): New.
1325 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
1326 ns32k_call_dummy_words.
1327 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
1328 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
1329 CALL_DUMMY_NARGS): Remove.
1330 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
1331
13322002-05-26 Jason Thorpe <[email protected]>
1333
1334 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
1335 ns32k_frame_saved_pc, ns32k_frame_args_address,
1336 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
1337 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
1338 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
1339 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
1340 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
1341 (BREAKPOINT): Remove..
1342 (FRAME_CHAIN): Define as ns32k_frame_chain.
1343 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
1344 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
1345 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
1346 (FRAME_FIND_SAVED_REGS): Remove.
1347 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
1348 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
1349 (POP_FRAME): Define as ns32k_pop_frame.
1350
13512002-05-26 Jason Thorpe <[email protected]>
1352
1353 * ns32k-tdep.c (ns32k_register_byte_32082,
1354 ns32k_register_byte_32382, ns32k_register_raw_size,
1355 ns32k_register_virtual_size, ns32k_register_virtual_type): New
1356 functions.
1357 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
1358 ns32k_register_byte_32382.
1359 * config/ns32k/tm-umax.h: Update copyright years.
1360 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
1361 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
1362 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
1363 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
1364 (ns32k_get_enter_addr): Fix prototype.
1365
13662002-05-26 Jason Thorpe <[email protected]>
1367
1368 * ns32k-tdep.c: Update copyright years.
1369 (ns32k_register_name_32082): New function.
1370 (ns32k_register_name_32382): Ditto.
1371 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
1372 (REGISTER_NAME): Define as ns32k_register_name_32382.
1373 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
1374 (REGISTER_NAME): Define as ns32k_register_name_32082.
1375
13762002-05-24 Jim Blandy <[email protected]>
1377
1378 * dwarf2read.c (free_line_header): Use xfree, not free.
1379
13802002-05-24 Jason Thorpe <[email protected]>
1381
1382 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
1383 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
1384
13852002-05-23 Andrew Cagney <[email protected]>
1386
1387 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
1388
13892002-05-23 Andrew Cagney <[email protected]>
1390
1391 From Ross Alexander at NEC Europe:
1392 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
1393
13942002-05-23 Michael Snyder <[email protected]>
1395
1396 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
1397 for input, rather than parse_and_eval_address.
1398
13992002-05-23 Andrew Cagney <[email protected]>
1400
1401 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
1402 * Makefile.in (sim_d10v_h): Update definition.
1403
14042002-05-24 Andrew Cagney <[email protected]>
1405
1406 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
1407 change `2002-05-22 Michael Snyder' below.
1408 (d10v_push_arguments): Ditto.
1409 (d10v_extract_return_value): Ditto.
1410
14112002-05-23 Jim Blandy <[email protected]>
1412
1413 * macrotab.c (check_for_redefinition): Don't complain if the new
1414 definition is the same as the previous one. Take more arguments
1415 to allow the comparison.
1416 (macro_define_object, macro_define_function): Pass more arguments
1417 to check_for_redefinition.
1418
14192002-05-22 Michael Snyder <[email protected]>
1420
1421 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
1422 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
1423 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
1424 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
1425 Don't bail if return_pc is PC_IN_CALL_DUMMY.
1426 Add a temp variable to save a call (and a memory read).
1427 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
1428 if possible (so that PC_IN_CALL_DUMMY will work).
1429
14302002-05-22 Corinna Vinschen <[email protected]>
1431
1432 * MAINTAINERS: Remove status `OBSOLETE' from v850.
1433
14342002-05-22 Michal Ludvig <[email protected]>
1435
1436 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
1437 fde->cie_ptr.
1438 (dwarf2_build_frame_info): Corrected handling of eh_frame.
1439 (dwarf2_build_frame_info): Add offset to fde->initial_location
1440 so that frames of shared libraries are mapped correctly.
1441 (execute_stack_op): Change type of 'result' from ULONGEST to
1442 CORE_ADDR.
1443
14442002-05-22 Jason Thorpe <[email protected]>
1445
1446 * config/alpha/tm-nbsd.h: Include solib.h.
1447
14482002-05-22 Jason Thorpe <[email protected]>
1449
1450 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
1451 assumptions about the host's byte order.
1452
14532002-05-22 Jason Thorpe <[email protected]>
1454
1455 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
1456 to dependency list.
1457 * alphanbsd-tdep.c: Include solib-svr4.h.
1458 * shnbsd-tdep.c: Ditto.
1459
14602002-05-22 Jason Thorpe <[email protected]>
1461
1462 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
1463 nbsd-tdep.h to dependency list.
1464 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
1465 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
1466 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
1467 nbsdaout.mh and nbsdelf.mh consistently.
1468 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
1469 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
1470 nbsdaout.mt and nbsdelf.mh consistently.
1471 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
1472 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
1473 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
1474 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
1475 a.out shared library stuff from here...
1476 * config/nm-nbsdaout.h: ...to here.
1477 * config/tm-nbsd.h: Remove.
1478 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
1479 * config/arm/nbsd.mh: Remove.
1480 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
1481 nbsd-tdep.o.
1482 * config/arm/nbsdaout.mh: New file.
1483 * config/arm/nbsdelf.mh: New file.
1484 * config/arm/nm-nbsdaout.h: New file.
1485 * config/i386/nbsd.mh: Remove.
1486 * config/i386/nbsd.mt: Remove.
1487 * config/i386/nbsdaout.mh: New file.
1488 * config/i386/nbsdaout.mt: New file.
1489 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
1490 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
1491 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
1492 i386_register_u_addr): Remove.
1493 * config/i386/nm-nbsdaout.h: New file.
1494 * config/i386/nm-nbsdelf.h: Remove.
1495 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
1496 (USE_STRUCT_CONVENTION): Remove.
1497 * config/i386/tm-nbsdaout.h: New file.
1498 * config/i386/tm-nbsdelf.h: Remove.
1499 * config/m68k/nbsd.mh: Remove.
1500 * config/m68k/nbsd.mt: Remove.
1501 * config/m68k/nbsdaout.mh: New file.
1502 * config/m68k/nbsdaout.mt: New file.
1503 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
1504 * config/m68k/nm-nbsdaout.h: New file.
1505 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
1506 (IN_SOLIB_CALL_TRAMPOLINE): Define.
1507 * config/ns32k/nbsd.mh: Remove.
1508 * config/ns32k/nbsd.mt: Remove.
1509 * config/ns32k/nbsdaout.mh: New file.
1510 * config/ns32k/nbsdaout.mt: New file.
1511 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
1512 * config/ns32k/nm-nbsdaout.h: New file.
1513 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
1514 (IN_SOLIB_CALL_TRAMPOLINE): Define.
1515 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
1516 (SVR4_SHARED_LIBS): Remove.
1517 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
1518 * config/sparc/nbsd.mh: Remove.
1519 * config/sparc/nbsd.mt: Remove.
1520 * config/sparc/nbsdaout.mh: New file.
1521 * config/sparc/nbsdaout.mt: New file.
1522 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
1523 * config/sparc/nbsdelf.mt: New file.
1524 * config/sparc/nm-nbsdaout.h: New file.
1525 * config/sparc/nm-nbsdelf.h: Remove.
1526 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
1527 * config/sparc/tm-nbsdaout.h: New file.
1528
15292002-05-21 Jason Thorpe <[email protected]>
1530
1531 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
1532 mipsnbsd-tdep.c
1533 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
1534
15352002-05-21 Jason Thorpe <[email protected]>
1536
1537 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
1538 shnbsd-nat.c.
1539 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
1540
15412002-05-21 Jason Thorpe <[email protected]>
1542
1543 * NEWS: Note new MIPS NetBSD native configuration.
1544 * configure.host (mips*-*-netbsd*): New host.
1545 * configure.tgt (mips*-*-netbsd*): New target.
1546 * mipsnbsd-nat.c: New file.
1547 * mipsnbsd-tdep.c: New file.
1548 * mipsnbsd-tdep.h: New file.
1549 * config/mips/nbsd.mh: New file.
1550 * config/mips/nbsd.mt: New file.
1551 * config/mips/nm-nbsd.h: New file.
1552 * config/mips/tm-nbsd.h: New file.
1553
15542002-05-21 Jason Thorpe <[email protected]>
1555
1556 * Makefile.in (SFILES): Add osabi.c.
1557 (COMMON_OBS): Add osabi.o.
1558 (osabi.o): New dependency list.
1559 * osabi.c: New file.
1560 * osabi.h: New file.
1561 * doc/gdbint.texinfo: Document new generic OS ABI framework.
1562
1563 * Makefile.in (alpha_tdep_h): Define and use instead of
1564 alpha-tdep.h.
1565 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
1566 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
1567 Remove.
1568 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
1569 * alpha-tdep.h: Include osabi.h.
1570 (alpha_abi): Remove.
1571 (gdbarch_tdep): Use generic OS ABI framework.
1572 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
1573 gdbarch_register_osabi.
1574 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
1575 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
1576 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
1577
1578 * Makefile.in (sh_tdep_h): Add osabi.h.
1579 * sh-tdep.h (sh_osabi): Remove.
1580 (gdbarch_tdep): Use generic OS ABI framework.
1581 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
1582 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
1583 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
1584 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
1585
1586 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
1587 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
1588 gdbarch_register_osabi.
1589 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
1590 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
1591 (get_elfosabi): Rename to...
1592 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
1593 ABI framework support routines.
1594 (arm_gdbarch_init): Use generic OS ABI framework.
1595 (arm_dump_tdep): Likewise.
1596 (_initialize_arm_tdep): Likewise.
1597 * arm-tdep.h: Include osabi.h.
1598 (arm_abi): Remove.
1599 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
1600 osabi member.
1601 (arm_gdbarch_register_os_abi): Remove prototype.
1602 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
1603 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
1604
1605 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
1606 * mips-tdep.c: Include osabi.h.
1607 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
1608 OS ABI framework.
1609
16102002-05-20 Kazu Hirata <[email protected]>
1611
1612 * h8300-tdep.c: Fix formatting.
1613
16142002-05-20 Elena Zannoni <[email protected]>
1615
1616 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
1617 printing vector registers.
1618
16192002-05-19 Andrew Cagney <[email protected]>
1620
1621 From Fernando Nasser:
1622 * remote.c (remote_async_open_1): Re-throw the exception when the
1623 connection fails.
1624 (remote_cisco_open): Ditto.
1625 (remote_open_1): Ditto.
1626
16272002-05-19 Andrew Cagney <[email protected]>
1628
1629 * remote.c (remote_start_remote_dummy): Add uiout parameter.
1630 (remote_start_remote): Add uiout parameter. Pass through to
1631 remote_start_remote_dummy.
1632 (remote_open_1): Use catch_exception instead of catch_errors.
1633 (remote_async_open_1): Ditto.
1634 (remote_cisco_open): Ditto.
1635
16362002-05-19 Andrew Cagney <[email protected]>
1637
1638 * remote.c (remote_start_remote): Replace PTR with void pointer.
1639 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
1640 static.
1641
16422002-05-18 Andrew Cagney <[email protected]>
1643
1644 * gdb_indent.sh: Allow the script to be run in the sim directory.
1645
16462002-05-18 Mark Kettenis <[email protected]>
1647
1648 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
1649 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
1650
1651 * corelow.c (core_open): Only call set_gdbarch_from_file if
1652 exec_bfd is NULL.
1653
16542002-05-17 Andrey Volkov <[email protected]>
1655
1656 * h8300-tdep.c: Add support of EXR register
1657 * config/h8300/tm-h8300.h: Ditto.
1658
16592002-05-17 Andrey Volkov <[email protected]>
1660
1661 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
1662
16632002-05-17 Andrey Volkov <[email protected]>
1664
1665 * h8300-tdep.c: Change literal regnums to REGNO.
1666
16672002-05-17 Jim Blandy <[email protected]>
1668
1669 * NEWS: Note addition of macro support.
1670
1671 Expand preprocessor macros in C expressions.
1672 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
1673 (scan_macro_expansion, scanning_macro_expansion,
1674 finished_macro_expansion): New function declarations.
1675 (expression_macro_lookup_func, expression_macro_lookup_baton): New
1676 variable declarations.
1677 * parser-defs.h (expression_context_pc): New declaration.
1678 * parse.c (expression_context_pc): New variable.
1679 (parse_exp_1): Set expression_context_pc, as well as
1680 expression_context_block.
1681 * c-exp.y (yylex): If we're not already reading the result of a
1682 macro expansion, try to macro-expand the next token. When we're
1683 done scanning a macro expansion, switch back to the mainline text.
1684 Commas and `if's in a macro's expansion don't terminate the input.
1685 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
1686 (macro_original_text, macro_expanded_text,
1687 expression_macro_lookup_func, expression_macro_lookup_baton): New
1688 variables.
1689 (scan_macro_expansion, scanning_macro_expansion,
1690 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
1691 c_preprocess_and_parse): New functions.
1692 (c_language_defn, cplus_language_defn, asm_language_defn): Call
1693 c_preprocess_and_parse, instead of c_parse.
1694 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
1695 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
1696
1697Fri May 17 14:26:19 2002 J"orn Rennecke <[email protected]>
1698
1699 * sh-tdep.c (gdb_print_insn_sh64): Delete.
1700 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
1701 (sh_gdbarch_init): Always use gdb_print_insn_sh.
1702
17032002-05-17 Corinna Vinschen <[email protected]>
1704
1705 * NEWS: Add section for multi-arched targets. Add v850 to that section.
1706
17072002-05-17 Jason Thorpe <[email protected]>
1708
1709 * Makefile.in (sh_tdep_h): Define and use.
1710 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
1711 register enum): Move to...
1712 * * sh-tdep.h: ...here.
1713 * sh-tdep.c: Include sh-tdep.h.
1714 * sh3-rom.c: Likewise.
1715 * shnbsd-tdep.c: Likewise.
1716
17172002-05-16 Michael Snyder <[email protected]>
1718
1719 * arm-tdep.c: Spelling fix in comment.
1720
17212002-05-16 Jim Blandy <[email protected]>
1722
1723 Add commands for manually expanding macros and showing their
1724 definitions.
1725 * macrocmd.c, macroscope.c, macroscope.h: New files.
1726 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
1727 (macroscope_h): New variable.
1728 (HFILES_NO_SRCDIR): Add macroscope.h.
1729 (COMMON_OBS): Add macrocmd.o, macroscope.o.
1730 (macroscope.o, macrocmd.o): New rules.
1731
1732 Teach the Dwarf 2 reader to read macro information.
1733 * dwarf2read.c: #include "macrotab.h".
1734 (dwarf_macinfo_buffer): New variable.
1735 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
1736 dwarf_macinfo_size.
1737 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
1738 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
1739 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
1740 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
1741 dwarf2_macro_spaces_in_definition): New complaints.
1742 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
1743 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
1744 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
1745 the partial symbol table.
1746 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
1747 from what's recorded in the partial symbol table.
1748 (read_file_scope): If the compilation unit has a
1749 `DW_AT_macro_info' attribute, read its macro information.
1750 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
1751
17522002-05-16 Daniel Jacobowitz <[email protected]>
1753
1754 Fix PR gdb/546
1755 * ser-tcp.c: Don't include <netinet/udp.h>.
1756
17572002-05-16 Stephane Carrez <[email protected]>
1758
1759 * MAINTAINERS: Update my email address.
1760
17612002-05-16 Richard Earnshaw <[email protected]>
1762
1763 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
1764 include file of the same name.
1765
17662002-05-16 Corinna Vinschen <[email protected]>
1767
1768 * configure.tgt: Mark v850 as multi-arched.
1769 * config/v850/tm-v850.h: Remove file.
1770 * config/v850/v850.mt: Eliminate TM_FILE.
1771
17722002-05-16 Corinna Vinschen <[email protected]>
1773
1774 * v850-tdep.c: Full multi-arch.
1775 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
1776 Define GDB_MULTI_ARCH to 2.
1777
17782002-05-16 Pierre Muller <[email protected]>
1779
1780 * p-exp.y (current_type): New static variable.
1781 Carries the type of the expression at the position that is parsed.
1782 (push_current_type, pop_current_type): Two new functions. Used
1783 to store/restore current_type in expression on specific tokens.
1784 (search_field): New static variable. Set to one after parsing a point
1785 as at that point only a FIELDNAME token should be searched.
1786 (FIELDNAME): New token. After a point only a token belonging to
1787 current_type type definition is allowed.
1788 (all over token rules): reset and change current_type according
1789 to rules.
1790 (exp '[' rule): insert implicit array index field if
1791 exp is a pascal string type.
1792
17932002-05-16 Corinna Vinschen <[email protected]>
1794
1795 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
1796 frame info. Use frame_info's saved_regs instead of matching member
1797 in extra_frame_info throughout.
1798 (v850_frame_init_saved_regs): New function.
1799 (v850_init_extra_frame_info): Move most functionality into
1800 v850_frame_init_saved_regs().
1801 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
1802 (v850_frame_find_saved_regs): Remove declaration.
1803 (FRAME_FIND_SAVED_REGS): Remove definition.
1804 (v850_frame_init_saved_regs): Add declaration.
1805 (FRAME_INIT_SAVED_REGS): Add definition.
1806
18072002-05-16 Corinna Vinschen <[email protected]>
1808
1809 * v850-tdep.c: Begin multi-arch'ing v850.
1810 (v850_target_architecture_hook): Remove function.
1811 (v850_gdbarch_init): New function. Add code previously in
1812 v850_target_architecture_hook().
1813 (_initialize_v850_tdep): Don't set target_architecture_hook.
1814 Call register_gdbarch_init() instead.
1815
18162002-05-16 Daniel Jacobowitz <[email protected]>
1817
1818 * gdbtypes.h (struct cplus_struct_type): Remove args field.
1819 * hpread.c (hpread_read_struct_type): Remove assignments to args.
1820 (fixup_class_method_type): Likewise.
1821
18222002-05-15 Daniel Jacobowitz <[email protected]>
1823
1824 From Martin Pool <[email protected]>:
1825 * gdbserver/server.c (gdbserver_usage): New function.
1826 (main): Call it.
1827
18282002-05-15 Jim Blandy <[email protected]>
1829
1830 Add macro structures to GDB's symbol tables. Nobody puts anything
1831 in them yet.
1832 * symtab.h (struct symtab): New member: `macro_table'.
1833 * buildsym.h (pending_macros): New global variable.
1834 * buildsym.c: #include "macrotab.h".
1835 (buildsym_init): Initialize `pending_macros'.
1836 (end_symtab): If we found macro information while reading a CU's
1837 debugging info, do build a symtab structure for it. Make the
1838 symtab point to the macro information, and clear the
1839 `pending_macros' pointer which held it while we were reading the
1840 debug info.
1841 (really_free_pendings): Free any pending macro table.
1842 * objfiles.h (struct objfile): New member: `macro_cache'.
1843 * objfiles.c (allocate_objfile): Set allocate and free functions
1844 for the macro cache's objstack.
1845 (free_objfile): Empty the macro cache's obstack.
1846 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
1847 set new allocate and free functions for it.
1848 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
1849 free functions for the macro cache's objstack. (Why is this
1850 function building its own objfile?)
1851 * symmisc.c (print_objfile_statistics): Print statistics on the
1852 macro bcache.
1853 * Makefile.in: Note that buildsym.o depends on macrotab.h.
1854
18552002-05-15 Richard Earnshaw <[email protected]>
1856
1857 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
1858 (REGISTER_U_ADDR): Delete definition.
1859 (arm_register_u_addr): Delete declaration.
1860
18612002-05-15 Richard Earnshaw <[email protected]>
1862
1863 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
1864 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
1865
18662002-05-14 Daniel Jacobowitz <[email protected]>
1867
1868 * gdbserver/mem-break.c (reinsert_breakpoint_by_bp): Correct typo
1869 stop_at -> stop_pc.
1870
18712002-05-14 Andrew Cagney <[email protected]>
1872
1873 * regcache.c (register_valid): Revise comments refering to "Not
1874 available" and "unavailable".
1875 * frame.c (frame_register_read): Ditto.
1876 * findvar.c (value_of_register): Ditto.
1877
18782002-05-15 Andrew Cagney <[email protected]>
1879
1880 * Makefile.in (remote_sim_h): Replace remote-sim_h.
1881 (remote-sim.o): Update dependencies.
1882 (d10v-tdep.o): Specify dependencies.
1883 (sim_d10v_h): Define.
1884
18852002-05-14 Jim Blandy <[email protected]>
1886
1887 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
1888 * macrotab.c (macro_lookup_inclusion, find_definition,
1889 new_macro_table): Same.
1890
1891 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
1892 not `! strcmp ()'. This is a dubious improvement.
1893 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
1894
1895 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
1896 although it's not necessary, to avoid a warning.
1897
18982002-05-14 Daniel Jacobowitz <[email protected]>
1899
1900 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
1901 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
1902 TYPE_INSTANCE_FLAGS.
1903 (struct main_type): New.
1904 (struct type): Move most members to struct main_type. Change
1905 cv_type and as_type to new type_chain member. Add instance_flags.
1906 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
1907 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
1908 (finish_cv_type): Remove prototype.
1909 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
1910 Set TYPE_CHAIN.
1911 (alloc_type_instance): New function.
1912 (smash_type): New function.
1913 (make_pointer_type, make_reference_type, make_function_type)
1914 (smash_to_member_type, smash_to_method_type): Call smash_type.
1915 (make_qualified_type): New function.
1916 (make_type_with_address_space): Call make_qualified_type.
1917 (make_cv_type): Likewise.
1918 (finish_cv_type): Remove unnecessary function.
1919 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
1920 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
1921 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
1922 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
1923 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
1924 * hpread.c (hpread_read_struct_type): Likewise.
1925 * stabsread.c (read_struct_type): Likewise.
1926
19272002-05-14 Elena Zannoni <[email protected]>
1928
1929 * configure.tgt: Add a catch all sh* target, for cases like
1930 sh[2,3,4]-elf and sh-hms.
1931
19322002-05-14 Keith Seitz <[email protected]>
1933
1934 * event-loop.c (create_file_handler): Don't do anything but
1935 update data when we are given a fd which we are already
1936 monitoring.
1937
19382002-05-14 Michal Ludvig <[email protected]>
1939
1940 * dwarf2cfi.c (context_cpy): Copy registers correctly.
1941 (update_context): Use __func__ in warnings.
1942
19432002-05-14 Daniel Jacobowitz <[email protected]>
1944
1945 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
1946 and tcp_close to net_open and net_close.
1947 (net_open): Accept "udp:" and "tcp:" specifications. Connect
1948 using UDP if requested. Don't try to disable Nagle on UDP
1949 sockets.
1950 * remote.c (remote_serial_open): New function. Warn about UDP.
1951 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
1952
19532002-05-13 Elena Zannoni <[email protected]>
1954
1955 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
1956
19572002-05-13 Elena Zannoni <[email protected]>
1958
1959 * configure.tgt: Remove sh-hms target.
1960 * MAINTAINERS: Don't list sh-hms as a separate target.
1961
19622002-05-13 Jim Blandy <[email protected]>
1963
1964 Add first preprocessor macro-expansion files.
1965 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
1966 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
1967 (splay_tree_h, macroexp_h, macrotab_h): New variable.
1968 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
1969 (COMMON_OBS): Add macrotab.o, macroexp.o.
1970 (macroexp.o, macrotab.o): New rules.
1971
19722002-05-13 Andrew Cagney <[email protected]>
1973
1974 * config/m88k/tm-m88k.h: Update copyright.
1975 (m88k_target_write_pc): Declare
1976 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
1977 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
1978 (SHIFT_INST_REGS): Update definition.
1979 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
1980 using old definition of TARGET_WRITE_PC.
1981 * regcache.c (generic_target_write_pc): Delete code handling
1982 NNPC_REGNUM.
1983 * gdbarch.sh (NNPC_REGNUM): Delete.
1984 * gdbarch.h, gdbarch.c: Regenerate.
1985
19862002-05-13 Richard Earnshaw <[email protected]>
1987
1988 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
1989 builtin reg number.
1990
19912002-05-13 Daniel Jacobowitz <[email protected]>
1992
1993 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
1994 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
1995 (gen_address_of, gen_struct_ref, gen_repeat): Use type
1996 access macros.
1997 * c-typeprint.c (cp_type_print_method_args): Likewise.
1998 (c_type_print_args): Likewise.
1999 * d10v-tdep.c (d10v_push_arguments): Likewise.
2000 (d10v_extract_return_value): Likewise.
2001 * expprint.c (print_subexp): Likewise.
2002 * gdbtypes.c (lookup_primitive_typename): Likewise.
2003 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
2004 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
2005 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
2006 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
2007 (TYPE_VECTOR): Likewise.
2008 * hpread.c (hpread_read_struct_type)
2009 (fix_static_member_physnames, fixup_class_method_type)
2010 (hpread_type_lookup): Likewise.
2011 * mdebugread.c (parse_symbol, parse_type): Likewise.
2012 * p-lang.c (is_pascal_string_type): Likewise.
2013 * valops.c (hand_function_call): Likewise.
2014 * x86-64-tdep.c (classify_argument): Likewise.
2015
2016 * hpread.c (hpread_read_function_type)
2017 (hpread_read_doc_function_type): Call replace_type.
2018 * dstread.c (create_new_type): Delete.
2019 (decode_dst_structure, process_dst_function): Call alloc_type.
2020 Use type access macros.
2021
20222002-05-12 Mark Kettenis <[email protected]>
2023
2024 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
2025 the're not supported by the current architecture.
2026 (i387_fill_fxsave): Likewise.
2027
20282002-05-12 Fred Fish <[email protected]>
2029
2030 * symfile.c (default_symfile_offsets): Arrange for uninitialized
2031 sect_index_xxx members to index the first slot in section_offsets
2032 if all of the section_offsets are zero.
2033
20342002-05-12 Mark Kettenis <[email protected]>
2035
2036 * configure.tgt (sparc-*openbsd): Remove entry accidentially
2037 checked in with last change.
2038
20392002-05-12 Mark Kettenis <[email protected]>
2040
2041 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
2042 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
2043 config.sub.
2044
20452002-05-12 Daniel Jacobowitz <[email protected]>
2046
2047 * Makefile.in: Update dependencies.
2048
20492002-05-11 Andrew Cagney <[email protected]>
2050
2051 * language.c (local_hex_string_custom): Simplify. Do not depend
2052 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
2053
2054 * memattr.c (mem_info_command): Replace calls to
2055 longest_local_hex_string and longest_local_hex_string_custom.
2056 * buildsym.c (make_blockvector): Ditto.
2057 * solib.c (info_sharedlibrary_command): Ditto.
2058 * tracepoint.c (tracepoints_info): Ditto.
2059 * symtab.c (print_msymbol_info): Ditto.
2060
2061 * language.c (local_hex_string): Delete.
2062 (local_hex_string_custom): Delete.
2063 (longest_local_hex_string): Rename to local_hex_string.
2064 (longest_local_hex_string_custom): Rename to
2065 local_hex_string_custom.
2066 * language.h (local_hex_string): Change parameter type to LONGEST.
2067 (local_hex_string_custom): Ditto.
2068 (longest_local_hex_string): Delete declaration.
2069 (longest_local_hex_string_custom): Ditto.
2070
2071 * solib.c: Update copyright.
2072 * memattr.c: Update copyright.
2073
20742002-05-11 Andrew Cagney <[email protected]>
2075
2076 * arch-utils.h (legacy_register_to_value): Declare.
2077 (legacy_value_to_register): Declare.
2078 (legacy_convert_register_p): Declare.
2079 * arch-utils.c (legacy_register_to_value): New function.
2080 (legacy_value_to_register): New function.
2081 (legacy_convert_register_p): New function.
2082
2083 * gdbarch.sh (REGISTER_TO_VALUE): Define.
2084 (VALUE_TO_REGISTER): Define.
2085 (CONVERT_REGISTER_P): Define.
2086 * gdbarch.h, gdbarch.c: Regenerate.
2087
2088 * valops.c (value_assign): Use CONVERT_REGISTER_P and
2089 VALUE_TO_REGISTER.
2090 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
2091 CONVERT_REGISTER_P.
2092
20932005-05-11 Daniel Jacobowitz <[email protected]>
2094 Peter Schauer <[email protected]>
2095
2096 * Makefile.in: Update dependencies for valops.c.
2097 * valops.c: Include "gdb_assert.h".
2098 (typecmp): Skip THIS parameter to methods.
2099 (find_method_list): Remove static_memfuncp argument,
2100 update callers. Check for stub methods.
2101 (find_value_oload_method_list): Don't set *static_memfuncp.
2102 (find_overload_match): Don't check for stub methods. Assert
2103 that methods are not stubbed. Handle static methods.
2104 (value_find_oload_method_list): Remove static_memfuncp argument.
2105 * gdbtypes.c (check_stub_method): Do not add THIS pointer
2106 to the argument list for static stub methods.
2107 * value.h (value_find_oload_method_list): Update prototype.
2108
21092002-05-11 Andrew Cagney <[email protected]>
2110
2111 * arch-utils.h (generic_register_size): Declare.
2112 (generic_register_raw_size, generic_register_virtual_size): Delete
2113 declarations.
2114 * arch-utils.c (generic_register_raw_size): Delete.
2115 (generic_register_size): New function.
2116 (generic_register_virtual_size): Delete.
2117
2118 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
2119 default generic_register_size.
2120 * gdbarch.h, gdbarch.c: Re-generate.
2121
2122 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
2123 register_virtual_size.
2124 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
2125 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2126
21272002-05-11 Andrew Cagney <[email protected]>
2128
2129 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
2130 * gdbarch.h, gdbarch.c: Regenerate.
2131 * gnu-v3-abi.c: Update copyright.
2132 (vtable_address_point_offset): Update.
2133 (gnuv3_rtti_type): Update.
2134 (gnuv3_baseclass_offset): Update.
2135 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
2136 (init_fetch_link_map_offsets): Update.
2137 * remote.c (get_remote_state): Update.
2138
21392002-05-11 Daniel Jacobowitz <[email protected]>
2140
2141 * TODO: Remove value_headof/value_from_vtable_info comment.
2142 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
2143 * values.c (value_headof, value_from_vtable_info): Delete.
2144 * value.h (value_from_vtable_info): Delete prototype.
2145
21462002-05-11 Andrew Cagney <[email protected]>
2147
2148 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
2149 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
2150 $(gdb_regex_h).
2151 (gdb_assert_h): Define.
2152 (gdb_wait_h): Define.
2153 (gdb_regex_h): Define.
2154
21552002-05-11 Daniel Jacobowitz <[email protected]>
2156
2157 From Peter Schauer <[email protected]>:
2158 * linespec.c (find_methods): Handle GCC 3.x template constructors.
2159
21602002-05-11 Jason Thorpe <[email protected]>
2161
2162 * nbsd-tdep.c: Fix comment.
2163
21642002-05-11 Jason Thorpe <[email protected]>
2165
2166 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
2167 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
2168 (nbsd-tdep.o): New dependency list.
2169 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
2170 nbsd-tdep.h.
2171 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
2172 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
2173 * nbsd-tdep.c: New file.
2174 * nbsd-tdep.h: New file.
2175 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
2176 nbsd-tdep.h.
2177 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
2178 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
2179 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
2180 * config/sh/nbsd.mt (TDEPFILES): Ditto.
2181
21822002-05-11 Jason Thorpe <[email protected]>
2183
2184 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
2185 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
2186 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
2187 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
2188 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
2189 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
2190
21912002-05-11 Jason Thorpe <[email protected]>
2192
2193 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
2194 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
2195 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
2196 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
2197 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
2198 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
2199 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
2200
22012002-05-11 Jason Thorpe <[email protected]>
2202
2203 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
2204 fetch_elfcore_registers to...
2205 * i386nbsd-tdep.c: ...here.
2206 (i386nbsd_use_struct_convention): Rename to...
2207 (i386nbsd_aout_use_struct_convention): ...this.
2208 (i386nbsd_supply_reg): New function.
2209 (i386nbsd_fill_reg): New function.
2210 (fetch_core_registers): Use i386nbsd_supply_reg.
2211 (fetch_elfcore_registers): Likewise.
2212 (_initialize_i386nbsd_tdep): New function.
2213 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
2214 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
2215 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
2216 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
2217 (i386nbsd_aout_use_struct_convention): ...this.
2218
22192002-05-11 Jason Thorpe <[email protected]>
2220
2221 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
2222 (store_inferior_registers): Use shnbsd_fill_reg.
2223 * shnbsd-tdep.c (sh_nbsd_supply_registers,
2224 sh_nbsd_supply_register): Collapse into...
2225 (shnbsd_supply_reg): ...this.
2226 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
2227 (shnbsd_fill_reg): ...this.
2228 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
2229 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
2230 (fetch_core_registers): Use shnbsd_supply_reg.
2231 (fetch_elfcore_registers): Use shnbsd_supply_reg.
2232 (sh_nbsd_core_fns): Rename to...
2233 (shnbsd_core_fns): ...this.
2234 (sh_nbsd_elfcore_fns): Rename to...
2235 (shnbsd_elfcore_fns): ...this.
2236 (sh_nbsd_init_abi): Rename to...
2237 (shnbsd_init_abi): ...this.
2238 (_initialize_sh_nbsd_tdep): Rename to...
2239 (_initialize_shnbsd_tdep): ...this.
2240 * shnbsd-tdep.h (sh_nbsd_supply_registers,
2241 sh_nbsd_supply_register, sh_nbsd_fill_registers,
2242 sh_nbsd_fill_register): Remove prototypes.
2243 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
2244
22452002-05-11 Jason Thorpe <[email protected]>
2246
2247 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
2248 (i387-nat.o): Delete dependency list.
2249 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
2250 (x86-64-linux-nat.o): Likewise.
2251 * i387-nat.c: Delete file, moving contents to...
2252 * i387-tdep.c: ...here.
2253 * i387-nat.h: Rename...
2254 * i387-tdep.h: ...to this.
2255 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
2256 * i386-linux-nat.c: Likewise.
2257 * i386bsd-nat.c: Likewise.
2258 * i386gnu-nat.c: Likewise.
2259 * i386nbsd-nat.c: Likewise.
2260 * i386v4-nat.c: Likewise.
2261 * x86-64-linux-nat.c: Likewise.
2262 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
2263 * config/i386/go32.mh (NATDEPFILES): Likewise.
2264 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
2265 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
2266 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
2267 * config/i386/linux.mh (NATDEPFILES): Likewise.
2268 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
2269 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
2270 * config/i386/obsd.mh (NATDEPFILES): Likewise.
2271 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
2272
22732002-05-11 Jason Thorpe <[email protected]>
2274
2275 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
2276 (alphanbsd-nat.o): Remove dependency list.
2277 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
2278 * alphanbsd-nat.c: Delete. Contents moved to...
2279 * alphanbsd-tdep.c: ...here.
2280 (_initialize_alphanbsd_tdep): Register core functions.
2281 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
2282
22832002-05-11 Jason Thorpe <[email protected]>
2284
2285 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
2286 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
2287 (alphanbsd-nat.o): Likewise.
2288 (alphabsd-tdep.o): New dependency list.
2289 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
2290 (fill_gregset): Use alphabsd_fill_reg.
2291 (supply_fpregset): Use alphabsd_supply_fpreg.
2292 (fill_fpregset): Use alphabsd_fill_fpreg.
2293 (fetch_inferior_registers): Use struct reg and struct fpreg
2294 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
2295 and alphabsd_supply_fpreg.
2296 (store_inferior_registers): Use struct reg and struct fpreg
2297 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
2298 and alphabsd_fill_fpreg.
2299 * alphabsd-tdep.c: New file.
2300 * alphabsd-tdep.h: New file.
2301 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
2302 (fetch_elfcore_registers): Use alphabsd_supply_reg and
2303 alphabsd_supply_fpreg.
2304 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
2305 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
2306
23072002-05-11 Eric Christopher <[email protected]>
2308
2309 * mips-tdep.c (mips_double_register_type): Fix thinko.
2310 (mips_single_register_type): Ditto.
2311 * MAINTAINERS: Add self.
2312
23132002-05-11 Mark Kettenis <[email protected]>
2314
2315 * i387-nat.c (i387_supply_register, i387_fill_fsave,
2316 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
2317 right thing on architectures with different endianness and/or
2318 integer sizes.
2319
23202002-05-10 Jason Thorpe <[email protected]>
2321
2322 From Christian Limpach <[email protected]>
2323 * configure.in: Change sed expression which comments out
2324 NATDEPFILES to also comment out continuation lines.
2325 * configure: Regenerate.
2326
23272002-05-10 Elena Zannoni <[email protected]>
2328
2329 * sh-tdep.c: Clean up code erroneously reintroduced by previous
2330 big patch.
2331
23322002-05-10 Elena Zannoni <[email protected]>
2333
2334 * sh-tdep.c: Include correct file.
2335
23362002-05-10 Elena Zannoni <[email protected]>
2337
2338 New support for sh64-elf (sh5) target.
2339
2340 * configure.tgt: For sh64-elf target, default to sh-elf.
2341
2342 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
2343 (struct gdbarch_tdep): Add new fields for new registers and ABI
2344 info.
2345
2346 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
2347 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
2348 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
2349 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
2350 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
2351 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
2352 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
2353 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
2354 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
2355 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
2356 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
2357 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
2358 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
2359 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
2360 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
2361 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
2362 sh64_get_gdb_regnum, sh64_media_reg_base_num,
2363 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
2364 sign_extend, sh64_nofp_frame_init_saved_regs,
2365 sh64_init_extra_frame_info, sh64_get_saved_register,
2366 sh64_extract_struct_value_address, sh64_pop_frame,
2367 sh64_push_arguments, sh64_extract_return_value,
2368 sh64_store_return_value, sh64_show_media_regs,
2369 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
2370 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
2371 sh_sh64_register_virtual_type,
2372 sh_sh64_register_convert_to_virtual,
2373 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
2374 sh64_register_read, sh64_pseudo_register_write,
2375 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
2376 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
2377 sh64_do_pseudo_register, sh_compact_do_registers_info,
2378 sh64_do_registers_info, sh_gdbarch_init): New functions.
2379
23802002-05-10 Elena Zannoni <[email protected]>
2381
2382 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
2383
23842002-05-10 Daniel Jacobowitz <[email protected]>
2385
2386 * linespec.c (decode_line_1): Check for a double quote after
2387 a filename correctly.
2388
23892002-05-10 Jim Blandy <[email protected]>
2390
2391 Properly track the size of the current objfile's .debug_line section.
2392 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
2393 (DWARF_LINE_SIZE): New macro.
2394 (dwarf2_build_psymtabs_hard): Record the line section's size in
2395 the partial symbol table.
2396 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
2397 symbol table.
2398
23992002-05-10 Petr Sorfa <[email protected]>
2400
2401 * ia64-tdep.c: Handle breakpoints on L instruction type
2402 in MLX instruction bundle by moving the breakpoint to
2403 the third slot (X instruction type) as L holds only data.
2404
24052002-05-10 Kevin Buettner <[email protected]>
2406
2407 * dbxread.c (discarding_local_symbols_complaint): New complaint.
2408 (process_one_symbol): Complain about discarding local symbols
2409 due to a misplaced N_LBRAC entry.
2410
24112002-05-09 Elena Zannoni <[email protected]>
2412
2413 From Daniel Berlin <[email protected]>
2414 * linespec.c (find_toplevel_char): '<' and '>' also increase and
2415 decrease the depth we are at, in the case of templates.
2416
24172002-05-09 Daniel Jacobowitz <[email protected]>
2418
2419 * mips-tdep.c (mips_float_register_type): New function.
2420 (mips_double_register_type): New function.
2421 (mips_print_register): Use them.
2422 (do_fp_register_row): Likewise.
2423
24242002-05-09 Daniel Jacobowitz <[email protected]>
2425
2426 * signals/signals.c (signals): Remove conditional compilation around
2427 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
2428 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
2429
24302002-05-09 Michael Snyder <[email protected]>
2431
2432 * remote-rdp.c (remote_rdp_can_run): Remove.
2433
24342002-05-09 Tom Tromey <[email protected]>
2435
2436 * jv-valprint.c (java_val_print): Handle `char' as a special case
2437 of TYPE_CODE_INT.
2438
24392002-05-09 Michael Snyder <[email protected]>
2440
2441 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
2442 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
2443 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
2444 str r(0123),[sp,#nn].
2445 (arm_skip_prologue): Ditto. Also make disassembly
2446 order-independent by placing it in a loop.
2447
24482002-05-06 Michael Snyder <[email protected]>
2449
2450 * stabsread.c (read_type): Add recognition for new attribute:
2451 "@V;" means that an array type is actually a vector.
2452 This is analogous to the vector flag that's been added to dwarf2.
2453
24542002-05-09 Mark Kettenis <[email protected]>
2455
2456 * i386-tdep.h (i386_abi): New enum.
2457 (struct gdbarch_tdep): Replace os_ident member with abi.
2458 (i386_gdbarch_register_os_abi): New prototype.
2459 * i386-tdep.c (i386_abi_names): New array.
2460 (process_note_abi_tag_sections): Removed.
2461 (process_note_sections): New function.
2462 (i386_elf_abi_from_note, i386_elf_abi): New functions.
2463 (struct i386_abi_handler): New struct.
2464 (i386_abi_handler_list): New variable.
2465 (i386_gdbarch_register_os_abi): New function.
2466 (i386_gdbarch_init): Adapt for the changes given above.
2467
24682002-05-08 Daniel Jacobowitz <[email protected]>
2469
2470 * gregset.h: Say "GNU/Linux".
2471
24722002-05-08 Elena Zannoni <[email protected]>
2473
2474 * gdbtypes.c : Add new builtin type for 64 bit vectors.
2475 (build_gdbtypes): Build builtin_type_v2_float.
2476 (_initialize_gdbtypes): Register new builtin type.
2477
24782002-05-08 Andrew Cagney <[email protected]>
2479
2480 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
2481 (clear_gdbarch_swap): New function.
2482 (initialize_non_multiarch): Call.
2483 (gdbarch_update_p): Before calling init(), swap out and clear the
2484 existing architecture.
2485 * gdbarch.c: Regenerate.
2486
24872002-05-08 Jason Thorpe <[email protected]>
2488
2489 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
2490 alphanbsd-tdep.c.
2491
24922002-05-08 Jason Thorpe <[email protected]>
2493
2494 * sh-nbsd-nat.c: Rename to...
2495 * shnbsd-nat.c: ...this.
2496 * sh-nbsd-tdep.c: Rename to...
2497 * shnbsd-tdep.c: ...this.
2498 * sh-nbsd-tdep.h: Rename to...
2499 * shnbsd-tdep.h: ...this.
2500 * config/sh/nbsd.mh: Use shnbsd-nat.o.
2501 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
2502
25032002-05-08 Richard Earnshaw <[email protected]>
2504
2505 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
2506 concatenation for command help messages.
2507
25082002-05-08 Jason Thorpe <[email protected]>
2509
2510 * NEWS: Note new sh*-*-netbsdelf* configuration.
2511 * configure.host: Set gdb_host_cpu to sh for all sh*.
2512 (sh*-*-netbsdelf*): New host.
2513 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
2514 (sh*-*-netbsdelf*): New target.
2515 * sh-nbsd-nat.c: New file.
2516 * sh-nbsd-tdep.c: New file.
2517 * sh-nbsd-tdep.h: New file.
2518 * config/sh/nbsd.mh: New file.
2519 * config/sh/nbsd.mt: New file.
2520 * config/sh/nm-nbsd.h: New file.
2521 * config/sh/tm-nbsd.h: New file.
2522
25232002-05-08 Jason Thorpe <[email protected]>
2524
2525 * sh-tdep.c (sh_osabi_names): Declare.
2526 (process_note_abi_tag_sections): New function.
2527 (get_elfosabi): Ditto.
2528 (sh_gdbarch_register_os_abi): Ditto.
2529 (sh_dump_tdep): Ditto.
2530 _initialize_sh_tdep): Use gdbarch_register to register
2531 sh_gdbarch_init and sh_dump_tdep.
2532 * config/sh/tm-sh.h (sh_osabi): Declare.
2533 (gdbarch_tdep): Add sh_osabi and osabi_name members.
2534
25352002-05-07 Andrew Cagney <[email protected]>
2536
2537 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
2538 (thumb_scan_prologue): Ditto.
2539 (arm_find_callers_reg): Ditto.
2540 (arm_frame_chain): Ditto.
2541 (arm_init_extra_frame_info): Ditto.
2542 (arm_frame_saved_pc): Ditto.
2543 (arm_pop_frame): Ditto.
2544 (arm_push_return_address): New function.
2545 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
2546 call_dummy_location, call_dummy_breakpoint_offset_p,
2547 call_dummy_breakpoint_offset, call_dummy_p,
2548 call_dummy_stack_adjust_p, call_dummy_words,
2549 sizeof_call_dummy_words, call_dummy_start_offset,
2550 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
2551 call_dummy_address, push_return_address and push_dummy_frame for
2552 generic dummy frames.
2553
25542002-05-07 Jason Thorpe <[email protected]>
2555
2556 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
2557 size computation for alloca.
2558 (sh_fp_frame_init_saved_regs): Likewise.
2559
25602002-05-07 Richard Earnshaw <[email protected]>
2561
2562 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
2563 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
2564 * arm-tdep.c (arm_store_return_value): Use them.
2565 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
2566 * remote-rdp.c (remote_rdp_fetch_register): Use
2567 ARM_MAX_REGISTER_RAW_SIZE.
2568 (remote_rdp_store_register): Likewise.
2569
25702002-05-07 Michal Ludvig <[email protected]>
2571
2572 * dwarf2cfi.c: Code cleanup, removed unused variables,
2573 added default labels to switch {} statements.
2574 * x86-64-tdep.c: Ditto.
2575 * x86-64-linux-nat.c: Ditto.
2576
25772002-05-07 Jason Thorpe <[email protected]>
2578
2579 * solib.h: Protect against multiple inclusion.
2580
25812002-05-06 Jim Blandy <[email protected]>
2582
2583 Add first preprocessor macro-expansion files.
2584 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
2585 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
2586 (splay_tree_h, macroexp_h, macrotab_h): New variable.
2587 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
2588 (COMMON_OBS): Add macrotab.o, macroexp.o.
2589 (macroexp.o, macrotab.o): New rules.
2590
2591 Separate the job of reading the line number info statement program
2592 header (...expialidocious) out into its own function.
2593 * dwarf2read.c (struct line_head, struct filenames, struct
2594 directories): Replace with...
2595 (struct line_header): New structure, containing the full
2596 contents of the statement program header, including the
2597 include directory and file name tables.
2598 (read_file_scope): If we have line number info, instead of just
2599 calling dwarf_decode_lines to do all the work, call
2600 dwarf_decode_line_header first to get a `struct line_header'
2601 containing the data in the statement program header, and then
2602 pass that to dwarf_decode_lines, which will pick up where that
2603 left off. Be sure to clean up the `struct line_header' object.
2604 (dwarf_decode_line_header, free_line_header, add_include_dir,
2605 add_file_name): New functions.
2606 (dwarf_decode_lines): Move all the code to read the statement
2607 program header into dwarf_decode_line_header. Take the line
2608 header it built as the first argument, instead of the offset to
2609 the compilation unit's line number info. Use the new `struct
2610 line_header' type instead of the old structures. No need to do
2611 cleanups here now, since we don't allocate anything.
2612 (dwarf2_statement_list_fits_in_line_number_section,
2613 dwarf2_line_header_too_long): New complaints.
2614
26152002-05-06 Elena Zannoni <[email protected]>
2616
2617 * gdbtypes.c (init_vector_type): New function.
2618 (build_builtin_type_vec128): Simplify the representation of SIMD
2619 registers.
2620 (build_gdbtypes): Initialize new builtin vector types.
2621 (_initialize_gdbtypes): Register new vector types with gdbarch.
2622 (builtin_type_v4_float, builtin_type_v4_int32,
2623 builtin_type_v8_int16, builtin_type_v16_int8,
2624 builtin_type_v2_int32, builtin_type_v4_int16,
2625 builtin_type_v8_int8): New (renamed) SIMD types.
2626
26272002-05-06 Mark Kettenis <[email protected]>
2628
2629 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
2630 (i387_fill_fxsave): Likewise.
2631
26322002-05-05 Alexandre Oliva <[email protected]>
2633
2634 * alpha-tdep.c (alpha_extract_return_value): Don't use
2635 non-constant array size in prototype.
2636
26372002-05-04 Andrew Cagney <[email protected]>
2638
2639 From Brian Taylor <briant at model dot com>:
2640 * ui-out.c (ui_out_field_core_addr): Use the function
2641 longest_local_hex_string_custom'to format addresses > 32 bits
2642 wide.
2643
2644 * ui-out.c (ui_out_field_core_addr): Update comment.
2645
26462002-05-04 Andrew Cagney <[email protected]>
2647
2648 * stack.c (select_and_print_frame): Make static. Delete the
2649 parameter `level'.
2650 (func_command): Update call.
2651 (select_frame_command): Delete code computing the frame level.
2652 * frame.h (select_and_print_frame): Delete declaration.
2653
26542002-05-04 Andrew Cagney <[email protected]>
2655
2656 * sparc-tdep.c (sparc_get_saved_register): Comment why
2657 get_prev_frame call is safe.
2658
26592002-05-04 Andrew Cagney <[email protected]>
2660
2661 * frame.h (select_frame): Delete level parameter.
2662 * stack.c (select_frame): Update. Use frame_relative_level to
2663 obtain the frame's level.
2664 (select_and_print_frame): Update call.
2665 (select_frame_command): Ditto.
2666 (up_silently_base): Ditto.
2667 (down_silently_base): Ditto.
2668 * ocd.c (ocd_start_remote): Ditto.
2669 * remote-rdp.c (remote_rdp_open): Ditto.
2670 * remote-mips.c (mips_initialize): Ditto.
2671 (common_open): Ditto.
2672 * remote-e7000.c (e7000_start_remote): Ditto.
2673 * m3-nat.c (select_thread): Ditto.
2674 * hppa-tdep.c (child_get_current_exception_event): Ditto.
2675 (child_get_current_exception_event): Ditto.
2676 * varobj.c (varobj_create): Ditto.
2677 (varobj_update): Ditto.
2678 (c_value_of_root): Ditto.
2679 * tracepoint.c (finish_tfind_command): Ditto.
2680 * corelow.c (core_open): Ditto.
2681 * arch-utils.c (generic_prepare_to_proceed): Ditto.
2682 * thread.c (info_threads_command): Ditto.
2683 (switch_to_thread): Ditto.
2684 * infrun.c (normal_stop): Ditto.
2685 (restore_selected_frame): Ditto.
2686 (restore_inferior_status): Ditto.
2687 * breakpoint.c (insert_breakpoints): Ditto.
2688 (watchpoint_check): Ditto.
2689 (bpstat_stop_status): Ditto.
2690 (do_enable_breakpoint): Ditto.
2691 * blockframe.c (flush_cached_frames): Ditto.
2692 (reinit_frame_cache): Ditto.
2693
26942002-05-04 Andrew Cagney <[email protected]>
2695
2696 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
2697 maintainer.
2698
26992002-05-04 Jim Blandy <[email protected]>
2700
2701 * gdbtypes.c (replace_type): Doc fix.
2702
27032002-05-04 Andrew Cagney <[email protected]>
2704
2705 * valprint.c (strcat_longest): Delete commented out function.
2706 Update copyright.
2707
27082002-05-04 Andrew Cagney <[email protected]>
2709
2710 * MAINTAINERS: Mark a29k as deleted.
2711 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
2712 Move new configurations to the top.
2713 * configure.tgt: Remove a29k.
2714 * config/a29k/tm-vx29k.h: Delete.
2715 * config/a29k/vx29k.mt: Delete.
2716 * config/a29k/tm-a29k.h: Delete.
2717 * config/a29k/a29k-udi.mt: Delete.
2718 * config/a29k/a29k.mt: Delete.
2719 * a29k-tdep.c: Delete.
2720 * remote-udi.c: Delete.
2721 * remote-mm.c: Delete.
2722 * remote-eb.c: Delete.
2723 * remote-adapt.c: Delete.
2724 * Makefile.in: Remove obsolete code.
2725 * gdbserver/Makefile.in: Ditto.
2726 * config/s390/s390x.mt: Ditto.
2727 * config/s390/s390.mt: Ditto.
2728 * config/sparc/sparclynx.mh: Ditto.
2729 * config/sparc/linux.mh: Ditto.
2730 * config/pa/hppaosf.mh: Ditto.
2731 * config/pa/hppabsd.mh: Ditto.
2732 * config/ns32k/nbsd.mt: Ditto.
2733 * config/mips/vr5000.mt: Ditto.
2734 * config/m68k/sun3os4.mh: Ditto.
2735 * config/m68k/nbsd.mt: Ditto.
2736 * config/m68k/m68klynx.mh: Ditto.
2737 * config/m32r/m32r.mt: Ditto.
2738 * config/i386/x86-64linux.mt: Ditto.
2739 * config/i386/nbsdelf.mt: Ditto.
2740 * config/i386/nbsd.mt: Ditto.
2741 * config/i386/i386lynx.mh: Ditto.
2742
27432002-05-04 Andrew Cagney <[email protected]>
2744
2745 * target.c (debug_print_register): New function. Handle oversize
2746 registers.
2747 (debug_to_fetch_registers): Call.
2748 (debug_to_store_registers): Call.
2749
27502002-05-03 Jim Blandy <[email protected]>
2751
2752 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
2753 (read_type): Doc fix.
2754 * gdbtypes.c (replace_type): Doc fix.
2755
2756 * stabsread.c (multiply_defined_struct): New complaint.
2757 (read_struct_type): If the type we were passed isn't empty, or
2758 incomplete, don't read the new struct type into it; complain,
2759 and return the original type unchanged. Take a new `type_code'
2760 argument, which is the type code for the new type.
2761 (read_type): Rather than storing the type's type code here, pass
2762 it as an argument to read_struct_type, and let that take care of
2763 storing it. That way, we don't overwrite the original type code,
2764 so read_struct_type can use it to decide whether we're overwriting
2765 something we shouldn't.
2766 (complain_about_struct_wipeout): New function.
2767
27682002-05-03 Andrew Cagney <[email protected]>
2769
2770 * gdbarch.sh: Assert that gdbarch is non-NULL.
2771 * gdbarch.c: Regenerate.
2772
27732002-05-03 Jason Merrill <[email protected]>
2774
2775 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
2776 and return NULL.
2777
27782002-05-03 Michal Ludvig <[email protected]>
2779
2780 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
2781 (x86_64_dwarf2gdb_regno_map_length),
2782 (x86_64_dwarf2_reg_to_regnum): Added.
2783 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
2784 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
2785 (_initialize_x86_64_tdep): Synced with the change above.
2786 (x86_64_skip_prologue): Reformulated message.
2787
27882002-05-03 Pierre Muller <[email protected]>
2789
2790 * f-exp.y: Also use new prev_lexptr variable
2791 to improve error reporting. Based on Michael Snyder
2792 2002-04-24 dated patch to c-exp.y.
2793 * jv-exp.y: Likewise.
2794 * m2-exp.y: Likewise.
2795
27962002-05-02 Elena Zannoni <[email protected]>
2797
2798 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
2799 we are dealing with vectors.
2800
28012002-05-02 Pierre Muller <[email protected]>
2802
2803 * config/m68k/tm-nbsd.h: Obvious fix,
2804 correct machine name.
2805
28062002-05-02 Pierre Muller <[email protected]>
2807
2808 * p-typeprint.c (pascal_type_print_base): Add support
2809 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
2810
28112002-05-02 Pierre Muller <[email protected]>
2812
2813 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
2814 for fondamental pascal 'char' type.
2815
28162002-05-02 Pierre Muller <[email protected]>
2817
2818 * p-lang.h (is_pascal_string_type): Declaration changed,
2819 new sixth argument of type char ** added.
2820 * p-lang.c (is_pascal_string_type): Implementation
2821 changed. Args length_pos, length_size, string_pos, char_size
2822 can now be NULL. New argument arrayname set to the field
2823 name of the char array. Return value set to char array
2824 field index plus one.
2825 * p-valprint.c (pascal_val_print): Adapt to new declaration of
2826 is_pascal_string_type function.
2827
28282002-05-02 Andrew Cagney <[email protected]>
2829
2830 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
2831 <[email protected]> change.
2832 * gdbarch.c: Regenerate.
2833
28342002-05-02 Andrew Cagney <[email protected]>
2835
2836 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
2837 before probing for a new one. Detect errorenous gdbarch_init
2838 functions.
2839 * gdbarch.c: Regenerate.
2840
28412002-05-01 Andrew Cagney <[email protected]>
2842
2843 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
2844 * config/mcore/tm-mcore.h: Ditto. Update copyright.
2845 * config/v850/tm-v850.h: Ditto. Update copyright.
2846
28472002-04-30 Andrew Cagney <[email protected]>
2848
2849 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
2850 current_gdbarch.
2851
28522002-04-30 Michael Snyder <[email protected]>
2853
2854 * arm-tdep.c: Whitespace clean-ups.
2855 (arm_skip_prologue): Fix thinko; two lines
2856 should have been removed as part of 4/24 change.
2857
28582002-04-30 Kevin Buettner <[email protected]>
2859
2860 * rs6000-tdep.c: Added comment describing how fpscr register
2861 numbers were chosen.
2862
28632002-04-30 Michael Snyder <[email protected]>
2864
2865 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
2866
28672002-04-29 Elena Zannoni <[email protected]>
2868
2869 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
2870 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
2871 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
2872
28732002-04-29 Kevin Buettner <[email protected]>
2874
2875 From Louis Hamilton <[email protected]>:
2876 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
2877 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
2878 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
2879 not bfd-private xcoff data, to determine wordsize.
2880 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
2881
28822002-04-29 Andrew Cagney <[email protected]>
2883
2884 GDB 5.2 released from 5.2 branch.
2885
28862002-04-29 Michal Ludvig <[email protected]>
2887
2888 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
2889 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
2890 (x86_64_register_info_table): Added comments with register numbers.
2891
28922002-04-29 Elena Zannoni <[email protected]>
2893
2894 * rs6000-tdep.c (rs6000_extract_return_value,
2895 rs6000_store_return_value): Handle returning vectors.
2896 (rs6000_gdbarch_init): Use
2897 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
2898 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
2899 New function.
2900 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
2901 vectors.
2902 (ppc_sysv_abi_push_arguments): Handle vector parameters.
2903 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
2904
29052002-04-24 Pierre Muller <ics.u-strasbg.fr>
2906
2907 * hpread.c (hpread_psymtab_to_symtab_1,
2908 hpread_psymtab_to_symtab): Replace fprintf (stderr,...)
2909 with fprintf_unfiltered (gdb_stderr,...).
2910
29112002-04-24 Pierre Muller <ics.u-strasbg.fr>
2912
2913 * remote-array.c (printf_monitor, write_monitor,
2914 array_insert_breakpoint, array_remove_breakpoint ):
2915 Replace fprintf (stderr,...
2916 with fprintf_unfiltered (gdb_stderr,....
2917 * remote-es.c: Likewise.
2918 * remote-os9k.c: Likewise.
2919 * remote-st.c: Likewise.
2920
29212002-04-28 Andreas Schwab <[email protected]>
2922
2923 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
2924 linux-proc.o and gcore.o.
2925
29262002-04-26 Michal Ludvig <[email protected]>
2927
2928 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
2929 code without frame pointers.
2930
29312002-04-26 Andrew Cagney <[email protected]>
2932
2933 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
2934 ON_STACK is needed.
2935
29362002-04-26 Ben Elliston <[email protected]>
2937
2938 * target.c (do_xfer_memory): Correct reference to the new option
2939 "trust-readonly-sections".
2940
29412002-04-26 Elena Zannoni <[email protected]>
2942
2943 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
2944 * gdbtypes.c (recursive_dump_type): Output the vector flag.
2945 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
2946 vectors.
2947 (read_array_type): Record the fact that this array type is really a
2948 vector (i.e. are passed in by value).
2949
29502002-04-26 Jason Thorpe <[email protected]>
2951
2952 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
2953 * alpha-tdep.c (alpha_sigcontext_addr): New function.
2954 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
2955 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
2956 * alpha-linux-tdep.c: Include frame.h.
2957 (alpha_linux_sigcontext_addr): New function.
2958 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
2959 alpha_linux_sigcontext_addr.
2960 * alpha-osf1-tdep.c: Include gdbcore.h.
2961 (alpha_osf1_sigcontext_addr): New function.
2962 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
2963 alpha_osf1_sigcontext_addr.
2964 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
2965 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
2966
29672002-04-26 Andrew Cagney <[email protected]>
2968
2969 * stack.c (selected_frame_level):
2970 (select_frame): Do not set selected_frame_level.
2971 * frame.h (selected_frame_level): Delete declaration.
2972
29732002-04-26 Andrew Cagney <[email protected]>
2974
2975 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
2976 convert_from_func_ptr-addr when AIX / PowerOpen.
2977
29782002-04-25 Andrew Cagney <[email protected]>
2979
2980 * valops.c (hand_function_call): Call
2981 generic_save_call_dummy_addr.
2982 * frame.h (generic_save_call_dummy_addr): Declare.
2983 * blockframe.c (struct dummy_frame): Add fields call_lo and
2984 call_hi.
2985 (generic_find_dummy_frame): Check for PC in range call_lo to
2986 call_hi instead of entry_point_address.
2987 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
2988 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
2989 (generic_save_call_dummy_addr): New function.
2990
29912002-04-24 David S. Miller <[email protected]>
2992
2993 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
2994 sparc_skip_prologue.
2995 (sparc_skip_prologue): Kill frameless_p arg, and use line number
2996 information to find prologue when possible.
2997 (sparc_prologue_frameless_p): Call examine_prologue directly.
2998 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
2999 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
3000 second argument.
3001 (SKIP_PROLOGUE): Likewise.
3002
30032002-04-25 Jason Thorpe <[email protected]>
3004
3005 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
3006 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
3007 indicate that the condition it was testing is always true.
3008 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
3009 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
3010 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
3011
30122002-04-25 Jason Thorpe <[email protected]>
3013
3014 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
3015 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
3016 tdep->jb_pc and tdep->jb_elt_size.
3017 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
3018 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
3019 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
3020 * alpha-nat.c (get_longjmp_target): Remove.
3021 (JB_ELEMENT_SIZE): Ditto.
3022 (JB_PC): Ditto.
3023 * alpha-tdep.c (alpha_get_longjmp_target): New function.
3024 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
3025 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
3026 to alpha_get_longjmp_target.
3027 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
3028 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
3029 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
3030
30312002-04-25 Andrew Cagney <[email protected]>
3032
3033 * README: Update to GDB 5.2.
3034
30352002-04-25 Andrew Cagney <[email protected]>
3036
3037 * gdbarch.sh (LC_ALL): Set to `c'.
3038
30392002-04-25 Theodore A. Roth <[email protected]>
3040
3041 * avr-tdep.c: Ran through gdb_indent.sh.
3042
30432002-04-25 Theodore A. Roth <[email protected]>
3044
3045 * MAINTAINERS: Add myself as AVR maintainer.
3046 * NEWS: Note new target avr.
3047
30482002-04-25 Theodore A. Roth <[email protected]>
3049
3050 * Makefile.in: Add support for AVR target.
3051 * configure.tgt: Add support for AVR target.
3052 * avr-tdep.c: New file
3053 * config/avr/avr.mt: New file.
3054
30552002-04-25 Theodore A. Roth <[email protected]>
3056
3057 * MAINTAINERS: Add myself to write-after-approval.
3058
30592002-04-24 Pierre Muller <ics.u-strasbg.fr>
3060
3061 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
3062 with fprintf_unfiltered (gdb_stderr,....
3063
30642002-04-25 Pierre Muller <[email protected]>
3065
3066 Fix PR gdb/508.
3067 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
3068
30692002-04-25 Pierre Muller <[email protected]>
3070
3071 * p-exp.y: Also use new prev_lexptr variable
3072 to improve error reporting. Based on Michael Snyder
3073 2002-04-24 dated patch to c-exp.y.
3074
30752002-04-25 Jason Thorpe <[email protected]>
3076
3077 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
3078 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
3079 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
3080 to 0.
3081 * config/alpha/tm-alpha.h: Remove forward decls of struct type
3082 and struct value.
3083 (FUNCTION_START_OFFSET): Remove.
3084 (BREAKPOINT): Ditto.
3085
30862002-04-25 Jason Thorpe <[email protected]>
3087
3088 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
3089 * NEWS: Ditto.
3090
30912002-04-24 Jason Thorpe <[email protected]>
3092
3093 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
3094 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
3095 alpha_linux_pc_in_sigtramp.
3096 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
3097 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
3098 alpha_osf1_pc_in_sigtramp.
3099 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
3100 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
3101 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3102 alphafbsd_pc_in_sigtramp.
3103 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
3104 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3105 alphanbsd_pc_in_sigtramp.
3106 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
3107 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
3108
31092002-04-24 Jason Thorpe <[email protected]>
3110
3111 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
3112
31132002-04-24 Jason Thorpe <[email protected]>
3114
3115 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
3116 alphanbsd-tdep.c.
3117 (alphanbsd-nat.o): New dependency list.
3118 (alphanbsd-tdep.o): Ditto.
3119 * NEWS: Note new native NetBSD/alpha configuration.
3120 * alphanbsd-nat.c: New file.
3121 * alphanbsd-tdep.c: Ditto.
3122 * configure.host (alpha*-*-netbsd*): New host.
3123 * configure.tgt (alpha*-*-netbsd*): New target.
3124 * config/alpha/nbsd.mh: New file.
3125 * config/alpha/nbsd.mt: Ditto.
3126 * config/alpha/nm-nbsd.h: Ditto.
3127 * config/alpha/tm-nbsd.h: Ditto.
3128
31292002-04-24 Jason Thorpe <[email protected]>
3130
3131 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
3132 (alpha-osf1-tdep.o): New dependency list.
3133 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
3134 and skip_sigtramp_frame members.
3135 * alpha-linux-tdep.c: Include gdbcore.h.
3136 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
3137 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
3138 * alpha-osf1-tdep.c: New file.
3139 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
3140 alpha-osf1-dep.c.
3141 (alpha_frame_past_sigtramp_frame): New function.
3142 (alpha_dynamic_sigtramp_offset): Ditto.
3143 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
3144 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
3145 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
3146 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
3147 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
3148 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
3149 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
3150 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
3151 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
3152 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
3153 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
3154 to find_solib_trampoline_target.
3155 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
3156 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
3157 (SKIP_TRAMPOLINE_CODE): Remove.
3158 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
3159 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
3160 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
3161 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
3162 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
3163 (PROC_SIGTRAMP_MAGIC): Ditto.
3164 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
3165 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
3166 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
3167 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
3168 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
3169
31702002-04-24 Jason Thorpe <[email protected]>
3171
3172 * NEWS: Note that Alpha targets are now multi-arch.
3173
31742002-04-24 Michael Snyder <[email protected]>
3175
3176 * parser-defs.h (prev_lexptr): New external variable.
3177 * parse.c (parse_exp_1): Set prev_lexptr to null before
3178 calling the language-specific parser.
3179 * c-exp.y (yylex): Set prev_lexptr to start of current token.
3180 (yyerror): Use prev_lexptr in error reporting.
3181
31822002-04-24 Daniel Jacobowitz <[email protected]>
3183
3184 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
3185 * gregset.h: If FILL_FPXREGSET is defined, provide
3186 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
3187 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
3188 is defined, call fill_fpxregset.
3189
31902002-04-24 Roland McGrath <[email protected]>
3191
3192 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
3193 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
3194 (supply_gregset, supply_fpregset): New functions.
3195
3196 * gnu-nat.c (gnu_find_memory_regions): New function.
3197 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
3198 (gnu_xfer_memory): Add a cast.
3199
32002002-04-24 Michael Snyder <[email protected]>
3201
3202 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
3203 loop. Add handling for "str lr, [sp, #-4]!" and for saves
3204 of argument regs ("str r(0123), [r11, #-nn"]).
3205 (arm_skip_prologue): Better handling for frameless functions.
3206 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
3207 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
3208
3209Wed Apr 24 14:22:21 2002 Andrew Cagney <[email protected]>
3210
3211 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
3212 NUM_PSEUDO_REGS can be used.
3213
32142002-04-24 Andrew Cagney <[email protected]>
3215
3216 * arch-utils.h: Update copyright.
3217
3218 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
3219 * gdbarch.h, gdbarch.c: Re-generate.
3220
3221 * inferior.h (IN_SIGTRAMP): Delete definition.
3222 * arch-utils.c (legacy_pc_in_sigtramp): New function.
3223 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
3224
3225 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
3226 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
3227 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
3228 (find_proc_framesize): Ditto.
3229 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
3230 (alpha_init_extra_frame_info): Ditto.
3231 * infrun.c (handle_inferior_event): Ditto.
3232 (handle_inferior_event): Ditto.
3233 (check_sigtramp2): Ditto.
3234 * blockframe.c (create_new_frame): Ditto.
3235 (get_prev_frame): Ditto.
3236 * ppc-linux-tdep.c: Update comments.
3237 * i386-linux-tdep.c: Update comments.
3238 * breakpoint.c (bpstat_what): Update comment.
3239
32402002-04-24 Michal Ludvig <[email protected]>
3241
3242 * gdbserver/linux-low.c (regsets_fetch_inferior_registers),
3243 (regsets_store_inferior_registers): Removed cast to int from
3244 ptrace() calls.
3245 * gdbserver/regcache.h: Added declaration of struct inferior_info.
3246
32472002-04-24 David S. Miller <[email protected]>
3248
3249 * i960-tdep.c (register_in_window_p): New function.
3250 (i960_find_saved_register): Use it instead of
3251 REGISTER_IN_WINDOW_P.
3252 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
3253
3254 * symtab.h (find_stab_function_addr): Kill extern.
3255 * minsyms.c (find_stab_function_addr): Remove from here...
3256 * dbxread.c: ... to here, and mark it static.
3257
32582002-04-20 David S. Miller <[email protected]>
3259
3260 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
3261 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
3262
32632002-04-21 David S. Miller <[email protected]>
3264
3265 * remote-vxsparc.c (vx_read_register): Fix typo, we want
3266 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
3267 (vx_write_register): Likewise.
3268
32692002-04-23 J. Brobecker <[email protected]>
3270
3271 * source.c (is_regular_file): New function.
3272 (openp): Check wether file to open is a regular file
3273 to avoid opening directories.
3274
32752002-04-22 Jason Thorpe <[email protected]>
3276
3277 * findvar.c (extract_signed_integer): Cast printf argument
3278 to suppress format warning.
3279 (extract_unsigned_integer): Likewise.
3280 * infcmd.c (registers_info): Likewise.
3281 * top.c (get_prompt_1): Likewise.
3282 * valops.c (value_assign): Likewise.
3283 * valprint.c (print_decimal): Likewise.
3284
32852002-04-22 H.J. Lu ([email protected])
3286
3287 * c-exp.y (typebase): Support
3288
3289 [long|long long|short] [signed|unsigned] [int|]
3290
3291 and
3292
3293 signed [long|long long|short] int
3294
32952002-04-22 Jason Thorpe <[email protected]>
3296
3297 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
3298 and vax-tdep.h.
3299 * vax-tdep.h: New file.
3300 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
3301 Make several routines static.
3302 (vax_get_saved_register): New function.
3303 (vax_gdbarch_init): New function.
3304 (_initialize_vax_tdep): Register vax_gdbarch_init.
3305 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
3306 Remove macros now under the control of gdbarch.
3307
33082002-04-22 Michael Snyder <[email protected]>
3309
3310 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
3311 Some whitespace and coding standards tweaks.
3312
33132002-04-22 Jason Thorpe <[email protected]>
3314
3315 * vax-tdep.c: Include regcache.h.
3316 (vax_call_dummy_words): New.
3317 (sizeof_vax_call_dummy_words): New.
3318 (vax_fix_call_dummy): New function.
3319 (vax_saved_pc_after_call): Ditto.
3320 * config/vax/tm-vax.h: Don't include regcache.h.
3321 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
3322 (CALL_DUMMY): Remove.
3323 (CALL_DUMMY_WORDS): Define.
3324 (SIZEOF_CALL_DUMMY_WORDS): Define.
3325 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
3326
33272002-04-18 Michael Snyder <[email protected]>
3328
3329 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
3330
33312002-04-22 Jason Thorpe <[email protected]>
3332
3333 * vax-tdep.c (vax_frame_chain): New function.
3334 (vax_push_dummy_frame): Ditto.
3335 (vax_pop_frame): Ditto.
3336 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
3337 (FRAMELESS_FUNCTION_INVOCATION): Use
3338 generic_frameless_function_invocation_not.
3339 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
3340 (POP_FRAME): Use vax_pop_frame.
3341
33422002-04-22 Jason Thorpe <[email protected]>
3343
3344 * vax-tdep.c (vax_store_struct_return): New function.
3345 (vax_extract_return_value): Ditto.
3346 (vax_store_return_value): Ditto.
3347 (vax_extract_struct_value_address): Ditto.
3348 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
3349 vax_store_struct_return.
3350 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
3351 (STORE_RETURN_VALUE): Use vax_store_return_value.
3352 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
3353
33542002-04-22 Jason Thorpe <[email protected]>
3355
3356 * vax-tdep.c (vax_frame_saved_pc): New function.
3357 (vax_frame_args_address_correct): Ditto.
3358 (vax_frame_args_address): Ditto.
3359 (vax_frame_locals_address): Ditto.
3360 (vax_frame_num_args): Move code to be in proximity to
3361 other frame-related functions.
3362 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
3363 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
3364 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
3365 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
3366 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
3367
33682002-04-22 H.J. Lu ([email protected])
3369
3370 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
3371 includedir.
3372
33732002-04-22 Jason Thorpe <[email protected]>
3374
3375 * vax-tdep.c (vax_frame_init_saved_regs): New function.
3376 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
3377 (FRAME_INIT_SAVED_REGS): New macro.
3378
33792002-04-22 Jason Thorpe <[email protected]>
3380
3381 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
3382
33832002-04-22 Jason Thorpe <[email protected]>
3384
3385 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
3386 where needed.
3387 (fetch_osf_core_registers): Likewise.
3388 (supply_gregset): Likewise.
3389
33902002-04-22 J. Brobecker <[email protected]>
3391
3392 * symfile.h (get_section_index): Define.
3393 * symfile.c (get_section_index): New function.
3394 * mdebugread.c (SC_IS_SBSS): New macro.
3395 (SC_IS_BSS): Return true for the scBss storage class only, as
3396 the scSBss storage class refers to the .sbss section.
3397 (parse_partial_symbols): Discard the symbols which associated
3398 section does not exist.
3399 Make sure to use the .sbss section index for symbols which
3400 storage class is scBss, rather than using the .bss section index.
3401
34022002-04-22 Jason Thorpe <[email protected]>
3403
3404 * vax-tdep.c: Update copyright years.
3405 (vax_register_name): New function.
3406 (vax_register_byte): Ditto.
3407 (vax_register_raw_size): Ditto.
3408 (vax_register_virtual_size): Ditto.
3409 (vax_register_virtual_type): Ditto.
3410 * config/vax/tm-vax.h: Update copyright years.
3411 (REGISTER_NAMES): Remove.
3412 (REGISTER_NAME): Define.
3413 (REGISTER_BYTE): Use vax_register_byte.
3414 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
3415 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
3416 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
3417
34182002-04-21 Andrew Cagney <[email protected]>
3419
3420 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
3421 declaration
3422 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
3423
34242002-04-21 David S. Miller <[email protected]>
3425
3426 * arch-utils.c (generic_prologue_frameless_p): Kill
3427 SKIP_PROLOGUE_FRAMELESS_P code.
3428 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
3429 references.
3430 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
3431 * arc-tdep.c (arc_prologue_frameless_p): Implement.
3432 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
3433 references.
3434 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
3435 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
3436 (sparc_gdbarch_init): Pass it to
3437 set_gdbarch_prologue_frameless_p.
3438
34392002-04-21 Jason Thorpe <[email protected]>
3440
3441 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
3442 (alphabsd-nat.o): New dependency list.
3443
34442002-04-21 Jason Thorpe <[email protected]>
3445
3446 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
3447 alphafbsd-tdep.c.
3448 (alpha-linux-tdep.o): New dependency list.
3449 (alphafbsd-tdep.o): Likewise.
3450
34512002-04-21 Jason Thorpe <[email protected]>
3452
3453 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
3454 to here...
3455 * alpha-tdep.c: ...from here.
3456 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
3457
34582002-04-21 Jason Thorpe <[email protected]>
3459
3460 * config/alpha/tm-alpha.h: Move alpha_software_single_step
3461 prototype from here...
3462 * alpha-tdep.h: ...to here.
3463
34642002-04-21 Andrew Cagney <[email protected]>
3465
3466 * frame.h (selected_frame_level): Document as deprecated.
3467 (frame_relative_level): Declare.
3468 * stack.c (frame_relative_level): New function.
3469 (selected_frame_level): Document as deprecated.
3470 (select_frame): Do not set the selected_frame_level.
3471
3472 * stack.c (frame_info, record_selected_frame): Update.
3473 (frame_command, current_frame_command): Update.
3474 (up_silently_base, up_command, down_silently_base): Update.
3475 (down_command): Update.
3476 * inflow.c (kill_command): Update.
3477 * tracepoint.c (finish_tfind_command): Update.
3478 * corelow.c (core_open): Update.
3479 * thread.c (info_threads_command): Update.
3480 (do_captured_thread_select): Update.
3481 * infcmd.c (finish_command): Update.
3482 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
3483
34842002-04-21 Jason Thorpe <[email protected]>
3485
3486 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
3487
34882002-04-21 Andrew Cagney <[email protected]>
3489
3490 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
3491 type const.
3492
34932002-04-21 Jason Thorpe <[email protected]>
3494
3495 * alphafbsd-tdep.c: Update copyright years. Include
3496 alpha-tdep.h.
3497 (alphafbsd_use_struct_convention): Make static.
3498 (alphafbsd_init_abi): New function.
3499 (_initialize_alphafbsd_tdep): New function.
3500 * config/alpha/tm-fbsd.h: Update copyright years.
3501 (USE_STRUCT_CONVENTION): Remove.
3502
35032002-04-21 Jason Thorpe <[email protected]>
3504
3505 * alpha-tdep.c (alpha_abi_handler): New structure to describe
3506 an Alpha ABI variant.
3507 (alpha_abi_handler_list): Declare.
3508 (alpha_gdbarch_register_os_abi): New function.
3509 (alpha_gdbarch_init): Give registered ABI variant handlers a
3510 chance to tweak the gdbarch once we have set up defaults.
3511 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
3512
35132002-04-21 Jason Thorpe <[email protected]>
3514
3515 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
3516 to standard_coerce_float_to_double.
3517 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
3518
35192002-04-21 Jason Thorpe <[email protected]>
3520
3521 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
3522 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
3523 from gdbarch_tdep rather than a constant.
3524 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
3525 the default text address for all Alpha Unix ABIs.
3526 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
3527 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
3528
35292002-04-21 Jason Thorpe <[email protected]>
3530
3531 * alpha-tdep.h: New file. Includes several Alpha target constants
3532 taken from...
3533 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
3534 let gdbarch deal with.
3535 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
3536 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
3537 to dependency list.
3538 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
3539 Alpha target register names.
3540 * alphabsd-nat.c: Likewise.
3541 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
3542 Alpha target register names. Make serveral routines static.
3543 (alpha_get_saved_register): New function.
3544 (alpha_abi_names): New.
3545 (process_note_abi_tag_sections): New function.
3546 (get_elfosabi): New function.
3547 (alpha_gdbarch_init): New function.
3548 (alpha_dump_tdep): New function.
3549 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
3550
35512002-04-21 Andrew Cagney <[email protected]>
3552
3553 * frame.c (find_saved_register): Delete #ifdef
3554 HAVE_REGISTER_WINDOWS code.
3555 * config/sparc/tm-sparc.h: Update comments.
3556 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
3557
35582002-04-21 Andrew Cagney <[email protected]>
3559
3560 * i960-tdep.c (i960_find_saved_register): New function.
3561 (i960_get_saved_register): New function.
3562 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
3563 (i960_get_saved_register): Declare.
3564 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
3565
35662002-04-20 David S. Miller <[email protected]>
3567
3568 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
3569
35702002-04-20 Andrew Cagney <[email protected]>
3571
3572 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
3573 instead of NUM_PSEUDO_REGS.
3574
35752002-04-20 David S. Miller <[email protected]>
3576
3577 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
3578 GDB_MULTI_ARCH_PARTIAL
3579 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
3580 define, let tm-sp64.h do it.
3581
35822002-04-20 Jason Thorpe <[email protected]>
3583
3584 * frame.c (find_saved_register): Avoid a NULL pointer
3585 dereference and actually walk the frame list.
3586
35872002-04-20 Andrew Cagney <[email protected]>
3588
3589 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
3590 sorted in most most-recent-used order. Document.
3591 * gdbarch.h, gdbarch.c: Regenerate.
3592
35932002-04-20 Daniel Jacobowitz <[email protected]>
3594
3595 * gdbserver/inferiors.c (struct inferior_info): Add regcache_data.
3596 (add_inferior): Call create_register_cache.
3597 (clear_inferiors): Call free_register_cache.
3598 (inferior_regcache_data, set_inferior_regcache_data): New functions.
3599 * gdbserver/regcache.c (struct inferior_regcache_data): New.
3600 (registers): Remove.
3601 (get_regcache): New function.
3602 (create_register_cache, free_register_cache): New functions.
3603 (set_register_cache): Don't initialize the register cache here.
3604 (registers_to_string, registers_from_string, register_data): Call
3605 get_regcache.
3606 * gdbserver/regcache.h: Add prototypes.
3607 * gdbserver/server.h: Likewise.
3608
36092002-04-20 Daniel Jacobowitz <[email protected]>
3610
3611 * gdbserver/mem-break.c: New file.
3612 * gdbserver/mem-break.h: New file.
3613 * gdbserver/Makefile.in: Add mem-break.o rule; update server.h
3614 dependencies.
3615 * gdbserver/inferiors.c (struct inferior_info): Add target_data
3616 member.
3617 (clear_inferiors): Free target_data member if set.
3618 (inferior_target_data, set_inferior_target_data): New functions.
3619 * gdbserver/linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
3620 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
3621 * gdbserver/linux-low.c (linux_bp_reinsert): New variable.
3622 (struct inferior_linux_data): New.
3623 (linux_create_inferior): Use set_inferior_target_data.
3624 (linux_attach): Likewise. Call add_inferior.
3625 (linux_wait_for_one_inferior): New function.
3626 (linux_wait): Call it.
3627 (linux_write_memory): Add const.
3628 (initialize_low): Call set_breakpoint_data.
3629 * gdbserver/linux-low.h (struct linux_target_ops): Add breakpoint
3630 handling members.
3631 * gdbserver/server.c (attach_inferior): Remove extra add_inferior
3632 call.
3633 * gdbserver/server.h: Include mem-break.h. Update inferior.c
3634 prototypes.
3635 * gdbserver/target.c (read_inferior_memory)
3636 (write_inferior_memory): New functions.
3637 * gdbserver/target.h (read_inferior_memory)
3638 (write_inferior_memory): Change macros to prototypes.
3639 (struct target_ops): Update comments. Add const to write_memory
3640 definition.
3641
36422002-04-19 Andrew Cagney <[email protected]>
3643
3644 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
3645 instead of ->prev.
3646 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
3647 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
3648 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
3649 instead of ->prev.
3650
36512002-04-19 Elena Zannoni <[email protected]>
3652
3653 Fix PR gdb/471.
3654 * gdbtypes.c (init_simd_type): Rewrite using new functions.
3655 (build_builtin_type_vec128): Ditto.
3656 (append_composite_type_field): Fix calculation of type length in
3657 union case.
3658
36592002-04-19 Eli Zaretskii <[email protected]>
3660
3661 * config/djgpp/README: Update.
3662
3663 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
3664 compiler warnings.
3665
36662002-04-19 Jason Thorpe <[email protected]>
3667
3668 * alpha-tdep.c (setup_arbitrary_frame): Rename...
3669 (alpha_setup_arbitrary_frame): ...to this.
3670 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
3671 for alpha_setup_arbitrary_frame.
3672
36732002-04-18 Andrew Cagney <[email protected]>
3674
3675 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
3676 * gdbarch.h, gdbarch.c: Regenerate.
3677
3678 * defs.h (breakpoint_from_pc_fn): Delete type definition.
3679 * target.h (memory_breakpoint_from_pc): Update declaration.
3680 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
3681
3682 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
3683 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
3684 * mem-break.c (memory_breakpoint_from_pc): Ditto.
3685 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
3686 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
3687 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
3688 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
3689 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
3690 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
3691 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
3692 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
3693 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
3694
3695 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
3696 const pointer.
3697 * monitor.c (monitor_insert_breakpoint): Ditto.
3698 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
3699
3700 * config/mcore/tm-mcore.h: Update copyright.
3701 * mem-break.c: Ditto.
3702 * xstormy16-tdep.c: Ditto.
3703
37042002-04-18 Pierre Muller <[email protected]>
3705
3706 * p-exp.y: Add precedence rule for '^' token.
3707 This removes the shift/reduce conflicts.
3708 Remove the comment concerning these shift/reduce conflicts.
3709
37102002-04-18 Elena Zannoni <[email protected]>
3711
3712 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
3713 (registers_powerpc_nofp): New register set for processors
3714 without floating point unit.
3715
37162002-04-18 David S. Miller <[email protected]>
3717
3718 * MAINTAINERS: Add myself to write-after-approval.
3719
37202002-04-17 Michael Snyder <[email protected]>
3721
3722 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
3723
37242002-04-17 Andrew Cagney <[email protected]>
3725
3726 * rs6000-tdep.c (frame_initial_stack_address): Use
3727 frame_register_read to read the alloca_reg.
3728
37292002-04-17 Andrew Cagney <[email protected]>
3730
3731 * frame.c (find_saved_register): Find saved registers in the next
3732 not prev frame.
3733 Fix PR gdb/365.
3734
37352002-04-17 Andrew Cagney <[email protected]>
3736
3737 * gdbarch.sh (LANG): Set to ``c''.
3738
37392002-04-15 Andrew Cagney <[email protected]>
3740
3741 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
3742
37432002-04-15 Andrew Cagney <[email protected]>
3744
3745 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
3746 Update copyright.
3747
3748 * hpread.c (hpread_get_lntt): Add declaration.
3749 Also fix PR gdb/391.
3750
37512002-04-14 Andrew Cagney <[email protected]>
3752
3753 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
3754 * aclocal.m4, configure: Re-generate.
3755 Fix PR gdb/391.
3756
37572002-04-14 Elena Zannoni <[email protected]>
3758
3759 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
3760 instead of tm_print_insn.
3761
37622002-04-14 Elena Zannoni <[email protected]>
3763
3764 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
3765
37662002-04-14 Andrew Cagney <[email protected]>
3767
3768 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
3769 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
3770 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
3771
37722002-04-12 Don Howard <[email protected]>
3773
3774 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
3775 max_user_call_depth.
3776 (init_cmd_lists): Initialize the new value;
3777 * cli/cli-script.c (execute_user_command): Limit the call depth of
3778 user defined commands. This avoids a core-dump when user commands
3779 are infinitly recursive.
3780
37812002-04-12 Kevin Buettner <[email protected]>
3782
3783 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
3784 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
3785 from tdep struct instead of DEFAULT_LR_SAVE.
3786 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
3787 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
3788 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
3789
37902002-04-12 Michael Snyder <[email protected]>
3791
3792 * Remote.c: Spelling fix.
3793 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
3794 If no symbol found for "sbrk", try "_sbrk".
3795 (make_output_phdrs): Use bfd_section_name.
3796 (gcore_copy_callback): Use bfd_section_name.
3797 * eval.c: Indentation fix-ups.
3798 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
3799 in case it gets applied to an address that is already
3800 in the instruction space.
3801 * cli/cli-decode.c (help_list): Allow long lines to wrap.
3802 * symfile.c: Fix indentation, long lines.
3803 * source.c: White space fix-up.
3804
38052002-04-12 Andrew Cagney <[email protected]>
3806
3807 * defs.h (read_relative_register_raw_bytes): Delete declaration.
3808 * frame.c (frame_register_read): New function. Return non-zero on
3809 success.
3810 (read_relative_register_raw_bytes_for_frame): Delete.
3811 (read_relative_register_raw_bytes): Delete.
3812 * frame.h (frame_register_read): Declare.
3813 * d30v-tdep.c: Update Copyright. Use frame_register_read.
3814 * sh-tdep.c: Ditto.
3815 * infcmd.c (do_registers_info): Ditto.
3816 * hppa-tdep.c: Ditto.
3817 * rs6000-tdep.c: Ditto.
3818 * h8500-tdep.c: Ditto.
3819 * mips-tdep.c: Ditto.
3820 * h8300-tdep.c: Ditto.
3821 * z8k-tdep.c: Ditto.
3822
38232002-04-12 Kevin Buettner <[email protected]>
3824
3825 From Jimi X <[email protected]>:
3826 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
3827 64-bit SysV ABI.
3828
38292002-04-12 Kevin Buettner <[email protected]>
3830
3831 From Jimi X <[email protected]>:
3832 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
3833 bfd info.
3834
38352002-04-12 Kevin Buettner <[email protected]>
3836
3837 From Jimi X <[email protected]>:
3838 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
3839 register sets for these processor variants.
3840
38412002-04-11 Daniel Jacobowitz <[email protected]>
3842
3843 * gdbserver/linux-low.c (usr_store_inferior_registers): Support
3844 registers which are allowed to fail to store.
3845 * gdbserver/linux-low.h (linux_target_ops): Likewise.
3846 * gdbserver/linux-ppc-low.c (ppc_regmap): Support FPSCR.
3847 (ppc_cannot_store_register): FPSCR may not be storable.
3848 * regformats/reg-ppc.dat: Support FPSCR.
3849
38502002-04-11 Kevin Buettner <[email protected]>
3851
3852 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
3853 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
3854 Add fpscr as an invalid/unfetchable register.
3855 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
3856 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
3857 (fill_fpregset): Add support for register fpscr.
3858 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
3859 (fill_gregset): Account for the fact that register ``mq'' might
3860 not exist.
3861 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
3862 (registers_power): Add fpscr to register set at slot 71.
3863 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
3864 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
3865
38662002-04-11 Michael Snyder <[email protected]>
3867
3868 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
3869 * configure: Regenerate.
3870 * config.in: Regenerate.
3871 * acconfig.h: Add define for _SYSCALL32.
3872 * core-sol2.c: Remove #define _SYSCALL32.
3873 * solib-legacy.c: Remove #define _SYSCALL32.
3874
38752002-04-10 Andrew Cagney <[email protected]>
3876
3877 * stack.c (select_frame): Cleanup internal error message, do not
3878 use %p.
3879
38802002-04-10 Andrew Cagney <[email protected]>
3881
3882 * stack.c (select_frame): Check that selected_frame and the
3883 specified level are as expected.
3884 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
3885 Update copyright.
3886 * frame.h (struct frame_info): Add field `level'. Update
3887 copyright.
3888 Work-in-progress PR gdb/464.
3889
38902002-04-10 Andrew Cagney <[email protected]>
3891
3892 * maint.c (maint_print_section_info): Rename print_section_info.
3893 (print_bfd_section_info, print_objfile_section_info): Update.
3894 * inferior.h (struct gdbarch): Add opaque declaration.
3895 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
3896 * gdbarch.h: Regenerate.
3897
38982002-04-10 Michal Ludvig <[email protected]>
3899
3900 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
3901 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
3902 (kernel_u_size): Added.
3903 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
3904 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
3905
39062002-04-04 Jim Ingham <[email protected]>
3907
3908 * valarith.c (find_size_for_pointer_math): New function, either returns
3909 the size for a pointer's target, returns 1 for void *, or errors for
3910 incomplete types.
3911 (value_add, value_sub): use find_size_for_pointer_math.
3912
39132002-04-09 Daniel Jacobowitz <[email protected]>
3914
3915 * linux-low.c (linux_look_up_symbols): New hook.
3916 (linux_target_ops): Add linux_look_up_symbols.
3917 * remote-utils.c (decode_address): New function.
3918 (look_up_one_symbol): New function.
3919 * server.c (handle_query): Call target look_up_symbols hook.
3920 * server.h (look_up_one_symbol): Add prototype.
3921 * target.h (struct target_ops): Add look_up_symbols hook.
3922
39232002-04-09 Daniel Jacobowitz <[email protected]>
3924
3925 * gdbserver/server.h: Include <string.h> if HAVE_STRING_H.
3926 * ChangeLog: Correct paths in last ChangeLog entry.
3927
39282002-04-09 Daniel Jacobowitz <[email protected]>
3929
3930 * gdbserver/linux-low.h: Remove obsolete prototypes.
3931 (struct linux_target_ops): New.
3932 (extern the_low_target): New.
3933 * gdbserver/linux-low.c (num_regs, regmap): Remove declarations.
3934 (register_addr): Use the_low_target explicitly.
3935 (fetch_register): Likewise.
3936 (usr_fetch_inferior_registers): Likewise.
3937 (usr_store_inferior_registers): Likewise.
3938 * gdbserver/linux-arm-low.c (num_regs): Remove.
3939 (arm_num_regs): Define.
3940 (arm_regmap): Renamed from regmap, made static.
3941 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
3942 made static.
3943 (arm_cannot_store_register): Renamed from cannot_store_register,
3944 made static.
3945 (the_low_target): New.
3946 * gdbserver/linux-i386-low.c (num_regs): Remove.
3947 (i386_num_regs): Define.
3948 (i386_regmap): Renamed from regmap, made static.
3949 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
3950 made static.
3951 (i386_cannot_store_register): Renamed from cannot_store_register,
3952 made static.
3953 (the_low_target): New.
3954 * gdbserver/linux-ia64-low.c (num_regs): Remove.
3955 (ia64_num_regs): Define.
3956 (ia64_regmap): Renamed from regmap, made static.
3957 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
3958 made static.
3959 (ia64_cannot_store_register): Renamed from cannot_store_register,
3960 made static.
3961 (the_low_target): New.
3962 * gdbserver/linux-m68k-low.c (num_regs): Remove.
3963 (m68k_num_regs): Define.
3964 (m68k_regmap): Renamed from regmap, made static.
3965 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
3966 made static.
3967 (m68k_cannot_store_register): Renamed from cannot_store_register,
3968 made static.
3969 (the_low_target): New.
3970 * gdbserver/linux-mips-low.c (num_regs): Remove.
3971 (mips_num_regs): Define.
3972 (mips_regmap): Renamed from regmap, made static.
3973 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
3974 made static.
3975 (mips_cannot_store_register): Renamed from cannot_store_register,
3976 made static.
3977 (the_low_target): New.
3978 * gdbserver/linux-ppc-low.c (num_regs): Remove.
3979 (ppc_num_regs): Define.
3980 (ppc_regmap): Renamed from regmap, made static.
3981 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
3982 made static.
3983 (ppc_cannot_store_register): Renamed from cannot_store_register,
3984 made static.
3985 (the_low_target): New.
3986 * gdbserver/linux-s390-low.c (num_regs): Remove.
3987 (s390_num_regs): Define.
3988 (s390_regmap): Renamed from regmap, made static.
3989 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
3990 made static.
3991 (s390_cannot_store_register): Renamed from cannot_store_register,
3992 made static.
3993 (the_low_target): New.
3994 * gdbserver/linux-sh-low.c (num_regs): Remove.
3995 (sh_num_regs): Define.
3996 (sh_regmap): Renamed from regmap, made static.
3997 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
3998 made static.
3999 (sh_cannot_store_register): Renamed from cannot_store_register,
4000 made static.
4001 (the_low_target): New.
4002 * gdbserver/linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
4003 (the_low_target): New.
4004
40052002-04-09 Andrew Cagney <[email protected]>
4006
4007 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
4008 override FP_REGNUM with frame->fp. Update copyright.
4009 * parse.c (num_std_regs, std_regs): Delete.
4010 (target_map_name_to_register): Do not search std_regs. Update
4011 function description.
4012 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
4013 declarations. Update copyright.
4014 Fix PR gdb/251.
4015
40162002-04-09 Daniel Jacobowitz <[email protected]>
4017
4018 * gdbserver/Makefile.in: Add stamp-h target.
4019 * gdbserver/configure.in: Create stamp-h.
4020 * gdbserver/configure: Regenerated.
4021
40222002-04-09 Daniel Jacobowitz <[email protected]>
4023
4024 * gdbserver/inferiors.c: New file.
4025 * gdbserver/target.c: New file.
4026 * gdbserver/target.h: New file.
4027 * gdbserver/Makefile.in: Add target.o and inferiors.o. Update
4028 dependencies.
4029 * gdbserver/linux-low.c (inferior_pid): New static variable,
4030 moved from server.c.
4031 (linux_create_inferior): Renamed from create_inferior.
4032 Call add_inferior. Return 0 on success instead of a PID.
4033 (linux_attach): Renamed from myattach.
4034 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
4035 (linux_thread_alive): Renamed from mythread_alive.
4036 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
4037 child dies.
4038 (linux_resume): Renamed from myresume. Add missing ``return 0''.
4039 (regsets_store_inferior_registers): Correct error message.
4040 Add missing ``return 0''.
4041 (linux_fetch_registers): Renamed from fetch_inferior_registers.
4042 (linux_store_registers): Renamed from store_inferior_registers.
4043 (linux_read_memory): Renamed from read_inferior_memory.
4044 (linux_write_memory): Renamed from write_inferior_memory.
4045 (linux_target_ops): New structure.
4046 (initialize_low): Call set_target_ops ().
4047 * gdbserver/remote-utils.c (unhexify): New function.
4048 (hexify): New function.
4049 (input_interrupt): Send signals to ``signal_pid''.
4050 * gdbserver/server.c (inferior_pid): Remove.
4051 (start_inferior): Update create_inferior call.
4052 (attach_inferior): Call add_inferior.
4053 (handle_query): New function.
4054 (main): Call handle_query for `q' packets.
4055 * gdbserver/server.h: Include "target.h". Remove obsolete prototypes.
4056 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
4057
40582002-04-09 Daniel Jacobowitz <[email protected]>
4059
4060 * gdbserver/Makefile.in: Add WARN_CFLAGS. Update configury
4061 dependencies.
4062 * gdbserver/configure.in: Check for <string.h>
4063 * gdbserver/configure: Regenerate.
4064 * gdbserver/config.in: Regenerate.
4065 * gdbserver/gdbreplay.c: Include needed system headers.
4066 (remote_open): Remove strchr prototype.
4067 * gdbserver/linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
4068 * gdbserver/regcache.c (supply_register): Change buf argument to const void *.
4069 (supply_register_by_name): Likewise.
4070 (collect_register): Change buf argument to void *.
4071 (collect_register_by_name): Likewise.
4072 * gdbserver/regcache.h: Add missing prototypes.
4073 * gdbserver/remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
4074 * gdbserver/server.c (handle_query): New function.
4075 (attached): New static variable, moved out of main.
4076 (main): Quiet longjmp clobber warnings.
4077 * gdbserver/server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
4078 * gdbserver/utils.c (error): Remove NORETURN.
4079 (fatal): Likewise.
4080
40812002-04-09 Daniel Jacobowitz <[email protected]>
4082
4083 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
4084 after the last symbol in a block.
4085
40862002-04-09 Pierre Muller <[email protected]>
4087
4088 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
4089 is non zero as a found symbol.
4090
40912002-04-08 Andrew Cagney <[email protected]>
4092
4093 * findvar.c: Include "builtin-regs.h".
4094 (value_of_register): Call value_of_builtin_reg when applicable.
4095 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
4096 (target_map_name_to_register): Call
4097 builtin_reg_map_name_to_regnum.
4098 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
4099 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
4100 (builtin_regs_h): Define.
4101 (builtin-regs.o): New target.
4102 (findvar.o): Add $(builtin_regs_h).
4103 * builtin-regs.c, builtin-regs.h: New files.
4104 * std-regs.c: New file.
4105 Partial fix for PR gdb/251.
4106
41072002-04-08 Kevin Buettner <[email protected]>
4108
4109 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
4110 it's no longer required.
4111
41122002-04-08 Andrew Cagney <[email protected]>
4113
4114 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
4115
41162002-04-08 Kevin Buettner <[email protected]>
4117
4118 From Jimi X <[email protected]>:
4119 * rs6000-tdep.c (rs6000_software_single_step): Use
4120 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
4121 and size. Use target_insert_breakpoint() and
4122 target_remove_breakpoint() to insert and remove breakpoints
4123 instead of explicit memory reads and writes.
4124
41252002-04-08 Kevin Buettner <[email protected]>
4126
4127 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
4128 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
4129 ELF_OBJECT_FORMAT ifdef.
4130
41312002-04-08 Kevin Buettner <[email protected]>
4132
4133 From Jimi X <[email protected]>:
4134 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
4135
41362002-04-08 Kevin Buettner <[email protected]>
4137
4138 From Jimi X <[email protected]>:
4139 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
4140 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
4141
41422002-04-07 Mark Kettenis <[email protected]>
4143
4144 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
4145 s/asprintf/xasprintf/.
4146 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
4147
41482002-04-07 Andrew Cagney <[email protected]>
4149
4150 I believe Jeff Law denies responsability for this one:
4151 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
4152 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
4153 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
4154 Work-around for PR gdb/366.
4155
41562002-04-07 Elena Zannoni <[email protected]>
4157
4158 * remote-e7000.c (write_small, e7000_read_inferior_memory,
4159 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
4160 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
4161
41622002-04-07 Elena Zannoni <[email protected]>
4163
4164 * sh-tdep.c (sh_fp_frame_init_saved_regs,
4165 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
4166 information.
4167
41682002-04-07 Andrew Cagney <[email protected]>
4169
4170 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
4171 maintainer.
4172
41732002-04-07 Andrew Cagney <[email protected]>
4174
4175 * README (Reporting Bugs in GDB): Document the bug web page as the
4176 prefered way of submitting bugs.
4177 Fix PR gdb/402.
4178
41792002-04-06 Andrew Cagney <[email protected]>
4180
4181 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
4182 -1. Update comment.
4183 * gdbarch.h, gdbarch.c: Re-generate.
4184
41852002-04-07 Andreas Schwab <[email protected]>
4186
4187 * m68klinux-nat.c (fill_fpregset): Properly pass address of
4188 buffer to regcache_collect.
4189
41902002-04-06 Andrew Cagney <[email protected]>
4191
4192 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
4193 * gdbarch.c, gdbarch.h: Re-generate.
4194
41952002-04-06 Andrew Cagney <[email protected]>
4196
4197 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
4198 declaration. Fix -Werror.
4199
42002002-04-05 Daniel Jacobowitz <[email protected]>
4201
4202 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
4203 * gdbarch.c: Regenerate.
4204
42052002-04-05 Michael Snyder <[email protected]>
4206
4207 * breakpoint.c (clear_command): Rewrite middle section to
4208 combine two loops with identical control conditions.
4209 Add a cleanup to eliminate a memory leak.
4210 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
4211
42122002-04-05 H.J. Lu ([email protected])
4213
4214 * solib-svr4.c (bkpt_names): Add "__start".
4215
42162002-04-04 Andrew Cagney <[email protected]>
4217
4218 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
4219 as test for 64 bit target.
4220
42212002-04-05 Andrew Cagney <[email protected]>
4222
4223 * h8500-tdep.c (h8500_write_fp): Delete function.
4224 * dwarf2cfi.c (cfi_write_fp): Document as not used.
4225 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
4226 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
4227 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
4228 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
4229 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
4230 (s390_write_fp):
4231 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
4232 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
4233 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
4234 (d10v_write_fp): Delete function.
4235 * inferior.h (write_fp, generic_target_write_fp): Delete
4236 declarations.
4237 * regcache.c (generic_target_write_fp): Delete function.
4238 (write_fp): Delete function.
4239 * gdbarch.sh (TARGET_WRITE_FP): Delete.
4240 * gdbarch.h, gdbarch.c: Regenerate.
4241 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
4242 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
4243 (sparc64_write_fp): Delete declaration.
4244 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
4245 (h8500_write_fp): Delete declaration.
4246
42472002-04-04 Andrew Cagney <[email protected]>
4248
4249 * sparc-tdep.c (sparc64_write_fp): Delete.
4250 (sparc_push_dummy_frame): Replace write_fp call with code to store
4251 the FP directly.
4252 (sparc_gdbarch_init): Do not initialize write_fp.
4253
42542002-04-05 Kevin Buettner <[email protected]>
4255
4256 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
4257 clause.
4258
42592002-03-29 Jim Blandy <[email protected]>
4260
4261 * stack.c (get_selected_block): Add new argument `addr_in_block',
4262 used to return the exact code address we used to select the block,
4263 not just the block.
4264 * blockframe.c (get_frame_block, get_current_block): Same.
4265 * frame.h (get_frame_block, get_current_block,
4266 get_selected_block): Update declarations.
4267 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
4268 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
4269
42702002-04-05 Michael Snyder <[email protected]>
4271
4272 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
4273 warning message.
4274
42752002-04-05 J. Brobecker <[email protected]>
4276
4277 * utils.c (xfullpath): New function.
4278 * defs.h (xfullpath): Add declaration.
4279 * source.c (openp): Use xfullpath in place of gdb_realpath to
4280 avoid resolving the basename part of filenames when the
4281 associated file is a symbolic link. This fixes a potential
4282 inconsistency between the filenames known to GDB and the
4283 filenames it prints in the annotations.
4284 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
4285 to be able to match a filename with either the real filename, or
4286 the name of any symbolic link to this file.
4287 (lookup_partial_symtab): Ditto.
4288
42892002-04-04 Michael Snyder <[email protected]>
4290
4291 * breakpoint.c: Add support for hardware breakpoints in overlays.
4292 (overlay_events_enabled): New state variable.
4293 (insert_breakpoints): Use overlay_events_enabled to decide
4294 whether to attempt to set a breakpoint at the overlay load addr.
4295 Handle bp_hardware_breakpoint as well as bp_breakpoint.
4296 (remove_breakpoint): Use overlay_events_enabled to decide
4297 whether breakpoints need to be removed from overlay load addr.
4298 Handle bp_hardware_breakpoint as well as bp_breakpoint.
4299 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
4300 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
4301 disable_overlay_breakpoints): Update overlay_events_enabled.
4302
43032002-04-04 Daniel Jacobowitz <[email protected]>
4304
4305 * dwarf2read.c (struct function_range): New.
4306 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
4307 (check_cu_functions): New.
4308 (read_file_scope): Initialize global function lists.
4309 Call dwarf_decode_line after processing children.
4310 (read_func_scope): Add to global function list.
4311 (dwarf_decode_lines): Call check_cu_functions everywhere
4312 record_line is called. Call record_line with a linenumber
4313 of 0 to mark sequence ends.
4314
43152002-04-04 Michal Ludvig <[email protected]>
4316
4317 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
4318 change sync with glibc.
4319
43202002-04-03 Jim Blandy <[email protected]>
4321
4322 * configure.in: Call AC_C_INLINE.
4323 * configure: Regenerated.
4324
43252002-04-01 Daniel Jacobowitz <[email protected]>
4326
4327 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
4328 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
4329
43302002-03-31 Mark Kettenis <[email protected]>
4331
4332 * NEWS: Mention gcore support on FreeBSD/i386.
4333
4334 * fbsd-proc.c: New file.
4335 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
4336 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
4337
4338 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
4339 while statement.
4340
43412002-03-29 Jim Blandy <[email protected]>
4342
4343 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
4344 unescaped newlines in string literals, but newer ones don't. So
4345 escape them.
4346
43472002-03-26 Michael Snyder <[email protected]>
4348 Andrew Cagney <[email protected]>
4349
4350 * cli/cli-dump.c: New file. Dump memory to file,
4351 restore file to memory.
4352 * cli/cli-dump.h: New file.
4353 * Makefile.in: Add rules, dependencies for cli-dump.o.
4354 * NEWS: Mention new commands.
4355
43562002-03-28 Michael Snyder <[email protected]>
4357
4358 * symfile.c (symbol_file_add): Move test for null symbols to later.
4359
43602002-03-27 Andrew Cagney <[email protected]>
4361
4362 From veksler at il.ibm.com:
4363 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
4364 the xstrduped original path.
4365 Fix PR gdb/417.
4366
43672002-03-27 Michael Snyder <[email protected]>
4368
4369 * breakpoint.c (_initialize_breakpoint): Clean up help string.
4370 * infcmd.c (_initialize_infcmd): Ditto.
4371 * language.c (_initialize_language): Ditto.
4372 * symfile.c (_initialize_symfile): Ditto.
4373 * top.c (_init_main): Ditto.
4374 * cli/cli-cmds.c (init_cli_cmds): Ditto.
4375
43762002-03-27 Elena Zannoni <[email protected]>
4377
4378 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
4379 vector registers handling.
4380 (skip_prologue): Handle new AltiVec instructions. Fill in new
4381 fields of frame data.
4382 (frame_get_saved_regs): Fill in information for AltiVec registers.
4383
43842002-03-27 Jim Blandy <[email protected]>
4385
4386 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
4387 a function; leave this macro here to invoke that function.
4388 (symbol_init_mangled_name): Declaration for that function.
4389 * symtab.c (symbol_init_mangled_name): New function.
4390
43912002-03-27 Andrew Cagney <[email protected]>
4392
4393 * valarith.c: Replace strerror with safe_strerror.
4394 * tracepoint.c: Ditto.
4395 * lin-lwp.c: Ditto.
4396 * go32-nat.c: Ditto.
4397 * inflow.c: Ditto.
4398 * gnu-nat.c: Ditto.
4399
44002002-03-27 Andreas Schwab <[email protected]>
4401
4402 * event-top.c (command_line_handler): Remove useless if.
4403
44042002-03-27 Andreas Jaeger <[email protected]>
4405
4406 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
4407 comment.
4408
44092002-03-27 Michal Ludvig <[email protected]>
4410
4411 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
4412 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
4413 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
4414 (x86_64_linux_dr_get_status, supply_gregset),
4415 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
4416 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
4417 (x86_64_register_info_table): Add.
4418 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
4419 (x86_64_register_raw_size, x86_64_register_virtual_type),
4420 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
4421 general x86_64_register_info_table.
4422 (i386_gdbarch_init): gdbarch_register_bytes is now set
4423 dynamicaly during initialization.
4424 * regformats/reg-x86-64.dat: Synced with changes to registers above.
4425 * gdbserver/linux-x86-64-low.c: Ditto.
4426
44272002-03-27 Daniel Jacobowitz <[email protected]>
4428
4429 * gdbserver/server.c (main): Call target_signal_to_host_p
4430 and target_signal_to_host on signals received from the remote.
4431 * gdbserver/remote-utils.c (prepare_resume_reply): Call
4432 target_signal_from_host on signals sent to the remote.
4433 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
4434 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
4435
44362002-03-27 Daniel Jacobowitz <[email protected]>
4437
4438 * signals/signals.c: Include "server.h" in gdbserver build.
4439 (target_signal_from_name): Don't use STREQ.
4440 (_initialize_signals): Likewise. Don't include function in
4441 gdbserver build.
4442
44432002-03-27 Daniel Jacobowitz <[email protected]>
4444
4445 * signals.c: Moved to...
4446 * signals/signals.c: Here.
4447 * Makefile (signals.o): Update.
4448
44492002-03-26 Jeff Law ([email protected])
4450
4451 * somread.c (som_symtab_read): Remove some commented out code and
4452 updated related comments. Do not set the minimal symbol table to
4453 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
4454 in a dynamic executable.
4455 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
4456 where we are unable to find the minimal symbol for the given
4457 PC value.
4458
44592002-03-25 Jeff Law ([email protected])
4460
4461 * linux-proc.c (read_mapping): Scan up to end of line for filename.
4462
44632002-03-25 Michal Ludvig <[email protected]>
4464
4465 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
4466
44672002-03-23 Andrew Cagney <[email protected]>
4468
4469 * command.h: Update copyright.
4470 (struct cmd_list_element): Replace definition with opaque
4471 declaration.
4472 (enum cmd_types): Document that it will eventually be moved to
4473 cli/cli-decode.h
4474 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
4475 (MALLOCED_REPLACEMENT): Delete macro.
4476 * Makefile.in (cli_decode_h): Add $(command_h).
4477 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
4478 * top.c: Include "cli/cli-decode.h".
4479 * completer.c: Include "cli/cli-decode.h".
4480 * maint.c: Include "cli/cli-decode.h".
4481 * cli/cli-decode.h: Include "command.h".
4482 (enum command_class): Delete.
4483 (enum cmd_types): Comment out.
4484 (enum cmd_auto_boolean): Delete.
4485 (enum var_types): Delete.
4486
44872002-03-23 Andrew Cagney <[email protected]>
4488
4489 * cli/cli-decode.c: Include "gdb_assert.h".
4490 (add_set_or_show_cmd): New static function.
4491 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
4492 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
4493 all fields, such as func, from the set command.
4494
44952002-03-23 Andrew Cagney <[email protected]>
4496
4497 * MAINTAINERS (sh-elf): Change warning flag to -w.
4498
44992002-03-23 Andrew Cagney <[email protected]>
4500
4501 * defs.h (error): Add printf format attribute.
4502 * thread-db.c (thread_from_lwp): Fix error format string.
4503 * stack.c (parse_frame_specification): Ditto.
4504 * cli/cli-decode.c (undef_cmd_error): Ditto.
4505 * scm-lang.c (scm_lookup_name): Ditto.
4506 * tracepoint.c (trace_error): Ditto.
4507 * remote-utils.c (usage): Ditto.
4508 * remote.c (compare_sections_command): Ditto.
4509 Fix PR gdb/328.
4510
45112002-03-22 Andrew Cagney <[email protected]>
4512
4513 * gdbtypes.c (append_composite_type_field): New function.
4514 (init_composite_type): New function.
4515 * gdbtypes.h (append_composite_type_field): Declare.
4516 (init_composite_type): Ditto.
4517
45182002-03-22 Elena Zannoni <[email protected]>
4519
4520 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
4521 function.
4522 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
4523 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
4524 structure returning convention for SYSV ABI case, but not
4525 for GNU/Linux, FreeBSD, or NetBSD.
4526
45272002-03-22 Daniel Jacobowitz <[email protected]>
4528
4529 * symtab.h (lookup_block_symbol): Add mangled_name argument
4530 to prototype.
4531
4532 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
4533 with new mangled_name argument.
4534 * linespec.c (decode_line_1): Likewise.
4535 * valops (value_of_this): Likewise.
4536 * symtab.c (lookup_transparent_type): Likewise.
4537 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
4538 (lookup_symbol): If we are given a mangled name, pass it down
4539 to lookup_symbol_aux.
4540 (lookup_block_symbol): If we are given a mangled name to check
4541 against, only return symbols which match it.
4542
45432002-03-22 Christopher Faylor <[email protected]>
4544
4545 * win32-nat.c (child_create_inferior): Check for proper shell to use
4546 here, in case the user changes it on the fly.
4547 (_initialize_inftarg): Remove shell path considerations.
4548
45492002-03-21 Elena Zannoni <[email protected]>
4550
4551 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
4552 for gdbarch_max_register_raw_size and max_register_virtual_size.
4553 Adjust copyright year.
4554
45552002-03-21 Daniel Jacobowitz <[email protected]>
4556
4557 * dbxread.c (process_one_symbol): Extend the first N_SLINE
4558 in a function to cover the entire beginning of the function
4559 as well if it does not already.
4560
45612002-03-21 Tom Rix <[email protected]>
4562
4563 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
4564 (rs6000_ptrace64): Renamed from ptrace64.
4565
45662002-03-20 Martin M. Hunt <[email protected]>
4567
4568 * gdbserver/remote-utils.c (remote_open): Don't call
4569 getprotobyname, we're all using TCP here so just use
4570 IPPROTO_TCP.
4571 * gdbserver/gdbreplay.c (remote_open): Ditto.
4572
45732002-03-20 Martin M. Hunt <[email protected]>
4574
4575 * regcache.c (_initialize_regcache): No need to call
4576 build_regcache() at this time; it gets called whenever
4577 the gdbarch changes.
4578
45792002-03-20 David O'Brien <[email protected]>
4580
4581 * sparc-nat.c: Include sys/param.h where possible.
4582
45832002-03-20 Daniel Jacobowitz <[email protected]>
4584
4585 Fix PR gdb/422.
4586 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
4587 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
4588 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
4589 complex types.
4590 * stabsread.c (rs6000_builtin_type): Likewise.
4591 (read_sun_floating_type): Likewise.
4592
45932002-03-19 Peter Schauer <[email protected]>
4594
4595 * stabsread.c (read_member_functions): Remove skip code for duplicate
4596 constructor/destructor methods. Use standard parsing for these
4597 methods and just do not chain them to the list of methods after
4598 parsing.
4599
46002002-03-19 Alexandre Oliva <[email protected]>
4601
4602 * coffread.c: Remove redundant static declarations. Replace
4603 occurrences of `PTR' with `void *'.
4604 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
4605 * top.h (quit_cover): Likewise.
4606 * defs.h (catch_errors): Likewise.
4607
46082002-03-18 Andrew Cagney <[email protected]>
4609
4610 * defs.h (XMALLOC): Define.
4611 * gdb-events.sh (XMALLOC): Delete macro.
4612 * gdb-events.c, gdb-events.h: Regenerate.
4613 * gdbarch.sh (XMALLOC): Delete macro.
4614 * gdbarch.c: Regenerate.
4615 * serial.c (XMALLOC): Delete macro.
4616 * ui-file.c (XMALLOC): Ditto.
4617 * ser-unix.h (XMALLOC): Ditto.
4618 * sh-tdep.c (XMALLOC): Ditto.
4619 * ui-out.c (XMALLOC): Ditto.
4620 * utils.c (XMALLOC): Ditto.
4621 * i386-tdep.c (XMALLOC): Ditto.
4622 * gdb-events.c (XMALLOC): Ditto.
4623 * d10v-tdep.c (XMALLOC): Ditto.
4624 * cli-out.c (XMALLOC): Ditto.
4625
4626 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
4627 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
4628 * ui-file.c, ui-out.c: Ditto.
4629
46302002-03-18 Andrew Cagney <[email protected]>
4631
4632 * command.h (struct cmd_list_element): Add field context.
4633 (set_cmd_context, get_cmd_context): Declare.
4634 * cli/cli-decode.h: Ditto.
4635 * cli/cli-decode.c (get_cmd_context): New function.
4636 (set_cmd_context): New function.
4637 (add_cmd): Initialize context.
4638 Part of fixing PR gdb/145 and PR gdb/146.
4639
46402002-03-17 Andrew Cagney <[email protected]>
4641
4642 * cli/cli-decode.c (cmd_type): New function.
4643 * command.h (cmd_type): Declare.
4644 * infrun.c (set_schedlock_func): Call function cmd_type.
4645 * kod.c (kod_set_os): Call cmd_type.
4646 * cris-tdep.c (cris_version_update): Use function cmd_type.
4647 (cris_mode_update, cris_abi_update): Ditto.
4648
4649 * command.h: (execute_cmd_post_hook): Declare.
4650 (execute_cmd_pre_hook): Declare.
4651 * cli/cli-script.c (clear_hook_in_cleanup): New function.
4652 (execute_cmd_post_hook, execute_cmd_pre_hook): New
4653 functions. Execute pre/post hook while ensuring that afterwords
4654 hook_in is cleared.
4655 * top.c (execute_command): Use execute_cmd_post_hook, and
4656 execute_cmd_pre_hook to execute pre/post commands.
4657 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
4658 hook_stop_stub.
4659 (hook_stop_stub): Call execute_cmd_pre_hook.
4660
46612002-03-17 Andrew Cagney <[email protected]>
4662
4663 * kod.c (kod_set_os): Revert previous change. Is called by ``info
4664 set'' and this leads to a core dump. Move xstrdup of
4665 operating_system to after check that it is not NULL.
4666
46672002-03-17 Andrew Cagney <[email protected]>
4668
4669 * kod.c (kod_set_os): Remove unnecessary check that
4670 ``command->type'' is set_cmd.
4671
4672 * valprint.c (set_input_radix): Use input_radix.
4673 (set_output_radix): Use output_radix.
4674 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
4675 isn't reverted.
4676
46772002-03-16 Andrew Cagney <[email protected]>
4678
4679 * value.h (struct value): Delete field ``substring_addr''. Change
4680 aligner fields to force_doublest_align, force_longest_align,
4681 force_core_addr_align and force_pointer_aligh.
4682
4683 * value.h (struct value): Fix typo in above change.
4684
46852002-03-16 Peter Schauer <[email protected]>
4686
4687 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
4688 to fix internal_error from ``maintenance print architecture''.
4689
46902002-03-16 Peter Schauer <[email protected]>
4691
4692 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
4693 for gcc versions after gcc-2.8.1.
4694
46952002-03-16 Peter Schauer <[email protected]>
4696
4697 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
4698 for method resolution. Restore adjustment of ``this'' pointer after
4699 calling value_struct_elt, which was accidentally removed during the
4700 HP merge.
4701
47022002-03-15 Andrew Cagney <[email protected]>
4703
4704 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
4705 value_of_register.
4706 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
4707 get_saved_register.
4708 * value.h (value_of_register): Update.
4709
47102002-03-14 Richard Henderson <[email protected]>
4711
4712 * configure.in: Detect declaration for canonicalize_file_name.
4713 * utils.c (canonicalize_file_name): Declare, if needed.
4714 (gdb_realpath): Prefer realpath if available and usable.
4715 * config.in, configure: Rebuild.
4716
47172002-03-14 Richard Henderson <[email protected]>
4718
4719 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
4720 a constant array bound.
4721
4722 * MAINTAINERS: Add myself to write-after-approval.
4723
47242002-03-14 Michael Snyder <[email protected]>
4725
4726 * symfile.c (syms_from_objfile): Return immediately if no syms.
4727 (symbol_file_add): Return immediately if no syms.
4728 (find_sym_fns): Return immediately if no syms.
4729
47302002-03-13 Michal Ludvig <[email protected]>
4731
4732 * gdbserver/remote-util.c (remote_open): Print remote-side's
4733 IP address when remote debugging over the network.
4734
47352002-03-12 David O'Brien <[email protected]>
4736
4737 * config/sparc/fbsd.mh: Fix copyright.
4738 * config/sparc/fbsd.mt: Likewise.
4739
47402002-03-11 Richard Earnshaw <[email protected]>
4741
4742 * MAINTAINERS: Fix typo in name of gdb warnings option.
4743 (x86-64): Fix formating so that this can be parsed by awk.
4744
47452002-03-10 Daniel Jacobowitz <[email protected]>
4746
4747 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
4748 * defs.h: Include "gdb/signals.h".
4749 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
4750
47512002-03-10 Michal Ludvig <[email protected]>
4752
4753 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
4754 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
4755 from x86-64-tdep.h
4756
47572002-03-10 Daniel Jacobowitz <[email protected]>
4758 Don Howard <[email protected]>
4759
4760 * mips-tdep.c (ST0_FR): Define.
4761 (mips2_fp_compat): New function, temporarily disabled.
4762 (mips_read_fp_register_single): New function.
4763 (mips_read_fp_register_double): New function.
4764 (mips_print_register): Use them.
4765 (do_fp_register_row): Likewise.
4766
47672002-03-09 Andrew Cagney <[email protected]>
4768
4769 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
4770 approval''.
4771
47722002-03-08 Peter Schauer <[email protected]>
4773
4774 * stabsread.c (read_member_functions): Fix is_stub test for
4775 static member functions, improve comment.
4776
47772002-03-07 Richard Earnshaw <[email protected]>
4778
4779 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
4780 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
4781 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
4782 commands that set boolean values.
4783 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
4784 (arm_rdi_resume): Always initialize PC.
4785 (arm_rdi_open): Don't use rslt as a boolean.
4786 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
4787 (arm_rdi_fetch_registers, arm_rdi_store_registers)
4788 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
4789 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
4790
47912002-03-06 Alexandre Oliva <[email protected]>
4792
4793 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
4794 * configure: Rebuilt.
4795
47962002-03-06 Stephane Carrez <[email protected]>
4797
4798 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
4799 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
4800
48012002-03-06 Andrew Cagney <[email protected]>
4802
4803 * cli/cli-decode.c (set_cmd_completer): New function.
4804 * command.h (set_cmd_completer): Declare.
4805 * cli/cli-decode.h (set_cmd_completer): Ditto.
4806
4807 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
4808 * cli/cli-cmds.c (init_cli_cmds): Ditto.
4809 * win32-nat.c (_initialize_inftarg): Ditto.
4810 * remote-rdi.c (_initialize_remote_rdi): Ditto.
4811 * proc-api.c (_initialize_proc_api): Ditto.
4812 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
4813 * source.c (_initialize_source): Ditto.
4814 * exec.c (_initialize_exec): Ditto.
4815 * solib.c (_initialize_solib): Ditto.
4816 * top.c (init_main): Ditto.
4817 * tracepoint.c (_initialize_tracepoint): Ditto.
4818 * symfile.c (_initialize_symfile): Ditto.
4819 * printcmd.c (_initialize_printcmd): Ditto.
4820 * infcmd.c (_initialize_infcmd): Ditto.
4821 * corefile.c (_initialize_core): Ditto.
4822
48232002-03-05 Andrew Cagney <[email protected]>
4824
4825 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
4826
48272002-03-05 Andrew Cagney <[email protected]>
4828
4829 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
4830
48312002-03-05 Andrew Cagney <[email protected]>
4832
4833 * NEWS: Update headings, 5.2 has branched.
4834
48352002-03-04 Daniel Jacobowitz <[email protected]>
4836
4837 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
4838 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
4839 (register_addr, REGISTER_RAW_SIZE): Likewise.
4840 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
4841 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
4842
48432002-03-03 Michal Ludvig <[email protected]>
4844
4845 * MAINTAINERS (x86-64): Add myself.
4846 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
4847 changed value_ptr -> struct value *
4848
48492002-03-01 David O'Brien <[email protected]>
4850
4851 * configure.host (sparc64-*-freebsd): Add.
4852 * configure.tgt: Likewise.
4853 * config/sparc/fbsd.mh: New file.
4854 * config/sparc/fbsd.mt: Likewise.
4855 * config/sparc/nm-fbsd.h: Likewise.
4856 * config/sparc/tm-fbsd.h: Likewise.
4857
48582002-03-01 Daniel Jacobowitz <[email protected]>
4859
4860 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
4861 regformats/reg-s390x.dat.
4862
48632002-03-01 Andrew Cagney <[email protected]>
4864
4865 * utils.c: Add FIXME explaining true/false problem.
4866
48672002-02-28 Andrew Cagney <[email protected]>
4868
4869 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
4870
48712002-02-28 Michael Chastain <[email protected]>
4872
4873 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
4874
48752002-02-28 Daniel Jacobowitz <[email protected]>
4876
4877 * gdbserver/linux-s390-low.c: New file.
4878 * regformats/reg-s390.dat: New file.
4879 * regformats/reg-s390x.dat: New file.
4880 * gdbserver/configure.srv: Add S/390.
4881 * gdbserver/Makefile.in: Add S/390.
4882 * configure.tgt: Enable gdbserver for S/390.
4883
48842002-02-28 Eli Zaretskii <[email protected]>
4885
4886 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
4887 first line of the doc string for "info dos", except at the end of
4888 the sentence, since the short help stops at the first period.
4889
48902002-02-28 Jason Merrill <[email protected]>
4891
4892 * dwarf2read.c (dwarf_cfi_name): Add new codes.
4893
48942002-02-27 Fred Fish <[email protected]>
4895
4896 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
4897 comment (dumy -> dummy).
4898
48992002-02-27 Peter Schauer <[email protected]>
4900
4901 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
4902
49032002-02-27 Rodney Brown <[email protected]>
4904
4905 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
4906
49072002-02-27 Daniel Jacobowitz <[email protected]>
4908
4909 * gdbserver/acconfig.h: New file.
4910 * gdbserver/i387-fp.c: New file.
4911 * gdbserver/i387-fp.h: New file.
4912 * gdbserver/linux-x86-64.c: New file.
4913 * regformats/reg-x86-64.dat: New file.
4914 * configure.tgt: Add x86_64-*-linux* gdbserver support.
4915 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
4916 * gdbserver/configure.in: Add support for regsets.
4917 * gdbserver/config.in: Regenerate.
4918 * gdbserver/configure: Regenerate.
4919 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
4920 * gdbserver/linux-low.h: New file.
4921 * gdbserver/linux-low.c: Include "linux-low.h". Add support
4922 for regsets.
4923 * gdbserver/linux-arm-low.c: Include "linux-low.h".
4924 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
4925 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
4926 * gdbserver/linux-mips-low.c: Include "linux-low.h".
4927 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
4928 * gdbserver/linux-sh-low.c: Include "linux-low.h".
4929 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
4930 "i387-fp.h". Add PTRACE_GETREGS and friends.
4931 * gdbserver/regcache.c (supply_register): New function.
4932 (supply_register_by_name): New function.
4933 (collect_register): New function.
4934 (collect_register_by_name): New function.
4935
49362002-02-27 Daniel Jacobowitz <[email protected]>
4937
4938 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
4939 (config.status): Add configure.srv dependency.
4940 (server_h): Add config.h dependency.
4941
49422002-02-27 Daniel Jacobowitz <[email protected]>
4943
4944 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
4945 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
4946 * gdbserver/configure.srv: Change i386-*-linux* to use
4947 reg-i386-linux.o.
4948
49492002-02-26 Andrew Cagney <[email protected]>
4950
4951 * x86-64-tdep.c: Re-indent. Update copyright date.
4952
49532002-02-26 Andrew Cagney <[email protected]>
4954
4955 From Michal Ludvig <[email protected]>:
4956 * x86-64-tdep.c (value.h): Delete.
4957 (gdb_assert.h): Include.
4958 (x86_64_register_convert_to_virtual,
4959 x86_64_register_convert_to_raw ): Add check which lets only
4960 floating-point values to be converted.
4961 (value_push): Delete.
4962 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
4963 (i386_gdbarch_init): Number of register_bytes fixed.
4964
49652002-02-26 Andrew Cagney <[email protected]>
4966
4967 * MAINTAINERS: Add x86-64 target.
4968
49692002-02-26 Andrew Cagney <[email protected]>
4970
4971 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
4972 * osfsolib.c (solib_map_sections): Ditto.
4973 * irix5-nat.c (solib_map_sections): Ditto.
4974 * corelow.c (gdb_check_format): Ditto.
4975 * symfile.c (symfile_bfd_open): Ditto.
4976 * solib.c (solib_map_sections): Ditto.
4977 Fix PR gdb/354.
4978
49792002-02-26 Andrew Cagney <[email protected]>
4980
4981 * remote.c (_initialize_remote): By default, disable ``e'' and
4982 ``E'' step out-of-range packets.
4983
49842002-02-26 Andreas Schwab <[email protected]>
4985
4986 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
4987 m68k_linux_frame_saved_pc.
4988 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
4989 in_sigtramp.
4990 (SIGCONTEXT_PC_OFFSET): Remove.
4991 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
4992 m68k_linux_sigtramp_saved_pc): New functions.
4993 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
4994 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
4995 (UCONTEXT_PC_OFFSET): Define.
4996 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
4997 non-RT and RT signal trampolines.
4998
49992002-02-26 Richard Earnshaw <[email protected]>
5000
5001 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
5002 (TARGET_NBPG, STACK_END_ADDR): Delete
5003 (VARIABLES_INSIDE_BLOCK): Delete.
5004
50052002-02-25 Andrew Cagney <[email protected]>
5006
5007 * utils.c (perror_with_name): Make string parameter constant.
5008 (print_sys_errmsg): Ditto.
5009 (query): Ditto.
5010 * defs.h (perror_with_name): Update.
5011 (print_sys_errmsg): Update.
5012 (query): Update.
5013
50142002-02-25 Daniel Jacobowitz <[email protected]>
5015
5016 From Eliot Dresselhaus <[email protected]>:
5017 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
5018
50192002-02-25 Peter Schauer <[email protected]>
5020
5021 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
5022 if it already matches the current architecture from the exec file.
5023 Include arch-utils.h for gdbarch_info_init prototype.
5024 * Makefile.in (rs6000-nat.o): Update dependencies.
5025
50262002-02-25 Eli Zaretskii <[email protected]>
5027
5028 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
5029 list of exported variables.
5030
50312002-02-24 Daniel Jacobowitz <[email protected]>
5032
5033 * gdbserver/configure.srv: New file.
5034 * gdbserver/configure.in: Use configure.srv instead
5035 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
5036 from it.
5037 * gdbserver/configure: Regenerated.
5038 * gdbserver/terminal.h: New file.
5039 * gdbserver/Makefile.in: Update for configure changes. Remove
5040 more unneeded include paths.
5041
50422002-02-24 Andrew Cagney <[email protected]>
5043
5044 From wiz at danbala:
5045 * config/sparc/tm-sp64.h: Fix grammar and typos.
5046 Fix PR gdb/287.
5047
50482002-02-24 Andrew Cagney <[email protected]>
5049
5050 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
5051 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
5052 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
5053 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
5054 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
5055 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
5056 * s390-tdep.c: Ditto.
5057 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
5058 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
5059 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
5060 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
5061 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
5062 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
5063 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
5064 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
5065 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
5066 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
5067 Fix PR gdb/378.
5068
50692002-02-23 Andrew Cagney <[email protected]>
5070
5071 * lin-thread.c: Delete file.
5072 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
5073 to gdb_proc_service.h.
5074 * configure: Re-generate.
5075
5076 * ocd.c (ocd_open): Do not try to open the "ocd" device.
5077 * serial.c (serial_open): Delete check for "ocd".
5078 Fix PR gdb/349.
5079
5080 * Makefile.in (linux-thread.o): Delete target.
5081 * linux-thread.c: Delete file.
5082
5083 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
5084 renamed SH files to be consistent.
5085
5086 * symtab.c (sort_search_symbols): Use xfree.
5087
50882002-02-23 Richard Earnshaw <[email protected]>
5089
5090 * arm-linux-tdep.c (arm_linux_init_abi): Register
5091 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
5092 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
5093 definition with undef, since we don't want the sysvr4 definition.
5094 (SKIP_TRAMPOLINE_CODE): Likewise.
5095
50962002-02-23 Andrew Cagney <[email protected]>
5097
5098 From 2002-02-22 Alfred M. Szmidt <[email protected]>:
5099
5100 * configure.in: (AC_CHECK_FUNCS) Added test for
5101 canonicalize_file_name Regenerated.
5102 * config.in, configure: Regenerated.
5103 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
5104 defined use canonicalize_file_name.
5105
51062002-02-23 Michael Chastain <[email protected]>
5107
5108 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
5109
51102002-02-23 Andrew Cagney <[email protected]>
5111
5112 * README: Remove references to cygnus.com.
5113 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
5114 dot com'' form. Remove references to cygnus.com and sourceware.
5115
51162002-02-23 Andrew Cagney <[email protected]>
5117
5118 From 2002-02-19 Paul Eggert <[email protected]>:
5119 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
5120 1003.1-2001 no longer allows "head -1".
5121 * gdb/Makefile.in (version.c): Likewise.
5122 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
5123 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
5124 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
5125
51262002-02-23 Andrew Cagney <[email protected]>
5127
5128 * cli/cli-decode.c (cmd_cfunc_eq): New function.
5129 * command.h (cmd_cfunc_eq): Declare.
5130 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
5131
5132 * cli/cli-cmds.h (is_complete_command): Change parameter to a
5133 ``struct cmd_list_element *''.
5134 * cli/cli-cmds.c (is_complete_command): Update. Use
5135 cmd_cfunc_eq.
5136 * top.c (execute_command): Pass the command to
5137 is_complete_command.
5138 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
5139
51402002-02-23 Andrew Cagney <[email protected]>
5141
5142 From 2002-02-20 Martin Schwidefsky <[email protected]>:
5143 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
5144 architecture defines.
5145 * s390-tdep.c (s390_gdbarch_init): Likewise.
5146
51472002-02-23 Richard Earnshaw <[email protected]>
5148
5149 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
5150 (arm_linux_push_arguments): Likewise.
5151 (arm_linux_init_abi): Register them. Also register linux-specific
5152 call_dummy_words.
5153 (find_minsym_and_objfile): Use strcmp, not STREQ.
5154 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
5155 (arm_linux_call_dummy_words): Delete declaration.
5156 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
5157 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
5158 declarations.
5159 (LOWEST_PC): Delete.
5160
51612002-02-23 Peter Schauer <[email protected]>
5162
5163 * maint.c (print_section_info): Do not prepend `0x' to filepos
5164 output, it will be handled by local_hex_string_custom.
5165
51662002-02-23 Richard Earnshaw <[email protected]>
5167
5168 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
5169 (store_newfpe_double, store_newfpe_extended, store_fpregister)
5170 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
5171
51722002-02-22 Jim Blandy <[email protected]>
5173
5174 Indicate that the bcache functions don't change the strings
5175 they're passed.
5176 * bcache.h (bcache, hash): Add `const' keywords to declarations.
5177 * bcache.c (bcache, hash): Add `const' keywords to definitions.
5178
51792002-02-22 Pierre Muller <[email protected]>
5180
5181 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
5182
51832002-02-21 Christopher Faylor <[email protected]>
5184
5185 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
5186 find the complete path to a loaded DLL.
5187
51882002-02-21 Fred Fish <[email protected]>
5189
5190 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
5191 that marks the end of the range of a function, enter a line number
5192 entry that has a line number of zero and a PC offset that matches
5193 the end of the function. This starts a range of PC's for which no
5194 line number information is known.
5195 * symtab.c (find_pc_sect_line): If our best fit is in a range of
5196 PC's for which no line number info is found (line number is zero)
5197 then we didn't find any valid line information.
5198 * symtab.h: Document use of zero line number entry.
5199
52002002-02-21 Elena Zannoni <[email protected]>
5201
5202 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
5203 (have_ptrace_getvrregs): Define for run time checks.
5204 (gdb_vrregset_t): New type for Altivec register handling.
5205 (fetch_register, store_register): Fetch/store altivec register
5206 when needed.
5207 (fetch_altivec_register, store_altivec_register): New functions.
5208 (supply_vrregset, fill_vrregset): New functions.
5209 (fetch_altivec_registers, store_altivec_registers): New functions.
5210 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
5211 registers as well.
5212
52132002-02-21 Jiri Smid <[email protected]>
5214
5215 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
5216
52172002-02-21 Richard Earnshaw <[email protected]>
5218
5219 * Makefile.in (armnbsd-nat.o): Update dependencies.
5220 * armnbsd-nat.c (supply_gregset): New function. Common code to
5221 supply the integer register set.
5222 (supply_fparegset): New function. Similar for FPA registers.
5223 (fetch_regs, fetch_fp_regs): Use them.
5224 (fetch_core_registers): Likewise.
5225 (fetch_elfcore_registers): New function.
5226 (arm_netbsd_elfcore_fns): New core-file type specification.
5227 (_initialize_arm_netbsd_nat): Register it.
5228
52292002-02-21 Richard Earnshaw <[email protected]>
5230
5231 * armnbsd-nat.c: Include gdbcore.h.
5232 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
5233 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
5234 'void' to declaration, to shut up ARI.
5235 (fetch_core_registers): Make static. Rewrite using supply_register.
5236 (arm_netbsd_core_fns): New core-file type specification.
5237 (_initialize_arm_netbsd_nat): New function.
5238
52392002-02-21 Christopher Faylor <[email protected]>
5240
5241 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
5242 value.
5243
52442002-02-20 Christopher Faylor <[email protected]>
5245
5246 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
5247 fails.
5248
52492002-02-20 Daniel Jacobowitz <[email protected]>
5250
5251 * jv-exp.y (parse_number): Change type of implicit longs
5252 to builtin_type_uint64.
5253
52542002-02-20 Daniel Jacobowitz <[email protected]>
5255
5256 * gdbserver/linux-low.c (mywait): Change argument to waitpid
5257 to be an integer instead of a `union wait'.
5258
52592002-02-20 Daniel Jacobowitz <[email protected]>
5260
5261 * mips-linux-nat.c: Call the operating system GNU/Linux.
5262 * mips-linux-tdep.c: Likewise.
5263 * mips-tdep.c: Likewise.
5264
52652002-02-20 Daniel Jacobowitz <[email protected]>
5266
5267 Fix PR gdb/265.
5268 * jv-exp.y (parse_number): Handle 64-bit integers.
5269
52702002-02-20 Daniel Jacobowitz <[email protected]>
5271
5272 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
5273 AC_STDC_HEADERS to AC_HEADER_STDC.
5274 * gdbserver/configure: Regenerated.
5275
52762002-02-20 Richard Earnshaw <[email protected]>
5277
5278 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
5279 is defined.
5280 * sparc-tdep.c (get_longjmp_target): Likewise.
5281
52822002-02-20 Richard Earnshaw <[email protected]>
5283
5284 * News: Add news about ARM and Multi-arch. Mention the new target
5285 arm*-*-netbsd*.
5286
52872002-02-19 Jim Blandy <[email protected]>
5288
5289 * stabsread.c (error_type_complaint): Improve error message.
5290
52912002-02-19 Daniel Jacobowitz <[email protected]>
5292
5293 * gdbserver/README: Update documentation.
5294 * gdbserver/configure.in: Update configury to match documentation.
5295 * gdbserver/Makefile.in: Likewise.
5296 * gdbserver/configure: Regenerated.
5297 * gdbserver/aclocal.m4: New file, generated by aclocal.
5298 * gdbserver/config.in: New file, generated by autoheader.
5299
53002002-02-19 Richard Earnshaw <[email protected]>
5301
5302 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
5303 armnbsd-nat.c.
5304
53052002-02-19 Richard Earnshaw <[email protected]>
5306
5307 * arm-tdep.h (enum arm_float_model): New enum.
5308 (struct gdbarch_tdep): Add fp_model.
5309 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
5310 up floating-point conversions until we know the floating-point model
5311 in use by the inferior. Don't complain about being unable to
5312 determine the ABI of the inferior when we don't have one.
5313 (arm_extract_return_value): Support different floating-point models.
5314 (arm_store_return_value): Likewise.
5315 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
5316 ARM_FLOAT_SOFT.
5317 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
5318
53192002-02-19 Peter Schauer <[email protected]>
5320
5321 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
5322 of ``current_gdbarch''.
5323
53242002-02-19 Richard Earnshaw <[email protected]>
5325
5326 * armnbsd-nat.c : ANSIfy all function declarations.
5327 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
5328 (fetch_inferior_registers): Re-implement in terms of above.
5329 (store_register, store_regs, store_fp_register, store_fp_regs): New.
5330 (store_inferior_registers): Re-implement in terms of above.
5331
53322002-02-19 Richard Earnshaw <[email protected]>
5333
5334 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
5335 kernel.
5336 * arm-linux-tdep.c: Likewise.
5337 * config/arm/tm-linux.h: Likewise.
5338
53392002-02-19 Richard Earnshaw <[email protected]>
5340
5341 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
5342 * config/arm/nbsd.mt (TM_FILE): Delete.
5343 * config/arm/tm-nbsd.h: Delete.
5344
53452002-02-19 Richard Earnshaw <[email protected]>
5346
5347 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
5348 Initialize CALL_DUMMY_LENGTH.
5349
53502002-02-19 Richard Earnshaw <[email protected]>
5351
5352 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
5353 function.
5354 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
5355 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
5356 defines one thing and that is incorrect for this port.
5357 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
5358
53592002-02-18 Pierre Muller <[email protected]>
5360
5361 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
5362
53632002-02-18 Pierre Muller <[email protected]>
5364
5365 * win32-nat.c (display_selector): New function. Displays information
5366 about the information returned by GetThreadSelectorEntry API function.
5367 (display_selectors): New function. Displays the infomation of
5368 the selector given as argument, or of CS, DS ans FS selectors
5369 if no argument is given.
5370 ( _initialize_inftarg): Add "w32" as info prefix command.
5371 Add "info w32 selector" as command calling display_selectors.
5372
53732002-02-19 Pierre Muller <[email protected]>
5374
5375 * i386-tdep.c (get_longjmp_target): Fix compilation failure
5376 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
5377 if not defined.
5378
53792002-02-18 Richard Earnshaw <[email protected]>
5380
5381 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
5382
53832002-02-18 Richard Earnshaw <[email protected]>
5384
5385 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
5386 (arm_fix_call_dummy): Call it.
5387 (arm_call_dummy_breakpoint_offset): Delete.
5388 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
5389 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
5390
53912002-02-18 Andrew Cagney <[email protected]>
5392
5393 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
5394 Default to func_frame_chain_valid.
5395 * gdbarch.h, gdbarch.c: Re-generate.
5396 * frame.h (FRAME_CHAIN_VALID): Delete definition.
5397
53982002-02-18 Elena Zannoni <[email protected]>
5399
5400 * ppc-linux-nat.c: Update copyright.
5401 (fetch_register, store_register): Add tid parameter, don't compute
5402 tid here.
5403 (fetch_ppc_registers, store_ppc_registers): Add tid
5404 parameter. Pass it along to callees.
5405 (fetch_inferior_registers, store_inferior_registers): Compute tid
5406 here, and pass it to calleed functions.
5407 (fill_gregset, supply_fpregset): Clean up formatting.
5408
54092002-02-18 Richard Earnshaw <[email protected]>
5410
5411 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
5412 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
5413
54142002-02-18 Richard Earnshaw <[email protected]>
5415
5416 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
5417 * gdbarch.c gdbarch.h: Regenerate.
5418 * breakpoint.c (create_longjmp_breakpoint): Always compile this
5419 function.
5420 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
5421 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
5422 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
5423
5424 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
5425 * arm-tdep.c (arm_get_longjmp_target): New function.
5426 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
5427 this to a positive value register arm_get_longjmp_target as the
5428 longjmp handler.
5429 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
5430 (arm_linux_init_abi): Set up longjmp description in tdep.
5431 * armnbsd-nat.c (get_longjmp_target): Delete.
5432 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
5433 description in tdep.
5434 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
5435 (get_longjmp_target): Delete declaration.
5436 (GET_LONGJMP_TARGET): Delete.
5437 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
5438 (GET_LONGJMP_TARGET): Delete.
5439
54402002-02-17 Kevin Buettner <[email protected]>
5441
5442 From Peter Schauer <[email protected]>:
5443 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
5444 of ``current_gdbarch''.
5445
54462002-02-17 Tom Tromey <[email protected]>
5447
5448 * cli/cli-cmds.c (compare_strings): New function.
5449 (complete_command): Only print each unique item once.
5450 * completer.h (complete_line): Declare.
5451 * completer.c (complete_line): New function.
5452 (line_completion_function): Use it.
5453
54542002-02-16 Andrew Cagney <[email protected]>
5455
5456 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
5457 * gdbarch.h, gdbarch.c: Re-generate.
5458
54592002-02-16 Daniel Jacobowitz <[email protected]>
5460
5461 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
5462
54632002-02-16 Daniel Jacobowitz <[email protected]>
5464
5465 From Peter Schauer <[email protected]>:
5466 * valops.c (value_arg_coerce): Don't take the address of a reference
5467 to convert an argument to a reference.
5468
54692002-02-15 Christopher Faylor <[email protected]>
5470
5471 * win32-nat.c (get_image_name): New function.
5472 (handle_load_dll): Use get_image_name function.
5473 (get_child_debug_event): Avoid registering debug events until possibly
5474 execed process is started.
5475 (child_create_inferior): Allow invocation via shell so that command
5476 line redirection, etc. works ok.
5477 (_initialize_inftarg): Add new command: "set shell" to control whether
5478 a shell is used to start a process.
5479
54802002-02-15 Daniel Jacobowitz <[email protected]>
5481
5482 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
5483 instead of find_register_by_number.
5484 (cannot_store_register): Likewise.
5485
54862002-02-14 Pierre Muller <[email protected]>
5487
5488 * dwarf2read.c: Replace fprintf (stderr, ...) by
5489 fprintf_unfiltered (gdb_stderr, ...).
5490
54912002-02-15 Daniel Jacobowitz <[email protected]>
5492
5493 * gdbserver/gdbserver.1: Document --attach.
5494
54952002-02-15 Richard Earnshaw <[email protected]>
5496
5497 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
5498 descriptions.
5499 * arm-tdep.c (arm_default_arm_le_breakpoint)
5500 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
5501 (arm_default_thumb_be_breakpoint): New. Initialize them from
5502 traditional breakpoint defines.
5503 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
5504 (arm_gdbarch_init): Initialize new breakpoint variables.
5505 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
5506 (arm_linux_init_abi): Initialize linux-specific breakpoint.
5507 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
5508 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
5509 code out to ...
5510 (arm_netbsd_init_abi_common): ... here; new function.
5511 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
5512 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
5513 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
5514 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
5515
55162002-02-15 Richard Earnshaw <[email protected]>
5517
5518 * arm-tdep.h (enum arm_abi): New enum.
5519 (struct gdbarch_tdep): New structure.
5520 (LOWEST_PC): Provide a default.
5521 (arm_gdbarch_register_os_abi): Declare new function.
5522 * arm-tdep.c (arm_abi_names): New array.
5523 (process_note_abi_tag_sections): New function.
5524 (get_elfosabi): New function.
5525 (arm_gdbarch_register_os_abi): New function.
5526 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
5527 support for that ABI has been built in, then call the appropriate
5528 configuration routine. Use gdbarch_num_regs() to get the number
5529 of registers.
5530 (arm_dump_tdep): New function.
5531 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
5532 place-holder functions.
5533 (_initialize_arm_tdep): Register them.
5534 * config/arm/tm-arm.h (LOWEST_PC): Delete.
5535
5536 * armnbsd-tdep.c: New file.
5537 * Makefile.in (armnbsd-tdep.o): Add dependencies.
5538 * config/arm/nbsd.mt (TDEPFILES): Add it.
5539 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
5540
5541 * armnbsd-nat.c: Include regcache.h.
5542 * Makefile.in (armnbsd-nat.o): Update dependency list.
5543
5544 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
5545
55462002-02-14 Daniel Jacobowitz <[email protected]>
5547
5548 * gdbserver/Makefile.in: Fix typos in target rules.
5549
55502002-02-14 Daniel Jacobowitz <[email protected]>
5551
5552 Fix part of PR gdb/267.
5553 * linespec.c (find_methods): Handle constructors specially for now.
5554
55552002-02-14 Corinna Vinschen <[email protected]>
5556
5557 * arm-tdep.c (arm_push_arguments): Eliminate special float type
5558 handling.
5559 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
5560 standard_coerce_float_to_double().
5561
55622002-02-14 Christopher Faylor <[email protected]>
5563
5564 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
5565 GDBINIT_FILENAME.
5566
55672002-02-14 Elena Zannoni <[email protected]>
5568
5569 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
5570 find_variant_by_name, because it confuses the multiarch
5571 framework. Return NULL if there isn't an architecture with the
5572 user supplied name, instead of forcing a different one without
5573 recording the change with the multiarch machinery.
5574 (find_variant_by_name): Delete.
5575
55762002-02-14 Peter Schauer <[email protected]>
5577
5578 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
5579 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
5580
55812002-02-13 Martin M. Hunt <[email protected]>
5582
5583 * stack.c (print_frame_info_base): When calling
5584 print_frame_info_listing_hook, set current_source_symtab.
5585
55862002-02-14 Daniel Jacobowitz <[email protected]>
5587
5588 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
5589 and remove unused $(INCLUDE_DIR).
5590 Add regcache.c to OBS.
5591 Add generated register protocol files to clean target.
5592 Update dependencies for new objects, obsolete old target code.
5593
5594 * gdbserver/linux-low.c: Remove all platform-specific code to
5595 new files. Remove various dead code. Update to use regcache
5596 functionality.
5597 * gdbserver/remote-utils.c (fromhex): Add return statement
5598 to quiet warning.
5599 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
5600 constant.
5601 (input_interrupt): Add integer parameter to match prototype
5602 of a signal handler.
5603 (outreg): Use register_data ().
5604 (prepare_resume_reply): Use gdbserver_expedite_regs.
5605 * gdbserver/server.c (main): Dynamically allocate own_buf because
5606 PBUFSIZ is no longer constant. Use registers_to_string () and
5607 registers_from_string ().
5608 * gdbserver/server.h: No longer include "defs.h". Add prototypes
5609 for error (), fatal (), and warning (). Update definition of
5610 PBUFSIZ to use regcache functionality. Add include guard.
5611 * gdbserver/utils.c (fatal): Add missing ``const''.
5612 (warning): New function.
5613
5614 * regformats/regdat.sh: Include "regcache.h" in generated files.
5615 Provide init_registers () function.
5616 * regformats/regdef.h: Add prototype for set_register_cache ().
5617 Add include guard.
5618
5619 * gdbserver/linux-arm-low.c: New file.
5620 * gdbserver/linux-i386-low.c: New file.
5621 * gdbserver/linux-ia64-low.c: New file.
5622 * gdbserver/linux-m68k-low.c: New file.
5623 * gdbserver/linux-mips-low.c: New file.
5624 * gdbserver/linux-ppc-low.c: New file.
5625 * gdbserver/linux-sh-low.c: New file.
5626
5627 * gdbserver/regcache.c: New file.
5628 * gdbserver/regcache.h: New file.
5629
5630 * gdbserver/low-linux.c: Removed obsolete file.
5631
56322002-02-14 Daniel Jacobowitz <[email protected]>
5633
5634 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
5635 * config/i386/linux.mt: Likewise.
5636 * config/ia64/linux.mt: Likewise.
5637 * config/m68k/linux.mh: Likewise.
5638 * config/powerpc/linux.mh: Likewise.
5639 * config/mips/linux.mt: Likewise.
5640
5641 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
5642
5643 * config/i386/i386lynx.mh: Mark gdbserver variables
5644 as (currently) obsolete for this target.
5645 * config/i386/nbsd.mt: Likewise.
5646 * config/i386/nbsdelf.mt: Likewise.
5647 * config/m32r/m32r.mt: Likewise.
5648 * config/m68k/m68klynx.mh: Likewise.
5649 * config/m68k/nbsd.mt: Likewise.
5650 * config/m68k/sun3os4.mh: Likewise.
5651 * config/mips/vr5000.mt: Likewise.
5652 * config/ns32k/nbsd.mt: Likewise.
5653 * config/pa/hppabsd.mh: Likewise.
5654 * config/pa/hppaosf.mh: Likewise.
5655 * config/powerpc/nbsd.mt: Likewise.
5656 * config/rs6000/rs6000lynx.mh: Likewise.
5657 * config/s390/s390.mt: Likewise.
5658 * config/s390/s390x.mt: Likewise.
5659 * config/sparc/sparclynx.mh: Likewise.
5660 * config/sparc/sun4os4.mh: Likewise.
5661 * config/i386/x86-64linux.mt: Likewise.
5662 * config/sparc/linux.mh: Likewise.
5663
56642002-02-14 Daniel Jacobowitz <[email protected]>
5665
5666 * configure.tgt: Configure gdbserver only for known working
5667 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
5668 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
5669 SUBDIRS if it is configured. Update comment for ${nativefile}.
5670 * configure: Regenerated.
5671
56722002-02-13 Michael Snyder <[email protected]>
5673
5674 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
5675
5676 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
5677 (default_gcore_mach): Just return 0, work around a problem in bfd.
5678 (default_gcore_target): OK to return NULL if exec_bfd is null.
5679 (make_mem_sec): Use a cast, avoid a warning.
5680
5681 * procfs.c (find_memory_regions_callback): Use a cast instead of
5682 calling host_pointer_to_address (which complains if
5683 sizeof (host pointer) != sizeof (target pointer)).
5684 (procfs_make_note_section): Avoid overflow in psargs string.
5685
5686 * procfs.c (procfs_make_note_section): Make the default
5687 implementation return an error.
5688
56892002-02-13 Rodney Brown <[email protected]>
5690
5691 * procfs.c (procfs_make_note_section): Provide a default definition
5692 (for alpha-dec-osf4.0f). Fix typos.
5693
56942002-02-13 Elena Zannoni <[email protected]>
5695
5696 * linux-proc.c: Add include of regcache.h.
5697 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
5698
56992002-02-13 Andrew Cagney <[email protected]>
5700
5701 From 2002-01-18 Greg McGary <[email protected]>:
5702 * memattr.c (create_mem_region): Disallow useless empty region.
5703 Regions are half-open intervals, so allow [A..B) [B..C) as
5704 non-overlapping.
5705
57062002-02-13 Michael Chastain <[email protected]>
5707
5708 * defs.h: Kill CONST_PTR.
5709 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
5710 * c-lang.c (c_builtin_types): Likewise.
5711 * ch-lang.c (ch_builtin_types): Likewise.
5712 * f-lang.c (f_builtin_types): Likewise.
5713 * language.c (unknown_builtin_types): Likewise.
5714 * m2-lang.c (m2_builtin_types): Likewise.
5715 * p-lang.c (pascal_builtin_types): Likewise.
5716 * scm-lang.c (c_builtin_types): Likewise.
5717
57182002-02-13 Keith Seitz <[email protected]>
5719
5720 * arm-tdep.h (arm_get_next_pc): Add declaration.
5721
57222002-02-13 Richard Earnshaw <[email protected]>
5723
5724 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
5725 with other related struct-returning functions.
5726 (arm_extract_struct_value_address): New function.
5727 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
5728 initialize float_format, double_format and long_double_format as
5729 appropriate to the endianness of the target.
5730 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
5731 (arm_use_struct_convention): Delete declaration.
5732 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
5733
57342002-02-13 Keith Seitz <[email protected]>
5735
5736 * defs.h (core_addr_to_string_nz): New function.
5737
57382002-02-13 Mark Kettenis <[email protected]>
5739
5740 Apply missing bits of 2002-01-15 patch.
5741 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
5742 (fill_fpregset): Use i387_fill_fsave.
5743
57442002-02-12 Keith Seitz <[email protected]>
5745
5746 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
5747 (core_addr_to_string_nz): New function.
5748
57492002-02-11 Richard Earnshaw <[email protected]>
5750
5751 * arm-linux-nat.c: Really include arm-tdep.h.
5752 * config/arm/tm-linux.h (struct type, struct value): Declare.
5753
57542002-02-11 Michael Snyder <[email protected]>
5755
5756 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
5757 (gcore section): Ifdef for Solaris and Unixware only.
5758 (procfs_do_thread_registers): Unixware needs one lwpstatus
5759 per thread (not one prstatus or pstatus).
5760 (procfs_make_note_section): Iterate only over kernel threads (lwps),
5761 not over all gdb threads. For unixware, call elfcore_write_pstatus
5762 once before iterating over threads.
5763
57642002-02-11 Richard Earnshaw <[email protected]>
5765
5766 * arm-tdep.h: New file.
5767 * arm-tdep.c: Include arm-tdep.h.
5768 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
5769 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
5770 (arm_print_float_info, arm_register_type, convert_to_extended)
5771 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
5772 (arm_extract_return_value, arm_register_name): Make static.
5773 (arm_software_single_step): Similarly. Fix types in declaration.
5774 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
5775 (arm_store_return_value, arm_store_struct_return): New functions.
5776 (arm_gdbarch_init): Register the above functions. Also register
5777 call_dummy_start_offset, sizeof_call_dummy_words,
5778 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
5779 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
5780 max_register_virtual_size, register_size. Set up
5781 prologue_cache.saved_regs here, rather than ...
5782 (_initialize_arm_tdep): ... here.
5783 * config/arm/tm-arm.h (struct type, struct value): Delete forward
5784 declarations.
5785 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
5786 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
5787 (arm_print_float_info, arm_register_type, convert_to_extended)
5788 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
5789 (arm_extract_return_value, arm_register_name): Delete declarations.
5790 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
5791 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
5792 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
5793 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
5794 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
5795 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
5796 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
5797 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
5798 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
5799 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
5800 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
5801 (arm_get_next_pc): No-longer static -- these are needed by the RDI
5802 interface.
5803 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
5804 * remote-rdi.c remote-rdp.c: Likewise.
5805 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
5806 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
5807 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
5808 definition.
5809
5810 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
5811 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
5812 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
5813 from non-ARM_ prefixed definitions.
5814 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
5815 all uses of above.
5816 * remote-rdi.c remote-rdp.c: Likewise.
5817 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
5818
58192002-02-11 Richard Earnshaw <[email protected]>
5820
5821 * arm-tdep.c (arm_frameless_function_invocation)
5822 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
5823 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
5824 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
5825 (arm_pop_frame, arm_get_next_pc): Make static.
5826 (arm_gdbarch_init): Register above in gdbarch structure.
5827 (arm_read_fp): Renamed from arm_target_read_fp.
5828 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
5829 * config/arm/tm-arm.h (arm_frameless_function_invocation)
5830 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
5831 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
5832 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
5833 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
5834 (arm_pc_is_thumb_dummy): Delete declarations.
5835 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
5836 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
5837 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
5838 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
5839
58402002-02-10 Daniel Jacobowitz <[email protected]>
5841
5842 * symtab.c (compare_search_syms): New function.
5843 (sort_search_symbols): New function.
5844 (search_symbols): Sort symbols after searching rather than
5845 before.
5846
58472002-02-10 Andrew Cagney <[email protected]>
5848
5849 * NEWS: Linux -> GNU/Linux.
5850
58512002-02-10 Andrew Cagney <[email protected]>
5852
5853 * gdbarch.sh: For for level one methods, disallow a definition
5854 when partially multi-arched. Add comments explaining rationale.
5855 * gdbarch.h: Re-generate.
5856
58572002-02-10 Andrew Cagney <[email protected]>
5858
5859 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
5860 multi-arch partial.
5861
58622002-02-10 Andrew Cagney <[email protected]>
5863
5864 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
5865 field. Use diff -u.
5866 * gdbarch.c: Re-generate.
5867
58682002-02-10 Andrew Cagney <[email protected]>
5869
5870 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
5871 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
5872 partial.
5873
58742002-02-10 Andrew Cagney <[email protected]>
5875
5876 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
5877 multi-arch partial.
5878 (PUSH_ARGUMENTS): Switch to using predefault.
5879 * gdbarch.c: Regenerate.
5880
58812002-02-10 Andrew Cagney <[email protected]>
5882
5883 * valops.c (PUSH_ARGUMENTS): Delete definition.
5884 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
5885 partial. Default to default_push_arguments.
5886 * gdbarch.h, gdbarch.c: Regenerate.
5887
58882002-02-09 Andrew Cagney <[email protected]>
5889
5890 * defs.h (throw_exception): Rename return_to_top_level. Update
5891 comments.
5892 * utils.c (error_stream, internal_verror, quit): Ditto.
5893 * top.c (throw_exception, catcher): Ditto.
5894 * sparclet-rom.c (sparclet_load): Ditto.
5895 * remote.c (interrupt_query, minitelnet): Ditto.
5896 * remote-sds.c (interrupt_query): Ditto.
5897 * remote-mips.c (mips_error, mips_kill): Ditto.
5898 * ocd.c (interrupt_query): Ditto.
5899 * monitor.c (monitor_interrupt_query): Ditto.
5900 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
5901 * target.h: Update comment.
5902
5903 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
5904
59052002-02-09 Andrew Cagney <[email protected]>
5906
5907 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
5908 default_double_format.
5909 * gdbarch.h, gdbarch.c: Re-generate.
5910 * findvar.c (floatformat_unknown): Delete variable definition.
5911 * doublest.h (floatformat_unknown): Delete variable declaration.
5912
59132002-02-09 Jim Blandy <[email protected]>
5914
5915 * stabsread.c (read_type): Add code to parse Sun's syntax for
5916 prototyped function types.
5917
59182002-02-09 Andrew Cagney <[email protected]>
5919
5920 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
5921 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
5922
59232002-02-09 Peter Schauer <[email protected]>
5924
5925 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
5926 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
5927 now _initialize_xcoffsolib gets called again and overrides the
5928 commands from solib.c in a native configuration.
5929
59302002-02-09 Mark Kettenis <[email protected]>
5931
5932 * doublest.c (store_typed_floating): Don't try to return a value.
5933 Fixes PR gdb/290.
5934
59352002-02-08 Jim Blandy <[email protected]>
5936
5937 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
5938 is prototyped and has no arguments, print its argument list as
5939 `(void)'.
5940
59412002-02-08 Chris Demetriou <[email protected]>
5942
5943 * MAINTAINERS (write-after-approval): Add myself.
5944 (paper-trail): I've escaped!
5945
59462002-02-08 Christopher Faylor <[email protected]>
5947
5948 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
5949 changes.
5950 (_initialize_check_for_gdb_ini): Ditto.
5951
59522002-02-08 Martin M. Hunt <[email protected]>
5953
5954 * win32-nat.c (cygwin_pid_to_str): Fix typo.
5955 xaprintf -> xasprintf.
5956
59572002-02-08 Pierre Muller <[email protected]>
5958
5959 * win32-nat.c: Remove use of printf and sprintf functions.
5960
59612002-02-08 Richard Earnshaw <[email protected]>
5962
5963 * arm-tdep.c (arm_frame_chain_valid): Make static.
5964 (arm_push_arguments): Likewise.
5965 (arm_gdbarch_init): New function.
5966 (_initialize_arm_tdep): Call it.
5967 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
5968 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
5969 (FRAME_CHAIN_VALID): Delete.
5970 (arm_frame_chain_valid): Delete declaration.
5971 (PUSH_ARGUMENTS): Delete.
5972 (arm_push_arguments): Delete declaration.
5973 (CALL_DUMMY_P): Delete.
5974
59752002-02-08 Andrew Cagney <[email protected]>
5976 Corinna Vinschen <[email protected]>
5977
5978 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
5979 on builtin float types.
5980
59812002-02-08 Daniel Jacobowitz <[email protected]>
5982
5983 * utils.c: Include <curses.h> before "bfd.h".
5984 * tui/tui-hooks.c: Likewise.
5985 * tui/tui.c: Likewise.
5986 * tui/tuiCommand.c: Likewise.
5987 * tui/tuiData.c: Likewise.
5988 * tui/tuiDataWin.c: Likewise.
5989 * tui/tuiDisassem.c: Likewise.
5990 * tui/tuiGeneralWin.c: Likewise.
5991 * tui/tuiIO.c: Likewise.
5992 * tui/tuiLayout.c: Likewise.
5993 * tui/tuiRegs.c: Likewise.
5994 * tui/tuiSource.c: Likewise.
5995 * tui/tuiSourceWin.c: Likewise.
5996 * tui/tuiStack.c: Likewise.
5997 * tui/tuiWin.c: Likewise.
5998
59992002-02-07 Elena Zannoni <[email protected]>
6000
6001 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
6002 to include space for pseudoregs as well. Update loops accordingly.
6003 (sh_fp_frame_init_saved_regs): Ditto.
6004 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
6005
60062002-02-07 Andrew Cagney <[email protected]>
6007
6008 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
6009 Add Richard Earnshaw to Arm maintainers.
6010
60112002-02-07 Andrew Cagney <[email protected]>
6012
6013 * defs.h (warning_begin): Delete declaration.
6014
6015 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
6016 Delete macro.
6017
60182002-02-07 Michael Snyder <[email protected]>
6019
6020 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
6021 Logic bug, remove misplaced else.
6022
60232002-02-07 Klee Dienes <[email protected]>
6024
6025 * fork-inferior.c (fork_inferior): Add '!' to the list of
6026 characters that need to be quoted when building a string for the
6027 shell. Quote '!' specifically with a backslash, since CSH chokes
6028 when trying to evaluate "str!str".
6029
60302002-02-06 Nick Clifton <[email protected]>
6031
6032 * rdi-share/host.h: Only provide a typedef for bool if it is not
6033 defined.
6034
60352002-02-04 Michael Snyder <[email protected]>
6036
6037 * breakpoint.h (enum bptype): Add new overlay event bp type.
6038 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
6039
6040 * breakpoint.c (create_internal_breakpoint): New function.
6041 (internal_breakpoint_number): Moved into create_internal_breakpoint.
6042 (create_longjmp_breakpoint): Use create_internal_breakpoint.
6043 (create_thread_event_breakpoint): Ditto.
6044 (create_solib_event_breakpoint): Ditto.
6045 (create_overlay_event_breakpoint): New function.
6046 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
6047 (update_breakpoints_after_exec): Delete and re-initialize
6048 overlay event breakpoints after an exec. Add FIXME comment
6049 about longjmp breakpoint.
6050 (print_it_typical): Ignore overlay event breakpoints.
6051 (print_one_breakpoint): Ditto.
6052 (mention): Ditto.
6053 (bpstat_what): Do not stop for overlay event breakpoints.
6054 (delete_breakpoint): Don't delete overlay event breakpoints.
6055 (breakpoint_re_set_one): Delete the overlay event breakpoint.
6056 (breakpoint_re_set): Re-create overlay event breakpoint.
6057
6058 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
6059 (overlay_manual_command): Disable overlay breakpoints.
6060 (overlay_off_command): Disable overlay breakpoints.
6061
60622002-02-06 Richard Earnshaw <[email protected]>
6063
6064 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
6065 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
6066 to here from config/tm-arm.h.
6067 (coff_sym_is_thumb): Make static.
6068 (arm_elf_make_msymbol_special): New function.
6069 (arm_coff_make_msymbol_special): New function.
6070 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
6071 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
6072 (coff_sym_is_thumb): Delete declaration.
6073 (arm_elf_make_msymbol_special): Declare.
6074 (arm_coff_make_msymbol_special): Declare.
6075 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
6076 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
6077
60782002-02-06 Richard Earnshaw <[email protected]>
6079
6080 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
6081
60822002-02-06 Richard Earnshaw <[email protected]>
6083
6084 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
6085 * gdbarch.c gdbarch.h: Regenerate.
6086 * arch-utils.c (default_print_float_info): New function.
6087 * arch-utils.h (default_print_float_info): Prototype it.
6088 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
6089 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
6090 (PRINT_FLOAT_INFO): Document it.
6091
6092 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
6093 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
6094 (PRINT_FLOAT_INFO): Define.
6095
60962002-02-06 Pierre Muller <[email protected]>
6097
6098 * win32-nat.c (_initialize_check_for_gdb_ini):
6099 Add typecast to sprintf argument to suppress a warning.
6100
61012002-02-05 Pierre Muller <[email protected]>
6102
6103 * win32-nat.c (last_sig): Changed type of variable to target_signal,
6104 to allow easier handling of pass state.
6105 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
6106 that gives exception name and address.
6107 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
6108 and set last_sig value to ourstatus->value.sig. Some missing
6109 exceptions added.
6110 (child_continue): Correctly report continue_status.
6111 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
6112 TARGET_SIGNAL_0 (new default value).
6113 (child_resume): consider sig argument passed to decide if
6114 the exception should be passed to debuggee or not.
6115
61162002-02-05 Michael Snyder <[email protected]>
6117
6118 * regcache.c (fetch_register): Call target_fetch_register
6119 only if we don't call FETCH_PSEUDO_REGISTER.
6120 (store_register): Call target_store_register only if we
6121 don't call STORE_PSEUDO_REGISTER.
6122
61232002-02-05 Elena Zannoni <[email protected]>
6124
6125 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
6126 ELF_MAKE_MSYMBOL_SPECIAL.
6127 * gdbarch.c, gdbarch.h: Regenerate.
6128 * arch-utils.c (default_make_msymbol_special): New function.
6129 * arch-utils.h (default_make_msymbol_special): Export.
6130 * elfread.c (elf_symtab_read): Compile use of
6131 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
6132 multiarched.
6133 * coffread.c (coff_symtab_read): Ditto, for
6134 COFF_MAKE_MSYMBOL_SPECIAL.
6135
61362002-02-05 Jim Blandy <[email protected]>
6137
6138 * solib-svr4.c (svr4_truncate_ptr): New function.
6139 (svr4_relocate_section_addresses): Do the address arithmetic with
6140 the appropriate truncation for target addresses, even when
6141 CORE_ADDR is larger than a target address.
6142
61432002-02-05 Daniel Jacobowitz <[email protected]>
6144
6145 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
6146 to (int *).
6147
61482002-02-05 Daniel Jacobowitz <[email protected]>
6149
6150 * gdbserver/linux-low.c (kill_inferior): Remove commented out
6151 code.
6152
61532002-02-05 Daniel Jacobowitz <[email protected]>
6154
6155 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
6156
61572002-02-05 Daniel Jacobowitz <[email protected]>
6158
6159 * gdbserver/linux-low.c: Remove unused include files.
6160
61612002-02-05 Daniel Jacobowitz <[email protected]>
6162
6163 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
6164 (read_inferior_memory): Use it.
6165 (write_inferior_memory): Likewise.
6166
61672002-02-05 Daniel Jacobowitz <[email protected]>
6168
6169 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
6170 grubbing through sys_errlist.
6171
61722002-02-05 Daniel Jacobowitz <[email protected]>
6173
6174 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
6175
61762002-02-04 Pierre Muller <[email protected]>
6177 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
6178
61792002-02-04 Andrew Cagney <[email protected]>
6180
6181 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
6182 (do_sfunc, set_cmd_sfunc): New functions.
6183
6184 * command.h (struct cmd_list_element): Add field func.
6185 * cli/cli-decode.h (struct cmd_list_element): Ditto.
6186 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
6187 * cli/cli-decode.h: Ditto.
6188
6189 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
6190 (help_all, help_cmd_list): Ditto.
6191 (find_cmd, complete_on_cmdlist): Ditto.
6192 * top.c (execute_command): Ditto.
6193
6194 * cli/cli-setshow.c (do_setshow_command): Call func instead of
6195 function.sfunc.
6196
6197 * infcmd.c (notice_args_read): Fix function signature.
6198
6199 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
6200 * cli/cli-decode.c (add_set_cmd): Ditto.
6201 * utils.c (initialize_utils): Ditto.
6202 * maint.c (_initialize_maint_cmds): Ditto.
6203 * infrun.c (_initialize_infrun): Ditto.
6204 * demangle.c (_initialize_demangler): Ditto.
6205 * remote.c (add_packet_config_cmd): Ditto.
6206 * mips-tdep.c (_initialize_mips_tdep): Ditto.
6207 * cris-tdep.c (_initialize_cris_tdep): Ditto.
6208 * proc-api.c (_initialize_proc_api): Ditto.
6209 * kod.c (_initialize_kod): Ditto.
6210 * valprint.c (_initialize_valprint): Ditto.
6211 * top.c (init_main): Ditto.
6212 * infcmd.c (_initialize_infcmd): Ditto.
6213 * corefile.c (_initialize_core): Ditto.
6214 * arm-tdep.c (_initialize_arm_tdep): Ditto.
6215 * arch-utils.c (initialize_current_architecture): Ditto.
6216 (_initialize_gdbarch_utils): Ditto.
6217 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
6218
6219 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
6220 * wince.c (_initialize_inftarg): Ditto.
6221 * symfile.c (_initialize_symfile): Ditto.
6222 * mips-tdep.c (_initialize_mips_tdep): Ditto.
6223 * language.c (_initialize_language): Ditto.
6224 * arc-tdep.c (_initialize_arc_tdep): Ditto.
6225
62262002-02-04 Michael Snyder <[email protected]>
6227
6228 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
6229
62302002-02-04 Daniel Jacobowitz <[email protected]>
6231
6232 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
6233 Add rules for building the register data files.
6234
62352002-02-04 Daniel Jacobowitz <[email protected]>
6236
6237 * regformats/regdat.sh: Add braces to the definition of
6238 expedite_regs_${arch}.
6239
62402002-02-04 Daniel Jacobowitz <[email protected]>
6241
6242 * regformats/regdef.h (struct reg): Add comment describing the
6243 requirements for offset and size fields.
6244
62452002-02-04 Andreas Schwab <[email protected]>
6246
6247 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
6248 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
6249
62502002-02-04 Richard Earnshaw <[email protected]>
6251
6252 * gdbarch.sh (copyright): Update years in generated header.
6253 (SMASH_TEXT_ADDRESS): Add rule.
6254 * gdbarch.h, gdbarch.c: Re-generate.
6255 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
6256 * dbxread.c: Likewise.
6257 * dwarfread.c: Likewise.
6258 * elfread.c: Likewise.
6259 * somread.c: Likewise.
6260
6261 * arm-tdep.c (arm_smash_text_address): New function.
6262 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
6263
62642002-02-04 Pierre Muller <[email protected]>
6265
6266 Add support for hardware watchpoints on win32 native.
6267 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
6268 CONTEXT_DEBUG_REGISTERS.
6269 (dr variable): New variable. Static array containing a local copy
6270 of debug registers.
6271 (debug_registers_changed): New variable. Reflects when debug registers
6272 are changed and need to be written to inferior.
6273 (debug_registers_used): New variable. Reflects when any debug register
6274 was set, used when new threads are created.
6275 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
6276 i386-nat code.
6277 (thread_rec): Set dr array if id is the thread of current_event .
6278 (child_continue, child_resume): Change the debug registers for all
6279 threads if debug_registers_changed.
6280 (child_add_thread): Change the debug registers if debug_registers_used.
6281 * config/i386/cygwin.mh: Add use of i386-nat.o file.
6282 Link nm.h to new nm-cygwin.h file.
6283 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
6284 of hardware registers.
6285
62862002-02-03 Andrew Cagney <[email protected]>
6287
6288 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
6289 Restore behavour broken by 2002-01-20 Andrew Cagney
6290 <[email protected]> IEEE_FLOAT removal.
6291
62922002-02-03 Daniel Jacobowitz <[email protected]>
6293
6294 * c-valprint.c (c_val_print): Pass a proper valaddr to
6295 cp_print_class_method.
6296 * valops.c (search_struct_method): If there is only one method
6297 and args is NULL, return that method.
6298
62992002-02-03 Daniel Jacobowitz <[email protected]>
6300
6301 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
6302 accessing tag_name directly.
6303
63042002-02-03 Daniel Jacobowitz <[email protected]>
6305
6306 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
6307 of accessing tag_name directly.
6308
63092002-02-03 Daniel Jacobowitz <[email protected]>
6310
6311 PR gdb/280
6312 * gdbtypes.c (replace_type): New function.
6313 * gdbtypes.h (replace_type): Add prototype.
6314 * stabsread.c (read_type): Use replace_type.
6315
63162002-02-03 Richard Earnshaw <[email protected]>
6317
6318 * Makefile.in (memattr.o): Add missing dependencies rule.
6319
63202002-02-03 Peter Schauer <[email protected]>
6321
6322 * breakpoint.c (break_at_finish_command): Really export.
6323 (break_at_finish_at_depth_command): Ditto.
6324 (tbreak_at_finish_command): Ditto.
6325 * hppa-tdep.c: Include completer.h.
6326 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
6327 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
6328
63292002-02-01 Andrew Cagney <[email protected]>
6330
6331 * utils.c (do_write): New function.
6332 (error_stream): Rewrite combining the code from error_begin and
6333 verror.
6334 (verror): Rewrite using error_stream.
6335 (error_begin): Delete function.
6336
63372002-02-01 Andrew Cagney <[email protected]>
6338
6339 * utils.c (error_begin): Make static.
6340 * defs.h (error_begin): Delete declaration.
6341
6342 * linespec.c (cplusplus_error): Replace cplusplus_hint.
6343 (decode_line_1): Use cplusplus_error instead of error_begin,
6344 cplusplus_hint and return_to_top_level.
6345 * coffread.c (coff_symfile_read): Use error instead of error_begin
6346 and return_to_top_level.
6347 * infrun.c (default_skip_permanent_breakpoint): Ditto.
6348
63492002-02-01 Andrew Cagney <[email protected]>
6350
6351 * language.h (type_error, range_error): Make string parameter
6352 constant.
6353 * language.c (warning_pre_print): Delete extern declaration.
6354 * dwarfread.c (warning_pre_print): Ditto.
6355 * language.c (type_error, range_error): Rewrite to use verror and
6356 vwarning instead of warning_begin.
6357
63582002-02-01 Michael Snyder <[email protected]>
6359
6360 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
6361 (set_ignore_count): Move misplaced comment back where it belongs.
6362
63632002-02-01 Andrew Cagney <[email protected]>
6364
6365 * command.h (NO_FUNCTION): Delete macro.
6366 * cli/cli-decode.h (NO_FUNCTION): Ditto.
6367 * top.c (execute_command): Replace NO_FUNCTION with NULL.
6368 * tracepoint.c (_initialize_tracepoint): Ditto.
6369 * cli/cli-decode.c (add_set_cmd): Ditto.
6370 * cli/cli-cmds.c (init_cli_cmds): Ditto.
6371
63722002-02-01 Daniel Jacobowitz <[email protected]>
6373
6374 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
6375 Update ``this'' pointer when calling virtual functions.
6376
63772002-02-01 Michael Snyder <[email protected]>
6378
6379 * breakpoint.c (create_temp_exception_breakpoint): Delete.
6380 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
6381
63822002-02-01 Daniel Jacobowitz <[email protected]>
6383
6384 * regformats/reg-arm.dat: New file.
6385 * regformats/reg-i386.dat: New file.
6386 * regformats/reg-ia64.dat: New file.
6387 * regformats/reg-m68k.dat: New file.
6388 * regformats/reg-mips.dat: New file.
6389 * regformats/reg-ppc.dat: New file.
6390 * regformats/reg-sh.dat: New file.
6391 * regformats/regdef.h: New file.
6392 * regformats/regdat.sh: New file.
6393
63942002-02-01 Richard Earnshaw <[email protected]>
6395
6396 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
6397 (arm_frame_args_address, arm_frame_locals_address): New functions.
6398 (arm_frame_num_args): New function.
6399 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
6400 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
6401 (FRMA_NUM_ARGS): Call arm_frame_num_args.
6402
64032002-01-31 Michael Snyder <[email protected]>
6404
6405 * breakpoint.c (break_at_finish_command): Export.
6406 (break_at_finish_at_depth_command): Export.
6407 (tbreak_at_finish_command): Export.
6408 (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
6409 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
6410 "tbreak" commands, which are HPPA specific.
6411
6412 * printcmd.c (disassemble_command): Remove an ancient
6413 artifact of an old merge.
6414
6415 * symfile.h (enum overlay_debugging_state):
6416 Define enum constant values for overlay mode.
6417 * symfile.c (overlay_debugging): Use enums instead of literals.
6418 (overlay_is_mapped, overlay_auto_command,
6419 overlay_manual_command): Ditto.
6420
6421 * breakpoint.c (insert_breakpoints, remove_breakpoint,
6422 breakpoint_here_p, breakpoint_inserted_here_p,
6423 breakpoint_thread_match, bpstat_stop_status,
6424 describe_other_breakpoints, check_duplicates, clear_command):
6425 Coding standard fixes.
6426
6427 * target.c (target_xfer_memory): Add spaces, coding standard.
6428 (do_xfer_memory): Add missing line to trust-readonly
6429 code: check bfd SEC_READONLY flag for section.
6430
64312002-01-31 Andrew Cagney <[email protected]>
6432
6433 * PROBLEMS: Fix typo, 5.1->5.1.1.
6434
64352002-01-30 Daniel Jacobowitz <[email protected]>
6436
6437 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
6438 data symbols, since we search based on textlow and texthigh.
6439 (find_pc_sect_symtab): Likewise.
6440
64412002-01-30 Andrew Cagney <[email protected]>
6442
6443 * defs.h (vwarning): Declare.
6444 * utils.c (vwarning): New function.
6445 (warning): Call vwarning.
6446 (warning_begin): Delete function.
6447
6448 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
6449 the warning message.
6450 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
6451 warning_begin.
6452
64532002-01-30 Michael Snyder <[email protected]>
6454
6455 * NEWS: Mention "set trust-readonly-sections" command.
6456 Mention generate-core-file command.
6457
64582002-01-15 Michael Snyder <[email protected]>
6459
6460 * target.c: New command, "set trust-readonly-sections on".
6461 (do_xfer_memory): Honor the suggestion to trust readonly sections
6462 by reading them from the object file instead of from the target.
6463 (initialize_targets): Register command "set trust-readonly-sections".
6464
64652002-01-29 Andrew Cagney <[email protected]>
6466
6467 * parse.c (target_map_name_to_register): Simplify, search regs and
6468 pseudo-regs using a single loop.
6469
64702002-01-30 Andrew Cagney <[email protected]>
6471
6472 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
6473
64742002-01-15 Rodney Brown <[email protected]>
6475
6476 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
6477 * config/i386/i386v42mp.mh: Add i387-nat.o .
6478 * i386v4-nat.c: Include i387-nat.h.
6479 (supply_fpregset): Use i387_supply_fsave.
6480 (fill_fpregset): Use i387_fill_fsave.
6481
64822002-01-30 Richard Earnshaw <[email protected]>
6483
6484 * arm-tdep.c (arm_call_dummy_words): Define.
6485 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
6486 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
6487 (CALL_DUMMY_WORDS): Define.
6488 (arm_call_dummy_words): Declare.
6489 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
6490 (arm_linux_call_dummy_words): Declare.
6491
64922002-01-30 Andreas Schwab <[email protected]>
6493
6494 * m68klinux-nat.c: Fix last change to use regcache_collect
6495 instead of referencing registers[] directly.
6496
64972002-01-29 Andrew Cagney <[email protected]>
6498
6499 * parse.c (target_map_name_to_register): Delete code wrapped in
6500 #ifdef REGISTER_NAME_ALIAS_HOOK.
6501
65022002-01-28 Michael Snyder <[email protected]>
6503
6504 * regcache.c (legacy_read_register_gen): Need to be able to
6505 read pseudo-register as well as real register.
6506 (legacy_write_register_gen): Ditto.
6507
65082002-01-28 Andrew Cagney <[email protected]>
6509
6510 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
6511 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
6512 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
6513 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
6514 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
6515 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
6516 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
6517 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
6518 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
6519 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
6520 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
6521 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
6522 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
6523 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
6524 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
6525 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
6526 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
6527 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
6528 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
6529 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
6530
65312002-01-28 Andrew Cagney <[email protected]>
6532
6533 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
6534 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
6535 (initialize_current_architecture): Update target_byte_order using
6536 information from BFD.
6537 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
6538 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
6539
65402002-01-28 Andrew Cagney <[email protected]>
6541
6542 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
6543 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
6544
6545 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
6546 #ifdef INVALID_FLOAT.
6547 * infcmd.c (do_registers_info): Ditto.
6548 * values.c (unpack_double): Ditto. Add comment.
6549
6550 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
6551 already commented out.
6552
65532002-01-26 Andreas Schwab <[email protected]>
6554
6555 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
6556 * m68klinux-nat.c: Update ptrace interface for fetching/storing
6557 registers and add support for PTRACE_GETREGS.
6558
65592002-01-24 Andrew Cagney <[email protected]>
6560
6561 GDB 5.1.1 released from 5.1 branch.
6562 * NEWS: Add 5.1.1 news.
6563 * README: Sync with 5.1 branch.
6564
65652002-01-23 Fred Fish <[email protected]>
6566
6567 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
6568 stabstring on initial malloc. Reallocing will copy it for us,
6569 if necessary.
6570
65712002-01-23 Elena Zannoni <[email protected]>
6572
6573 * Makefile.in (hpread_h): Delete.
6574 (HFILES_NO_SRCDIR): Remove hpread.h.
6575 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
6576 (hpread.o): Update dependencies.
6577 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
6578
6579 * hp-psymtab-read.c: Remove file.
6580 * hp-symtab-read.c: Remove file.
6581 * hpread.h: Remove file.
6582
6583 * hpread.c: Merge all contents of hp-psymtab-read.c,
6584 hp-symtab-read.c and hpread.h into this file, as it was prior to
6585 January 1999.
6586
6587 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
6588 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
6589 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
6590 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
6591
65922002-01-23 Elena Zannoni <[email protected]>
6593
6594 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
6595 fill_gregset): Call gdbarch_tdep() just once, assign result to
6596 variable and use that, instead of calling the function several
6597 times.
6598
65992002-01-24 Alexandre Oliva <[email protected]>
6600
6601 * configure.host: Accept sparcv9 as alias for sparc64.
6602 * configure.tgt: Likewise.
6603
66042002-01-22 Kevin Buettner <[email protected]>
6605
6606 * solib-aix5.c (build_so_list_from_mapfile)
6607 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
6608 arguments is not reversed.
6609 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
6610 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
6611
66122002-01-22 Elena Zannoni <[email protected]>
6613
6614 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
6615 modified version of obsolete sh_fetch_pseudo_register.
6616 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
6617 (sh4_register_read): New function.
6618 (sh_pseudo_register_write): New function. Renamed and modified
6619 version of obsolete sh_store_pseudo_register.
6620 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
6621 (sh4_register_write): New function.
6622 (sh_gdbarch_init): Remove setting of gdbarch function
6623 fetch_pseudo_register and store_pseudo_register. Remove setting of
6624 register_convert_to_raw, register_convert_to_virtual,
6625 register_convertible.
6626 (sh_sh4_register_convertible): Delete. No longer needed. All is
6627 taken care by architecture specific functions
6628 register_read/register_write.
6629 (sh_sh4_register_convert_to_virtual): Make static.
6630 (sh_sh4_register_convert_to_raw): Ditto.
6631
66322002-01-22 Andrew Cagney <[email protected]>
6633
6634 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
6635 (floatformat_is_nan, floatformat_mantissa): Ditto.
6636
6637 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
6638 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
6639 builtin_type_ieee_double_little,
6640 builtin_type_ieee_double_littlebyte_bigword,
6641 builtin_type_m68881_ext, builtin_type_i960_ext,
6642 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
6643 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
6644 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
6645 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
6646
66472002-01-22 Corinna Vinschen <[email protected]>
6648
6649 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
6650 parameter. Set frameless flag if it exists and depended of
6651 whether the scanned function is frameless or not.
6652 (xstormy16_skip_prologue): If function is frameless, return
6653 result of xstormy16_scan_prologue().
6654 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
6655 call.
6656
66572002-01-21 Elena Zannoni <[email protected]>
6658
6659 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
6660 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
6661 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
6662 sh_sh4_register_byte, sh_sh4_register_raw_size,
6663 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
6664 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
6665 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
6666 sh_store_pseudo_register, sh_do_pseudo_register): Call
6667 gdbarch_tdep() just once, assign result to variable and use that,
6668 instead of calling the function several times.
6669
66702002-01-20 Mark Kettenis <[email protected]>
6671
6672 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
6673 macros instead of LAST_FPU_CTRL_REGNUM.
6674 (store_register): Likewise.
6675
66762002-01-21 Jim Blandy <[email protected]>
6677
6678 * infcmd.c (run_command): Check that the `exec' target layer's BFD
6679 is up-to-date before running the program, not just when a program
6680 exits.
6681
66822002-01-21 Fred Fish <[email protected]>
6683
6684 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
6685 when we have found all instructions we are looking for.
6686
66872002-01-21 Richard Earnshaw <[email protected]>
6688
6689 * arm-tdep.c (arm_register_name): New function.
6690 (arm_registers_names): Make static.
6691 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
6692 (arm_register_name): Declare.
6693 (REGISTER_NAME): Use it.
6694
66952002-01-21 Richard Earnshaw <[email protected]>
6696 Kevin Buettner <[email protected]>
6697
6698 Convert arm targets to new FRAME interface.
6699 * arm-tdep.c (struct frame_extra_info): Remove fsr.
6700 (arm_frame_find_save_regs): Delete.
6701 (arm_frame_init_saved_regs): New.
6702 (arm_init_extra_frame_info): Alloacte saved_regs as required.
6703 Allocate extra_info as required. Convert all uses of fsr.regs
6704 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
6705 to use extra_info.
6706 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
6707 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
6708 (check_prologue_cache, save_prologue_cache): Likewise.
6709 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
6710 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
6711 (FRAME_FIND_SAVED_REGS): Delete.
6712 (arm_frame_find_saved_regs): Delete prototype.
6713 (arm_frame_init_saved_regs): New prototype.
6714 (FRAME_INIT_SAVED_REGS): Define.
6715
67162002-01-20 Andrew Cagney <[email protected]>
6717
6718 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
6719
67202002-01-20 Andrew Cagney <[email protected]>
6721
6722 From Jeff Law <[email protected]>:
6723 * infttrace.c: Include <sys/pstat.h>.
6724 (child_pid_to_exec_file): Revamp. Use pstat call to get the
6725 exec file if the ttrace equivalent fails.
6726
67272002-01-20 Andrew Cagney <[email protected]>
6728
6729 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
6730 (closeLogFile): Ditto.
6731
67322002-01-20 Michael Chastain <[email protected]>
6733
6734 * top.c (print_gdb_version): Bump copyright year to 2002.
6735
67362002-01-20 Andrew Cagney <[email protected]>
6737
6738 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
6739 Zannoni and Eli Zaretskii.
6740
67412002-01-20 Daniel Jacobowitz <[email protected]>
6742
6743 * buildsym.c: Update copyright years.
6744 * c-typeprint.c: Likewise.
6745 * dwarf2read.c: Likewise.
6746 * f-typeprint.c: Likewise.
6747 * gdbtypes.c: Likewise.
6748 * gdbtypes.h: Likewise.
6749 * hp-symtab-read.c: Likewise.
6750 * hpread.c: Likewise.
6751 * mdebugread.c: Likewise.
6752 * p-typeprint.c: Likewise.
6753
67542002-01-20 Andrew Cagney <[email protected]>
6755
6756 * remote-sim.c (gdbsim_open): Simplify code testing the macro
6757 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
6758 byte-order selectable.
6759 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
6760 * arch-utils.c: Ditto.
6761 (set_endian): Ditto.
6762 (set_endian_from_file): Ditto.
6763 * gdbserver/low-sim.c (create_inferior): Ditto.
6764 * gdbarch.sh: Ditto.
6765 * gdbarch.h: Re-generate.
6766 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
6767 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
6768 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
6769 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
6770 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
6771 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
6772 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
6773 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
6774 macro definition.
6775 * config/mips/tm-wince.h: Remove #undef of macro
6776 TARGET_BYTE_ORDER_SELECTABLE.
6777 * config/sh/tm-wince.h: Ditto.
6778
67792002-01-20 Daniel Jacobowitz <[email protected]>
6780
6781 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
6782 member function fields. Add accessor macro
6783 TYPE_FN_FIELD_ARTIFICIAL.
6784 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
6785 * c-typeprint.c (c_type_print_base): Skip artificial member
6786 functions.
6787
67882002-01-20 Daniel Jacobowitz <[email protected]>
6789
6790 * f-typeprint.c: Delete unused function f_type_print_args.
6791 * p-typeprint.c: Delete unused function pascal_type_print_args.
6792
67932002-01-20 Daniel Jacobowitz <[email protected]>
6794
6795 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
6796 comment. Add ``artificial'' to ``union field_location''.
6797
6798 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
6799
6800 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
6801 * mdebugread.c (parse_symbol): Likewise.
6802 * stabsread.c (define_symbol): Likewise.
6803 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
6804 initializing TYPE_FIELD_BITPOS to n (obsolete).
6805 (hpread_doc_function_type): Likewise.
6806 * hpread.c (hpread_function_type): Likewise.
6807
68082002-01-20 Andrew Cagney <[email protected]>
6809
6810 * configure.in (host_makefile_frag): Only require a host makefile
6811 fragment when a native build.
6812 * configure: Re-generate.
6813
68142002-01-20 Andrew Cagney <[email protected]>
6815
6816 * doublest.h (floatformat_from_type): Declare.
6817 * doublest.c (floatformat_from_type): New function.
6818 (convert_typed_floating): Use.
6819
6820 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
6821 call to function floatformat_from_type.
6822
6823 * gdbarch.sh (IEEE_FLOAT): Delete.
6824 * gdbarch.h, gdbarch.c: Re-generate.
6825 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
6826 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
6827 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
6828 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
6829 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
6830 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
6831 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
6832 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
6833 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
6834 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
6835 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
6836 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
6837
6838 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
6839 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
6840 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6841 * sh-tdep.c (sh_gdbarch_init): Ditto.
6842 * mips-tdep.c (mips_gdbarch_init): Ditto.
6843 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6844 * cris-tdep.c (cris_gdbarch_init): Ditto.
6845
68462002-01-20 Jiri Smid <[email protected]>
6847
6848 * configure.host, configure.tgt: Support x86-64.
6849 * NEWS: Note new target x86-64.
6850
6851 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
6852 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
6853 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
6854 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
6855 x86-64-linux-nat.o): Fix dependencies.
6856
68572002-01-19 Andrew Cagney <[email protected]>
6858
6859 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
6860 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
6861 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
6862 * config/sparc/xm-sun4os4.h: Delete file.
6863 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
6864
68652002-01-19 Andrew Cagney <[email protected]>
6866
6867 * config/sparc/sparclynx.mh (XM_FILE): Delete.
6868 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
6869 * config/m68k/m68klynx.mh (XM_FILE): Delete.
6870 * config/i386/i386lynx.mh (XM_FILE): Delete.
6871 * config/rs6000/xm-rs6000ly.h: Delete file.
6872 * config/sparc/xm-sparclynx.h: Delete file.
6873 * config/m68k/xm-m68klynx.h: Delete file.
6874 * config/i386/xm-i386lynx.h: Delete file.
6875 * config/xm-lynx.h: Delete file.
6876 * config/djgpp/fnchange.lst: Update.
6877
68782002-01-19 Jason Thorpe <[email protected]>
6879
6880 * alpha-tdep.c (alpha_register_byte): New function.
6881 (alpha_register_raw_size): Ditto.
6882 (alpha_register_virtual_size): Ditto.
6883 (alpha_skip_prologue_internal): Renamed from
6884 alpha_skip_prologue.
6885 (alpha_skip_prologue): New version that calls
6886 alpha_skip_prologue_internal.
6887 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
6888 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
6889 second argument from alpha_skip_prologue.
6890 (REGISTER_BYTE): Use alpha_register_byte.
6891 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
6892 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
6893 (FRAMELESS_FUNCTION_INVOCATION): Use
6894 generic_frameless_function_invocation_not.
6895 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
6896 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
6897
68982002-01-19 Andrew Cagney <[email protected]>
6899
6900 * config/mips/xm-news-mips.h: Delete file.
6901 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
6902
6903 * config/m88k/xm-m88k.h: Delete file.
6904 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
6905 * config/m88k/xm-delta88v4.h: Ditto.
6906 * config/m88k/xm-delta88.h: Ditto.
6907
6908 * config/alpha/xm-fbsd.h: Delete file.
6909 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
6910
6911 * config/sparc/xm-sparc.h: Delete file.
6912 * Makefile.in (xm-sun4os4.h): Delete dependency.
6913 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
6914 * config/sparc/xm-sun4os4.h: Ditto.
6915 * config/sparc/xm-linux.h: Ditto.
6916
6917 * config/i386/xm-windows.h: Delete file.
6918
69192002-01-19 Andrew Cagney <[email protected]>
6920
6921 * utils.c: Include <sys/param.h> for MAXPATHLEN.
6922 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
6923
69242002-01-19 Jason Thorpe <[email protected]>
6925
6926 * alpha-tdep.c (alpha_call_dummy_words): New.
6927 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
6928 (CALL_DUMMY_P): Define.
6929 (CALL_DUMMY_WORDS): Define.
6930 (SIZEOF_CALL_DUMMY_WORDS): Define.
6931
69322002-01-19 Per Bothner <[email protected]>
6933
6934 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
6935 isn't NULL, which can happen with some gcj-3.x-produced code.
6936
69372002-01-19 Jason Thorpe <[email protected]>
6938
6939 * alpha-tdep.c (alpha_register_virtual_type): New function.
6940 (alpha_init_frame_pc_first): Ditto.
6941 (alpha_fix_call_dummy): Ditto.
6942 (alpha_store_struct_return): Ditto.
6943 (alpha_extract_struct_value_address): Ditto.
6944 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
6945 alpha_register_virtual_type.
6946 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
6947 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
6948 alpha_extract_struct_value_address.
6949 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
6950 (INIT_FRAME_PC): Use init_frame_pc_noop.
6951 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
6952
69532002-01-19 Mark Kettenis <[email protected]>
6954
6955 * i386gnu-nat.c: Include "i386-tdep.h".
6956 (fetch_fpregs): Simplify code dealing with uninitialized floating
6957 point states such that it doesn't require FP7_REGNUM.
6958
69592002-01-18 Jason Thorpe <[email protected]>
6960
6961 * alpha-tdep.c (frame_extra_info): New.
6962 (alpha_find_saved_regs): Make static. Use
6963 frame->extra_info.
6964 (alpha_frame_init_saved_regs): New function.
6965 (alpha_frame_saved_pc): Use frame->extra_info.
6966 (temp_saved_regs): Don't declare as struct frame_saved_regs.
6967 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
6968 (init_extra_frame_info): Rename to...
6969 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
6970 (alpha_print_extra_frame_info): New function.
6971 (alpha_frame_locals_address): Ditto.
6972 (alpha_frame_args_address): Ditto.
6973 (alpha_pop_frame): Use frame->extra_info.
6974 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
6975 alpha_frame_args_address.
6976 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
6977 (alpha_find_saved_regs): Remove prototype.
6978 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
6979 (EXTRA_FRAME_INFO): Remove.
6980 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
6981 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
6982
69832002-01-18 Jason Thorpe <[email protected]>
6984
6985 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
6986 (alpha_cannot_fetch_register): Ditto.
6987 (alpha_cannot_store_register): Ditto.
6988 (alpha_register_convertible): Ditto.
6989 (alpha_use_struct_convention): Ditto.
6990 * config/alpha/tm-alpha.h: Update copyright years.
6991 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
6992 (INNER_THAN): Use core_addr_lessthan.
6993 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
6994 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
6995 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
6996 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
6997 (FRAME_CHAIN): Remove unnecessary cast.
6998
69992002-01-18 Andrew Cagney <[email protected]>
7000
7001 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
7002 obsolete.
7003
70042002-01-18 Andrew Cagney <[email protected]>
7005
7006 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
7007 * monitor.c, remote-array.c, remote-bug.c: Ditto.
7008 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
7009 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
7010 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
7011 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
7012 * x86-64-linux-nat.c: Ditto.
7013
70142002-01-18 Jason Thorpe <[email protected]>
7015
7016 * alpha-tdep.c (alpha_register_name): New function.
7017 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
7018 (REGISTER_NAME): Define.
7019
70202002-01-18 Jason Thorpe <[email protected]>
7021
7022 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
7023
70242002-01-18 Jason Thorpe <[email protected]>
7025
7026 * alpha-tdep.c: Update copyright years.
7027 (alpha_next_pc): New function.
7028 (alpha_software_single_step): Ditto.
7029 * config/alpha/tm-alpha.h: Add prototype for
7030 alpha_software_single_step.
7031
70322002-01-18 Jason Thorpe <[email protected]>
7033
7034 * alphabsd-nat.c: Update copyright years.
7035 (fill_gregset): Use regcache_collect.
7036 (fill_fpregset): Likewise.
7037 (fetch_inferior_registers): Only fetch integer registers
7038 if requested to do so.
7039 (store_inferior_registers): Only store integer registers
7040 if requested to do so.
7041
70422002-01-17 Andrew Cagney <[email protected]>
7043
7044 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
7045 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
7046 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
7047 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
7048 * config/alpha/fbsd.mh (XDEPFILES): Delete.
7049 * config/arm/linux.mh (XDEPFILES): Delete.
7050 * config/arm/nbsd.mh (XDEPFILES): Delete.
7051 * config/i386/i386dgux.mh (XDEPFILES): Delete.
7052 * config/i386/i386sol2.mh (XDEPFILES): Delete.
7053 * config/i386/i386m3.mh (XDEPFILES): Delete.
7054 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
7055 * config/i386/i386gnu.mh (XDEPFILES): Delete.
7056 * config/i386/fbsd.mh (XDEPFILES): Delete.
7057 * config/i386/i386bsd.mh (XDEPFILES): Delete.
7058 * config/i386/i386sco5.mh (XDEPFILES): Delete.
7059 * config/i386/i386v4.mh (XDEPFILES): Delete.
7060 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
7061 * config/i386/i386sco4.mh (XDEPFILES): Delete.
7062 * config/i386/i386aix.mh (XDEPFILES): Delete.
7063 * config/i386/go32.mh (XDEPFILES): Delete.
7064 * config/i386/cygwin.mh (XDEPFILES): Delete.
7065 * config/i386/i386lynx.mh (XDEPFILES): Delete.
7066 * config/i386/i386mach.mh (XDEPFILES): Delete.
7067 * config/i386/i386v32.mh (XDEPFILES): Delete.
7068 * config/i386/linux.mh (XDEPFILES): Delete.
7069 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
7070 * config/i386/ncr3000.mh (XDEPFILES): Delete.
7071 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
7072 * config/i386/i386sco.mh (XDEPFILES): Delete.
7073 * config/i386/i386v.mh (XDEPFILES): Delete.
7074 * config/i386/nbsd.mh (XDEPFILES): Delete.
7075 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
7076 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
7077 * config/i386/symmetry.mh (XDEPFILES): Delete.
7078 * config/i386/obsd.mh (XDEPFILES): Delete.
7079 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
7080 * config/ia64/linux.mh (XDEPFILES): Delete.
7081 * config/ia64/aix.mh (XDEPFILES): Delete.
7082 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
7083 * config/m68k/dpx2.mh (XDEPFILES): Delete.
7084 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
7085 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
7086 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
7087 * config/m68k/linux.mh (XDEPFILES): Delete.
7088 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
7089 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
7090 * config/m68k/nbsd.mh (XDEPFILES): Delete.
7091 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
7092 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
7093 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
7094 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
7095 * config/m88k/delta88.mh (XDEPFILES): Delete.
7096 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
7097 * config/m88k/m88k.mh (XDEPFILES): Delete.
7098 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
7099 * config/mips/linux.mh (XDEPFILES): Delete.
7100 * config/mips/irix6.mh (XDEPFILES): Delete.
7101 * config/mips/irix5.mh (XDEPFILES): Delete.
7102 * config/mips/irix4.mh (XDEPFILES): Delete.
7103 * config/mips/irix3.mh (XDEPFILES): Delete.
7104 * config/mips/decstation.mh (XDEPFILES): Delete.
7105 * config/mips/mipsm3.mh (XDEPFILES): Delete.
7106 (NATDEPFILES): Move core-aout.o to here.
7107 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
7108 * config/pa/hpux1020.mh (XDEPFILES): Delete.
7109 * config/pa/hppabsd.mh (XDEPFILES): Delete.
7110 * config/pa/hppahpux.mh (XDEPFILES): Delete.
7111 * config/pa/hpux11w.mh (XDEPFILES): Delete.
7112 * config/pa/hppaosf.mh (XDEPFILES): Delete.
7113 * config/pa/hpux11.mh (XDEPFILES): Delete.
7114 * config/powerpc/aix.mh (XDEPFILES): Delete.
7115 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
7116 * config/powerpc/linux.mh (XDEPFILES): Delete.
7117 * config/romp/rtbsd.mh: Rename XDEPFILES.
7118 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
7119 * config/rs6000/aix4.mh (XDEPFILES): Delete.
7120 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
7121 * config/s390/s390.mh (XDEPFILES): Delete.
7122 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
7123 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
7124 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
7125 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
7126 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
7127 * config/sparc/nbsd.mh (XDEPFILES): Delete.
7128 * config/sparc/linux.mh (XDEPFILES): Delete.
7129 * config/vax/vaxult.mh (XDEPFILES): Delete.
7130 * config/vax/vaxult2.mh (XDEPFILES): Delete.
7131 * Makefile.in (DEPFILES): Remove XDEPFILES.
7132
71332002-01-17 Andrew Cagney <[email protected]>
7134
7135 * utils.c (internal_verror): Fix comments, default is yes not no.
7136 Update queries to match. Default to quit and dump core.
7137
71382002-01-17 Andrew Cagney <[email protected]>
7139
7140 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
7141 copyright.
7142 * defs.h, event-top.c, gdbcmd.h: Ditto.
7143 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
7144 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
7145 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
7146 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
7147 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
7148 * mi/mi-main.c:Ditto.
7149
7150 * stack.c, symfile.c: Update copyright.
7151
71522002-01-17 Daniel Jacobowitz <[email protected]>
7153
7154 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
7155 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
7156 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
7157 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
7158
71592002-01-17 Daniel Jacobowitz <[email protected]>
7160
7161 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
7162 * gdbserver/low-lynx.c (myattach): Likewise.
7163 * gdbserver/low-nbsd.c (myattach): Likewise.
7164 * gdbserver/low-sim.c (myattach): Likewise.
7165 * gdbserver/low-sparc.c (myattach): Likewise.
7166 * gdbserver/low-sun3.c (myattach): Likewise.
7167
7168 * gdbserver/low-linux.c (myattach): New function.
7169
7170 * gdbserver/server.c (attach_inferior): New function.
7171 (main): Handle "--attach".
7172
71732002-01-16 Andrew Cagney <[email protected]>
7174
7175 * MAINTAINERS (language support): Daniel Jacobwitz is C++
7176 maintainer.
7177
71782002-01-15 Daniel Jacobowitz <[email protected]>
7179
7180 * c-typeprint.c (is_type_conversion_operator): Add additional
7181 check for non-conversion operators.
7182
71832002-01-15 Michael Snyder <[email protected]>
7184
7185 * linux-proc.c: Add "info proc" command, a la procfs.c.
7186 (read_mapping): New function, abstract and re-use code.
7187 (linux_find_memory_regions): Use new func read_mapping.
7188 (linux_info_proc_cmd): New function, implement "info proc".
7189 (_initialize_linux_proc): Add new command "info proc".
7190
71912002-01-15 Michael Snyder <[email protected]>
7192
7193 * symfile.c (generic_load): Use bfd_map_over_sections method
7194 instead of manipulating bfd structure members directly.
7195 (add_section_size_callback): New function, bfd sections callback
7196 used by generic_load.
7197 (load_sections_callback): New function, bfd sections callback
7198 used by generic_load.
7199
72002002-01-15 Elena Zannoni <[email protected]>
7201
7202 [Based on work by Jim Blandy]
7203 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
7204 (builtin_type_vec128): Export.
7205 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
7206 types.
7207 (builtin_type_vec128): New builtin type for 128 bit vector
7208 registers.
7209 (build_gdbtypes): Initialize builtin_type_v16qi and
7210 builtin_type_v8hi. Create the vec128 register builtin type
7211 structure.
7212 (build_builtin_type_vec128): New function.
7213 (_initialize_gdbtypes): Register builtin_type_v16qi and
7214 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
7215 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
7216 AltiVec register to new builtin type.
7217
72182001-01-15 Daniel Jacobowitz <[email protected]>
7219
7220 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
7221 to make_cv_type.
7222
72232002-01-14 Andrew Cagney <[email protected]>
7224
7225 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
7226 CLEAN_UP_REGISTER_VALUE.
7227 * regcache.c (supply_register): Update only call.
7228
72292002-01-14 Andrew Cagney <[email protected]>
7230
7231 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
7232 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
7233 a29k-*-vxworks* targets as obsolete.
7234
72352002-01-14 Michael Snyder <[email protected]>
7236
7237 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
7238 until we can resolve portability issues.
7239 * gregset.h: Remove references to fpxregs.
7240 * gcore.c (gcore_command): Initialize note_sec to NULL.
7241
72422002-01-13 Andrew Cagney <[email protected]>
7243
7244 * signals.c (target_signal_to_name): Rewrite. Only use
7245 signals[].name when in bounds and non-NULL.
7246
72472002-01-13 Andrew Cagney <[email protected]>
7248
7249 From Petr Ledvina <[email protected]>:
7250 * signals.c (target_signal_to_name): Verify that SIG is within the
7251 bounds of the signals array.
7252
72532002-01-13 Andrew Cagney <[email protected]>
7254
7255 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
7256
72572002-01-13 Keith Seitz <[email protected]>
7258
7259 * stack.c (print_frame_info_base): Print the frame's pc
7260 only if when print_frame_info_listing_hook is not defined.
7261
72622002-01-13 Keith Seitz <[email protected]>
7263
7264 * varobj.c (varobj_set_value): Make sure that there were no
7265 errors evaluating the object before attempting to set its
7266 value.
7267 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
7268 so this offset adjustment is no longer necessary.
7269 (create_child): Don't set the error flag if the child is
7270 a CPLUS_FAKE_CHILD.
7271 (value_of_child): If value_fetch_lazy fails, return NULL
7272 so that callers will be notified that an error occurred.
7273 (c_value_of_variable): Delay check of variable's validity
7274 until later. We actually want all structs and unions to have
7275 the value "{...}".
7276 Do not return "???" for variables which could not be evaluated.
7277 This error condition must be returned to the caller so that it
7278 can get the error condition from gdb.
7279 (cplus_name_of_child): Adjust index for vptr before figuring
7280 out the name of the child.
7281 (cplus_value_of_child): If a child's (real) parent is not valid,
7282 don't even bother trying to give a value for it. Just return
7283 an error. Change all instances in this function.
7284 (cplus_type_of_child): If our parent is one of the "fake"
7285 parents, we need to get at the type of the real parent, and
7286 derive the child's true type using this information.
7287
72882002-01-13 Andrew Cagney <[email protected]>
7289
7290 From 2002-01-09 John Marshall <[email protected]>:
7291 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
7292 sources.redhat.com, and tweak some related URLs which had
7293 suffered from linkrot.
7294
72952002-01-13 Andrew Cagney <[email protected]>
7296
7297 From Jeff law:
7298 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
7299 structures passed in registers.
7300
73012002-01-13 Eli Zaretskii <[email protected]>
7302
7303 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
7304 white space which prevented compilation. Reported by DSK
7305 <[email protected]>.
7306
73072002-01-11 Michael Snyder <[email protected]>
7308
7309 * symfile.c (build_section_addr_info_from_section_tab):
7310 Use bfd access method instead of manipulating bfd directly.
7311 (syms_from_objfile): Ditto.
7312 (simple_overlay_update_1): Ditto.
7313 (simple_overlay_update): Ditto.
7314 (generic_load): Ditto.
7315 (overlay_unmapped_address): FIXME comment, bfd access methods.
7316 (sections_overlap): FIXME comment, bfd access methods.
7317 (pc_in_mapped_range): FIXME comment, bfd access methods.
7318 (pc_in_unmapped_range): FIXME comment, bfd access methods.
7319 (section_is_mapped): FIXME comment, bfd access methods.
7320 (section_is_overlay): FIXME comment, bfd access methods.
7321
7322 * symfile.c (generic_load): Whitespace and long line cleanups.
7323 Remove duplicate variable, change several local variables to
7324 more appropriate data types.
7325 (print_transfer_performance): Use %lu instead of %ld for ulongs.
7326
73272002-01-12 Andrew Cagney <[email protected]>
7328
7329 From Peter Schauer:
7330 * language.c (longest_local_hex_string_custom): Use phex_nz to
7331 convert NUM to a hex string.
7332
73332002-01-12 Elena Zannoni <[email protected]>
7334
7335 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
7336 the function.
7337 Update Copyright year.
7338
73392002-01-12 Andrew Cagney <[email protected]>
7340
7341 * language.c (longest_raw_hex_string): Delete unused function.
7342
73432002-01-11 Petr Sorfa <[email protected]>
7344
7345 * MAINTAINERS (write-after-approval): Add myself.
7346 * dwarf2read.c (read_tag_string_type): Handling of
7347 DW_AT_byte_size.
7348 (read_tag_string_type): FORTRAN fix to prevent propagation of
7349 first string size.
7350 (set_cu_language): Handling of DW_LANG_Fortran95
7351
73522002-01-11 Richard Earnshaw <[email protected]>
7353
7354 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
7355 GETPID(inferior_ptid).
7356 (store_inferior_registers): Likewise.
7357
73582002-01-10 Jason Merrill <[email protected]>
7359
7360 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
7361 Fix DW_OP_minus.
7362
73632002-01-10 Andrew Cagney <[email protected]>
7364
7365 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
7366 and bfd/elf32-sh-nbsd.c.
7367
73682002-01-10 Michael Snyder <[email protected]>
7369
7370 * NEWS: Mention --pid and corefile/proc-id behavior change.
7371
7372 * Makefile.in: Add rules for gcore.o and linux-proc.o.
7373 * gcore.c: Include cli/cli-decode.h instead of command.h.
7374
7375 * main.c (captured_main): Add new command line option "--pid".
7376 If the second command line argument (following the symbol-file)
7377 begins with a digit, try to attach to it before trying to open
7378 it as a corefile.
7379 (print_gdb_help): Document the "--pid" argument.
7380
73812002-01-10 Eli Zaretskii <[email protected]>
7382
7383 * completer.c (command_completer): New function.
7384
7385 * completer.h <command_completer>: Add prototype.
7386
7387 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
7388 completer for the "help" command.
7389
73902002-01-09 Jason Merrill <[email protected]>
7391
7392 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
7393
73942002-01-09 Michael Snyder <[email protected]>
7395
7396 * i386-linux-nat.c (fill_fpxregset): Make global.
7397 (store_fpxregset): Ditto.
7398
7399 * gregset.h (gdb_fpxregset_t): Define.
7400 (supply_fpxregset): Prototype.
7401 (fill_fpxregset): Prototype.
7402
7403 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
7404
74052002-01-09 Richard Earnshaw <[email protected]>
7406
7407 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
7408 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
7409 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
7410
74112002-01-09 Andrew Cagney <[email protected]>
7412
7413 * MAINTAINERS: Update target maintainer rules so that any
7414 Maintainer can approve a tested patch for a maintenance-only
7415 target.
7416
74172002-01-09 Richard Earnshaw <[email protected]>
7418
7419 * MAINTAINERS (write-after-approval): Add myself.
7420
7421 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
7422 IN_SIGTRAMP.
7423
74242002-01-08 Michael Snyder <[email protected]>
7425
7426 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
7427 real name of the executable, rather than the /proc name.
7428
74292002-01-03 Michael Snyder <[email protected]>
7430
7431 Implement a "generate-core-file" command in gdb, save target state.
7432 * gcore.c: New file. Implement new command 'generate-core-file'.
7433 Save a corefile image of the current state of the inferior.
7434 * linux-proc.c: Add linux-specific code for saving corefiles.
7435 * target.h (struct target_ops): Add new target vectors for saving
7436 corefiles; to_find_memory_regions and to_make_corefile_notes.
7437 (target_find_memory_regions): New macro.
7438 (target_make_corefile_notes): New macro.
7439 * target.c (update_current_target): Inherit new target methods.
7440 (dummy_find_memory_regions): New place-holder method.
7441 (dummy_make_corefile_notes): New place-holder method.
7442 (init_dummy_target): Initialize new dummy target vectors.
7443 * exec.c (exec_set_find_memory_regions): New function.
7444 Allow the exec_ops vector for memory regions to be taken over.
7445 (exec_make_note_section): New function, target vector method.
7446 * defs.h (exec_set_find_memory_regions): Export prototype.
7447 * procfs.c (proc_find_memory_regions): New function, corefile method.
7448 (procfs_make_note_section): New function, corefile method.
7449 (init_procfs_ops): Set new target vector pointers.
7450 (find_memory_regions_callback): New function.
7451 (procfs_do_thread_registers): New function.
7452 (procfs_corefile_thread_callback): New function.
7453 * sol-thread.c (sol_find_memory_regions): New function.
7454 (sol_make_note_section): New function.
7455 (init_sol_thread_ops): Initialize new target vectors.
7456 * inftarg.c (inftarg_set_find_memory_regions): New function.
7457 Allow to_find_memory_regions vector to be taken over.
7458 (inftarg_set_make_corefile_notes): New function.
7459 Allow to_make_corefile_notes vector to be taken over.
7460 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
7461 interface layer if not target_has_execution (may be a corefile).
7462 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
7463 * config/sparc/sun4sol2.mh: Ditto.
7464 * config/alpha/alpha-linux.mh: Ditto.
7465 * config/arm/linux.mh: Ditto.
7466 * config/i386/x86-64linux.mh: Ditto.
7467 * config/ia64/linux.mh: Ditto.
7468 * config/m68k/linux.mh: Ditto.
7469 * config/mips/linux.mh: Ditto.
7470 * config/powerpc/linux.mh: Ditto.
7471 * config/sparc/linux.mh: Ditto.
7472
74732002-01-07 Michael Snyder <[email protected]>
7474
7475 * arm-linux-nat.c: Remove references to regcache.c internal data
7476 (registers[] and register_valid[]).
7477
74782002-01-07 Michael Snyder <[email protected]>
7479
7480 * linux-proc.c: New file. Implement child_pid_to_exec_file,
7481 so that attaching to a pid will automatically read the process's
7482 symbol file and shlibs.
7483 * Makefile.in: Add rule for linux-proc.o.
7484 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
7485 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
7486 * config/arm/linux.mh: Ditto.
7487 * config/i386/linux.mh: Ditto.
7488 * config/i386/x86-64linux.mh: Ditto.
7489 * config/ia64/linux.mh: Ditto.
7490 * config/m68k/linux.mh: Ditto.
7491 * config/mips/linux.mh: Ditto.
7492 * config/powerpc/linux.mh: Ditto.
7493 * config/sparc/linux.mh: Ditto.
7494
74952002-01-06 Pierre Muller <[email protected]>
7496
7497 * win32-nat.c: Add i386-tdep.h dependency.
7498
74992002-01-07 Michael Snyder <[email protected]>
7500
7501 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
7502 instead of bfd_get_arch_size. Don't bail out just because
7503 there's no exec_bfd.
7504
7505 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
7506 * p-valprint.c (pascal_object_print_value): Ditto.
7507 * somread.c (som_symtab_read): Ditto.
7508 * symfile.c (simple_free_overlay_region_table): Ditto.
7509 * valops.c (value_assign): Ditto.
7510
7511 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
7512 use tilde_expand and strerror for opening save-tracepoints file.
7513
7514 * thread-db.c (thread_db_new_objfile): Indendation fix.
7515
7516 * infptrace.c (GDB_MAX_ALLOCA): New define.
7517 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
7518 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
7519 can be overridden with whatever value is appropriate to the host).
7520 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
7521 alloca to allocate potentially large buffer.
7522 * rs6000-nat.c (child_xfer_memory): Ditto.
7523 * symm-nat.c (child_xfer_memory): Ditto.
7524 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
7525
75262002-01-07 Jackie Smith Cashion <[email protected]>
7527
7528 From Nick Clifton <[email protected]>
7529 * d10v-tdep.c: Set STACK_START to 0x200bffe.
7530
75312002-01-07 Michael Snyder <[email protected]>
7532
7533 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
7534 Don't use exec_bfd if it's NULL.
7535
75362002-01-06 Mark Kettenis <[email protected]>
7537
7538 * valops.c (value_arg_coerce): Fix formatting.
7539
75402002-01-06 Andrew Cagney <[email protected]>
7541
7542 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
7543 * gnu-nat.c: Ditto.
7544
75452002-01-06 Andrew Cagney <[email protected]>
7546
7547 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
7548 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
7549 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
7550 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
7551 z8k-coff have not been multi-arched. Update z8k-coff build
7552 status.
7553
75542002-01-06 Andrew Cagney <[email protected]>
7555
7556 * MAINTAINERS: Mark a29k target as obsolete.
7557 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
7558 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
7559 comments.
7560 * NEWS: Note that a29k targets are obsolete.
7561 * a29k-tdep.c: Mark as obsolete.
7562 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
7563 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
7564 a29k-*-vxworks* targets as obsolete.
7565 * remote-adapt.c: Obsolete.
7566 * remote-eb.c: Obsolete.
7567 * remote-mm.c: Obsolete.
7568 * remote-udi.c: Obsolete.
7569 * config/a29k/a29k-udi.mt: Obsolete.
7570 * config/a29k/a29k.mt: Obsolete.
7571 * config/a29k/tm-a29k.h: Obsolete.
7572 * config/a29k/tm-vx29k.h: Obsolete.
7573 * config/a29k/vx29k.mt: Obsolete.
7574
75752002-01-05 Andrew Cagney <[email protected]>
7576
7577 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
7578 with BFD_ENDIAN_BIG.
7579
75802002-01-05 Andrew Cagney <[email protected]>
7581
7582 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
7583 * configure, config.in: Re-generate.
7584 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
7585 * defs.h: Do not include <endian.h>.
7586
75872002-01-05 Jason Thorpe <[email protected]>
7588
7589 * acconfig.h (HAVE_PT_GETXMMREGS): New.
7590 * config.in: Regenerate.
7591 * configure.in: Update copyright years.
7592 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
7593 * configure: Regenerate.
7594 * i386bsd-nat.c: Update copyright years.
7595 (fill_gregset): Use regcache_collect.
7596 (fetch_inferior_registers): Only fetch integer registers
7597 if requested to do so. Add support for XMM registers
7598 using PT_GETXMMREGS.
7599 (store_inferior_registers): Only store integer registers
7600 if requested to do so. Add support for XMM registers
7601 using PT_SETXMMREGS.
7602 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
7603 (store_inferior_registers): Remove.
7604 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
7605 (fetch_elfcore_registers): New function.
7606 (i386nbsd_elfcore_fns): New.
7607 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
7608 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
7609 i386bsd-nat.o.
7610 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
7611 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
7612 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
7613 * config/i386/tm-nbsd.h: Update copyright years.
7614 (HAVE_SSE_REGS): Define.
7615 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
7616 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
7617 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
7618 (SIGCONTEXT_PC_OFFSET): Remove.
7619 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
7620
76212002-01-05 Andrew Cagney <[email protected]>
7622
7623 * configure.tgt: Remove powerpc-*-macos* target.
7624 * config/m68k/xm-mpw.h: Delete file.
7625 * config/xm-mpw.h: Delete file.
7626 * ser-mac.c: Delete file.
7627 * mpw-make.sed: Delete file.
7628 * mpw-config.in: Delete file.
7629 * mac-xdep.c: Delete file.
7630 * mac-gdb.r: Delete file.
7631 * mac-defs.h: Delete file.
7632 * mac-nat.c: Delete file.
7633 * config/powerpc/macos.mh: Delete file.
7634 * config/powerpc/macos.mt: Delete file.
7635 * config/powerpc/nm-macos.h: Delete file.
7636 * config/powerpc/tm-macos.h: Delete file.
7637 * source.c (openp, open_source_file): Remove obsolete code.
7638 * top.c (gdb_readline): Ditto.
7639 * utils.c (query): Ditto.
7640 * event-top.c (display_gdb_prompt): Ditto.
7641 * Makefile.in (ser-mac.o): Delete obsolete target.
7642 * NEWS: Update.
7643
76442002-01-04 Andrew Cagney <[email protected]>
7645
7646 * defs.h (BIG_ENDIAN): Delete macro definition.
7647 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
7648 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
7649 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
7650 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
7651 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
7652 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
7653 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
7654 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
7655 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
7656 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
7657 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
7658 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
7659 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
7660 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
7661 * gdbarch.c: Re-generate.
7662
76632002-01-04 Daniel Jacobowitz <[email protected]>
7664
7665 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
7666 for core files.
7667
76682002-01-04 Jason Thorpe <[email protected]>
7669
7670 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
7671
76722002-01-04 Andrew Cagney <[email protected]>
7673
7674 * value.h (value_ptr): Delete typedef.
7675
76762002-01-04 Jason Thorpe <[email protected]>
7677
7678 * i386nbsd-nat.c: Update copyright years.
7679 Include i386-tdep.h.
7680
76812002-01-04 Elena Zannoni <[email protected]>
7682
7683 * stabsread.c: Update copyright years.
7684
7685 From Debashis Mahata <[email protected]>:
7686 (read_struct_fields): Deal with Sun C compiler erroneous stab
7687 output for structs and unions.
7688 Fix PR gdb/269.
7689
76902002-01-04 Daniel Jacobowitz <[email protected]>
7691
7692 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
7693 prototype.
7694
76952002-01-04 Daniel Jacobowitz <[email protected]>
7696
7697 * cp-abi.c: Fix whitespace.
7698 (baseclass_offset): New wrapper function.
7699 * cp-abi.h (baseclass_offset): Add prototype.
7700 (struct cp_abi_ops): Add baseclass_offset pointer.
7701
7702 * valops.c (vb_match): Move to...
7703 * gnu-v2-abi.c (vb_match): here.
7704 * valops.c (baseclass_offset): Move to...
7705 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
7706
7707 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
7708
7709 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
7710 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
7711 * hpacc-abi.c (init_hpacc_ops): Likewise.
7712
77132002-01-04 Daniel Jacobowitz <[email protected]>
7714
7715 * valops.c (find_overload_match): Accept obj as a
7716 reference parameter. Update it before returning.
7717 * value.h (find_overload_match): Update prototype.
7718 * eval.c (evaluate_subexp_standard): Pass object to
7719 find_overload_match by reference.
7720
77212002-01-03 Andrew Cagney <[email protected]>
7722
7723 * valarith.c: Replace value_ptr with struct value pointer. Remove
7724 register attribute from value declarations.
7725 * valops.c: Ditto.
7726 * value.h: Ditto.
7727 * scm-lang.c (scm_lookup_name): Ditto.
7728
77292002-01-03 Michael Snyder <[email protected]>
7730
7731 Abstract the functionality of iterating over mapped memory
7732 regions into a general purpose iterator function.
7733 * procfs.c (iterate_over_mappings): New function, general purpose
7734 iterator for memory sections.
7735 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
7736 (solib_mappings_callback): New function, callback for above.
7737 (info_proc_mappings): Reimpliment using iterate_over_mappings.
7738 (info_mappings_callback): New function, callback for above.
7739
7740 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
7741
77422002-01-01 Mark Kettenis <[email protected]>
7743
7744 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
7745 * i386-tdep.c: Include "elf-bfd.h".
7746 (process_note_abi_tag_sections): New function.
7747 (i386_gdbarch_init): Add code to recognize various OS/ABI
7748 combinations.
7749
7750 * maint.c (_initialize_maint_cmds): Add missing \ in
7751 string-literal.
7752
7753For older changes see ChangeLog-2001
7754\f
7755Local Variables:
7756mode: change-log
7757left-margin: 8
7758fill-column: 74
7759version-control: never
7760End:
This page took 0.113827 seconds and 4 git commands to generate.