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