daily update
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
f4f9705a
AC
12002-04-18 Andrew Cagney <cagney@redhat.com>
2
3 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
4 * gdbarch.h, gdbarch.c: Regenerate.
5
6 * defs.h (breakpoint_from_pc_fn): Delete type definition.
7 * target.h (memory_breakpoint_from_pc): Update declaration.
8 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
9
10 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
11 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
12 * mem-break.c (memory_breakpoint_from_pc): Ditto.
13 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
14 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
15 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
16 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
17 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
18 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
19 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
20 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
21 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
22
23 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
24 const pointer.
25 * monitor.c (monitor_insert_breakpoint): Ditto.
26 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
27
28 * config/mcore/tm-mcore.h: Update copyright.
29 * mem-break.c: Ditto.
30 * xstormy16-tdep.c: Ditto.
31
29f319b8
PM
322002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
33
34 * p-exp.y: Add precedence rule for '^' token.
35 This removes the shift/reduce conflicts.
36 Remove the comment concerning these shift/reduce conflicts.
37
ebeac11a
EZ
382002-04-18 Elena Zannoni <ezannoni@redhat.com>
39
40 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
41 (registers_powerpc_nofp): New register set for processors
42 without floating point unit.
43
27c31547
DM
442002-04-18 David S. Miller <davem@redhat.com>
45
46 * MAINTAINERS: Add myself to write-after-approval.
47
953836b2
AC
482002-04-17 Andrew Cagney <ac131313@redhat.com>
49
50 * rs6000-tdep.c (frame_initial_stack_address): Use
51 frame_register_read to read the alloca_reg.
52
8b0d4340
AC
532002-04-17 Andrew Cagney <ac131313@redhat.com>
54
55 * frame.c (find_saved_register): Find saved registers in the next
56 not prev frame.
57 Fix PR gdb/365.
58
d8864532
AC
592002-04-17 Andrew Cagney <ac131313@redhat.com>
60
61 * gdbarch.sh (LANG): Set to ``c''.
62
36cc83a3
AC
632002-04-15 Andrew Cagney <ac131313@redhat.com>
64
65 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
66
2f4150cc 672002-04-15 Andrew Cagney <ac131313@redhat.com>
2c7ef074
AC
68
69 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
70 Update copyright.
71
628703c6 72 * hpread.c (hpread_get_lntt): Add declaration.
2f4150cc
AC
73 Also fix PR gdb/391.
74
56157b4a
AC
752002-04-14 Andrew Cagney <ac131313@redhat.com>
76
77 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
78 * aclocal.m4, configure: Re-generate.
79 Fix PR gdb/391.
80
6d1e3329
EZ
812002-04-14 Elena Zannoni <ezannoni@redhat.com>
82
83 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
84 instead of tm_print_insn.
85
cb06fa07
EZ
862002-04-14 Elena Zannoni <ezannoni@redhat.com>
87
88 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
89
f208ba17
AC
902002-04-14 Andrew Cagney <ac131313@redhat.com>
91
92 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
93 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
94 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
95
20f01a46
DH
962002-04-12 Don Howard <dhoward@redhat.com>
97
98 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
99 max_user_call_depth.
100 (init_cmd_lists): Initialize the new value;
101 * cli/cli-script.c (execute_user_command): Limit the call depth of
102 user defined commands. This avoids a core-dump when user commands
103 are infinitly recursive.
104
a88376a3
KB
1052002-04-12 Kevin Buettner <kevinb@redhat.com>
106
107 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
108 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
109 from tdep struct instead of DEFAULT_LR_SAVE.
110 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
111 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
112 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
113
f2172603
MS
1142002-04-12 Michael Snyder <msnyder@redhat.com>
115
694f61fb 116 * Remote.c: Spelling fix.
20fe79c8
MS
117 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
118 If no symbol found for "sbrk", try "_sbrk".
119 (make_output_phdrs): Use bfd_section_name.
120 (gcore_copy_callback): Use bfd_section_name.
62995fc4 121 * eval.c: Indentation fix-ups.
169a7369
MS
122 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
123 in case it gets applied to an address that is already
124 in the instruction space.
de74f71f
MS
125 * cli/cli-decode.c (help_list): Allow long lines to wrap.
126 * symfile.c: Fix indentation, long lines.
f2172603
MS
127 * source.c: White space fix-up.
128
cda5a58a
AC
1292002-04-12 Andrew Cagney <cagney@redhat.com>
130
131 * defs.h (read_relative_register_raw_bytes): Delete declaration.
132 * frame.c (frame_register_read): New function. Return non-zero on
133 success.
134 (read_relative_register_raw_bytes_for_frame): Delete.
135 (read_relative_register_raw_bytes): Delete.
136 * frame.h (frame_register_read): Declare.
137 * d30v-tdep.c: Update Copyright. Use frame_register_read.
138 * sh-tdep.c: Ditto.
139 * infcmd.c (do_registers_info): Ditto.
140 * hppa-tdep.c: Ditto.
141 * rs6000-tdep.c: Ditto.
142 * h8500-tdep.c: Ditto.
143 * mips-tdep.c: Ditto.
144 * h8300-tdep.c: Ditto.
145 * z8k-tdep.c: Ditto.
146
2ea5f656
KB
1472002-04-12 Kevin Buettner <kevinb@redhat.com>
148
149 From Jimi X <jimix@watson.ibm.com>:
150 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
151 64-bit SysV ABI.
152
27b15785
KB
1532002-04-12 Kevin Buettner <kevinb@redhat.com>
154
155 From Jimi X <jimix@watson.ibm.com>:
156 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
157 bfd info.
158
5d57ee30
KB
1592002-04-12 Kevin Buettner <kevinb@redhat.com>
160
161 From Jimi X <jimix@watson.ibm.com>:
162 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
163 register sets for these processor variants.
164
bc1e36ca
DJ
1652002-04-11 Daniel Jacobowitz <drow@mvista.com>
166
167 * gdbserver/linux-low.c (usr_store_inferior_registers): Support
168 registers which are allowed to fail to store.
169 * gdbserver/linux-low.h (linux_target_ops): Likewise.
170 * gdbserver/linux-ppc-low.c (ppc_regmap): Support FPSCR.
171 (ppc_cannot_store_register): FPSCR may not be storable.
172 * regformats/reg-ppc.dat: Support FPSCR.
173
e3f36dbd
KB
1742002-04-11 Kevin Buettner <kevinb@redhat.com>
175
176 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
177 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
178 Add fpscr as an invalid/unfetchable register.
179 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
180 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
181 (fill_fpregset): Add support for register fpscr.
182 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
183 (fill_gregset): Account for the fact that register ``mq'' might
184 not exist.
185 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
186 (registers_power): Add fpscr to register set at slot 71.
187 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
188 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
189
943c9c25
MS
1902002-04-11 Michael Snyder <msnyder@redhat.com>
191
192 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
193 * configure: Regenerate.
194 * config.in: Regenerate.
195 * acconfig.h: Add define for _SYSCALL32.
196 * core-sol2.c: Remove #define _SYSCALL32.
197 * solib-legacy.c: Remove #define _SYSCALL32.
198
d8c0a2e7
AC
1992002-04-10 Andrew Cagney <ac131313@redhat.com>
200
201 * stack.c (select_frame): Cleanup internal error message, do not
202 use %p.
203
7cc19214
AC
2042002-04-10 Andrew Cagney <ac131313@redhat.com>
205
206 * stack.c (select_frame): Check that selected_frame and the
207 specified level are as expected.
208 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
209 Update copyright.
210 * frame.h (struct frame_info): Add field `level'. Update
211 copyright.
212 Work-in-progress PR gdb/464.
213
67a2b77e
AC
2142002-04-10 Andrew Cagney <ac131313@redhat.com>
215
216 * maint.c (maint_print_section_info): Rename print_section_info.
217 (print_bfd_section_info, print_objfile_section_info): Update.
218 * inferior.h (struct gdbarch): Add opaque declaration.
219 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
220 * gdbarch.h: Regenerate.
221
8cfda98c
ML
2222002-04-10 Michal Ludvig <mludvig@suse.cz>
223
224 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
225 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
226 (kernel_u_size): Added.
227 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
228 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
229
ca439ad2
JI
2302002-04-04 Jim Ingham <jingham@apple.com>
231
232 * valarith.c (find_size_for_pointer_math): New function, either returns
233 the size for a pointer's target, returns 1 for void *, or errors for
234 incomplete types.
235 (value_add, value_sub): use find_size_for_pointer_math.
236
2f2893d9
DJ
2372002-04-09 Daniel Jacobowitz <drow@mvista.com>
238
239 * linux-low.c (linux_look_up_symbols): New hook.
240 (linux_target_ops): Add linux_look_up_symbols.
241 * remote-utils.c (decode_address): New function.
242 (look_up_one_symbol): New function.
243 * server.c (handle_query): Call target look_up_symbols hook.
244 * server.h (look_up_one_symbol): Add prototype.
245 * target.h (struct target_ops): Add look_up_symbols hook.
246
2ec06d2e
DJ
2472002-04-09 Daniel Jacobowitz <drow@mvista.com>
248
d64b8841
DJ
249 * gdbserver/server.h: Include <string.h> if HAVE_STRING_H.
250 * ChangeLog: Correct paths in last ChangeLog entry.
251
2522002-04-09 Daniel Jacobowitz <drow@mvista.com>
253
254 * gdbserver/linux-low.h: Remove obsolete prototypes.
2ec06d2e
DJ
255 (struct linux_target_ops): New.
256 (extern the_low_target): New.
d64b8841 257 * gdbserver/linux-low.c (num_regs, regmap): Remove declarations.
2ec06d2e
DJ
258 (register_addr): Use the_low_target explicitly.
259 (fetch_register): Likewise.
260 (usr_fetch_inferior_registers): Likewise.
261 (usr_store_inferior_registers): Likewise.
d64b8841 262 * gdbserver/linux-arm-low.c (num_regs): Remove.
2ec06d2e
DJ
263 (arm_num_regs): Define.
264 (arm_regmap): Renamed from regmap, made static.
265 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
266 made static.
267 (arm_cannot_store_register): Renamed from cannot_store_register,
268 made static.
269 (the_low_target): New.
d64b8841 270 * gdbserver/linux-i386-low.c (num_regs): Remove.
2ec06d2e
DJ
271 (i386_num_regs): Define.
272 (i386_regmap): Renamed from regmap, made static.
273 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
274 made static.
275 (i386_cannot_store_register): Renamed from cannot_store_register,
276 made static.
277 (the_low_target): New.
d64b8841 278 * gdbserver/linux-ia64-low.c (num_regs): Remove.
2ec06d2e
DJ
279 (ia64_num_regs): Define.
280 (ia64_regmap): Renamed from regmap, made static.
281 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
282 made static.
283 (ia64_cannot_store_register): Renamed from cannot_store_register,
284 made static.
285 (the_low_target): New.
d64b8841 286 * gdbserver/linux-m68k-low.c (num_regs): Remove.
2ec06d2e
DJ
287 (m68k_num_regs): Define.
288 (m68k_regmap): Renamed from regmap, made static.
289 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
290 made static.
291 (m68k_cannot_store_register): Renamed from cannot_store_register,
292 made static.
293 (the_low_target): New.
d64b8841 294 * gdbserver/linux-mips-low.c (num_regs): Remove.
2ec06d2e
DJ
295 (mips_num_regs): Define.
296 (mips_regmap): Renamed from regmap, made static.
297 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
298 made static.
299 (mips_cannot_store_register): Renamed from cannot_store_register,
300 made static.
301 (the_low_target): New.
d64b8841 302 * gdbserver/linux-ppc-low.c (num_regs): Remove.
2ec06d2e
DJ
303 (ppc_num_regs): Define.
304 (ppc_regmap): Renamed from regmap, made static.
305 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
306 made static.
307 (ppc_cannot_store_register): Renamed from cannot_store_register,
308 made static.
309 (the_low_target): New.
d64b8841 310 * gdbserver/linux-s390-low.c (num_regs): Remove.
2ec06d2e
DJ
311 (s390_num_regs): Define.
312 (s390_regmap): Renamed from regmap, made static.
313 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
314 made static.
315 (s390_cannot_store_register): Renamed from cannot_store_register,
316 made static.
317 (the_low_target): New.
d64b8841 318 * gdbserver/linux-sh-low.c (num_regs): Remove.
2ec06d2e
DJ
319 (sh_num_regs): Define.
320 (sh_regmap): Renamed from regmap, made static.
321 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
322 made static.
323 (sh_cannot_store_register): Renamed from cannot_store_register,
324 made static.
325 (the_low_target): New.
d64b8841 326 * gdbserver/linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
2ec06d2e
DJ
327 (the_low_target): New.
328
96cb11df
AC
3292002-04-09 Andrew Cagney <ac131313@redhat.com>
330
331 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
332 override FP_REGNUM with frame->fp. Update copyright.
333 * parse.c (num_std_regs, std_regs): Delete.
334 (target_map_name_to_register): Do not search std_regs. Update
335 function description.
336 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
337 declarations. Update copyright.
338 Fix PR gdb/251.
339
c3a3ccc7
DJ
3402002-04-09 Daniel Jacobowitz <drow@mvista.com>
341
342 * gdbserver/Makefile.in: Add stamp-h target.
343 * gdbserver/configure.in: Create stamp-h.
344 * gdbserver/configure: Regenerated.
345
ce3a066d
DJ
3462002-04-09 Daniel Jacobowitz <drow@mvista.com>
347
348 * gdbserver/inferiors.c: New file.
349 * gdbserver/target.c: New file.
350 * gdbserver/target.h: New file.
351 * gdbserver/Makefile.in: Add target.o and inferiors.o. Update
352 dependencies.
353 * gdbserver/linux-low.c (inferior_pid): New static variable,
354 moved from server.c.
355 (linux_create_inferior): Renamed from create_inferior.
356 Call add_inferior. Return 0 on success instead of a PID.
357 (linux_attach): Renamed from myattach.
358 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
359 (linux_thread_alive): Renamed from mythread_alive.
360 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
361 child dies.
362 (linux_resume): Renamed from myresume. Add missing ``return 0''.
363 (regsets_store_inferior_registers): Correct error message.
364 Add missing ``return 0''.
365 (linux_fetch_registers): Renamed from fetch_inferior_registers.
366 (linux_store_registers): Renamed from store_inferior_registers.
367 (linux_read_memory): Renamed from read_inferior_memory.
368 (linux_write_memory): Renamed from write_inferior_memory.
369 (linux_target_ops): New structure.
370 (initialize_low): Call set_target_ops ().
371 * gdbserver/remote-utils.c (unhexify): New function.
372 (hexify): New function.
373 (input_interrupt): Send signals to ``signal_pid''.
374 * gdbserver/server.c (inferior_pid): Remove.
375 (start_inferior): Update create_inferior call.
376 (attach_inferior): Call add_inferior.
377 (handle_query): New function.
378 (main): Call handle_query for `q' packets.
379 * gdbserver/server.h: Include "target.h". Remove obsolete prototypes.
380 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
381
0729219d
DJ
3822002-04-09 Daniel Jacobowitz <drow@mvista.com>
383
384 * gdbserver/Makefile.in: Add WARN_CFLAGS. Update configury
385 dependencies.
386 * gdbserver/configure.in: Check for <string.h>
387 * gdbserver/configure: Regenerate.
388 * gdbserver/config.in: Regenerate.
389 * gdbserver/gdbreplay.c: Include needed system headers.
390 (remote_open): Remove strchr prototype.
391 * gdbserver/linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
392 * gdbserver/regcache.c (supply_register): Change buf argument to const void *.
393 (supply_register_by_name): Likewise.
394 (collect_register): Change buf argument to void *.
395 (collect_register_by_name): Likewise.
396 * gdbserver/regcache.h: Add missing prototypes.
397 * gdbserver/remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
398 * gdbserver/server.c (handle_query): New function.
399 (attached): New static variable, moved out of main.
400 (main): Quiet longjmp clobber warnings.
401 * gdbserver/server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
402 * gdbserver/utils.c (error): Remove NORETURN.
403 (fatal): Likewise.
404
97658e92
DJ
4052002-04-09 Daniel Jacobowitz <drow@mvista.com>
406
407 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
408 after the last symbol in a block.
409
6044e3eb
PM
4102002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
411
412 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
413 is non zero as a found symbol.
414
0406ec40
AC
4152002-04-08 Andrew Cagney <ac131313@redhat.com>
416
417 * findvar.c: Include "builtin-regs.h".
418 (value_of_register): Call value_of_builtin_reg when applicable.
419 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
420 (target_map_name_to_register): Call
421 builtin_reg_map_name_to_regnum.
422 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
423 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
424 (builtin_regs_h): Define.
425 (builtin-regs.o): New target.
426 (findvar.o): Add $(builtin_regs_h).
427 * builtin-regs.c, builtin-regs.h: New files.
428 * std-regs.c: New file.
429 Partial fix for PR gdb/251.
430
56a6dfb9
KB
4312002-04-08 Kevin Buettner <kevinb@redhat.com>
432
433 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
434 it's no longer required.
435
3a808432
AC
4362002-04-08 Andrew Cagney <ac131313@redhat.com>
437
438 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
439
7c40d541
KB
4402002-04-08 Kevin Buettner <kevinb@redhat.com>
441
442 From Jimi X <jimix@watson.ibm.com>:
443 * rs6000-tdep.c (rs6000_software_single_step): Use
444 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
445 and size. Use target_insert_breakpoint() and
446 target_remove_breakpoint() to insert and remove breakpoints
447 instead of explicit memory reads and writes.
448
cc9836a8
KB
4492002-04-08 Kevin Buettner <kevinb@redhat.com>
450
451 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
452 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
453 ELF_OBJECT_FORMAT ifdef.
454
7495d1dc
KB
4552002-04-08 Kevin Buettner <kevinb@redhat.com>
456
457 From Jimi X <jimix@watson.ibm.com>:
458 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
459
4288e836
KB
4602002-04-08 Kevin Buettner <kevinb@redhat.com>
461
462 From Jimi X <jimix@watson.ibm.com>:
463 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
464 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
465
a4e4e501
MK
4662002-04-07 Mark Kettenis <kettenis@gnu.org>
467
468 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
469 s/asprintf/xasprintf/.
470 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
471
006defba
AC
4722002-04-07 Andrew Cagney <ac131313@redhat.com>
473
474 I believe Jeff Law denies responsability for this one:
475 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
476 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
477 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
478 Work-around for PR gdb/366.
479
7aa83cac
EZ
4802002-04-07 Elena Zannoni <ezannoni@redhat.com>
481
482 * remote-e7000.c (write_small, e7000_read_inferior_memory,
483 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
484 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
485
cf1fcca1
EZ
4862002-04-07 Elena Zannoni <ezannoni@redhat.com>
487
488 * sh-tdep.c (sh_fp_frame_init_saved_regs,
489 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
490 information.
491
3f289e6f
AC
4922002-04-07 Andrew Cagney <ac131313@redhat.com>
493
494 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
495 maintainer.
496
129188f6
AC
4972002-04-07 Andrew Cagney <ac131313@redhat.com>
498
499 * README (Reporting Bugs in GDB): Document the bug web page as the
500 prefered way of submitting bugs.
501 Fix PR gdb/402.
502
1200cd6e
AC
5032002-04-06 Andrew Cagney <ac131313@redhat.com>
504
505 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
506 -1. Update comment.
507 * gdbarch.h, gdbarch.c: Re-generate.
508
2853c33c
AS
5092002-04-07 Andreas Schwab <schwab@suse.de>
510
511 * m68klinux-nat.c (fill_fpregset): Properly pass address of
512 buffer to regcache_collect.
513
c2169756
AC
5142002-04-06 Andrew Cagney <ac131313@redhat.com>
515
516 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
517 * gdbarch.c, gdbarch.h: Re-generate.
518
25f1b008
AC
5192002-04-06 Andrew Cagney <ac131313@redhat.com>
520
521 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
522 declaration. Fix -Werror.
523
59263426
DJ
5242002-04-05 Daniel Jacobowitz <drow@mvista.com>
525
526 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
527 * gdbarch.c: Regenerate.
528
f5db4da3
MS
5292002-04-05 Michael Snyder <msnyder@redhat.com>
530
80f8a6eb
MS
531 * breakpoint.c (clear_command): Rewrite middle section to
532 combine two loops with identical control conditions.
533 Add a cleanup to eliminate a memory leak.
f5db4da3
MS
534 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
535
ad3dcc5c
L
5362002-04-05 H.J. Lu (hjl@gnu.org)
537
538 * solib-svr4.c (bkpt_names): Add "__start".
539
f32e7a74
AC
5402002-04-04 Andrew Cagney <ac131313@redhat.com>
541
542 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
543 as test for 64 bit target.
544
8227c0ff
AC
5452002-04-05 Andrew Cagney <ac131313@redhat.com>
546
547 * h8500-tdep.c (h8500_write_fp): Delete function.
548 * dwarf2cfi.c (cfi_write_fp): Document as not used.
549 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
550 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
551 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
552 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
553 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
554 (s390_write_fp):
555 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
556 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
557 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
558 (d10v_write_fp): Delete function.
559 * inferior.h (write_fp, generic_target_write_fp): Delete
560 declarations.
561 * regcache.c (generic_target_write_fp): Delete function.
562 (write_fp): Delete function.
563 * gdbarch.sh (TARGET_WRITE_FP): Delete.
564 * gdbarch.h, gdbarch.c: Regenerate.
565 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
566 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
567 (sparc64_write_fp): Delete declaration.
568 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
569 (h8500_write_fp): Delete declaration.
570
2757dd86
AC
5712002-04-04 Andrew Cagney <ac131313@redhat.com>
572
573 * sparc-tdep.c (sparc64_write_fp): Delete.
574 (sparc_push_dummy_frame): Replace write_fp call with code to store
575 the FP directly.
576 (sparc_gdbarch_init): Do not initialize write_fp.
577
c69255e1
KB
5782002-04-05 Kevin Buettner <kevinb@redhat.com>
579
580 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
581 clause.
582
ae767bfb
JB
5832002-03-29 Jim Blandy <jimb@redhat.com>
584
585 * stack.c (get_selected_block): Add new argument `addr_in_block',
586 used to return the exact code address we used to select the block,
587 not just the block.
588 * blockframe.c (get_frame_block, get_current_block): Same.
589 * frame.h (get_frame_block, get_current_block,
590 get_selected_block): Update declarations.
591 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
592 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
593
84d2ac95
MS
5942002-04-05 Michael Snyder <msnyder@redhat.com>
595
596 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
597 warning message.
598
596aa3bf
JB
5992002-04-05 J. Brobecker <brobecker@gnat.com>
600
601 * utils.c (xfullpath): New function.
602 * defs.h (xfullpath): Add declaration.
603 * source.c (openp): Use xfullpath in place of gdb_realpath to
604 avoid resolving the basename part of filenames when the
605 associated file is a symbolic link. This fixes a potential
606 inconsistency between the filenames known to GDB and the
607 filenames it prints in the annotations.
608 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
609 to be able to match a filename with either the real filename, or
610 the name of any symbolic link to this file.
611 (lookup_partial_symtab): Ditto.
612
c02f5703
MS
6132002-04-04 Michael Snyder <msnyder@redhat.com>
614
615 * breakpoint.c: Add support for hardware breakpoints in overlays.
616 (overlay_events_enabled): New state variable.
617 (insert_breakpoints): Use overlay_events_enabled to decide
618 whether to attempt to set a breakpoint at the overlay load addr.
619 Handle bp_hardware_breakpoint as well as bp_breakpoint.
620 (remove_breakpoint): Use overlay_events_enabled to decide
621 whether breakpoints need to be removed from overlay load addr.
622 Handle bp_hardware_breakpoint as well as bp_breakpoint.
623 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
624 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
625 disable_overlay_breakpoints): Update overlay_events_enabled.
626
5fb290d7
DJ
6272002-04-04 Daniel Jacobowitz <drow@mvista.com>
628
629 * dwarf2read.c (struct function_range): New.
630 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
631 (check_cu_functions): New.
632 (read_file_scope): Initialize global function lists.
633 Call dwarf_decode_line after processing children.
634 (read_func_scope): Add to global function list.
635 (dwarf_decode_lines): Call check_cu_functions everywhere
636 record_line is called. Call record_line with a linenumber
637 of 0 to mark sequence ends.
638
7b3fabf0
ML
6392002-04-04 Michal Ludvig <mludvig@suse.cz>
640
641 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
642 change sync with glibc.
643
bce58c09
JB
6442002-04-03 Jim Blandy <jimb@redhat.com>
645
646 * configure.in: Call AC_C_INLINE.
647 * configure: Regenerated.
648
2fccf04a
DJ
6492002-04-01 Daniel Jacobowitz <drow@mvista.com>
650
651 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
652 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
653
2d1bfe2e
MK
6542002-03-31 Mark Kettenis <kettenis@gnu.org>
655
a5941fbf
MK
656 * NEWS: Mention gcore support on FreeBSD/i386.
657
a90cd31d
MK
658 * fbsd-proc.c: New file.
659 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
660 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
661
2d1bfe2e
MK
662 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
663 while statement.
664
9eb6e5a1
JB
6652002-03-29 Jim Blandy <jimb@redhat.com>
666
667 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
668 unescaped newlines in string literals, but newer ones don't. So
669 escape them.
670
f02df580
MS
6712002-03-26 Michael Snyder <msnyder@redhat.com>
672 Andrew Cagney <cagney@redhat.com>
673
674 * cli/cli-dump.c: New file. Dump memory to file,
675 restore file to memory.
676 * cli/cli-dump.h: New file.
677 * Makefile.in: Add rules, dependencies for cli-dump.o.
89743e04 678 * NEWS: Mention new commands.
f02df580 679
109f874e
MS
6802002-03-28 Michael Snyder <msnyder@redhat.com>
681
682 * symfile.c (symbol_file_add): Move test for null symbols to later.
683
520f6ade
AC
6842002-03-27 Andrew Cagney <ac131313@redhat.com>
685
686 From veksler at il.ibm.com:
687 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
688 the xstrduped original path.
689 Fix PR gdb/417.
690
d4654627
MS
6912002-03-27 Michael Snyder <msnyder@redhat.com>
692
693 * breakpoint.c (_initialize_breakpoint): Clean up help string.
694 * infcmd.c (_initialize_infcmd): Ditto.
695 * language.c (_initialize_language): Ditto.
696 * symfile.c (_initialize_symfile): Ditto.
697 * top.c (_init_main): Ditto.
698 * cli/cli-cmds.c (init_cli_cmds): Ditto.
699
6be8bc0c
EZ
7002002-03-27 Elena Zannoni <ezannoni@redhat.com>
701
702 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
703 vector registers handling.
704 (skip_prologue): Handle new AltiVec instructions. Fill in new
705 fields of frame data.
706 (frame_get_saved_regs): Fill in information for AltiVec registers.
707
12af6855
JB
7082002-03-27 Jim Blandy <jimb@redhat.com>
709
710 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
711 a function; leave this macro here to invoke that function.
712 (symbol_init_mangled_name): Declaration for that function.
713 * symtab.c (symbol_init_mangled_name): New function.
714
dc672865
AC
7152002-03-27 Andrew Cagney <ac131313@redhat.com>
716
717 * valarith.c: Replace strerror with safe_strerror.
718 * tracepoint.c: Ditto.
719 * lin-lwp.c: Ditto.
720 * go32-nat.c: Ditto.
721 * inflow.c: Ditto.
722 * gnu-nat.c: Ditto.
723
d96429cd
AS
7242002-03-27 Andreas Schwab <schwab@suse.de>
725
726 * event-top.c (command_line_handler): Remove useless if.
727
7e336ba1
AJ
7282002-03-27 Andreas Jaeger <aj@suse.de>
729
730 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
731 comment.
732
de220d0f
ML
7332002-03-27 Michal Ludvig <mludvig@suse.cz>
734
735 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
736 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
737 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
738 (x86_64_linux_dr_get_status, supply_gregset),
739 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
740 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
741 (x86_64_register_info_table): Add.
742 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
743 (x86_64_register_raw_size, x86_64_register_virtual_type),
744 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
745 general x86_64_register_info_table.
746 (i386_gdbarch_init): gdbarch_register_bytes is now set
747 dynamicaly during initialization.
748 * regformats/reg-x86-64.dat: Synced with changes to registers above.
749 * gdbserver/linux-x86-64-low.c: Ditto.
7e336ba1 750
0e98d0a7
DJ
7512002-03-27 Daniel Jacobowitz <drow@mvista.com>
752
753 * gdbserver/server.c (main): Call target_signal_to_host_p
754 and target_signal_to_host on signals received from the remote.
755 * gdbserver/remote-utils.c (prepare_resume_reply): Call
756 target_signal_from_host on signals sent to the remote.
757 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
758 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
759
3130066b
DJ
7602002-03-27 Daniel Jacobowitz <drow@mvista.com>
761
762 * signals/signals.c: Include "server.h" in gdbserver build.
763 (target_signal_from_name): Don't use STREQ.
764 (_initialize_signals): Likewise. Don't include function in
765 gdbserver build.
766
9aedf4f4
DJ
7672002-03-27 Daniel Jacobowitz <drow@mvista.com>
768
769 * signals.c: Moved to...
770 * signals/signals.c: Here.
7e336ba1 771 * Makefile (signals.o): Update.
9aedf4f4 772
3fa41cdb
JL
7732002-03-26 Jeff Law (law@redhat.com)
774
775 * somread.c (som_symtab_read): Remove some commented out code and
776 updated related comments. Do not set the minimal symbol table to
777 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
778 in a dynamic executable.
779 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
780 where we are unable to find the minimal symbol for the given
781 PC value.
782
ee677e8d
MS
7832002-03-25 Jeff Law (law@redhat.com)
784
785 * linux-proc.c (read_mapping): Scan up to end of line for filename.
786
e76e1718
ML
7872002-03-25 Michal Ludvig <mludvig@suse.cz>
788
789 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
790
18a642a1
AC
7912002-03-23 Andrew Cagney <ac131313@redhat.com>
792
793 * command.h: Update copyright.
794 (struct cmd_list_element): Replace definition with opaque
795 declaration.
796 (enum cmd_types): Document that it will eventually be moved to
797 cli/cli-decode.h
798 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
799 (MALLOCED_REPLACEMENT): Delete macro.
800 * Makefile.in (cli_decode_h): Add $(command_h).
801 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7e336ba1 802 * top.c: Include "cli/cli-decode.h".
18a642a1
AC
803 * completer.c: Include "cli/cli-decode.h".
804 * maint.c: Include "cli/cli-decode.h".
805 * cli/cli-decode.h: Include "command.h".
806 (enum command_class): Delete.
807 (enum cmd_types): Comment out.
808 (enum cmd_auto_boolean): Delete.
809 (enum var_types): Delete.
810
b2875cc0
AC
8112002-03-23 Andrew Cagney <ac131313@redhat.com>
812
813 * cli/cli-decode.c: Include "gdb_assert.h".
814 (add_set_or_show_cmd): New static function.
815 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
816 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
817 all fields, such as func, from the set command.
818
3b45974e
AC
8192002-03-23 Andrew Cagney <ac131313@redhat.com>
820
821 * MAINTAINERS (sh-elf): Change warning flag to -w.
822
823ca731
AC
8232002-03-23 Andrew Cagney <cagney@redhat.com>
824
825 * defs.h (error): Add printf format attribute.
826 * thread-db.c (thread_from_lwp): Fix error format string.
827 * stack.c (parse_frame_specification): Ditto.
828 * cli/cli-decode.c (undef_cmd_error): Ditto.
829 * scm-lang.c (scm_lookup_name): Ditto.
830 * tracepoint.c (trace_error): Ditto.
831 * remote-utils.c (usage): Ditto.
832 * remote.c (compare_sections_command): Ditto.
833 Fix PR gdb/328.
834
0e101458
AC
8352002-03-22 Andrew Cagney <ac131313@redhat.com>
836
837 * gdbtypes.c (append_composite_type_field): New function.
838 (init_composite_type): New function.
839 * gdbtypes.h (append_composite_type_field): Declare.
840 (init_composite_type): Ditto.
841
8e0662df
EZ
8422002-03-22 Elena Zannoni <ezannoni@redhat.com>
843
844 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7e336ba1 845 function.
8e0662df
EZ
846 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
847 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
848 structure returning convention for SYSV ABI case, but not
849 for GNU/Linux, FreeBSD, or NetBSD.
850
3121eff0
DJ
8512002-03-22 Daniel Jacobowitz <drow@mvista.com>
852
853 * symtab.h (lookup_block_symbol): Add mangled_name argument
854 to prototype.
855
856 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
857 with new mangled_name argument.
858 * linespec.c (decode_line_1): Likewise.
859 * valops (value_of_this): Likewise.
860 * symtab.c (lookup_transparent_type): Likewise.
861 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
862 (lookup_symbol): If we are given a mangled name, pass it down
863 to lookup_symbol_aux.
864 (lookup_block_symbol): If we are given a mangled name to check
865 against, only return symbols which match it.
866
349b409f
CF
8672002-03-22 Christopher Faylor <cgf@redhat.com>
868
869 * win32-nat.c (child_create_inferior): Check for proper shell to use
870 here, in case the user changes it on the fly.
871 (_initialize_inftarg): Remove shell path considerations.
872
2a873819
EZ
8732002-03-21 Elena Zannoni <ezannoni@redhat.com>
874
875 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
876 for gdbarch_max_register_raw_size and max_register_virtual_size.
877 Adjust copyright year.
878
a1b9830c
DJ
8792002-03-21 Daniel Jacobowitz <drow@mvista.com>
880
881 * dbxread.c (process_one_symbol): Extend the first N_SLINE
882 in a function to cover the entire beginning of the function
883 as well if it does not already.
884
8b5790f2
TR
8852002-03-21 Tom Rix <trix@redhat.com>
886
887 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
888 (rs6000_ptrace64): Renamed from ptrace64.
889
bdbe5747
MH
8902002-03-20 Martin M. Hunt <hunt@redhat.com>
891
892 * gdbserver/remote-utils.c (remote_open): Don't call
893 getprotobyname, we're all using TCP here so just use
894 IPPROTO_TCP.
7e336ba1 895 * gdbserver/gdbreplay.c (remote_open): Ditto.
bdbe5747
MH
896
8972002-03-20 Martin M. Hunt <hunt@redhat.com>
7e336ba1 898
bdbe5747
MH
899 * regcache.c (_initialize_regcache): No need to call
900 build_regcache() at this time; it gets called whenever
901 the gdbarch changes.
902
7781cd62
DB
9032002-03-20 David O'Brien <obrien@FreeBSD.org>
904
905 * sparc-nat.c: Include sys/param.h where possible.
906
f65ca430
DJ
9072002-03-20 Daniel Jacobowitz <drow@mvista.com>
908
909 Fix PR gdb/422.
910 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
911 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
912 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
913 complex types.
914 * stabsread.c (rs6000_builtin_type): Likewise.
915 (read_sun_floating_type): Likewise.
916
0c867556
PS
9172002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
918
919 * stabsread.c (read_member_functions): Remove skip code for duplicate
920 constructor/destructor methods. Use standard parsing for these
921 methods and just do not chain them to the list of methods after
922 parsing.
923
12b9c64f
AO
9242002-03-19 Alexandre Oliva <aoliva@redhat.com>
925
926 * coffread.c: Remove redundant static declarations. Replace
927 occurrences of `PTR' with `void *'.
928 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
929 * top.h (quit_cover): Likewise.
930 * defs.h (catch_errors): Likewise.
931
349c5d5f
AC
9322002-03-18 Andrew Cagney <ac131313@redhat.com>
933
934 * defs.h (XMALLOC): Define.
935 * gdb-events.sh (XMALLOC): Delete macro.
936 * gdb-events.c, gdb-events.h: Regenerate.
937 * gdbarch.sh (XMALLOC): Delete macro.
938 * gdbarch.c: Regenerate.
939 * serial.c (XMALLOC): Delete macro.
940 * ui-file.c (XMALLOC): Ditto.
941 * ser-unix.h (XMALLOC): Ditto.
942 * sh-tdep.c (XMALLOC): Ditto.
943 * ui-out.c (XMALLOC): Ditto.
944 * utils.c (XMALLOC): Ditto.
945 * i386-tdep.c (XMALLOC): Ditto.
946 * gdb-events.c (XMALLOC): Ditto.
947 * d10v-tdep.c (XMALLOC): Ditto.
948 * cli-out.c (XMALLOC): Ditto.
949
950 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
951 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
952 * ui-file.c, ui-out.c: Ditto.
953
7d0766f3
AC
9542002-03-18 Andrew Cagney <ac131313@redhat.com>
955
956 * command.h (struct cmd_list_element): Add field context.
957 (set_cmd_context, get_cmd_context): Declare.
958 * cli/cli-decode.h: Ditto.
959 * cli/cli-decode.c (get_cmd_context): New function.
960 (set_cmd_context): New function.
961 (add_cmd): Initialize context.
962 Part of fixing PR gdb/145 and PR gdb/146.
963
5913bcb0
AC
9642002-03-17 Andrew Cagney <ac131313@redhat.com>
965
1868c04e
AC
966 * cli/cli-decode.c (cmd_type): New function.
967 * command.h (cmd_type): Declare.
968 * infrun.c (set_schedlock_func): Call function cmd_type.
969 * kod.c (kod_set_os): Call cmd_type.
970 * cris-tdep.c (cris_version_update): Use function cmd_type.
971 (cris_mode_update, cris_abi_update): Ditto.
972
5913bcb0
AC
973 * command.h: (execute_cmd_post_hook): Declare.
974 (execute_cmd_pre_hook): Declare.
975 * cli/cli-script.c (clear_hook_in_cleanup): New function.
976 (execute_cmd_post_hook, execute_cmd_pre_hook): New
977 functions. Execute pre/post hook while ensuring that afterwords
978 hook_in is cleared.
979 * top.c (execute_command): Use execute_cmd_post_hook, and
980 execute_cmd_pre_hook to execute pre/post commands.
981 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
982 hook_stop_stub.
983 (hook_stop_stub): Call execute_cmd_pre_hook.
984
b51450c9
AC
9852002-03-17 Andrew Cagney <ac131313@redhat.com>
986
987 * kod.c (kod_set_os): Revert previous change. Is called by ``info
988 set'' and this leads to a core dump. Move xstrdup of
989 operating_system to after check that it is not NULL.
990
f66c9f11
AC
9912002-03-17 Andrew Cagney <ac131313@redhat.com>
992
8e694ecf
AC
993 * kod.c (kod_set_os): Remove unnecessary check that
994 ``command->type'' is set_cmd.
995
f66c9f11
AC
996 * valprint.c (set_input_radix): Use input_radix.
997 (set_output_radix): Use output_radix.
998 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
999 isn't reverted.
1000
9d01611c
AC
10012002-03-16 Andrew Cagney <ac131313@redhat.com>
1002
1003 * value.h (struct value): Delete field ``substring_addr''. Change
1004 aligner fields to force_doublest_align, force_longest_align,
ee2d3b3a
AC
1005 force_core_addr_align and force_pointer_aligh.
1006
1007 * value.h (struct value): Fix typo in above change.
9d01611c 1008
4156bb53
PS
10092002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
1010
1011 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
1012 to fix internal_error from ``maintenance print architecture''.
1013
0e5e3ea6
PS
10142002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
1015
1016 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
1017 for gcc versions after gcc-2.8.1.
1018
9b013045
PS
10192002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
1020
1021 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
1022 for method resolution. Restore adjustment of ``this'' pointer after
1023 calling value_struct_elt, which was accidentally removed during the
1024 HP merge.
1025
376c9600
AC
10262002-03-15 Andrew Cagney <ac131313@redhat.com>
1027
1028 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
1029 value_of_register.
1030 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
1031 get_saved_register.
1032 * value.h (value_of_register): Update.
1033
a4db0f07
RH
10342002-03-14 Richard Henderson <rth@redhat.com>
1035
1036 * configure.in: Detect declaration for canonicalize_file_name.
1037 * utils.c (canonicalize_file_name): Declare, if needed.
1038 (gdb_realpath): Prefer realpath if available and usable.
1039 * config.in, configure: Rebuild.
1040
96383835
RH
10412002-03-14 Richard Henderson <rth@redhat.com>
1042
1043 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
1044 a constant array bound.
1045
1046 * MAINTAINERS: Add myself to write-after-approval.
1047
75245b24
MS
10482002-03-14 Michael Snyder <msnyder@redhat.com>
1049
1050 * symfile.c (syms_from_objfile): Return immediately if no syms.
1051 (symbol_file_add): Return immediately if no syms.
1052 (find_sym_fns): Return immediately if no syms.
1053
e641a1ca
ML
10542002-03-13 Michal Ludvig <mludvig@suse.cz>
1055
1056 * gdbserver/remote-util.c (remote_open): Print remote-side's
1057 IP address when remote debugging over the network.
7e336ba1 1058
df08bfec
DB
10592002-03-12 David O'Brien <obrien@FreeBSD.org>
1060
1061 * config/sparc/fbsd.mh: Fix copyright.
1062 * config/sparc/fbsd.mt: Likewise.
1063
9a57864f
RE
10642002-03-11 Richard Earnshaw <rearnsha@arm.com>
1065
1066 * MAINTAINERS: Fix typo in name of gdb warnings option.
1067 (x86-64): Fix formating so that this can be parsed by awk.
1068
dd7bf85e
DJ
10692002-03-10 Daniel Jacobowitz <drow@mvista.com>
1070
1071 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
1072 * defs.h: Include "gdb/signals.h".
1073 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
1074
33a0a2ac
ML
10752002-03-10 Michal Ludvig <mludvig@suse.cz>
1076
1077 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7e336ba1 1078 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
33a0a2ac
ML
1079 from x86-64-tdep.h
1080
dd824b04
DJ
10812002-03-10 Daniel Jacobowitz <drow@mvista.com>
1082 Don Howard <dhoward@redhat.com>
1083
1084 * mips-tdep.c (ST0_FR): Define.
1085 (mips2_fp_compat): New function, temporarily disabled.
1086 (mips_read_fp_register_single): New function.
1087 (mips_read_fp_register_double): New function.
1088 (mips_print_register): Use them.
1089 (do_fp_register_row): Likewise.
1090
6a41ff59
AC
10912002-03-09 Andrew Cagney <ac131313@redhat.com>
1092
1093 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
1094 approval''.
1095
4ea09c10
PS
10962002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
1097
1098 * stabsread.c (read_member_functions): Fix is_stub test for
1099 static member functions, improve comment.
1100
6ccc741d
RE
11012002-03-07 Richard Earnshaw <rearnsha@arm.com>
1102
1103 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
1104 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
1105 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
1106 commands that set boolean values.
1107 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
1108 (arm_rdi_resume): Always initialize PC.
1109 (arm_rdi_open): Don't use rslt as a boolean.
1110 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
1111 (arm_rdi_fetch_registers, arm_rdi_store_registers)
1112 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
1113 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
1114
438013df
AO
11152002-03-06 Alexandre Oliva <aoliva@redhat.com>
1116
1117 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
1118 * configure: Rebuilt.
1119
70ed8774
SC
11202002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1121
1122 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
1123 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
1124
5ba2abeb
AC
11252002-03-06 Andrew Cagney <ac131313@redhat.com>
1126
1127 * cli/cli-decode.c (set_cmd_completer): New function.
1128 * command.h (set_cmd_completer): Declare.
1129 * cli/cli-decode.h (set_cmd_completer): Ditto.
1130
1131 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
1132 * cli/cli-cmds.c (init_cli_cmds): Ditto.
1133 * win32-nat.c (_initialize_inftarg): Ditto.
1134 * remote-rdi.c (_initialize_remote_rdi): Ditto.
1135 * proc-api.c (_initialize_proc_api): Ditto.
1136 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
1137 * source.c (_initialize_source): Ditto.
1138 * exec.c (_initialize_exec): Ditto.
1139 * solib.c (_initialize_solib): Ditto.
1140 * top.c (init_main): Ditto.
1141 * tracepoint.c (_initialize_tracepoint): Ditto.
1142 * symfile.c (_initialize_symfile): Ditto.
1143 * printcmd.c (_initialize_printcmd): Ditto.
1144 * infcmd.c (_initialize_infcmd): Ditto.
1145 * corefile.c (_initialize_core): Ditto.
1146
f779ca99
AC
11472002-03-05 Andrew Cagney <ac131313@redhat.com>
1148
1149 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
1150
01a3934b
AC
11512002-03-05 Andrew Cagney <ac131313@redhat.com>
1152
1153 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
1154
37057839
AC
11552002-03-05 Andrew Cagney <ac131313@redhat.com>
1156
1157 * NEWS: Update headings, 5.2 has branched.
1158
c6ecbae5
DJ
11592002-03-04 Daniel Jacobowitz <drow@mvista.com>
1160
1161 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
1162 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
1163 (register_addr, REGISTER_RAW_SIZE): Likewise.
1164 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
1165 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
1166
e9f30c21
ML
11672002-03-03 Michal Ludvig <mludvig@suse.cz>
1168
1169 * MAINTAINERS (x86-64): Add myself.
1170 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
1171 changed value_ptr -> struct value *
1172
54394ac3
DB
11732002-03-01 David O'Brien <obrien@FreeBSD.org>
1174
1175 * configure.host (sparc64-*-freebsd): Add.
1176 * configure.tgt: Likewise.
1177 * config/sparc/fbsd.mh: New file.
1178 * config/sparc/fbsd.mt: Likewise.
1179 * config/sparc/nm-fbsd.h: Likewise.
1180 * config/sparc/tm-fbsd.h: Likewise.
1181
bfe95955
DJ
11822002-03-01 Daniel Jacobowitz <drow@mvista.com>
1183
1184 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
1185 regformats/reg-s390x.dat.
1186
f33c6cbf
AC
11872002-03-01 Andrew Cagney <ac131313@redhat.com>
1188
1189 * utils.c: Add FIXME explaining true/false problem.
1190
5ecaa7dd
AC
11912002-02-28 Andrew Cagney <ac131313@redhat.com>
1192
1193 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
1194
2a251cc2
MC
11952002-02-28 Michael Chastain <mec@shout.net>
1196
1197 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
1198
6a8031a3 11992002-02-28 Daniel Jacobowitz <drow@mvista.com>
265f716b
DJ
1200
1201 * gdbserver/linux-s390-low.c: New file.
1202 * regformats/reg-s390.dat: New file.
1203 * regformats/reg-s390x.dat: New file.
1204 * gdbserver/configure.srv: Add S/390.
1205 * gdbserver/Makefile.in: Add S/390.
1206 * configure.tgt: Enable gdbserver for S/390.
1207
ac469903
EZ
12082002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
1209
1210 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
1211 first line of the doc string for "info dos", except at the end of
1212 the sentence, since the short help stops at the first period.
1213
985cb1a3
JM
12142002-02-28 Jason Merrill <jason@redhat.com>
1215
1216 * dwarf2read.c (dwarf_cfi_name): Add new codes.
1217
c570663e
FF
12182002-02-27 Fred Fish <fnf@redhat.com>
1219
1220 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
1221 comment (dumy -> dummy).
1222
43630227
PS
12232002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
1224
1225 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
1226
b84911e8
RB
12272002-02-27 Rodney Brown <rbrown64@csc.com.au>
1228
1229 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
1230
58caa3dc
DJ
12312002-02-27 Daniel Jacobowitz <drow@mvista.com>
1232
1233 * gdbserver/acconfig.h: New file.
1234 * gdbserver/i387-fp.c: New file.
1235 * gdbserver/i387-fp.h: New file.
1236 * gdbserver/linux-x86-64.c: New file.
1237 * regformats/reg-x86-64.dat: New file.
1238 * configure.tgt: Add x86_64-*-linux* gdbserver support.
1239 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
1240 * gdbserver/configure.in: Add support for regsets.
1241 * gdbserver/config.in: Regenerate.
1242 * gdbserver/configure: Regenerate.
1243 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
1244 * gdbserver/linux-low.h: New file.
1245 * gdbserver/linux-low.c: Include "linux-low.h". Add support
1246 for regsets.
1247 * gdbserver/linux-arm-low.c: Include "linux-low.h".
1248 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
1249 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
1250 * gdbserver/linux-mips-low.c: Include "linux-low.h".
1251 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
1252 * gdbserver/linux-sh-low.c: Include "linux-low.h".
1253 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
1254 "i387-fp.h". Add PTRACE_GETREGS and friends.
1255 * gdbserver/regcache.c (supply_register): New function.
1256 (supply_register_by_name): New function.
1257 (collect_register): New function.
1258 (collect_register_by_name): New function.
1259
93652174
DJ
12602002-02-27 Daniel Jacobowitz <drow@mvista.com>
1261
1262 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
1263 (config.status): Add configure.srv dependency.
1264 (server_h): Add config.h dependency.
1265
a02e4a61
DJ
12662002-02-27 Daniel Jacobowitz <drow@mvista.com>
1267
1268 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
1269 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
1270 * gdbserver/configure.srv: Change i386-*-linux* to use
1271 reg-i386-linux.o.
1272
ce0eebec
AC
12732002-02-26 Andrew Cagney <ac131313@redhat.com>
1274
1275 * x86-64-tdep.c: Re-indent. Update copyright date.
1276
82dbc5f7
AC
12772002-02-26 Andrew Cagney <ac131313@redhat.com>
1278
1279 From Michal Ludvig <mludvig@suse.cz>:
1280 * x86-64-tdep.c (value.h): Delete.
1281 (gdb_assert.h): Include.
1282 (x86_64_register_convert_to_virtual,
1283 x86_64_register_convert_to_raw ): Add check which lets only
1284 floating-point values to be converted.
1285 (value_push): Delete.
1286 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
1287 (i386_gdbarch_init): Number of register_bytes fixed.
1288
e4621584
AC
12892002-02-26 Andrew Cagney <ac131313@redhat.com>
1290
1291 * MAINTAINERS: Add x86-64 target.
1292
81a9a963
AC
12932002-02-26 Andrew Cagney <ac131313@redhat.com>
1294
1295 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
1296 * osfsolib.c (solib_map_sections): Ditto.
1297 * irix5-nat.c (solib_map_sections): Ditto.
1298 * corelow.c (gdb_check_format): Ditto.
1299 * symfile.c (symfile_bfd_open): Ditto.
1300 * solib.c (solib_map_sections): Ditto.
1301 Fix PR gdb/354.
7e336ba1 1302
0f017ab9
AC
13032002-02-26 Andrew Cagney <ac131313@redhat.com>
1304
1305 * remote.c (_initialize_remote): By default, disable ``e'' and
1306 ``E'' step out-of-range packets.
1307
75738c29
AS
13082002-02-26 Andreas Schwab <schwab@suse.de>
1309
1310 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
1311 m68k_linux_frame_saved_pc.
1312 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
1313 in_sigtramp.
1314 (SIGCONTEXT_PC_OFFSET): Remove.
1315 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
1316 m68k_linux_sigtramp_saved_pc): New functions.
1317 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
1318 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
1319 (UCONTEXT_PC_OFFSET): Define.
1320 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
1321 non-RT and RT signal trampolines.
1322
7e8ed687
RE
13232002-02-26 Richard Earnshaw <rearnsha@arm.com>
1324
1325 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
1326 (TARGET_NBPG, STACK_END_ADDR): Delete
1327 (VARIABLES_INSIDE_BLOCK): Delete.
1328
6972bc8b
AC
13292002-02-25 Andrew Cagney <ac131313@redhat.com>
1330
1331 * utils.c (perror_with_name): Make string parameter constant.
1332 (print_sys_errmsg): Ditto.
1333 (query): Ditto.
1334 * defs.h (perror_with_name): Update.
1335 (print_sys_errmsg): Update.
1336 (query): Update.
1337
aa32f823
DJ
13382002-02-25 Daniel Jacobowitz <drow@mvista.com>
1339
1340 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
1341 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
1342
19caaa45
PS
13432002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
1344
1345 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
1346 if it already matches the current architecture from the exec file.
1347 Include arch-utils.h for gdbarch_info_init prototype.
1348 * Makefile.in (rs6000-nat.o): Update dependencies.
1349
d951901f
EZ
13502002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
1351
1352 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
1353 list of exported variables.
1354
7ea81414
DJ
13552002-02-24 Daniel Jacobowitz <drow@mvista.com>
1356
1357 * gdbserver/configure.srv: New file.
1358 * gdbserver/configure.in: Use configure.srv instead
1359 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
1360 from it.
1361 * gdbserver/configure: Regenerated.
1362 * gdbserver/terminal.h: New file.
1363 * gdbserver/Makefile.in: Update for configure changes. Remove
1364 more unneeded include paths.
1365
080fe24b
AC
13662002-02-24 Andrew Cagney <ac131313@redhat.com>
1367
1368 From wiz at danbala:
1369 * config/sparc/tm-sp64.h: Fix grammar and typos.
1370 Fix PR gdb/287.
1371
8605d56e
AC
13722002-02-24 Andrew Cagney <ac131313@redhat.com>
1373
1374 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
a4b6fc86
AC
1375 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
1376 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
1377 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
ca557f44
AC
1378 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
1379 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
1380 * s390-tdep.c: Ditto.
92362027
AC
1381 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
1382 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
1383 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
1384 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
1385 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
1386 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
1387 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
1388 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
1389 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
1390 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8605d56e 1391 Fix PR gdb/378.
7e336ba1 1392
8ed32cc0
AC
13932002-02-23 Andrew Cagney <ac131313@redhat.com>
1394
a3007b6f
AC
1395 * lin-thread.c: Delete file.
1396 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
1397 to gdb_proc_service.h.
1398 * configure: Re-generate.
1399
50a9e2f1
AC
1400 * ocd.c (ocd_open): Do not try to open the "ocd" device.
1401 * serial.c (serial_open): Delete check for "ocd".
1402 Fix PR gdb/349.
1403
8b6e7932
AC
1404 * Makefile.in (linux-thread.o): Delete target.
1405 * linux-thread.c: Delete file.
1406
d155c46b
AC
1407 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
1408 renamed SH files to be consistent.
1409
8ed32cc0
AC
1410 * symtab.c (sort_search_symbols): Use xfree.
1411
0e18d038
RE
14122002-02-23 Richard Earnshaw <rearnsha@arm.com>
1413
1414 * arm-linux-tdep.c (arm_linux_init_abi): Register
1415 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
1416 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
1417 definition with undef, since we don't want the sysvr4 definition.
1418 (SKIP_TRAMPOLINE_CODE): Likewise.
1419
27aac7ff
AC
14202002-02-23 Andrew Cagney <ac131313@redhat.com>
1421
1422 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
1423
1424 * configure.in: (AC_CHECK_FUNCS) Added test for
1425 canonicalize_file_name Regenerated.
1426 * config.in, configure: Regenerated.
1427 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
1428 defined use canonicalize_file_name.
7e336ba1 1429
65a6e0ee
MC
14302002-02-23 Michael Chastain <mec@shout.net>
1431
1432 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
1433
47b95330
AC
14342002-02-23 Andrew Cagney <ac131313@redhat.com>
1435
1436 * README: Remove references to cygnus.com.
1437 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
1438 dot com'' form. Remove references to cygnus.com and sourceware.
1439
696f451b
AC
14402002-02-23 Andrew Cagney <ac131313@redhat.com>
1441
1442 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
1443 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
1444 1003.1-2001 no longer allows "head -1".
1445 * gdb/Makefile.in (version.c): Likewise.
1446 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
1447 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
1448 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
1449
bbaca940
AC
14502002-02-23 Andrew Cagney <ac131313@redhat.com>
1451
1452 * cli/cli-decode.c (cmd_cfunc_eq): New function.
1453 * command.h (cmd_cfunc_eq): Declare.
1454 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
1455
1456 * cli/cli-cmds.h (is_complete_command): Change parameter to a
1457 ``struct cmd_list_element *''.
1458 * cli/cli-cmds.c (is_complete_command): Update. Use
1459 cmd_cfunc_eq.
1460 * top.c (execute_command): Pass the command to
1461 is_complete_command.
1462 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
1463
b8b8b047
AC
14642002-02-23 Andrew Cagney <ac131313@redhat.com>
1465
1466 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
1467 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
1468 architecture defines.
1469 * s390-tdep.c (s390_gdbarch_init): Likewise.
1470
19d3fc80
RE
14712002-02-23 Richard Earnshaw <rearnsha@arm.com>
1472
1473 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
1474 (arm_linux_push_arguments): Likewise.
1475 (arm_linux_init_abi): Register them. Also register linux-specific
1476 call_dummy_words.
1477 (find_minsym_and_objfile): Use strcmp, not STREQ.
1478 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
1479 (arm_linux_call_dummy_words): Delete declaration.
1480 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
1481 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
1482 declarations.
1483 (LOWEST_PC): Delete.
1484
3ab13650
PS
14852002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
1486
1487 * maint.c (print_section_info): Do not prepend `0x' to filepos
1488 output, it will be handled by local_hex_string_custom.
1489
19d3fc80 14902002-02-23 Richard Earnshaw <rearnsha@arm.com>
85ae890c
RE
1491
1492 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
1493 (store_newfpe_double, store_newfpe_extended, store_fpregister)
1494 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
1495
d85a5daf
JB
14962002-02-22 Jim Blandy <jimb@redhat.com>
1497
1498 Indicate that the bcache functions don't change the strings
1499 they're passed.
1500 * bcache.h (bcache, hash): Add `const' keywords to declarations.
1501 * bcache.c (bcache, hash): Add `const' keywords to definitions.
1502
eeb25b8a
PM
15032002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
1504
1505 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
1506
6badb179
CF
15072002-02-21 Christopher Faylor <cgf@redhat.com>
1508
1509 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
1510 find the complete path to a loaded DLL.
1511
e8717518
FF
15122002-02-21 Fred Fish <fnf@redhat.com>
1513
1514 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
1515 that marks the end of the range of a function, enter a line number
1516 entry that has a line number of zero and a PC offset that matches
1517 the end of the function. This starts a range of PC's for which no
1518 line number information is known.
1519 * symtab.c (find_pc_sect_line): If our best fit is in a range of
1520 PC's for which no line number info is found (line number is zero)
1521 then we didn't find any valid line information.
1522 * symtab.h: Document use of zero line number entry.
1523
9abe5450
EZ
15242002-02-21 Elena Zannoni <ezannoni@redhat.com>
1525
1526 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
1527 (have_ptrace_getvrregs): Define for run time checks.
1528 (gdb_vrregset_t): New type for Altivec register handling.
1529 (fetch_register, store_register): Fetch/store altivec register
1530 when needed.
1531 (fetch_altivec_register, store_altivec_register): New functions.
1532 (supply_vrregset, fill_vrregset): New functions.
1533 (fetch_altivec_registers, store_altivec_registers): New functions.
1534 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
1535 registers as well.
1536
aaa38bb5
AJ
15372002-02-21 Jiri Smid <smid@suse.cz>
1538
1539 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
1540
b34db576
RE
15412002-02-21 Richard Earnshaw <rearnsha@arm.com>
1542
1543 * Makefile.in (armnbsd-nat.o): Update dependencies.
1544 * armnbsd-nat.c (supply_gregset): New function. Common code to
1545 supply the integer register set.
1546 (supply_fparegset): New function. Similar for FPA registers.
1547 (fetch_regs, fetch_fp_regs): Use them.
1548 (fetch_core_registers): Likewise.
1549 (fetch_elfcore_registers): New function.
1550 (arm_netbsd_elfcore_fns): New core-file type specification.
1551 (_initialize_arm_netbsd_nat): Register it.
1552
3e56fc4b
RE
15532002-02-21 Richard Earnshaw <rearnsha@arm.com>
1554
1555 * armnbsd-nat.c: Include gdbcore.h.
1556 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
1557 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
1558 'void' to declaration, to shut up ARI.
1559 (fetch_core_registers): Make static. Rewrite using supply_register.
1560 (arm_netbsd_core_fns): New core-file type specification.
1561 (_initialize_arm_netbsd_nat): New function.
1562
097f6b0b
CF
15632002-02-21 Christopher Faylor <cgf@redhat.com>
1564
1565 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
1566 value.
1567
c914e0cc
CF
15682002-02-20 Christopher Faylor <cgf@redhat.com>
1569
1570 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
1571 fails.
1572
385fa495
DJ
15732002-02-20 Daniel Jacobowitz <drow@mvista.com>
1574
1575 * jv-exp.y (parse_number): Change type of implicit longs
1576 to builtin_type_uint64.
1577
e5f1222d
DJ
15782002-02-20 Daniel Jacobowitz <drow@mvista.com>
1579
1580 * gdbserver/linux-low.c (mywait): Change argument to waitpid
1581 to be an integer instead of a `union wait'.
1582
75c9abc6
DJ
15832002-02-20 Daniel Jacobowitz <drow@mvista.com>
1584
1585 * mips-linux-nat.c: Call the operating system GNU/Linux.
1586 * mips-linux-tdep.c: Likewise.
1587 * mips-tdep.c: Likewise.
1588
551792a5
DJ
15892002-02-20 Daniel Jacobowitz <drow@mvista.com>
1590
1591 Fix PR gdb/265.
1592 * jv-exp.y (parse_number): Handle 64-bit integers.
1593
ee6e2b82
DJ
15942002-02-20 Daniel Jacobowitz <drow@mvista.com>
1595
1596 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
1597 AC_STDC_HEADERS to AC_HEADER_STDC.
1598 * gdbserver/configure: Regenerated.
1599
a48442a0
RE
16002002-02-20 Richard Earnshaw <rearnsha@arm.com>
1601
1602 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
1603 is defined.
1604 * sparc-tdep.c (get_longjmp_target): Likewise.
1605
fe419ffc
RE
16062002-02-20 Richard Earnshaw <rearnsha@arm.com>
1607
1608 * News: Add news about ARM and Multi-arch. Mention the new target
1609 arm*-*-netbsd*.
1610
5832ed7e
JB
16112002-02-19 Jim Blandy <jimb@redhat.com>
1612
1613 * stabsread.c (error_type_complaint): Improve error message.
1614
84563040
DJ
16152002-02-19 Daniel Jacobowitz <drow@mvista.com>
1616
1617 * gdbserver/README: Update documentation.
1618 * gdbserver/configure.in: Update configury to match documentation.
1619 * gdbserver/Makefile.in: Likewise.
1620 * gdbserver/configure: Regenerated.
1621 * gdbserver/aclocal.m4: New file, generated by aclocal.
1622 * gdbserver/config.in: New file, generated by autoheader.
1623
375fd65b
RE
16242002-02-19 Richard Earnshaw <rearnsha@arm.com>
1625
1626 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
1627 armnbsd-nat.c.
1628
08216dd7
RE
16292002-02-19 Richard Earnshaw <rearnsha@arm.com>
1630
1631 * arm-tdep.h (enum arm_float_model): New enum.
1632 (struct gdbarch_tdep): Add fp_model.
1633 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
1634 up floating-point conversions until we know the floating-point model
1635 in use by the inferior. Don't complain about being unable to
1636 determine the ABI of the inferior when we don't have one.
1637 (arm_extract_return_value): Support different floating-point models.
1638 (arm_store_return_value): Likewise.
aaa38bb5 1639 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
08216dd7
RE
1640 ARM_FLOAT_SOFT.
1641 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
1642
65d6d66a
PS
16432002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
1644
1645 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
1646 of ``current_gdbarch''.
1647
47221191
RE
16482002-02-19 Richard Earnshaw <rearnsha@arm.com>
1649
1650 * armnbsd-nat.c : ANSIfy all function declarations.
1651 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
1652 (fetch_inferior_registers): Re-implement in terms of above.
1653 (store_register, store_regs, store_fp_register, store_fp_regs): New.
1654 (store_inferior_registers): Re-implement in terms of above.
1655
fdf39c9a
RE
16562002-02-19 Richard Earnshaw <rearnsha@arm.com>
1657
aaa38bb5 1658 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
fdf39c9a
RE
1659 kernel.
1660 * arm-linux-tdep.c: Likewise.
1661 * config/arm/tm-linux.h: Likewise.
1662
93247f88
RE
16632002-02-19 Richard Earnshaw <rearnsha@arm.com>
1664
1665 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
1666 * config/arm/nbsd.mt (TM_FILE): Delete.
1667 * config/arm/tm-nbsd.h: Delete.
1668
d7b486e7
RE
16692002-02-19 Richard Earnshaw <rearnsha@arm.com>
1670
1671 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
1672 Initialize CALL_DUMMY_LENGTH.
1673
41d39a95
RE
16742002-02-19 Richard Earnshaw <rearnsha@arm.com>
1675
1676 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
1677 function.
1678 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
aaa38bb5 1679 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
41d39a95
RE
1680 defines one thing and that is incorrect for this port.
1681 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
1682
e1195560
PM
16832002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
1684
1685 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
1686
c1748f97
PM
16872002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
1688
1689 * win32-nat.c (display_selector): New function. Displays information
1690 about the information returned by GetThreadSelectorEntry API function.
1691 (display_selectors): New function. Displays the infomation of
1692 the selector given as argument, or of CS, DS ans FS selectors
1693 if no argument is given.
1694 ( _initialize_inftarg): Add "w32" as info prefix command.
1695 Add "info w32 selector" as command calling display_selectors.
1696
e41e6bbf
PM
16972002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
1698
1699 * i386-tdep.c (get_longjmp_target): Fix compilation failure
1700 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
1701 if not defined.
1702
0d3a9f48
RE
17032002-02-18 Richard Earnshaw <rearnsha@arm.com>
1704
1705 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
1706
3fb4b924
RE
17072002-02-18 Richard Earnshaw <rearnsha@arm.com>
1708
1709 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
1710 (arm_fix_call_dummy): Call it.
1711 (arm_call_dummy_breakpoint_offset): Delete.
1712 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
1713 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
1714
7f55af32
AC
17152002-02-18 Andrew Cagney <ac131313@redhat.com>
1716
1717 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
1718 Default to func_frame_chain_valid.
1719 * gdbarch.h, gdbarch.c: Re-generate.
1720 * frame.h (FRAME_CHAIN_VALID): Delete definition.
1721
05f13b9c
EZ
17222002-02-18 Elena Zannoni <ezannoni@redhat.com>
1723
1724 * ppc-linux-nat.c: Update copyright.
1725 (fetch_register, store_register): Add tid parameter, don't compute
1726 tid here.
1727 (fetch_ppc_registers, store_ppc_registers): Add tid
1728 parameter. Pass it along to callees.
1729 (fetch_inferior_registers, store_inferior_registers): Compute tid
1730 here, and pass it to calleed functions.
1731 (fill_gregset, supply_fpregset): Clean up formatting.
1732
d7afb4c9
RE
17332002-02-18 Richard Earnshaw <rearnsha@arm.com>
1734
1735 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
1736 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
1737
9df628e0
RE
17382002-02-18 Richard Earnshaw <rearnsha@arm.com>
1739
1740 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
1741 * gdbarch.c gdbarch.h: Regenerate.
1742 * breakpoint.c (create_longjmp_breakpoint): Always compile this
1743 function.
1744 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
1745 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
1746 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
1747
1748 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
1749 * arm-tdep.c (arm_get_longjmp_target): New function.
1750 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
1751 this to a positive value register arm_get_longjmp_target as the
1752 longjmp handler.
1753 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
1754 (arm_linux_init_abi): Set up longjmp description in tdep.
1755 * armnbsd-nat.c (get_longjmp_target): Delete.
1756 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
1757 description in tdep.
1758 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
1759 (get_longjmp_target): Delete declaration.
1760 (GET_LONGJMP_TARGET): Delete.
1761 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
1762 (GET_LONGJMP_TARGET): Delete.
1763
57bc8964
KB
17642002-02-17 Kevin Buettner <kevinb@redhat.com>
1765
1766 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
1767 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
1768 of ``current_gdbarch''.
1769
83d31a92
TT
17702002-02-17 Tom Tromey <tromey@redhat.com>
1771
1772 * cli/cli-cmds.c (compare_strings): New function.
1773 (complete_command): Only print each unique item once.
1774 * completer.h (complete_line): Declare.
1775 * completer.c (complete_line): New function.
1776 (line_completion_function): Use it.
1777
17ef5d92
AC
17782002-02-16 Andrew Cagney <ac131313@redhat.com>
1779
1780 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
1781 * gdbarch.h, gdbarch.c: Re-generate.
1782
491b8946
DJ
17832002-02-16 Daniel Jacobowitz <drow@mvista.com>
1784
1785 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
1786
17872002-02-16 Daniel Jacobowitz <drow@mvista.com>
1788
1789 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
1790 * valops.c (value_arg_coerce): Don't take the address of a reference
1791 to convert an argument to a reference.
1792
dfe7f3ac
CF
17932002-02-15 Christopher Faylor <cgf@redhat.com>
1794
1795 * win32-nat.c (get_image_name): New function.
1796 (handle_load_dll): Use get_image_name function.
1797 (get_child_debug_event): Avoid registering debug events until possibly
1798 execed process is started.
1799 (child_create_inferior): Allow invocation via shell so that command
1800 line redirection, etc. works ok.
1801 (_initialize_inftarg): Add new command: "set shell" to control whether
1802 a shell is used to start a process.
1803
1d33e73a
DJ
18042002-02-15 Daniel Jacobowitz <drow@mvista.com>
1805
1806 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
1807 instead of find_register_by_number.
1808 (cannot_store_register): Likewise.
1809
48cd0caa
PM
18102002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
1811
aaa38bb5 1812 * dwarf2read.c: Replace fprintf (stderr, ...) by
48cd0caa
PM
1813 fprintf_unfiltered (gdb_stderr, ...).
1814
8656e7d8
DJ
18152002-02-15 Daniel Jacobowitz <drow@mvista.com>
1816
1817 * gdbserver/gdbserver.1: Document --attach.
1818
66e810cd
RE
18192002-02-15 Richard Earnshaw <rearnsha@arm.com>
1820
1821 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
1822 descriptions.
1823 * arm-tdep.c (arm_default_arm_le_breakpoint)
1824 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
1825 (arm_default_thumb_be_breakpoint): New. Initialize them from
1826 traditional breakpoint defines.
1827 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
1828 (arm_gdbarch_init): Initialize new breakpoint variables.
1829 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
1830 (arm_linux_init_abi): Initialize linux-specific breakpoint.
1831 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
1832 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
1833 code out to ...
1834 (arm_netbsd_init_abi_common): ... here; new function.
1835 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
1836 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
1837 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
1838 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
1839
97e03143
RE
18402002-02-15 Richard Earnshaw <rearnsha@arm.com>
1841
1842 * arm-tdep.h (enum arm_abi): New enum.
1843 (struct gdbarch_tdep): New structure.
1844 (LOWEST_PC): Provide a default.
1845 (arm_gdbarch_register_os_abi): Declare new function.
1846 * arm-tdep.c (arm_abi_names): New array.
1847 (process_note_abi_tag_sections): New function.
1848 (get_elfosabi): New function.
1849 (arm_gdbarch_register_os_abi): New function.
1850 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
1851 support for that ABI has been built in, then call the appropriate
1852 configuration routine. Use gdbarch_num_regs() to get the number
1853 of registers.
1854 (arm_dump_tdep): New function.
1855 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
1856 place-holder functions.
1857 (_initialize_arm_tdep): Register them.
1858 * config/arm/tm-arm.h (LOWEST_PC): Delete.
1859
1860 * armnbsd-tdep.c: New file.
1861 * Makefile.in (armnbsd-tdep.o): Add dependencies.
1862 * config/arm/nbsd.mt (TDEPFILES): Add it.
1863 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
1864
1865 * armnbsd-nat.c: Include regcache.h.
1866 * Makefile.in (armnbsd-nat.o): Update dependency list.
1867
1868 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
1869
ad68be46
DJ
18702002-02-14 Daniel Jacobowitz <drow@mvista.com>
1871
1872 * gdbserver/Makefile.in: Fix typos in target rules.
1873
003d6d1d
DJ
18742002-02-14 Daniel Jacobowitz <drow@mvista.com>
1875
aaa38bb5 1876 Fix part of PR gdb/267.
003d6d1d
DJ
1877 * linespec.c (find_methods): Handle constructors specially for now.
1878
6b230f1b
CV
18792002-02-14 Corinna Vinschen <vinschen@redhat.com>
1880
1881 * arm-tdep.c (arm_push_arguments): Eliminate special float type
1882 handling.
1883 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
1884 standard_coerce_float_to_double().
1885
1ea98d12
CF
18862002-02-14 Christopher Faylor <cgf@redhat.com>
1887
1888 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
1889 GDBINIT_FILENAME.
1890
dd47e6fd
EZ
18912002-02-14 Elena Zannoni <ezannoni@redhat.com>
1892
1893 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
1894 find_variant_by_name, because it confuses the multiarch
1895 framework. Return NULL if there isn't an architecture with the
1896 user supplied name, instead of forcing a different one without
1897 recording the change with the multiarch machinery.
1898 (find_variant_by_name): Delete.
1899
d7e39b9e
PS
19002002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
1901
1902 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
1903 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
1904
76e42a4f
MH
19052002-02-13 Martin M. Hunt <hunt@redhat.com>
1906
aaa38bb5 1907 * stack.c (print_frame_info_base): When calling
76e42a4f
MH
1908 print_frame_info_listing_hook, set current_source_symtab.
1909
0a30fbc4
DJ
19102002-02-14 Daniel Jacobowitz <drow@mvista.com>
1911
1912 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
1913 and remove unused $(INCLUDE_DIR).
1914 Add regcache.c to OBS.
1915 Add generated register protocol files to clean target.
1916 Update dependencies for new objects, obsolete old target code.
1917
1918 * gdbserver/linux-low.c: Remove all platform-specific code to
1919 new files. Remove various dead code. Update to use regcache
1920 functionality.
1921 * gdbserver/remote-utils.c (fromhex): Add return statement
1922 to quiet warning.
1923 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
1924 constant.
1925 (input_interrupt): Add integer parameter to match prototype
1926 of a signal handler.
1927 (outreg): Use register_data ().
1928 (prepare_resume_reply): Use gdbserver_expedite_regs.
1929 * gdbserver/server.c (main): Dynamically allocate own_buf because
1930 PBUFSIZ is no longer constant. Use registers_to_string () and
1931 registers_from_string ().
1932 * gdbserver/server.h: No longer include "defs.h". Add prototypes
1933 for error (), fatal (), and warning (). Update definition of
1934 PBUFSIZ to use regcache functionality. Add include guard.
1935 * gdbserver/utils.c (fatal): Add missing ``const''.
1936 (warning): New function.
1937
1938 * regformats/regdat.sh: Include "regcache.h" in generated files.
1939 Provide init_registers () function.
1940 * regformats/regdef.h: Add prototype for set_register_cache ().
1941 Add include guard.
1942
1943 * gdbserver/linux-arm-low.c: New file.
1944 * gdbserver/linux-i386-low.c: New file.
1945 * gdbserver/linux-ia64-low.c: New file.
1946 * gdbserver/linux-m68k-low.c: New file.
1947 * gdbserver/linux-mips-low.c: New file.
1948 * gdbserver/linux-ppc-low.c: New file.
1949 * gdbserver/linux-sh-low.c: New file.
1950
1951 * gdbserver/regcache.c: New file.
1952 * gdbserver/regcache.h: New file.
1953
1954 * gdbserver/low-linux.c: Removed obsolete file.
1955
4cc841d0
DJ
19562002-02-14 Daniel Jacobowitz <drow@mvista.com>
1957
1958 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
1959 * config/i386/linux.mt: Likewise.
1960 * config/ia64/linux.mt: Likewise.
1961 * config/m68k/linux.mh: Likewise.
1962 * config/powerpc/linux.mh: Likewise.
1963 * config/mips/linux.mt: Likewise.
1964
1965 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
1966
1967 * config/i386/i386lynx.mh: Mark gdbserver variables
1968 as (currently) obsolete for this target.
1969 * config/i386/nbsd.mt: Likewise.
1970 * config/i386/nbsdelf.mt: Likewise.
1971 * config/m32r/m32r.mt: Likewise.
1972 * config/m68k/m68klynx.mh: Likewise.
1973 * config/m68k/nbsd.mt: Likewise.
1974 * config/m68k/sun3os4.mh: Likewise.
1975 * config/mips/vr5000.mt: Likewise.
1976 * config/ns32k/nbsd.mt: Likewise.
1977 * config/pa/hppabsd.mh: Likewise.
1978 * config/pa/hppaosf.mh: Likewise.
1979 * config/powerpc/nbsd.mt: Likewise.
1980 * config/rs6000/rs6000lynx.mh: Likewise.
1981 * config/s390/s390.mt: Likewise.
1982 * config/s390/s390x.mt: Likewise.
1983 * config/sparc/sparclynx.mh: Likewise.
1984 * config/sparc/sun4os4.mh: Likewise.
1985 * config/i386/x86-64linux.mt: Likewise.
1986 * config/sparc/linux.mh: Likewise.
1987
a85f51e7
DJ
19882002-02-14 Daniel Jacobowitz <drow@mvista.com>
1989
1990 * configure.tgt: Configure gdbserver only for known working
1991 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
1992 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
1993 SUBDIRS if it is configured. Update comment for ${nativefile}.
1994 * configure: Regenerated.
1995
65554fef
MS
19962002-02-13 Michael Snyder <msnyder@redhat.com>
1997
670a52db
MS
1998 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
1999
6dbdc4a3
MS
2000 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
2001 (default_gcore_mach): Just return 0, work around a problem in bfd.
2002 (default_gcore_target): OK to return NULL if exec_bfd is null.
2003 (make_mem_sec): Use a cast, avoid a warning.
2004
2005 * procfs.c (find_memory_regions_callback): Use a cast instead of
aaa38bb5 2006 calling host_pointer_to_address (which complains if
6dbdc4a3
MS
2007 sizeof (host pointer) != sizeof (target pointer)).
2008 (procfs_make_note_section): Avoid overflow in psargs string.
2009
aaa38bb5 2010 * procfs.c (procfs_make_note_section): Make the default
65554fef
MS
2011 implementation return an error.
2012
20132002-02-13 Rodney Brown <rbrown64@csc.com.au>
2014
2015 * procfs.c (procfs_make_note_section): Provide a default definition
2016 (for alpha-dec-osf4.0f). Fix typos.
2017
1e4d76e7
EZ
20182002-02-13 Elena Zannoni <ezannoni@redhat.com>
2019
2020 * linux-proc.c: Add include of regcache.h.
2021 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
2022
b6d1a1d5
AC
20232002-02-13 Andrew Cagney <ac131313@redhat.com>
2024
2025 From 2002-01-18 Greg McGary <greg@mcgary.org>:
aaa38bb5
AJ
2026 * memattr.c (create_mem_region): Disallow useless empty region.
2027 Regions are half-open intervals, so allow [A..B) [B..C) as
65554fef 2028 non-overlapping.
b6d1a1d5 2029
6c6ea35e
MC
20302002-02-13 Michael Chastain <mec@shout.net>
2031
2032 * defs.h: Kill CONST_PTR.
2033 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
2034 * c-lang.c (c_builtin_types): Likewise.
2035 * ch-lang.c (ch_builtin_types): Likewise.
2036 * f-lang.c (f_builtin_types): Likewise.
2037 * language.c (unknown_builtin_types): Likewise.
2038 * m2-lang.c (m2_builtin_types): Likewise.
2039 * p-lang.c (pascal_builtin_types): Likewise.
2040 * scm-lang.c (c_builtin_types): Likewise.
2041
3e0b0f48
KS
20422002-02-13 Keith Seitz <keiths@redhat.com>
2043
2044 * arm-tdep.h (arm_get_next_pc): Add declaration.
2045
67255d04
RE
20462002-02-13 Richard Earnshaw <rearnsha@arm.com>
2047
2048 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
2049 with other related struct-returning functions.
2050 (arm_extract_struct_value_address): New function.
2051 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
2052 initialize float_format, double_format and long_double_format as
2053 appropriate to the endianness of the target.
2054 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
2055 (arm_use_struct_convention): Delete declaration.
2056 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
2057
079777f6
KS
20582002-02-13 Keith Seitz <keiths@redhat.com>
2059
2060 * defs.h (core_addr_to_string_nz): New function.
2061
34588f23
MK
20622002-02-13 Mark Kettenis <kettenis@gnu.org>
2063
2064 Apply missing bits of 2002-01-15 patch.
2065 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
2066 (fill_fpregset): Use i387_fill_fsave.
2067
49b563f9
KS
20682002-02-12 Keith Seitz <keiths@redhat.com>
2069
49b563f9
KS
2070 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
2071 (core_addr_to_string_nz): New function.
2072
aeb98c60
RE
20732002-02-11 Richard Earnshaw <rearnsha@arm.com>
2074
2075 * arm-linux-nat.c: Really include arm-tdep.h.
2076 * config/arm/tm-linux.h (struct type, struct value): Declare.
2077
65554fef
MS
20782002-02-11 Michael Snyder <msnyder@redhat.com>
2079
2080 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
2081 (gcore section): Ifdef for Solaris and Unixware only.
2082 (procfs_do_thread_registers): Unixware needs one lwpstatus
2083 per thread (not one prstatus or pstatus).
2084 (procfs_make_note_section): Iterate only over kernel threads (lwps),
2085 not over all gdb threads. For unixware, call elfcore_write_pstatus
2086 once before iterating over threads.
2087
34e8f22d
RE
20882002-02-11 Richard Earnshaw <rearnsha@arm.com>
2089
2090 * arm-tdep.h: New file.
2091 * arm-tdep.c: Include arm-tdep.h.
2092 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
2093 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
2094 (arm_print_float_info, arm_register_type, convert_to_extended)
2095 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
2096 (arm_extract_return_value, arm_register_name): Make static.
2097 (arm_software_single_step): Similarly. Fix types in declaration.
2098 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
2099 (arm_store_return_value, arm_store_struct_return): New functions.
2100 (arm_gdbarch_init): Register the above functions. Also register
2101 call_dummy_start_offset, sizeof_call_dummy_words,
2102 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
2103 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
aaa38bb5 2104 max_register_virtual_size, register_size. Set up
34e8f22d
RE
2105 prologue_cache.saved_regs here, rather than ...
2106 (_initialize_arm_tdep): ... here.
2107 * config/arm/tm-arm.h (struct type, struct value): Delete forward
2108 declarations.
2109 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
2110 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
2111 (arm_print_float_info, arm_register_type, convert_to_extended)
2112 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
2113 (arm_extract_return_value, arm_register_name): Delete declarations.
2114 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
2115 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
2116 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
2117 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
2118 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
2119 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
2120 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
2121 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
2122 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
2123 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
2124 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
2125 (arm_get_next_pc): No-longer static -- these are needed by the RDI
2126 interface.
2127 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
2128 * remote-rdi.c remote-rdp.c: Likewise.
2129 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
2130 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
2131 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
2132 definition.
2133
2134 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
2135 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
2136 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
2137 from non-ARM_ prefixed definitions.
2138 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
2139 all uses of above.
2140 * remote-rdi.c remote-rdp.c: Likewise.
2141 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
2142
148754e5
RE
21432002-02-11 Richard Earnshaw <rearnsha@arm.com>
2144
2145 * arm-tdep.c (arm_frameless_function_invocation)
2146 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
2147 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
2148 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
2149 (arm_pop_frame, arm_get_next_pc): Make static.
2150 (arm_gdbarch_init): Register above in gdbarch structure.
2151 (arm_read_fp): Renamed from arm_target_read_fp.
2152 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
2153 * config/arm/tm-arm.h (arm_frameless_function_invocation)
2154 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
2155 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
2156 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
2157 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
2158 (arm_pc_is_thumb_dummy): Delete declarations.
fcfb8836
RE
2159 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
2160 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
2161 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
2162 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
148754e5 2163
434d2d4f
DJ
21642002-02-10 Daniel Jacobowitz <drow@mvista.com>
2165
2166 * symtab.c (compare_search_syms): New function.
2167 (sort_search_symbols): New function.
2168 (search_symbols): Sort symbols after searching rather than
2169 before.
2170
55241689
AC
21712002-02-10 Andrew Cagney <ac131313@redhat.com>
2172
2173 * NEWS: Linux -> GNU/Linux.
2174
028c194b
AC
21752002-02-10 Andrew Cagney <ac131313@redhat.com>
2176
2177 * gdbarch.sh: For for level one methods, disallow a definition
2178 when partially multi-arched. Add comments explaining rationale.
2179 * gdbarch.h: Re-generate.
2180
6acf50cd
AC
21812002-02-10 Andrew Cagney <ac131313@redhat.com>
2182
2183 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
2184 multi-arch partial.
aaa38bb5 2185
50248794
AC
21862002-02-10 Andrew Cagney <ac131313@redhat.com>
2187
2188 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
2189 field. Use diff -u.
2190 * gdbarch.c: Re-generate.
2191
c30e0066
AC
21922002-02-10 Andrew Cagney <ac131313@redhat.com>
2193
9b56c5f3 2194 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
c30e0066
AC
2195 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
2196 partial.
2197
6e6d6484
AC
21982002-02-10 Andrew Cagney <ac131313@redhat.com>
2199
2200 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
2201 multi-arch partial.
2202 (PUSH_ARGUMENTS): Switch to using predefault.
2203 * gdbarch.c: Regenerate.
2204
c203844d
AC
22052002-02-10 Andrew Cagney <ac131313@redhat.com>
2206
2207 * valops.c (PUSH_ARGUMENTS): Delete definition.
2208 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
2209 partial. Default to default_push_arguments.
2210 * gdbarch.h, gdbarch.c: Regenerate.
2211
b5a2688f
AC
22122002-02-09 Andrew Cagney <ac131313@redhat.com>
2213
2214 * defs.h (throw_exception): Rename return_to_top_level. Update
2215 comments.
2216 * utils.c (error_stream, internal_verror, quit): Ditto.
2217 * top.c (throw_exception, catcher): Ditto.
2218 * sparclet-rom.c (sparclet_load): Ditto.
2219 * remote.c (interrupt_query, minitelnet): Ditto.
2220 * remote-sds.c (interrupt_query): Ditto.
2221 * remote-mips.c (mips_error, mips_kill): Ditto.
2222 * ocd.c (interrupt_query): Ditto.
2223 * monitor.c (monitor_interrupt_query): Ditto.
2224 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
2225 * target.h: Update comment.
aaa38bb5 2226
b5a2688f 2227 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
aaa38bb5 2228
2fa5c1e0
AC
22292002-02-09 Andrew Cagney <ac131313@redhat.com>
2230
2231 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
2232 default_double_format.
2233 * gdbarch.h, gdbarch.c: Re-generate.
2234 * findvar.c (floatformat_unknown): Delete variable definition.
2235 * doublest.h (floatformat_unknown): Delete variable declaration.
2236
da966255
JB
22372002-02-09 Jim Blandy <jimb@redhat.com>
2238
2239 * stabsread.c (read_type): Add code to parse Sun's syntax for
2240 prototyped function types.
2241
123a4891
AC
22422002-02-09 Andrew Cagney <ac131313@redhat.com>
2243
2244 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
2245 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
2246
fb39c8f3
PS
22472002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2248
2249 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
2250 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
2251 now _initialize_xcoffsolib gets called again and overrides the
2252 commands from solib.c in a native configuration.
2253
0b87a11d
MK
22542002-02-09 Mark Kettenis <kettenis@gnu.org>
2255
2256 * doublest.c (store_typed_floating): Don't try to return a value.
2257 Fixes PR gdb/290.
2258
bdc2fc72
JB
22592002-02-08 Jim Blandy <jimb@redhat.com>
2260
2261 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
2262 is prototyped and has no arguments, print its argument list as
2263 `(void)'.
2264
da69bbcf
CD
22652002-02-08 Chris Demetriou <cgd@broadcom.com>
2266
2267 * MAINTAINERS (write-after-approval): Add myself.
2268 (paper-trail): I've escaped!
aaa38bb5 2269
b69571f5
CF
22702002-02-08 Christopher Faylor <cgf@redhat.com>
2271
2272 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
2273 changes.
2274 (_initialize_check_for_gdb_ini): Ditto.
2275
f6871398
MH
22762002-02-08 Martin M. Hunt <hunt@redhat.com>
2277
2278 * win32-nat.c (cygwin_pid_to_str): Fix typo.
2279 xaprintf -> xasprintf.
2280
4e52d31c
PM
22812002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
2282
2283 * win32-nat.c: Remove use of printf and sprintf functions.
2284
39bbf761
RE
22852002-02-08 Richard Earnshaw <rearnsha@arm.com>
2286
2287 * arm-tdep.c (arm_frame_chain_valid): Make static.
2288 (arm_push_arguments): Likewise.
2289 (arm_gdbarch_init): New function.
2290 (_initialize_arm_tdep): Call it.
2291 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
2292 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
2293 (FRAME_CHAIN_VALID): Delete.
2294 (arm_frame_chain_valid): Delete declaration.
2295 (PUSH_ARGUMENTS): Delete.
2296 (arm_push_arguments): Delete declaration.
2297 (CALL_DUMMY_P): Delete.
2298
9c9532c9
CV
22992002-02-08 Andrew Cagney <ac131313@redhat.com>
2300 Corinna Vinschen <vinschen@redhat.com>
2301
2302 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
2303 on builtin float types.
2304
4e8f7a8b
DJ
23052002-02-08 Daniel Jacobowitz <drow@mvista.com>
2306
2307 * utils.c: Include <curses.h> before "bfd.h".
2308 * tui/tui-hooks.c: Likewise.
2309 * tui/tui.c: Likewise.
2310 * tui/tuiCommand.c: Likewise.
2311 * tui/tuiData.c: Likewise.
2312 * tui/tuiDataWin.c: Likewise.
2313 * tui/tuiDisassem.c: Likewise.
2314 * tui/tuiGeneralWin.c: Likewise.
2315 * tui/tuiIO.c: Likewise.
2316 * tui/tuiLayout.c: Likewise.
2317 * tui/tuiRegs.c: Likewise.
2318 * tui/tuiSource.c: Likewise.
2319 * tui/tuiSourceWin.c: Likewise.
2320 * tui/tuiStack.c: Likewise.
2321 * tui/tuiWin.c: Likewise.
2322
cd4bffcf
EZ
23232002-02-07 Elena Zannoni <ezannoni@redhat.com>
2324
2325 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
2326 to include space for pseudoregs as well. Update loops accordingly.
2327 (sh_fp_frame_init_saved_regs): Ditto.
2328 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
2329
26806ce2
AC
23302002-02-07 Andrew Cagney <ac131313@redhat.com>
2331
2332 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
2333 Add Richard Earnshaw to Arm maintainers.
2334
97fdab62
AC
23352002-02-07 Andrew Cagney <ac131313@redhat.com>
2336
a6b98203
AC
2337 * defs.h (warning_begin): Delete declaration.
2338
97fdab62
AC
2339 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
2340 Delete macro.
2341
78b29b40
MS
23422002-02-07 Michael Snyder <msnyder@redhat.com>
2343
aaa38bb5 2344 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
78b29b40
MS
2345 Logic bug, remove misplaced else.
2346
d8849953
KD
23472002-02-07 Klee Dienes <klee@apple.com>
2348
2349 * fork-inferior.c (fork_inferior): Add '!' to the list of
2350 characters that need to be quoted when building a string for the
2351 shell. Quote '!' specifically with a backslash, since CSH chokes
2352 when trying to evaluate "str!str".
aaa38bb5 2353
095778a0
NC
23542002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
2355
2356 * rdi-share/host.h: Only provide a typedef for bool if it is not
2357 defined.
2358
1900040c
MS
23592002-02-04 Michael Snyder <msnyder@redhat.com>
2360
2361 * breakpoint.h (enum bptype): Add new overlay event bp type.
2362 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
aaa38bb5 2363
1900040c
MS
2364 * breakpoint.c (create_internal_breakpoint): New function.
2365 (internal_breakpoint_number): Moved into create_internal_breakpoint.
2366 (create_longjmp_breakpoint): Use create_internal_breakpoint.
2367 (create_thread_event_breakpoint): Ditto.
2368 (create_solib_event_breakpoint): Ditto.
2369 (create_overlay_event_breakpoint): New function.
2370 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
2371 (update_breakpoints_after_exec): Delete and re-initialize
2372 overlay event breakpoints after an exec. Add FIXME comment
2373 about longjmp breakpoint.
2374 (print_it_typical): Ignore overlay event breakpoints.
2375 (print_one_breakpoint): Ditto.
2376 (mention): Ditto.
2377 (bpstat_what): Do not stop for overlay event breakpoints.
2378 (delete_breakpoint): Don't delete overlay event breakpoints.
2379 (breakpoint_re_set_one): Delete the overlay event breakpoint.
2380 (breakpoint_re_set): Re-create overlay event breakpoint.
2381
2382 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
2383 (overlay_manual_command): Disable overlay breakpoints.
2384 (overlay_off_command): Disable overlay breakpoints.
2385
082fc60d
RE
23862002-02-06 Richard Earnshaw <rearnsha@arm.com>
2387
2388 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
2389 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
2390 to here from config/tm-arm.h.
2391 (coff_sym_is_thumb): Make static.
2392 (arm_elf_make_msymbol_special): New function.
2393 (arm_coff_make_msymbol_special): New function.
2394 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
2395 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
2396 (coff_sym_is_thumb): Delete declaration.
2397 (arm_elf_make_msymbol_special): Declare.
2398 (arm_coff_make_msymbol_special): Declare.
2399 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
2400 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
2401
039c5766
RE
24022002-02-06 Richard Earnshaw <rearnsha@arm.com>
2403
2404 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
2405
24062002-02-06 Richard Earnshaw <rearnsha@arm.com>
2407
2408 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
2409 * gdbarch.c gdbarch.h: Regenerate.
2410 * arch-utils.c (default_print_float_info): New function.
2411 * arch-utils.h (default_print_float_info): Prototype it.
2412 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
2413 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
2414 (PRINT_FLOAT_INFO): Document it.
2415
2416 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
2417 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
2418 (PRINT_FLOAT_INFO): Define.
2419
58fa08f0
PM
24202002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
2421
aaa38bb5 2422 * win32-nat.c (_initialize_check_for_gdb_ini):
58fa08f0
PM
2423 Add typecast to sprintf argument to suppress a warning.
2424
7393af7c
PM
24252002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
2426
58fa08f0 2427 * win32-nat.c (last_sig): Changed type of variable to target_signal,
7393af7c
PM
2428 to allow easier handling of pass state.
2429 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
2430 that gives exception name and address.
2431 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
aaa38bb5 2432 and set last_sig value to ourstatus->value.sig. Some missing
7393af7c 2433 exceptions added.
aaa38bb5
AJ
2434 (child_continue): Correctly report continue_status.
2435 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
7393af7c 2436 TARGET_SIGNAL_0 (new default value).
aaa38bb5 2437 (child_resume): consider sig argument passed to decide if
7393af7c
PM
2438 the exception should be passed to debuggee or not.
2439
6af4589c
MS
24402002-02-05 Michael Snyder <msnyder@redhat.com>
2441
2442 * regcache.c (fetch_register): Call target_fetch_register
2443 only if we don't call FETCH_PSEUDO_REGISTER.
2444 (store_register): Call target_store_register only if we
2445 don't call STORE_PSEUDO_REGISTER.
2446
a2cf933a
EZ
24472002-02-05 Elena Zannoni <ezannoni@redhat.com>
2448
2449 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
2450 ELF_MAKE_MSYMBOL_SPECIAL.
2451 * gdbarch.c, gdbarch.h: Regenerate.
2452 * arch-utils.c (default_make_msymbol_special): New function.
aaa38bb5 2453 * arch-utils.h (default_make_msymbol_special): Export.
a2cf933a
EZ
2454 * elfread.c (elf_symtab_read): Compile use of
2455 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
2456 multiarched.
2457 * coffread.c (coff_symtab_read): Ditto, for
2458 COFF_MAKE_MSYMBOL_SPECIAL.
2459
6bb7be43
JB
24602002-02-05 Jim Blandy <jimb@redhat.com>
2461
2462 * solib-svr4.c (svr4_truncate_ptr): New function.
2463 (svr4_relocate_section_addresses): Do the address arithmetic with
2464 the appropriate truncation for target addresses, even when
2465 CORE_ADDR is larger than a target address.
2466
e18651ec
DJ
24672002-02-05 Daniel Jacobowitz <drow@mvista.com>
2468
2469 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
2470 to (int *).
2471
6b2725be
DJ
24722002-02-05 Daniel Jacobowitz <drow@mvista.com>
2473
2474 * gdbserver/linux-low.c (kill_inferior): Remove commented out
2475 code.
2476
fca9e603
DJ
24772002-02-05 Daniel Jacobowitz <drow@mvista.com>
2478
2479 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
2480
6c537a52
DJ
24812002-02-05 Daniel Jacobowitz <drow@mvista.com>
2482
2483 * gdbserver/linux-low.c: Remove unused include files.
2484
d844cde6
DJ
24852002-02-05 Daniel Jacobowitz <drow@mvista.com>
2486
2487 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
2488 (read_inferior_memory): Use it.
2489 (write_inferior_memory): Likewise.
2490
d07c63e7
DJ
24912002-02-05 Daniel Jacobowitz <drow@mvista.com>
2492
2493 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
2494 grubbing through sys_errlist.
2495
da6d8c04
DJ
24962002-02-05 Daniel Jacobowitz <drow@mvista.com>
2497
2498 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
2499
5b421780
PM
25002002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
2501 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
2502
9f60d481
AC
25032002-02-04 Andrew Cagney <ac131313@redhat.com>
2504
2505 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
2506 (do_sfunc, set_cmd_sfunc): New functions.
2507
2508 * command.h (struct cmd_list_element): Add field func.
2509 * cli/cli-decode.h (struct cmd_list_element): Ditto.
2510 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
2511 * cli/cli-decode.h: Ditto.
2512
2513 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
2514 (help_all, help_cmd_list): Ditto.
2515 (find_cmd, complete_on_cmdlist): Ditto.
2516 * top.c (execute_command): Ditto.
2517
2518 * cli/cli-setshow.c (do_setshow_command): Call func instead of
2519 function.sfunc.
2520
2521 * infcmd.c (notice_args_read): Fix function signature.
2522
2523 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
2524 * cli/cli-decode.c (add_set_cmd): Ditto.
2525 * utils.c (initialize_utils): Ditto.
2526 * maint.c (_initialize_maint_cmds): Ditto.
2527 * infrun.c (_initialize_infrun): Ditto.
2528 * demangle.c (_initialize_demangler): Ditto.
2529 * remote.c (add_packet_config_cmd): Ditto.
2530 * mips-tdep.c (_initialize_mips_tdep): Ditto.
2531 * cris-tdep.c (_initialize_cris_tdep): Ditto.
2532 * proc-api.c (_initialize_proc_api): Ditto.
2533 * kod.c (_initialize_kod): Ditto.
2534 * valprint.c (_initialize_valprint): Ditto.
2535 * top.c (init_main): Ditto.
2536 * infcmd.c (_initialize_infcmd): Ditto.
2537 * corefile.c (_initialize_core): Ditto.
2538 * arm-tdep.c (_initialize_arm_tdep): Ditto.
2539 * arch-utils.c (initialize_current_architecture): Ditto.
2540 (_initialize_gdbarch_utils): Ditto.
2541 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
2542
2543 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
2544 * wince.c (_initialize_inftarg): Ditto.
2545 * symfile.c (_initialize_symfile): Ditto.
2546 * mips-tdep.c (_initialize_mips_tdep): Ditto.
2547 * language.c (_initialize_language): Ditto.
2548 * arc-tdep.c (_initialize_arc_tdep): Ditto.
2549
f9ba0717
MS
25502002-02-04 Michael Snyder <msnyder@redhat.com>
2551
2552 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
2553
0c74b2a7
DJ
25542002-02-04 Daniel Jacobowitz <drow@mvista.com>
2555
2556 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
2557 Add rules for building the register data files.
2558
c638789f
DJ
25592002-02-04 Daniel Jacobowitz <drow@mvista.com>
2560
2561 * regformats/regdat.sh: Add braces to the definition of
2562 expedite_regs_${arch}.
2563
db253027
DJ
25642002-02-04 Daniel Jacobowitz <drow@mvista.com>
2565
2566 * regformats/regdef.h (struct reg): Add comment describing the
2567 requirements for offset and size fields.
2568
206be19c
AS
25692002-02-04 Andreas Schwab <schwab@suse.de>
2570
2571 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
2572 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
2573
181c1381
RE
25742002-02-04 Richard Earnshaw <rearnsha@arm.com>
2575
2576 * gdbarch.sh (copyright): Update years in generated header.
2577 (SMASH_TEXT_ADDRESS): Add rule.
db253027 2578 * gdbarch.h, gdbarch.c: Re-generate.
181c1381
RE
2579 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
2580 * dbxread.c: Likewise.
2581 * dwarfread.c: Likewise.
2582 * elfread.c: Likewise.
2583 * somread.c: Likewise.
2584
2585 * arm-tdep.c (arm_smash_text_address): New function.
2586 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
2587
fa4ba8da
PM
25882002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
2589
2590 Add support for hardware watchpoints on win32 native.
aaa38bb5 2591 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
fa4ba8da 2592 CONTEXT_DEBUG_REGISTERS.
aaa38bb5 2593 (dr variable): New variable. Static array containing a local copy
fa4ba8da
PM
2594 of debug registers.
2595 (debug_registers_changed): New variable. Reflects when debug registers
2596 are changed and need to be written to inferior.
aaa38bb5 2597 (debug_registers_used): New variable. Reflects when any debug register
fa4ba8da
PM
2598 was set, used when new threads are created.
2599 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
2600 i386-nat code.
2601 (thread_rec): Set dr array if id is the thread of current_event .
2602 (child_continue, child_resume): Change the debug registers for all
2603 threads if debug_registers_changed.
2604 (child_add_thread): Change the debug registers if debug_registers_used.
2605 * config/i386/cygwin.mh: Add use of i386-nat.o file.
2606 Link nm.h to new nm-cygwin.h file.
2607 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
2608 of hardware registers.
2609
a73c86fb
AC
26102002-02-03 Andrew Cagney <ac131313@redhat.com>
2611
2612 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
2613 Restore behavour broken by 2002-01-20 Andrew Cagney
2614 <ac131313@redhat.com> IEEE_FLOAT removal.
2615
acf5ed49
DJ
26162002-02-03 Daniel Jacobowitz <drow@mvista.com>
2617
2618 * c-valprint.c (c_val_print): Pass a proper valaddr to
2619 cp_print_class_method.
2620 * valops.c (search_struct_method): If there is only one method
2621 and args is NULL, return that method.
2622
493d28d5
DJ
26232002-02-03 Daniel Jacobowitz <drow@mvista.com>
2624
2625 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
2626 accessing tag_name directly.
2627
7495dfdb
DJ
26282002-02-03 Daniel Jacobowitz <drow@mvista.com>
2629
2630 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
2631 of accessing tag_name directly.
2632
dd6bda65
DJ
26332002-02-03 Daniel Jacobowitz <drow@mvista.com>
2634
2635 PR gdb/280
2636 * gdbtypes.c (replace_type): New function.
2637 * gdbtypes.h (replace_type): Add prototype.
2638 * stabsread.c (read_type): Use replace_type.
2639
88fe217c
RE
26402002-02-03 Richard Earnshaw <rearnsha@arm.com>
2641
2642 * Makefile.in (memattr.o): Add missing dependencies rule.
2643
e5d66720
PS
26442002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2645
2646 * breakpoint.c (break_at_finish_command): Really export.
2647 (break_at_finish_at_depth_command): Ditto.
2648 (tbreak_at_finish_command): Ditto.
2649 * hppa-tdep.c: Include completer.h.
2650 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
2651 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
2652
fffee0be
AC
26532002-02-01 Andrew Cagney <ac131313@redhat.com>
2654
2655 * utils.c (do_write): New function.
2656 (error_stream): Rewrite combining the code from error_begin and
2657 verror.
2658 (verror): Rewrite using error_stream.
2659 (error_begin): Delete function.
2660
255e7dbf
AC
26612002-02-01 Andrew Cagney <ac131313@redhat.com>
2662
2663 * utils.c (error_begin): Make static.
2664 * defs.h (error_begin): Delete declaration.
2665
2666 * linespec.c (cplusplus_error): Replace cplusplus_hint.
2667 (decode_line_1): Use cplusplus_error instead of error_begin,
2668 cplusplus_hint and return_to_top_level.
2669 * coffread.c (coff_symfile_read): Use error instead of error_begin
2670 and return_to_top_level.
2671 * infrun.c (default_skip_permanent_breakpoint): Ditto.
2672
ddfe3c15
AC
26732002-02-01 Andrew Cagney <ac131313@redhat.com>
2674
2675 * language.h (type_error, range_error): Make string parameter
2676 constant.
2677 * language.c (warning_pre_print): Delete extern declaration.
2678 * dwarfread.c (warning_pre_print): Ditto.
2679 * language.c (type_error, range_error): Rewrite to use verror and
2680 vwarning instead of warning_begin.
2681
03ac34d5
MS
26822002-02-01 Michael Snyder <msnyder@redhat.com>
2683
261c4ca2
MS
2684 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
2685 (set_ignore_count): Move misplaced comment back where it belongs.
03ac34d5 2686
e00d1dc8
AC
26872002-02-01 Andrew Cagney <ac131313@redhat.com>
2688
2689 * command.h (NO_FUNCTION): Delete macro.
2690 * cli/cli-decode.h (NO_FUNCTION): Ditto.
2691 * top.c (execute_command): Replace NO_FUNCTION with NULL.
2692 * tracepoint.c (_initialize_tracepoint): Ditto.
2693 * cli/cli-decode.c (add_set_cmd): Ditto.
2694 * cli/cli-cmds.c (init_cli_cmds): Ditto.
aaa38bb5 2695
76b79d6e
DJ
26962002-02-01 Daniel Jacobowitz <drow@mvista.com>
2697
2698 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
2699 Update ``this'' pointer when calling virtual functions.
2700
799f9e91
MS
27012002-02-01 Michael Snyder <msnyder@redhat.com>
2702
c7bd442c 2703 * breakpoint.c (create_temp_exception_breakpoint): Delete.
799f9e91
MS
2704 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
2705
3cf384d4
DJ
27062002-02-01 Daniel Jacobowitz <drow@mvista.com>
2707
2708 * regformats/reg-arm.dat: New file.
2709 * regformats/reg-i386.dat: New file.
2710 * regformats/reg-ia64.dat: New file.
2711 * regformats/reg-m68k.dat: New file.
2712 * regformats/reg-mips.dat: New file.
2713 * regformats/reg-ppc.dat: New file.
2714 * regformats/reg-sh.dat: New file.
2715 * regformats/regdef.h: New file.
2716 * regformats/regdat.sh: New file.
2717
0defa245
RE
27182002-02-01 Richard Earnshaw <reanrsha@arm.com>
2719
2720 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
2721 (arm_frame_args_address, arm_frame_locals_address): New functions.
2722 (arm_frame_num_args): New function.
2723 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
2724 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
2725 (FRMA_NUM_ARGS): Call arm_frame_num_args.
2726
405f26e6
MS
27272002-01-31 Michael Snyder <msnyder@redhat.com>
2728
502fd408
MS
2729 * breakpoint.c (break_at_finish_command): Export.
2730 (break_at_finish_at_depth_command): Export.
2731 (tbreak_at_finish_command): Export.
2732 (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
2733 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
2734 "tbreak" commands, which are HPPA specific.
2735
7d35e135
MS
2736 * printcmd.c (disassemble_command): Remove an ancient
2737 artifact of an old merge.
2738
aaa38bb5 2739 * symfile.h (enum overlay_debugging_state):
d874f1e2
MS
2740 Define enum constant values for overlay mode.
2741 * symfile.c (overlay_debugging): Use enums instead of literals.
aaa38bb5
AJ
2742 (overlay_is_mapped, overlay_auto_command,
2743 overlay_manual_command): Ditto.
d874f1e2 2744
aaa38bb5
AJ
2745 * breakpoint.c (insert_breakpoints, remove_breakpoint,
2746 breakpoint_here_p, breakpoint_inserted_here_p,
2747 breakpoint_thread_match, bpstat_stop_status,
9f04af04
MS
2748 describe_other_breakpoints, check_duplicates, clear_command):
2749 Coding standard fixes.
2750
8add0441 2751 * target.c (target_xfer_memory): Add spaces, coding standard.
9f04af04 2752 (do_xfer_memory): Add missing line to trust-readonly
405f26e6
MS
2753 code: check bfd SEC_READONLY flag for section.
2754
e351066e
AC
27552002-01-31 Andrew Cagney <ac131313@redhat.com>
2756
7d35e135 2757 * PROBLEMS: Fix typo, 5.1->5.1.1.
e351066e 2758
8a48e967
DJ
27592002-01-30 Daniel Jacobowitz <drow@mvista.com>
2760
2761 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
2762 data symbols, since we search based on textlow and texthigh.
2763 (find_pc_sect_symtab): Likewise.
2764
f5a96129
AC
27652002-01-30 Andrew Cagney <ac131313@redhat.com>
2766
2767 * defs.h (vwarning): Declare.
f5a96129
AC
2768 * utils.c (vwarning): New function.
2769 (warning): Call vwarning.
2770 (warning_begin): Delete function.
2771
2772 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
2773 the warning message.
2774 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
2775 warning_begin.
2776
cefd4ef5
MS
27772002-01-30 Michael Snyder <msnyder@redhat.com>
2778
1a703748
MS
2779 * NEWS: Mention "set trust-readonly-sections" command.
2780 Mention generate-core-file command.
cefd4ef5 2781
3a11626d
MS
27822002-01-15 Michael Snyder <msnyder@redhat.com>
2783
2784 * target.c: New command, "set trust-readonly-sections on".
2785 (do_xfer_memory): Honor the suggestion to trust readonly sections
2786 by reading them from the object file instead of from the target.
2787 (initialize_targets): Register command "set trust-readonly-sections".
2788
d1c7e53b
AC
27892002-01-29 Andrew Cagney <ac131313@redhat.com>
2790
2791 * parse.c (target_map_name_to_register): Simplify, search regs and
2792 pseudo-regs using a single loop.
2793
e2c9a72c
AC
27942002-01-30 Andrew Cagney <ac131313@redhat.com>
2795
2796 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
2797
69824b4e
MK
27982002-01-15 Rodney Brown <rbrown64@csc.com.au>
2799
2800 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
2801 * config/i386/i386v42mp.mh: Add i387-nat.o .
2802 * i386v4-nat.c: Include i387-nat.h.
2803 (supply_fpregset): Use i387_supply_fsave.
2804 (fill_fpregset): Use i387_fill_fsave.
2805
6eb69eab
RE
28062002-01-30 Richard Earnshaw <rearnsha@arm.com>
2807
2808 * arm-tdep.c (arm_call_dummy_words): Define.
2809 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
2810 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
2811 (CALL_DUMMY_WORDS): Define.
2812 (arm_call_dummy_words): Declare.
2813 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
2814 (arm_linux_call_dummy_words): Declare.
2815
9852326a
AS
28162002-01-30 Andreas Schwab <schwab@suse.de>
2817
2818 * m68klinux-nat.c: Fix last change to use regcache_collect
2819 instead of referencing registers[] directly.
2820
977a3030
AC
28212002-01-29 Andrew Cagney <ac131313@redhat.com>
2822
2823 * parse.c (target_map_name_to_register): Delete code wrapped in
2824 #ifdef REGISTER_NAME_ALIAS_HOOK.
2825
2076c72b
MS
28262002-01-28 Michael Snyder <msnyder@redhat.com>
2827
2828 * regcache.c (legacy_read_register_gen): Need to be able to
2829 read pseudo-register as well as real register.
2830 (legacy_write_register_gen): Ditto.
2831
8fcc723b
AC
28322002-01-28 Andrew Cagney <ac131313@redhat.com>
2833
2834 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
2835 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
2836 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
2837 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
2838 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
2839 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
2840 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
2841 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
2842 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
2843 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
2844 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
2845 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
2846 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
2847 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
2848 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
2849 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
2850 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
2851 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
2852 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
2853 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
2854
afe64c1a
AC
28552002-01-28 Andrew Cagney <ac131313@redhat.com>
2856
2857 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
2858 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
2859 (initialize_current_architecture): Update target_byte_order using
2860 information from BFD.
aaa38bb5 2861 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
afe64c1a
AC
2862 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
2863
75bc7ddf
AC
28642002-01-28 Andrew Cagney <ac131313@redhat.com>
2865
2866 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
2867 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
2868
2869 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
2870 #ifdef INVALID_FLOAT.
2871 * infcmd.c (do_registers_info): Ditto.
2872 * values.c (unpack_double): Ditto. Add comment.
2873
2874 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
2875 already commented out.
2876
0280a90a
AS
28772002-01-26 Andreas Schwab <schwab@suse.de>
2878
2879 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
2880 * m68klinux-nat.c: Update ptrace interface for fetching/storing
2881 registers and add support for PTRACE_GETREGS.
2882
7072a954
AC
28832002-01-24 Andrew Cagney <ac131313@redhat.com>
2884
2885 GDB 5.1.1 released from 5.1 branch.
2886 * NEWS: Add 5.1.1 news.
2887 * README: Sync with 5.1 branch.
2888
86f902e0
FF
28892002-01-23 Fred Fish <fnf@redhat.com>
2890
2891 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
2892 stabstring on initial malloc. Reallocing will copy it for us,
2893 if necessary.
2894
8af51c36
EZ
28952002-01-23 Elena Zannoni <ezannoni@redhat.com>
2896
aaa38bb5 2897 * Makefile.in (hpread_h): Delete.
8af51c36
EZ
2898 (HFILES_NO_SRCDIR): Remove hpread.h.
2899 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
2900 (hpread.o): Update dependencies.
2901 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
2902
2903 * hp-psymtab-read.c: Remove file.
2904 * hp-symtab-read.c: Remove file.
2905 * hpread.h: Remove file.
2906
2907 * hpread.c: Merge all contents of hp-psymtab-read.c,
2908 hp-symtab-read.c and hpread.h into this file, as it was prior to
2909 January 1999.
2910
2911 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
aaa38bb5 2912 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
8af51c36
EZ
2913 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
2914 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
2915
dc5cfeb6
EZ
29162002-01-23 Elena Zannoni <ezannoni@redhat.com>
2917
2918 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
2919 fill_gregset): Call gdbarch_tdep() just once, assign result to
2920 variable and use that, instead of calling the function several
2921 times.
2922
ea87b71b
AO
29232002-01-24 Alexandre Oliva <aoliva@redhat.com>
2924
2925 * configure.host: Accept sparcv9 as alias for sparc64.
2926 * configure.tgt: Likewise.
2927
13fc0c2f
KB
29282002-01-22 Kevin Buettner <kevinb@redhat.com>
2929
2930 * solib-aix5.c (build_so_list_from_mapfile)
2931 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
2932 arguments is not reversed.
2933 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
2934 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
aaa38bb5 2935
7bd872fe
EZ
29362002-01-22 Elena Zannoni <ezannoni@redhat.com>
2937
2938 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
2939 modified version of obsolete sh_fetch_pseudo_register.
2940 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
2941 (sh4_register_read): New function.
2942 (sh_pseudo_register_write): New function. Renamed and modified
2943 version of obsolete sh_store_pseudo_register.
2944 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
2945 (sh4_register_write): New function.
2946 (sh_gdbarch_init): Remove setting of gdbarch function
2947 fetch_pseudo_register and store_pseudo_register. Remove setting of
2948 register_convert_to_raw, register_convert_to_virtual,
2949 register_convertible.
2950 (sh_sh4_register_convertible): Delete. No longer needed. All is
2951 taken care by architecture specific functions
2952 register_read/register_write.
2953 (sh_sh4_register_convert_to_virtual): Make static.
2954 (sh_sh4_register_convert_to_raw): Ditto.
2955
069e84fd
AC
29562002-01-22 Andrew Cagney <ac131313@redhat.com>
2957
2958 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
2959 (floatformat_is_nan, floatformat_mantissa): Ditto.
2960
2961 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
2962 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
2963 builtin_type_ieee_double_little,
2964 builtin_type_ieee_double_littlebyte_bigword,
2965 builtin_type_m68881_ext, builtin_type_i960_ext,
2966 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
2967 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
2968 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
2969 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
2970
211a4f69
CV
29712002-01-22 Corinna Vinschen <vinschen@redhat.com>
2972
2973 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
2974 parameter. Set frameless flag if it exists and depended of
2975 whether the scanned function is frameless or not.
2976 (xstormy16_skip_prologue): If function is frameless, return
2977 result of xstormy16_scan_prologue().
2978 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
2979 call.
2980
f81353e4
EZ
29812002-01-21 Elena Zannoni <ezannoni@redhat.com>
2982
2983 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
2984 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
2985 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
2986 sh_sh4_register_byte, sh_sh4_register_raw_size,
2987 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
2988 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
2989 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
2990 sh_store_pseudo_register, sh_do_pseudo_register): Call
2991 gdbarch_tdep() just once, assign result to variable and use that,
2992 instead of calling the function several times.
2993
63c73a17
MK
29942002-01-20 Mark Kettenis <kettenis@gnu.org>
2995
2996 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
2997 macros instead of LAST_FPU_CTRL_REGNUM.
2998 (store_register): Likewise.
2999
39ad761d
JB
30002002-01-21 Jim Blandy <jimb@redhat.com>
3001
3002 * infcmd.c (run_command): Check that the `exec' target layer's BFD
3003 is up-to-date before running the program, not just when a program
3004 exits.
3005
3d74b771
FF
30062002-01-21 Fred Fish <fnf@redhat.com>
3007
3008 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
3009 when we have found all instructions we are looking for.
3010
966fbf70
RE
30112002-01-21 Richard Earnshaw <rearnsha@arm.com>
3012
3013 * arm-tdep.c (arm_register_name): New function.
3014 (arm_registers_names): Make static.
3015 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
3016 (arm_register_name): Declare.
3017 (REGISTER_NAME): Use it.
3018
c3b4394c
RE
30192002-01-21 Richard Earnshaw <rearnsha@arm.com>
3020 Kevin Buettner <kevinb@redhat.com>
3021
3022 Convert arm targets to new FRAME interface.
3023 * arm-tdep.c (struct frame_extra_info): Remove fsr.
3024 (arm_frame_find_save_regs): Delete.
3025 (arm_frame_init_saved_regs): New.
3026 (arm_init_extra_frame_info): Alloacte saved_regs as required.
3027 Allocate extra_info as required. Convert all uses of fsr.regs
3028 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
3029 to use extra_info.
3030 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
3031 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
3032 (check_prologue_cache, save_prologue_cache): Likewise.
3033 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
3034 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
3035 (FRAME_FIND_SAVED_REGS): Delete.
3036 (arm_frame_find_saved_regs): Delete prototype.
3037 (arm_frame_init_saved_regs): New prototype.
3038 (FRAME_INIT_SAVED_REGS): Define.
3039
61d99182
AC
30402002-01-20 Andrew Cagney <ac131313@redhat.com>
3041
3042 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
3043
6aaea291
AC
30442002-01-20 Andrew Cagney <ac131313@redhat.com>
3045
3046 From Jeff Law <law@redhat.com>:
3047 * infttrace.c: Include <sys/pstat.h>.
3048 (child_pid_to_exec_file): Revamp. Use pstat call to get the
3049 exec file if the ttrace equivalent fails.
3050
15f698d2
AC
30512002-01-20 Andrew Cagney <ac131313@redhat.com>
3052
3053 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
3054 (closeLogFile): Ditto.
3055
f86ddd7c
MC
30562002-01-20 Michael Chastain <mec@shout.net>
3057
3058 * top.c (print_gdb_version): Bump copyright year to 2002.
3059
904507ce
AC
30602002-01-20 Andrew Cagney <ac131313@redhat.com>
3061
3062 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
3063 Zannoni and Eli Zaretskii.
3064
d7f0b9ce
DJ
30652002-01-20 Daniel Jacobowitz <drow@mvista.com>
3066
3067 * buildsym.c: Update copyright years.
3068 * c-typeprint.c: Likewise.
3069 * dwarf2read.c: Likewise.
3070 * f-typeprint.c: Likewise.
3071 * gdbtypes.c: Likewise.
3072 * gdbtypes.h: Likewise.
3073 * hp-symtab-read.c: Likewise.
3074 * hpread.c: Likewise.
3075 * mdebugread.c: Likewise.
3076 * p-typeprint.c: Likewise.
3077
3fd3d7d2
AC
30782002-01-20 Andrew Cagney <ac131313@redhat.com>
3079
3080 * remote-sim.c (gdbsim_open): Simplify code testing the macro
3081 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
3082 byte-order selectable.
3083 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
3084 * arch-utils.c: Ditto.
3085 (set_endian): Ditto.
3086 (set_endian_from_file): Ditto.
3087 * gdbserver/low-sim.c (create_inferior): Ditto.
3088 * gdbarch.sh: Ditto.
3089 * gdbarch.h: Re-generate.
aaa38bb5
AJ
3090 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
3091 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
3092 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
3093 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
3094 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
3095 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
3096 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
3fd3d7d2
AC
3097 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
3098 macro definition.
3099 * config/mips/tm-wince.h: Remove #undef of macro
3100 TARGET_BYTE_ORDER_SELECTABLE.
3101 * config/sh/tm-wince.h: Ditto.
3102
b02dede2
DJ
31032002-01-20 Daniel Jacobowitz <drow@mvista.com>
3104
3105 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
3106 member function fields. Add accessor macro
3107 TYPE_FN_FIELD_ARTIFICIAL.
3108 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
3109 * c-typeprint.c (c_type_print_base): Skip artificial member
3110 functions.
3111
c3643761
DJ
31122002-01-20 Daniel Jacobowitz <drow@mvista.com>
3113
3114 * f-typeprint.c: Delete unused function f_type_print_args.
3115 * p-typeprint.c: Delete unused function pascal_type_print_args.
3116
8176bb6d
DJ
31172002-01-20 Daniel Jacobowitz <drow@mvista.com>
3118
3119 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
3120 comment. Add ``artificial'' to ``union field_location''.
3121
3122 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
3123
3124 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
3125 * mdebugread.c (parse_symbol): Likewise.
3126 * stabsread.c (define_symbol): Likewise.
3127 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
3128 initializing TYPE_FIELD_BITPOS to n (obsolete).
3129 (hpread_doc_function_type): Likewise.
3130 * hpread.c (hpread_function_type): Likewise.
3131
7fd60527
AC
31322002-01-20 Andrew Cagney <ac131313@redhat.com>
3133
3134 * configure.in (host_makefile_frag): Only require a host makefile
3135 fragment when a native build.
3136 * configure: Re-generate.
3137
c2f05ac9
AC
31382002-01-20 Andrew Cagney <ac131313@redhat.com>
3139
3140 * doublest.h (floatformat_from_type): Declare.
3141 * doublest.c (floatformat_from_type): New function.
3142 (convert_typed_floating): Use.
3143
3144 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
3145 call to function floatformat_from_type.
3146
3147 * gdbarch.sh (IEEE_FLOAT): Delete.
3148 * gdbarch.h, gdbarch.c: Re-generate.
3149 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
3150 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
3151 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
3152 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
3153 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
3154 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
3155 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
3156 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
3157 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
3158 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
3159 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
c2f05ac9
AC
3160 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
3161
3162 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
3163 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
3164 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3165 * sh-tdep.c (sh_gdbarch_init): Ditto.
3166 * mips-tdep.c (mips_gdbarch_init): Ditto.
3167 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3168 * cris-tdep.c (cris_gdbarch_init): Ditto.
3169
abf22e64
AJ
31702002-01-20 Jiri Smid <smid@suse.cz>
3171
3172 * configure.host, configure.tgt: Support x86-64.
3173 * NEWS: Note new target x86-64.
3174
b7c4cbf8
AJ
3175 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
3176 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
3177 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
3178 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
3179 x86-64-linux-nat.o): Fix dependencies.
3180
82600034
AC
31812002-01-19 Andrew Cagney <ac131313@redhat.com>
3182
3183 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
3184 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
3185 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
3186 * config/sparc/xm-sun4os4.h: Delete file.
3187 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
abf22e64 3188
bbe5c628
AC
31892002-01-19 Andrew Cagney <ac131313@redhat.com>
3190
3191 * config/sparc/sparclynx.mh (XM_FILE): Delete.
3192 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
3193 * config/m68k/m68klynx.mh (XM_FILE): Delete.
3194 * config/i386/i386lynx.mh (XM_FILE): Delete.
3195 * config/rs6000/xm-rs6000ly.h: Delete file.
3196 * config/sparc/xm-sparclynx.h: Delete file.
3197 * config/m68k/xm-m68klynx.h: Delete file.
3198 * config/i386/xm-i386lynx.h: Delete file.
3199 * config/xm-lynx.h: Delete file.
3200 * config/djgpp/fnchange.lst: Update.
3201
f8453e34
JT
32022002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
3203
3204 * alpha-tdep.c (alpha_register_byte): New function.
3205 (alpha_register_raw_size): Ditto.
3206 (alpha_register_virtual_size): Ditto.
3207 (alpha_skip_prologue_internal): Renamed from
3208 alpha_skip_prologue.
3209 (alpha_skip_prologue): New version that calls
3210 alpha_skip_prologue_internal.
3211 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
3212 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
3213 second argument from alpha_skip_prologue.
3214 (REGISTER_BYTE): Use alpha_register_byte.
3215 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
3216 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
3217 (FRAMELESS_FUNCTION_INVOCATION): Use
3218 generic_frameless_function_invocation_not.
3219 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
3220 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
3221
52d9e613
AC
32222002-01-19 Andrew Cagney <ac131313@redhat.com>
3223
3224 * config/mips/xm-news-mips.h: Delete file.
3225 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
3226
3227 * config/m88k/xm-m88k.h: Delete file.
3228 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
3229 * config/m88k/xm-delta88v4.h: Ditto.
3230 * config/m88k/xm-delta88.h: Ditto.
3231
3232 * config/alpha/xm-fbsd.h: Delete file.
3233 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
3234
3235 * config/sparc/xm-sparc.h: Delete file.
3236 * Makefile.in (xm-sun4os4.h): Delete dependency.
3237 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
3238 * config/sparc/xm-sun4os4.h: Ditto.
3239 * config/sparc/xm-linux.h: Ditto.
3240
3241 * config/i386/xm-windows.h: Delete file.
3242
2d1b2124
AC
32432002-01-19 Andrew Cagney <ac131313@redhat.com>
3244
3245 * utils.c: Include <sys/param.h> for MAXPATHLEN.
3246 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
3247
ee1f65f0
JT
32482002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
3249
3250 * alpha-tdep.c (alpha_call_dummy_words): New.
3251 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
3252 (CALL_DUMMY_P): Define.
3253 (CALL_DUMMY_WORDS): Define.
3254 (SIZEOF_CALL_DUMMY_WORDS): Define.
3255
98081e55
PB
32562002-01-19 Per Bothner <per@bothner.com>
3257
3258 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
3259 isn't NULL, which can happen with some gcj-3.x-produced code.
3260
0d056799
JT
32612002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
3262
3263 * alpha-tdep.c (alpha_register_virtual_type): New function.
3264 (alpha_init_frame_pc_first): Ditto.
3265 (alpha_fix_call_dummy): Ditto.
3266 (alpha_store_struct_return): Ditto.
3267 (alpha_extract_struct_value_address): Ditto.
3268 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
3269 alpha_register_virtual_type.
3270 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
3271 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
3272 alpha_extract_struct_value_address.
3273 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
3274 (INIT_FRAME_PC): Use init_frame_pc_noop.
3275 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
3276
4604bcad
MK
32772002-01-19 Mark Kettenis <kettenis@gnu.org>
3278
3279 * i386gnu-nat.c: Include "i386-tdep.h".
3280 (fetch_fpregs): Simplify code dealing with uninitialized floating
3281 point states such that it doesn't require FP7_REGNUM.
3282
140f9984
JT
32832002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
3284
abf22e64
AJ
3285 * alpha-tdep.c (frame_extra_info): New.
3286 (alpha_find_saved_regs): Make static. Use
140f9984
JT
3287 frame->extra_info.
3288 (alpha_frame_init_saved_regs): New function.
abf22e64
AJ
3289 (alpha_frame_saved_pc): Use frame->extra_info.
3290 (temp_saved_regs): Don't declare as struct frame_saved_regs.
3291 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
140f9984
JT
3292 (init_extra_frame_info): Rename to...
3293 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
abf22e64 3294 (alpha_print_extra_frame_info): New function.
140f9984
JT
3295 (alpha_frame_locals_address): Ditto.
3296 (alpha_frame_args_address): Ditto.
abf22e64 3297 (alpha_pop_frame): Use frame->extra_info.
140f9984
JT
3298 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
3299 alpha_frame_args_address.
abf22e64 3300 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
140f9984 3301 (alpha_find_saved_regs): Remove prototype.
abf22e64
AJ
3302 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
3303 (EXTRA_FRAME_INFO): Remove.
140f9984
JT
3304 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
3305 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
3306
d734c450
JT
33072002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
3308
3309 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
3310 (alpha_cannot_fetch_register): Ditto.
3311 (alpha_cannot_store_register): Ditto.
3312 (alpha_register_convertible): Ditto.
3313 (alpha_use_struct_convention): Ditto.
3314 * config/alpha/tm-alpha.h: Update copyright years.
3315 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
3316 (INNER_THAN): Use core_addr_lessthan.
3317 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
3318 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
3319 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
3320 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
3321 (FRAME_CHAIN): Remove unnecessary cast.
3322
b4ceaee6
AC
33232002-01-18 Andrew Cagney <ac131313@redhat.com>
3324
3325 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
3326 obsolete.
3327
0a65a603
AC
33282002-01-18 Andrew Cagney <ac131313@redhat.com>
3329
3330 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
3331 * monitor.c, remote-array.c, remote-bug.c: Ditto.
3332 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
3333 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
3334 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
3335 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
3336 * x86-64-linux-nat.c: Ditto.
3337
636a6dfc
JT
33382002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
3339
abf22e64 3340 * alpha-tdep.c (alpha_register_name): New function.
636a6dfc
JT
3341 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
3342 (REGISTER_NAME): Define.
3343
acceddb6
JT
33442002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
3345
3346 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
3347
ec32e4be
JT
33482002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
3349
3350 * alpha-tdep.c: Update copyright years.
3351 (alpha_next_pc): New function.
3352 (alpha_software_single_step): Ditto.
3353 * config/alpha/tm-alpha.h: Add prototype for
3354 alpha_software_single_step.
3355
e771a871
JT
33562002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
3357
3358 * alphabsd-nat.c: Update copyright years.
3359 (fill_gregset): Use regcache_collect.
3360 (fill_fpregset): Likewise.
3361 (fetch_inferior_registers): Only fetch integer registers
3362 if requested to do so.
3363 (store_inferior_registers): Only store integer registers
3364 if requested to do so.
3365
7708fa01
AC
33662002-01-17 Andrew Cagney <ac131313@redhat.com>
3367
3368 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
3369 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
3370 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
3371 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
3372 * config/alpha/fbsd.mh (XDEPFILES): Delete.
3373 * config/arm/linux.mh (XDEPFILES): Delete.
3374 * config/arm/nbsd.mh (XDEPFILES): Delete.
3375 * config/i386/i386dgux.mh (XDEPFILES): Delete.
3376 * config/i386/i386sol2.mh (XDEPFILES): Delete.
3377 * config/i386/i386m3.mh (XDEPFILES): Delete.
3378 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
3379 * config/i386/i386gnu.mh (XDEPFILES): Delete.
3380 * config/i386/fbsd.mh (XDEPFILES): Delete.
3381 * config/i386/i386bsd.mh (XDEPFILES): Delete.
3382 * config/i386/i386sco5.mh (XDEPFILES): Delete.
3383 * config/i386/i386v4.mh (XDEPFILES): Delete.
3384 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
3385 * config/i386/i386sco4.mh (XDEPFILES): Delete.
3386 * config/i386/i386aix.mh (XDEPFILES): Delete.
3387 * config/i386/go32.mh (XDEPFILES): Delete.
3388 * config/i386/cygwin.mh (XDEPFILES): Delete.
3389 * config/i386/i386lynx.mh (XDEPFILES): Delete.
3390 * config/i386/i386mach.mh (XDEPFILES): Delete.
3391 * config/i386/i386v32.mh (XDEPFILES): Delete.
3392 * config/i386/linux.mh (XDEPFILES): Delete.
3393 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
3394 * config/i386/ncr3000.mh (XDEPFILES): Delete.
3395 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
3396 * config/i386/i386sco.mh (XDEPFILES): Delete.
3397 * config/i386/i386v.mh (XDEPFILES): Delete.
3398 * config/i386/nbsd.mh (XDEPFILES): Delete.
3399 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
3400 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
3401 * config/i386/symmetry.mh (XDEPFILES): Delete.
3402 * config/i386/obsd.mh (XDEPFILES): Delete.
3403 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
3404 * config/ia64/linux.mh (XDEPFILES): Delete.
3405 * config/ia64/aix.mh (XDEPFILES): Delete.
3406 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
3407 * config/m68k/dpx2.mh (XDEPFILES): Delete.
3408 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
3409 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
3410 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
3411 * config/m68k/linux.mh (XDEPFILES): Delete.
3412 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
3413 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
3414 * config/m68k/nbsd.mh (XDEPFILES): Delete.
3415 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
3416 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
3417 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
3418 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
3419 * config/m88k/delta88.mh (XDEPFILES): Delete.
3420 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
3421 * config/m88k/m88k.mh (XDEPFILES): Delete.
3422 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
3423 * config/mips/linux.mh (XDEPFILES): Delete.
3424 * config/mips/irix6.mh (XDEPFILES): Delete.
3425 * config/mips/irix5.mh (XDEPFILES): Delete.
3426 * config/mips/irix4.mh (XDEPFILES): Delete.
3427 * config/mips/irix3.mh (XDEPFILES): Delete.
3428 * config/mips/decstation.mh (XDEPFILES): Delete.
3429 * config/mips/mipsm3.mh (XDEPFILES): Delete.
3430 (NATDEPFILES): Move core-aout.o to here.
3431 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
3432 * config/pa/hpux1020.mh (XDEPFILES): Delete.
3433 * config/pa/hppabsd.mh (XDEPFILES): Delete.
3434 * config/pa/hppahpux.mh (XDEPFILES): Delete.
3435 * config/pa/hpux11w.mh (XDEPFILES): Delete.
3436 * config/pa/hppaosf.mh (XDEPFILES): Delete.
3437 * config/pa/hpux11.mh (XDEPFILES): Delete.
3438 * config/powerpc/aix.mh (XDEPFILES): Delete.
3439 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
3440 * config/powerpc/linux.mh (XDEPFILES): Delete.
3441 * config/romp/rtbsd.mh: Rename XDEPFILES.
3442 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
3443 * config/rs6000/aix4.mh (XDEPFILES): Delete.
3444 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
3445 * config/s390/s390.mh (XDEPFILES): Delete.
3446 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
3447 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
3448 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
3449 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
3450 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
3451 * config/sparc/nbsd.mh (XDEPFILES): Delete.
3452 * config/sparc/linux.mh (XDEPFILES): Delete.
3453 * config/vax/vaxult.mh (XDEPFILES): Delete.
3454 * config/vax/vaxult2.mh (XDEPFILES): Delete.
3455 * Makefile.in (DEPFILES): Remove XDEPFILES.
3456
375fc983
AC
34572002-01-17 Andrew Cagney <ac131313@redhat.com>
3458
3459 * utils.c (internal_verror): Fix comments, default is yes not no.
3460 Update queries to match. Default to quit and dump core.
3461
8926118c
AC
34622002-01-17 Andrew Cagney <ac131313@redhat.com>
3463
3464 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
3465 copyright.
3466 * defs.h, event-top.c, gdbcmd.h: Ditto.
3467 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
3468 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
3469 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
3470 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
3471 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
3472 * mi/mi-main.c:Ditto.
3473
3474 * stack.c, symfile.c: Update copyright.
3475
45b7b345
DJ
34762002-01-17 Daniel Jacobowitz <drow@mvista.com>
3477
db728ff7
DJ
3478 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
3479 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
3480 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
3481 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
45b7b345 3482
db728ff7
DJ
34832002-01-17 Daniel Jacobowitz <drow@mvista.com>
3484
3485 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
3486 * gdbserver/low-lynx.c (myattach): Likewise.
3487 * gdbserver/low-nbsd.c (myattach): Likewise.
3488 * gdbserver/low-sim.c (myattach): Likewise.
3489 * gdbserver/low-sparc.c (myattach): Likewise.
3490 * gdbserver/low-sun3.c (myattach): Likewise.
3491
3492 * gdbserver/low-linux.c (myattach): New function.
45b7b345 3493
db728ff7 3494 * gdbserver/server.c (attach_inferior): New function.
45b7b345
DJ
3495 (main): Handle "--attach".
3496
8de3c354
AC
34972002-01-16 Andrew Cagney <ac131313@redhat.com>
3498
3499 * MAINTAINERS (language support): Daniel Jacobwitz is C++
3500 maintainer.
3501
b0129042
DJ
35022002-01-15 Daniel Jacobowitz <drow@mvista.com>
3503
3504 * c-typeprint.c (is_type_conversion_operator): Add additional
3505 check for non-conversion operators.
3506
ba8679fb 35072002-01-15 Michael Snyder <msnyder@redhat.com>
2bf543a6
MS
3508
3509 * linux-proc.c: Add "info proc" command, a la procfs.c.
3510 (read_mapping): New function, abstract and re-use code.
3511 (linux_find_memory_regions): Use new func read_mapping.
3512 (linux_info_proc_cmd): New function, implement "info proc".
3513 (_initialize_linux_proc): Add new command "info proc".
3514
e4f9b4d5
MS
35152002-01-15 Michael Snyder <msnyder@redhat.com>
3516
3517 * symfile.c (generic_load): Use bfd_map_over_sections method
3518 instead of manipulating bfd structure members directly.
3519 (add_section_size_callback): New function, bfd sections callback
3520 used by generic_load.
3521 (load_sections_callback): New function, bfd sections callback
3522 used by generic_load.
3523
08cf96df
EZ
35242002-01-15 Elena Zannoni <ezannoni@redhat.com>
3525
abf22e64 3526 [Based on work by Jim Blandy]
08cf96df
EZ
3527 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
3528 (builtin_type_vec128): Export.
3529 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
3530 types.
3531 (builtin_type_vec128): New builtin type for 128 bit vector
3532 registers.
3533 (build_gdbtypes): Initialize builtin_type_v16qi and
3534 builtin_type_v8hi. Create the vec128 register builtin type
3535 structure.
3536 (build_builtin_type_vec128): New function.
abf22e64 3537 (_initialize_gdbtypes): Register builtin_type_v16qi and
08cf96df
EZ
3538 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
3539 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
3540 AltiVec register to new builtin type.
3541
d7242108
DJ
35422001-01-15 Daniel Jacobowitz <drow@mvista.com>
3543
3544 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
3545 to make_cv_type.
3546
4ee3352d
AC
35472002-01-14 Andrew Cagney <ac131313@redhat.com>
3548
3549 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
3550 CLEAN_UP_REGISTER_VALUE.
3551 * regcache.c (supply_register): Update only call.
3552
f015b2e7
AC
35532002-01-14 Andrew Cagney <ac131313@redhat.com>
3554
3555 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
3556 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
3557 a29k-*-vxworks* targets as obsolete.
3558
356ae49d
MS
35592002-01-14 Michael Snyder <msnyder@redhat.com>
3560
3561 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
3562 until we can resolve portability issues.
3563 * gregset.h: Remove references to fpxregs.
3564 * gcore.c (gcore_command): Initialize note_sec to NULL.
3565
ade8f45e
AC
35662002-01-13 Andrew Cagney <ac131313@redhat.com>
3567
3568 * signals.c (target_signal_to_name): Rewrite. Only use
3569 signals[].name when in bounds and non-NULL.
abf22e64 3570
89c49e7a
AC
35712002-01-13 Andrew Cagney <ac131313@redhat.com>
3572
3573 From Petr Ledvina <ledvinap@kae.zcu.cz>:
3574 * signals.c (target_signal_to_name): Verify that SIG is within the
3575 bounds of the signals array.
3576
4daa9f9f
AC
35772002-01-13 Andrew Cagney <ac131313@redhat.com>
3578
3579 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
3580
ba4bbdcb
KS
35812002-01-13 Keith Seitz <keiths@redhat.com>
3582
3583 * stack.c (print_frame_info_base): Print the frame's pc
3584 only if when print_frame_info_listing_hook is not defined.
3585
575bbeb6
KS
35862002-01-13 Keith Seitz <keiths@redhat.com>
3587
3588 * varobj.c (varobj_set_value): Make sure that there were no
3589 errors evaluating the object before attempting to set its
3590 value.
3591 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
3592 so this offset adjustment is no longer necessary.
3593 (create_child): Don't set the error flag if the child is
3594 a CPLUS_FAKE_CHILD.
3595 (value_of_child): If value_fetch_lazy fails, return NULL
3596 so that callers will be notified that an error occurred.
3597 (c_value_of_variable): Delay check of variable's validity
3598 until later. We actually want all structs and unions to have
3599 the value "{...}".
3600 Do not return "???" for variables which could not be evaluated.
3601 This error condition must be returned to the caller so that it
3602 can get the error condition from gdb.
3603 (cplus_name_of_child): Adjust index for vptr before figuring
3604 out the name of the child.
3605 (cplus_value_of_child): If a child's (real) parent is not valid,
3606 don't even bother trying to give a value for it. Just return
3607 an error. Change all instances in this function.
3608 (cplus_type_of_child): If our parent is one of the "fake"
3609 parents, we need to get at the type of the real parent, and
3610 derive the child's true type using this information.
3611
b76898ab
AC
36122002-01-13 Andrew Cagney <ac131313@redhat.com>
3613
3614 From 2002-01-09 John Marshall <johnm@falch.net>:
3615 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
3616 sources.redhat.com, and tweak some related URLs which had
3617 suffered from linkrot.
3618
b6649e88
AC
36192002-01-13 Andrew Cagney <ac131313@redhat.com>
3620
3621 From Jeff law:
3622 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
3623 structures passed in registers.
3624
82cc5033
EZ
36252002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
3626
3627 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
3628 white space which prevented compilation. Reported by DSK
3629 <dsk@student.unsw.edu.au>.
3630
ba5f2f8a
MS
36312002-01-11 Michael Snyder <msnyder@redhat.com>
3632
fbd35540
MS
3633 * symfile.c (build_section_addr_info_from_section_tab):
3634 Use bfd access method instead of manipulating bfd directly.
3635 (syms_from_objfile): Ditto.
3636 (simple_overlay_update_1): Ditto.
3637 (simple_overlay_update): Ditto.
3638 (generic_load): Ditto.
3639 (overlay_unmapped_address): FIXME comment, bfd access methods.
3640 (sections_overlap): FIXME comment, bfd access methods.
3641 (pc_in_mapped_range): FIXME comment, bfd access methods.
3642 (pc_in_unmapped_range): FIXME comment, bfd access methods.
3643 (section_is_mapped): FIXME comment, bfd access methods.
3644 (section_is_overlay): FIXME comment, bfd access methods.
3645
ba5f2f8a
MS
3646 * symfile.c (generic_load): Whitespace and long line cleanups.
3647 Remove duplicate variable, change several local variables to
3648 more appropriate data types.
3649 (print_transfer_performance): Use %lu instead of %ld for ulongs.
3650
17df2af6
AC
36512002-01-12 Andrew Cagney <ac131313@redhat.com>
3652
3653 From Peter Schauer:
3654 * language.c (longest_local_hex_string_custom): Use phex_nz to
3655 convert NUM to a hex string.
3656
ec920329
EZ
36572002-01-12 Elena Zannoni <ezannoni@redhat.com>
3658
3659 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
3660 the function.
538a76d6 3661 Update Copyright year.
ec920329 3662
3abd2e01
AC
36632002-01-12 Andrew Cagney <ac131313@redhat.com>
3664
3665 * language.c (longest_raw_hex_string): Delete unused function.
3666
b21b22e0
PS
36672002-01-11 Petr Sorfa <petrs@caldera.com>
3668
3669 * MAINTAINERS (write-after-approval): Add myself.
3670 * dwarf2read.c (read_tag_string_type): Handling of
3671 DW_AT_byte_size.
3672 (read_tag_string_type): FORTRAN fix to prevent propagation of
3673 first string size.
3674 (set_cu_language): Handling of DW_LANG_Fortran95
3675
747fe712
RE
36762002-01-11 Richard Earnshaw <rearnsha@arm.com>
3677
3678 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
3679 GETPID(inferior_ptid).
3680 (store_inferior_registers): Likewise.
3681
f1bea926
JM
36822002-01-10 Jason Merrill <jason@redhat.com>
3683
3684 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
3685 Fix DW_OP_minus.
3686
ae940673
AC
36872002-01-10 Andrew Cagney <ac131313@redhat.com>
3688
3689 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
3690 and bfd/elf32-sh-nbsd.c.
3691
00546b04
MS
36922002-01-10 Michael Snyder <msnyder@redhat.com>
3693
352ed7b4
MS
3694 * NEWS: Mention --pid and corefile/proc-id behavior change.
3695
c18be923
MS
3696 * Makefile.in: Add rules for gcore.o and linux-proc.o.
3697 * gcore.c: Include cli/cli-decode.h instead of command.h.
3698
00546b04
MS
3699 * main.c (captured_main): Add new command line option "--pid".
3700 If the second command line argument (following the symbol-file)
3701 begins with a digit, try to attach to it before trying to open
3702 it as a corefile.
3703 (print_gdb_help): Document the "--pid" argument.
3704
db60ec62
EZ
37052002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
3706
3707 * completer.c (command_completer): New function.
3708
3709 * completer.h <command_completer>: Add prototype.
3710
3711 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
3712 completer for the "help" command.
3713
39c22d1a
JM
37142002-01-09 Jason Merrill <jason@redhat.com>
3715
3716 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
3717
c564377f
MS
37182002-01-09 Michael Snyder <msnyder@redhat.com>
3719
975aec09
MS
3720 * i386-linux-nat.c (fill_fpxregset): Make global.
3721 (store_fpxregset): Ditto.
3722
db4a10fa
MS
3723 * gregset.h (gdb_fpxregset_t): Define.
3724 (supply_fpxregset): Prototype.
3725 (fill_fpxregset): Prototype.
3726
c564377f
MS
3727 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
3728
c3d45d70
RE
37292002-01-09 Richard Earnshaw <rearnsha@arm.com>
3730
3731 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
3732 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
3733 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
3734
fcc87af1
AC
37352002-01-09 Andrew Cagney <ac131313@redhat.com>
3736
3737 * MAINTAINERS: Update target maintainer rules so that any
3738 Maintainer can approve a tested patch for a maintenance-only
3739 target.
3740
dd96c05b
RE
37412002-01-09 Richard Earnshaw <rearnsha@arm.com>
3742
d4297db9 3743 * MAINTAINERS (write-after-approval): Add myself.
dd96c05b 3744
d4297db9 3745 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
dd96c05b
RE
3746 IN_SIGTRAMP.
3747
145fdc6e
MS
37482002-01-08 Michael Snyder <msnyder@redhat.com>
3749
3750 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
3751 real name of the executable, rather than the /proc name.
3752
be4d1333
MS
37532002-01-03 Michael Snyder <msnyder@redhat.com>
3754
3755 Implement a "generate-core-file" command in gdb, save target state.
3756 * gcore.c: New file. Implement new command 'generate-core-file'.
3757 Save a corefile image of the current state of the inferior.
3758 * linux-proc.c: Add linux-specific code for saving corefiles.
3759 * target.h (struct target_ops): Add new target vectors for saving
3760 corefiles; to_find_memory_regions and to_make_corefile_notes.
3761 (target_find_memory_regions): New macro.
3762 (target_make_corefile_notes): New macro.
3763 * target.c (update_current_target): Inherit new target methods.
3764 (dummy_find_memory_regions): New place-holder method.
3765 (dummy_make_corefile_notes): New place-holder method.
3766 (init_dummy_target): Initialize new dummy target vectors.
3767 * exec.c (exec_set_find_memory_regions): New function.
3768 Allow the exec_ops vector for memory regions to be taken over.
3769 (exec_make_note_section): New function, target vector method.
3770 * defs.h (exec_set_find_memory_regions): Export prototype.
3771 * procfs.c (proc_find_memory_regions): New function, corefile method.
3772 (procfs_make_note_section): New function, corefile method.
3773 (init_procfs_ops): Set new target vector pointers.
3774 (find_memory_regions_callback): New function.
3775 (procfs_do_thread_registers): New function.
3776 (procfs_corefile_thread_callback): New function.
3777 * sol-thread.c (sol_find_memory_regions): New function.
3778 (sol_make_note_section): New function.
3779 (init_sol_thread_ops): Initialize new target vectors.
3780 * inftarg.c (inftarg_set_find_memory_regions): New function.
3781 Allow to_find_memory_regions vector to be taken over.
3782 (inftarg_set_make_corefile_notes): New function.
3783 Allow to_make_corefile_notes vector to be taken over.
3784 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
3785 interface layer if not target_has_execution (may be a corefile).
3786 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
3787 * config/sparc/sun4sol2.mh: Ditto.
3788 * config/alpha/alpha-linux.mh: Ditto.
3789 * config/arm/linux.mh: Ditto.
3790 * config/i386/x86-64linux.mh: Ditto.
3791 * config/ia64/linux.mh: Ditto.
3792 * config/m68k/linux.mh: Ditto.
3793 * config/mips/linux.mh: Ditto.
3794 * config/powerpc/linux.mh: Ditto.
3795 * config/sparc/linux.mh: Ditto.
3796
c6b92abd
MS
37972002-01-07 Michael Snyder <msnyder@redhat.com>
3798
3799 * arm-linux-nat.c: Remove references to regcache.c internal data
3800 (registers[] and register_valid[]).
3801
4b09dc8c
MS
38022002-01-07 Michael Snyder <msnyder@redhat.com>
3803
abf22e64
AJ
3804 * linux-proc.c: New file. Implement child_pid_to_exec_file,
3805 so that attaching to a pid will automatically read the process's
4b09dc8c
MS
3806 symbol file and shlibs.
3807 * Makefile.in: Add rule for linux-proc.o.
3808 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
3809 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
3810 * config/arm/linux.mh: Ditto.
3811 * config/i386/linux.mh: Ditto.
3812 * config/i386/x86-64linux.mh: Ditto.
3813 * config/ia64/linux.mh: Ditto.
3814 * config/m68k/linux.mh: Ditto.
3815 * config/mips/linux.mh: Ditto.
3816 * config/powerpc/linux.mh: Ditto.
3817 * config/sparc/linux.mh: Ditto.
3818
c25b74ac
PM
38192002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
3820
3821 * win32-nat.c: Add i386-tdep.h dependency.
3822
94cd915f
MS
38232002-01-07 Michael Snyder <msnyder@redhat.com>
3824
c7cccb76
MS
3825 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
3826 instead of bfd_get_arch_size. Don't bail out just because
3827 there's no exec_bfd.
abf22e64 3828
34c0bd93
MS
3829 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
3830 * p-valprint.c (pascal_object_print_value): Ditto.
3831 * somread.c (som_symtab_read): Ditto.
3832 * symfile.c (simple_free_overlay_region_table): Ditto.
3833 * valops.c (value_assign): Ditto.
3834
21c1c920
MS
3835 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
3836 use tilde_expand and strerror for opening save-tracepoints file.
3837
5bbd998e
MS
3838 * thread-db.c (thread_db_new_objfile): Indendation fix.
3839
94cd915f
MS
3840 * infptrace.c (GDB_MAX_ALLOCA): New define.
3841 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
abf22e64 3842 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
94cd915f
MS
3843 can be overridden with whatever value is appropriate to the host).
3844 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
3845 alloca to allocate potentially large buffer.
3846 * rs6000-nat.c (child_xfer_memory): Ditto.
3847 * symm-nat.c (child_xfer_memory): Ditto.
3848 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
3849
494e8a93
JSC
38502002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
3851
3852 From Nick Clifton <nickc@redhat.com>
3853 * d10v-tdep.c: Set STACK_START to 0x200bffe.
3854
d0e1d48e
MS
38552002-01-07 Michael Snyder <msnyder@redhat.com>
3856
abf22e64 3857 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
d0e1d48e
MS
3858 Don't use exec_bfd if it's NULL.
3859
290b2c7a
MK
38602002-01-06 Mark Kettenis <kettenis@gnu.org>
3861
abf22e64 3862 * valops.c (value_arg_coerce): Fix formatting.
290b2c7a 3863
aef21287
AC
38642002-01-06 Andrew Cagney <ac131313@redhat.com>
3865
3866 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
3867 * gnu-nat.c: Ditto.
3868
30efa627
AC
38692002-01-06 Andrew Cagney <ac131313@redhat.com>
3870
3871 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
3872 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
3873 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
3874 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
3875 z8k-coff have not been multi-arched. Update z8k-coff build
3876 status.
3877
9b4ff276
AC
38782002-01-06 Andrew Cagney <ac131313@redhat.com>
3879
3880 * MAINTAINERS: Mark a29k target as obsolete.
3881 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
3882 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
3883 comments.
3884 * NEWS: Note that a29k targets are obsolete.
3885 * a29k-tdep.c: Mark as obsolete.
3886 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
3887 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
3888 a29k-*-vxworks* targets as obsolete.
3889 * remote-adapt.c: Obsolete.
3890 * remote-eb.c: Obsolete.
3891 * remote-mm.c: Obsolete.
3892 * remote-udi.c: Obsolete.
3893 * config/a29k/a29k-udi.mt: Obsolete.
3894 * config/a29k/a29k.mt: Obsolete.
3895 * config/a29k/tm-a29k.h: Obsolete.
3896 * config/a29k/tm-vx29k.h: Obsolete.
3897 * config/a29k/vx29k.mt: Obsolete.
3898
a9011d31
AC
38992002-01-05 Andrew Cagney <ac131313@redhat.com>
3900
3901 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
3902 with BFD_ENDIAN_BIG.
3903
9299404e
AC
39042002-01-05 Andrew Cagney <ac131313@redhat.com>
3905
3906 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
3907 * configure, config.in: Re-generate.
3908 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
3909 * defs.h: Do not include <endian.h>.
3910
7e89e357
JT
39112002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
3912
3913 * acconfig.h (HAVE_PT_GETXMMREGS): New.
3914 * config.in: Regenerate.
3915 * configure.in: Update copyright years.
3916 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
3917 * configure: Regenerate.
3918 * i386bsd-nat.c: Update copyright years.
3919 (fill_gregset): Use regcache_collect.
3920 (fetch_inferior_registers): Only fetch integer registers
3921 if requested to do so. Add support for XMM registers
3922 using PT_GETXMMREGS.
3923 (store_inferior_registers): Only store integer registers
3924 if requested to do so. Add support for XMM registers
3925 using PT_SETXMMREGS.
3926 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
3927 (store_inferior_registers): Remove.
3928 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
3929 (fetch_elfcore_registers): New function.
3930 (i386nbsd_elfcore_fns): New.
3931 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
3932 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
3933 i386bsd-nat.o.
3934 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
3935 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
3936 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
3937 * config/i386/tm-nbsd.h: Update copyright years.
3938 (HAVE_SSE_REGS): Define.
3939 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
3940 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
3941 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
3942 (SIGCONTEXT_PC_OFFSET): Remove.
3943 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
3944
a752853e
AC
39452002-01-05 Andrew Cagney <ac131313@redhat.com>
3946
3947 * configure.tgt: Remove powerpc-*-macos* target.
3948 * config/m68k/xm-mpw.h: Delete file.
3949 * config/xm-mpw.h: Delete file.
3950 * ser-mac.c: Delete file.
3951 * mpw-make.sed: Delete file.
3952 * mpw-config.in: Delete file.
3953 * mac-xdep.c: Delete file.
3954 * mac-gdb.r: Delete file.
3955 * mac-defs.h: Delete file.
3956 * mac-nat.c: Delete file.
3957 * config/powerpc/macos.mh: Delete file.
3958 * config/powerpc/macos.mt: Delete file.
3959 * config/powerpc/nm-macos.h: Delete file.
3960 * config/powerpc/tm-macos.h: Delete file.
3961 * source.c (openp, open_source_file): Remove obsolete code.
3962 * top.c (gdb_readline): Ditto.
3963 * utils.c (query): Ditto.
3964 * event-top.c (display_gdb_prompt): Ditto.
3965 * Makefile.in (ser-mac.o): Delete obsolete target.
3966 * NEWS: Update.
3967
d7449b42
AC
39682002-01-04 Andrew Cagney <ac131313@redhat.com>
3969
3970 * defs.h (BIG_ENDIAN): Delete macro definition.
3971 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
3972 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
3973 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
3974 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
3975 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
3976 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
3977 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
3978 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
3979 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
3980 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
3981 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
3982 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
3983 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
3984 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
3985 * gdbarch.c: Re-generate.
3986
356374e8
DJ
39872002-01-04 Daniel Jacobowitz <drow@mvista.com>
3988
3989 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
3990 for core files.
3991
a2b8f8f8
JT
39922002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
3993
3994 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
3995
12466af9
AC
39962002-01-04 Andrew Cagney <ac131313@redhat.com>
3997
3998 * value.h (value_ptr): Delete typedef.
3999
3549ab40
JT
40002002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
4001
4002 * i386nbsd-nat.c: Update copyright years.
4003 Include i386-tdep.h.
4004
fedbd091
EZ
40052002-01-04 Elena Zannoni <ezannoni@redhat.com>
4006
4007 * stabsread.c: Update copyright years.
4008
4009 From Debashis Mahata <debashis.mahata@wipro.com>:
4010 (read_struct_fields): Deal with Sun C compiler erroneous stab
4011 output for structs and unions.
fec8b34f 4012 Fix PR gdb/269.
fedbd091 4013
eb43544b
DJ
40142002-01-04 Daniel Jacobowitz <drow@mvista.com>
4015
4016 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
4017 prototype.
4018
1514d34e
DJ
40192002-01-04 Daniel Jacobowitz <drow@mvista.com>
4020
4021 * cp-abi.c: Fix whitespace.
4022 (baseclass_offset): New wrapper function.
4023 * cp-abi.h (baseclass_offset): Add prototype.
4024 (struct cp_abi_ops): Add baseclass_offset pointer.
4025
4026 * valops.c (vb_match): Move to...
4027 * gnu-v2-abi.c (vb_match): here.
4028 * valops.c (baseclass_offset): Move to...
4029 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
4030
4031 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
4032
4033 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
4034 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
4035 * hpacc-abi.c (init_hpacc_ops): Likewise.
4036
7f8c9282
DJ
40372002-01-04 Daniel Jacobowitz <drow@mvista.com>
4038
4039 * valops.c (find_overload_match): Accept obj as a
4040 reference parameter. Update it before returning.
4041 * value.h (find_overload_match): Update prototype.
4042 * eval.c (evaluate_subexp_standard): Pass object to
4043 find_overload_match by reference.
4044
f23631e4
AC
40452002-01-03 Andrew Cagney <ac131313@redhat.com>
4046
4047 * valarith.c: Replace value_ptr with struct value pointer. Remove
4048 register attribute from value declarations.
4049 * valops.c: Ditto.
4050 * value.h: Ditto.
4051 * scm-lang.c (scm_lookup_name): Ditto.
4052
79e10fab 40532002-01-03 Michael Snyder <msnyder@redhat.com>
abf22e64 4054
79e10fab
AC
4055 Abstract the functionality of iterating over mapped memory
4056 regions into a general purpose iterator function.
abf22e64 4057 * procfs.c (iterate_over_mappings): New function, general purpose
79e10fab
AC
4058 iterator for memory sections.
4059 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
4060 (solib_mappings_callback): New function, callback for above.
4061 (info_proc_mappings): Reimpliment using iterate_over_mappings.
4062 (info_mappings_callback): New function, callback for above.
4063
4064 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
4065
c5ad026a
MK
40662002-01-01 Mark Kettenis <kettenis@gnu.org>
4067
d2a7c97a
MK
4068 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
4069 * i386-tdep.c: Include "elf-bfd.h".
4070 (process_note_abi_tag_sections): New function.
4071 (i386_gdbarch_init): Add code to recognize various OS/ABI
4072 combinations.
4073
c5ad026a
MK
4074 * maint.c (_initialize_maint_cmds): Add missing \ in
4075 string-literal.
4076
a1a5b71e 4077For older changes see ChangeLog-2001
c906108c
SS
4078\f
4079Local Variables:
4080mode: change-log
4081left-margin: 8
4082fill-column: 74
4083version-control: never
4084End:
This page took 0.440214 seconds and 4 git commands to generate.