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