]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
* opncls.c (bfd_make_readable): Call bfd_section_list_clear.
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
5868c862
JT
12002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
2
3 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
4 * alpha-tdep.c (alpha_sigcontext_addr): New function.
5 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
6 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
7 * alpha-linux-tdep.c: Include frame.h.
8 (alpha_linux_sigcontext_addr): New function.
9 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
10 alpha_linux_sigcontext_addr.
11 * alpha-osf1-tdep.c: Include gdbcore.h.
12 (alpha_osf1_sigcontext_addr): New function.
13 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
14 alpha_osf1_sigcontext_addr.
15 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
16 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
17
bfb01f37
AC
182002-04-26 Andrew Cagney <ac131313@redhat.com>
19
20 * stack.c (selected_frame_level):
21 (select_frame): Do not set selected_frame_level.
22 * frame.h (selected_frame_level): Delete declaration.
23
15813d3f
AC
242002-04-26 Andrew Cagney <ac131313@redhat.com>
25
26 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
27 convert_from_func_ptr-addr when AIX / PowerOpen.
28
6096c27a
AC
292002-04-25 Andrew Cagney <ac131313@redhat.com>
30
31 * valops.c (hand_function_call): Call
32 generic_save_call_dummy_addr.
33 * frame.h (generic_save_call_dummy_addr): Declare.
34 * blockframe.c (struct dummy_frame): Add fields call_lo and
35 call_hi.
36 (generic_find_dummy_frame): Check for PC in range call_lo to
37 call_hi instead of entry_point_address.
38 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
39 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
40 (generic_save_call_dummy_addr): New function.
41
f510d44e
DM
422002-04-24 David S. Miller <davem@redhat.com>
43
44 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
45 sparc_skip_prologue.
46 (sparc_skip_prologue): Kill frameless_p arg, and use line number
47 information to find prologue when possible.
48 (sparc_prologue_frameless_p): Call examine_prologue directly.
49 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
50 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
51 second argument.
52 (SKIP_PROLOGUE): Likewise.
53
15d72a92
JT
542002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
55
56 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
57 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
58 indicate that the condition it was testing is always true.
59 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
60 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
61 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
62
accc6d1f
JT
632002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
64
65 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
66 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
67 tdep->jb_pc and tdep->jb_elt_size.
68 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
69 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
70 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
71 * alpha-nat.c (get_longjmp_target): Remove.
72 (JB_ELEMENT_SIZE): Ditto.
73 (JB_PC): Ditto.
74 * alpha-tdep.c (alpha_get_longjmp_target): New function.
75 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
76 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
77 to alpha_get_longjmp_target.
78 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
79 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
80 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
81
1bfdc549
AC
822002-04-25 Andrew Cagney <ac131313@redhat.com>
83
84 * README: Update to GDB 5.2.
85
1bd316f0
AC
862002-04-25 Andrew Cagney <ac131313@redhat.com>
87
88 * gdbarch.sh (LC_ALL): Set to `c'.
89
2e5ff58c
TR
902002-04-25 Theodore A. Roth <troth@verinet.com>
91
92 * avr-tdep.c: Ran through gdb_indent.sh.
93
e33ce519
TR
942002-04-25 Theodore A. Roth <troth@verinet.com>
95
96 * MAINTAINERS: Add myself as AVR maintainer.
97 * NEWS: Note new target avr.
98
8818c391
TR
992002-04-25 Theodore A. Roth <troth@verinet.com>
100
101 * Makefile.in: Add support for AVR target.
102 * configure.tgt: Add support for AVR target.
103 * avr-tdep.c: New file
104 * config/avr/avr.mt: New file.
105
79509c2d
TR
1062002-04-25 Theodore A. Roth <troth@verinet.com>
107
108 * MAINTAINERS: Add myself to write-after-approval.
109
dac8068e
PM
1102002-04-24 Pierre Muller <ics.u-strasbg.fr>
111
112 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
113 with fprintf_unfiltered (gdb_stderr,....
114
25bf3106
PM
1152002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
116
117 Fix PR gdb/508.
118 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
119
24467a86
PM
1202002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
121
122 * p-exp.y: Also use new prev_lexptr variable
123 to improve error reporting. Based on Michael Snyder
124 2002-04-24 dated patch to c-exp.y.
125
95b80706
JT
1262002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
127
128 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
129 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
130 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
131 to 0.
132 * config/alpha/tm-alpha.h: Remove forward decls of struct type
133 and struct value.
134 (FUNCTION_START_OFFSET): Remove.
135 (BREAKPOINT): Ditto.
136
e90cc612
JT
1372002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
138
139 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
140 * NEWS: Ditto.
141
6c72f9f9
JT
1422002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
143
144 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
145 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
146 alpha_linux_pc_in_sigtramp.
147 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
148 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
149 alpha_osf1_pc_in_sigtramp.
150 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
151 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
152 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
153 alphafbsd_pc_in_sigtramp.
154 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
155 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
156 alphanbsd_pc_in_sigtramp.
157 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
158 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
159
5e4f3379
JT
1602002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
161
162 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
163
da8ca43d
JT
1642002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
165
166 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
167 alphanbsd-tdep.c.
168 (alphanbsd-nat.o): New dependency list.
169 (alphanbsd-tdep.o): Ditto.
170 * NEWS: Note new native NetBSD/alpha configuration.
171 * alphanbsd-nat.c: New file.
172 * alphanbsd-tdep.c: Ditto.
173 * configure.host (alpha*-*-netbsd*): New host.
174 * configure.tgt (alpha*-*-netbsd*): New target.
175 * config/alpha/nbsd.mh: New file.
176 * config/alpha/nbsd.mt: Ditto.
177 * config/alpha/nm-nbsd.h: Ditto.
178 * config/alpha/tm-nbsd.h: Ditto.
179
36a6271d
JT
1802002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
181
182 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
183 (alpha-osf1-tdep.o): New dependency list.
184 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
185 and skip_sigtramp_frame members.
186 * alpha-linux-tdep.c: Include gdbcore.h.
187 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
188 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
189 * alpha-osf1-tdep.c: New file.
190 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
191 alpha-osf1-dep.c.
192 (alpha_frame_past_sigtramp_frame): New function.
193 (alpha_dynamic_sigtramp_offset): Ditto.
194 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
195 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
196 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
197 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
198 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
199 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
200 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
201 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
202 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
203 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
204 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
205 to find_solib_trampoline_target.
206 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
207 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
208 (SKIP_TRAMPOLINE_CODE): Remove.
209 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
210 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
211 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
212 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
213 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
214 (PROC_SIGTRAMP_MAGIC): Ditto.
215 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
216 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
217 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
218 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
219 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
220
2f4bc57b
JT
2212002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
222
223 * NEWS: Note that Alpha targets are now multi-arch.
224
665132f9
MS
2252002-04-24 Michael Snyder <msnyder@redhat.com>
226
227 * parser-defs.h (prev_lexptr): New external variable.
228 * parse.c (parse_exp_1): Set prev_lexptr to null before
229 calling the language-specific parser.
230 * c-exp.y (yylex): Set prev_lexptr to start of current token.
231 (yyerror): Use prev_lexptr in error reporting.
232
32872fa7
DJ
2332002-04-24 Daniel Jacobowitz <drow@mvista.com>
234
235 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
236 * gregset.h: If FILL_FPXREGSET is defined, provide
237 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
238 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
239 is defined, call fill_fpxregset.
240
57e76fac
MS
2412002-04-24 Roland McGrath <roland@frob.com>
242
243 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
244 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
245 (supply_gregset, supply_fpregset): New functions.
246
247 * gnu-nat.c (gnu_find_memory_regions): New function.
248 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
249 (gnu_xfer_memory): Add a cast.
250
f43845b3
MS
2512002-04-24 Michael Snyder <msnyder@redhat.com>
252
253 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
254 loop. Add handling for "str lr, [sp, #-4]!" and for saves
255 of argument regs ("str r(0123), [r11, #-nn"]).
256 (arm_skip_prologue): Better handling for frameless functions.
257 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
258 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
259
a0abec03
AC
260Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
261
262 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
263 NUM_PSEUDO_REGS can be used.
264
d7bd68ca
AC
2652002-04-24 Andrew Cagney <ac131313@redhat.com>
266
267 * arch-utils.h: Update copyright.
268
269 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
270 * gdbarch.h, gdbarch.c: Re-generate.
271
272 * inferior.h (IN_SIGTRAMP): Delete definition.
273 * arch-utils.c (legacy_pc_in_sigtramp): New function.
274 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
275
276 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
277 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
278 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
279 (find_proc_framesize): Ditto.
280 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
281 (alpha_init_extra_frame_info): Ditto.
282 * infrun.c (handle_inferior_event): Ditto.
283 (handle_inferior_event): Ditto.
284 (check_sigtramp2): Ditto.
285 * blockframe.c (create_new_frame): Ditto.
286 (get_prev_frame): Ditto.
287 * ppc-linux-tdep.c: Update comments.
288 * i386-linux-tdep.c: Update comments.
289 * breakpoint.c (bpstat_what): Update comment.
290
d06f167a
ML
2912002-04-24 Michal Ludvig <mludvig@suse.cz>
292
293 * gdbserver/linux-low.c (regsets_fetch_inferior_registers),
294 (regsets_store_inferior_registers): Removed cast to int from
295 ptrace() calls.
296 * gdbserver/regcache.h: Added declaration of struct inferior_info.
297
4867e41e
DM
2982002-04-24 David S. Miller <davem@redhat.com>
299
21d83aa5
DM
300 * i960-tdep.c (register_in_window_p): New function.
301 (i960_find_saved_register): Use it instead of
302 REGISTER_IN_WINDOW_P.
303 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
304
4867e41e
DM
305 * symtab.h (find_stab_function_addr): Kill extern.
306 * minsyms.c (find_stab_function_addr): Remove from here...
307 * dbxread.c: ... to here, and mark it static.
308
69cdf6a2
DM
3092002-04-20 David S. Miller <davem@redhat.com>
310
311 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
312 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
313
5a595886
DM
3142002-04-21 David S. Miller <davem@redhat.com>
315
316 * remote-vxsparc.c (vx_read_register): Fix typo, we want
317 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
318 (vx_write_register): Likewise.
319
1da1a192
JB
3202002-04-23 J. Brobecker <brobecker@gnat.com>
321
322 * source.c (is_regular_file): New function.
323 (openp): Check wether file to open is a regular file
324 to avoid opening directories.
325
baa6f10b
JT
3262002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
327
328 * findvar.c (extract_signed_integer): Cast printf argument
329 to suppress format warning.
330 (extract_unsigned_integer): Likewise.
331 * infcmd.c (registers_info): Likewise.
332 * top.c (get_prompt_1): Likewise.
333 * valops.c (value_assign): Likewise.
334 * valprint.c (print_decimal): Likewise.
335
b2c4da81
L
3362002-04-22 H.J. Lu (hjl@gnu.org)
337
338 * c-exp.y (typebase): Support
339
340 [long|long long|short] [signed|unsigned] [int|]
341
342 and
343
344 signed [long|long long|short] int
345
f267bd6a
JT
3462002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
347
348 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
349 and vax-tdep.h.
350 * vax-tdep.h: New file.
351 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
352 Make several routines static.
353 (vax_get_saved_register): New function.
354 (vax_gdbarch_init): New function.
355 (_initialize_vax_tdep): Register vax_gdbarch_init.
356 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
357 Remove macros now under the control of gdbarch.
358
da3c6d4a
MS
3592002-04-22 Michael Snyder <msnyder@redhat.com>
360
11d3b27d
MS
361 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
362 Some whitespace and coding standards tweaks.
da3c6d4a 363
a33f7558
JT
3642002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
365
366 * vax-tdep.c: Include regcache.h.
367 (vax_call_dummy_words): New.
368 (sizeof_vax_call_dummy_words): New.
369 (vax_fix_call_dummy): New function.
370 (vax_saved_pc_after_call): Ditto.
371 * config/vax/tm-vax.h: Don't include regcache.h.
372 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
373 (CALL_DUMMY): Remove.
374 (CALL_DUMMY_WORDS): Define.
375 (SIZEOF_CALL_DUMMY_WORDS): Define.
376 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
377
47a73475
MS
3782002-04-18 Michael Snyder <msnyder@redhat.com>
379
380 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
381
52efde73
JT
3822002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
383
384 * vax-tdep.c (vax_frame_chain): New function.
385 (vax_push_dummy_frame): Ditto.
386 (vax_pop_frame): Ditto.
387 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
388 (FRAMELESS_FUNCTION_INVOCATION): Use
389 generic_frameless_function_invocation_not.
390 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
391 (POP_FRAME): Use vax_pop_frame.
392
ea74468c
JT
3932002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
394
395 * vax-tdep.c (vax_store_struct_return): New function.
396 (vax_extract_return_value): Ditto.
397 (vax_store_return_value): Ditto.
398 (vax_extract_struct_value_address): Ditto.
399 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
400 vax_store_struct_return.
401 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
402 (STORE_RETURN_VALUE): Use vax_store_return_value.
403 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
404
5516aa92
JT
4052002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
406
407 * vax-tdep.c (vax_frame_saved_pc): New function.
408 (vax_frame_args_address_correct): Ditto.
409 (vax_frame_args_address): Ditto.
410 (vax_frame_locals_address): Ditto.
411 (vax_frame_num_args): Move code to be in proximity to
412 other frame-related functions.
413 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
414 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
415 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
416 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
417 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
418
36af0b35
L
4192002-04-22 H.J. Lu (hjl@gnu.org)
420
421 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
422 includedir.
423
ab62c900
JT
4242002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
425
426 * vax-tdep.c (vax_frame_init_saved_regs): New function.
427 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
428 (FRAME_INIT_SAVED_REGS): New macro.
429
7232b100
JT
4302002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
431
432 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
433
b70d2aee
JT
4342002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
435
436 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
437 where needed.
438 (fetch_osf_core_registers): Likewise.
439 (supply_gregset): Likewise.
440
a0e8a2d1
JB
4412002-04-22 J. Brobecker <brobecker@gnat.com>
442
443 * symfile.h (get_section_index): Define.
444 * symfile.c (get_section_index): New function.
445 * mdebugread.c (SC_IS_SBSS): New macro.
446 (SC_IS_BSS): Return true for the scBss storage class only, as
447 the scSBss storage class refers to the .sbss section.
448 (parse_partial_symbols): Discard the symbols which associated
449 section does not exist.
450 Make sure to use the .sbss section index for symbols which
451 storage class is scBss, rather than using the .bss section index.
452
51eb8b08
JT
4532002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
454
455 * vax-tdep.c: Update copyright years.
456 (vax_register_name): New function.
457 (vax_register_byte): Ditto.
458 (vax_register_raw_size): Ditto.
459 (vax_register_virtual_size): Ditto.
460 (vax_register_virtual_type): Ditto.
461 * config/vax/tm-vax.h: Update copyright years.
462 (REGISTER_NAMES): Remove.
463 (REGISTER_NAME): Define.
464 (REGISTER_BYTE): Use vax_register_byte.
465 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
466 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
467 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
468
6cc1c0a8
AC
4692002-04-21 Andrew Cagney <ac131313@redhat.com>
470
471 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
472 declaration
473 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
474
9319a2fe
DM
4752002-04-21 David S. Miller <davem@redhat.com>
476
477 * arch-utils.c (generic_prologue_frameless_p): Kill
478 SKIP_PROLOGUE_FRAMELESS_P code.
479 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
480 references.
481 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
482 * arc-tdep.c (arc_prologue_frameless_p): Implement.
483 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
484 references.
485 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
486 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
487 (sparc_gdbarch_init): Pass it to
488 set_gdbarch_prologue_frameless_p.
a0e8a2d1 489
e9ed6d01
JT
4902002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
491
492 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
493 (alphabsd-nat.o): New dependency list.
494
36012033
JT
4952002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
496
497 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
498 alphafbsd-tdep.c.
499 (alpha-linux-tdep.o): New dependency list.
500 (alphafbsd-tdep.o): Likewise.
501
3379287a
JT
5022002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
503
504 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
505 to here...
506 * alpha-tdep.c: ...from here.
507 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
508
4bcbd6cb
JT
5092002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
510
511 * config/alpha/tm-alpha.h: Move alpha_software_single_step
512 prototype from here...
513 * alpha-tdep.h: ...to here.
514
b31da25e
AC
5152002-04-21 Andrew Cagney <ac131313@redhat.com>
516
517 * frame.h (selected_frame_level): Document as deprecated.
518 (frame_relative_level): Declare.
519 * stack.c (frame_relative_level): New function.
520 (selected_frame_level): Document as deprecated.
521 (select_frame): Do not set the selected_frame_level.
522
523 * stack.c (frame_info, record_selected_frame): Update.
524 (frame_command, current_frame_command): Update.
525 (up_silently_base, up_command, down_silently_base): Update.
526 (down_command): Update.
527 * inflow.c (kill_command): Update.
528 * tracepoint.c (finish_tfind_command): Update.
529 * corelow.c (core_open): Update.
530 * thread.c (info_threads_command): Update.
531 (do_captured_thread_select): Update.
532 * infcmd.c (finish_command): Update.
533 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
534
9c1d6fe5
JT
5352002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
536
537 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
538
ab89facf
AC
5392002-04-21 Andrew Cagney <ac131313@redhat.com>
540
541 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
542 type const.
543
82a4efa1
JT
5442002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
545
546 * alphafbsd-tdep.c: Update copyright years. Include
547 alpha-tdep.h.
548 (alphafbsd_use_struct_convention): Make static.
549 (alphafbsd_init_abi): New function.
550 (_initialize_alphafbsd_tdep): New function.
551 * config/alpha/tm-fbsd.h: Update copyright years.
552 (USE_STRUCT_CONVENTION): Remove.
553
44dffaac
JT
5542002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
555
556 * alpha-tdep.c (alpha_abi_handler): New structure to describe
557 an Alpha ABI variant.
558 (alpha_abi_handler_list): Declare.
559 (alpha_gdbarch_register_os_abi): New function.
560 (alpha_gdbarch_init): Give registered ABI variant handlers a
561 chance to tweak the gdbarch once we have set up defaults.
562 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
563
65585be4
JT
5642002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
565
566 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
567 to standard_coerce_float_to_double.
568 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
569
d9b023cc
JT
5702002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
571
572 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
573 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
574 from gdbarch_tdep rather than a constant.
575 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
576 the default text address for all Alpha Unix ABIs.
577 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
578 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
579
dc129d82
JT
5802002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
581
582 * alpha-tdep.h: New file. Includes several Alpha target constants
583 taken from...
584 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
585 let gdbarch deal with.
586 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
587 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
588 to dependency list.
589 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
590 Alpha target register names.
591 * alphabsd-nat.c: Likewise.
592 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
593 Alpha target register names. Make serveral routines static.
594 (alpha_get_saved_register): New function.
595 (alpha_abi_names): New.
596 (process_note_abi_tag_sections): New function.
597 (get_elfosabi): New function.
598 (alpha_gdbarch_init): New function.
599 (alpha_dump_tdep): New function.
600 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
601
d49d1e0a
AC
6022002-04-21 Andrew Cagney <ac131313@redhat.com>
603
604 * frame.c (find_saved_register): Delete #ifdef
605 HAVE_REGISTER_WINDOWS code.
606 * config/sparc/tm-sparc.h: Update comments.
607 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
608
92e8c9ed
AC
6092002-04-21 Andrew Cagney <ac131313@redhat.com>
610
611 * i960-tdep.c (i960_find_saved_register): New function.
612 (i960_get_saved_register): New function.
613 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
614 (i960_get_saved_register): Declare.
615 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
616
e1925118
DM
6172002-04-20 David S. Miller <davem@redhat.com>
618
619 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
620
29673b29
AC
6212002-04-20 Andrew Cagney <ac131313@redhat.com>
622
623 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
624 instead of NUM_PSEUDO_REGS.
625
6c86dcd5
DM
6262002-04-20 David S. Miller <davem@redhat.com>
627
628 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
629 GDB_MULTI_ARCH_PARTIAL
630 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
631 define, let tm-sp64.h do it.
632
aa40ec90
JT
6332002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
634
635 * frame.c (find_saved_register): Avoid a NULL pointer
636 dereference and actually walk the frame list.
637
0f79675b
AC
6382002-04-20 Andrew Cagney <ac131313@redhat.com>
639
640 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
641 sorted in most most-recent-used order. Document.
642 * gdbarch.h, gdbarch.c: Regenerate.
643
c04a1aa8
DJ
6442002-04-20 Daniel Jacobowitz <drow@mvista.com>
645
646 * gdbserver/inferiors.c (struct inferior_info): Add regcache_data.
647 (add_inferior): Call create_register_cache.
648 (clear_inferiors): Call free_register_cache.
649 (inferior_regcache_data, set_inferior_regcache_data): New functions.
650 * gdbserver/regcache.c (struct inferior_regcache_data): New.
651 (registers): Remove.
652 (get_regcache): New function.
653 (create_register_cache, free_register_cache): New functions.
654 (set_register_cache): Don't initialize the register cache here.
655 (registers_to_string, registers_from_string, register_data): Call
656 get_regcache.
657 * gdbserver/regcache.h: Add prototypes.
658 * gdbserver/server.h: Likewise.
659
611cb4a5
DJ
6602002-04-20 Daniel Jacobowitz <drow@mvista.com>
661
662 * gdbserver/mem-break.c: New file.
663 * gdbserver/mem-break.h: New file.
664 * gdbserver/Makefile.in: Add mem-break.o rule; update server.h
665 dependencies.
666 * gdbserver/inferiors.c (struct inferior_info): Add target_data
667 member.
668 (clear_inferiors): Free target_data member if set.
669 (inferior_target_data, set_inferior_target_data): New functions.
670 * gdbserver/linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
671 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
672 * gdbserver/linux-low.c (linux_bp_reinsert): New variable.
673 (struct inferior_linux_data): New.
674 (linux_create_inferior): Use set_inferior_target_data.
675 (linux_attach): Likewise. Call add_inferior.
676 (linux_wait_for_one_inferior): New function.
677 (linux_wait): Call it.
678 (linux_write_memory): Add const.
679 (initialize_low): Call set_breakpoint_data.
680 * gdbserver/linux-low.h (struct linux_target_ops): Add breakpoint
681 handling members.
682 * gdbserver/server.c (attach_inferior): Remove extra add_inferior
683 call.
684 * gdbserver/server.h: Include mem-break.h. Update inferior.c
685 prototypes.
686 * gdbserver/target.c (read_inferior_memory)
687 (write_inferior_memory): New functions.
688 * gdbserver/target.h (read_inferior_memory)
689 (write_inferior_memory): Change macros to prototypes.
690 (struct target_ops): Update comments. Add const to write_memory
691 definition.
692
f91305dd 6932002-04-19 Andrew Cagney <ac131313@redhat.com>
bf75c8c1
AC
694
695 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
696 instead of ->prev.
697 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
698 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
699 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
700 instead of ->prev.
701
73d322b1
EZ
7022002-04-19 Elena Zannoni <ezannoni@redhat.com>
703
704 Fix PR gdb/471.
705 * gdbtypes.c (init_simd_type): Rewrite using new functions.
706 (build_builtin_type_vec128): Ditto.
707 (append_composite_type_field): Fix calculation of type length in
708 union case.
709
ccd9a834
EZ
7102002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
711
712 * config/djgpp/README: Update.
713
714 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
715 compiler warnings.
716
a57f9e49
JT
7172002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
718
719 * alpha-tdep.c (setup_arbitrary_frame): Rename...
720 (alpha_setup_arbitrary_frame): ...to this.
721 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
722 for alpha_setup_arbitrary_frame.
723
f4f9705a
AC
7242002-04-18 Andrew Cagney <cagney@redhat.com>
725
726 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
727 * gdbarch.h, gdbarch.c: Regenerate.
728
729 * defs.h (breakpoint_from_pc_fn): Delete type definition.
730 * target.h (memory_breakpoint_from_pc): Update declaration.
731 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
732
733 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
734 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
735 * mem-break.c (memory_breakpoint_from_pc): Ditto.
736 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
737 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
738 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
739 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
740 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
741 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
742 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
743 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
744 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
745
746 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
747 const pointer.
748 * monitor.c (monitor_insert_breakpoint): Ditto.
749 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
750
751 * config/mcore/tm-mcore.h: Update copyright.
752 * mem-break.c: Ditto.
753 * xstormy16-tdep.c: Ditto.
754
29f319b8
PM
7552002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
756
757 * p-exp.y: Add precedence rule for '^' token.
758 This removes the shift/reduce conflicts.
759 Remove the comment concerning these shift/reduce conflicts.
760
ebeac11a
EZ
7612002-04-18 Elena Zannoni <ezannoni@redhat.com>
762
763 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
764 (registers_powerpc_nofp): New register set for processors
765 without floating point unit.
766
27c31547
DM
7672002-04-18 David S. Miller <davem@redhat.com>
768
769 * MAINTAINERS: Add myself to write-after-approval.
770
47a73475
MS
7712002-04-17 Michael Snyder <msnyder@redhat.com>
772
773 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
774
953836b2
AC
7752002-04-17 Andrew Cagney <ac131313@redhat.com>
776
777 * rs6000-tdep.c (frame_initial_stack_address): Use
778 frame_register_read to read the alloca_reg.
779
8b0d4340
AC
7802002-04-17 Andrew Cagney <ac131313@redhat.com>
781
782 * frame.c (find_saved_register): Find saved registers in the next
783 not prev frame.
784 Fix PR gdb/365.
785
d8864532
AC
7862002-04-17 Andrew Cagney <ac131313@redhat.com>
787
788 * gdbarch.sh (LANG): Set to ``c''.
789
36cc83a3
AC
7902002-04-15 Andrew Cagney <ac131313@redhat.com>
791
792 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
793
2f4150cc 7942002-04-15 Andrew Cagney <ac131313@redhat.com>
2c7ef074
AC
795
796 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
797 Update copyright.
798
628703c6 799 * hpread.c (hpread_get_lntt): Add declaration.
2f4150cc
AC
800 Also fix PR gdb/391.
801
56157b4a
AC
8022002-04-14 Andrew Cagney <ac131313@redhat.com>
803
804 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
805 * aclocal.m4, configure: Re-generate.
806 Fix PR gdb/391.
807
6d1e3329
EZ
8082002-04-14 Elena Zannoni <ezannoni@redhat.com>
809
810 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
811 instead of tm_print_insn.
812
cb06fa07
EZ
8132002-04-14 Elena Zannoni <ezannoni@redhat.com>
814
815 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
816
f208ba17
AC
8172002-04-14 Andrew Cagney <ac131313@redhat.com>
818
819 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
820 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
821 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
822
20f01a46
DH
8232002-04-12 Don Howard <dhoward@redhat.com>
824
825 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
826 max_user_call_depth.
827 (init_cmd_lists): Initialize the new value;
828 * cli/cli-script.c (execute_user_command): Limit the call depth of
829 user defined commands. This avoids a core-dump when user commands
830 are infinitly recursive.
831
a88376a3
KB
8322002-04-12 Kevin Buettner <kevinb@redhat.com>
833
834 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
835 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
836 from tdep struct instead of DEFAULT_LR_SAVE.
837 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
838 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
839 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
840
f2172603
MS
8412002-04-12 Michael Snyder <msnyder@redhat.com>
842
694f61fb 843 * Remote.c: Spelling fix.
20fe79c8
MS
844 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
845 If no symbol found for "sbrk", try "_sbrk".
846 (make_output_phdrs): Use bfd_section_name.
847 (gcore_copy_callback): Use bfd_section_name.
62995fc4 848 * eval.c: Indentation fix-ups.
169a7369
MS
849 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
850 in case it gets applied to an address that is already
851 in the instruction space.
de74f71f
MS
852 * cli/cli-decode.c (help_list): Allow long lines to wrap.
853 * symfile.c: Fix indentation, long lines.
f2172603
MS
854 * source.c: White space fix-up.
855
cda5a58a
AC
8562002-04-12 Andrew Cagney <cagney@redhat.com>
857
858 * defs.h (read_relative_register_raw_bytes): Delete declaration.
859 * frame.c (frame_register_read): New function. Return non-zero on
860 success.
861 (read_relative_register_raw_bytes_for_frame): Delete.
862 (read_relative_register_raw_bytes): Delete.
863 * frame.h (frame_register_read): Declare.
864 * d30v-tdep.c: Update Copyright. Use frame_register_read.
865 * sh-tdep.c: Ditto.
866 * infcmd.c (do_registers_info): Ditto.
867 * hppa-tdep.c: Ditto.
868 * rs6000-tdep.c: Ditto.
869 * h8500-tdep.c: Ditto.
870 * mips-tdep.c: Ditto.
871 * h8300-tdep.c: Ditto.
872 * z8k-tdep.c: Ditto.
873
2ea5f656
KB
8742002-04-12 Kevin Buettner <kevinb@redhat.com>
875
876 From Jimi X <jimix@watson.ibm.com>:
877 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
878 64-bit SysV ABI.
879
27b15785
KB
8802002-04-12 Kevin Buettner <kevinb@redhat.com>
881
882 From Jimi X <jimix@watson.ibm.com>:
883 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
884 bfd info.
885
5d57ee30
KB
8862002-04-12 Kevin Buettner <kevinb@redhat.com>
887
888 From Jimi X <jimix@watson.ibm.com>:
889 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
890 register sets for these processor variants.
891
bc1e36ca
DJ
8922002-04-11 Daniel Jacobowitz <drow@mvista.com>
893
894 * gdbserver/linux-low.c (usr_store_inferior_registers): Support
895 registers which are allowed to fail to store.
896 * gdbserver/linux-low.h (linux_target_ops): Likewise.
897 * gdbserver/linux-ppc-low.c (ppc_regmap): Support FPSCR.
898 (ppc_cannot_store_register): FPSCR may not be storable.
899 * regformats/reg-ppc.dat: Support FPSCR.
900
e3f36dbd
KB
9012002-04-11 Kevin Buettner <kevinb@redhat.com>
902
903 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
904 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
905 Add fpscr as an invalid/unfetchable register.
906 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
907 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
908 (fill_fpregset): Add support for register fpscr.
909 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
910 (fill_gregset): Account for the fact that register ``mq'' might
911 not exist.
912 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
913 (registers_power): Add fpscr to register set at slot 71.
914 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
915 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
916
943c9c25
MS
9172002-04-11 Michael Snyder <msnyder@redhat.com>
918
919 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
920 * configure: Regenerate.
921 * config.in: Regenerate.
922 * acconfig.h: Add define for _SYSCALL32.
923 * core-sol2.c: Remove #define _SYSCALL32.
924 * solib-legacy.c: Remove #define _SYSCALL32.
925
d8c0a2e7
AC
9262002-04-10 Andrew Cagney <ac131313@redhat.com>
927
928 * stack.c (select_frame): Cleanup internal error message, do not
929 use %p.
930
7cc19214
AC
9312002-04-10 Andrew Cagney <ac131313@redhat.com>
932
933 * stack.c (select_frame): Check that selected_frame and the
934 specified level are as expected.
935 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
936 Update copyright.
937 * frame.h (struct frame_info): Add field `level'. Update
938 copyright.
939 Work-in-progress PR gdb/464.
940
67a2b77e
AC
9412002-04-10 Andrew Cagney <ac131313@redhat.com>
942
943 * maint.c (maint_print_section_info): Rename print_section_info.
944 (print_bfd_section_info, print_objfile_section_info): Update.
945 * inferior.h (struct gdbarch): Add opaque declaration.
946 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
947 * gdbarch.h: Regenerate.
948
8cfda98c
ML
9492002-04-10 Michal Ludvig <mludvig@suse.cz>
950
951 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
952 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
953 (kernel_u_size): Added.
954 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
955 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
956
ca439ad2
JI
9572002-04-04 Jim Ingham <jingham@apple.com>
958
959 * valarith.c (find_size_for_pointer_math): New function, either returns
960 the size for a pointer's target, returns 1 for void *, or errors for
961 incomplete types.
962 (value_add, value_sub): use find_size_for_pointer_math.
963
2f2893d9
DJ
9642002-04-09 Daniel Jacobowitz <drow@mvista.com>
965
966 * linux-low.c (linux_look_up_symbols): New hook.
967 (linux_target_ops): Add linux_look_up_symbols.
968 * remote-utils.c (decode_address): New function.
969 (look_up_one_symbol): New function.
970 * server.c (handle_query): Call target look_up_symbols hook.
971 * server.h (look_up_one_symbol): Add prototype.
972 * target.h (struct target_ops): Add look_up_symbols hook.
973
2ec06d2e
DJ
9742002-04-09 Daniel Jacobowitz <drow@mvista.com>
975
d64b8841
DJ
976 * gdbserver/server.h: Include <string.h> if HAVE_STRING_H.
977 * ChangeLog: Correct paths in last ChangeLog entry.
978
9792002-04-09 Daniel Jacobowitz <drow@mvista.com>
980
981 * gdbserver/linux-low.h: Remove obsolete prototypes.
2ec06d2e
DJ
982 (struct linux_target_ops): New.
983 (extern the_low_target): New.
d64b8841 984 * gdbserver/linux-low.c (num_regs, regmap): Remove declarations.
2ec06d2e
DJ
985 (register_addr): Use the_low_target explicitly.
986 (fetch_register): Likewise.
987 (usr_fetch_inferior_registers): Likewise.
988 (usr_store_inferior_registers): Likewise.
d64b8841 989 * gdbserver/linux-arm-low.c (num_regs): Remove.
2ec06d2e
DJ
990 (arm_num_regs): Define.
991 (arm_regmap): Renamed from regmap, made static.
992 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
993 made static.
994 (arm_cannot_store_register): Renamed from cannot_store_register,
995 made static.
996 (the_low_target): New.
d64b8841 997 * gdbserver/linux-i386-low.c (num_regs): Remove.
2ec06d2e
DJ
998 (i386_num_regs): Define.
999 (i386_regmap): Renamed from regmap, made static.
1000 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
1001 made static.
1002 (i386_cannot_store_register): Renamed from cannot_store_register,
1003 made static.
1004 (the_low_target): New.
d64b8841 1005 * gdbserver/linux-ia64-low.c (num_regs): Remove.
2ec06d2e
DJ
1006 (ia64_num_regs): Define.
1007 (ia64_regmap): Renamed from regmap, made static.
1008 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
1009 made static.
1010 (ia64_cannot_store_register): Renamed from cannot_store_register,
1011 made static.
1012 (the_low_target): New.
d64b8841 1013 * gdbserver/linux-m68k-low.c (num_regs): Remove.
2ec06d2e
DJ
1014 (m68k_num_regs): Define.
1015 (m68k_regmap): Renamed from regmap, made static.
1016 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
1017 made static.
1018 (m68k_cannot_store_register): Renamed from cannot_store_register,
1019 made static.
1020 (the_low_target): New.
d64b8841 1021 * gdbserver/linux-mips-low.c (num_regs): Remove.
2ec06d2e
DJ
1022 (mips_num_regs): Define.
1023 (mips_regmap): Renamed from regmap, made static.
1024 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
1025 made static.
1026 (mips_cannot_store_register): Renamed from cannot_store_register,
1027 made static.
1028 (the_low_target): New.
d64b8841 1029 * gdbserver/linux-ppc-low.c (num_regs): Remove.
2ec06d2e
DJ
1030 (ppc_num_regs): Define.
1031 (ppc_regmap): Renamed from regmap, made static.
1032 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
1033 made static.
1034 (ppc_cannot_store_register): Renamed from cannot_store_register,
1035 made static.
1036 (the_low_target): New.
d64b8841 1037 * gdbserver/linux-s390-low.c (num_regs): Remove.
2ec06d2e
DJ
1038 (s390_num_regs): Define.
1039 (s390_regmap): Renamed from regmap, made static.
1040 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
1041 made static.
1042 (s390_cannot_store_register): Renamed from cannot_store_register,
1043 made static.
1044 (the_low_target): New.
d64b8841 1045 * gdbserver/linux-sh-low.c (num_regs): Remove.
2ec06d2e
DJ
1046 (sh_num_regs): Define.
1047 (sh_regmap): Renamed from regmap, made static.
1048 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
1049 made static.
1050 (sh_cannot_store_register): Renamed from cannot_store_register,
1051 made static.
1052 (the_low_target): New.
d64b8841 1053 * gdbserver/linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
2ec06d2e
DJ
1054 (the_low_target): New.
1055
96cb11df
AC
10562002-04-09 Andrew Cagney <ac131313@redhat.com>
1057
1058 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
1059 override FP_REGNUM with frame->fp. Update copyright.
1060 * parse.c (num_std_regs, std_regs): Delete.
1061 (target_map_name_to_register): Do not search std_regs. Update
1062 function description.
1063 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
1064 declarations. Update copyright.
1065 Fix PR gdb/251.
1066
c3a3ccc7
DJ
10672002-04-09 Daniel Jacobowitz <drow@mvista.com>
1068
1069 * gdbserver/Makefile.in: Add stamp-h target.
1070 * gdbserver/configure.in: Create stamp-h.
1071 * gdbserver/configure: Regenerated.
1072
ce3a066d
DJ
10732002-04-09 Daniel Jacobowitz <drow@mvista.com>
1074
1075 * gdbserver/inferiors.c: New file.
1076 * gdbserver/target.c: New file.
1077 * gdbserver/target.h: New file.
1078 * gdbserver/Makefile.in: Add target.o and inferiors.o. Update
1079 dependencies.
1080 * gdbserver/linux-low.c (inferior_pid): New static variable,
1081 moved from server.c.
1082 (linux_create_inferior): Renamed from create_inferior.
1083 Call add_inferior. Return 0 on success instead of a PID.
1084 (linux_attach): Renamed from myattach.
1085 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
1086 (linux_thread_alive): Renamed from mythread_alive.
1087 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
1088 child dies.
1089 (linux_resume): Renamed from myresume. Add missing ``return 0''.
1090 (regsets_store_inferior_registers): Correct error message.
1091 Add missing ``return 0''.
1092 (linux_fetch_registers): Renamed from fetch_inferior_registers.
1093 (linux_store_registers): Renamed from store_inferior_registers.
1094 (linux_read_memory): Renamed from read_inferior_memory.
1095 (linux_write_memory): Renamed from write_inferior_memory.
1096 (linux_target_ops): New structure.
1097 (initialize_low): Call set_target_ops ().
1098 * gdbserver/remote-utils.c (unhexify): New function.
1099 (hexify): New function.
1100 (input_interrupt): Send signals to ``signal_pid''.
1101 * gdbserver/server.c (inferior_pid): Remove.
1102 (start_inferior): Update create_inferior call.
1103 (attach_inferior): Call add_inferior.
1104 (handle_query): New function.
1105 (main): Call handle_query for `q' packets.
1106 * gdbserver/server.h: Include "target.h". Remove obsolete prototypes.
1107 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
1108
0729219d
DJ
11092002-04-09 Daniel Jacobowitz <drow@mvista.com>
1110
1111 * gdbserver/Makefile.in: Add WARN_CFLAGS. Update configury
1112 dependencies.
1113 * gdbserver/configure.in: Check for <string.h>
1114 * gdbserver/configure: Regenerate.
1115 * gdbserver/config.in: Regenerate.
1116 * gdbserver/gdbreplay.c: Include needed system headers.
1117 (remote_open): Remove strchr prototype.
1118 * gdbserver/linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
1119 * gdbserver/regcache.c (supply_register): Change buf argument to const void *.
1120 (supply_register_by_name): Likewise.
1121 (collect_register): Change buf argument to void *.
1122 (collect_register_by_name): Likewise.
1123 * gdbserver/regcache.h: Add missing prototypes.
1124 * gdbserver/remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
1125 * gdbserver/server.c (handle_query): New function.
1126 (attached): New static variable, moved out of main.
1127 (main): Quiet longjmp clobber warnings.
1128 * gdbserver/server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
1129 * gdbserver/utils.c (error): Remove NORETURN.
1130 (fatal): Likewise.
1131
97658e92
DJ
11322002-04-09 Daniel Jacobowitz <drow@mvista.com>
1133
1134 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
1135 after the last symbol in a block.
1136
6044e3eb
PM
11372002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
1138
1139 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
1140 is non zero as a found symbol.
1141
0406ec40
AC
11422002-04-08 Andrew Cagney <ac131313@redhat.com>
1143
1144 * findvar.c: Include "builtin-regs.h".
1145 (value_of_register): Call value_of_builtin_reg when applicable.
1146 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
1147 (target_map_name_to_register): Call
1148 builtin_reg_map_name_to_regnum.
1149 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
1150 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
1151 (builtin_regs_h): Define.
1152 (builtin-regs.o): New target.
1153 (findvar.o): Add $(builtin_regs_h).
1154 * builtin-regs.c, builtin-regs.h: New files.
1155 * std-regs.c: New file.
1156 Partial fix for PR gdb/251.
1157
56a6dfb9
KB
11582002-04-08 Kevin Buettner <kevinb@redhat.com>
1159
1160 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
1161 it's no longer required.
1162
3a808432
AC
11632002-04-08 Andrew Cagney <ac131313@redhat.com>
1164
1165 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
1166
7c40d541
KB
11672002-04-08 Kevin Buettner <kevinb@redhat.com>
1168
1169 From Jimi X <jimix@watson.ibm.com>:
1170 * rs6000-tdep.c (rs6000_software_single_step): Use
1171 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
1172 and size. Use target_insert_breakpoint() and
1173 target_remove_breakpoint() to insert and remove breakpoints
1174 instead of explicit memory reads and writes.
1175
cc9836a8
KB
11762002-04-08 Kevin Buettner <kevinb@redhat.com>
1177
1178 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
1179 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
1180 ELF_OBJECT_FORMAT ifdef.
1181
7495d1dc
KB
11822002-04-08 Kevin Buettner <kevinb@redhat.com>
1183
1184 From Jimi X <jimix@watson.ibm.com>:
1185 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
1186
4288e836
KB
11872002-04-08 Kevin Buettner <kevinb@redhat.com>
1188
1189 From Jimi X <jimix@watson.ibm.com>:
1190 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
1191 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
1192
a4e4e501
MK
11932002-04-07 Mark Kettenis <kettenis@gnu.org>
1194
1195 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
1196 s/asprintf/xasprintf/.
1197 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
1198
006defba
AC
11992002-04-07 Andrew Cagney <ac131313@redhat.com>
1200
1201 I believe Jeff Law denies responsability for this one:
1202 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
1203 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
1204 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
1205 Work-around for PR gdb/366.
1206
7aa83cac
EZ
12072002-04-07 Elena Zannoni <ezannoni@redhat.com>
1208
1209 * remote-e7000.c (write_small, e7000_read_inferior_memory,
1210 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
1211 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
1212
cf1fcca1
EZ
12132002-04-07 Elena Zannoni <ezannoni@redhat.com>
1214
1215 * sh-tdep.c (sh_fp_frame_init_saved_regs,
1216 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
1217 information.
1218
3f289e6f
AC
12192002-04-07 Andrew Cagney <ac131313@redhat.com>
1220
1221 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
1222 maintainer.
1223
129188f6
AC
12242002-04-07 Andrew Cagney <ac131313@redhat.com>
1225
1226 * README (Reporting Bugs in GDB): Document the bug web page as the
1227 prefered way of submitting bugs.
1228 Fix PR gdb/402.
1229
1200cd6e
AC
12302002-04-06 Andrew Cagney <ac131313@redhat.com>
1231
1232 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
1233 -1. Update comment.
1234 * gdbarch.h, gdbarch.c: Re-generate.
1235
2853c33c
AS
12362002-04-07 Andreas Schwab <schwab@suse.de>
1237
1238 * m68klinux-nat.c (fill_fpregset): Properly pass address of
1239 buffer to regcache_collect.
1240
c2169756
AC
12412002-04-06 Andrew Cagney <ac131313@redhat.com>
1242
1243 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
1244 * gdbarch.c, gdbarch.h: Re-generate.
1245
25f1b008
AC
12462002-04-06 Andrew Cagney <ac131313@redhat.com>
1247
1248 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
1249 declaration. Fix -Werror.
1250
59263426
DJ
12512002-04-05 Daniel Jacobowitz <drow@mvista.com>
1252
1253 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
1254 * gdbarch.c: Regenerate.
1255
f5db4da3
MS
12562002-04-05 Michael Snyder <msnyder@redhat.com>
1257
80f8a6eb
MS
1258 * breakpoint.c (clear_command): Rewrite middle section to
1259 combine two loops with identical control conditions.
1260 Add a cleanup to eliminate a memory leak.
f5db4da3
MS
1261 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
1262
ad3dcc5c
L
12632002-04-05 H.J. Lu (hjl@gnu.org)
1264
1265 * solib-svr4.c (bkpt_names): Add "__start".
1266
f32e7a74
AC
12672002-04-04 Andrew Cagney <ac131313@redhat.com>
1268
1269 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
1270 as test for 64 bit target.
1271
8227c0ff
AC
12722002-04-05 Andrew Cagney <ac131313@redhat.com>
1273
1274 * h8500-tdep.c (h8500_write_fp): Delete function.
1275 * dwarf2cfi.c (cfi_write_fp): Document as not used.
1276 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
1277 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
1278 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
1279 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
1280 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
1281 (s390_write_fp):
1282 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
1283 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
1284 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
1285 (d10v_write_fp): Delete function.
1286 * inferior.h (write_fp, generic_target_write_fp): Delete
1287 declarations.
1288 * regcache.c (generic_target_write_fp): Delete function.
1289 (write_fp): Delete function.
1290 * gdbarch.sh (TARGET_WRITE_FP): Delete.
1291 * gdbarch.h, gdbarch.c: Regenerate.
1292 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
1293 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
1294 (sparc64_write_fp): Delete declaration.
1295 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
1296 (h8500_write_fp): Delete declaration.
1297
2757dd86
AC
12982002-04-04 Andrew Cagney <ac131313@redhat.com>
1299
1300 * sparc-tdep.c (sparc64_write_fp): Delete.
1301 (sparc_push_dummy_frame): Replace write_fp call with code to store
1302 the FP directly.
1303 (sparc_gdbarch_init): Do not initialize write_fp.
1304
c69255e1
KB
13052002-04-05 Kevin Buettner <kevinb@redhat.com>
1306
1307 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
1308 clause.
1309
ae767bfb
JB
13102002-03-29 Jim Blandy <jimb@redhat.com>
1311
1312 * stack.c (get_selected_block): Add new argument `addr_in_block',
1313 used to return the exact code address we used to select the block,
1314 not just the block.
1315 * blockframe.c (get_frame_block, get_current_block): Same.
1316 * frame.h (get_frame_block, get_current_block,
1317 get_selected_block): Update declarations.
1318 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
1319 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
1320
84d2ac95
MS
13212002-04-05 Michael Snyder <msnyder@redhat.com>
1322
1323 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
1324 warning message.
1325
596aa3bf
JB
13262002-04-05 J. Brobecker <brobecker@gnat.com>
1327
1328 * utils.c (xfullpath): New function.
1329 * defs.h (xfullpath): Add declaration.
1330 * source.c (openp): Use xfullpath in place of gdb_realpath to
1331 avoid resolving the basename part of filenames when the
1332 associated file is a symbolic link. This fixes a potential
1333 inconsistency between the filenames known to GDB and the
1334 filenames it prints in the annotations.
1335 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
1336 to be able to match a filename with either the real filename, or
1337 the name of any symbolic link to this file.
1338 (lookup_partial_symtab): Ditto.
1339
c02f5703
MS
13402002-04-04 Michael Snyder <msnyder@redhat.com>
1341
1342 * breakpoint.c: Add support for hardware breakpoints in overlays.
1343 (overlay_events_enabled): New state variable.
1344 (insert_breakpoints): Use overlay_events_enabled to decide
1345 whether to attempt to set a breakpoint at the overlay load addr.
1346 Handle bp_hardware_breakpoint as well as bp_breakpoint.
1347 (remove_breakpoint): Use overlay_events_enabled to decide
1348 whether breakpoints need to be removed from overlay load addr.
1349 Handle bp_hardware_breakpoint as well as bp_breakpoint.
1350 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
1351 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
1352 disable_overlay_breakpoints): Update overlay_events_enabled.
1353
5fb290d7
DJ
13542002-04-04 Daniel Jacobowitz <drow@mvista.com>
1355
1356 * dwarf2read.c (struct function_range): New.
1357 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
1358 (check_cu_functions): New.
1359 (read_file_scope): Initialize global function lists.
1360 Call dwarf_decode_line after processing children.
1361 (read_func_scope): Add to global function list.
1362 (dwarf_decode_lines): Call check_cu_functions everywhere
1363 record_line is called. Call record_line with a linenumber
1364 of 0 to mark sequence ends.
1365
7b3fabf0
ML
13662002-04-04 Michal Ludvig <mludvig@suse.cz>
1367
1368 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
1369 change sync with glibc.
1370
bce58c09
JB
13712002-04-03 Jim Blandy <jimb@redhat.com>
1372
1373 * configure.in: Call AC_C_INLINE.
1374 * configure: Regenerated.
1375
2fccf04a
DJ
13762002-04-01 Daniel Jacobowitz <drow@mvista.com>
1377
1378 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
1379 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
1380
2d1bfe2e
MK
13812002-03-31 Mark Kettenis <kettenis@gnu.org>
1382
a5941fbf
MK
1383 * NEWS: Mention gcore support on FreeBSD/i386.
1384
a90cd31d
MK
1385 * fbsd-proc.c: New file.
1386 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
1387 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
1388
2d1bfe2e
MK
1389 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
1390 while statement.
1391
9eb6e5a1
JB
13922002-03-29 Jim Blandy <jimb@redhat.com>
1393
1394 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
1395 unescaped newlines in string literals, but newer ones don't. So
1396 escape them.
1397
f02df580
MS
13982002-03-26 Michael Snyder <msnyder@redhat.com>
1399 Andrew Cagney <cagney@redhat.com>
1400
1401 * cli/cli-dump.c: New file. Dump memory to file,
1402 restore file to memory.
1403 * cli/cli-dump.h: New file.
1404 * Makefile.in: Add rules, dependencies for cli-dump.o.
89743e04 1405 * NEWS: Mention new commands.
f02df580 1406
109f874e
MS
14072002-03-28 Michael Snyder <msnyder@redhat.com>
1408
1409 * symfile.c (symbol_file_add): Move test for null symbols to later.
1410
520f6ade
AC
14112002-03-27 Andrew Cagney <ac131313@redhat.com>
1412
1413 From veksler at il.ibm.com:
1414 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
1415 the xstrduped original path.
1416 Fix PR gdb/417.
1417
d4654627
MS
14182002-03-27 Michael Snyder <msnyder@redhat.com>
1419
1420 * breakpoint.c (_initialize_breakpoint): Clean up help string.
1421 * infcmd.c (_initialize_infcmd): Ditto.
1422 * language.c (_initialize_language): Ditto.
1423 * symfile.c (_initialize_symfile): Ditto.
1424 * top.c (_init_main): Ditto.
1425 * cli/cli-cmds.c (init_cli_cmds): Ditto.
1426
6be8bc0c
EZ
14272002-03-27 Elena Zannoni <ezannoni@redhat.com>
1428
1429 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
1430 vector registers handling.
1431 (skip_prologue): Handle new AltiVec instructions. Fill in new
1432 fields of frame data.
1433 (frame_get_saved_regs): Fill in information for AltiVec registers.
1434
12af6855
JB
14352002-03-27 Jim Blandy <jimb@redhat.com>
1436
1437 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
1438 a function; leave this macro here to invoke that function.
1439 (symbol_init_mangled_name): Declaration for that function.
1440 * symtab.c (symbol_init_mangled_name): New function.
1441
dc672865
AC
14422002-03-27 Andrew Cagney <ac131313@redhat.com>
1443
1444 * valarith.c: Replace strerror with safe_strerror.
1445 * tracepoint.c: Ditto.
1446 * lin-lwp.c: Ditto.
1447 * go32-nat.c: Ditto.
1448 * inflow.c: Ditto.
1449 * gnu-nat.c: Ditto.
1450
d96429cd
AS
14512002-03-27 Andreas Schwab <schwab@suse.de>
1452
1453 * event-top.c (command_line_handler): Remove useless if.
1454
7e336ba1
AJ
14552002-03-27 Andreas Jaeger <aj@suse.de>
1456
1457 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
1458 comment.
1459
de220d0f
ML
14602002-03-27 Michal Ludvig <mludvig@suse.cz>
1461
1462 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
1463 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
1464 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
1465 (x86_64_linux_dr_get_status, supply_gregset),
1466 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
1467 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
1468 (x86_64_register_info_table): Add.
1469 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
1470 (x86_64_register_raw_size, x86_64_register_virtual_type),
1471 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
1472 general x86_64_register_info_table.
1473 (i386_gdbarch_init): gdbarch_register_bytes is now set
1474 dynamicaly during initialization.
1475 * regformats/reg-x86-64.dat: Synced with changes to registers above.
1476 * gdbserver/linux-x86-64-low.c: Ditto.
7e336ba1 1477
0e98d0a7
DJ
14782002-03-27 Daniel Jacobowitz <drow@mvista.com>
1479
1480 * gdbserver/server.c (main): Call target_signal_to_host_p
1481 and target_signal_to_host on signals received from the remote.
1482 * gdbserver/remote-utils.c (prepare_resume_reply): Call
1483 target_signal_from_host on signals sent to the remote.
1484 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
1485 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
1486
3130066b
DJ
14872002-03-27 Daniel Jacobowitz <drow@mvista.com>
1488
1489 * signals/signals.c: Include "server.h" in gdbserver build.
1490 (target_signal_from_name): Don't use STREQ.
1491 (_initialize_signals): Likewise. Don't include function in
1492 gdbserver build.
1493
9aedf4f4
DJ
14942002-03-27 Daniel Jacobowitz <drow@mvista.com>
1495
1496 * signals.c: Moved to...
1497 * signals/signals.c: Here.
7e336ba1 1498 * Makefile (signals.o): Update.
9aedf4f4 1499
3fa41cdb
JL
15002002-03-26 Jeff Law (law@redhat.com)
1501
1502 * somread.c (som_symtab_read): Remove some commented out code and
1503 updated related comments. Do not set the minimal symbol table to
1504 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
1505 in a dynamic executable.
1506 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
1507 where we are unable to find the minimal symbol for the given
1508 PC value.
1509
ee677e8d
MS
15102002-03-25 Jeff Law (law@redhat.com)
1511
1512 * linux-proc.c (read_mapping): Scan up to end of line for filename.
1513
e76e1718
ML
15142002-03-25 Michal Ludvig <mludvig@suse.cz>
1515
1516 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
1517
18a642a1
AC
15182002-03-23 Andrew Cagney <ac131313@redhat.com>
1519
1520 * command.h: Update copyright.
1521 (struct cmd_list_element): Replace definition with opaque
1522 declaration.
1523 (enum cmd_types): Document that it will eventually be moved to
1524 cli/cli-decode.h
1525 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
1526 (MALLOCED_REPLACEMENT): Delete macro.
1527 * Makefile.in (cli_decode_h): Add $(command_h).
1528 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7e336ba1 1529 * top.c: Include "cli/cli-decode.h".
18a642a1
AC
1530 * completer.c: Include "cli/cli-decode.h".
1531 * maint.c: Include "cli/cli-decode.h".
1532 * cli/cli-decode.h: Include "command.h".
1533 (enum command_class): Delete.
1534 (enum cmd_types): Comment out.
1535 (enum cmd_auto_boolean): Delete.
1536 (enum var_types): Delete.
1537
b2875cc0
AC
15382002-03-23 Andrew Cagney <ac131313@redhat.com>
1539
1540 * cli/cli-decode.c: Include "gdb_assert.h".
1541 (add_set_or_show_cmd): New static function.
1542 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
1543 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
1544 all fields, such as func, from the set command.
1545
3b45974e
AC
15462002-03-23 Andrew Cagney <ac131313@redhat.com>
1547
1548 * MAINTAINERS (sh-elf): Change warning flag to -w.
1549
823ca731
AC
15502002-03-23 Andrew Cagney <cagney@redhat.com>
1551
1552 * defs.h (error): Add printf format attribute.
1553 * thread-db.c (thread_from_lwp): Fix error format string.
1554 * stack.c (parse_frame_specification): Ditto.
1555 * cli/cli-decode.c (undef_cmd_error): Ditto.
1556 * scm-lang.c (scm_lookup_name): Ditto.
1557 * tracepoint.c (trace_error): Ditto.
1558 * remote-utils.c (usage): Ditto.
1559 * remote.c (compare_sections_command): Ditto.
1560 Fix PR gdb/328.
1561
0e101458
AC
15622002-03-22 Andrew Cagney <ac131313@redhat.com>
1563
1564 * gdbtypes.c (append_composite_type_field): New function.
1565 (init_composite_type): New function.
1566 * gdbtypes.h (append_composite_type_field): Declare.
1567 (init_composite_type): Ditto.
1568
8e0662df
EZ
15692002-03-22 Elena Zannoni <ezannoni@redhat.com>
1570
1571 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7e336ba1 1572 function.
8e0662df
EZ
1573 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
1574 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
1575 structure returning convention for SYSV ABI case, but not
1576 for GNU/Linux, FreeBSD, or NetBSD.
1577
3121eff0
DJ
15782002-03-22 Daniel Jacobowitz <drow@mvista.com>
1579
1580 * symtab.h (lookup_block_symbol): Add mangled_name argument
1581 to prototype.
1582
1583 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
1584 with new mangled_name argument.
1585 * linespec.c (decode_line_1): Likewise.
1586 * valops (value_of_this): Likewise.
1587 * symtab.c (lookup_transparent_type): Likewise.
1588 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
1589 (lookup_symbol): If we are given a mangled name, pass it down
1590 to lookup_symbol_aux.
1591 (lookup_block_symbol): If we are given a mangled name to check
1592 against, only return symbols which match it.
1593
349b409f
CF
15942002-03-22 Christopher Faylor <cgf@redhat.com>
1595
1596 * win32-nat.c (child_create_inferior): Check for proper shell to use
1597 here, in case the user changes it on the fly.
1598 (_initialize_inftarg): Remove shell path considerations.
1599
2a873819
EZ
16002002-03-21 Elena Zannoni <ezannoni@redhat.com>
1601
1602 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
1603 for gdbarch_max_register_raw_size and max_register_virtual_size.
1604 Adjust copyright year.
1605
a1b9830c
DJ
16062002-03-21 Daniel Jacobowitz <drow@mvista.com>
1607
1608 * dbxread.c (process_one_symbol): Extend the first N_SLINE
1609 in a function to cover the entire beginning of the function
1610 as well if it does not already.
1611
8b5790f2
TR
16122002-03-21 Tom Rix <trix@redhat.com>
1613
1614 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
1615 (rs6000_ptrace64): Renamed from ptrace64.
1616
bdbe5747
MH
16172002-03-20 Martin M. Hunt <hunt@redhat.com>
1618
1619 * gdbserver/remote-utils.c (remote_open): Don't call
1620 getprotobyname, we're all using TCP here so just use
1621 IPPROTO_TCP.
7e336ba1 1622 * gdbserver/gdbreplay.c (remote_open): Ditto.
bdbe5747
MH
1623
16242002-03-20 Martin M. Hunt <hunt@redhat.com>
7e336ba1 1625
bdbe5747
MH
1626 * regcache.c (_initialize_regcache): No need to call
1627 build_regcache() at this time; it gets called whenever
1628 the gdbarch changes.
1629
7781cd62
DB
16302002-03-20 David O'Brien <obrien@FreeBSD.org>
1631
1632 * sparc-nat.c: Include sys/param.h where possible.
1633
f65ca430
DJ
16342002-03-20 Daniel Jacobowitz <drow@mvista.com>
1635
1636 Fix PR gdb/422.
1637 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
1638 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
1639 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
1640 complex types.
1641 * stabsread.c (rs6000_builtin_type): Likewise.
1642 (read_sun_floating_type): Likewise.
1643
0c867556
PS
16442002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
1645
1646 * stabsread.c (read_member_functions): Remove skip code for duplicate
1647 constructor/destructor methods. Use standard parsing for these
1648 methods and just do not chain them to the list of methods after
1649 parsing.
1650
12b9c64f
AO
16512002-03-19 Alexandre Oliva <aoliva@redhat.com>
1652
1653 * coffread.c: Remove redundant static declarations. Replace
1654 occurrences of `PTR' with `void *'.
1655 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
1656 * top.h (quit_cover): Likewise.
1657 * defs.h (catch_errors): Likewise.
1658
349c5d5f
AC
16592002-03-18 Andrew Cagney <ac131313@redhat.com>
1660
1661 * defs.h (XMALLOC): Define.
1662 * gdb-events.sh (XMALLOC): Delete macro.
1663 * gdb-events.c, gdb-events.h: Regenerate.
1664 * gdbarch.sh (XMALLOC): Delete macro.
1665 * gdbarch.c: Regenerate.
1666 * serial.c (XMALLOC): Delete macro.
1667 * ui-file.c (XMALLOC): Ditto.
1668 * ser-unix.h (XMALLOC): Ditto.
1669 * sh-tdep.c (XMALLOC): Ditto.
1670 * ui-out.c (XMALLOC): Ditto.
1671 * utils.c (XMALLOC): Ditto.
1672 * i386-tdep.c (XMALLOC): Ditto.
1673 * gdb-events.c (XMALLOC): Ditto.
1674 * d10v-tdep.c (XMALLOC): Ditto.
1675 * cli-out.c (XMALLOC): Ditto.
1676
1677 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
1678 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
1679 * ui-file.c, ui-out.c: Ditto.
1680
7d0766f3
AC
16812002-03-18 Andrew Cagney <ac131313@redhat.com>
1682
1683 * command.h (struct cmd_list_element): Add field context.
1684 (set_cmd_context, get_cmd_context): Declare.
1685 * cli/cli-decode.h: Ditto.
1686 * cli/cli-decode.c (get_cmd_context): New function.
1687 (set_cmd_context): New function.
1688 (add_cmd): Initialize context.
1689 Part of fixing PR gdb/145 and PR gdb/146.
1690
5913bcb0
AC
16912002-03-17 Andrew Cagney <ac131313@redhat.com>
1692
1868c04e
AC
1693 * cli/cli-decode.c (cmd_type): New function.
1694 * command.h (cmd_type): Declare.
1695 * infrun.c (set_schedlock_func): Call function cmd_type.
1696 * kod.c (kod_set_os): Call cmd_type.
1697 * cris-tdep.c (cris_version_update): Use function cmd_type.
1698 (cris_mode_update, cris_abi_update): Ditto.
1699
5913bcb0
AC
1700 * command.h: (execute_cmd_post_hook): Declare.
1701 (execute_cmd_pre_hook): Declare.
1702 * cli/cli-script.c (clear_hook_in_cleanup): New function.
1703 (execute_cmd_post_hook, execute_cmd_pre_hook): New
1704 functions. Execute pre/post hook while ensuring that afterwords
1705 hook_in is cleared.
1706 * top.c (execute_command): Use execute_cmd_post_hook, and
1707 execute_cmd_pre_hook to execute pre/post commands.
1708 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
1709 hook_stop_stub.
1710 (hook_stop_stub): Call execute_cmd_pre_hook.
1711
b51450c9
AC
17122002-03-17 Andrew Cagney <ac131313@redhat.com>
1713
1714 * kod.c (kod_set_os): Revert previous change. Is called by ``info
1715 set'' and this leads to a core dump. Move xstrdup of
1716 operating_system to after check that it is not NULL.
1717
f66c9f11
AC
17182002-03-17 Andrew Cagney <ac131313@redhat.com>
1719
8e694ecf
AC
1720 * kod.c (kod_set_os): Remove unnecessary check that
1721 ``command->type'' is set_cmd.
1722
f66c9f11
AC
1723 * valprint.c (set_input_radix): Use input_radix.
1724 (set_output_radix): Use output_radix.
1725 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
1726 isn't reverted.
1727
9d01611c
AC
17282002-03-16 Andrew Cagney <ac131313@redhat.com>
1729
1730 * value.h (struct value): Delete field ``substring_addr''. Change
1731 aligner fields to force_doublest_align, force_longest_align,
ee2d3b3a
AC
1732 force_core_addr_align and force_pointer_aligh.
1733
1734 * value.h (struct value): Fix typo in above change.
9d01611c 1735
4156bb53
PS
17362002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
1737
1738 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
1739 to fix internal_error from ``maintenance print architecture''.
1740
0e5e3ea6
PS
17412002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
1742
1743 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
1744 for gcc versions after gcc-2.8.1.
1745
9b013045
PS
17462002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
1747
1748 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
1749 for method resolution. Restore adjustment of ``this'' pointer after
1750 calling value_struct_elt, which was accidentally removed during the
1751 HP merge.
1752
376c9600
AC
17532002-03-15 Andrew Cagney <ac131313@redhat.com>
1754
1755 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
1756 value_of_register.
1757 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
1758 get_saved_register.
1759 * value.h (value_of_register): Update.
1760
a4db0f07
RH
17612002-03-14 Richard Henderson <rth@redhat.com>
1762
1763 * configure.in: Detect declaration for canonicalize_file_name.
1764 * utils.c (canonicalize_file_name): Declare, if needed.
1765 (gdb_realpath): Prefer realpath if available and usable.
1766 * config.in, configure: Rebuild.
1767
96383835
RH
17682002-03-14 Richard Henderson <rth@redhat.com>
1769
1770 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
1771 a constant array bound.
1772
1773 * MAINTAINERS: Add myself to write-after-approval.
1774
75245b24
MS
17752002-03-14 Michael Snyder <msnyder@redhat.com>
1776
1777 * symfile.c (syms_from_objfile): Return immediately if no syms.
1778 (symbol_file_add): Return immediately if no syms.
1779 (find_sym_fns): Return immediately if no syms.
1780
e641a1ca
ML
17812002-03-13 Michal Ludvig <mludvig@suse.cz>
1782
1783 * gdbserver/remote-util.c (remote_open): Print remote-side's
1784 IP address when remote debugging over the network.
7e336ba1 1785
df08bfec
DB
17862002-03-12 David O'Brien <obrien@FreeBSD.org>
1787
1788 * config/sparc/fbsd.mh: Fix copyright.
1789 * config/sparc/fbsd.mt: Likewise.
1790
9a57864f
RE
17912002-03-11 Richard Earnshaw <rearnsha@arm.com>
1792
1793 * MAINTAINERS: Fix typo in name of gdb warnings option.
1794 (x86-64): Fix formating so that this can be parsed by awk.
1795
dd7bf85e
DJ
17962002-03-10 Daniel Jacobowitz <drow@mvista.com>
1797
1798 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
1799 * defs.h: Include "gdb/signals.h".
1800 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
1801
33a0a2ac
ML
18022002-03-10 Michal Ludvig <mludvig@suse.cz>
1803
1804 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7e336ba1 1805 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
33a0a2ac
ML
1806 from x86-64-tdep.h
1807
dd824b04
DJ
18082002-03-10 Daniel Jacobowitz <drow@mvista.com>
1809 Don Howard <dhoward@redhat.com>
1810
1811 * mips-tdep.c (ST0_FR): Define.
1812 (mips2_fp_compat): New function, temporarily disabled.
1813 (mips_read_fp_register_single): New function.
1814 (mips_read_fp_register_double): New function.
1815 (mips_print_register): Use them.
1816 (do_fp_register_row): Likewise.
1817
6a41ff59
AC
18182002-03-09 Andrew Cagney <ac131313@redhat.com>
1819
1820 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
1821 approval''.
1822
4ea09c10
PS
18232002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
1824
1825 * stabsread.c (read_member_functions): Fix is_stub test for
1826 static member functions, improve comment.
1827
6ccc741d
RE
18282002-03-07 Richard Earnshaw <rearnsha@arm.com>
1829
1830 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
1831 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
1832 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
1833 commands that set boolean values.
1834 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
1835 (arm_rdi_resume): Always initialize PC.
1836 (arm_rdi_open): Don't use rslt as a boolean.
1837 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
1838 (arm_rdi_fetch_registers, arm_rdi_store_registers)
1839 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
1840 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
1841
438013df
AO
18422002-03-06 Alexandre Oliva <aoliva@redhat.com>
1843
1844 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
1845 * configure: Rebuilt.
1846
70ed8774
SC
18472002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1848
1849 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
1850 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
1851
5ba2abeb
AC
18522002-03-06 Andrew Cagney <ac131313@redhat.com>
1853
1854 * cli/cli-decode.c (set_cmd_completer): New function.
1855 * command.h (set_cmd_completer): Declare.
1856 * cli/cli-decode.h (set_cmd_completer): Ditto.
1857
1858 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
1859 * cli/cli-cmds.c (init_cli_cmds): Ditto.
1860 * win32-nat.c (_initialize_inftarg): Ditto.
1861 * remote-rdi.c (_initialize_remote_rdi): Ditto.
1862 * proc-api.c (_initialize_proc_api): Ditto.
1863 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
1864 * source.c (_initialize_source): Ditto.
1865 * exec.c (_initialize_exec): Ditto.
1866 * solib.c (_initialize_solib): Ditto.
1867 * top.c (init_main): Ditto.
1868 * tracepoint.c (_initialize_tracepoint): Ditto.
1869 * symfile.c (_initialize_symfile): Ditto.
1870 * printcmd.c (_initialize_printcmd): Ditto.
1871 * infcmd.c (_initialize_infcmd): Ditto.
1872 * corefile.c (_initialize_core): Ditto.
1873
f779ca99
AC
18742002-03-05 Andrew Cagney <ac131313@redhat.com>
1875
1876 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
1877
01a3934b
AC
18782002-03-05 Andrew Cagney <ac131313@redhat.com>
1879
1880 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
1881
37057839
AC
18822002-03-05 Andrew Cagney <ac131313@redhat.com>
1883
1884 * NEWS: Update headings, 5.2 has branched.
1885
c6ecbae5
DJ
18862002-03-04 Daniel Jacobowitz <drow@mvista.com>
1887
1888 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
1889 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
1890 (register_addr, REGISTER_RAW_SIZE): Likewise.
1891 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
1892 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
1893
e9f30c21
ML
18942002-03-03 Michal Ludvig <mludvig@suse.cz>
1895
1896 * MAINTAINERS (x86-64): Add myself.
1897 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
1898 changed value_ptr -> struct value *
1899
54394ac3
DB
19002002-03-01 David O'Brien <obrien@FreeBSD.org>
1901
1902 * configure.host (sparc64-*-freebsd): Add.
1903 * configure.tgt: Likewise.
1904 * config/sparc/fbsd.mh: New file.
1905 * config/sparc/fbsd.mt: Likewise.
1906 * config/sparc/nm-fbsd.h: Likewise.
1907 * config/sparc/tm-fbsd.h: Likewise.
1908
bfe95955
DJ
19092002-03-01 Daniel Jacobowitz <drow@mvista.com>
1910
1911 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
1912 regformats/reg-s390x.dat.
1913
f33c6cbf
AC
19142002-03-01 Andrew Cagney <ac131313@redhat.com>
1915
1916 * utils.c: Add FIXME explaining true/false problem.
1917
5ecaa7dd
AC
19182002-02-28 Andrew Cagney <ac131313@redhat.com>
1919
1920 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
1921
2a251cc2
MC
19222002-02-28 Michael Chastain <mec@shout.net>
1923
1924 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
1925
6a8031a3 19262002-02-28 Daniel Jacobowitz <drow@mvista.com>
265f716b
DJ
1927
1928 * gdbserver/linux-s390-low.c: New file.
1929 * regformats/reg-s390.dat: New file.
1930 * regformats/reg-s390x.dat: New file.
1931 * gdbserver/configure.srv: Add S/390.
1932 * gdbserver/Makefile.in: Add S/390.
1933 * configure.tgt: Enable gdbserver for S/390.
1934
ac469903
EZ
19352002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
1936
1937 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
1938 first line of the doc string for "info dos", except at the end of
1939 the sentence, since the short help stops at the first period.
1940
985cb1a3
JM
19412002-02-28 Jason Merrill <jason@redhat.com>
1942
1943 * dwarf2read.c (dwarf_cfi_name): Add new codes.
1944
c570663e
FF
19452002-02-27 Fred Fish <fnf@redhat.com>
1946
1947 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
1948 comment (dumy -> dummy).
1949
43630227
PS
19502002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
1951
1952 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
1953
b84911e8
RB
19542002-02-27 Rodney Brown <rbrown64@csc.com.au>
1955
1956 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
1957
58caa3dc
DJ
19582002-02-27 Daniel Jacobowitz <drow@mvista.com>
1959
1960 * gdbserver/acconfig.h: New file.
1961 * gdbserver/i387-fp.c: New file.
1962 * gdbserver/i387-fp.h: New file.
1963 * gdbserver/linux-x86-64.c: New file.
1964 * regformats/reg-x86-64.dat: New file.
1965 * configure.tgt: Add x86_64-*-linux* gdbserver support.
1966 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
1967 * gdbserver/configure.in: Add support for regsets.
1968 * gdbserver/config.in: Regenerate.
1969 * gdbserver/configure: Regenerate.
1970 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
1971 * gdbserver/linux-low.h: New file.
1972 * gdbserver/linux-low.c: Include "linux-low.h". Add support
1973 for regsets.
1974 * gdbserver/linux-arm-low.c: Include "linux-low.h".
1975 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
1976 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
1977 * gdbserver/linux-mips-low.c: Include "linux-low.h".
1978 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
1979 * gdbserver/linux-sh-low.c: Include "linux-low.h".
1980 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
1981 "i387-fp.h". Add PTRACE_GETREGS and friends.
1982 * gdbserver/regcache.c (supply_register): New function.
1983 (supply_register_by_name): New function.
1984 (collect_register): New function.
1985 (collect_register_by_name): New function.
1986
93652174
DJ
19872002-02-27 Daniel Jacobowitz <drow@mvista.com>
1988
1989 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
1990 (config.status): Add configure.srv dependency.
1991 (server_h): Add config.h dependency.
1992
a02e4a61
DJ
19932002-02-27 Daniel Jacobowitz <drow@mvista.com>
1994
1995 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
1996 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
1997 * gdbserver/configure.srv: Change i386-*-linux* to use
1998 reg-i386-linux.o.
1999
ce0eebec
AC
20002002-02-26 Andrew Cagney <ac131313@redhat.com>
2001
2002 * x86-64-tdep.c: Re-indent. Update copyright date.
2003
82dbc5f7
AC
20042002-02-26 Andrew Cagney <ac131313@redhat.com>
2005
2006 From Michal Ludvig <mludvig@suse.cz>:
2007 * x86-64-tdep.c (value.h): Delete.
2008 (gdb_assert.h): Include.
2009 (x86_64_register_convert_to_virtual,
2010 x86_64_register_convert_to_raw ): Add check which lets only
2011 floating-point values to be converted.
2012 (value_push): Delete.
2013 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
2014 (i386_gdbarch_init): Number of register_bytes fixed.
2015
e4621584
AC
20162002-02-26 Andrew Cagney <ac131313@redhat.com>
2017
2018 * MAINTAINERS: Add x86-64 target.
2019
81a9a963
AC
20202002-02-26 Andrew Cagney <ac131313@redhat.com>
2021
2022 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
2023 * osfsolib.c (solib_map_sections): Ditto.
2024 * irix5-nat.c (solib_map_sections): Ditto.
2025 * corelow.c (gdb_check_format): Ditto.
2026 * symfile.c (symfile_bfd_open): Ditto.
2027 * solib.c (solib_map_sections): Ditto.
2028 Fix PR gdb/354.
7e336ba1 2029
0f017ab9
AC
20302002-02-26 Andrew Cagney <ac131313@redhat.com>
2031
2032 * remote.c (_initialize_remote): By default, disable ``e'' and
2033 ``E'' step out-of-range packets.
2034
75738c29
AS
20352002-02-26 Andreas Schwab <schwab@suse.de>
2036
2037 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
2038 m68k_linux_frame_saved_pc.
2039 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
2040 in_sigtramp.
2041 (SIGCONTEXT_PC_OFFSET): Remove.
2042 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
2043 m68k_linux_sigtramp_saved_pc): New functions.
2044 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
2045 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
2046 (UCONTEXT_PC_OFFSET): Define.
2047 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
2048 non-RT and RT signal trampolines.
2049
7e8ed687
RE
20502002-02-26 Richard Earnshaw <rearnsha@arm.com>
2051
2052 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
2053 (TARGET_NBPG, STACK_END_ADDR): Delete
2054 (VARIABLES_INSIDE_BLOCK): Delete.
2055
6972bc8b
AC
20562002-02-25 Andrew Cagney <ac131313@redhat.com>
2057
2058 * utils.c (perror_with_name): Make string parameter constant.
2059 (print_sys_errmsg): Ditto.
2060 (query): Ditto.
2061 * defs.h (perror_with_name): Update.
2062 (print_sys_errmsg): Update.
2063 (query): Update.
2064
aa32f823
DJ
20652002-02-25 Daniel Jacobowitz <drow@mvista.com>
2066
2067 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
2068 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
2069
19caaa45
PS
20702002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2071
2072 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
2073 if it already matches the current architecture from the exec file.
2074 Include arch-utils.h for gdbarch_info_init prototype.
2075 * Makefile.in (rs6000-nat.o): Update dependencies.
2076
d951901f
EZ
20772002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
2078
2079 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
2080 list of exported variables.
2081
7ea81414
DJ
20822002-02-24 Daniel Jacobowitz <drow@mvista.com>
2083
2084 * gdbserver/configure.srv: New file.
2085 * gdbserver/configure.in: Use configure.srv instead
2086 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
2087 from it.
2088 * gdbserver/configure: Regenerated.
2089 * gdbserver/terminal.h: New file.
2090 * gdbserver/Makefile.in: Update for configure changes. Remove
2091 more unneeded include paths.
2092
080fe24b
AC
20932002-02-24 Andrew Cagney <ac131313@redhat.com>
2094
2095 From wiz at danbala:
2096 * config/sparc/tm-sp64.h: Fix grammar and typos.
2097 Fix PR gdb/287.
2098
8605d56e
AC
20992002-02-24 Andrew Cagney <ac131313@redhat.com>
2100
2101 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
a4b6fc86
AC
2102 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
2103 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
2104 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
ca557f44
AC
2105 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
2106 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
2107 * s390-tdep.c: Ditto.
92362027
AC
2108 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
2109 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
2110 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
2111 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
2112 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
2113 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
2114 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
2115 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
2116 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
2117 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8605d56e 2118 Fix PR gdb/378.
7e336ba1 2119
8ed32cc0
AC
21202002-02-23 Andrew Cagney <ac131313@redhat.com>
2121
a3007b6f
AC
2122 * lin-thread.c: Delete file.
2123 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
2124 to gdb_proc_service.h.
2125 * configure: Re-generate.
2126
50a9e2f1
AC
2127 * ocd.c (ocd_open): Do not try to open the "ocd" device.
2128 * serial.c (serial_open): Delete check for "ocd".
2129 Fix PR gdb/349.
2130
8b6e7932
AC
2131 * Makefile.in (linux-thread.o): Delete target.
2132 * linux-thread.c: Delete file.
2133
d155c46b
AC
2134 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
2135 renamed SH files to be consistent.
2136
8ed32cc0
AC
2137 * symtab.c (sort_search_symbols): Use xfree.
2138
0e18d038
RE
21392002-02-23 Richard Earnshaw <rearnsha@arm.com>
2140
2141 * arm-linux-tdep.c (arm_linux_init_abi): Register
2142 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
2143 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
2144 definition with undef, since we don't want the sysvr4 definition.
2145 (SKIP_TRAMPOLINE_CODE): Likewise.
2146
27aac7ff
AC
21472002-02-23 Andrew Cagney <ac131313@redhat.com>
2148
2149 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
2150
2151 * configure.in: (AC_CHECK_FUNCS) Added test for
2152 canonicalize_file_name Regenerated.
2153 * config.in, configure: Regenerated.
2154 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
2155 defined use canonicalize_file_name.
7e336ba1 2156
65a6e0ee
MC
21572002-02-23 Michael Chastain <mec@shout.net>
2158
2159 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
2160
47b95330
AC
21612002-02-23 Andrew Cagney <ac131313@redhat.com>
2162
2163 * README: Remove references to cygnus.com.
2164 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
2165 dot com'' form. Remove references to cygnus.com and sourceware.
2166
696f451b
AC
21672002-02-23 Andrew Cagney <ac131313@redhat.com>
2168
2169 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
2170 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
2171 1003.1-2001 no longer allows "head -1".
2172 * gdb/Makefile.in (version.c): Likewise.
2173 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
2174 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
2175 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
2176
bbaca940
AC
21772002-02-23 Andrew Cagney <ac131313@redhat.com>
2178
2179 * cli/cli-decode.c (cmd_cfunc_eq): New function.
2180 * command.h (cmd_cfunc_eq): Declare.
2181 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
2182
2183 * cli/cli-cmds.h (is_complete_command): Change parameter to a
2184 ``struct cmd_list_element *''.
2185 * cli/cli-cmds.c (is_complete_command): Update. Use
2186 cmd_cfunc_eq.
2187 * top.c (execute_command): Pass the command to
2188 is_complete_command.
2189 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
2190
b8b8b047
AC
21912002-02-23 Andrew Cagney <ac131313@redhat.com>
2192
2193 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
2194 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
2195 architecture defines.
2196 * s390-tdep.c (s390_gdbarch_init): Likewise.
2197
19d3fc80
RE
21982002-02-23 Richard Earnshaw <rearnsha@arm.com>
2199
2200 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
2201 (arm_linux_push_arguments): Likewise.
2202 (arm_linux_init_abi): Register them. Also register linux-specific
2203 call_dummy_words.
2204 (find_minsym_and_objfile): Use strcmp, not STREQ.
2205 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
2206 (arm_linux_call_dummy_words): Delete declaration.
2207 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
2208 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
2209 declarations.
2210 (LOWEST_PC): Delete.
2211
3ab13650
PS
22122002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2213
2214 * maint.c (print_section_info): Do not prepend `0x' to filepos
2215 output, it will be handled by local_hex_string_custom.
2216
19d3fc80 22172002-02-23 Richard Earnshaw <rearnsha@arm.com>
85ae890c
RE
2218
2219 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
2220 (store_newfpe_double, store_newfpe_extended, store_fpregister)
2221 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
2222
d85a5daf
JB
22232002-02-22 Jim Blandy <jimb@redhat.com>
2224
2225 Indicate that the bcache functions don't change the strings
2226 they're passed.
2227 * bcache.h (bcache, hash): Add `const' keywords to declarations.
2228 * bcache.c (bcache, hash): Add `const' keywords to definitions.
2229
eeb25b8a
PM
22302002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
2231
2232 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
2233
6badb179
CF
22342002-02-21 Christopher Faylor <cgf@redhat.com>
2235
2236 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
2237 find the complete path to a loaded DLL.
2238
e8717518
FF
22392002-02-21 Fred Fish <fnf@redhat.com>
2240
2241 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
2242 that marks the end of the range of a function, enter a line number
2243 entry that has a line number of zero and a PC offset that matches
2244 the end of the function. This starts a range of PC's for which no
2245 line number information is known.
2246 * symtab.c (find_pc_sect_line): If our best fit is in a range of
2247 PC's for which no line number info is found (line number is zero)
2248 then we didn't find any valid line information.
2249 * symtab.h: Document use of zero line number entry.
2250
9abe5450
EZ
22512002-02-21 Elena Zannoni <ezannoni@redhat.com>
2252
2253 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
2254 (have_ptrace_getvrregs): Define for run time checks.
2255 (gdb_vrregset_t): New type for Altivec register handling.
2256 (fetch_register, store_register): Fetch/store altivec register
2257 when needed.
2258 (fetch_altivec_register, store_altivec_register): New functions.
2259 (supply_vrregset, fill_vrregset): New functions.
2260 (fetch_altivec_registers, store_altivec_registers): New functions.
2261 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
2262 registers as well.
2263
aaa38bb5
AJ
22642002-02-21 Jiri Smid <smid@suse.cz>
2265
2266 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
2267
b34db576
RE
22682002-02-21 Richard Earnshaw <rearnsha@arm.com>
2269
2270 * Makefile.in (armnbsd-nat.o): Update dependencies.
2271 * armnbsd-nat.c (supply_gregset): New function. Common code to
2272 supply the integer register set.
2273 (supply_fparegset): New function. Similar for FPA registers.
2274 (fetch_regs, fetch_fp_regs): Use them.
2275 (fetch_core_registers): Likewise.
2276 (fetch_elfcore_registers): New function.
2277 (arm_netbsd_elfcore_fns): New core-file type specification.
2278 (_initialize_arm_netbsd_nat): Register it.
2279
3e56fc4b
RE
22802002-02-21 Richard Earnshaw <rearnsha@arm.com>
2281
2282 * armnbsd-nat.c: Include gdbcore.h.
2283 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
2284 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
2285 'void' to declaration, to shut up ARI.
2286 (fetch_core_registers): Make static. Rewrite using supply_register.
2287 (arm_netbsd_core_fns): New core-file type specification.
2288 (_initialize_arm_netbsd_nat): New function.
2289
097f6b0b
CF
22902002-02-21 Christopher Faylor <cgf@redhat.com>
2291
2292 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
2293 value.
2294
c914e0cc
CF
22952002-02-20 Christopher Faylor <cgf@redhat.com>
2296
2297 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
2298 fails.
2299
385fa495
DJ
23002002-02-20 Daniel Jacobowitz <drow@mvista.com>
2301
2302 * jv-exp.y (parse_number): Change type of implicit longs
2303 to builtin_type_uint64.
2304
e5f1222d
DJ
23052002-02-20 Daniel Jacobowitz <drow@mvista.com>
2306
2307 * gdbserver/linux-low.c (mywait): Change argument to waitpid
2308 to be an integer instead of a `union wait'.
2309
75c9abc6
DJ
23102002-02-20 Daniel Jacobowitz <drow@mvista.com>
2311
2312 * mips-linux-nat.c: Call the operating system GNU/Linux.
2313 * mips-linux-tdep.c: Likewise.
2314 * mips-tdep.c: Likewise.
2315
551792a5
DJ
23162002-02-20 Daniel Jacobowitz <drow@mvista.com>
2317
2318 Fix PR gdb/265.
2319 * jv-exp.y (parse_number): Handle 64-bit integers.
2320
ee6e2b82
DJ
23212002-02-20 Daniel Jacobowitz <drow@mvista.com>
2322
2323 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
2324 AC_STDC_HEADERS to AC_HEADER_STDC.
2325 * gdbserver/configure: Regenerated.
2326
a48442a0
RE
23272002-02-20 Richard Earnshaw <rearnsha@arm.com>
2328
2329 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
2330 is defined.
2331 * sparc-tdep.c (get_longjmp_target): Likewise.
2332
fe419ffc
RE
23332002-02-20 Richard Earnshaw <rearnsha@arm.com>
2334
2335 * News: Add news about ARM and Multi-arch. Mention the new target
2336 arm*-*-netbsd*.
2337
5832ed7e
JB
23382002-02-19 Jim Blandy <jimb@redhat.com>
2339
2340 * stabsread.c (error_type_complaint): Improve error message.
2341
84563040
DJ
23422002-02-19 Daniel Jacobowitz <drow@mvista.com>
2343
2344 * gdbserver/README: Update documentation.
2345 * gdbserver/configure.in: Update configury to match documentation.
2346 * gdbserver/Makefile.in: Likewise.
2347 * gdbserver/configure: Regenerated.
2348 * gdbserver/aclocal.m4: New file, generated by aclocal.
2349 * gdbserver/config.in: New file, generated by autoheader.
2350
375fd65b
RE
23512002-02-19 Richard Earnshaw <rearnsha@arm.com>
2352
2353 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
2354 armnbsd-nat.c.
2355
08216dd7
RE
23562002-02-19 Richard Earnshaw <rearnsha@arm.com>
2357
2358 * arm-tdep.h (enum arm_float_model): New enum.
2359 (struct gdbarch_tdep): Add fp_model.
2360 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
2361 up floating-point conversions until we know the floating-point model
2362 in use by the inferior. Don't complain about being unable to
2363 determine the ABI of the inferior when we don't have one.
2364 (arm_extract_return_value): Support different floating-point models.
2365 (arm_store_return_value): Likewise.
aaa38bb5 2366 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
08216dd7
RE
2367 ARM_FLOAT_SOFT.
2368 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
2369
65d6d66a
PS
23702002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2371
2372 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
2373 of ``current_gdbarch''.
2374
47221191
RE
23752002-02-19 Richard Earnshaw <rearnsha@arm.com>
2376
2377 * armnbsd-nat.c : ANSIfy all function declarations.
2378 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
2379 (fetch_inferior_registers): Re-implement in terms of above.
2380 (store_register, store_regs, store_fp_register, store_fp_regs): New.
2381 (store_inferior_registers): Re-implement in terms of above.
2382
fdf39c9a
RE
23832002-02-19 Richard Earnshaw <rearnsha@arm.com>
2384
aaa38bb5 2385 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
fdf39c9a
RE
2386 kernel.
2387 * arm-linux-tdep.c: Likewise.
2388 * config/arm/tm-linux.h: Likewise.
2389
93247f88
RE
23902002-02-19 Richard Earnshaw <rearnsha@arm.com>
2391
2392 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
2393 * config/arm/nbsd.mt (TM_FILE): Delete.
2394 * config/arm/tm-nbsd.h: Delete.
2395
d7b486e7
RE
23962002-02-19 Richard Earnshaw <rearnsha@arm.com>
2397
2398 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
2399 Initialize CALL_DUMMY_LENGTH.
2400
41d39a95
RE
24012002-02-19 Richard Earnshaw <rearnsha@arm.com>
2402
2403 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
2404 function.
2405 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
aaa38bb5 2406 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
41d39a95
RE
2407 defines one thing and that is incorrect for this port.
2408 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
2409
e1195560
PM
24102002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
2411
2412 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
2413
c1748f97
PM
24142002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
2415
2416 * win32-nat.c (display_selector): New function. Displays information
2417 about the information returned by GetThreadSelectorEntry API function.
2418 (display_selectors): New function. Displays the infomation of
2419 the selector given as argument, or of CS, DS ans FS selectors
2420 if no argument is given.
2421 ( _initialize_inftarg): Add "w32" as info prefix command.
2422 Add "info w32 selector" as command calling display_selectors.
2423
e41e6bbf
PM
24242002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
2425
2426 * i386-tdep.c (get_longjmp_target): Fix compilation failure
2427 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
2428 if not defined.
2429
0d3a9f48
RE
24302002-02-18 Richard Earnshaw <rearnsha@arm.com>
2431
2432 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
2433
3fb4b924
RE
24342002-02-18 Richard Earnshaw <rearnsha@arm.com>
2435
2436 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
2437 (arm_fix_call_dummy): Call it.
2438 (arm_call_dummy_breakpoint_offset): Delete.
2439 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
2440 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
2441
7f55af32
AC
24422002-02-18 Andrew Cagney <ac131313@redhat.com>
2443
2444 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
2445 Default to func_frame_chain_valid.
2446 * gdbarch.h, gdbarch.c: Re-generate.
2447 * frame.h (FRAME_CHAIN_VALID): Delete definition.
2448
05f13b9c
EZ
24492002-02-18 Elena Zannoni <ezannoni@redhat.com>
2450
2451 * ppc-linux-nat.c: Update copyright.
2452 (fetch_register, store_register): Add tid parameter, don't compute
2453 tid here.
2454 (fetch_ppc_registers, store_ppc_registers): Add tid
2455 parameter. Pass it along to callees.
2456 (fetch_inferior_registers, store_inferior_registers): Compute tid
2457 here, and pass it to calleed functions.
2458 (fill_gregset, supply_fpregset): Clean up formatting.
2459
d7afb4c9
RE
24602002-02-18 Richard Earnshaw <rearnsha@arm.com>
2461
2462 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
2463 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
2464
9df628e0
RE
24652002-02-18 Richard Earnshaw <rearnsha@arm.com>
2466
2467 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
2468 * gdbarch.c gdbarch.h: Regenerate.
2469 * breakpoint.c (create_longjmp_breakpoint): Always compile this
2470 function.
2471 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
2472 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
2473 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
2474
2475 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
2476 * arm-tdep.c (arm_get_longjmp_target): New function.
2477 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
2478 this to a positive value register arm_get_longjmp_target as the
2479 longjmp handler.
2480 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
2481 (arm_linux_init_abi): Set up longjmp description in tdep.
2482 * armnbsd-nat.c (get_longjmp_target): Delete.
2483 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
2484 description in tdep.
2485 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
2486 (get_longjmp_target): Delete declaration.
2487 (GET_LONGJMP_TARGET): Delete.
2488 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
2489 (GET_LONGJMP_TARGET): Delete.
2490
57bc8964
KB
24912002-02-17 Kevin Buettner <kevinb@redhat.com>
2492
2493 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
2494 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
2495 of ``current_gdbarch''.
2496
83d31a92
TT
24972002-02-17 Tom Tromey <tromey@redhat.com>
2498
2499 * cli/cli-cmds.c (compare_strings): New function.
2500 (complete_command): Only print each unique item once.
2501 * completer.h (complete_line): Declare.
2502 * completer.c (complete_line): New function.
2503 (line_completion_function): Use it.
2504
17ef5d92
AC
25052002-02-16 Andrew Cagney <ac131313@redhat.com>
2506
2507 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
2508 * gdbarch.h, gdbarch.c: Re-generate.
2509
491b8946
DJ
25102002-02-16 Daniel Jacobowitz <drow@mvista.com>
2511
2512 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
2513
25142002-02-16 Daniel Jacobowitz <drow@mvista.com>
2515
2516 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
2517 * valops.c (value_arg_coerce): Don't take the address of a reference
2518 to convert an argument to a reference.
2519
dfe7f3ac
CF
25202002-02-15 Christopher Faylor <cgf@redhat.com>
2521
2522 * win32-nat.c (get_image_name): New function.
2523 (handle_load_dll): Use get_image_name function.
2524 (get_child_debug_event): Avoid registering debug events until possibly
2525 execed process is started.
2526 (child_create_inferior): Allow invocation via shell so that command
2527 line redirection, etc. works ok.
2528 (_initialize_inftarg): Add new command: "set shell" to control whether
2529 a shell is used to start a process.
2530
1d33e73a
DJ
25312002-02-15 Daniel Jacobowitz <drow@mvista.com>
2532
2533 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
2534 instead of find_register_by_number.
2535 (cannot_store_register): Likewise.
2536
48cd0caa
PM
25372002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
2538
aaa38bb5 2539 * dwarf2read.c: Replace fprintf (stderr, ...) by
48cd0caa
PM
2540 fprintf_unfiltered (gdb_stderr, ...).
2541
8656e7d8
DJ
25422002-02-15 Daniel Jacobowitz <drow@mvista.com>
2543
2544 * gdbserver/gdbserver.1: Document --attach.
2545
66e810cd
RE
25462002-02-15 Richard Earnshaw <rearnsha@arm.com>
2547
2548 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
2549 descriptions.
2550 * arm-tdep.c (arm_default_arm_le_breakpoint)
2551 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
2552 (arm_default_thumb_be_breakpoint): New. Initialize them from
2553 traditional breakpoint defines.
2554 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
2555 (arm_gdbarch_init): Initialize new breakpoint variables.
2556 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
2557 (arm_linux_init_abi): Initialize linux-specific breakpoint.
2558 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
2559 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
2560 code out to ...
2561 (arm_netbsd_init_abi_common): ... here; new function.
2562 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
2563 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
2564 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
2565 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
2566
97e03143
RE
25672002-02-15 Richard Earnshaw <rearnsha@arm.com>
2568
2569 * arm-tdep.h (enum arm_abi): New enum.
2570 (struct gdbarch_tdep): New structure.
2571 (LOWEST_PC): Provide a default.
2572 (arm_gdbarch_register_os_abi): Declare new function.
2573 * arm-tdep.c (arm_abi_names): New array.
2574 (process_note_abi_tag_sections): New function.
2575 (get_elfosabi): New function.
2576 (arm_gdbarch_register_os_abi): New function.
2577 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
2578 support for that ABI has been built in, then call the appropriate
2579 configuration routine. Use gdbarch_num_regs() to get the number
2580 of registers.
2581 (arm_dump_tdep): New function.
2582 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
2583 place-holder functions.
2584 (_initialize_arm_tdep): Register them.
2585 * config/arm/tm-arm.h (LOWEST_PC): Delete.
2586
2587 * armnbsd-tdep.c: New file.
2588 * Makefile.in (armnbsd-tdep.o): Add dependencies.
2589 * config/arm/nbsd.mt (TDEPFILES): Add it.
2590 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
2591
2592 * armnbsd-nat.c: Include regcache.h.
2593 * Makefile.in (armnbsd-nat.o): Update dependency list.
2594
2595 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
2596
ad68be46
DJ
25972002-02-14 Daniel Jacobowitz <drow@mvista.com>
2598
2599 * gdbserver/Makefile.in: Fix typos in target rules.
2600
003d6d1d
DJ
26012002-02-14 Daniel Jacobowitz <drow@mvista.com>
2602
aaa38bb5 2603 Fix part of PR gdb/267.
003d6d1d
DJ
2604 * linespec.c (find_methods): Handle constructors specially for now.
2605
6b230f1b
CV
26062002-02-14 Corinna Vinschen <vinschen@redhat.com>
2607
2608 * arm-tdep.c (arm_push_arguments): Eliminate special float type
2609 handling.
2610 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
2611 standard_coerce_float_to_double().
2612
1ea98d12
CF
26132002-02-14 Christopher Faylor <cgf@redhat.com>
2614
2615 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
2616 GDBINIT_FILENAME.
2617
dd47e6fd
EZ
26182002-02-14 Elena Zannoni <ezannoni@redhat.com>
2619
2620 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
2621 find_variant_by_name, because it confuses the multiarch
2622 framework. Return NULL if there isn't an architecture with the
2623 user supplied name, instead of forcing a different one without
2624 recording the change with the multiarch machinery.
2625 (find_variant_by_name): Delete.
2626
d7e39b9e
PS
26272002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2628
2629 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
2630 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
2631
76e42a4f
MH
26322002-02-13 Martin M. Hunt <hunt@redhat.com>
2633
aaa38bb5 2634 * stack.c (print_frame_info_base): When calling
76e42a4f
MH
2635 print_frame_info_listing_hook, set current_source_symtab.
2636
0a30fbc4
DJ
26372002-02-14 Daniel Jacobowitz <drow@mvista.com>
2638
2639 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
2640 and remove unused $(INCLUDE_DIR).
2641 Add regcache.c to OBS.
2642 Add generated register protocol files to clean target.
2643 Update dependencies for new objects, obsolete old target code.
2644
2645 * gdbserver/linux-low.c: Remove all platform-specific code to
2646 new files. Remove various dead code. Update to use regcache
2647 functionality.
2648 * gdbserver/remote-utils.c (fromhex): Add return statement
2649 to quiet warning.
2650 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
2651 constant.
2652 (input_interrupt): Add integer parameter to match prototype
2653 of a signal handler.
2654 (outreg): Use register_data ().
2655 (prepare_resume_reply): Use gdbserver_expedite_regs.
2656 * gdbserver/server.c (main): Dynamically allocate own_buf because
2657 PBUFSIZ is no longer constant. Use registers_to_string () and
2658 registers_from_string ().
2659 * gdbserver/server.h: No longer include "defs.h". Add prototypes
2660 for error (), fatal (), and warning (). Update definition of
2661 PBUFSIZ to use regcache functionality. Add include guard.
2662 * gdbserver/utils.c (fatal): Add missing ``const''.
2663 (warning): New function.
2664
2665 * regformats/regdat.sh: Include "regcache.h" in generated files.
2666 Provide init_registers () function.
2667 * regformats/regdef.h: Add prototype for set_register_cache ().
2668 Add include guard.
2669
2670 * gdbserver/linux-arm-low.c: New file.
2671 * gdbserver/linux-i386-low.c: New file.
2672 * gdbserver/linux-ia64-low.c: New file.
2673 * gdbserver/linux-m68k-low.c: New file.
2674 * gdbserver/linux-mips-low.c: New file.
2675 * gdbserver/linux-ppc-low.c: New file.
2676 * gdbserver/linux-sh-low.c: New file.
2677
2678 * gdbserver/regcache.c: New file.
2679 * gdbserver/regcache.h: New file.
2680
2681 * gdbserver/low-linux.c: Removed obsolete file.
2682
4cc841d0
DJ
26832002-02-14 Daniel Jacobowitz <drow@mvista.com>
2684
2685 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
2686 * config/i386/linux.mt: Likewise.
2687 * config/ia64/linux.mt: Likewise.
2688 * config/m68k/linux.mh: Likewise.
2689 * config/powerpc/linux.mh: Likewise.
2690 * config/mips/linux.mt: Likewise.
2691
2692 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
2693
2694 * config/i386/i386lynx.mh: Mark gdbserver variables
2695 as (currently) obsolete for this target.
2696 * config/i386/nbsd.mt: Likewise.
2697 * config/i386/nbsdelf.mt: Likewise.
2698 * config/m32r/m32r.mt: Likewise.
2699 * config/m68k/m68klynx.mh: Likewise.
2700 * config/m68k/nbsd.mt: Likewise.
2701 * config/m68k/sun3os4.mh: Likewise.
2702 * config/mips/vr5000.mt: Likewise.
2703 * config/ns32k/nbsd.mt: Likewise.
2704 * config/pa/hppabsd.mh: Likewise.
2705 * config/pa/hppaosf.mh: Likewise.
2706 * config/powerpc/nbsd.mt: Likewise.
2707 * config/rs6000/rs6000lynx.mh: Likewise.
2708 * config/s390/s390.mt: Likewise.
2709 * config/s390/s390x.mt: Likewise.
2710 * config/sparc/sparclynx.mh: Likewise.
2711 * config/sparc/sun4os4.mh: Likewise.
2712 * config/i386/x86-64linux.mt: Likewise.
2713 * config/sparc/linux.mh: Likewise.
2714
a85f51e7
DJ
27152002-02-14 Daniel Jacobowitz <drow@mvista.com>
2716
2717 * configure.tgt: Configure gdbserver only for known working
2718 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
2719 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
2720 SUBDIRS if it is configured. Update comment for ${nativefile}.
2721 * configure: Regenerated.
2722
65554fef
MS
27232002-02-13 Michael Snyder <msnyder@redhat.com>
2724
670a52db
MS
2725 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
2726
6dbdc4a3
MS
2727 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
2728 (default_gcore_mach): Just return 0, work around a problem in bfd.
2729 (default_gcore_target): OK to return NULL if exec_bfd is null.
2730 (make_mem_sec): Use a cast, avoid a warning.
2731
2732 * procfs.c (find_memory_regions_callback): Use a cast instead of
aaa38bb5 2733 calling host_pointer_to_address (which complains if
6dbdc4a3
MS
2734 sizeof (host pointer) != sizeof (target pointer)).
2735 (procfs_make_note_section): Avoid overflow in psargs string.
2736
aaa38bb5 2737 * procfs.c (procfs_make_note_section): Make the default
65554fef
MS
2738 implementation return an error.
2739
27402002-02-13 Rodney Brown <rbrown64@csc.com.au>
2741
2742 * procfs.c (procfs_make_note_section): Provide a default definition
2743 (for alpha-dec-osf4.0f). Fix typos.
2744
1e4d76e7
EZ
27452002-02-13 Elena Zannoni <ezannoni@redhat.com>
2746
2747 * linux-proc.c: Add include of regcache.h.
2748 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
2749
b6d1a1d5
AC
27502002-02-13 Andrew Cagney <ac131313@redhat.com>
2751
2752 From 2002-01-18 Greg McGary <greg@mcgary.org>:
aaa38bb5
AJ
2753 * memattr.c (create_mem_region): Disallow useless empty region.
2754 Regions are half-open intervals, so allow [A..B) [B..C) as
65554fef 2755 non-overlapping.
b6d1a1d5 2756
6c6ea35e
MC
27572002-02-13 Michael Chastain <mec@shout.net>
2758
2759 * defs.h: Kill CONST_PTR.
2760 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
2761 * c-lang.c (c_builtin_types): Likewise.
2762 * ch-lang.c (ch_builtin_types): Likewise.
2763 * f-lang.c (f_builtin_types): Likewise.
2764 * language.c (unknown_builtin_types): Likewise.
2765 * m2-lang.c (m2_builtin_types): Likewise.
2766 * p-lang.c (pascal_builtin_types): Likewise.
2767 * scm-lang.c (c_builtin_types): Likewise.
2768
3e0b0f48
KS
27692002-02-13 Keith Seitz <keiths@redhat.com>
2770
2771 * arm-tdep.h (arm_get_next_pc): Add declaration.
2772
67255d04
RE
27732002-02-13 Richard Earnshaw <rearnsha@arm.com>
2774
2775 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
2776 with other related struct-returning functions.
2777 (arm_extract_struct_value_address): New function.
2778 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
2779 initialize float_format, double_format and long_double_format as
2780 appropriate to the endianness of the target.
2781 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
2782 (arm_use_struct_convention): Delete declaration.
2783 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
2784
079777f6
KS
27852002-02-13 Keith Seitz <keiths@redhat.com>
2786
2787 * defs.h (core_addr_to_string_nz): New function.
2788
34588f23
MK
27892002-02-13 Mark Kettenis <kettenis@gnu.org>
2790
2791 Apply missing bits of 2002-01-15 patch.
2792 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
2793 (fill_fpregset): Use i387_fill_fsave.
2794
49b563f9
KS
27952002-02-12 Keith Seitz <keiths@redhat.com>
2796
49b563f9
KS
2797 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
2798 (core_addr_to_string_nz): New function.
2799
aeb98c60
RE
28002002-02-11 Richard Earnshaw <rearnsha@arm.com>
2801
2802 * arm-linux-nat.c: Really include arm-tdep.h.
2803 * config/arm/tm-linux.h (struct type, struct value): Declare.
2804
65554fef
MS
28052002-02-11 Michael Snyder <msnyder@redhat.com>
2806
2807 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
2808 (gcore section): Ifdef for Solaris and Unixware only.
2809 (procfs_do_thread_registers): Unixware needs one lwpstatus
2810 per thread (not one prstatus or pstatus).
2811 (procfs_make_note_section): Iterate only over kernel threads (lwps),
2812 not over all gdb threads. For unixware, call elfcore_write_pstatus
2813 once before iterating over threads.
2814
34e8f22d
RE
28152002-02-11 Richard Earnshaw <rearnsha@arm.com>
2816
2817 * arm-tdep.h: New file.
2818 * arm-tdep.c: Include arm-tdep.h.
2819 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
2820 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
2821 (arm_print_float_info, arm_register_type, convert_to_extended)
2822 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
2823 (arm_extract_return_value, arm_register_name): Make static.
2824 (arm_software_single_step): Similarly. Fix types in declaration.
2825 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
2826 (arm_store_return_value, arm_store_struct_return): New functions.
2827 (arm_gdbarch_init): Register the above functions. Also register
2828 call_dummy_start_offset, sizeof_call_dummy_words,
2829 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
2830 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
aaa38bb5 2831 max_register_virtual_size, register_size. Set up
34e8f22d
RE
2832 prologue_cache.saved_regs here, rather than ...
2833 (_initialize_arm_tdep): ... here.
2834 * config/arm/tm-arm.h (struct type, struct value): Delete forward
2835 declarations.
2836 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
2837 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
2838 (arm_print_float_info, arm_register_type, convert_to_extended)
2839 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
2840 (arm_extract_return_value, arm_register_name): Delete declarations.
2841 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
2842 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
2843 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
2844 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
2845 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
2846 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
2847 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
2848 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
2849 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
2850 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
2851 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
2852 (arm_get_next_pc): No-longer static -- these are needed by the RDI
2853 interface.
2854 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
2855 * remote-rdi.c remote-rdp.c: Likewise.
2856 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
2857 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
2858 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
2859 definition.
2860
2861 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
2862 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
2863 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
2864 from non-ARM_ prefixed definitions.
2865 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
2866 all uses of above.
2867 * remote-rdi.c remote-rdp.c: Likewise.
2868 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
2869
148754e5
RE
28702002-02-11 Richard Earnshaw <rearnsha@arm.com>
2871
2872 * arm-tdep.c (arm_frameless_function_invocation)
2873 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
2874 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
2875 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
2876 (arm_pop_frame, arm_get_next_pc): Make static.
2877 (arm_gdbarch_init): Register above in gdbarch structure.
2878 (arm_read_fp): Renamed from arm_target_read_fp.
2879 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
2880 * config/arm/tm-arm.h (arm_frameless_function_invocation)
2881 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
2882 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
2883 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
2884 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
2885 (arm_pc_is_thumb_dummy): Delete declarations.
fcfb8836
RE
2886 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
2887 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
2888 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
2889 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
148754e5 2890
434d2d4f
DJ
28912002-02-10 Daniel Jacobowitz <drow@mvista.com>
2892
2893 * symtab.c (compare_search_syms): New function.
2894 (sort_search_symbols): New function.
2895 (search_symbols): Sort symbols after searching rather than
2896 before.
2897
55241689
AC
28982002-02-10 Andrew Cagney <ac131313@redhat.com>
2899
2900 * NEWS: Linux -> GNU/Linux.
2901
028c194b
AC
29022002-02-10 Andrew Cagney <ac131313@redhat.com>
2903
2904 * gdbarch.sh: For for level one methods, disallow a definition
2905 when partially multi-arched. Add comments explaining rationale.
2906 * gdbarch.h: Re-generate.
2907
6acf50cd
AC
29082002-02-10 Andrew Cagney <ac131313@redhat.com>
2909
2910 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
2911 multi-arch partial.
aaa38bb5 2912
50248794
AC
29132002-02-10 Andrew Cagney <ac131313@redhat.com>
2914
2915 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
2916 field. Use diff -u.
2917 * gdbarch.c: Re-generate.
2918
c30e0066
AC
29192002-02-10 Andrew Cagney <ac131313@redhat.com>
2920
9b56c5f3 2921 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
c30e0066
AC
2922 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
2923 partial.
2924
6e6d6484
AC
29252002-02-10 Andrew Cagney <ac131313@redhat.com>
2926
2927 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
2928 multi-arch partial.
2929 (PUSH_ARGUMENTS): Switch to using predefault.
2930 * gdbarch.c: Regenerate.
2931
c203844d
AC
29322002-02-10 Andrew Cagney <ac131313@redhat.com>
2933
2934 * valops.c (PUSH_ARGUMENTS): Delete definition.
2935 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
2936 partial. Default to default_push_arguments.
2937 * gdbarch.h, gdbarch.c: Regenerate.
2938
b5a2688f
AC
29392002-02-09 Andrew Cagney <ac131313@redhat.com>
2940
2941 * defs.h (throw_exception): Rename return_to_top_level. Update
2942 comments.
2943 * utils.c (error_stream, internal_verror, quit): Ditto.
2944 * top.c (throw_exception, catcher): Ditto.
2945 * sparclet-rom.c (sparclet_load): Ditto.
2946 * remote.c (interrupt_query, minitelnet): Ditto.
2947 * remote-sds.c (interrupt_query): Ditto.
2948 * remote-mips.c (mips_error, mips_kill): Ditto.
2949 * ocd.c (interrupt_query): Ditto.
2950 * monitor.c (monitor_interrupt_query): Ditto.
2951 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
2952 * target.h: Update comment.
aaa38bb5 2953
b5a2688f 2954 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
aaa38bb5 2955
2fa5c1e0
AC
29562002-02-09 Andrew Cagney <ac131313@redhat.com>
2957
2958 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
2959 default_double_format.
2960 * gdbarch.h, gdbarch.c: Re-generate.
2961 * findvar.c (floatformat_unknown): Delete variable definition.
2962 * doublest.h (floatformat_unknown): Delete variable declaration.
2963
da966255
JB
29642002-02-09 Jim Blandy <jimb@redhat.com>
2965
2966 * stabsread.c (read_type): Add code to parse Sun's syntax for
2967 prototyped function types.
2968
123a4891
AC
29692002-02-09 Andrew Cagney <ac131313@redhat.com>
2970
2971 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
2972 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
2973
fb39c8f3
PS
29742002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2975
2976 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
2977 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
2978 now _initialize_xcoffsolib gets called again and overrides the
2979 commands from solib.c in a native configuration.
2980
0b87a11d
MK
29812002-02-09 Mark Kettenis <kettenis@gnu.org>
2982
2983 * doublest.c (store_typed_floating): Don't try to return a value.
2984 Fixes PR gdb/290.
2985
bdc2fc72
JB
29862002-02-08 Jim Blandy <jimb@redhat.com>
2987
2988 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
2989 is prototyped and has no arguments, print its argument list as
2990 `(void)'.
2991
da69bbcf
CD
29922002-02-08 Chris Demetriou <cgd@broadcom.com>
2993
2994 * MAINTAINERS (write-after-approval): Add myself.
2995 (paper-trail): I've escaped!
aaa38bb5 2996
b69571f5
CF
29972002-02-08 Christopher Faylor <cgf@redhat.com>
2998
2999 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
3000 changes.
3001 (_initialize_check_for_gdb_ini): Ditto.
3002
f6871398
MH
30032002-02-08 Martin M. Hunt <hunt@redhat.com>
3004
3005 * win32-nat.c (cygwin_pid_to_str): Fix typo.
3006 xaprintf -> xasprintf.
3007
4e52d31c
PM
30082002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
3009
3010 * win32-nat.c: Remove use of printf and sprintf functions.
3011
39bbf761
RE
30122002-02-08 Richard Earnshaw <rearnsha@arm.com>
3013
3014 * arm-tdep.c (arm_frame_chain_valid): Make static.
3015 (arm_push_arguments): Likewise.
3016 (arm_gdbarch_init): New function.
3017 (_initialize_arm_tdep): Call it.
3018 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
3019 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
3020 (FRAME_CHAIN_VALID): Delete.
3021 (arm_frame_chain_valid): Delete declaration.
3022 (PUSH_ARGUMENTS): Delete.
3023 (arm_push_arguments): Delete declaration.
3024 (CALL_DUMMY_P): Delete.
3025
9c9532c9
CV
30262002-02-08 Andrew Cagney <ac131313@redhat.com>
3027 Corinna Vinschen <vinschen@redhat.com>
3028
3029 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
3030 on builtin float types.
3031
4e8f7a8b
DJ
30322002-02-08 Daniel Jacobowitz <drow@mvista.com>
3033
3034 * utils.c: Include <curses.h> before "bfd.h".
3035 * tui/tui-hooks.c: Likewise.
3036 * tui/tui.c: Likewise.
3037 * tui/tuiCommand.c: Likewise.
3038 * tui/tuiData.c: Likewise.
3039 * tui/tuiDataWin.c: Likewise.
3040 * tui/tuiDisassem.c: Likewise.
3041 * tui/tuiGeneralWin.c: Likewise.
3042 * tui/tuiIO.c: Likewise.
3043 * tui/tuiLayout.c: Likewise.
3044 * tui/tuiRegs.c: Likewise.
3045 * tui/tuiSource.c: Likewise.
3046 * tui/tuiSourceWin.c: Likewise.
3047 * tui/tuiStack.c: Likewise.
3048 * tui/tuiWin.c: Likewise.
3049
cd4bffcf
EZ
30502002-02-07 Elena Zannoni <ezannoni@redhat.com>
3051
3052 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
3053 to include space for pseudoregs as well. Update loops accordingly.
3054 (sh_fp_frame_init_saved_regs): Ditto.
3055 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
3056
26806ce2
AC
30572002-02-07 Andrew Cagney <ac131313@redhat.com>
3058
3059 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
3060 Add Richard Earnshaw to Arm maintainers.
3061
97fdab62
AC
30622002-02-07 Andrew Cagney <ac131313@redhat.com>
3063
a6b98203
AC
3064 * defs.h (warning_begin): Delete declaration.
3065
97fdab62
AC
3066 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
3067 Delete macro.
3068
78b29b40
MS
30692002-02-07 Michael Snyder <msnyder@redhat.com>
3070
aaa38bb5 3071 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
78b29b40
MS
3072 Logic bug, remove misplaced else.
3073
d8849953
KD
30742002-02-07 Klee Dienes <klee@apple.com>
3075
3076 * fork-inferior.c (fork_inferior): Add '!' to the list of
3077 characters that need to be quoted when building a string for the
3078 shell. Quote '!' specifically with a backslash, since CSH chokes
3079 when trying to evaluate "str!str".
aaa38bb5 3080
095778a0
NC
30812002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
3082
3083 * rdi-share/host.h: Only provide a typedef for bool if it is not
3084 defined.
3085
1900040c
MS
30862002-02-04 Michael Snyder <msnyder@redhat.com>
3087
3088 * breakpoint.h (enum bptype): Add new overlay event bp type.
3089 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
aaa38bb5 3090
1900040c
MS
3091 * breakpoint.c (create_internal_breakpoint): New function.
3092 (internal_breakpoint_number): Moved into create_internal_breakpoint.
3093 (create_longjmp_breakpoint): Use create_internal_breakpoint.
3094 (create_thread_event_breakpoint): Ditto.
3095 (create_solib_event_breakpoint): Ditto.
3096 (create_overlay_event_breakpoint): New function.
3097 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
3098 (update_breakpoints_after_exec): Delete and re-initialize
3099 overlay event breakpoints after an exec. Add FIXME comment
3100 about longjmp breakpoint.
3101 (print_it_typical): Ignore overlay event breakpoints.
3102 (print_one_breakpoint): Ditto.
3103 (mention): Ditto.
3104 (bpstat_what): Do not stop for overlay event breakpoints.
3105 (delete_breakpoint): Don't delete overlay event breakpoints.
3106 (breakpoint_re_set_one): Delete the overlay event breakpoint.
3107 (breakpoint_re_set): Re-create overlay event breakpoint.
3108
3109 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
3110 (overlay_manual_command): Disable overlay breakpoints.
3111 (overlay_off_command): Disable overlay breakpoints.
3112
082fc60d
RE
31132002-02-06 Richard Earnshaw <rearnsha@arm.com>
3114
3115 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
3116 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
3117 to here from config/tm-arm.h.
3118 (coff_sym_is_thumb): Make static.
3119 (arm_elf_make_msymbol_special): New function.
3120 (arm_coff_make_msymbol_special): New function.
3121 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
3122 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
3123 (coff_sym_is_thumb): Delete declaration.
3124 (arm_elf_make_msymbol_special): Declare.
3125 (arm_coff_make_msymbol_special): Declare.
3126 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
3127 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
3128
039c5766
RE
31292002-02-06 Richard Earnshaw <rearnsha@arm.com>
3130
3131 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
3132
31332002-02-06 Richard Earnshaw <rearnsha@arm.com>
3134
3135 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
3136 * gdbarch.c gdbarch.h: Regenerate.
3137 * arch-utils.c (default_print_float_info): New function.
3138 * arch-utils.h (default_print_float_info): Prototype it.
3139 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
3140 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
3141 (PRINT_FLOAT_INFO): Document it.
3142
3143 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
3144 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
3145 (PRINT_FLOAT_INFO): Define.
3146
58fa08f0
PM
31472002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
3148
aaa38bb5 3149 * win32-nat.c (_initialize_check_for_gdb_ini):
58fa08f0
PM
3150 Add typecast to sprintf argument to suppress a warning.
3151
7393af7c
PM
31522002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
3153
58fa08f0 3154 * win32-nat.c (last_sig): Changed type of variable to target_signal,
7393af7c
PM
3155 to allow easier handling of pass state.
3156 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
3157 that gives exception name and address.
3158 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
aaa38bb5 3159 and set last_sig value to ourstatus->value.sig. Some missing
7393af7c 3160 exceptions added.
aaa38bb5
AJ
3161 (child_continue): Correctly report continue_status.
3162 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
7393af7c 3163 TARGET_SIGNAL_0 (new default value).
aaa38bb5 3164 (child_resume): consider sig argument passed to decide if
7393af7c
PM
3165 the exception should be passed to debuggee or not.
3166
6af4589c
MS
31672002-02-05 Michael Snyder <msnyder@redhat.com>
3168
3169 * regcache.c (fetch_register): Call target_fetch_register
3170 only if we don't call FETCH_PSEUDO_REGISTER.
3171 (store_register): Call target_store_register only if we
3172 don't call STORE_PSEUDO_REGISTER.
3173
a2cf933a
EZ
31742002-02-05 Elena Zannoni <ezannoni@redhat.com>
3175
3176 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
3177 ELF_MAKE_MSYMBOL_SPECIAL.
3178 * gdbarch.c, gdbarch.h: Regenerate.
3179 * arch-utils.c (default_make_msymbol_special): New function.
aaa38bb5 3180 * arch-utils.h (default_make_msymbol_special): Export.
a2cf933a
EZ
3181 * elfread.c (elf_symtab_read): Compile use of
3182 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
3183 multiarched.
3184 * coffread.c (coff_symtab_read): Ditto, for
3185 COFF_MAKE_MSYMBOL_SPECIAL.
3186
6bb7be43
JB
31872002-02-05 Jim Blandy <jimb@redhat.com>
3188
3189 * solib-svr4.c (svr4_truncate_ptr): New function.
3190 (svr4_relocate_section_addresses): Do the address arithmetic with
3191 the appropriate truncation for target addresses, even when
3192 CORE_ADDR is larger than a target address.
3193
e18651ec
DJ
31942002-02-05 Daniel Jacobowitz <drow@mvista.com>
3195
3196 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
3197 to (int *).
3198
6b2725be
DJ
31992002-02-05 Daniel Jacobowitz <drow@mvista.com>
3200
3201 * gdbserver/linux-low.c (kill_inferior): Remove commented out
3202 code.
3203
fca9e603
DJ
32042002-02-05 Daniel Jacobowitz <drow@mvista.com>
3205
3206 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
3207
6c537a52
DJ
32082002-02-05 Daniel Jacobowitz <drow@mvista.com>
3209
3210 * gdbserver/linux-low.c: Remove unused include files.
3211
d844cde6
DJ
32122002-02-05 Daniel Jacobowitz <drow@mvista.com>
3213
3214 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
3215 (read_inferior_memory): Use it.
3216 (write_inferior_memory): Likewise.
3217
d07c63e7
DJ
32182002-02-05 Daniel Jacobowitz <drow@mvista.com>
3219
3220 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
3221 grubbing through sys_errlist.
3222
da6d8c04
DJ
32232002-02-05 Daniel Jacobowitz <drow@mvista.com>
3224
3225 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
3226
5b421780
PM
32272002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
3228 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
3229
9f60d481
AC
32302002-02-04 Andrew Cagney <ac131313@redhat.com>
3231
3232 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
3233 (do_sfunc, set_cmd_sfunc): New functions.
3234
3235 * command.h (struct cmd_list_element): Add field func.
3236 * cli/cli-decode.h (struct cmd_list_element): Ditto.
3237 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
3238 * cli/cli-decode.h: Ditto.
3239
3240 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
3241 (help_all, help_cmd_list): Ditto.
3242 (find_cmd, complete_on_cmdlist): Ditto.
3243 * top.c (execute_command): Ditto.
3244
3245 * cli/cli-setshow.c (do_setshow_command): Call func instead of
3246 function.sfunc.
3247
3248 * infcmd.c (notice_args_read): Fix function signature.
3249
3250 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
3251 * cli/cli-decode.c (add_set_cmd): Ditto.
3252 * utils.c (initialize_utils): Ditto.
3253 * maint.c (_initialize_maint_cmds): Ditto.
3254 * infrun.c (_initialize_infrun): Ditto.
3255 * demangle.c (_initialize_demangler): Ditto.
3256 * remote.c (add_packet_config_cmd): Ditto.
3257 * mips-tdep.c (_initialize_mips_tdep): Ditto.
3258 * cris-tdep.c (_initialize_cris_tdep): Ditto.
3259 * proc-api.c (_initialize_proc_api): Ditto.
3260 * kod.c (_initialize_kod): Ditto.
3261 * valprint.c (_initialize_valprint): Ditto.
3262 * top.c (init_main): Ditto.
3263 * infcmd.c (_initialize_infcmd): Ditto.
3264 * corefile.c (_initialize_core): Ditto.
3265 * arm-tdep.c (_initialize_arm_tdep): Ditto.
3266 * arch-utils.c (initialize_current_architecture): Ditto.
3267 (_initialize_gdbarch_utils): Ditto.
3268 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
3269
3270 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
3271 * wince.c (_initialize_inftarg): Ditto.
3272 * symfile.c (_initialize_symfile): Ditto.
3273 * mips-tdep.c (_initialize_mips_tdep): Ditto.
3274 * language.c (_initialize_language): Ditto.
3275 * arc-tdep.c (_initialize_arc_tdep): Ditto.
3276
f9ba0717
MS
32772002-02-04 Michael Snyder <msnyder@redhat.com>
3278
3279 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
3280
0c74b2a7
DJ
32812002-02-04 Daniel Jacobowitz <drow@mvista.com>
3282
3283 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
3284 Add rules for building the register data files.
3285
c638789f
DJ
32862002-02-04 Daniel Jacobowitz <drow@mvista.com>
3287
3288 * regformats/regdat.sh: Add braces to the definition of
3289 expedite_regs_${arch}.
3290
db253027
DJ
32912002-02-04 Daniel Jacobowitz <drow@mvista.com>
3292
3293 * regformats/regdef.h (struct reg): Add comment describing the
3294 requirements for offset and size fields.
3295
206be19c
AS
32962002-02-04 Andreas Schwab <schwab@suse.de>
3297
3298 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
3299 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
3300
181c1381
RE
33012002-02-04 Richard Earnshaw <rearnsha@arm.com>
3302
3303 * gdbarch.sh (copyright): Update years in generated header.
3304 (SMASH_TEXT_ADDRESS): Add rule.
db253027 3305 * gdbarch.h, gdbarch.c: Re-generate.
181c1381
RE
3306 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
3307 * dbxread.c: Likewise.
3308 * dwarfread.c: Likewise.
3309 * elfread.c: Likewise.
3310 * somread.c: Likewise.
3311
3312 * arm-tdep.c (arm_smash_text_address): New function.
3313 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
3314
fa4ba8da
PM
33152002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
3316
3317 Add support for hardware watchpoints on win32 native.
aaa38bb5 3318 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
fa4ba8da 3319 CONTEXT_DEBUG_REGISTERS.
aaa38bb5 3320 (dr variable): New variable. Static array containing a local copy
fa4ba8da
PM
3321 of debug registers.
3322 (debug_registers_changed): New variable. Reflects when debug registers
3323 are changed and need to be written to inferior.
aaa38bb5 3324 (debug_registers_used): New variable. Reflects when any debug register
fa4ba8da
PM
3325 was set, used when new threads are created.
3326 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
3327 i386-nat code.
3328 (thread_rec): Set dr array if id is the thread of current_event .
3329 (child_continue, child_resume): Change the debug registers for all
3330 threads if debug_registers_changed.
3331 (child_add_thread): Change the debug registers if debug_registers_used.
3332 * config/i386/cygwin.mh: Add use of i386-nat.o file.
3333 Link nm.h to new nm-cygwin.h file.
3334 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
3335 of hardware registers.
3336
a73c86fb
AC
33372002-02-03 Andrew Cagney <ac131313@redhat.com>
3338
3339 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
3340 Restore behavour broken by 2002-01-20 Andrew Cagney
3341 <ac131313@redhat.com> IEEE_FLOAT removal.
3342
acf5ed49
DJ
33432002-02-03 Daniel Jacobowitz <drow@mvista.com>
3344
3345 * c-valprint.c (c_val_print): Pass a proper valaddr to
3346 cp_print_class_method.
3347 * valops.c (search_struct_method): If there is only one method
3348 and args is NULL, return that method.
3349
493d28d5
DJ
33502002-02-03 Daniel Jacobowitz <drow@mvista.com>
3351
3352 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
3353 accessing tag_name directly.
3354
7495dfdb
DJ
33552002-02-03 Daniel Jacobowitz <drow@mvista.com>
3356
3357 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
3358 of accessing tag_name directly.
3359
dd6bda65
DJ
33602002-02-03 Daniel Jacobowitz <drow@mvista.com>
3361
3362 PR gdb/280
3363 * gdbtypes.c (replace_type): New function.
3364 * gdbtypes.h (replace_type): Add prototype.
3365 * stabsread.c (read_type): Use replace_type.
3366
88fe217c
RE
33672002-02-03 Richard Earnshaw <rearnsha@arm.com>
3368
3369 * Makefile.in (memattr.o): Add missing dependencies rule.
3370
e5d66720
PS
33712002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
3372
3373 * breakpoint.c (break_at_finish_command): Really export.
3374 (break_at_finish_at_depth_command): Ditto.
3375 (tbreak_at_finish_command): Ditto.
3376 * hppa-tdep.c: Include completer.h.
3377 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
3378 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
3379
fffee0be
AC
33802002-02-01 Andrew Cagney <ac131313@redhat.com>
3381
3382 * utils.c (do_write): New function.
3383 (error_stream): Rewrite combining the code from error_begin and
3384 verror.
3385 (verror): Rewrite using error_stream.
3386 (error_begin): Delete function.
3387
255e7dbf
AC
33882002-02-01 Andrew Cagney <ac131313@redhat.com>
3389
3390 * utils.c (error_begin): Make static.
3391 * defs.h (error_begin): Delete declaration.
3392
3393 * linespec.c (cplusplus_error): Replace cplusplus_hint.
3394 (decode_line_1): Use cplusplus_error instead of error_begin,
3395 cplusplus_hint and return_to_top_level.
3396 * coffread.c (coff_symfile_read): Use error instead of error_begin
3397 and return_to_top_level.
3398 * infrun.c (default_skip_permanent_breakpoint): Ditto.
3399
ddfe3c15
AC
34002002-02-01 Andrew Cagney <ac131313@redhat.com>
3401
3402 * language.h (type_error, range_error): Make string parameter
3403 constant.
3404 * language.c (warning_pre_print): Delete extern declaration.
3405 * dwarfread.c (warning_pre_print): Ditto.
3406 * language.c (type_error, range_error): Rewrite to use verror and
3407 vwarning instead of warning_begin.
3408
03ac34d5
MS
34092002-02-01 Michael Snyder <msnyder@redhat.com>
3410
261c4ca2
MS
3411 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
3412 (set_ignore_count): Move misplaced comment back where it belongs.
03ac34d5 3413
e00d1dc8
AC
34142002-02-01 Andrew Cagney <ac131313@redhat.com>
3415
3416 * command.h (NO_FUNCTION): Delete macro.
3417 * cli/cli-decode.h (NO_FUNCTION): Ditto.
3418 * top.c (execute_command): Replace NO_FUNCTION with NULL.
3419 * tracepoint.c (_initialize_tracepoint): Ditto.
3420 * cli/cli-decode.c (add_set_cmd): Ditto.
3421 * cli/cli-cmds.c (init_cli_cmds): Ditto.
aaa38bb5 3422
76b79d6e
DJ
34232002-02-01 Daniel Jacobowitz <drow@mvista.com>
3424
3425 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
3426 Update ``this'' pointer when calling virtual functions.
3427
799f9e91
MS
34282002-02-01 Michael Snyder <msnyder@redhat.com>
3429
c7bd442c 3430 * breakpoint.c (create_temp_exception_breakpoint): Delete.
799f9e91
MS
3431 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
3432
3cf384d4
DJ
34332002-02-01 Daniel Jacobowitz <drow@mvista.com>
3434
3435 * regformats/reg-arm.dat: New file.
3436 * regformats/reg-i386.dat: New file.
3437 * regformats/reg-ia64.dat: New file.
3438 * regformats/reg-m68k.dat: New file.
3439 * regformats/reg-mips.dat: New file.
3440 * regformats/reg-ppc.dat: New file.
3441 * regformats/reg-sh.dat: New file.
3442 * regformats/regdef.h: New file.
3443 * regformats/regdat.sh: New file.
3444
0defa245
RE
34452002-02-01 Richard Earnshaw <reanrsha@arm.com>
3446
3447 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
3448 (arm_frame_args_address, arm_frame_locals_address): New functions.
3449 (arm_frame_num_args): New function.
3450 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
3451 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
3452 (FRMA_NUM_ARGS): Call arm_frame_num_args.
3453
405f26e6
MS
34542002-01-31 Michael Snyder <msnyder@redhat.com>
3455
502fd408
MS
3456 * breakpoint.c (break_at_finish_command): Export.
3457 (break_at_finish_at_depth_command): Export.
3458 (tbreak_at_finish_command): Export.
3459 (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
3460 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
3461 "tbreak" commands, which are HPPA specific.
3462
7d35e135
MS
3463 * printcmd.c (disassemble_command): Remove an ancient
3464 artifact of an old merge.
3465
aaa38bb5 3466 * symfile.h (enum overlay_debugging_state):
d874f1e2
MS
3467 Define enum constant values for overlay mode.
3468 * symfile.c (overlay_debugging): Use enums instead of literals.
aaa38bb5
AJ
3469 (overlay_is_mapped, overlay_auto_command,
3470 overlay_manual_command): Ditto.
d874f1e2 3471
aaa38bb5
AJ
3472 * breakpoint.c (insert_breakpoints, remove_breakpoint,
3473 breakpoint_here_p, breakpoint_inserted_here_p,
3474 breakpoint_thread_match, bpstat_stop_status,
9f04af04
MS
3475 describe_other_breakpoints, check_duplicates, clear_command):
3476 Coding standard fixes.
3477
8add0441 3478 * target.c (target_xfer_memory): Add spaces, coding standard.
9f04af04 3479 (do_xfer_memory): Add missing line to trust-readonly
405f26e6
MS
3480 code: check bfd SEC_READONLY flag for section.
3481
e351066e
AC
34822002-01-31 Andrew Cagney <ac131313@redhat.com>
3483
7d35e135 3484 * PROBLEMS: Fix typo, 5.1->5.1.1.
e351066e 3485
8a48e967
DJ
34862002-01-30 Daniel Jacobowitz <drow@mvista.com>
3487
3488 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
3489 data symbols, since we search based on textlow and texthigh.
3490 (find_pc_sect_symtab): Likewise.
3491
f5a96129
AC
34922002-01-30 Andrew Cagney <ac131313@redhat.com>
3493
3494 * defs.h (vwarning): Declare.
f5a96129
AC
3495 * utils.c (vwarning): New function.
3496 (warning): Call vwarning.
3497 (warning_begin): Delete function.
3498
3499 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
3500 the warning message.
3501 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
3502 warning_begin.
3503
cefd4ef5
MS
35042002-01-30 Michael Snyder <msnyder@redhat.com>
3505
1a703748
MS
3506 * NEWS: Mention "set trust-readonly-sections" command.
3507 Mention generate-core-file command.
cefd4ef5 3508
3a11626d
MS
35092002-01-15 Michael Snyder <msnyder@redhat.com>
3510
3511 * target.c: New command, "set trust-readonly-sections on".
3512 (do_xfer_memory): Honor the suggestion to trust readonly sections
3513 by reading them from the object file instead of from the target.
3514 (initialize_targets): Register command "set trust-readonly-sections".
3515
d1c7e53b
AC
35162002-01-29 Andrew Cagney <ac131313@redhat.com>
3517
3518 * parse.c (target_map_name_to_register): Simplify, search regs and
3519 pseudo-regs using a single loop.
3520
e2c9a72c
AC
35212002-01-30 Andrew Cagney <ac131313@redhat.com>
3522
3523 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
3524
69824b4e
MK
35252002-01-15 Rodney Brown <rbrown64@csc.com.au>
3526
3527 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
3528 * config/i386/i386v42mp.mh: Add i387-nat.o .
3529 * i386v4-nat.c: Include i387-nat.h.
3530 (supply_fpregset): Use i387_supply_fsave.
3531 (fill_fpregset): Use i387_fill_fsave.
3532
6eb69eab
RE
35332002-01-30 Richard Earnshaw <rearnsha@arm.com>
3534
3535 * arm-tdep.c (arm_call_dummy_words): Define.
3536 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
3537 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
3538 (CALL_DUMMY_WORDS): Define.
3539 (arm_call_dummy_words): Declare.
3540 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
3541 (arm_linux_call_dummy_words): Declare.
3542
9852326a
AS
35432002-01-30 Andreas Schwab <schwab@suse.de>
3544
3545 * m68klinux-nat.c: Fix last change to use regcache_collect
3546 instead of referencing registers[] directly.
3547
977a3030
AC
35482002-01-29 Andrew Cagney <ac131313@redhat.com>
3549
3550 * parse.c (target_map_name_to_register): Delete code wrapped in
3551 #ifdef REGISTER_NAME_ALIAS_HOOK.
3552
2076c72b
MS
35532002-01-28 Michael Snyder <msnyder@redhat.com>
3554
3555 * regcache.c (legacy_read_register_gen): Need to be able to
3556 read pseudo-register as well as real register.
3557 (legacy_write_register_gen): Ditto.
3558
8fcc723b
AC
35592002-01-28 Andrew Cagney <ac131313@redhat.com>
3560
3561 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
3562 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
3563 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
3564 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
3565 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
3566 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
3567 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
3568 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
3569 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
3570 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
3571 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
3572 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
3573 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
3574 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
3575 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
3576 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
3577 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
3578 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
3579 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
3580 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
3581
afe64c1a
AC
35822002-01-28 Andrew Cagney <ac131313@redhat.com>
3583
3584 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
3585 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
3586 (initialize_current_architecture): Update target_byte_order using
3587 information from BFD.
aaa38bb5 3588 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
afe64c1a
AC
3589 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
3590
75bc7ddf
AC
35912002-01-28 Andrew Cagney <ac131313@redhat.com>
3592
3593 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
3594 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
3595
3596 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
3597 #ifdef INVALID_FLOAT.
3598 * infcmd.c (do_registers_info): Ditto.
3599 * values.c (unpack_double): Ditto. Add comment.
3600
3601 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
3602 already commented out.
3603
0280a90a
AS
36042002-01-26 Andreas Schwab <schwab@suse.de>
3605
3606 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
3607 * m68klinux-nat.c: Update ptrace interface for fetching/storing
3608 registers and add support for PTRACE_GETREGS.
3609
7072a954
AC
36102002-01-24 Andrew Cagney <ac131313@redhat.com>
3611
3612 GDB 5.1.1 released from 5.1 branch.
3613 * NEWS: Add 5.1.1 news.
3614 * README: Sync with 5.1 branch.
3615
86f902e0
FF
36162002-01-23 Fred Fish <fnf@redhat.com>
3617
3618 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
3619 stabstring on initial malloc. Reallocing will copy it for us,
3620 if necessary.
3621
8af51c36
EZ
36222002-01-23 Elena Zannoni <ezannoni@redhat.com>
3623
aaa38bb5 3624 * Makefile.in (hpread_h): Delete.
8af51c36
EZ
3625 (HFILES_NO_SRCDIR): Remove hpread.h.
3626 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
3627 (hpread.o): Update dependencies.
3628 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
3629
3630 * hp-psymtab-read.c: Remove file.
3631 * hp-symtab-read.c: Remove file.
3632 * hpread.h: Remove file.
3633
3634 * hpread.c: Merge all contents of hp-psymtab-read.c,
3635 hp-symtab-read.c and hpread.h into this file, as it was prior to
3636 January 1999.
3637
3638 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
aaa38bb5 3639 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
8af51c36
EZ
3640 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
3641 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
3642
dc5cfeb6
EZ
36432002-01-23 Elena Zannoni <ezannoni@redhat.com>
3644
3645 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
3646 fill_gregset): Call gdbarch_tdep() just once, assign result to
3647 variable and use that, instead of calling the function several
3648 times.
3649
ea87b71b
AO
36502002-01-24 Alexandre Oliva <aoliva@redhat.com>
3651
3652 * configure.host: Accept sparcv9 as alias for sparc64.
3653 * configure.tgt: Likewise.
3654
13fc0c2f
KB
36552002-01-22 Kevin Buettner <kevinb@redhat.com>
3656
3657 * solib-aix5.c (build_so_list_from_mapfile)
3658 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
3659 arguments is not reversed.
3660 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
3661 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
aaa38bb5 3662
7bd872fe
EZ
36632002-01-22 Elena Zannoni <ezannoni@redhat.com>
3664
3665 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
3666 modified version of obsolete sh_fetch_pseudo_register.
3667 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
3668 (sh4_register_read): New function.
3669 (sh_pseudo_register_write): New function. Renamed and modified
3670 version of obsolete sh_store_pseudo_register.
3671 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
3672 (sh4_register_write): New function.
3673 (sh_gdbarch_init): Remove setting of gdbarch function
3674 fetch_pseudo_register and store_pseudo_register. Remove setting of
3675 register_convert_to_raw, register_convert_to_virtual,
3676 register_convertible.
3677 (sh_sh4_register_convertible): Delete. No longer needed. All is
3678 taken care by architecture specific functions
3679 register_read/register_write.
3680 (sh_sh4_register_convert_to_virtual): Make static.
3681 (sh_sh4_register_convert_to_raw): Ditto.
3682
069e84fd
AC
36832002-01-22 Andrew Cagney <ac131313@redhat.com>
3684
3685 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
3686 (floatformat_is_nan, floatformat_mantissa): Ditto.
3687
3688 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
3689 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
3690 builtin_type_ieee_double_little,
3691 builtin_type_ieee_double_littlebyte_bigword,
3692 builtin_type_m68881_ext, builtin_type_i960_ext,
3693 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
3694 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
3695 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
3696 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
3697
211a4f69
CV
36982002-01-22 Corinna Vinschen <vinschen@redhat.com>
3699
3700 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
3701 parameter. Set frameless flag if it exists and depended of
3702 whether the scanned function is frameless or not.
3703 (xstormy16_skip_prologue): If function is frameless, return
3704 result of xstormy16_scan_prologue().
3705 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
3706 call.
3707
f81353e4
EZ
37082002-01-21 Elena Zannoni <ezannoni@redhat.com>
3709
3710 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
3711 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
3712 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
3713 sh_sh4_register_byte, sh_sh4_register_raw_size,
3714 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
3715 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
3716 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
3717 sh_store_pseudo_register, sh_do_pseudo_register): Call
3718 gdbarch_tdep() just once, assign result to variable and use that,
3719 instead of calling the function several times.
3720
63c73a17
MK
37212002-01-20 Mark Kettenis <kettenis@gnu.org>
3722
3723 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
3724 macros instead of LAST_FPU_CTRL_REGNUM.
3725 (store_register): Likewise.
3726
39ad761d
JB
37272002-01-21 Jim Blandy <jimb@redhat.com>
3728
3729 * infcmd.c (run_command): Check that the `exec' target layer's BFD
3730 is up-to-date before running the program, not just when a program
3731 exits.
3732
3d74b771
FF
37332002-01-21 Fred Fish <fnf@redhat.com>
3734
3735 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
3736 when we have found all instructions we are looking for.
3737
966fbf70
RE
37382002-01-21 Richard Earnshaw <rearnsha@arm.com>
3739
3740 * arm-tdep.c (arm_register_name): New function.
3741 (arm_registers_names): Make static.
3742 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
3743 (arm_register_name): Declare.
3744 (REGISTER_NAME): Use it.
3745
c3b4394c
RE
37462002-01-21 Richard Earnshaw <rearnsha@arm.com>
3747 Kevin Buettner <kevinb@redhat.com>
3748
3749 Convert arm targets to new FRAME interface.
3750 * arm-tdep.c (struct frame_extra_info): Remove fsr.
3751 (arm_frame_find_save_regs): Delete.
3752 (arm_frame_init_saved_regs): New.
3753 (arm_init_extra_frame_info): Alloacte saved_regs as required.
3754 Allocate extra_info as required. Convert all uses of fsr.regs
3755 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
3756 to use extra_info.
3757 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
3758 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
3759 (check_prologue_cache, save_prologue_cache): Likewise.
3760 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
3761 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
3762 (FRAME_FIND_SAVED_REGS): Delete.
3763 (arm_frame_find_saved_regs): Delete prototype.
3764 (arm_frame_init_saved_regs): New prototype.
3765 (FRAME_INIT_SAVED_REGS): Define.
3766
61d99182
AC
37672002-01-20 Andrew Cagney <ac131313@redhat.com>
3768
3769 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
3770
6aaea291
AC
37712002-01-20 Andrew Cagney <ac131313@redhat.com>
3772
3773 From Jeff Law <law@redhat.com>:
3774 * infttrace.c: Include <sys/pstat.h>.
3775 (child_pid_to_exec_file): Revamp. Use pstat call to get the
3776 exec file if the ttrace equivalent fails.
3777
15f698d2
AC
37782002-01-20 Andrew Cagney <ac131313@redhat.com>
3779
3780 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
3781 (closeLogFile): Ditto.
3782
f86ddd7c
MC
37832002-01-20 Michael Chastain <mec@shout.net>
3784
3785 * top.c (print_gdb_version): Bump copyright year to 2002.
3786
904507ce
AC
37872002-01-20 Andrew Cagney <ac131313@redhat.com>
3788
3789 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
3790 Zannoni and Eli Zaretskii.
3791
d7f0b9ce
DJ
37922002-01-20 Daniel Jacobowitz <drow@mvista.com>
3793
3794 * buildsym.c: Update copyright years.
3795 * c-typeprint.c: Likewise.
3796 * dwarf2read.c: Likewise.
3797 * f-typeprint.c: Likewise.
3798 * gdbtypes.c: Likewise.
3799 * gdbtypes.h: Likewise.
3800 * hp-symtab-read.c: Likewise.
3801 * hpread.c: Likewise.
3802 * mdebugread.c: Likewise.
3803 * p-typeprint.c: Likewise.
3804
3fd3d7d2
AC
38052002-01-20 Andrew Cagney <ac131313@redhat.com>
3806
3807 * remote-sim.c (gdbsim_open): Simplify code testing the macro
3808 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
3809 byte-order selectable.
3810 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
3811 * arch-utils.c: Ditto.
3812 (set_endian): Ditto.
3813 (set_endian_from_file): Ditto.
3814 * gdbserver/low-sim.c (create_inferior): Ditto.
3815 * gdbarch.sh: Ditto.
3816 * gdbarch.h: Re-generate.
aaa38bb5
AJ
3817 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
3818 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
3819 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
3820 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
3821 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
3822 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
3823 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
3fd3d7d2
AC
3824 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
3825 macro definition.
3826 * config/mips/tm-wince.h: Remove #undef of macro
3827 TARGET_BYTE_ORDER_SELECTABLE.
3828 * config/sh/tm-wince.h: Ditto.
3829
b02dede2
DJ
38302002-01-20 Daniel Jacobowitz <drow@mvista.com>
3831
3832 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
3833 member function fields. Add accessor macro
3834 TYPE_FN_FIELD_ARTIFICIAL.
3835 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
3836 * c-typeprint.c (c_type_print_base): Skip artificial member
3837 functions.
3838
c3643761
DJ
38392002-01-20 Daniel Jacobowitz <drow@mvista.com>
3840
3841 * f-typeprint.c: Delete unused function f_type_print_args.
3842 * p-typeprint.c: Delete unused function pascal_type_print_args.
3843
8176bb6d
DJ
38442002-01-20 Daniel Jacobowitz <drow@mvista.com>
3845
3846 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
3847 comment. Add ``artificial'' to ``union field_location''.
3848
3849 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
3850
3851 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
3852 * mdebugread.c (parse_symbol): Likewise.
3853 * stabsread.c (define_symbol): Likewise.
3854 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
3855 initializing TYPE_FIELD_BITPOS to n (obsolete).
3856 (hpread_doc_function_type): Likewise.
3857 * hpread.c (hpread_function_type): Likewise.
3858
7fd60527
AC
38592002-01-20 Andrew Cagney <ac131313@redhat.com>
3860
3861 * configure.in (host_makefile_frag): Only require a host makefile
3862 fragment when a native build.
3863 * configure: Re-generate.
3864
c2f05ac9
AC
38652002-01-20 Andrew Cagney <ac131313@redhat.com>
3866
3867 * doublest.h (floatformat_from_type): Declare.
3868 * doublest.c (floatformat_from_type): New function.
3869 (convert_typed_floating): Use.
3870
3871 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
3872 call to function floatformat_from_type.
3873
3874 * gdbarch.sh (IEEE_FLOAT): Delete.
3875 * gdbarch.h, gdbarch.c: Re-generate.
3876 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
3877 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
3878 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
3879 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
3880 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
3881 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
3882 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
3883 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
3884 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
3885 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
3886 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
c2f05ac9
AC
3887 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
3888
3889 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
3890 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
3891 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3892 * sh-tdep.c (sh_gdbarch_init): Ditto.
3893 * mips-tdep.c (mips_gdbarch_init): Ditto.
3894 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3895 * cris-tdep.c (cris_gdbarch_init): Ditto.
3896
abf22e64
AJ
38972002-01-20 Jiri Smid <smid@suse.cz>
3898
3899 * configure.host, configure.tgt: Support x86-64.
3900 * NEWS: Note new target x86-64.
3901
b7c4cbf8
AJ
3902 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
3903 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
3904 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
3905 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
3906 x86-64-linux-nat.o): Fix dependencies.
3907
82600034
AC
39082002-01-19 Andrew Cagney <ac131313@redhat.com>
3909
3910 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
3911 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
3912 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
3913 * config/sparc/xm-sun4os4.h: Delete file.
3914 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
abf22e64 3915
bbe5c628
AC
39162002-01-19 Andrew Cagney <ac131313@redhat.com>
3917
3918 * config/sparc/sparclynx.mh (XM_FILE): Delete.
3919 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
3920 * config/m68k/m68klynx.mh (XM_FILE): Delete.
3921 * config/i386/i386lynx.mh (XM_FILE): Delete.
3922 * config/rs6000/xm-rs6000ly.h: Delete file.
3923 * config/sparc/xm-sparclynx.h: Delete file.
3924 * config/m68k/xm-m68klynx.h: Delete file.
3925 * config/i386/xm-i386lynx.h: Delete file.
3926 * config/xm-lynx.h: Delete file.
3927 * config/djgpp/fnchange.lst: Update.
3928
f8453e34
JT
39292002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
3930
3931 * alpha-tdep.c (alpha_register_byte): New function.
3932 (alpha_register_raw_size): Ditto.
3933 (alpha_register_virtual_size): Ditto.
3934 (alpha_skip_prologue_internal): Renamed from
3935 alpha_skip_prologue.
3936 (alpha_skip_prologue): New version that calls
3937 alpha_skip_prologue_internal.
3938 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
3939 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
3940 second argument from alpha_skip_prologue.
3941 (REGISTER_BYTE): Use alpha_register_byte.
3942 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
3943 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
3944 (FRAMELESS_FUNCTION_INVOCATION): Use
3945 generic_frameless_function_invocation_not.
3946 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
3947 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
3948
52d9e613
AC
39492002-01-19 Andrew Cagney <ac131313@redhat.com>
3950
3951 * config/mips/xm-news-mips.h: Delete file.
3952 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
3953
3954 * config/m88k/xm-m88k.h: Delete file.
3955 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
3956 * config/m88k/xm-delta88v4.h: Ditto.
3957 * config/m88k/xm-delta88.h: Ditto.
3958
3959 * config/alpha/xm-fbsd.h: Delete file.
3960 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
3961
3962 * config/sparc/xm-sparc.h: Delete file.
3963 * Makefile.in (xm-sun4os4.h): Delete dependency.
3964 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
3965 * config/sparc/xm-sun4os4.h: Ditto.
3966 * config/sparc/xm-linux.h: Ditto.
3967
3968 * config/i386/xm-windows.h: Delete file.
3969
2d1b2124
AC
39702002-01-19 Andrew Cagney <ac131313@redhat.com>
3971
3972 * utils.c: Include <sys/param.h> for MAXPATHLEN.
3973 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
3974
ee1f65f0
JT
39752002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
3976
3977 * alpha-tdep.c (alpha_call_dummy_words): New.
3978 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
3979 (CALL_DUMMY_P): Define.
3980 (CALL_DUMMY_WORDS): Define.
3981 (SIZEOF_CALL_DUMMY_WORDS): Define.
3982
98081e55
PB
39832002-01-19 Per Bothner <per@bothner.com>
3984
3985 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
3986 isn't NULL, which can happen with some gcj-3.x-produced code.
3987
0d056799
JT
39882002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
3989
3990 * alpha-tdep.c (alpha_register_virtual_type): New function.
3991 (alpha_init_frame_pc_first): Ditto.
3992 (alpha_fix_call_dummy): Ditto.
3993 (alpha_store_struct_return): Ditto.
3994 (alpha_extract_struct_value_address): Ditto.
3995 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
3996 alpha_register_virtual_type.
3997 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
3998 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
3999 alpha_extract_struct_value_address.
4000 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
4001 (INIT_FRAME_PC): Use init_frame_pc_noop.
4002 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
4003
4604bcad
MK
40042002-01-19 Mark Kettenis <kettenis@gnu.org>
4005
4006 * i386gnu-nat.c: Include "i386-tdep.h".
4007 (fetch_fpregs): Simplify code dealing with uninitialized floating
4008 point states such that it doesn't require FP7_REGNUM.
4009
140f9984
JT
40102002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
4011
abf22e64
AJ
4012 * alpha-tdep.c (frame_extra_info): New.
4013 (alpha_find_saved_regs): Make static. Use
140f9984
JT
4014 frame->extra_info.
4015 (alpha_frame_init_saved_regs): New function.
abf22e64
AJ
4016 (alpha_frame_saved_pc): Use frame->extra_info.
4017 (temp_saved_regs): Don't declare as struct frame_saved_regs.
4018 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
140f9984
JT
4019 (init_extra_frame_info): Rename to...
4020 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
abf22e64 4021 (alpha_print_extra_frame_info): New function.
140f9984
JT
4022 (alpha_frame_locals_address): Ditto.
4023 (alpha_frame_args_address): Ditto.
abf22e64 4024 (alpha_pop_frame): Use frame->extra_info.
140f9984
JT
4025 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
4026 alpha_frame_args_address.
abf22e64 4027 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
140f9984 4028 (alpha_find_saved_regs): Remove prototype.
abf22e64
AJ
4029 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
4030 (EXTRA_FRAME_INFO): Remove.
140f9984
JT
4031 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
4032 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
4033
d734c450
JT
40342002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
4035
4036 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
4037 (alpha_cannot_fetch_register): Ditto.
4038 (alpha_cannot_store_register): Ditto.
4039 (alpha_register_convertible): Ditto.
4040 (alpha_use_struct_convention): Ditto.
4041 * config/alpha/tm-alpha.h: Update copyright years.
4042 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
4043 (INNER_THAN): Use core_addr_lessthan.
4044 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
4045 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
4046 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
4047 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
4048 (FRAME_CHAIN): Remove unnecessary cast.
4049
b4ceaee6
AC
40502002-01-18 Andrew Cagney <ac131313@redhat.com>
4051
4052 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
4053 obsolete.
4054
0a65a603
AC
40552002-01-18 Andrew Cagney <ac131313@redhat.com>
4056
4057 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
4058 * monitor.c, remote-array.c, remote-bug.c: Ditto.
4059 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
4060 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
4061 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
4062 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
4063 * x86-64-linux-nat.c: Ditto.
4064
636a6dfc
JT
40652002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
4066
abf22e64 4067 * alpha-tdep.c (alpha_register_name): New function.
636a6dfc
JT
4068 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
4069 (REGISTER_NAME): Define.
4070
acceddb6
JT
40712002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
4072
4073 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
4074
ec32e4be
JT
40752002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
4076
4077 * alpha-tdep.c: Update copyright years.
4078 (alpha_next_pc): New function.
4079 (alpha_software_single_step): Ditto.
4080 * config/alpha/tm-alpha.h: Add prototype for
4081 alpha_software_single_step.
4082
e771a871
JT
40832002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
4084
4085 * alphabsd-nat.c: Update copyright years.
4086 (fill_gregset): Use regcache_collect.
4087 (fill_fpregset): Likewise.
4088 (fetch_inferior_registers): Only fetch integer registers
4089 if requested to do so.
4090 (store_inferior_registers): Only store integer registers
4091 if requested to do so.
4092
7708fa01
AC
40932002-01-17 Andrew Cagney <ac131313@redhat.com>
4094
4095 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
4096 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
4097 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
4098 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
4099 * config/alpha/fbsd.mh (XDEPFILES): Delete.
4100 * config/arm/linux.mh (XDEPFILES): Delete.
4101 * config/arm/nbsd.mh (XDEPFILES): Delete.
4102 * config/i386/i386dgux.mh (XDEPFILES): Delete.
4103 * config/i386/i386sol2.mh (XDEPFILES): Delete.
4104 * config/i386/i386m3.mh (XDEPFILES): Delete.
4105 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
4106 * config/i386/i386gnu.mh (XDEPFILES): Delete.
4107 * config/i386/fbsd.mh (XDEPFILES): Delete.
4108 * config/i386/i386bsd.mh (XDEPFILES): Delete.
4109 * config/i386/i386sco5.mh (XDEPFILES): Delete.
4110 * config/i386/i386v4.mh (XDEPFILES): Delete.
4111 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
4112 * config/i386/i386sco4.mh (XDEPFILES): Delete.
4113 * config/i386/i386aix.mh (XDEPFILES): Delete.
4114 * config/i386/go32.mh (XDEPFILES): Delete.
4115 * config/i386/cygwin.mh (XDEPFILES): Delete.
4116 * config/i386/i386lynx.mh (XDEPFILES): Delete.
4117 * config/i386/i386mach.mh (XDEPFILES): Delete.
4118 * config/i386/i386v32.mh (XDEPFILES): Delete.
4119 * config/i386/linux.mh (XDEPFILES): Delete.
4120 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
4121 * config/i386/ncr3000.mh (XDEPFILES): Delete.
4122 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
4123 * config/i386/i386sco.mh (XDEPFILES): Delete.
4124 * config/i386/i386v.mh (XDEPFILES): Delete.
4125 * config/i386/nbsd.mh (XDEPFILES): Delete.
4126 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
4127 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
4128 * config/i386/symmetry.mh (XDEPFILES): Delete.
4129 * config/i386/obsd.mh (XDEPFILES): Delete.
4130 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
4131 * config/ia64/linux.mh (XDEPFILES): Delete.
4132 * config/ia64/aix.mh (XDEPFILES): Delete.
4133 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
4134 * config/m68k/dpx2.mh (XDEPFILES): Delete.
4135 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
4136 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
4137 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
4138 * config/m68k/linux.mh (XDEPFILES): Delete.
4139 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
4140 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
4141 * config/m68k/nbsd.mh (XDEPFILES): Delete.
4142 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
4143 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
4144 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
4145 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
4146 * config/m88k/delta88.mh (XDEPFILES): Delete.
4147 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
4148 * config/m88k/m88k.mh (XDEPFILES): Delete.
4149 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
4150 * config/mips/linux.mh (XDEPFILES): Delete.
4151 * config/mips/irix6.mh (XDEPFILES): Delete.
4152 * config/mips/irix5.mh (XDEPFILES): Delete.
4153 * config/mips/irix4.mh (XDEPFILES): Delete.
4154 * config/mips/irix3.mh (XDEPFILES): Delete.
4155 * config/mips/decstation.mh (XDEPFILES): Delete.
4156 * config/mips/mipsm3.mh (XDEPFILES): Delete.
4157 (NATDEPFILES): Move core-aout.o to here.
4158 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
4159 * config/pa/hpux1020.mh (XDEPFILES): Delete.
4160 * config/pa/hppabsd.mh (XDEPFILES): Delete.
4161 * config/pa/hppahpux.mh (XDEPFILES): Delete.
4162 * config/pa/hpux11w.mh (XDEPFILES): Delete.
4163 * config/pa/hppaosf.mh (XDEPFILES): Delete.
4164 * config/pa/hpux11.mh (XDEPFILES): Delete.
4165 * config/powerpc/aix.mh (XDEPFILES): Delete.
4166 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
4167 * config/powerpc/linux.mh (XDEPFILES): Delete.
4168 * config/romp/rtbsd.mh: Rename XDEPFILES.
4169 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
4170 * config/rs6000/aix4.mh (XDEPFILES): Delete.
4171 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
4172 * config/s390/s390.mh (XDEPFILES): Delete.
4173 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
4174 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
4175 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
4176 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
4177 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
4178 * config/sparc/nbsd.mh (XDEPFILES): Delete.
4179 * config/sparc/linux.mh (XDEPFILES): Delete.
4180 * config/vax/vaxult.mh (XDEPFILES): Delete.
4181 * config/vax/vaxult2.mh (XDEPFILES): Delete.
4182 * Makefile.in (DEPFILES): Remove XDEPFILES.
4183
375fc983
AC
41842002-01-17 Andrew Cagney <ac131313@redhat.com>
4185
4186 * utils.c (internal_verror): Fix comments, default is yes not no.
4187 Update queries to match. Default to quit and dump core.
4188
8926118c
AC
41892002-01-17 Andrew Cagney <ac131313@redhat.com>
4190
4191 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
4192 copyright.
4193 * defs.h, event-top.c, gdbcmd.h: Ditto.
4194 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
4195 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
4196 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
4197 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
4198 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
4199 * mi/mi-main.c:Ditto.
4200
4201 * stack.c, symfile.c: Update copyright.
4202
45b7b345
DJ
42032002-01-17 Daniel Jacobowitz <drow@mvista.com>
4204
db728ff7
DJ
4205 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
4206 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
4207 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
4208 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
45b7b345 4209
db728ff7
DJ
42102002-01-17 Daniel Jacobowitz <drow@mvista.com>
4211
4212 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
4213 * gdbserver/low-lynx.c (myattach): Likewise.
4214 * gdbserver/low-nbsd.c (myattach): Likewise.
4215 * gdbserver/low-sim.c (myattach): Likewise.
4216 * gdbserver/low-sparc.c (myattach): Likewise.
4217 * gdbserver/low-sun3.c (myattach): Likewise.
4218
4219 * gdbserver/low-linux.c (myattach): New function.
45b7b345 4220
db728ff7 4221 * gdbserver/server.c (attach_inferior): New function.
45b7b345
DJ
4222 (main): Handle "--attach".
4223
8de3c354
AC
42242002-01-16 Andrew Cagney <ac131313@redhat.com>
4225
4226 * MAINTAINERS (language support): Daniel Jacobwitz is C++
4227 maintainer.
4228
b0129042
DJ
42292002-01-15 Daniel Jacobowitz <drow@mvista.com>
4230
4231 * c-typeprint.c (is_type_conversion_operator): Add additional
4232 check for non-conversion operators.
4233
ba8679fb 42342002-01-15 Michael Snyder <msnyder@redhat.com>
2bf543a6
MS
4235
4236 * linux-proc.c: Add "info proc" command, a la procfs.c.
4237 (read_mapping): New function, abstract and re-use code.
4238 (linux_find_memory_regions): Use new func read_mapping.
4239 (linux_info_proc_cmd): New function, implement "info proc".
4240 (_initialize_linux_proc): Add new command "info proc".
4241
e4f9b4d5
MS
42422002-01-15 Michael Snyder <msnyder@redhat.com>
4243
4244 * symfile.c (generic_load): Use bfd_map_over_sections method
4245 instead of manipulating bfd structure members directly.
4246 (add_section_size_callback): New function, bfd sections callback
4247 used by generic_load.
4248 (load_sections_callback): New function, bfd sections callback
4249 used by generic_load.
4250
08cf96df
EZ
42512002-01-15 Elena Zannoni <ezannoni@redhat.com>
4252
abf22e64 4253 [Based on work by Jim Blandy]
08cf96df
EZ
4254 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
4255 (builtin_type_vec128): Export.
4256 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
4257 types.
4258 (builtin_type_vec128): New builtin type for 128 bit vector
4259 registers.
4260 (build_gdbtypes): Initialize builtin_type_v16qi and
4261 builtin_type_v8hi. Create the vec128 register builtin type
4262 structure.
4263 (build_builtin_type_vec128): New function.
abf22e64 4264 (_initialize_gdbtypes): Register builtin_type_v16qi and
08cf96df
EZ
4265 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
4266 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
4267 AltiVec register to new builtin type.
4268
d7242108
DJ
42692001-01-15 Daniel Jacobowitz <drow@mvista.com>
4270
4271 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
4272 to make_cv_type.
4273
4ee3352d
AC
42742002-01-14 Andrew Cagney <ac131313@redhat.com>
4275
4276 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
4277 CLEAN_UP_REGISTER_VALUE.
4278 * regcache.c (supply_register): Update only call.
4279
f015b2e7
AC
42802002-01-14 Andrew Cagney <ac131313@redhat.com>
4281
4282 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
4283 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
4284 a29k-*-vxworks* targets as obsolete.
4285
356ae49d
MS
42862002-01-14 Michael Snyder <msnyder@redhat.com>
4287
4288 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
4289 until we can resolve portability issues.
4290 * gregset.h: Remove references to fpxregs.
4291 * gcore.c (gcore_command): Initialize note_sec to NULL.
4292
ade8f45e
AC
42932002-01-13 Andrew Cagney <ac131313@redhat.com>
4294
4295 * signals.c (target_signal_to_name): Rewrite. Only use
4296 signals[].name when in bounds and non-NULL.
abf22e64 4297
89c49e7a
AC
42982002-01-13 Andrew Cagney <ac131313@redhat.com>
4299
4300 From Petr Ledvina <ledvinap@kae.zcu.cz>:
4301 * signals.c (target_signal_to_name): Verify that SIG is within the
4302 bounds of the signals array.
4303
4daa9f9f
AC
43042002-01-13 Andrew Cagney <ac131313@redhat.com>
4305
4306 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
4307
ba4bbdcb
KS
43082002-01-13 Keith Seitz <keiths@redhat.com>
4309
4310 * stack.c (print_frame_info_base): Print the frame's pc
4311 only if when print_frame_info_listing_hook is not defined.
4312
575bbeb6
KS
43132002-01-13 Keith Seitz <keiths@redhat.com>
4314
4315 * varobj.c (varobj_set_value): Make sure that there were no
4316 errors evaluating the object before attempting to set its
4317 value.
4318 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
4319 so this offset adjustment is no longer necessary.
4320 (create_child): Don't set the error flag if the child is
4321 a CPLUS_FAKE_CHILD.
4322 (value_of_child): If value_fetch_lazy fails, return NULL
4323 so that callers will be notified that an error occurred.
4324 (c_value_of_variable): Delay check of variable's validity
4325 until later. We actually want all structs and unions to have
4326 the value "{...}".
4327 Do not return "???" for variables which could not be evaluated.
4328 This error condition must be returned to the caller so that it
4329 can get the error condition from gdb.
4330 (cplus_name_of_child): Adjust index for vptr before figuring
4331 out the name of the child.
4332 (cplus_value_of_child): If a child's (real) parent is not valid,
4333 don't even bother trying to give a value for it. Just return
4334 an error. Change all instances in this function.
4335 (cplus_type_of_child): If our parent is one of the "fake"
4336 parents, we need to get at the type of the real parent, and
4337 derive the child's true type using this information.
4338
b76898ab
AC
43392002-01-13 Andrew Cagney <ac131313@redhat.com>
4340
4341 From 2002-01-09 John Marshall <johnm@falch.net>:
4342 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
4343 sources.redhat.com, and tweak some related URLs which had
4344 suffered from linkrot.
4345
b6649e88
AC
43462002-01-13 Andrew Cagney <ac131313@redhat.com>
4347
4348 From Jeff law:
4349 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
4350 structures passed in registers.
4351
82cc5033
EZ
43522002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
4353
4354 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
4355 white space which prevented compilation. Reported by DSK
4356 <dsk@student.unsw.edu.au>.
4357
ba5f2f8a
MS
43582002-01-11 Michael Snyder <msnyder@redhat.com>
4359
fbd35540
MS
4360 * symfile.c (build_section_addr_info_from_section_tab):
4361 Use bfd access method instead of manipulating bfd directly.
4362 (syms_from_objfile): Ditto.
4363 (simple_overlay_update_1): Ditto.
4364 (simple_overlay_update): Ditto.
4365 (generic_load): Ditto.
4366 (overlay_unmapped_address): FIXME comment, bfd access methods.
4367 (sections_overlap): FIXME comment, bfd access methods.
4368 (pc_in_mapped_range): FIXME comment, bfd access methods.
4369 (pc_in_unmapped_range): FIXME comment, bfd access methods.
4370 (section_is_mapped): FIXME comment, bfd access methods.
4371 (section_is_overlay): FIXME comment, bfd access methods.
4372
ba5f2f8a
MS
4373 * symfile.c (generic_load): Whitespace and long line cleanups.
4374 Remove duplicate variable, change several local variables to
4375 more appropriate data types.
4376 (print_transfer_performance): Use %lu instead of %ld for ulongs.
4377
17df2af6
AC
43782002-01-12 Andrew Cagney <ac131313@redhat.com>
4379
4380 From Peter Schauer:
4381 * language.c (longest_local_hex_string_custom): Use phex_nz to
4382 convert NUM to a hex string.
4383
ec920329
EZ
43842002-01-12 Elena Zannoni <ezannoni@redhat.com>
4385
4386 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
4387 the function.
538a76d6 4388 Update Copyright year.
ec920329 4389
3abd2e01
AC
43902002-01-12 Andrew Cagney <ac131313@redhat.com>
4391
4392 * language.c (longest_raw_hex_string): Delete unused function.
4393
b21b22e0
PS
43942002-01-11 Petr Sorfa <petrs@caldera.com>
4395
4396 * MAINTAINERS (write-after-approval): Add myself.
4397 * dwarf2read.c (read_tag_string_type): Handling of
4398 DW_AT_byte_size.
4399 (read_tag_string_type): FORTRAN fix to prevent propagation of
4400 first string size.
4401 (set_cu_language): Handling of DW_LANG_Fortran95
4402
747fe712
RE
44032002-01-11 Richard Earnshaw <rearnsha@arm.com>
4404
4405 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
4406 GETPID(inferior_ptid).
4407 (store_inferior_registers): Likewise.
4408
f1bea926
JM
44092002-01-10 Jason Merrill <jason@redhat.com>
4410
4411 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
4412 Fix DW_OP_minus.
4413
ae940673
AC
44142002-01-10 Andrew Cagney <ac131313@redhat.com>
4415
4416 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
4417 and bfd/elf32-sh-nbsd.c.
4418
00546b04
MS
44192002-01-10 Michael Snyder <msnyder@redhat.com>
4420
352ed7b4
MS
4421 * NEWS: Mention --pid and corefile/proc-id behavior change.
4422
c18be923
MS
4423 * Makefile.in: Add rules for gcore.o and linux-proc.o.
4424 * gcore.c: Include cli/cli-decode.h instead of command.h.
4425
00546b04
MS
4426 * main.c (captured_main): Add new command line option "--pid".
4427 If the second command line argument (following the symbol-file)
4428 begins with a digit, try to attach to it before trying to open
4429 it as a corefile.
4430 (print_gdb_help): Document the "--pid" argument.
4431
db60ec62
EZ
44322002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
4433
4434 * completer.c (command_completer): New function.
4435
4436 * completer.h <command_completer>: Add prototype.
4437
4438 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
4439 completer for the "help" command.
4440
39c22d1a
JM
44412002-01-09 Jason Merrill <jason@redhat.com>
4442
4443 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
4444
c564377f
MS
44452002-01-09 Michael Snyder <msnyder@redhat.com>
4446
975aec09
MS
4447 * i386-linux-nat.c (fill_fpxregset): Make global.
4448 (store_fpxregset): Ditto.
4449
db4a10fa
MS
4450 * gregset.h (gdb_fpxregset_t): Define.
4451 (supply_fpxregset): Prototype.
4452 (fill_fpxregset): Prototype.
4453
c564377f
MS
4454 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
4455
c3d45d70
RE
44562002-01-09 Richard Earnshaw <rearnsha@arm.com>
4457
4458 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
4459 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
4460 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
4461
fcc87af1
AC
44622002-01-09 Andrew Cagney <ac131313@redhat.com>
4463
4464 * MAINTAINERS: Update target maintainer rules so that any
4465 Maintainer can approve a tested patch for a maintenance-only
4466 target.
4467
dd96c05b
RE
44682002-01-09 Richard Earnshaw <rearnsha@arm.com>
4469
d4297db9 4470 * MAINTAINERS (write-after-approval): Add myself.
dd96c05b 4471
d4297db9 4472 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
dd96c05b
RE
4473 IN_SIGTRAMP.
4474
145fdc6e
MS
44752002-01-08 Michael Snyder <msnyder@redhat.com>
4476
4477 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
4478 real name of the executable, rather than the /proc name.
4479
be4d1333
MS
44802002-01-03 Michael Snyder <msnyder@redhat.com>
4481
4482 Implement a "generate-core-file" command in gdb, save target state.
4483 * gcore.c: New file. Implement new command 'generate-core-file'.
4484 Save a corefile image of the current state of the inferior.
4485 * linux-proc.c: Add linux-specific code for saving corefiles.
4486 * target.h (struct target_ops): Add new target vectors for saving
4487 corefiles; to_find_memory_regions and to_make_corefile_notes.
4488 (target_find_memory_regions): New macro.
4489 (target_make_corefile_notes): New macro.
4490 * target.c (update_current_target): Inherit new target methods.
4491 (dummy_find_memory_regions): New place-holder method.
4492 (dummy_make_corefile_notes): New place-holder method.
4493 (init_dummy_target): Initialize new dummy target vectors.
4494 * exec.c (exec_set_find_memory_regions): New function.
4495 Allow the exec_ops vector for memory regions to be taken over.
4496 (exec_make_note_section): New function, target vector method.
4497 * defs.h (exec_set_find_memory_regions): Export prototype.
4498 * procfs.c (proc_find_memory_regions): New function, corefile method.
4499 (procfs_make_note_section): New function, corefile method.
4500 (init_procfs_ops): Set new target vector pointers.
4501 (find_memory_regions_callback): New function.
4502 (procfs_do_thread_registers): New function.
4503 (procfs_corefile_thread_callback): New function.
4504 * sol-thread.c (sol_find_memory_regions): New function.
4505 (sol_make_note_section): New function.
4506 (init_sol_thread_ops): Initialize new target vectors.
4507 * inftarg.c (inftarg_set_find_memory_regions): New function.
4508 Allow to_find_memory_regions vector to be taken over.
4509 (inftarg_set_make_corefile_notes): New function.
4510 Allow to_make_corefile_notes vector to be taken over.
4511 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
4512 interface layer if not target_has_execution (may be a corefile).
4513 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
4514 * config/sparc/sun4sol2.mh: Ditto.
4515 * config/alpha/alpha-linux.mh: Ditto.
4516 * config/arm/linux.mh: Ditto.
4517 * config/i386/x86-64linux.mh: Ditto.
4518 * config/ia64/linux.mh: Ditto.
4519 * config/m68k/linux.mh: Ditto.
4520 * config/mips/linux.mh: Ditto.
4521 * config/powerpc/linux.mh: Ditto.
4522 * config/sparc/linux.mh: Ditto.
4523
c6b92abd
MS
45242002-01-07 Michael Snyder <msnyder@redhat.com>
4525
4526 * arm-linux-nat.c: Remove references to regcache.c internal data
4527 (registers[] and register_valid[]).
4528
4b09dc8c
MS
45292002-01-07 Michael Snyder <msnyder@redhat.com>
4530
abf22e64
AJ
4531 * linux-proc.c: New file. Implement child_pid_to_exec_file,
4532 so that attaching to a pid will automatically read the process's
4b09dc8c
MS
4533 symbol file and shlibs.
4534 * Makefile.in: Add rule for linux-proc.o.
4535 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
4536 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
4537 * config/arm/linux.mh: Ditto.
4538 * config/i386/linux.mh: Ditto.
4539 * config/i386/x86-64linux.mh: Ditto.
4540 * config/ia64/linux.mh: Ditto.
4541 * config/m68k/linux.mh: Ditto.
4542 * config/mips/linux.mh: Ditto.
4543 * config/powerpc/linux.mh: Ditto.
4544 * config/sparc/linux.mh: Ditto.
4545
c25b74ac
PM
45462002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
4547
4548 * win32-nat.c: Add i386-tdep.h dependency.
4549
94cd915f
MS
45502002-01-07 Michael Snyder <msnyder@redhat.com>
4551
c7cccb76
MS
4552 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
4553 instead of bfd_get_arch_size. Don't bail out just because
4554 there's no exec_bfd.
abf22e64 4555
34c0bd93
MS
4556 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
4557 * p-valprint.c (pascal_object_print_value): Ditto.
4558 * somread.c (som_symtab_read): Ditto.
4559 * symfile.c (simple_free_overlay_region_table): Ditto.
4560 * valops.c (value_assign): Ditto.
4561
21c1c920
MS
4562 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
4563 use tilde_expand and strerror for opening save-tracepoints file.
4564
5bbd998e
MS
4565 * thread-db.c (thread_db_new_objfile): Indendation fix.
4566
94cd915f
MS
4567 * infptrace.c (GDB_MAX_ALLOCA): New define.
4568 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
abf22e64 4569 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
94cd915f
MS
4570 can be overridden with whatever value is appropriate to the host).
4571 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
4572 alloca to allocate potentially large buffer.
4573 * rs6000-nat.c (child_xfer_memory): Ditto.
4574 * symm-nat.c (child_xfer_memory): Ditto.
4575 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
4576
494e8a93
JSC
45772002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
4578
4579 From Nick Clifton <nickc@redhat.com>
4580 * d10v-tdep.c: Set STACK_START to 0x200bffe.
4581
d0e1d48e
MS
45822002-01-07 Michael Snyder <msnyder@redhat.com>
4583
abf22e64 4584 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
d0e1d48e
MS
4585 Don't use exec_bfd if it's NULL.
4586
290b2c7a
MK
45872002-01-06 Mark Kettenis <kettenis@gnu.org>
4588
abf22e64 4589 * valops.c (value_arg_coerce): Fix formatting.
290b2c7a 4590
aef21287
AC
45912002-01-06 Andrew Cagney <ac131313@redhat.com>
4592
4593 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
4594 * gnu-nat.c: Ditto.
4595
30efa627
AC
45962002-01-06 Andrew Cagney <ac131313@redhat.com>
4597
4598 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
4599 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
4600 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
4601 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
4602 z8k-coff have not been multi-arched. Update z8k-coff build
4603 status.
4604
9b4ff276
AC
46052002-01-06 Andrew Cagney <ac131313@redhat.com>
4606
4607 * MAINTAINERS: Mark a29k target as obsolete.
4608 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
4609 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
4610 comments.
4611 * NEWS: Note that a29k targets are obsolete.
4612 * a29k-tdep.c: Mark as obsolete.
4613 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
4614 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
4615 a29k-*-vxworks* targets as obsolete.
4616 * remote-adapt.c: Obsolete.
4617 * remote-eb.c: Obsolete.
4618 * remote-mm.c: Obsolete.
4619 * remote-udi.c: Obsolete.
4620 * config/a29k/a29k-udi.mt: Obsolete.
4621 * config/a29k/a29k.mt: Obsolete.
4622 * config/a29k/tm-a29k.h: Obsolete.
4623 * config/a29k/tm-vx29k.h: Obsolete.
4624 * config/a29k/vx29k.mt: Obsolete.
4625
a9011d31
AC
46262002-01-05 Andrew Cagney <ac131313@redhat.com>
4627
4628 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
4629 with BFD_ENDIAN_BIG.
4630
9299404e
AC
46312002-01-05 Andrew Cagney <ac131313@redhat.com>
4632
4633 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
4634 * configure, config.in: Re-generate.
4635 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
4636 * defs.h: Do not include <endian.h>.
4637
7e89e357
JT
46382002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
4639
4640 * acconfig.h (HAVE_PT_GETXMMREGS): New.
4641 * config.in: Regenerate.
4642 * configure.in: Update copyright years.
4643 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
4644 * configure: Regenerate.
4645 * i386bsd-nat.c: Update copyright years.
4646 (fill_gregset): Use regcache_collect.
4647 (fetch_inferior_registers): Only fetch integer registers
4648 if requested to do so. Add support for XMM registers
4649 using PT_GETXMMREGS.
4650 (store_inferior_registers): Only store integer registers
4651 if requested to do so. Add support for XMM registers
4652 using PT_SETXMMREGS.
4653 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
4654 (store_inferior_registers): Remove.
4655 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
4656 (fetch_elfcore_registers): New function.
4657 (i386nbsd_elfcore_fns): New.
4658 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
4659 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
4660 i386bsd-nat.o.
4661 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
4662 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
4663 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
4664 * config/i386/tm-nbsd.h: Update copyright years.
4665 (HAVE_SSE_REGS): Define.
4666 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
4667 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
4668 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
4669 (SIGCONTEXT_PC_OFFSET): Remove.
4670 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
4671
a752853e
AC
46722002-01-05 Andrew Cagney <ac131313@redhat.com>
4673
4674 * configure.tgt: Remove powerpc-*-macos* target.
4675 * config/m68k/xm-mpw.h: Delete file.
4676 * config/xm-mpw.h: Delete file.
4677 * ser-mac.c: Delete file.
4678 * mpw-make.sed: Delete file.
4679 * mpw-config.in: Delete file.
4680 * mac-xdep.c: Delete file.
4681 * mac-gdb.r: Delete file.
4682 * mac-defs.h: Delete file.
4683 * mac-nat.c: Delete file.
4684 * config/powerpc/macos.mh: Delete file.
4685 * config/powerpc/macos.mt: Delete file.
4686 * config/powerpc/nm-macos.h: Delete file.
4687 * config/powerpc/tm-macos.h: Delete file.
4688 * source.c (openp, open_source_file): Remove obsolete code.
4689 * top.c (gdb_readline): Ditto.
4690 * utils.c (query): Ditto.
4691 * event-top.c (display_gdb_prompt): Ditto.
4692 * Makefile.in (ser-mac.o): Delete obsolete target.
4693 * NEWS: Update.
4694
d7449b42
AC
46952002-01-04 Andrew Cagney <ac131313@redhat.com>
4696
4697 * defs.h (BIG_ENDIAN): Delete macro definition.
4698 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
4699 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
4700 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
4701 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
4702 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
4703 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
4704 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
4705 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
4706 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
4707 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
4708 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
4709 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
4710 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
4711 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
4712 * gdbarch.c: Re-generate.
4713
356374e8
DJ
47142002-01-04 Daniel Jacobowitz <drow@mvista.com>
4715
4716 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
4717 for core files.
4718
a2b8f8f8
JT
47192002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
4720
4721 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
4722
12466af9
AC
47232002-01-04 Andrew Cagney <ac131313@redhat.com>
4724
4725 * value.h (value_ptr): Delete typedef.
4726
3549ab40
JT
47272002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
4728
4729 * i386nbsd-nat.c: Update copyright years.
4730 Include i386-tdep.h.
4731
fedbd091
EZ
47322002-01-04 Elena Zannoni <ezannoni@redhat.com>
4733
4734 * stabsread.c: Update copyright years.
4735
4736 From Debashis Mahata <debashis.mahata@wipro.com>:
4737 (read_struct_fields): Deal with Sun C compiler erroneous stab
4738 output for structs and unions.
fec8b34f 4739 Fix PR gdb/269.
fedbd091 4740
eb43544b
DJ
47412002-01-04 Daniel Jacobowitz <drow@mvista.com>
4742
4743 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
4744 prototype.
4745
1514d34e
DJ
47462002-01-04 Daniel Jacobowitz <drow@mvista.com>
4747
4748 * cp-abi.c: Fix whitespace.
4749 (baseclass_offset): New wrapper function.
4750 * cp-abi.h (baseclass_offset): Add prototype.
4751 (struct cp_abi_ops): Add baseclass_offset pointer.
4752
4753 * valops.c (vb_match): Move to...
4754 * gnu-v2-abi.c (vb_match): here.
4755 * valops.c (baseclass_offset): Move to...
4756 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
4757
4758 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
4759
4760 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
4761 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
4762 * hpacc-abi.c (init_hpacc_ops): Likewise.
4763
7f8c9282
DJ
47642002-01-04 Daniel Jacobowitz <drow@mvista.com>
4765
4766 * valops.c (find_overload_match): Accept obj as a
4767 reference parameter. Update it before returning.
4768 * value.h (find_overload_match): Update prototype.
4769 * eval.c (evaluate_subexp_standard): Pass object to
4770 find_overload_match by reference.
4771
f23631e4
AC
47722002-01-03 Andrew Cagney <ac131313@redhat.com>
4773
4774 * valarith.c: Replace value_ptr with struct value pointer. Remove
4775 register attribute from value declarations.
4776 * valops.c: Ditto.
4777 * value.h: Ditto.
4778 * scm-lang.c (scm_lookup_name): Ditto.
4779
79e10fab 47802002-01-03 Michael Snyder <msnyder@redhat.com>
abf22e64 4781
79e10fab
AC
4782 Abstract the functionality of iterating over mapped memory
4783 regions into a general purpose iterator function.
abf22e64 4784 * procfs.c (iterate_over_mappings): New function, general purpose
79e10fab
AC
4785 iterator for memory sections.
4786 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
4787 (solib_mappings_callback): New function, callback for above.
4788 (info_proc_mappings): Reimpliment using iterate_over_mappings.
4789 (info_mappings_callback): New function, callback for above.
4790
4791 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
4792
c5ad026a
MK
47932002-01-01 Mark Kettenis <kettenis@gnu.org>
4794
d2a7c97a
MK
4795 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
4796 * i386-tdep.c: Include "elf-bfd.h".
4797 (process_note_abi_tag_sections): New function.
4798 (i386_gdbarch_init): Add code to recognize various OS/ABI
4799 combinations.
4800
c5ad026a
MK
4801 * maint.c (_initialize_maint_cmds): Add missing \ in
4802 string-literal.
4803
a1a5b71e 4804For older changes see ChangeLog-2001
c906108c
SS
4805\f
4806Local Variables:
4807mode: change-log
4808left-margin: 8
4809fill-column: 74
4810version-control: never
4811End: