2002-12-08 Andrew Cagney <ac131313@redhat.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
97f46953
AC
12002-12-08 Andrew Cagney <ac131313@redhat.com>
2
3 * gdbarch.sh (INIT_FRAME_PC_FIRST, INIT_FRAME_PC_DEFAULT): Convert
4 to pure functions.
5 * gdbarch.h, gdbarch.c: Re-generate.
6 * frame.c (get_prev_frame): Explictly assign prev's pc with value
7 returned by INIT_FRAME_PC_FIRST and INIT_EXTRA_FRAME_INFO.
8
9 * arch-utils.h (init_frame_pc_default, init_frame_pc_noop): Change
10 declaration to a function returning a CORE_ADDR.
11 * x86-64-tdep.h (x86_64_init_frame_pc): Ditto.
12 * arch-utils.c (init_frame_pc_noop): Return the PC value.
13 (init_frame_pc_default): Ditto.
14 * x86-64-linux-tdep.c (x86_64_init_frame_pc): Ditto.
15 * s390-tdep.c (s390_init_frame_pc_first): Ditto.
16 * mips-tdep.c (mips_init_frame_pc_first): Ditto.
17 * dwarf2cfi.h (cfi_init_frame_pc): Ditto.
18 * dwarf2cfi.c (cfi_init_frame_pc): Ditto.
19 * alpha-tdep.c (alpha_init_frame_pc_first): Ditto.
20
21 * i386-interix-tdep.c (i386_interix_init_abi): Set init_frame_pc
22 to init_frame_pc_noop.
23 (i386_interix_init_frame_pc): Delete function.
24 * z8k-tdep.c (init_frame_pc): Delete function.
25 * config/z8k/tm-z8k.h (INIT_FRAME_PC): Define as init_frame_pc_noop.
26 (INIT_FRAME_PC_FIRST): Ditto.
27 * config/mn10200/tm-mn10200.h (INIT_FRAME_PC): Ditto.
28 (INIT_FRAME_PC_FIRST): Ditto.
29 * config/sparc/tm-sparc.h (INIT_FRAME_PC): Ditto.
30 * config/rs6000/tm-rs6000.h (INIT_FRAME_PC): Redefine as
31 init_frame_pc_noop.
32 (INIT_FRAME_PC_FIRST): Convert to an expression.
33 * config/sparc/tm-sparc.h (INIT_FRAME_PC_FIRST): Ditto.
34
8b36eed8
AC
352002-12-08 Andrew Cagney <ac131313@redhat.com>
36
37 * blockframe.c: Use get_frame_base instead of directly accessing
38 the `struct frame_info' member frame.
39 * f-valprint.c, std-regs.c, rs6000-tdep.c: Ditto.
40 * stack.c, dummy-frame.c, breakpoint.c: Ditto.
41
aeeccc89
EZ
422002-12-08 Elena Zannoni <ezannoni@redhat.com>
43
44 * Makefile.in (readline_h): Define.
45 (completer.o): Depend on readline_h.
46 (corelow.o): Ditto.
47 (event-top.o): Ditto.
48 (exec.o): Ditto.
49 (solib.o): Ditto.
50 (source.o): Ditto.
51 (symfile.o): Ditto.
52 (symmisc.o): Ditto.
53 (top.o): Ditto.
54 (tracepoint.o): Ditto.
55 (utils.o): Ditto.
56 (cli-dump.o): Ditto.
57 (tui-hooks.o): Ditto.
58 (tuiWin.o): Ditto.
59
38017ce8
EZ
602002-12-08 Elena Zannoni <ezannoni@redhat.com>
61
62 More cleanup from import of readline 4.3.
63 * completer.h (complete_line, readline_line_completion_function):
64 Update prototypes.
65 (line_completion_function): Removed, not used outside of completer.c.
66 * completer.c (readline_line_completion_function,
67 complete_function, line_completion_function): Use const for first
68 parameter.
69 (line_completion_function): Make static.
70 (filename_completer): filename_completion_function is now called
71 rl_filename_completion_function
72 * corelow.c: Include <readline/readline.h>.
73 * exec.c: Ditto.
74 * solib.c: Ditto.
75 * source.c: Ditto.
76 * symfile.c: Ditto.
77 * symmisc.c: Ditto.
78 * top.c (init_main): No need to coerce
79 readline_line_completion_function anymore.
80 * cli/cli-dump.c: Include <readline/readline.h>.
81
75e3c1f9
AC
822002-12-08 Andrew Cagney <ac131313@redhat.com>
83
84 * stack.c (frame_info): Use get_prev_frame.
85 * blockframe.c (frame_address_in_block): Ditto.
86 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
87 (rs6000_frameless_function_invocation): Ditto.
88 (rs6000_frame_saved_pc): Ditto.
89 (rs6000_frame_chain): Ditto.
90 * arch-utils.c (init_frame_pc_default): Ditto.
91
0d2b8049
AC
922002-12-08 Andrew Cagney <ac131313@redhat.com>
93
94 * config/mn10200/tm-mn10200.h (DEPRECATED_PC_IN_CALL_DUMMY):
95 Delete redundant definition.
96
9255ee31
EZ
972002-12-08 Elena Zannoni <ezannoni@redhat.com>
98
99 Import of readline 4.3:
100 * cli/cli-cmds.c: Include readline/tilde.h.
101 * cli/cli-setshow.c: Ditto.
102 * defs.h: Don't declare tilde_expand anymore, since readline
103 exports it.
104
3442dad6 1052002-12-08 Elena Zannoni <ezannoni@redhat.com>
57725d84
EZ
106
107 * Makefile.in (thread-db.o): Add explicit rule to ignore the use of
108 -Werror on this file.
109
52f87c51
AC
1102002-12-07 Andrew Cagney <ac131313@redhat.com>
111
112 * gdbarch.sh (TARGET_FLOAT_FORMAT): Use the macro when printing
113 the format name.
114 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
115 * gdbarch.c: Regenerate.
116
2ca6c561
AC
1172002-12-06 Andrew Cagney <ac131313@redhat.com>
118
119 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Rename
120 INIT_FRAME_PC_FIRST. Change to a function with predicate. Do not
121 provide a default value.
122 * gdbarch.h, gdbarch.c: Regenerate.
123 * frame.c (get_prev_frame): Update. Check
124 DEPRECATED_INIT_FRAME_PC_FIRST_P.
125 * s390-tdep.c (s390_gdbarch_init): Update.
126 * mips-tdep.c (mips_gdbarch_init): Update.
127 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
128 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
129 * alpha-tdep.c (alpha_gdbarch_init): Update.
130
e162d11b
EZ
1312002-12-06 Elena Zannoni <ezannoni@redhat.com>
132
133 * ia64-linux-nat.c: Include gdb_string.h.
134 * alpha-nat.c: Ditto.
2b298b5d
EZ
135 * ppc-linux-nat.c: Ditto.
136 * Makefile.in (ia64-linux-nat.o, alpha-nat.o, ppc-linux-nat.o):
137 Update dependencies.
e162d11b 138
aa0cd9c1
AC
1392002-12-05 Andrew Cagney <ac131313@redhat.com>
140
141 * gdbthread.h: Include "frame.h".
142 (struct thread_info): Replace step_frame_address with
143 step_frame_id.
144 * inferior.h: Include "frame.h".
145 (step_frame_id): Replace external variable step_frame_address.
146 * gdbthread.h (save_infrun_state): Replace step_frame_address
147 parameter with step_frame_id parameter.
148 (load_infrun_state): Ditto.
149 * Makefile.in (gdbthread_h, inferior_h): Add $(frame_h).
150 * infcmd.c (step_frame_id, step_1, step_once): Update.
151 * thread.c (load_infrun_state, save_infrun_state): Update.
152 * infrun.c (clear_proceed_status, save_inferior_status): Update.
153 (handle_inferior_event, step_over_function): Update.
154 (normal_stop, context_switch, restore_inferior_status): Update.
155 (struct inferior_status): Replace step_frame_address with
156 step_frame_id.
157
a9a9bd0f
DC
1582002-12-05 David Carlton <carlton@math.stanford.edu>
159
160 * dwarf2read.c (dwarf2_add_field): Treat a field that is a
161 DW_TAG_member as well as a declaration as being a C++ static data
162 member.
163 (read_structure_scope): Combine tests for DW_TAG_member and
164 DW_TAG_variable.
165
614b3b14
DC
1662002-12-05 David Carlton <carlton@math.stanford.edu>
167
168 * linespec.c (decode_compound): New function.
169 (decode_line_1): Move code into decode_compound.
170
e4051eeb
DC
1712002-12-05 David Carlton <carlton@math.stanford.edu>
172
173 * symtab.c (lookup_symbol_aux_local): Add 'static_block'
174 argument.
175 (lookup_symbol_aux): Do the 'field_of_this' check before checking
176 the static block. See PR gdb/804.
177
f61e8913
DC
1782002-12-05 David Carlton <carlton@math.stanford.edu>
179
180 * symtab.c (lookup_symbol_aux_block): New function.
181 (lookup_symbol_aux_local): Move code into lookup_symbol_aux_block.
182
1e9f55d0
AC
1832002-12-05 Andrew Cagney <ac131313@redhat.com>
184
185 * gdbarch.sh: Dump the predicate function and macro values.
186 (read): Print error on standard error.
187 * gdbarch.c: Regenerate.
188
d1973055
KB
1892002-12-04 Kevin Buettner <kevinb@redhat.com>
190
191 * Makefile.in (mips_tdep_h): Define.
192 (mips-tdep.o): Add mips_tdep_h to dependency list.
193 * mips-tdep.h: New file.
194 * mips-tdep.c (mips-tdep.h): Include.
195 (enum mips_abi): Move to mips-tdep.h.
196 (mips_abi): New function.
197
f1253c7b
DC
1982002-12-04 David Carlton <carlton@math.stanford.edu>
199
200 * Makefile.in (f-exp.tab.c): Don't depend on c-exp.tab.c.
201
406bc4de
DC
2022002-12-04 David Carlton <carlton@math.stanford.edu>
203
204 * symtab.c (lookup_symbol_aux): Move minsym code into a separate
205 function.
206 (lookup_symbol_aux_minsyms): New function.
207
2a3750c5
JB
2082002-12-04 J. Brobecker <brobecker@gnat.com>
209
210 * pa64solib.c: s/boolean/int/. Fixes a build failure on hppa64-hpux.
211
961d8652
JB
2122002-12-04 J. Brobecker <brobecker@gnat.com>
213
214 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Renamed from IN_SIGTRAMP,
215 which is an obsolete macro name.
216
38c52d5a
DJ
2172002-12-04 Daniel Jacobowitz <drow@mvista.com>
218
219 * doublest.c (convert_floatformat_to_doublest): Cast exp_bias to int.
220 * config/alpha/alpha-linux.mh (MH_CFLAGS): Add -mieee.
221
d8ef46f5
DJ
2222002-12-03 H.J. Lu (hjl@gnu.org)
223
224 * breakpoint.c (create_thread_event_breakpoint): Use xasprintf.
225 (create_breakpoints): Make sure the addr_string field is not
226 NULL.
227
02ae7771
AC
2282002-12-03 Andrew Cagney <ac131313@redhat.com>
229
230 * sparc-nat.c (fetch_inferior_registers)
231 (store_inferior_registers): Add comment on problem of LWP vs
232 threads.
233
234 From 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
235 * lin-lwp.c (lin_lwp_fetch_registers): Remove.
236 (lin_lwp_store_registers): Remove.
237 (init_lin_lwp_ops): Use fetch_inferior_registers
238 and store_inferior_registers directly.
239 * sparc-nat.c (fetch_inferior_registers): Honor LWP ID.
240 (store_inferior_registers): Likewise.
241 Fix PR gdb/725.
242
7a424e99
AC
2432002-12-03 Andrew Cagney <ac131313@redhat.com>
244
245 * frame.h (get_frame_id): Convert to a function.
246 (null_frame_id, frame_id_p): Declare.
247 (frame_id_eq, frame_id_inner): Declare.
248 (frame_id_build): New function.
249 * frame.c (get_frame_id): Update. Use null_frame_id.
250 (frame_find_by_id): Rewrite using frame_id_p, frame_id_eq and
251 frame_id_inner.
252 (null_frame_id, frame_id_p): Define.
253 (frame_id_eq, frame_id_inner): Define.
254 (frame_id_build): New function.
255 * varobj.c (varobj_create): Update.
256 (varobj_update): Update.
257 * valops.c (value_assign): Update.
258 (new_root_variable): Update.
259 * infrun.c (save_inferior_status): Update.
260 * breakpoint.c (watch_command_1): Update.
261
891c7f5f
JB
2622002-12-03 J. Brobecker <brobecker@gnat.com>
263
264 * config/pa/tm-hppah.h (SNAP1): Remove unused macro.
265 (SNAP2): Likewise.
266
144da3c1
AC
2672002-12-03 Andrew Cagney <cagney@redhat.com>
268
46248966
AC
269 * NEWS: Mention Daniel Jacobowitz's multi-threaded shared library
270 patch.
271
144da3c1
AC
272 * PROBLEMS: Mention PR gdb/725.
273
03c6228e
AS
2742002-12-03 Andreas Schwab <schwab@suse.de>
275
276 * infcmd.c (construct_inferior_arguments): Handle empty arguments.
277
36e53c63
AF
2782002-12-02 Adam Fedor <fedor@gnu.org>
279 Klee Dienes <kdienes@apple.com>
280
281 * objc-lang.c (objc_printstr): Add width arg to match
282 printstr prototype.
283 (compare_selectors): Add 'const' to arg types.
284 (compare_classes): Likewise.
285 (find_imps): Cast msym pointer to avoid compiler warning.
286 (print_object_command): Validate the address before
287 passing it to the print routine.
288 (find_objc_msgcall_submethod): Change function argument to
289 return an int.
290 * objc-lang.h: Add 'extern' to all function declarations.
291 (value_nsstring): Add declaration.
292
504d5c7e
JB
2932002-12-02 J. Brobecker <brobecker@gnat.com>
294
295 * somsolib.c (dld_cache): Replace boolean by int for field is_valid.
296 Fixes a build failure on HP/UX.
297
298 * hpread.c (told_objfile): Replace boolean type by int. Fixes a build
299 failure on HP/UX.
300 (hpread_has_name): Advance declaration to avoid a compilation warning.
301 (pst_syms_count): Add missing variable type. By change, the compiler
302 was defaulting to int, which seems a good choice. Fixes a compilation
303 warning.
304 (pst_syms_size): Likewise.
305
59623e27
JB
3062002-12-02 J. Brobecker <brobecker@gnat.com>
307
308 * hppa-tdep.c: Add #include "osabi.h" (for hppa_gdbarch_init).
309 (hppa_gdbarch_init): Detect osabi from objfile. Will be needed
310 later to set the proper gdbarch methods depending on the osabi.
311 * Makefile.in (hppa-tdep.o): Add dependency on osabi.h.
312
a09a320d
JB
3132002-12-02 J. Brobecker <brobecker@gnat.com>
314
315 * osabi.h (gdb_osabi): Add two new enum values for HPUX ELF and SOM.
316 * osabi.c (gdb_osabi_name): Add strings images for the two new
317 enum values.
318 (generic_elf_osabi_sniffer): Handle HPUX objfiles.
319
8a81a99e
AC
3202002-12-02 Andrew Cagney <ac131313@redhat.com>
321
322 * MAINTAINERS (Java): Global maintainers are responible for Java.
323 (Past Maintainers): Mention both Anthony Green and Per Bothner as
324 part Java maintainers.
325
7af35dad
JB
3262002-12-02 J. Brobecker <brobecker@gnat.com>
327
328 * xcoffread.c (read_symbol_lineno): Replace boolean by int.
329 Fixes a compilation failure on AiX.
330
f4ede9bc
JB
3312002-12-02 J. Brobecker <brobecker@gnat.com>
332
333 * config/powerpc/aix432.mh (NATDEPFILES): Add a comment explaining
334 why aix-thread.o is not listed.
335
ae45cd16
AC
3362002-12-01 Andrew Cagney <ac131313@redhat.com>
337
338 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Rename
339 PC_IN_CALL_DUMMY. Change to predicate. Always allow call.
340 * gdbarch.h, gdbarch.c: Re-generate.
341 * config/sparc/tm-sparc.h, config/sparc/tm-sp64.h: Update.
342 * config/mn10200/tm-mn10200.h, config/h8500/tm-h8500.h: Update.
343 * config/pa/tm-hppa.h, frame.h: Update.
344 * x86-64-tdep.c, vax-tdep.c, sparc-tdep.c: Update.
345 * s390-tdep.c, ns32k-tdep.c, mn10300-tdep.c: Update.
346 * m68k-tdep.c, i386-tdep.c, frv-tdep.c: Update.
347 * cris-tdep.c, alpha-tdep.c: Update.
348 * frame.c (set_unwind_by_pc, create_new_frame): Use either
349 DEPRECATED_PC_IN_CALL_DUMMY or pc_in_dummy_frame.
350 (get_prev_frame): Ditto.
351
020cc13c
AC
3522002-11-30 Andrew Cagney <cagney@redhat.com>
353
354 * exec.c (xfer_memory): Replace boolean with int.
355 * p-exp.y: Use 0 instead of false.
356 * corelow.c (gdb_check_format): Change return type to int from
357 boolean.
358 * utils.c: Don't include <curses.h> or <term.h> first.
359
1d9b2aa8
SC
3602002-11-29 Stephane Carrez <stcarrez@nerim.fr>
361
362 * m68hc11-tdep.c (m68hc11_register_raw_size): Remove.
363 (m68hc11_register_byte): Remove.
364 (m68hc11_gdbarch_init): Don't set the above.
365
a193e397
AC
3662002-11-29 Andrew Cagney <cagney@redhat.com>
367
368 * remote-mips.c (mips_initialize): Force a selected frame rebuild
369 by calling get_selected_frame.
370 * ocd.c (ocd_start_remote): Use get_selected frame instead of
371 set_current_frame, create_new_frame, select_frame and
372 get_current_frame.
373 * remote-e7000.c (e7000_start_remote): Ditto.
374 * remote-mips.c (common_open): Ditto
375 * remote-rdp.c (remote_rdp_open): Ditto.
376
b5fc49aa
AS
3772002-11-29 Andreas Schwab <schwab@suse.de>
378
379 * m68k-tdep.c (m68k_frame_chain, m68k_frame_saved_pc)
380 (altos_skip_prologue, delta68_frame_saved_pc, isi_frame_num_args)
381 (delta68_frame_num_args, news_frame_num_args, m68k_skip_prologue)
382 (m68k_frame_init_saved_regs, m68k_saved_pc_after_call): Use
383 read_memory_unsigned_integer instead of read_memory_integer when
384 dealing with addresses and instruction opcodes.
385 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc)
386 (m68k_linux_frame_saved_pc): Likewise.
387
6e7f8b9c
AC
3882002-11-29 Andrew Cagney <ac131313@redhat.com>
389
390 * stack.c (selected_frame, select_frame): Move from here ...
391 * frame.c (selected_frame, select_frame): ... to here. Include
392 "language.h".
393 * Makefile.in (frame.o): Update dependencies.
394 * frame.c (get_selected_frame): New function.
395 * frame.h (get_selected_frame): Declare.
396 (deprecated_selected_frame): Rename selected_frame.
397 * ada-lang.c, ada-tasks.c, breakpoint.c, corelow.c: Update.
398 * eval.c, f-valprint.c, findvar.c, frame.c, frame.h: Update.
399 * h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, infcmd.c: Update.
400 * inflow.c, infrun.c, macroscope.c, mips-tdep.c: Update.
401 * mn10300-tdep.c, ocd.c, regcache.h, remote-e7000.c: Update.
402 * remote-mips.c, remote-rdp.c, sh-tdep.c, sparc-tdep.c: Update.
403 * stack.c, thread.c, tracepoint.c, valops.c, varobj.c: Update.
404 * z8k-tdep.c, cli/cli-cmds.c: Update.
405
805e2818
AC
4062002-11-29 Andrew Cagney <ac131313@redhat.com>
407
408 * frame.h (get_selected_block): Add comments.
409
1058bca7
AC
4102002-11-28 Andrew Cagney <ac131313@redhat.com>
411
412 * frame.c (pc_notcurrent): New function.
413 (find_frame_sal): New function.
414 * frame.h (find_frame_sal): Declare.
415 (struct symtab_and_line): Add opaque declaration.
fe67b6c5
AC
416 * stack.c (print_frame_info_base): Use find_frame_sal instead of
417 find_pc_line.
1058bca7
AC
418 (frame_info): Ditto.
419 * ada-lang.c (find_printable_frame): Ditto.
420
d92419e5
JB
4212002-11-28 J. Brobecker <brobecker@gnat.com>
422
423 * configure.in: Check that the pthdebug library is recent enough
424 before enabling thread support on native AiX.
425 * configure: Regenerate.
426
427 * config/powerpc/aix432.mh (NATDEPFILES): Remove aix-thread.o
428 from the list of object files as it is now appended by configure
429 if thread support is enabled.
430 (NAT_CLIBS): Removed as -lpthdebug is also appended by configure
431 if thread support is enabled.
432
8c69fc49
AC
4332002-11-28 Andrew Cagney <cagney@redhat.com>
434
435 * stack.c (get_selected_block): In-line get_current_block.
436 * frame.h (get_current_block): Delete declaration.
437 * blockframe.c (get_current_block): Delete function.
438
07555a72
AC
4392002-11-28 Andrew Cagney <ac131313@redhat.com>
440
441 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Rename
442 USE_GENERIC_DUMMY_FRAMES.
443 * gdbarch.h, gdbarch.c: Regenerate.
444 * valops.c, frame.c: Update.
445 * config/z8k/tm-z8k.h, config/mn10200/tm-mn10200.h: Update.
446 * config/m32r/tm-m32r.h, config/h8500/tm-h8500.h: Update.
447 * config/pa/tm-hppa.h, blockframe.c: Update.
448 * vax-tdep.c, sparc-tdep.c, ns32k-tdep.c: Ditto.
449 * m68k-tdep.c, alpha-tdep.c: Ditto.
450
451 * arm-tdep.c: Eliminate USE_GENERIC_DUMMY_FRAMES as always 1.
452 * mips-tdep.c: Ditto.
453
b99fa2d2
AC
4542002-11-27 Andrew Cagney <ac131313@redhat.com>
455
456 * gdbarch.sh (CALL_DUMMY_LOCATION): Default to AT_ENTRY_POINT.
457 (USE_GENERIC_DUMMY_FRAMES): Default to true.
458 (PC_IN_CALL_DUMMY): Default to generic_pc_in_call_dummy.
459 * gdbarch.c, gdbarch.h: Re-generate.
460 * inferior.h (USE_GENERIC_DUMMY_FRAMES): Delete macro definition.
461 (CALL_DUMMY_LOCATION): Delete macro definition.
462 (PC_IN_CALL_DUMMY): Delete macro definitions.
463
464 * arm-tdep.c (arm_gdbarch_init): Do not set pc_in_call_dummy,
465 default is already generic_pc_in_call_dummy.
466 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
467 * v850-tdep.c (v850_gdbarch_init): Ditto.
468 * sh-tdep.c (sh_gdbarch_init): Ditto.
469 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
470 * mips-tdep.c (mips_gdbarch_init): Ditto.
471 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
472 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
473 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
474 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
475 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
476 * avr-tdep.c (avr_gdbarch_init): Ditto.
477
478 * arm-tdep.c (arm_gdbarch_init): Do not set
479 use_generic_dummy_frames, default is already 1.
480 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
481 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
482 * v850-tdep.c (v850_gdbarch_init): Ditto.
483 * sh-tdep.c (sh_gdbarch_init): Ditto.
484 * s390-tdep.c (s390_gdbarch_init): Ditto.
485 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
486 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
487 * mips-tdep.c (mips_gdbarch_init): Ditto.
488 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
489 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
490 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
491 * i386-tdep.c (i386_gdbarch_init): Ditto.
492 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
493 * frv-tdep.c (frv_gdbarch_init): Ditto.
494 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
495 * cris-tdep.c (cris_gdbarch_init): Ditto.
496 * avr-tdep.c (avr_gdbarch_init): Ditto.
497
498 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
499 call_dummy_location, default is already AT_ENTRY_POINT.
500 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
501 * v850-tdep.c (v850_gdbarch_init): Ditto.
502 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
503 * sh-tdep.c (sh_gdbarch_init): Ditto.
504 * s390-tdep.c (s390_gdbarch_init): Ditto.
505 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
506 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
507 * mips-tdep.c (mips_gdbarch_init): Ditto.
508 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
509 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
510 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
511 * i386-tdep.c (i386_gdbarch_init): Ditto.
512 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
513 * frv-tdep.c (frv_gdbarch_init): Ditto.
514 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
515 * cris-tdep.c (cris_gdbarch_init): Ditto.
516 * avr-tdep.c (avr_gdbarch_init): Ditto.
517 * arm-tdep.c (arm_gdbarch_init): Ditto.
518 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
519
abc0af47
AC
5202002-11-28 Andrew Cagney <cagney@redhat.com>
521
522 * frame.h: Update comments on set_current_frame, create_new_frame,
523 flush_cached_frames, reinit_frame_cache, select_frame and
524 selected_frame.
525
ed5cedc5
AC
5262002-11-27 Andrew Cagney <cagney@redhat.com>
527
528 * config/z8k/tm-z8k.h (PC_IN_CALL_DUMMY): Update definition to use
529 deprecated pc_in_call_dummy function.
530 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Ditto.
531 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Ditto.
532 * config/pa/tm-hppa.h (PC_IN_CALL_DUMMY): Ditto.
533 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Ditto.
534 * config/h8500/tm-h8500.h (PC_IN_CALL_DUMMY): Ditto.
535
b2a1bd4f
MH
5362002-11-26 Martin M. Hunt <hunt@redhat.com>
537
538 * Makefile.in: Remove Tix dependencies.
539 * acinclude.m4: Ditto.
540 * aclocal.m4: Ditto.
541 * configure.in: Ditto.
542 * configure: Regenerated.
543
f09cffaa
AC
5442002-11-26 Andrew Cagney <ac131313@redhat.com>
545
546 * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name.
547 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
548 * gdbarch.c: Re-generate.
549
e92b0cc9
AC
5502002-11-26 Andrew Cagney <ac131313@redhat.com>
551
552 * config/h8500/tm-h8500.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
553 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
554 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
555 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
556 pc_in_call_dummy_at_entry_point.
557 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
558 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
559 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
560 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
561 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
562 pc_in_call_dummy_on_stack.
563 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
564 pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
565 * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
566 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
567 (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
568
b4b88177
AC
5692002-11-26 Andrew Cagney <ac131313@redhat.com>
570
571 * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
572 pc_in_call_dummy_before_text_end
573 (deprecated_pc_in_call_dummy_after_text_end): Rename
574 pc_in_call_dummy_after_text_end.
575 (deprecated_pc_in_call_dummy_on_stack): Rename
576 pc_in_call_dummy_on_stack.
577 (deprecated_pc_in_call_dummy_at_entry_point): Rename
578 pc_in_call_dummy_at_entry_point.
579 * m68k-tdep.c (m68k_gdbarch_init): Update.
580 * s390-tdep.c (s390_gdbarch_init): Update.
581 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
582 * vax-tdep.c (vax_gdbarch_init): Update.
583 * sparc-tdep.c (sparc_gdbarch_init): Update.
584 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
585 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
586 * i386-tdep.c (i386_gdbarch_init): Update.
587 * frv-tdep.c (frv_gdbarch_init): Update.
588 * cris-tdep.c (cris_gdbarch_init): Update.
589 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
590 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
591 (deprecated_pc_in_call_dummy_after_text_end)
592 (deprecated_pc_in_call_dummy_on_stack)
593 (deprecated_pc_in_call_dummy_at_entry_point): Update.
594 * alpha-tdep.c (alpha_gdbarch_init): Update.
595
eb784848
DJ
5962002-11-25 Daniel Jacobowitz <drow@mvista.com>
597
598 * acconfig.h (HAVE_PREAD64): Add.
599 * configure.in: Check for pread64.
600 * config.in: Regenerated.
601 * configure: Regenerated.
602 * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
603 * linux-proc.c (linux_proc_xfer_memory): New function.
604 * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
605
933c6fe4
DC
6062002-11-25 David Carlton <carlton@math.stanford.edu>
607
608 * dwarf2read.c (scan_partial_symbols): Descend into namespace
609 pdi's with no name.
610
158a8022
AC
6112002-11-25 Andrew Cagney <ac131313@redhat.com>
612
613 * MAINTAINERS: Mark h8500 as broken. Breakage occured Fri Nov 5
614 16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>.
615
481d0f41
JB
6162002-11-25 Jim Blandy <jimb@redhat.com>
617
e8289572
JB
618 * symfile.c (init_objfile_sect_indices): New function.
619 (default_symfile_offsets): Move the section-index-initializing
620 stuff into init_objfile_sect_indices, and call that.
621
b29c9944
JB
622 * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
623 (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
624
13de58df
JB
625 * symfile.c (syms_from_objfile): Adjust indentation.
626
481d0f41
JB
627 * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
628 || info_verbose isn't true.
629
7d6a26a7
AC
6302002-11-24 Andrew Cagney <ac131313@redhat.com>
631
632 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
633 default to get_frame_base.
634 * gdbarch.h, gdbarch.c: Regenerate.
635 * arch-utils.c (default_frame_address): Delete function.
636 * arch-utils.h (default_frame_address): Delete declaration
637
6abe1021
PM
6382002-11-24 Pierre Muller <muller@ics.u-strasbg.fr>
639
640 * varobj.c (find_frame_addr_in_frame_chain):
641 Use get_frame_base instead of FRAME_FP,
642 obvious fix.
643
c193f6ac
AC
6442002-11-19 Andrew Cagney <ac131313@redhat.com>
645
646 * frame.h (FRAME_FP): Delete macro.
647 (get_frame_base): New function declaration.
648 * frame.c (get_frame_base): New function.
649 (get_frame_id): Use ->frame.
650 (frame_find_by_id): Rewrite to use get_frame_id.
651 * blockframe.c: Use get_frame_base instead of FRAME_FP.
652 * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
653 * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
654 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
655 * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
656 * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
657 * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
658
e5d2af14
AC
6592002-11-24 Andrew Cagney <ac131313@redhat.com>
660
661 * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
662
931d12c6
AC
6632002-11-24 Andrew Cagney <ac131313@redhat.com>
664
665 * frame.c (set_unwind_by_pc): Revert change below, use
666 PC_IN_CALL_DUMMY.
667 (get_prev_frame): Ditto.
668
5e0f933e
AC
6692002-11-24 Andrew Cagney <ac131313@redhat.com>
670
671 * dummy-frame.c (pc_in_dummy_frame): New function.
672 (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
673 (find_dummy_frame): Update comment.
674 (generic_pop_current_frame): Use get_frame_type.
675 * dummy-frame.h (pc_in_dummy_frame): Declare.
676 * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
677 (create_new_frame): Use pc_in_dummy_frame.
678 (get_prev_frame): Use pc_in_dummy_frame.
679 (frame_saved_regs_register_unwind): Use get_prev_frame.
680 (deprecated_generic_get_saved_register): Use get_prev_frame.
681
7d8547c9
AC
6822002-11-23 Andrew Cagney <ac131313@redhat.com>
683
684 * blockframe.c (find_frame_addr_in_frame_chain): Move function
685 from here ...
686 * varobj.c (find_frame_addr_in_frame_chain): ... to here.
687 (varobj_create): Note that frame ID should be used.
688 * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
689
0225421b
AC
6902002-11-23 Andrew Cagney <ac131313@redhat.com>
691
692 * breakpoint.c: Include "gdb_assert.h".
693 (deprecated_frame_in_dummy): Assert that generic dummy frames are
694 not being used.
695 * Makefile.in (breakpoint.o): Update dependencies.
696 * ada-lang.c (find_printable_frame): Use get_frame_type instead of
697 deprecated_frame_in_dummy.
698 * stack.c (print_frame_info_base): Ditto.
699 (frame_info): Ditto.
700 (print_frame_info_base): Ditto. Delete dead code.
701
32eeb91a
AS
7022002-11-23 Andreas Schwab <schwab@suse.de>
703
704 * Makefile.in (m68k_tdep_h): Define.
705 (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
706 (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
707 * m68k-tdep.c: Move register number enum ...
708 * m68k-tdep.h: ... to this new file and rename the constants from
709 E_* to M68K_*. All uses changed.
710 * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
711 * abug-rom.c: Include "m68k-tdep.h". Use
712 M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
713 * cpu32bug-rom.c: Likewise.
714 * dbug-rom.c: Likewise.
715 * m68k-tdep.c: Likewise.
716 * m68klinux-nat.c: Likewise.
717 * remote-est.c: Likewise.
718 * rom68k-rom.c: Likewise.
719 * config/m68k/tm-linux.h: Likewise.
720
9648bac8
AC
7212002-11-23 Andrew Cagney <ac131313@redhat.com>
722
723 * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
724 dummy frame initialization code.
725 * mips-tdep.c (mips_gdbarch_init): Ditto.
726
91a175b3
CF
7272002-11-22 Christopher Faylor <cgf@redhat.com>
728
729 * win32-nat.c (child_attach): Reset saw_create counter or subsequent
730 attach will hang.
731
f4ded5b1
AC
7322002-11-22 Andrew Cagney <ac131313@redhat.com>
733
734 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
735 to default_frame_address.
736 * gdbarch.h, gdbarch.c: Re-generate.
737
738 * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
739 or frame_locals_address to default_frame_address.
740 * m68k-tdep.c (m68k_gdbarch_init): Update.
741 * i386-tdep.c (i386_gdbarch_init): Update.
742 * frv-tdep.c (frv_gdbarch_init): Update.
743 * sh-tdep.c (sh_gdbarch_init): Update.
744 * v850-tdep.c (v850_gdbarch_init): Update.
745 * sparc-tdep.c (sparc_gdbarch_init): Update.
746 * mips-tdep.c (mips_gdbarch_init): Update.
747 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
748 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
749 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
750
751 * cris-tdep.c (cris_frame_args_address): Delete function.
752 (cris_frame_locals_address): Delete function.
753 (cris_gdbarch_init): Do not set frame_args_address or
754 frame_locals_address.
755
f7c1e0f3
MS
7562002-11-22 Michael Snyder <msnyder@redhat.com>
757
758 * thread-db.c (thread_db_load): Tell the user what's going on
759 if dlopen fails on libthread_db.
760
03dac896
AS
7612002-11-23 Andreas Schwab <schwab@suse.de>
762
763 * m68k-tdep.c (m68k_register_virtual_type): Use architecture
764 invariant return values.
765
7a67d0fe
AS
7662002-11-22 Andreas Schwab <schwab@suse.de>
767
768 * valops.c (value_slice): Move declaration of `offset' to avoid
769 warning.
770
5633f842
CF
7712002-11-22 Christopher Faylor <cgf@redhat.com>
772
773 * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
774 (struct so_stuff): Add end_addr field.
775 (register_loaded_dll): Calculate and store end address of loaded dll.
776 (solib_address): New function.
777 (child_solib_loaded_library_pathname): Pass carefully constructed
778 section info to safe_symbol_file_add rather than ignoring it.
779 (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
780 DLL is loaded.
781 (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
782 (child_create_inferior): Fix a compiler warning.
783 * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
784 (solib_address): Declare new function.
785
d85fe7f7
AS
7862002-11-22 Andreas Schwab <schwab@suse.de>
787
788 * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
789 and FPS registers.
790
8308e54c
DJ
7912002-11-21 Daniel Jacobowitz <drow@mvista.com>
792
793 * maint.c (_initialize_maint_cmds): Fix typo. From
794 Francesco Potorti` <pot@gnu.org>.
795
8997bd5e
AC
7962002-11-21 Andrew Cagney <cagney@redhat.com>
797
798 * mips-tdep.c (mips_dump_tdep): Delete references to
799 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
800 * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
801 (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
802 * printcmd.c (build_address_symbolic): Delete calls to
803 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
804 (address_info): Ditto.
805 Fix PR gdb/773.
806
4e87b832
KD
8072002-11-19 Klee Dienes <kdienes@apple.com>
808 Adam Fedor <fedor@gnu.org>
809
810 * completer.c (skip_quoted_chars): Renamed from skip_chars. Add
811 the ability to explicitly specify the quote characters and word
812 break characters; if NULL is specified for either, use the old
813 behavior of using the characters used by the completer.
814 (skip_chars): New function. Convenience wrapper around
815 skip_quoted_chars to provide the original skip_chars behavior.
816 * completer.h (skip_quoted_chars): Add prototype.
817
9ba8d803
AC
8182002-11-19 Andrew Cagney <ac131313@redhat.com>
819
820 Problems reported by Paul Eggert.
821 * gdbarch.sh: Use `sort -k 3`. Fix PR gdb/527.
822
0a595803
AS
8232002-11-19 Andreas Schwab <schwab@suse.de>
824
825 * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP)
826 (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET)
827 (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc)
828 (m68k_linux_frame_saved_pc): Move to ...
829 * m68klinux-tdep.c: ... here. New file.
830 * Makefile.in (m68klinux-tdep.o): Add dependencies.
831 * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
832
e8afa4d7
AF
8332002-11-19 Adam Fedor <fedor@gnu.org>
834
835 * objc-exp.y: Revert to old skip_quoted usage.
836
a76c9d72
AF
8372002-11-19 Adam Fedor <fedor@gnu.org>
838
839 * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
840 (objc_lang_h): Define.
841 (YYFILES): Add objc-exp.tab.c.
842 (local-maintainer-clean): Remove objc-exp.tab.c.
843 (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
844
fd0e9d45
PM
8452002-11-19 Pierre Muller <muller@ics.u-strasbg.fr>
846
847 * p-exp.y (typecast rule): Add automatic dereference of
848 pascal classes if needed.
849 (THIS): Set current_type.
850 Automatically dereference pascal classes.
851 (typebase rule): Add ^typebase recognition.
852
82eeeb94
AF
8532002-11-18 Adam Fedor <fedor@gnu.org>
854
855 * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
856 OP_OBJC_MSGCALL, and OP_OBJC_SELF.
857 (op_name): Handle OP_OBJC_SELF.
858 * Makefile.in (expprint.o): Add additional depends.
859
646df18d
AF
8602002-11-18 Adam Fedor <fedor@gnu.org>
861
862 * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
863 OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
864 * parse.c (length_of_subexp, prefixify_subexp): Likewise.
865 * objc-exp.y: Likewise.
866
379b85df
AF
8672002-11-18 Adam Fedor <fedor@gnu.org>
868
869 * gdb/parser-defs.h: (struct objc_class_str): New structure
870 for parsing ObjC classes.
871
85cf597a
AC
8722002-11-18 Andrew Cagney <ac131313@redhat.com>
873
874 * stack.c (frame_relative_level): Copy function from here ...
875 * frame.c (frame_relative_level): ...to here.
876
5a203e44
AC
8772002-11-18 Andrew Cagney <ac131313@redhat.com>
878
879 * frame.h (enum frame_type): Define.
880 (get_frame_type): Declare.
881 (struct frame_info): Add field `type'. Delete field
882 signal_handler_caller.
883 (deprecated_set_frame_signal_handler_caller): Declare.
884 * frame.c (get_frame_type): New function.
885 (deprecated_set_frame_type): New function.
886 (create_new_frame): Set the frame's type.
887 (get_prev_frame): Similar.
888 * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
889 * s390-tdep.c: Ditto.
890 * m68klinux-nat.c: Ditto.
891 * ns32k-tdep.c: Ditto.
892 * x86-64-linux-tdep.c: Ditto.
893 * vax-tdep.c: Ditto.
894 * rs6000-tdep.c: Ditto.
895 * ppc-linux-tdep.c: Ditto.
896 * i386-interix-tdep.c: Ditto.
897 * mips-tdep.c: Ditto.
898 * m68k-tdep.c: Ditto.
899 * hppa-tdep.c: Ditto.
900 * ia64-tdep.c: Ditto.
901 * cris-tdep.c: Ditto.
902 * arm-tdep.c: Ditto.
903 * alpha-tdep.c: Ditto.
904 * i386-tdep.c: Ditto.
905 * stack.c: Ditto.
906 * ada-lang.c: Ditto.
907 * blockframe.c: Update.
908 * i386-interix-tdep.c (i386_interix_back_one_frame): Use
909 deprecated_set_frame_type instead of signal_handler_caller.
910 * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
911 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
912 * breakpoint.h: Delete FIXME suggesting get_frame_type.
913
bf4ae8b2
KD
9142002-11-18 Klee Dienes <kdienes@apple.com>
915
916 * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
917
a672ef13
KD
9182002-11-18 Klee Dienes <kdienes@apple.com>
919
920 * buildsym.c (pop_context): Add comment.
921
0c5e171a
KD
9222002-11-18 Klee Dienes <kdienes@apple.com>
923
924 * buildsym.h (pop_context): Convert to function, defined in
925 buildsym.c.
926 * buildsym.c: Include gdb_assert.h.
927 (pop_context): Implement as C function. Add check for stack
928 underflow.
929 * dbxread.c (process_one_symbol): Complain and stop processing
930 that symbol if we are already at the top of the context stack for
931 a function-end N_FUN (this would imply an umatched RBRAC). Ditto
932 when processing N_RBRAC.
933
8a1f4c4c
DJ
9342002-11-16 Daniel Jacobowitz <drow@mvista.com>
935
936 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
937 define.
938 (struct target_waitstatus): Add opaque definition.
939 * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
940 * exec.c (init_exec_ops): Likewise.
941 * fork-child.c (clone_and_follow_inferior): Remove.
942 * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
943 * inferior.h (clone_and_follow_inferior): Remove prototype.
944 * infrun.c (follow_fork_mode_both): Remove.
945 (follow_fork_mode_kind_names): Remove commented out "both".
946 (follow_inferior_fork): Remove follow_fork_mode_both support.
947 * inftarg.c (child_clone_and_follow_inferior): Remove.
948 (child_post_follow_inferior_by_clone): Remove.
949 (init_child_ops): Don't set to_clone_and_follow_inferior
950 or to_post_follow_inferior_by_clone.
951 * target.c (default_clone_and_follow_inferior): Remove.
952 (cleanup_target): Don't set to_clone_and_follow_inferior
953 or to_post_follow_inferior_by_clone.
954 (find_default_clone_and_follow_inferior): Remove.
955 (init_dummy_target): Don't set to_clone_and_follow_inferior.
956 (debug_to_clone_and_follow_inferior): Remove.
957 (debug_to_post_follow_inferior_by_clone): Remove.
958 (setup_target_debug): Don't set to_clone_and_follow_inferior
959 or to_post_follow_inferior_by_clone.
960 * target.h (struct target_ops): Remove to_clone_and_follow_inferior
961 and to_post_follow_inferior_by_clone.
962 (child_clone_and_follow_inferior): Remove prototype.
963 (child_post_follow_inferior_by_clone): Remove prototype.
964 (target_clone_and_follow_inferior): Remove macro.
965 (target_post_follow_inferior_by_clone): Remove macro.
966 (find_default_clone_and_follow_inferior): Remove prototype.
967
47932f85
DJ
9682002-11-16 Daniel Jacobowitz <drow@mvista.com>
969
970 * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
971 inferior_has_vforked, and inferior_has_execd instead of
972 target_has_forked, target_has_vforked, and target_has_execd.
973 * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
974 (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
975 (CHILD_WAIT): Define.
976 (child_wait): Add prototype.
977 * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
978 Add prototype.
979 (hpux_has_vforked): Likewise, from child_has_vforked.
980 (hpux_has_execd): Likewise, from child_has_execd.
981 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
982 (not_same_real_pid, child_wait): New, copied from inftarg.c.
983 Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
984 and hpux_has_syscall_event instead of the target hooks.
985 * infrun.c (inferior_has_forked, inferior_has_vforked)
986 (inferior_has_execd): New functions.
987 * inftarg.c (not_same_real_pid): Remove.
988 (child_wait): Remove references to not_same_real_pid,
989 target_has_forked, target_has_vforked, target_has_execd,
990 and target_has_syscall_event.
991 (child_has_forked, child_has_vforked, child_has_execd)
992 (child_has_syscall_event): Remove.
993 (init_child_ops): Remove references to child_has_forked,
994 child_has_vforked, child_has_execd, and child_has_syscall_event.
995 * infttrace.c (hpux_has_forked): Rename from child_has_forked.
996 (hpux_has_vforked): Likewise, from child_has_vforked.
997 (hpux_has_execd): Likewise, from child_has_execd.
998 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
999 * target.c (cleanup_target): Remove references to
1000 to_has_forked, to_has_vforked, to_has_execd, and
1001 to_has_syscall_event.
1002 (update_current_target): Likewise.
1003 (setup_target_debug): Likewise.
1004 (debug_to_has_forked): Remove.
1005 (debug_to_has_vforked): Remove.
1006 (debug_to_has_execd): Remove.
1007 (debug_to_has_syscall_event): Remove.
1008 * target.h (struct target_ops): Remove to_has_forked.
1009 to_has_vforked, to_has_execd, and to_has_syscall_event.
1010 (child_has_forked, child_has_vforked, child_has_execd)
1011 (child_has_syscall_event): Remove prototypes.
1012 (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
1013 prototypes.
1014 (target_has_forked, target_has_vforked, target_has_execd)
1015 (target_has_syscall_event): Remove macros.
1016
4088142a
DJ
10172002-11-16 Daniel Jacobowitz <drow@mvista.com>
1018
1019 * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
1020 * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
1021 (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
1022 * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
1023 * target.c (cleanup_target): Remove reference to
1024 to_can_follow_vfork_prior_to_exec.
1025 (update_current_target): Likewise.
1026 (debug_to_can_follow_vfork_prior_to_exec): Remove.
1027 (setup_target_debug): Remove reference to
1028 to_can_follow_vfork_prior_to_exec.
1029 * target.h (struct target_ops): Remove
1030 to_can_follow_vfork_prior_to_exec.
1031 (child_can_follow_vfork_prior_to_exec): Remove prototype.
1032 (target_can_follow_vfork_prior_to_exec): Remove definition.
1033 * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
1034 define.
1035 * infrun.c (follow_vfork_when_exec): Remove.
1036 (follow_inferior_fork): Remove references to follow_vfork_when_exec.
1037 (follow_exec): Likewise.
1038 (handle_inferior_event): Likewise.
1039 (keep_going): Likewise.
1040
18cde8d5
AC
10412002-11-15 Andrew Cagney <cagney@redhat.com>
1042
1043 * frame.c (generic_unwind_get_saved_register): Make static.
1044 * frame.h (generic_unwind_get_saved_register): Delete declaration.
1045 * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
1046 defaults to generic_unwind_get_saved_register.
1047 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1048 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1049 * frv-tdep.c (frv_gdbarch_init): Ditto.
1050 * i386-tdep.c (i386_gdbarch_init): Ditto.
1051 * s390-tdep.c (s390_gdbarch_init): Ditto.
1052 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1053 * v850-tdep.c (v850_gdbarch_init): Ditto.
1054 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1055 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1056 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
1057
a6b063af
AC
10582002-11-15 Andrew Cagney <cagney@redhat.com>
1059
1060 * x86-64-linux-nat.c (i386_sse_regnum_p): New function. Copy from
1061 i386-tdep.c.
1062
f407986f
AC
10632002-11-15 Andrew Cagney <cagney@redhat.com>
1064
1065 * frame.h (sigtramp_saved_pc): Delete declaration.
1066 * blockframe.c (sigtramp_saved_pc): Delete function.
1067 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
1068 (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
1069 * vax-tdep.c (vax_sigtramp_saved_pc): New function.
1070 (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
1071
f18c5a73
AC
10722002-11-15 Andrew Cagney <ac131313@redhat.com>
1073
1074 * frame.c (frame_pc_unwind): New function.
1075 (frame_saved_regs_pc_unwind): New function.
1076 (frame_register_unwind): Pass unwind_cache instead of
1077 register_unwind_cache.
1078 (set_unwind_by_pc): Add unwind_pc parameter, set.
1079 (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
1080 (get_prev_frame): Ditto.
1081 * frame.h (frame_pc_unwind_ftype): Declare.
1082 (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
1083 pc_unwind_cache. Rename register_unwind_cache to unwind_cache.
1084 (frame_pc_unwind): Declare.
1085 * dummy-frame.c (dummy_frame_pc_unwind): New function.
1086 (struct dummy_frame): Add comment mentioning that values are for
1087 previous frame.
1088 * dummy-frame.h (dummy_frame_pc_unwind): Declare.
1089 * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
1090 (generic_file_frame_chain_valid): Ditto.
1091 * stack.c (frame_info): Ditto.
1092
d9285969 10932002-11-15 David Carlton <carlton@math.stanford.edu>
0960f083
DC
1094
1095 * linespec.c (locate_first_half): New function.
1096 (decode_line_1): Move code into locate_first_half.
1097
d741b867
AC
10982002-11-15 Andrew Cagney <ac131313@redhat.com>
1099
1100 * complaints.h: Add comment explaining how to eliminate a
1101 deprecated_complain call.
24382c5c 1102 * complaints.h: Fix spelling errors.
d741b867 1103
82d03c99
DC
11042002-11-15 David Carlton <carlton@math.stanford.edu>
1105
1106 * printcmd.c: Remove #include "disasm.h".
1107
c97eb5d9
AC
11082002-11-14 Andrew Cagney <ac131313@redhat.com>
1109
1110 * frame.h: Move the most relevant interface functions to the start
1111 of the file.
1112
524d7c18
AC
11132002-11-14 Andrew Cagney <ac131313@redhat.com>
1114
1115 * regcache.h (deprecated_registers): Rename registers.
1116 * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
1117 * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
1118 * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
1119 * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
1120 * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
1121 * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
1122 * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
1123 * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
1124 * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
1125 * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
1126 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
1127 * v850ice.c: Update.
1128
6411e720
AC
1129Wed Nov 13 19:51:05 2002 Andrew Cagney <cagney@redhat.com>
1130
1131 * utils.c (gdb_realpath): Add comment mentioning realpath with a
1132 NULL buffer.
1133
73937e03
AC
11342002-11-13 Andrew Cagney <cagney@redhat.com>
1135
1136 * regcache.h (deprecated_read_register_bytes): Rename
1137 read_register_bytes.
1138 (deprecated_write_register_bytes): Rename write_register_bytes.
1139 * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
1140 * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
1141 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
1142 * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
1143 * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
1144 * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
1145 * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
1146 * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
1147 * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
1148 * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
1149 * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
1150 * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
1151 * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
1152 * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
1153
fb0cd46e
JB
11542002-11-13 Jim Blandy <jimb@redhat.com>
1155
1156 * findvar.c (read_var_value): Doc fix.
1157
2d28509a
AC
11582002-11-13 Andrew Cagney <cagney@redhat.com>
1159
1160 * regcache.c (struct regcache): Replace passthough_p with
1161 readonly_p.
1162 (regcache_xmalloc): Initialize readonly_p.
1163 (build_regcache): Initialize readonly_p.
1164 (regcache_save): New function.
1165 (regcache_restore): New function.
1166 (regcache_cpy): Re-implement using regcache_save and
1167 regcache_restore.
1168 (regcache_raw_read): Update.
1169 (regcache_cooked_read): When a read-only cache, checked for cached
1170 pseudo register values.
1171 (regcache_raw_write): Assert that the cache is not read-only.
1172 Remove code handling a non-passthrough cache.
1173 * regcache.h (regcache_save): Declare.
1174 (regcache_restore): Declare.
1175
067df2e5
AC
11762002-11-13 Andrew Cagney <cagney@redhat.com>
1177
1178 * regcache.c (struct regcache_descr): Add fields
1179 sizeof_cooked_registers and sizeof_cooked_register_valid_p.
1180 (init_legacy_regcache_descr): Compute the size of a cooked
1181 register cache and then assign that to sizeof_raw_registers. Set
1182 sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
1183 (init_legacy_regcache_descr): Ditto.
1184
51b1fe4e
AC
11852002-11-13 Andrew Cagney <cagney@redhat.com>
1186
1187 * regcache.c (register_buffer): Move to near start of file, update
1188 description.
1189 (regcache_raw_read): Use.
1190 (regcache_raw_write): Use.
1191 (struct regcache): Rename raw_registers to registers and
1192 raw_register_valid_p to register_valid_p.
1193 (regcache_xmalloc): Update.
1194 (regcache_xfree): Update.
1195 (register_buffer): Update.
1196 (regcache_cpy): Update.
1197 (regcache_cpy_no_passthrough): Update.
1198 (regcache_valid_p): Update.
1199 (deprecated_grub_regcache_for_registers): Update.
1200 (deprecated_grub_regcache_for_register_valid): Update.
1201 (set_register_cached): Update.
1202 (regcache_raw_write): Update.
1203
80b4c677
PM
12042002-11-13 Pierre Muller <muller@ics.u-strasbg.fr>
1205
1206 * p-exp.y (name_not_typename): Use copy_name to
1207 set current_type variable for fields of THIS.
1208
0f3fafde
DJ
12092002-11-12 Daniel Jacobowitz <drow@mvista.com>
1210
1211 * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
1212 * monitor.c (init_base_monitor_ops): Likewise.
1213 * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
1214 * remote-array.c (init_array_ops): Likewise.
1215 * remote-e7000.c (init_e7000_ops): Likewise.
1216 * remote-es.c (init_es1800_ops): Likewise.
1217 (init_es1800_child_ops): Likewise.
1218 * remote-rdp.c (init_remote_rdp_ops): Likewise.
1219 * remote-sim.c (init_gdbsim_ops): Likewise.
1220 * remote-st.c (init_st2000_ops): Likewise.
1221 * sol-thread.c (init_sol_core_ops): Likewise.
1222 (init_sol_thread_ops): Likewise.
1223 * v850ice.c (init_850ice_ops): Likewise.
1224 * win32-nat.c (init_child_ops): Likewise.
1225 * wince.c (init_child_ops): Likewise.
1226
82c0260e
AC
12272002-11-12 Andrew Cagney <ac131313@redhat.com>
1228
1229 * utils.c (gdb_realpath): Make rp a constant pointer.
1230
70d35819
AC
12312002-11-12 Andrew Cagney <ac131313@redhat.com>
1232
1233 * utils.c (gdb_realpath): Rewrite. Try, in order: realpath() with
1234 a constant buffer; cannonicalize_file_name(); realpath() with a
1235 pathconf() defined buffer, xstrdup().
1236
9835a8b0
AC
12372002-11-12 Andrew Cagney <ac131313@redhat.com>
1238
1239 * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
1240 to hang2.C; hang3.c to hang3.C.
1241
3f47be5c
EZ
12422002-11-11 Elena Zannoni <ezannoni@redhat.com>
1243
1244 * findvar.c (read_var_value): Reenable TLS code.
1245
12462002-11-11 Elena Zannoni <ezannoni@redhat.com>
1247 Jim Blandy <jimb@redhat.com>
1248
1249 * gdb_thread_db.h (enum): Add TD_NOTALLOC.
1250 * target.c (update_current_target): Add
1251 to_get_thread_local_address.
1252 * target.h (to_get_thread_local_address): Export.
1253 (target_get_thread_local_address): Define.
1254 (target_get_thread_local_address_p): Define.
1255 * thread-db.c: Include solib-svr4.h.
1256 (td_thr_tls_get_addr_p): Define.
1257 (thread_db_load): Get a pointer to td_thr_tls_get_addr.
1258 (thread_db_get_thread_local_address): New function.
1259 (init_thread_db_ops): Initialize to_get_thread_local_address.
1260 * configure.in: Add test for TD_NOTALLOC in thread_db.h.
1261 * configure: Regenerate.
1262 * config.in: Regenerate.
1263
636b1a6d
DC
12642002-11-11 David Carlton <carlton@math.stanford.edu>
1265
1266 * linespec.c (set_flags): New function.
1267 (decode_line_1): Move code into set_flags.
1268
44fe14ab
DC
12692002-11-11 David Carlton <carlton@math.stanford.edu>
1270
1271 * linespec.c (decode_line_1): Move chunks of code to separate
1272 functions.
1273 (initialize_defaults): New function.
1274 (decode_indirect): New function.
1275
e6f181f5
AC
12762002-11-11 Andrew Cagney <ac131313@redhat.com>
1277
8971b011
AC
1278 * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
1279 instead of void_code_ptr.
1280 (sigtramp_saved_pc): Ditto.
1281
e6f181f5
AC
1282 * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
1283 i386_fp_regnum_p.
1284
01ad7f36
DJ
12852002-11-10 Daniel Jacobowitz <drow@mvista.com>
1286
1287 * gdbtypes.h (struct main_type): Move artificial flag out of
1288 loc. New member of ``struct field'' named static_kind. Reduce
1289 overloaded meaning of bitsize.
1290 (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
1291 (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
1292 (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
1293
1294 * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
1295 new fields.
1296 (template_to_fixed_record_type, template_to_static_fixed_type)
1297 (to_record_with_fixed_variant_part): Likewise.
1298 * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
1299 * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
1300 * dwarfread.c (struct_type, enum_type): Likewise.
1301 * hpread.c (hpread_read_enum_type)
1302 (hpread_read_function_type, hpread_read_doc_function_type)
1303 (hpread_read_struct_type): Likewise.
1304 * mdebugread.c (parse_symbol): Likewise.
1305
bf1e52be
AC
13062002-11-10 Andrew Cagney <ac131313@redhat.com>
1307
1308 * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
1309 * stack.c (print_frame_info_base): Update.
1310 (print_frame_info_base, frame_info): Update.
1311 * sparc-tdep.c (sparc_init_extra_frame_info): Update.
1312 (sparc_frame_saved_pc): Update.
1313 * ada-lang.c (find_printable_frame): Update.
1314 * breakpoint.c (deprecated_frame_in_dummy): Update.
1315
ce556f85
MK
13162002-11-09 Mark Kettenis <kettenis@gnu.org>
1317
1318 * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
1319 defined.
1320 (regmap): Extend to cover all registers.
1321 (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
1322 OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
1323 definitions.
1324 (fetch_register, sore_register): Simplify.
1325 (old_fetch_inferior_registers, old_store_inferior_registers):
1326 Remove functions.
1327 (cannot_fetch_register, cannot_store_register): Change
1328 implementation to use regmap array to decide which registers
1329 cannot be fetched/stored. This removes $orig_eax from the
1330 registers that cannot be fetched/stored.
1331 (fetch_inferior_registers): Call fetch_register directly instead
1332 of calling old_fetch_inferior_registers.
1333 (store_inferior_registers): Call store_register directly instead
1334 of calling old_store_inferior_registers.
1335 (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
1336 (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
1337 * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
1338
932bb524
KD
13392002-11-09 Klee Dienes <kdienes@apple.com>
1340
1341 * i387-tdep.c (i387_supply_register): When called with NULL as a
1342 buffer, mark the register as not provided (to mirror the behavior
1343 of supply_register).
1344 (i387_supply_fxsave): Ditto.
1345 (i387_supply_fsave): Ditto (inherits the behavior from
1346 i387_supply_register).
1347
ebe68b27
KD
13482002-11-09 Klee Dienes <kdienes@apple.com>
1349
1350 * blockframe.c (sigtramp_saved_pc): Use
1351 builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
1352 extracting the PC). Use TYPE_LENGTH (builtin_type_void_code_ptr)
1353 instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
1354
15220c65
AC
13552002-11-09 Andrew Cagney <ac131313@redhat.com>
1356
1357 * frame.c (get_prev_frame): Test prev_p to identify a previously
1358 unwound frame. Initialize prev_p.
1359 * frame.h (struct frame_info): Add field prev_p. Expand prev/next
1360 comment.
1361
95adb866
AC
13622002-11-09 Andrew Cagney <ac131313@redhat.com>
1363
1364 * frame.c (get_prev_frame): Cleanups. Eliminate redundant tests
1365 for a NULL NEXT_FRAME. Simplify fromleaf initialization. Add
1366 more comments. Zap dead code.
1367
e71ecd70
MK
13682002-11-09 Mark Kettenis <kettenis@gnu.org>
1369
1370 * infcmd.c (print_vector_info, print_float_info): Move code that
1371 checks whether the target has any registers and whether there is a
1372 selected frame up, such that it is also used if a target provides
1373 multi-arch definitions of these functions.
1374
c525330d
AC
13752002-11-08 Andrew Cagney <ac131313@redhat.com>
1376
72bdd927
AC
1377 * Makefile.in (DESTDIR): Define.
1378 (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
1379 prefix.
1380
c525330d
AC
1381 * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
1382 i386obsd-tdep.c. Rename to "gdb.cxx", paths containing "gdb.c++".
1383
38c968cf
AC
13842002-11-08 Andrew Cagney <ac131313@redhat.com>
1385
1386 * i386-linux-tdep.c: Include "reggroups.h".
1387 (i386_linux_register_reggroup_p): New function.
1388 (i386_linux_init_abi): Set register_reggroup_p to
1389 i386_linux_register_reggroup_p.
1390 * i386-tdep.h (i386_register_reggroup_p): Declare.
1391 * i386-tdep.c: Include "reggroups.h".
1392 (i386_init_reggroups): New function.
1393 (i386_add_reggroups): New function.
1394 (i386_register_reggroup_p): New function.
1395 (i386_sse_reggroup, i386_mmx_reggroup): New variables.
1396 (_initialize_i386_tdep): Call i386_init_reggroups.
1397 (i386_gdbarch_init): Set register_reggroup_p and add in the i386
1398 specific reggroups.
1399
19e33363
MK
14002002-11-09 Mark Kettenis <kettenis@gnu.org>
1401
371a6e84
MK
1402 * infptrace.c (child_xfer_memory): Make use of the new PT_IO
1403 request that's available in *BSD.
1404
94ba925a
MK
1405 * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
1406
19e33363
MK
1407 * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
1408 FDOFF_REGNUM.
1409
8779790c
AC
14102002-11-08 Andrew Cagney <ac131313@redhat.com>
1411
1412 * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
1413 * dummy-frame.c (find_dummy_frame): Rename
1414 generic_find_dummy_frame, make static. Return the dummy frame
1415 instead of the regcache.
1416 (generic_find_dummy_frame): Re-implement using find_dummy_frame,
1417 (cached_find_dummy_frame): New function. Use find_dummy_frame.
1418 (dummy_frame_register_unwind): Rename
1419 generic_call_dummy_register_unwind. Use cached_find_dummy_frame.
1420 * dummy-frame.h (dummy_frame_register_unwind): Rename
1421 generic_call_dummy_register_unwind.
1422
8674b74f
MK
14232002-11-08 Mark Kettenis <kettenis@gnu.org>
1424
1425 * config/i386/tm-i386v42mp.h: Remove file. Move its contents,
1426 except the inclusion of "i386/tm-i386.h", to...
1427 * config/i386/nm-i386v42mp.h: ...here.
1428 * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
1429
4c1e7e9d
AC
14302002-11-08 Andrew Cagney <ac131313@redhat.com>
1431
1432 * Makefile.in (frame.o): Update dependencies.
1433 * blockframe.c (current_frame, frame_obstack_alloc)
1434 (frame_saved_regs_zalloc, get_current_frame)
1435 (set_current_frame, create_new_frame)
1436 (set_unwind_by_pc, get_next_frame)
1437 (flush_cached_frames, reinit_frame_cache)
1438 (frame_saved_regs_register_unwind)
1439 (deprecated_generic_get_saved_register)
1440 (get_prev_frame, get_frame_pc, get_frame_saved_regs)
1441 (_initialize_blockframe): Move frame code from here...
1442 * frame.c: ...to here. Include "gdb_obstack.h", "gdbcore.h",
1443 "annotate.h" and "dummy-frame.h".
1444 (_initialize_frame): New function.
1445
921e78cf
JB
14462002-11-08 Jim Blandy <jimb@redhat.com>
1447
1448 * dwarf2read.c (read_func_scope): Restore list_in_scope properly
1449 when we finish a function a context.
1450 * buildsym.h (outermost_context_p): New macro.
1451 (Bug analyzed by David Edelsohn.)
1452
9c1412c1
AC
14532002-11-08 Andrew Cagney <ac131313@redhat.com>
1454
1455 * blockframe.c: Include "dummy-frame.h".
1456 (struct dummy_frame, dummy_frame_stack)
1457 (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
1458 (generic_pc_in_call_dummy, deprecated_read_register_dummy)
1459 (generic_push_dummy_frame, generic_save_dummy_frame_tos)
1460 (generic_save_call_dummy_addr, generic_pop_current_frame)
1461 (generic_pop_dummy_frame, generic_fix_call_dummy)
1462 (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
1463 dummy frame code from here...
1464 * dummy-frame.c: ...to here. New file.
1465 * dummy-frame.h: New file.
1466 (generic_call_dummy_register_unwind): Declare.
1467 (generic_find_dummy_frame): Declare.
1468 * Makefile.in (SFILES): Add dummy-frame.c.
1469 (dummy-frame.o): Specify dependencies.
1470 (dummy_frame_h): Define.
1471 (COMMON_OBS): Add dummy-frame.o.
1472 (blockframe.o): Update dependencies.
1473
208d8187
JB
14742002-11-08 Jim Blandy <jimb@redhat.com>
1475
1476 * dwarf2read.c (read_func_scope): Restore local_symbols and
1477 param_symbols after we finish the function context. (Based on a
1478 patch from David Edelsohn.)
1479
413dad4d
DC
14802002-11-08 David Carlton <carlton@math.stanford.edu>
1481
1482 * linespec.c (symbol_found): New function.
1483 (minsym_found): New function.
1484 (decode_line_1): Separate out some code into separate functions.
1485
5512c44a
JB
14862002-11-08 Joel Brobecker <brobecker@gnat.com>
1487
1488 * i386-tdep.c (i386_frameless_signal_p): Make non static for
1489 the benefit of the interix target.
1490 * i386-tdep.h (i386_frameless_signal_p): Declare.
1491
1b33ef47
AC
14922002-11-08 Andrew Cagney <ac131313@redhat.com>
1493
1494 * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
1495 declaration that snuck in from change below.
1496
23a34459
AC
14972002-11-06 Andrew Cagney <cagney@redhat.com>
1498
1499 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
1500 all callers.
1501 (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P.
1502 (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P.
1503 (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P.
1504 (i386_mxcsr_regnum_p): new function. Use instead of
1505 MXCSR_REGNUM_P.
1506 * i386-tdep.h (SSE_REGNUM_P): Delete macro.
1507 (i386_sse_regnum_p): Declare.
1508 (i386_mxcsr_regnum_p): Declare.
1509 (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
1510 (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
1511 (IS_FP_REGNUM): Update definition.
1512 (IS_FPU_CTRL_REGNUM): Update definition..
1513 (IS_SSE_REGNUM): Update definition..
1514 * i386v-nat.c (register_u_addr): Update.
1515 * go32-nat.c (fetch_register): Update.
1516 (store_register): Update.
1517
d709c020
JB
15182002-11-07 Joel Brobecker <brobecker@gnat.com>
1519
1520 Preparation work to convert the hppa targets to multiarch partial.
1521
1522 * hppa-tdep.c: Add new functions replacing macro bodies from
1523 config/pa/tm-hppa.h. These function will be used to initialize
1524 the gdbarch structure. Import some comments from tm-hppa.h,
1525 and place them where appropriate, to avoid loosing them when
1526 we cleanup this file.
1527 (hppa_reg_struct_has_addr): New function.
1528 (hppa_inner_than): New function.
1529 (hppa_stack_align): New function.
1530 (hppa_pc_requires_run_before_use): New function.
1531 (hppa_instruction_nullified): New function.
1532 (hppa_register_byte): New function.
1533 (hppa_register_virtual_type): New function.
1534 (hppa_store_struct_return): New function.
1535 (hppa_cannot_store_register): New function.
1536 (hppa_frame_args_address): New function.
1537 (hppa_frame_locals_address): New function.
1538 (hppa_smash_text_address): New function.
1539 (hppa_coerce_float_to_double): New function. Requires the inclusion
1540 of "language.h".
1541
1542 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
1543
1544 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
1545 gdbarch-eligible macro to a call to the new associated function
1546 created in hppa-tdep.c.
1547 (INNER_THAN): Likewise.
1548 (STACK_ALIGN): Likewise.
1549 (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
1550 (INSTRUCTION_NULLIFIED): Likewise.
1551 (REGISTER_BYTE): Likewise.
1552 (REGISTER_VIRTUAL_TYPE): Likewise.
1553 (STORE_STRUCT_RETURN): Likewise.
1554 (CANNOT_STORE_REGISTER): Likewise.
1555 (FRAME_ARGS_ADDRESS): Likewise.
1556 (FRAME_LOCALS_ADDRESS): Likewise.
1557 (SMASH_TEXT_ADDRESS): Likewise.
1558 (COERCE_FLOAT_TO_DOUBLE): Likewise.
1559 (ABOUT_TO_RETURN): Delete, as no longer used.
1560
83c31e7d
FN
15612002-11-07 Fernando Nasser <fnasser@redhat.com>
1562
1563 * printcmd.c (disassemble_command): Remove obsolete function.
1564 (_initialize_printcmd): Do not create disassemble command here.
1565 * cli/cli-cmds.c (disassemble_command): New function. Implements
1566 disassemble command.
1567 (init_cli_cmds): Create disassemble command here instead.
1568
0ec30a36
AC
15692002-11-07 Andrew Cagney <ac131313@redhat.com>
1570
1571 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
1572
e600bd34
AC
15732002-11-07 Andrew Cagney <ac131313@redhat.com>
1574
1575 * regcache.h (regcache_cooked_read_using_offset_hack)
1576 (regcache_cooked_write_using_offset_hack): Delete declarations.
1577 (register_changed): Delete declaration.
1578 * regcache.c (regcache_cooked_read_using_offset_hack)
1579 (regcache_cooked_write_using_offset_hack): Delete functions.
1580 (cooked_xfer_using_offset_hack): Delete function.
1581 (register_changed): Delete function.
1582
568f8739
JB
15832002-11-07 Jim Blandy <jimb@redhat.com>
1584
1585 * macroscope.c: #include "complaints.h".
1586 (sal_macro_scope): Cope with filenames that appear in the symtabs,
1587 but not in the macro table.
1588 * Makefile.in (macroscope.o): Record dependency.
1589
b0718b7b
JB
15902002-11-07 Joel Brobecker <brobecker@gnat.com>
1591
1592 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
1593
2b9e5f3f
AC
15942002-11-07 Andrew Cagney <ac131313@redhat.com>
1595
1596 * regcache.c (deprecated_registers_fetched): Update.
1597 * regcache.h (deprecated_registers_fetched): Rename
1598 registers_fetched.
1599 * remote-vxsparc.c (vx_read_register): Update.
1600 * remote-vxmips.c (vx_read_register): Update.
1601 * remote-vx68.c (vx_read_register): Update.
1602 * irix5-nat.c (fetch_core_registers): Update.
1603 * mipsm3-nat.c (fetch_inferior_registers): Update.
1604 * sun3-nat.c (fetch_inferior_registers): Update.
1605 * symm-nat.c (fetch_inferior_registers): Update.
1606 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
1607 (fetch_core_registers): Update.
1608 (fetch_kcore_registers): Update.
1609 * mips-nat.c (fetch_inferior_registers): Update.
1610 * corelow.c (get_core_registers): Update.
1611 * a68v-nat.c (fetch_inferior_registers): Update.
1612
e6e68f1f
JB
16132002-11-06 Joel Brobecker <brobecker@gnat.com>
1614
1615 Put in place the framework necessary for multiarching the hppa targets.
1616 * hppa-tdep.c (hppa_gdbarch_init): New function.
1617 (hppa_dump_tdep): New function.
1618 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
1619 tdep structure dumper.
1620 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
1621 until the multi-arching conversion has partially been completed.
1622
492254e9
AC
16232002-11-06 Andrew Cagney <ac131313@redhat.com>
1624
1625 * valops.c (value_assign): Merge lval_register case into
1626 lval_reg_frame_relative. Use frame_register and
1627 regcache_cooked_write instead of get_saved_register and
1628 write_register_bytes. After flushing the register cache, try to
1629 re-select the selected frame.
1630
8262ee23
AC
16312002-11-06 Andrew Cagney <ac131313@redhat.com>
1632
1633 * regcache.h (deprecated_register_valid): Rename register_valid.
1634 * regcache.c: Update.
1635 * ia64-aix-nat.c: Update.
1636 * i386gnu-nat.c: Update.
1637 * alpha-nat.c: Update.
1638 * sparc-nat.c: Update.
1639 * lynx-nat.c: Update.
1640 * remote-mips.c: Update.
1641
4facf7e8
JB
16422002-11-06 Joel Brobecker <brobecker@gnat.com>
1643
1644 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
1645 to end of file, to be more consistent with the pratice followed
1646 by other targets.
1647
f9418c0f
AC
16482002-11-06 Andrew Cagney <ac131313@redhat.com>
1649
1650 * infcmd.c: Include "reggroups.h" and <ctype.h>.
1651 (print_float_info): Print registers in float_reggroup.
1652 (print_vector_info): Print registers in vector_reggroup.
1653 (default_print_registers_info): When all, print registers in
1654 all_reggroup. Otherwize, print registers in general_reggroup.
1655 (registers_info): Rewrite. Add support for register groups.
1656 Eliminate a goto.
1657
3fe235a7
EZ
16582002-11-06 Elena Zannoni <ezannoni@redhat.com>
1659
1660 * symtab.c (methods_info): Delete. It has been ifdeffed out for
1661 ages.
1662 (symtab_symbol_info): Remove eons old ifdeffed out code.
1663 (_initialize_symtab): Remove prehistoric disabled 'info methods'
1664 command.
1665
ef944135
TR
16662002-11-06 Theodore A. Roth <troth@openavr.org>
1667
1668 * c-exp.y: Add missing semi-colons.
1669 * f-exp.y: Add missing semi-colons.
1670 * m2-exp.y: Add missing semi-colons.
1671 * p-exp.y: Add missing semi-colons.
1672 Add empty action to start rule to avoid a type clash error when
1673 building with bison >= 1.50.
1674
f8302a57
JB
16752002-11-06 Jim Blandy <jimb@redhat.com>
1676
1677 * macrotab.h (struct macro_source_file): Doc fix.
1678
6e382aa3
JJ
16792002-11-05 Jeff Johnston <jjohnstn@redhat.com>
1680
1681 * varobj.c (child_exists, cplus_number_of_children): Change
1682 STREQ macro references to strcmp.
1683 (cplus_name_of_child): Change code to handle the fact that
1684 fields are not necessarily contiguous with regards to their
1685 access control. This is a fix for PR gdb/792.
1686
a216a322
AC
16872002-11-05 Andrew Cagney <ac131313@redhat.com>
1688
1689 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
1690 * gdbarch.h, gdbarch.c: Regnerate.
1691 * frame.h (frame_register): Declare.
1692 * frame.c (frame_register): New function.
1693 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
1694 GET_SAVED_REGISTER, otherwize call
1695 generic_unwind_get_saved_register.
1696 (frame_register_read): Use frame_register instead of
1697 get_saved_register.
1698
7d5b6fdd
EZ
16992002-11-05 Elena Zannoni <ezannoni@redhat.com>
1700
1701 From Jim Ingham <jingham@apple.com>:
1702 * event-top.c (gdb_disable_readline): New function.
1703 (_initialize_event_loop): Move comment.
1704
b7c64260
EZ
17052002-11-05 Elena Zannoni <ezannoni@redhat.com>
1706
1707 * event-loop.c (start_event_loop): Add comment.
1708 Update copyright.
1709
c2e1b8f2
AC
17102002-11-05 Andrew Cagney <ac131313@redhat.com>
1711
1712 * infcmd.c (default_print_registers_info): Do not call
1713 PRINT_REGISTER_HOOK.
1714
87647bb0
AC
17152002-11-05 Andrew Cagney <ac131313@redhat.com>
1716
1717 * sparc-tdep.c (sparc_print_register_hook): Make static.
1718 (sparc_print_registers_info): New function.
1719 (sparc_do_registers_info): New function.
1720 (sparclet_print_registers_info): New function.
1721 (sparclet_do_registers_info): New function.
1722 (do_sparc_print_registers_info): New function.
1723 (sparc_print_registers): New static function, clone of infcmd.c's
1724 default_print_registers_info.
1725 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
1726 (sparclet_do_registers_info): Declare.
1727 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
1728 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
1729 Re-define.
1730 (sparc_do_registers_info): Declare.
1731 (PRINT_REGISTER_HOOK): Delete macro.
1732 (sparc_print_register_hook): Delete declaration.
1733
8155455b
DC
17342002-11-05 David Carlton <carlton@math.stanford.edu>
1735
1736 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
1737 functions.
1738 (lookup_symbol_aux_local): New function.
1739 (lookup_symbol_aux_symtabs): New function.
1740 (lookup_symbol_aux_psymtabs): New function.
1741
29924310
DC
17422002-11-05 David Carlton <carlton@math.stanford.edu>
1743
1744 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
1745 previous values of 'objfile' and 'block'.
1746
cc303028
PM
17472002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
1748
1749 * values.c (value_change_enclosing_type): Set
1750 enclosing_type field correctly also for the case where
1751 more memory needs to be allocated.
1752
1d70089a
MK
17532002-11-03 Mark Kettenis <kettenis@gnu.org>
1754
f16a25ae
MK
1755 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
1756 of puts_filtered.
1757
1d70089a
MK
1758 * i387-tdep.c (i387_print_float_info): Replace calls to
1759 register_read and deprecated_read_register_gen with calls to
1760 frame_register_read, and make the necessary adjustments to the
1761 surrounding code.
1762
7e20f3fb
AC
17632002-11-02 Andrew Cagney <ac131313@redhat.com>
1764
1765 * gdbarch.sh (register_reggroup_p): Allow default value.
1766 * gdbarch.h, gdbarch.c: Regenerate.
1767
192dbe33
AC
17682002-11-02 Andrew Cagney <ac131313@redhat.com>
1769
1770 * regcache.h: Add coment indicating replacements for deprecated
1771 functions.
1772
b59ff9d5
AC
17732002-11-02 Andrew Cagney <cagney@redhat.com>
1774
1775 * reggroups.h, reggroups.c: New files.
1776 * regcache.c: Include "reggroups.h".
1777 (enum regcache_dump_what): Add `regcache_dump_groups'.
1778 (regcache_dump): Contract size of the "Type" column. When
1779 specified, dump the register's groups.
1780 (maintenance_print_register_groups): New function.
1781 (_initialize_regcache): Add command `maint print register-groups'.
1782 * Makefile.in (COMMON_OBS): Add reggroups.o
1783 (SFILES): Add reggroups.c.
1784 (reggroups_h): Define.
1785 (regcache.o, gdbarch.o): Update dependencies.
1786 (reggroups.o): Specify dependencies.
1787 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
1788 Add opaque declaration for `struct reggroup' in generated .h file.
1789 Include "reggroups.h" in generated .c file.
1790 gdbarch.h, gdbarch.c: Re-generate.
1791
4caf0990
AC
17922002-11-02 Andrew Cagney <cagney@redhat.com>
1793
1794 * regcache.h (deprecated_read_register_gen): Rename
1795 read_register_gen.
1796 (deprecated_write_register_gen): Rename write_register_gen.
1797 * i387-tdep.c: Update.
1798 * x86-64-linux-nat.c: Update
1799 * wince.c: Update.
1800 * thread-db.c: Update.
1801 * win32-nat.c: Update.
1802 * mips-tdep.c: Update.
1803 * d10v-tdep.c: Update.
1804 * cris-tdep.c: Update.
1805 * remote-sim.c: Update.
1806 * remote-rdi.c: Update.
1807 * remote-rdp.c: Update.
1808 * frame.c: Update.
1809 * target.c: Update.
1810 * blockframe.c: Update.
1811 * x86-64-tdep.c: Update.
1812 * xstormy16-tdep.c: Update.
1813 * sh-tdep.c: Update.
1814 * s390-tdep.c: Update.
1815 * rs6000-tdep.c: Update.
1816 * sparc-tdep.c: Update.
1817 * i386-tdep.c: Update.
1818 * dwarf2cfi.c: Update.
1819 * regcache.c: Update.
1820
7a7adcdf
JB
18212002-11-01 Joel Brobecker <brobecker@gnat.com>
1822
1823 New interix-specific files:
1824 * config/i386/nm-interix.h: New file.
1825 * config/i386/interix.mh: New file.
1826 * config/i386/interix.mt: New file.
1827 * i386-interix-nat.c: New file.
1828 * i386-interix-tdep.c: New file.
1829
bdcdd535
AC
18302002-11-01 Andrew Cagney <cagney@redhat.com>
1831
1832 * frame.h (deprecated_generic_get_saved_register): Rename
1833 generic_get_saved_register.
1834 * blockframe.c (deprecated_generic_get_saved_register): Update.
1835 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
1836 (xstormy16_frame_saved_register): Update.
1837 * sh-tdep.c (sh_gdbarch_init): Update.
1838 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1839 * ia64-tdep.c (ia64_get_saved_register): Update.
1840 * cris-tdep.c (cris_gdbarch_init): Update.
1841 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
1842 * arm-tdep.c (arm_gdbarch_init): Update.
1843
2a4b7c45
DJ
18442002-10-31 Daniel Jacobowitz <drow@mvista.com>
1845
1846 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
1847
ef17e74b
DJ
18482002-10-31 Daniel Jacobowitz <drow@mvista.com>
1849
1850 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
1851 trampolines in sigaction.
1852
4904ba5b
AC
18532002-10-31 Andrew Cagney <cagney@redhat.com>
1854
1855 * h8300-tdep.c: Include "gdb_assert.h".
1856 (h8300_print_register): Add gdbarch, file and frame parameters.
1857 Use frame_read_unsigned_register to read the register's value.
1858 Use fprintf_filtered to display output.
1859 (h8300_print_registers_info): Replace h8300_do_registers_info.
1860 (h8300_gdbarch_init): Set print_registers_info.
1861
f908a0eb
AC
18622002-10-31 Andrew Cagney <cagney@redhat.com>
1863
1864 * frame.c (frame_read_unsigned_register): New function.
1865 (frame_read_signed_register): New function.
1866 * frame.h (frame_read_unsigned_register): Declare.
1867 (frame_read_signed_register): Declare.
1868
c5646e11
AC
18692002-10-31 Andrew Cagney <cagney@redhat.com>
1870
1871 * h8500-tdep.c (h8500_print_registers_info): New static function,
1872 clone of infcmd.c's default_print_registers_info.
1873 (h8500_do_registers_info): New funtion.
1874 (h8500_print_register_hook): Rename print_register_hook, make
1875 static.
1876
1877 * config/h8500/tm-h8500.h: Update copyright.
1878 (DEPRECATED_DO_REGISTERS_INFO): Define.
1879 (h8500_do_registers_info: Declare.
1880 (PRINT_REGISTER_HOOK): Delete macro.
1881 (print_register_hook): Delete function.
1882
0bdd672b
AC
18832002-10-31 Andrew Cagney <cagney@redhat.com>
1884
1885 * z8k-tdep.c (z8k_print_register_hook): Make static.
1886 (z8k_print_registers_info): New static function, clone of
1887 infcmd.c's default_print_registers_info.
1888 (z8k_do_registers_info): New function. Wrap
1889 z8k_print_registers_info.
1890 * config/z8k/tm-z8k.h: Update copyright.
1891 (PRINT_REGISTER_HOOK): Delete macro.
1892 (z8k_print_register_hook): Delete declaration.
1893 (DEPRECATED_DO_REGISTERS_INFO): Define.
1894 (z8k_do_registers_info): Declare.
1895
bf9c25dc
JB
18962002-10-30 Joel Brobecker <brobecker@gnat.com>
1897
1898 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
1899 as this is already provided by value.h, and was actually causing
1900 a compilation error because of a conflict in parameter type
1901 declaration due to a missing const keyword.
1902 (low_text_segment_addres): Fix a compilation warning.
1903
2c665b51
DJ
19042002-10-29 Daniel Jacobowitz <drow@mvista.com>
1905
1906 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
1907 registers without a name.
1908 (mips_linux_cannot_store_register): Don't store registers without
1909 a name.
1910
e70ea697
DC
19112002-10-28 David Carlton <carlton@math.stanford.edu>
1912
1913 * symtab.c (find_addr_symbol): Delete. (It was already commented
1914 out.)
1915 * symtab.h: Delete prototype for find_addr_symbol.
1916
903ad3a6
AC
19172002-10-26 Andrew Cagney <cagney@redhat.com>
1918
1919 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
1920 DO_REGISTERS_INFO.
1921 gdbarch.h, gdbarch.c: Re-generate.
1922 * infcmd.c (default_print_registers_info): Update reference.
1923 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
1924 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
1925 * sh-tdep.c (sh_gdbarch_init): Ditto.
1926 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1927 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1928
ab91194c
MK
19292002-10-26 Mark Kettenis <kettenis@gnu.org>
1930
e3033f15
MK
1931 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
1932 cfi_init_extra_frame_info.
1933 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
1934 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
1935
b83b026c
MK
1936 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
1937 target where necessary. Add more comments and remove the ones
1938 that don't provide any useful information.
1939
267bf4bb
MK
1940 * i386-tdep.c (i386_frame_saved_pc): Replace call to
1941 deprecated_read_register_dummy with
1942 frame_unwind_unsigned_register.
1943
751f1375
MK
1944 * i386-tdep.c (i386_extract_struct_value_address): Use
1945 regcache_raw_read_unsigned instead of
1946 regcache_cooked_read_unsigned since we know that the register
1947 we're reading isn't a pseudo register. Rename variable 'val' into
1948 the more descriptive 'addr'.
1949
26abbdc4
MK
1950 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
1951 (x86_64_push_return_address): Add comment.
1952 (x86_64_pop_frame): Make static.
1953 (examine_argument): Clarify comment.
1954 (x86_64_skip_prologue): Make prolog_expact variable static.
1955
9f1549cc
MK
1956 * dwarf2cfi.c: Fix some formatting problems.
1957 (context_cpy, read_encoded_pointer): Clarify comments.
1958
ab91194c
MK
1959 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
1960 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
1961 i386 target back into x86_64_gdbarch_init. Add some comments and
1962 remove meaningless ones.
1963
72367fb4
AC
19642002-10-25 Andrew Cagney <cagney@redhat.com>
1965
1966 * complaints.h (struct deprecated_complaint): Rename `struct
1967 complaint'.
1968 * complaints.c (complain): Update.
1969 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
1970 incorrect comment indicating that "symfile.h" was being included
1971 for the `struct complaint' definition.
1972 * remote-vx.c: Update.
1973 * objc-lang.c: Update.
1974 * xcoffread.c: Update.
1975 * hpread.c: Update.
1976 * mdebugread.c: Update.
1977 * stabsread.c: Update.
1978 * dwarf2read.c: Update.
1979 * dwarfread.c: Update.
1980 * elfread.c: Update.
1981 * coffread.c: Update.
1982 * stabsread.h: Update.
1983 * dbxread.c: Update.
1984 * buildsym.c: Update.
1985 * gdbtypes.c: Update.
1986 * macrotab.c: Update.
1987
1f2baacc
MK
19882002-10-25 Mark Kettenis <kettenis@gnu.org>
1989
0c1a73d6
MK
1990 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
1991 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
1992 (x86_64_init_abi): ...new function.
1993
6aee4d54 1994 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
1f2baacc
MK
1995 * i386v-nat.c: Include "i386-tdep.h".
1996
8f9cbe01
AC
19972002-10-25 Andrew Cagney <cagney@redhat.com>
1998
5f11f355
AC
1999 * gdbtypes.c (address_space_name_to_int): Update.
2000 (address_space_int_to_name): Update.
2001 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
2002 multi-arch predicate.
2003 (address_class_name_to_type_flags): Ditto.
2004 * gdbarch.h, gdbarch.c: Re-generate.
2005
8f9cbe01
AC
2006 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
2007
e8d96a5d
MH
20082002-10-24 Martin M. Hunt <hunt@redhat.com>
2009
2010 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
2011
fe39c653
EZ
20122002-10-24 Elena Zannoni <ezannoni@redhat.com>
2013
2014 * symtab.h (INIT_SAL): Delete macro.
2015 (init_sal): Export.
2016 * symtab.c (init_sal): New function.
2017
2018 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
2019 to init_sal function call.
2020 (find_sal_from_funcs_and_line): Ditto.
2021 (all_sals_for_line): Ditto.
2022 * breakpoint.c (create_internal_breakpoint): Ditto.
2023 (create_fork_vfork_event_catchpoint): Ditto.
2024 (create_exec_event_catchpoint): Ditto.
2025 (parse_breakpoint_sals): Ditto.
2026 (watch_command_1): Ditto.
2027 (handle_gnu_4_16_catch_command): Ditto.
2028 (clear_command): Ditto.
2029 * hppa-tdep.c (child_enable_exception_callback): Ditto.
2030 * infcmd.c (run_stack_dummy): Ditto.
2031 * infrun.c (process_event_stop_test): Ditto.
2032 (check_sigtramp2): Ditto.
2033 (step_over_function): Ditto.
2034 * linespec.c (decode_line_2): Ditto.
2035 (decode_line_1): Ditto.
2036 * source.c (line_info): Ditto.
2037 * symtab.c (find_pc_sect_line): Ditto.
2038
baed091b
ML
20392002-10-24 Michal Ludvig <mludvig@suse.cz>
2040
2041 * dwarf2cfi.c (struct context)
2042 (struct context_reg): Moved to dwarf2cfi.h
2043 (context_alloc, frame_state_alloc, context_cpy):
2044 Made extern instead of static, removed prototypes.
2045 * dwarf2cfi.h (struct context)
2046 (struct context_reg): New, moved from dwarf2cfi.c
2047 (context_alloc, frame_state_alloc, context_cpy):
2048 New prototypes.
2049 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
2050 Changed from static to extern.
2051 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
2052 (LINUX_SIGCONTEXT_FP_OFFSET)
2053 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
2054 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
2055 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
2056 * x86-64-tdep.c (x86_64_gdbarch_init): Several
2057 set_gdbarch_*() calls now use x86-64 specific functions
2058 instead of DWARF2 CFI ones.
2059 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
2060 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
2061 (x86_64_init_extra_frame_info): New prototypes.
2062
c38da1af
DC
20632002-10-23 David Carlton <carlton@math.stanford.edu>
2064
2065 * linespec.c: #include "parser-defs.h".
2066 Delete prototype for find_template_name_end.
2067 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
2068
fb9b6b35
JJ
20692002-10-23 Jeff Johnston <jjohnstn@redhat.com>
2070
2071 * NEWS: add recent mi fixes.
2072 * varobj.c (struct varobj): Add new "updated" flag.
2073 (new_variable): Default "updated" flag to 0.
2074 (varobj_set_value): Set "updated" flag to 1 if value
2075 changes.
2076 (varobj_update): Check varobj "updated" flag before
2077 comparing old and refreshed values. Fix for
2078 PR gdb/702.
2079
8da065d5
DC
20802002-10-23 David Carlton <carlton@math.stanford.edu>
2081
2082 * parse.c (parse_exp_1): Use BLOCK_START.
2083 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
2084 SYMBOL_BLOCK_VALUE.
2085 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
2086
87f2f08c
DC
20872002-10-23 David Carlton <carlton@math.stanford.edu>
2088
2089 * symtab.c: Delete cplusplus_hint.
2090 Delete prototype for find_template_name_end.
2091
88cda038
EZ
20922002-10-23 Elena Zannoni <ezannoni@redhat.com>
2093
2094 * symtab.h: Update comment.
2095
2625d86c
MS
20962002-10-23 Michael Snyder <msnyder@redhat.com>
2097
2098 * printcmd.c (address_info): Restore quotes in output.
2099 * valops.c (value_of_local): Restore quotes in error message.
2100
9cc0d196
EZ
21012002-10-23 Elena Zannoni <ezannoni@redhat.com>
2102
2103 * symtab.c (symbol_demangled_name): New function.
2104 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
2105 turning most of it into a function.
2106 (symbol_demangled_name): Export.
2107
19de93d0
MS
21082002-10-23 Michael Snyder <msnyder@redhat.com>
2109
2110 * valops.c (value_of_local): Restore quotes in error message.
2111
89aad1f9
EZ
21122002-10-23 Elena Zannoni <ezannoni@redhat.com>
2113
2114 * symtab.c (symbol_init_language_specific): New function.
2115 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
2116 turning most of it into a function.
2117 (symbol_init_language_specific): Export.
2118
d9fa45fe
DC
21192002-10-23 David Carlton <carlton@math.stanford.edu>
2120
2121 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
2122 (dwarf_attr_name): Ditto.
2123 (dwarf_type_encoding_name): Ditto.
2124 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
2125 (process_die): Handle DW_TAG_namespace,
2126 DW_TAG_imported_declaration, DW_TAG_imported_module.
2127 (read_namespace): New function.
2128
1045b512
JB
21292002-10-22 Joel Brobecker <brobecker@gnat.com>
2130
2131 * configure.in: Define NEW_PROC_API on Interix too.
2132 * configure: Regenerate.
2133
21342002-10-21 Joel Brobecker <brobecker@gnat.com>
8ec41317
JB
2135
2136 * configure: Regenerate using the proper version of autoconf.
2137
3987b9d4
EZ
21382002-10-21 Elena Zannoni <ezannoni@redhat.com>
2139
2140 * findvar.c (read_var_value): Temporarily disable TLS code, until
2141 complete TLS support is added.
2142
9d774e44
EZ
21432002-10-21 Jim Blandy <jimb@redhat.com>
2144 Elena Zannoni <ezannoni@redhat.com>
2145
2146 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
2147 for thread local storage locations.
2148 (struct symbol): Add objfile field.
2149 (SYMBOL_OBJFILE): Define.
2150 * dwarf2read.c (is_thread_local): New static variable.
2151 (new_symbol): If variable is in thread local fill in address class
2152 and objfile appropriately.
2153 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
2154 stack operation.
2155 * printcmd.c (address_info): Print the information for thread
2156 local storage variable.
2157 * findvar.c (read_var_value): In case of thread local variable,
2158 defer to the target vector code to compute address.
2159
bc4a16ae
EZ
21602002-10-21 Elena Zannoni <ezannoni@redhat.com>
2161
2162 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
2163 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
2164
407caf07
EZ
21652002-10-21 Elena Zannoni <ezannoni@redhat.com>
2166
2167 * symtab.h (address_class): Rename
2168 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
2169 * hpread.c (hpread_process_one_debug_symbol): Ditto.
2170 * printcmd.c (address_info): Ditto.
2171 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
2172
005328e3
MK
21732002-10-20 Mark Kettenis <kettenis@gnu.org>
2174
afdb036a
MK
2175 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
2176 DBREG_DRX macro to acces debug registers.
2177
ca02e098
MK
2178 * Makefile.in (i386obsd-tdep.o): New target.
2179
03cc47f7
MK
2180 * solib-sunos.c: Include "bcache.h" and "regcache.h".
2181 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
2182
005328e3
MK
2183 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
2184 * config/i386/obsd.mt: New file.
2185 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
2186 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
2187 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
2188 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
2189 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
2190 * i386obsd-tdep.c: New file.
2191
9c96f9f2
AF
21922002-10-19 Adam Fedor <fedor@gnu.org>
2193
2194 * objc-exp.y (name_not_typename): Fix invalid comment.
2195
ce1ed485
MK
21962002-10-20 Mark Kettenis <kettenis@gnu.org>
2197
2198 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
2199 to allocate partial syms and macro byte caches.
2200
1efc7aaa
DC
22012002-10-18 David Carlton <carlton@math.stanford.edu>
2202
2203 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
2204
7e1d63ec
AF
22052002-10-18 Adam Fedor <fedor@gnu.org>
2206
2207 * stabsread.c (find_name_end): New function.
2208 (define_symbol): Use it.
2209
6e8d29a9
DJ
22102002-10-18 Daniel Jacobowitz <drow@mvista.com>
2211
2212 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2213 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2214 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2215 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2216
1efc7aaa 22172002-10-17 David Carlton <carlton@math.stanford.edu>
63ca651f
DC
2218
2219 * symfile.h: Add opaque declaration for struct obstack.
2220 Declare obsavestring to take a const char *.
2221 * symfile.c (obsavestring): Make first argument a const char *.
2222
1aeae86e
AF
22232002-10-16 Adam Fedor <fedor@gnu.org>
2224
2225 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
2226 names when matching breakpoints in current file.
2227
8b2dbe47
KB
22282002-10-16 Kevin Buettner <kevinb@redhat.com>
2229
2230 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
2231 (read_tag_pointer_type): Add address class support.
2232 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
2233 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
2234 New methods.
2235 * gdbarch.h, gdbarch.c: Regenerate.
2236 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
2237 (make_type_with_address_space, recursive_type_dump): Add address
2238 class support.
2239 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
2240 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
2241 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
2242
74451869
KD
22432002-10-16 Klee Dienes <kdienes@apple.com>
2244
2245 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
2246 to get the last character of a char[] buffer, not
2247 name[sizeof(vptr_name)-1].
2248
ff4cb3e8
AF
22492002-10-14 Adam Fedor <fedor@gnu.org>
2250
2251 * symtab.h: New objc_specific struct.
2252 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
2253 (SYMBOL_DEMANGLED_NAME): Likewise.
2254
da2cf7e0
AF
22552002-10-14 Adam Fedor <fedor@gnu.org>
2256
2257 * symfile.c (init_filename_language_table): Add ObjC file extension.
2258
4a351cef
AF
22592002-10-14 Adam Fedor <fedor@gnu.org>
2260
2261 * utils.c (puts_filtered_tabular): New function.
2262 (fprintf_symbol_filtered): Get ObjC demangled name.
2263 * defs.h (puts_filtered_tabular): Declared.
2264
9750e763
KB
22652002-10-14 Kevin Buettner <kevinb@redhat.com>
2266
2267 * c-lang.h (c_type_print_varspec_prefix): Delete.
2268 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
2269 ``need_post_space'' parameter. Adjust all callers.
2270
eee771c1
DJ
22712002-10-14 Daniel Jacobowitz <drow@mvista.com>
2272
2273 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
2274 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2275 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2276 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2277
46c82446
AF
22782002-10-13 Adam Fedor <fedor@gnu.org>
2279
2280 * source.c (print_source_lines): Update comments.
2281
d069f99d
AF
22822002-10-13 Adam Fedor <fedor@gnu.org>
2283
2284 * valops.c (value_of_local): New function.
2285 (value_of_this): Use it.
2286 * value.h (value_of_local): Declared.
2287
53c551b7
AF
22882002-10-13 Adam Fedor <fedor@gnu.org>
2289
2290 * parse.c: (length_of_subexp, prefixify_subexp): Handle
2291 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
2292
eb392fbf
AF
22932002-10-12 Adam Fedor <fedor@gnu.org>
2294
2295 * language.c (binop_result_type): Add language_objc to case.
2296 (integral_type): Likewise.
2297 (character_type): Likewise.
2298 (string_type): Likewise.
2299 (boolean_type): Likewise.
2300 (structured_type): Likewise.
2301 (binop_type_check): Likewise.
2302
e2b23ee9
AF
23032002-10-11 Adam Fedor <fedor@gnu.org>
2304
2305 * printcmd.c (address_info): Print 'self' for ObjC.
2306
b01ab485
AF
23072002-10-11 Adam Fedor <fedor@gnu.org>
2308
2309 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
2310 OP_SELF.
2311
806e6073
AF
23122002-10-11 Adam Fedor <fedor@gnu.org>
2313
2314 * language.h (CAST_IS_CONVERSION): Add language_objc.
2315
50f85cdf
AF
23162002-10-11 Adam Fedor <fedor@gnu.org>
2317
2318 * defs.h (enum language): Add language_objc.
2319
0d540cdf
KD
23202002-10-11 Klee Dienes <kdienes@apple.com>
2321
69266111 2322 * corefile.c (read_memory_typed_address): New function.
0d540cdf
KD
2323 * gdbcore.h (read_memory_typed_address): Add prototype.
2324 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
2325 to read a value destined for a CORE_ADDR, not read_memory_integer.
2326 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
2327 (f77_get_dynamic_lowerbound): Ditto.
2328
d5dc7960
MH
23292002-10-11 Martin M. Hunt <hunt@redhat.com>
2330
2331 * utils.c (string_to_core_addr): After turning string into
2332 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
2333 which will do necessary sign-extension, etc.
2334
8343f86c
DJ
23352002-10-11 Daniel Jacobowitz <drow@mvista.com>
2336
2337 * c-exp.y (THIS): Delete token and grammar rule.
2338 (yylex): Don't return THIS.
2339 * cp-valprint.c (vtbl_ptr_name_old): Delete.
2340 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
2341 * demangle.c (cplus_markers): Update comment. Put '$'
2342 first. Remove CPLUS_MARKER.
2343 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
2344 * jv-exp.y (THIS): Delete token and grammar rule.
2345 (yylex): Don't return THIS.
2346 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
2347 * objc-exp.y (THIS): Delete token and grammar rule.
2348 (yylex): Don't return THIS.
2349 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
2350 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
2351 (read_member_functions): Likewise for opname.
2352 (read_tilde_fields): Use is_cplus_marker.
2353
2354 * defs.h (CPLUS_MARKER): Don't define.
2355 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
2356 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
2357 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
2358 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
2359 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
2360
2361 * config/i386/tm-i386v4.h: Delete file.
2362 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
2363 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
2364 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
2365 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
2366 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
2367 * config/i386/i386sco5.mt (TM_FILE): Likewise.
2368 * config/i386/i386v4.mt (TM_FILE): Likewise.
2369 * config/i386/ncr3000.mt (TM_FILE): Likewise.
2370
967c0d83
MM
23712002-10-10 Marko Mlinar <markom@opencores.org>
2372
2373 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
2374 accidentially not commited 2002-10-09
2375 * gdbarch.h, gdbarch.c: Re-generate.
2376
f74fa174
MM
23772002-10-09 Marko Mlinar <markom@opencores.org>
2378
2379 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
2380 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
2381 * gdbarch.h, gdbarch.c: Re-generate.
2382
57349743
JB
23832002-10-08 Petr Sorfa <petrs@caldera.com>
2384
2385 Revised and re-submitted by John Wolfe <jlw@caldera.com>
2386
2387 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
2388 so we can work on more than one compilation unit at a time. This
2389 helps prepare GDB to handle inter-CU die references.
2390 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
2391 the code to be defined before struct comp_unit_head.
2392 (comp_unit_head): Added new members - offset, cu_head,
2393 begin_die, next and dwarf2_abbrevs.
2394 (dwarf2_abbrevs): Removed single static var; now member of
2395 struct comp_unit_head.
2396 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
2397 members.
2398 (psymtab_to_symtab_1): Changed to work with the new
2399 struct comp_unit_head.
2400 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
2401 constructs the dwarf2_abbrevs[] inside the cu_header.
2402 (dwarf2_empty_abbrev_table): Now expects a ptr to a
2403 dwarf2_abbrev table to clean up.
2404 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
2405 handling of dwarf2_abbrevs inside the cu_header.
2406 (read_partial_die): Now supports the call to the new
2407 dwarf2_lookup_abbrev.
2408 (read_full_die): Now supports the call to the new
2409 dwarf2_lookup_abbrev.
2410
4092aadb
CF
24112002-10-06 Christopher Faylor <cgf@redhat.com>
2412
2413 * Makefile.in (install-gdbtk): Add missing continuation backslash to
2414 insure that shell variables, such as "transformed_name" are propagated
2415 to later shell statements in rule.
2416
af0b2512
MK
24172002-10-06 Mark Kettenis <kettenis@gnu.org>
2418
2419 * config/i386/nm-i386sco.h: Add protection against
2420 multiple-inclusion. Include "i386/nm-i386v.h".
2421 (REGISTER_U_ADDR): Remove define.
2422 (i386_register_u_addr): Remove prototype.
2423
d6020d45
MS
24242002-10-04 Michael Snyder <msnyder@redhat.com>
2425
2426 * m32r-stub.c (handle_exception): Make sure exception is "trap"
2427 before treating it as a single-step event.
2428
7248f48e
AF
24292002-10-03 Adam Fedor <fedor@gnu.org>
2430
2431 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
2432 (objc_demangle): Remove assignment in if statements, Replace
2433 free with xfree.
2434 (add_msglist): Likewise.
2435 (end_msglist): Likewise.
2436 (complare_selectors): Likewise.
2437 (selectors_info): Likewise.
2438 (compare_classes): Likewise.
2439 (classes_info): Likewise.
2440 (print_object_command): Likewise.
2441 (find_objc_msgcall_submethod): Replace PTR with void *.
2442 * objc-lang.h: Remove check for __STDC__.
2443
52c6a6ac
JJ
24442002-10-03 Jeff Johnston <jjohnstn@redhat.com>
2445
2446 * ui-out.h (ui_out_field_fmt_int): New prototype.
2447 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
2448 of field width and alignment.
2449 * stack.c (print_frame_info_base): When printing frame level, use
2450 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
2451 PR gdb/192
2452
7e3cec17
JJ
24532002-10-03 Jeff Johnston <jjohnstn@redhat.com>
2454
2455 * MAINTAINERS: Add self to Write After Approval list.
2456
a58dd373
EZ
24572002-10-02 Elena Zannoni <ezannoni@redhat.com>
2458
2459 * infcmd.c (interrupt_target_command_wrapper): Delete.
2460 (interrupt_target_command): Make non static.
2461 (nofp_registers_info): Make static.
2462 * stack.c (return_command_wrapper): Delete.
2463 (return_command): Make non static.
2464
cee6ddeb
EZ
24652002-10-02 Elena Zannoni <ezannoni@redhat.com>
2466
2467 * event-top.c (gdb_setup_readline): New function. Code moved from
2468 _initialize_event_loop().
2469 (_initialize_event_loop): Call gdb_setup_readline().
2470
c4ed33b9
AC
24712002-10-02 Andrew Cagney <ac131313@redhat.com>
2472
2473 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
2474 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
2475 * gdbarch.h, gdbarch.c: Re-generate.
2476
cef4f5dd
DJ
24772002-10-02 Daniel Jacobowitz <drow@mvista.com>
2478
2479 Fix PR gdb/778
2480 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
2481 before recursing.
2482 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
2483 of fill_in_vptr_fieldno.
2484
36dc181b 24852002-10-02 Elena Zannoni <ezannoni@redhat.com>
cee6ddeb 2486
36dc181b
EZ
2487 * inferior.h (registers_info, stepi_command, nexti_command,
2488 continue_command, interrupt_target_command): Export from infcmd.c.
2489 * frame.h (args_info, selected_frame_level_changed_hook,
2490 return_command): Export from stack.c.
2491 * v850ice.c (stepi_command, nexti_command, continue_command): use
2492 prototypes from inferior.h.
2493 * tracepoint.c (registers_info, args_info, locals_info): Use
2494 prototypes from frame.h and inferior.h.
2495 * Makefile.in (mi-main.o): Add dependency on frame.h.
2496
6f99cb26
AC
24972002-10-02 Andrew Cagney <ac131313@redhat.com>
2498
da3eff49
AC
2499 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
2500 value in register 3 adjusted by ppc_gp0_regnum.
2501
6f99cb26
AC
2502 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
2503
da615bee
MM
25042002-10-02 Marko Mlinar <markom@opencores.org>
2505
2506 * MAINTAINERS: Add myself to the Write After Approval list.
2507
d154bee2
AO
25082002-10-01 Alexandre Oliva <aoliva@redhat.com>
2509
62a49b2c
AO
2510 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
2511 of the section for the N64 ABI, fixed.
2512
d154bee2
AO
2513 * config/mips/tm-irix6.h: Include solib.h.
2514
ed348acc
EZ
25152002-10-01 Elena Zannoni <ezannoni@redhat.com>
2516
2517 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
2518 GNU operators.
2519
da0f9dcd
AC
25202002-10-01 Andrew Cagney <ac131313@redhat.com>
2521
2522 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
2523 and that "mi0" syntax has been removed.
2524
bdf64bac
DC
25252002-09-30 David Carlton <carlton@math.stanford.edu>
2526
2527 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
2528 * ppc-sysv-tdep.c: #include "gdb_string.h".
2529 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
2530 pacify GCC.
2531
54c2a1e6
AC
25322002-10-01 Andrew Cagney <ac131313@redhat.com>
2533
2534 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
2535 "vrsave"'s register number.
2536
cedea778
AC
25372002-09-30 Andrew Cagney <ac131313@redhat.com>
2538
2539 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
2540 use frame_unwind_signed_register to obtain the PC.
2541 (mips_frame_chain): Handle a generic dummy frame.
2542 (mips_init_extra_frame_info): When a generic dummy frame, don't
2543 re-compute the frame base.
2544 (mips_pop_frame): Handle generic dummy frames.
2545 (mips_gdbarch_init): When generic dummy frames, set
2546 use_generic_dummy_frames, push_dummy_frame to
2547 generic_push_dummy_frame, pc_in_call_dummy to
2548 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
2549 generic_save_dummy_frame_tos.
2550
68315eb8
AC
25512002-09-30 Andrew Cagney <ac131313@redhat.com>
2552
2553 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
2554 against TOP when TOP was explictly set.
2555 (generic_push_dummy_frame): Set TOP to zero.
2556
3b8630c3
EZ
25572002-09-30 Elena Zannoni <ezannoni@redhat.com>
2558
2559 * event-loop.c (start_event_loop): Rename variable 'result' to
2560 'gdb_result', to avoid conflicts with upcoming intepreters changes.
2561
28ee05e9
KS
25622002-09-30 Keith Seitz <keiths@redhat.com>
2563
2564 * gdb-events.sh (selected_thread_changed): New event.
2565 * gdb-events.c: Regenerated.
2566 * gdb-events.h: Regenerated.
2567
6eecb1c8
HPN
25682002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
2569
2570 * MAINTAINERS: Add self to Write After Approval list.
2571
92df71f0
FN
25722002-09-30 Fernando Nasser <fnasser@redhat.com>
2573
3b8630c3
EZ
2574 * disasm.c: New file.
2575 * disasm.h: New file.
92df71f0
FN
2576 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
2577 (compare_lines): Ditto.
2578 (dump_insns): Ditto.
3b8630c3
EZ
2579 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
2580 argument.
92df71f0 2581 (do_assembly_only): Ditto.
3b8630c3
EZ
2582 (do_disassembly): Renamed to gdb_disassembly and moved to
2583 disasm.c. Sdded uiout argument.
2584 * Makefile.in: Add new files. Reorder SFILES list. Update
2585 dependencies. Include libgdb.a later in the insight executable.
92df71f0 2586
0c22854d
AC
25872002-09-29 Andrew Cagney <ac131313@redhat.com>
2588
2589 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
2590 bfd/elf64-alpha-fbsd.c.
2591
e67f2023
AC
25922002-09-29 Andrew Cagney <ac131313@redhat.com>
2593
2594 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
2595 i386gnu-tdep.c.
2596
89396210
AC
25972002-09-29 Andrew Cagney <ac131313@redhat.com>
2598
2599 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
2600 __FUNCTION__.
2601 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
2602 function name.
2603 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
2604 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
2605 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
2606 (S_msg_sig_post_reply): Ditto.
2607
7079c36c
CV
26082002-09-28 Corinna Vinschen <vinschen@redhat.com>
2609
89396210
AC
2610 * sh-tdep.c (sh_use_struct_convention): Use definition according
2611 to ABI.
7079c36c
CV
2612 (sh_push_arguments): Store in register with correct endianess.
2613 (sh_default_store_return_value): Ditto.
2614 (sh_gdbarch_init): Set sizeof long double to 8.
2615
975ac915
MK
26162002-09-27 Mark Kettenis <kettenis@gnu.org>
2617
2618 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
2619 Fix some whitespace problems.
2620
9bbe19fb
DC
26212002-09-27 David Carlton <carlton@math.stanford.edu>
2622
2623 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
2624 (mcore-tdep.o): Ditto.
2625 (ns32k-tdep.o): Ditto.
2626 (ns32knbsd-tdep.o): Ditto.
2627 (sh3-rom.o): Ditto.
2628 (vax-tdep.o): Ditto.
2629 * cris-tdep.c: #include "gdb_string.h"
2630 * mcore-tdep.c: Ditto.
2631 * ns32k-tdep.c: Ditto.
2632 * ns32knbsd-tdep.c: Ditto.
2633 * sh3-rom.c: Ditto.
2634 * vax-tdep.c: Ditto.
2635
43b2fdc7
DC
26362002-09-27 David Carlton <carlton@math.stanford.edu>
2637
2638 * config/djgpp/fnchange.lst: Add entries for
2639 gdb/testsuite/gdb.c++/m-static files.
2640
e8cfbbd9
JW
26412002-09-27 Jim Wilson <wilson@redhat.com>
2642
2643 * MAINTAINERS: Add myself to the Write After Approval list.
2644
43b2fdc7 26452002-09-26 Martin M. Hunt <hunt@redhat.com>
4e0df2df
MH
2646
2647 * mips-tdep.c (find_proc_desc): Initialize startaddr.
2648
2649
9f3b7f07
AC
26502002-09-26 Andrew Cagney <ac131313@redhat.com>
2651
2652 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
2653 frame.
2654
11269d7e
AC
26552002-09-26 Andrew Cagney <ac131313@redhat.com>
2656
2657 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
2658 (rs6000_struct_return_address): Delete variable.
2659 (rs6000_store_struct_return): Update.
2660 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
2661 deprecated_extract_struct_value_address.
2662 (rs6000_frame_align): New function.
2663 (rs6000_gdbarch_init): Set frame_align.
2664
f15ab4a7
AC
26652002-09-26 Andrew Cagney <ac131313@redhat.com>
2666
2667 From Grace Sainsbury <graces@redhat.com>:
2668 * Makefile.in (gdbtk-main.o): New target.
2669 (gdb.o): New target.
2670 (main_h): Define.
2671 (main.o): Update dependencies.
2672 (gdb$(EXEEXT)): Add gdb.o.
2673 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
2674 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
2675 (SUBDIR_GDBTK_CLEAN): Set.
2676 (install-gdbtk): Install the insight binary.
2677 (uninstall-gdbtk): New target.
2678 (all-gdbtk, clean-gdbtk): New rule.
2679 * top.c (use_windows): Default to zero.
2680 * main.c: Include "main.h".
2681 (main): Delete.
2682 (struct captured_main_args): Delete.
2683 (gdb_main): New function.
2684 * main.h: New file.
2685 * gdb.c: New File.
2686
e36180d7
AC
26872002-09-25 Andrew Cagney <cagney@redhat.com>
2688
2689 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
2690 (frame_map_regnum_to_name): New function.
2691 (frame_map_name_to_regnum): New function.
2692 * frame.h (frame_map_name_to_regnum): Declare.
2693 (frame_map_regnum_to_name): Declare.
2694 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
2695 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
2696 * parse.c: Do not include "builtin-regs.h".
2697 (target_map_name_to_register): Delete function.
2698 (write_dollar_variable): Use frame_map_name_to_regnum.
2699 * parser-defs.h (target_map_name_to_register): Delete declaration.
2700 * expprint.c: Include "frame.h".
2701 (print_subexp): Use frame_map_regnum_to_name.
2702 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
2703 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
2704
8b69000d
AC
27052002-09-25 Andrew Cagney <ac131313@redhat.com>
2706
2707 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
2708 wasn't saved, and the next innermost frame is a dummy, return the
2709 dummy frame's link register.
2710
046ca86a
JB
27112002-09-24 Jim Blandy <jimb@redhat.com>
2712
2713 Fix from Paul Breed:
2714 * main.c (captured_main): Add a `break' after the case for 'b'.
2715
94b66fa7
KS
27162002-09-24 Keith Seitz <keiths@redhat.com>
2717
2718 * varobj.c (c_type_of_child): Use get_target_type instead
2719 of TYPE_TARGET_TYPE.
2720
c214a6fd
FN
27212002-09-22 Fernando Nasser <fnasser@redhat.com>
2722
53cb0458
FN
2723 * source.c (get_current_or_default_source_symtab_and_line): Remove
2724 function.
2725 (set_default_source_symtab_and_line): New function. Attempts to
2726 determine a source file to list lines from if one is not currently
2727 defined.
2728 (get_current_source_symtab_and_line): Initialize sal.pc and
2729 sal.end fields.
2730 (set_current_source_symtab_and_line): Mark argument as const.
2731 * source.h: Update declarations and comments.
2732 * linespec.c (decode_line_1): Replace call to removed routine above.
2733 * stack.c (print_frame_info_base): Ditto.
2734 * cli/cli-cmds.c (edit_command): Ditto.
2735 (list_command): Ditto.
2736
27372002-09-22 Fernando Nasser <fnasser@redhat.com>
2738
d6020d45 2739 * source.c (get_current_or_default_source_symtab_and_line): Initialize
53cb0458 2740 sal.pc and sal.end fields.
c214a6fd
FN
2741 (get_current_or_default_source_symtab_and_line): Ditto.
2742 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
2743 so we do not cause a new source symtab to be searched for (reverting an
2744 unintentional change from the 2002-09-20 patch).
2745 * scm-lang.c (scm_unpac): Ditto.
2746
cc3b68a5
AC
27472002-09-21 Andrew Cagney <cagney@redhat.com>
2748
2749 * complaints.c (symfile_explanations): Remove new-line from
2750 ``isolated_message''.
2751 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
2752 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
2753
5835abe7
NC
27542002-09-20 Nick Clifton <nickc@redhat.com>
2755
2756 * NEWS: Announce that V850EA ISA is no longer supported.
2757 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
2758
a15ef5f5
DC
27592002-09-20 David Carlton <carlton@math.stanford.edu>
2760
06ba1b39
DC
2761 * Makefile.in (c-lang.o): Correct dependencies.
2762 (utils.o): Gather dependencies.
2763 (charset.o): Move.
a15ef5f5
DC
2764 * c-lang.c: #include "gdb_string.h"
2765
87885426
FN
27662002-09-20 Fernando Nasser <fnasser@redhat.com>
2767
2768 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
2769 * cli/cli-cmds.c (list_command): New function. Implements the new
2770 cli edit command.
2771 (_init_cli_cmds): Add new command definition.
2772 * gdb.1: Document edit command.
2773 * doc/gdb.texinfo: Document edit command.
2774
27752002-09-20 Fernando Nasser <fnasser@redhat.com>
0378c332
FN
2776
2777 * source.c: Make global variables current_source_symtab and
2778 current_source_line static.
2779 (list_command): Moved to cli/cli-cmds.c.
2780 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
2781 (get_first_line_listed): New accessor function.
2782 (get_lines_to_list): New accessor function.
2783 (get_current_source_symtab_and_line): New function. Retrieves the
2784 position in the source code that we consider current.
2785 (get_current_or_default_source_symtab_and_line): New function.
2786 Like the above but attempts to determine a default position if one
2787 is not currently defined.
2788 (set_current_source_symtab_and_line): New function. Sets the source
2789 code position considered current and returns the previously set one.
2790 (clear_current_source_symtab_and_line): Reset stored information about
2791 a current source line.
2792 (_initialize_source): Remove registration for the "list" command and
2793 its alias.
2794 * source.h: Add declarations for the new functions above.
2795 * symtab.h: Remove declarations for the global variables mentioned
2796 above.
2797 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
2798 obtain current source line.
2799 * linespec.c (decode_line_1): Ditto.
2800 * macroscope.c (default_macro_scope): Ditto.
2801 * scm-lang.c (scm_unpac): Ditto.
2802 * stack.c (print_frame_info_base): Ditto.
2803 * symfile.c (clear_symtab_users): Ditto.
2804 * symtab.c (decode_line_spec): Ditto.
2805 * cli/cli-cmds.c (list_command): Moved here from source.c.
2806 (ambiguous_line_spec): Moved here from source.c.
2807 (_init_cli_cmds): Add definition for "list" and its alias.
2808 * Makefile.in: Update dependencies.
2809
ddd216ea
CV
28102002-09-20 Corinna Vinschen <vinschen@redhat.com>
2811
2812 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
2813 with what gcc thinks is correct.
2814
6d305052
CV
28152002-09-20 Corinna Vinschen <vinschen@redhat.com>
2816
2817 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
2818 multiple register push instruction.
2819
234b45d4
KB
28202002-09-19 Jim Blandy <jimb@redhat.com>
2821
2822 Add support for distinct host and target character sets.
2823 * charset.c, charset.h: New files.
2824 * c-exp.y: #include "charset.h".
2825 (yylex): Convert character and string literals to the target
2826 character set, before returning them as the semantic value of the
2827 token.
2828 * c-lang.c: #include "charset.h".
2829 (c_emit_char): Use charset-specific methods to recognize
2830 characters with backslash escape forms, to decide which characters
2831 to print literally and which to print using numeric escape
2832 sequences, and to convert target characters to host characters
2833 before printing.
2834 * utils.c: #include "charset.h".
2835 (no_control_char_error): New function.
2836 (parse_escape): Use charset-specific methods to recognize
2837 backslash escapes, parse `control character' notation, and convert
2838 characters from the host character set to the target character set.
2839 * configure.in: Set the default host character set.
2840 Check where to find iconv, and what its argument types might be.
2841 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
2842 * Makefile.in (SFILES): List charset.c.
2843 (COMMON_OBS): List charset.o.
2844 (charset.o): New rule.
2845 (charset_h): New header dependency variable.
2846 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
2847 (LIBICONV): New variable, set by configure.
2848 (CLIBS): Include $(LIBICONV) here.
2849 * aclocal.m4, config.in, configure: Regenerated.
2850
525d6a61
JB
28512002-09-19 Joel Brobecker <brobecker@gnat.com>
2852
2853 * ada-exp.y: Add missing semicolons to end rules. Fixes a
2854 bison 1.35 warning.
2855
3ed93867
RE
28562002-09-19 Richard Earnshaw <rearnsha@arm.com>
2857
2858 * gdb_mbuild.sh: New file.
2859
437666f8
AC
28602002-09-19 Andrew Cagney <ac131313@redhat.com>
2861
2862 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
2863
389e51db
AC
28642002-09-18 Andrew Cagney <ac131313@redhat.com>
2865
2866 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
2867 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
2868 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
2869 valops.c, value.h: Revert previous change.
2870
3b4efeaa
MS
28712002-09-18 Michael Snyder <msnyder@redhat.com>
2872
2873 Preliminary support for Objective-C:
2874 * defs.h (language_objc): New enum value.
2875 (puts_filtered_tabular): Declaration only, exported from utils.c.
2876 (skip_quoted): Delete, declared in completer.h.
2877 * c-exp.y: Include completer.h.
2878 * p-exp.y: Ditto.
2879 * jv-exp.y: Ditto.
2880 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
2881 New operator enum values.
2882 * language.h (CAST_IS_CONVERSION): Test for language_objc.
2883 * language.c (binop_result_type): Handle language_objc case.
2884 (integral_type, character_type, string_type, boolean_type,
2885 structured_type, binop_type_check): Ditto.
2886 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
2887 (struct objc_specific): Add to general_symbol_info.
2888 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
2889 (SYMBOL_DEMANGLED_NAME): Handle objc case.
2890 * parser-defs.h (struct objc_class_str): New struct type.
2891 (start_msglist, end_msglist, add_msglist): Declaration only,
2892 exported from objc-lang.c.
2893 * value.h (value_of_local, value_nsstring,
2894 call_function_by_hand_expecting_type): Exported from valops.c.
2895 * valops.c (find_function_addr): Export.
2896 (call_function_by_hand_expecting_type): New function.
2897 (value_of_local): New function.
2898 * symfile.c (init_filename_language_table): Add ".m" extension
2899 for Objective-C.
2900 * utils.c (puts_filtered_tabular): New function.
2901 (fprintf_symbol_filtered): Add objc demangling support (disabled).
2902 (set/show demangle): Extend help-string to refer to ObjC.
2903 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
2904 * stabsread.c (symbol_reference_defined): Objective-C symbols
2905 may contain colons: make allowances when scanning stabs strings
2906 for colons.
2907 (objc_find_colon): New function.
2908 * printcmd.c (address_info): If language == objc then print
2909 "self" instead of "this".
2910 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
2911 OP_NSSTRING, and OP_SELF.
2912 (prefixify_subexp): Ditto.
2913 * source.c (print_source_lines): Mention objc in comment.
2914 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
2915 method names.
2916
b9caf505
AC
29172002-09-18 Andrew Cagney <ac131313@redhat.com>
2918
2919 * complaints.h: Update copyright.
2920 (struct complaints): Declare.
2921 (struct complaint): Make `message' constant.
2922 (internal_complaint): Declare.
2923 (complaint): Declare.
2924 (complaint_root): Delete declaration.
2925 (symfile_complaints): Delete declaration.
2926 (struct complaints): Add opaque declaration.
2927 (clear_complaints): Add a complaints parameter.
2928 * complaints.c: Update copyright.
2929 (enum complaint_series): Define.
2930 (complaint_root): Delete.
2931 (struct complaints): Define.
2932 (complaint_sentinel, symfile_complaint_book): New variables.
2933 (symfile_explanations, symfile_complaints): New variables.
2934 New variables.
2935 (get_complaints): New function.
2936 (vcomplaint): New function.
2937 (complaint): New function.
2938 (internal_complaint): New function.
2939 (complain): Call vcomplain with symfile_complaint.
2940 (clear_complaints): Rewrite.
2941 (_initialize_complaints): Use add_setshow_command.
2942 * Makefile.in (complaints.o): Update dependencies.
2943 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
2944 to call to clear_complaints.
2945 (new_symfile_objfile, reread_symbols): Ditto.
2946 (oldsyms_complaint): Delete.
2947 (empty_symtab_complaint, unknown_option_complaint): Delete.
2948 (free_named_symtabs): Use complaint instead of complain.
2949
d2e6263c
MS
29502002-09-18 Michael Snyder <msnyder@redhat.com>
2951
5fb2031a
AC
2952 Contributed by Apple Computer, Inc. Merged with current sources
2953 by Adam Fedor <fedor@doc.com> [cagney].
2954
d2e6263c
MS
2955 * objc-lang.c: First clean-up round: comments, indentation.
2956 * objc-lang.h: Ditto.
2957 * objc-lang.y: Ditto.
2958
dec43320
AC
29592002-09-18 Andrew Cagney <ac131313@redhat.com>
2960
2961 * maint.c (maintenance_internal_error): Print the parameter as the
2962 error message.
2963 (maintenance_internal_warning): New function.
2964 (_initialize_maint_cmds): Add command `maint internal-warning'.
2965
2966 * defs.h (internal_warning, internal_vwarning): Declare.
2967 * utils.c (struct internal_problem): Define.
2968 (internal_vproblem): New function.
2969 (internal_warning): New function.
2970 (internal_vwarning): New function.
2971 (internal_warning_problem, internal_error_problem): New variables.
2972 (internal_verror): Just call internal_vproblem.
2973
b81654f1
MS
29742002-09-18 Michael Snyder <msnyder@redhat.com>
2975
2976 * objc-lang.c: New file, support for Objective-C.
2977 Preliminary check-in, not yet integrated into gdb.
2978 * objc-lang.h: New file.
2979 * objc-exp.y: New file.
2980
0542c381
AC
29812002-09-18 Andrew Cagney <ac131313@redhat.com>
2982
7bda5e4a
AC
2983 * infrun.c (signal_stop_update): Convert definition to ISO C.
2984 (signal_print_update): Ditto.
2985 (signal_pass_update): Ditto.
2986 * inflow.c (terminal_save_ours): Ditto.
2987
5247b418
AC
2988 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
2989 comments.
2990
fc60962c
AC
2991 * config/djgpp/fnchange.lst: Handle name clashes between
2992 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
2993 bfd/coff-tic80.c.
2994
0542c381
AC
2995 * i386-linux-tdep.h: Fix tipo.
2996
5b924b9b
AF
29972002-09-18 Adam Fedor <fedor@gnu.org>
2998
2999 * MAINTAINERS: Add myself to the Write After Approval list.
3000
5afc051b
JB
30012002-09-18 Jim Blandy <jimb@redhat.com>
3002
3003 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
3004 texthigh and textlow to reader-specific structs caused
3005 objfile_relocate to miss them. This is fixable, but the work that
3006 the change was supposed to prepare GDB for never got done anyway.
3007
eb944380
DC
30082002-09-18 David Carlton <carlton@math.stanford.edu>
3009
3010 * MAINTAINERS: Alphabetize Write After Approval list.
3011
948e66d9
DJ
30122002-09-18 Daniel Jacobowitz <drow@mvista.com>
3013
3014 Fix PR gdb/709
3015 * values.c (value_static_field): Call read_var_value.
3016
dc604539
AC
30172002-09-18 Andrew Cagney <ac131313@redhat.com>
3018
3019 * valops.c (hand_function_call): Align the initial stack pointer
3020 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
3021 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
3022 return value.
3023 * mips-tdep.c (mips_frame_align): New function.
3024 (mips_gdbarch_init): Set frame_align.
3025 * gdbarch.sh (FRAME_ALIGN): New method.
3026 * gdbarch.h, gdbarch.c: Re-generate.
3027
cb7e422f
ML
30282002-09-18 Michal Ludvig <mludvig@suse.cz>
3029
3030 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
3031 registers.
3032
a094c6fb
AC
30332002-09-17 Andrew Cagney <ac131313@redhat.com>
3034
3035 * NEWS: Mention that MIPS $fp behavior changed.
3036 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
3037 reference to FP_REGNUM.
3038 (mipsnbsd_cannot_store_register): Ditto.
3039 * mips-linux-nat.c: Update copyright.
3040 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
3041 (mips_linux_cannot_store_register): Ditto.
3042 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
3043 * config/mips/tm-mips.h: Update copyright.
3044 (FP_REGNUM): Delete macro.
3045 (MIPS_REGISTER_NAMES): Replace "fp" with "".
3046 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
3047 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
3048 (mips_r3041_reg_names, mips_r3051_reg_names)
3049 (mips_r3081_reg_names): Replace "fp" with "".
3050 Fix PR gdb/480.
3051
45cf40d1
TR
30522002-09-17 Theodore A. Roth <troth@verinet.com>
3053
3054 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
3055 generic_read_register_dummy() (PR gdb/703).
3056 (avr_push_return_address): #if 0 out unused vars.
3057 (avr_gdbarch_init): Enable use of avr_push_return_address().
3058
c7e701b5
MS
30592002-09-17 Michael Snyder <msnyder@redhat.com>
3060
d76ba2a5 3061 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
c7e701b5
MS
3062 RTE will take care of it.
3063
20bcf01c
AC
30642002-09-17 Andrew Cagney <ac131313@redhat.com>
3065
3066 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
3067 invalid, return SP_REGNUM.
3068
009a9971 30692002-09-17 Michael Snyder <msnyder@redhat.com>
21f87145
MS
3070
3071 * mips-tdep.c (mips_pop_frame): Read saved values of floating
3072 point registers without sign extension.
3073
135c175f
AC
30742002-09-17 Andrew Cagney <cagney@redhat.com>
3075
3076 * blockframe.c (deprecated_read_register_dummy): Rename
3077 generic_read_register_dummy.
3078 * frame.c (frame_unwind_signed_register): New function.
3079 (frame_unwind_unsigned_register): New function.
3080 * frame.h (frame_unwind_signed_register): Declare.
3081 (frame_unwind_unsigned_register): Declare.
3082 (deprecated_read_register_dummy): Rename
3083 generic_read_register_dummy.
3084
3085 * h8300-tdep.c (h8300_frame_chain): Update.
3086 (h8300_frame_saved_pc): Update.
3087 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
3088 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
3089 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
3090 (s390_frame_chain): Update.
3091 * v850-tdep.c (v850_find_callers_reg): Update.
3092 (v850_frame_saved_pc): Update.
3093 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
3094 (m32r_find_callers_reg): Update.
3095 (m32r_frame_saved_pc): Update.
3096 * sh-tdep.c (sh_find_callers_reg): Update.
3097 (sh64_get_saved_pr): Update.
3098 (sh_init_extra_frame_info): Update.
3099 (sh_init_extra_frame_info): Update.
3100 (sh64_init_extra_frame_info): Update.
3101 (sh64_init_extra_frame_info): Update.
3102 * mcore-tdep.c (mcore_find_callers_reg): Update.
3103 (mcore_frame_saved_pc): Update.
3104 (mcore_init_extra_frame_info): Update.
3105 * i386-tdep.c (i386_frame_saved_pc): Update.
3106 * ia64-tdep.c (ia64_frame_saved_pc): Update.
3107 (ia64_init_extra_frame_info): Update.
3108 (ia64_init_extra_frame_info): Update.
3109 * d10v-tdep.c (d10v_frame_saved_pc): Update.
3110 * cris-tdep.c (cris_init_extra_frame_info): Update.
3111 * avr-tdep.c (avr_frame_chain): Update.
3112 (avr_init_extra_frame_info): Update.
3113 (avr_frame_saved_pc): Update.
3114 * arm-tdep.c (arm_find_callers_reg): Update.
3115 (arm_init_extra_frame_info): Update.
3116 (arm_frame_saved_pc): Update.
3117
a741e514
TT
31182002-09-17 Tom Tromey <tromey@redhat.com>
3119
3120 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
3121 is "'".
3122
d1a8e808
CV
31232002-09-17 Corinna Vinschen <vinschen@redhat.com>
3124
3125 * MAINTAINERS: Remove "non multi-arched" text from h8300.
3126 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
3127 NEXT_PROLOGUE_INSN.
3128 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
3129 NEXT_PROLOGUE_INSN.
3130
d9025a18
JB
31312002-09-16 Joel Brobecker <brobecker@gnat.com>
3132
3133 * osfsolib.c: Remove file, replaced by solib-osf.c.
3134 * Makefile.in: Remove compilation rules for osfsolib.c.
3135
1b2ef1b6
DC
31362002-09-16 David Carlton <carlton@math.stanford.edu>
3137
3138 * cp-valprint.c (cp_print_class_method): Correct args to
3139 check_stub_method_group.
3140
928e48af
CV
31412002-09-16 Corinna Vinschen <vinschen@redhat.com>
3142
3143 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
3144 `set architecture'. Unify naming convention of functions.
3145 (h8300_skip_prologue): Improve prologue analysis.
3146 (h8300_push_arguments): Rewritten to more closely match GCC's
3147 bizarre argument-passing behavior, along with the comment describing
3148 said behavior.
3149 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
3150 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
3151 sim, remote-e7000.c, remote-hms.c and remote.c
3152
5e3397bb
MK
31532002-09-15 Mark Kettenis <kettenis@gnu.org>
3154
3155 * i386-tdep.c (gdb_print_insn_i386): Removed.
3156 (i386_print_insn): New function.
3157 (i386_gdbarch_init): Set print_insn to i386_print_insns.
3158 (_initialize_i386_tdep): Don't initialize tm_print_insn and
3159 tm_print_insn_info.
3160
f710f4fc
MK
31612002-09-14 Mark Kettenis <kettenis@gnu.org>
3162
3163 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
3164 zero.
3165
db54fef4
CV
31662002-09-14 Corinna Vinschen <vinschen@redhat.com>
3167
3168 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
3169 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
3170 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
3171
2becadee
CF
31722002-09-13 Christopher Faylor <cgf@redhat.com>
3173
3174 * win32-nat.c (child_create_inferior): Honor 'tty' command.
3175
de17c821
DJ
31762002-09-13 Daniel Jacobowitz <drow@mvista.com>
3177
3178 * gdbtypes.c (check_stub_method): Make static.
3179 (check_stub_method_group): New function.
3180 * gdbtypes.h: Update prototypes.
3181 * cp-support.c: New file.
3182 * cp-support.h: New file.
3183
3184 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
3185 (update_method_name_from_physname): New function.
3186 (read_member_functions): Correct method names for operators
3187 and v3 constructors/destructors. Separate v2 constructors and
3188 destructors.
3189 * Makefile.in (stabsread.o): Update dependencies.
3190 (SFILES): Add cp-support.c.
3191 (COMMON_OBS): Add cp-support.o.
3192 (cp_support_h, cp-support.o): Add.
3193
3194 * cp-valprint.c (cp_print_class_method): Call
3195 check_stub_method_group instead of check_stub_method. Remove
3196 extraneous QUITs.
3197 * p-valprint.c (pascal_object_print_class_method): Likewise.
3198 * valops.c (search_struct_method): Likewise.
3199 (find_method_list, value_struct_elt_for_reference): Likewise.
3200
e76cff22
AC
32012002-09-13 Andrew Cagney <cagney@redhat.com>
3202
3203 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
3204 * gdbarch.h, gdbarch.c: Regenerate.
3205
905abb3f
AC
32062002-09-13 Andrew Cagney <ac131313@redhat.com>
3207
3208 * frame.c (find_saved_register): Delete function.
3209 * frame.h (find_saved_register): Delete declaration.
3210 Fix PR gdb/631.
3211
64159455
AC
3212Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
3213
3214 * mips-tdep.c (read_next_frame_reg): Re-hack using
3215 frame_register_unwind.
3216
795e1e11
AC
3217Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
3218
3219 * mips-tdep.c (mips_get_saved_register): Re-hack using
3220 frame_register_unwind.
3221
5720643c
JB
32222002-09-12 Joel Brobecker <brobecker@gnat.com>
3223
3224 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
3225 vector. Will be useful for Interix.
3226 * gdbarch.h, gdbarch.c: Regenerate.
3227
3228 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
3229 name of the malloc function by NAME_OF_MALLOC.
3230
3bada2a2
JB
32312002-09-12 Joel Brobecker <brobecker@gnat.com>
3232
3233 * value.h (find_function_in_inferior): Add const keyword to
3234 one of the parameters. Allows us to invoke this function with
3235 a const char *.
3236 * valops.c (find_function_in_inferior): Likewise.
3237
3db26b01
JB
32382002-09-12 Joel Brobecker <brobecker@gnat.com>
3239
3240 * exec.c (xfer_memory): Fix compilation warning with old versions
3241 of GCC.
3242 * tracepoint.c (trace_find_tracepoint_command): Likewise.
3243
17c5ed2c
DC
32442002-09-12 David Carlton <carlton@math.stanford.edu>
3245
3246 * symtab.h: Run through gdb_indent.h.
3247 Add 2002 to Copyright year list.
3248
ecd1107e
AM
32492002-09-12 Alan Modra <amodra@bigpond.net.au>
3250
3251 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
3252 mach constants.
3253 * MAINTAINERS: Add myself to write after approval list.
3254
e64f66d1
JB
32552002-09-11 J. Brobecker <brobecker@gnat.com>
3256
3257 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
3258
f9395794
JB
32592002-09-11 J. Brobecker <brobecker@gnat.com>
3260
3261 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
3262 Interix.
3263
1a303dec
MS
32642002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
3265
3266 * procfs.c (do_detach): Clear current signal, not just fault.
3267 Corrects problem with breakpoint trap signal leaking to detached
3268 process on Tru64.
3269
c0219d42
MS
32702002-09-10 Michael Snyder <msnyder@redhat.com>
3271
3272 * buildsym.c (finish_block): Protect against null pointer.
3273
9d84ac84
AC
32742002-09-10 Andrew Cagney <cagney@redhat.com>
3275
3276 * infcmd.c (default_print_registers_info): Send all output to
3277 ``file'' instead of ``gdb_stdout''.
3278
77d8f2b4
MS
32792002-09-10 Michael Snyder <msnyder@redhat.com>
3280
3281 * mips-tdep.c (mips_extract_struct_value_address): Make val a
3282 LONGEST, and use signed register read (addresses are sign-
3283 extended for mips).
3284
99656a61
SC
32852002-09-10 Stephane Carrez <stcarrez@nerim.fr>
3286
3287 * event-loop.c (gdb_do_one_event): Make public.
3288 * event-loop.h (gdb_do_one_event): Declare.
3289
da12f4d8
JL
32902002-09-10 Jeff Law <law@redhat.com>
3291
3292 * infttrace.c (child_resume): Simplify and rework to avoid
3293 TT_PROC_CONTINUE.
3294
d0aee0c4
FF
32952002-09-09 Fred Fish <fnf@intrinsity.com>
3296
3297 * printcmd.c (print_scalar_formatted): "len" is the number of
3298 target bytes, NOT the number of target bits.
3299
7cb3ec5e
EZ
33002002-09-09 Elena Zannoni <ezannoni@redhat.com>
3301
3302 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
3303 * top.c (init_main): Set rl_terminal_name.
3304
4dc81987
AS
33052002-09-08 Aidan Skinner <aidan@velvet.net>
3306
3307 * ada-lang.c (ada_array_bound, ada_type_match,
3308 _initialize_ada_language): Fix K&R definitions.
3309 * ada-tasks.c (get_current_task): Fix K&R definitions.
3310 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
3311
842330b4
CF
33122002-09-07 Christopher Faylor <cgf@redhat.com>
3313
3314 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
3315 Add XP.
3316
43156d82
MK
33172002-09-06 Mark Kettenis <kettenis@gnu.org>
3318
66da5fd8
MK
3319 * i386-tdep.c (i386_register_virtual_type,
3320 i386_register_convertible, i386_register_convert_to_virtual,
3321 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
3322 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
3323 (i386_gdbarch_init): Fix comment. Add comments on calls that set
3324 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
3325 Don't set push_arguments twice.
3326
4b218c18
MK
3327 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
3328 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
3329 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
3330 sigtramp_end to NULL.
3331 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
3332 defines.
3333 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
3334
4cc314d5
MK
3335 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
3336 whitespace.
3337
43156d82
MK
3338 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
3339 * gdbarch.h, gdbarch.c: Re-generate.
3340 * blockframe.c (find_pc_sect_partial_function): Convert to use
3341 SIGTRAMP_START_P predicate.
3342
6672060b
MS
33432002-09-05 Michael Snyder <msnyder@redhat.com>
3344
a90c3637
MS
3345 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
3346 generic_dummy_frame method and old method. Also distinguish
3347 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
95f95911 3348 (arm_extract_return_value): Use new regcache method.
a90c3637 3349
6672060b
MS
3350 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
3351 adjustment that doesn't conform to the ABI.
3352 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
3353 saved regcache, not from current regcache.
3354
299ffc64
AC
33552002-09-05 Andrew Cagney <ac131313@redhat.com>
3356
3357 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
3358 * README: Update.
3359
a3a2ee65
JT
33602002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
3361
3362 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
3363 if arm_apcs_32 is false.
3364
2bc7eea9
AC
33652002-09-04 Andrew Cagney <ac131313@redhat.com>
3366
3367 GDB 5.3 branch created.
3368
8a55a7c5
TR
33692002-09-03 Theodore A. Roth <troth@verinet.com>
3370
3371 * gdb/avr-tdep.c (avr_gdbarch_init): Use
3372 generic_unwind_get_saved_register.
3373
e26fb1d7
DC
33742002-09-03 David Carlton <carlton@math.stanford.edu>
3375
3376 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
3377 argument (PR gdb/653). Update call to smash_to_method_type.
3378 (read_structure_scope): Update call to dwarf2_add_member_fn.
3379
30d52491
ML
33802002-09-03 Michal Ludvig <mludvig@suse.cz>
3381
3382 * x86-64-linux-tdep.c: Include gdb_string.h
3383 * x86-64-linux-nat.c: Ditto.
3384
06891d83
JT
33852002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3386
3387 * ada-exp.y (yyname, yyrule): Remap global variables that appear
3388 when YYDEBUG is set to 1.
3389 * c-exp.y: Likewise.
3390 * f-exp.y: Likewise.
3391 * jv-exp.y: Likewise.
3392 * m2-exp.y: Likewise.
3393 * p-exp.y: Likewise.
3394
7d400e77
JT
33952002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3396
3397 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
3398 dependency list.
3399 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
3400 solib_svr4_fetch_link_map_offsets to
3401 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
3402 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
3403 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
3404 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
3405 solib-svr4.o, and solib-legacy.o.
3406 * config/i386/tm-nbsd.h: Include solib.h.
3407
704a27c4
JT
34082002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3409
3410 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
3411 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
3412 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
3413 comment noting that this needs its own target configuration.
3414 * config/i386/nbsd.mt: New file.
3415 * config/i386/nbsdaout.mt: Remove.
3416 * config/i386/nbsdelf.mt: Ditto.
3417 * config/i386/tm-nbsdaout.h: Ditto.
3418
d66198e1
JT
34192002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3420
3421 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
3422 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
3423 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
3424 tdep->sigtramp_end.
3425 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
3426 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
3427 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
3428
3cac699e
JT
34292002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3430
3431 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
3432 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
3433 * i386-tdep.h (i386bsd_init_abi): New prototype.
3434 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
3435 function declaration.
3436 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
3437 for NetBSD-a.out or NetBSD-ELF.
3438 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
3439 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
3440 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
3441 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
3442 and nbsd-tdep.h.
3443 (i386nbsd_pc_in_sigtramp): New function.
3444 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3445 i386nbsd_pc_in_sigtramp.
3446 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
3447 and i386nbsdelf_init_abi OS ABI handlers.
3448 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
3449 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
3450
7010ca0a
MK
34512002-09-02 Mark Kettenis <kettenis@gnu.org>
3452
3453 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
3454 registers if the target really has them.
3455
6dd93b72
JT
34562002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3457
3458 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
3459 than nbsd-tdep.h.
3460
2ca8ae21
JT
34612002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3462
3463 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
3464 list.
3465 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
3466 (alphanbsd_skip_sigtramp_frame): New functions.
3467 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
3468 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
3469 to alphanbsd_sigcontext_addr.
3470
3d9b49b0
JT
34712002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3472
3473 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
3474 list.
3475 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
3476 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
3477 nbsd_pc_in_sigtramp.
3478 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
3479 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
3480 * nbsd-tdep.c: Include gdb_string.h.
3481 (nbsd_pc_in_sigtramp): New function.
3482 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
3483 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
3484 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3485 ppcnbsd_pc_in_sigtramp.
3486 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
3487 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3488 shnbsd_pc_in_sigtramp.
3489 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
3490 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
3491 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
3492
c860120c
PM
34932002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
3494
3495 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
3496 watchpoints to NULL.
3497 (insert_breakpoints): set val field of watchpoints if NULL.
3498
3499
c7612d53
JB
35002002-08-29 Jim Blandy <jimb@redhat.com>
3501
3502 * symtab.c (lookup_symbol_aux): In the cases where we find a
3503 minimal symbol of an appropriate name and use its address to
3504 select a symtab to read and search, use `name' (as passed to us)
3505 as the demangled name when searching the symtab's global and
3506 static blocks, not the minsym's name.
3507
66609862
KS
35082002-08-29 Keith Seitz <keiths@redhat.com>
3509
3510 * stack.c (print_frame_info_base): Always set current_source_symtab
3511 and current_source_line.
3512
151fefe2
JB
35132002-08-29 Donn Terry <donnte@microsoft.com>
3514
3515 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
3516
bfb3754e
KS
35172002-08-28 Keith Seitz <keiths@redhat.com>
3518
3519 * stack.c (select_frame): Add FIXME concerning selected-frame
3520 events.
3521 (select_frame_command): Send selected-frame-level-changed
3522 event notification, but only if the level actually changed.
3523 (up_silently_base): Add selected-frame-level-changed event
3524 notification.
3525 (down_silently_base): Likewise.
3526
e822a2a0
AC
35272002-08-28 Andrew Cagney <ac131313@redhat.com>
3528
3529 * Makefile.in: Update dependencies for all gdb/*.c files.
3530
309367d4
TT
35312002-08-27 Tom Tromey <tromey@redhat.com>
3532
3533 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
3534 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
3535 Update dependencies.
3536 * i387-tdep.c: Include gdb_string.h.
3537 * osabi.c: Likewise.
3538 * i386-linux-nat.c: Likewise.
3539 * lin-lwp.c: Likewise.
3540 * ax-gdb.c: Likewise.
3541 * signals/signals.c: Likewise.
3542 * jv-valprint.c: Likewise.
3543 * p-lang.c: Likewise.
3544 * c-valprint.c: Likewise.
3545 * cp-abi.c: Likewise.
3546
e1507482
EZ
35472002-08-27 Elena Zannoni <ezannoni@redhat.com>
3548
3549 * cli/cli-script.h (copy_command_lines): Export.
3550 * breakpoint.c: Include cli/cli-script.h.
3551 * Makefile.in (breakpoint.o): Update dependencies.
3552
c6510018
MS
35532002-08-26 Michael Snyder <msnyder@redhat.com>
3554
3555 * breakpoint.c (insert_breakpoints): Protect all references
3556 to 'process_warning'. Shorten long lines.
3557
c2b8ed2c
MS
35582002-08-26 Joel Brobecker <brobecker@gnat.com>
3559
3560 * cli/cli-script.c (copy_command_lines): New function.
3561 * defs.h (copy_command_lines): Export.
3562 * testsuite/gdb.base/commands.exp: New tests for commands
3563 attached to a temporary breakpoint, and for commands that
3564 delete the breakpoint they are attached to.
3565
35662002-08-26 Michael Snyder <msnyder@redhat.com>
3567
3568 * breakpoint.c (bpstat_stop_status): Instead of copying the
3569 pointer to the breakpoint commands struct, make a new copy
3570 of the struct and point to that.
3571 (bpstat_clear): Free the commands struct.
3572 (bpstat_clear_actions): Free the commands struct.
3573 (bpstat_do_actions): Free the command actions. Also execute
3574 the local cleanups, instead of deleting them.
3575 (delete_breakpoint): Leave the commands field of the bpstat
3576 chain alone -- it will be freed later.
3577
64b84175
KB
35782002-08-26 Kevin Buettner <kevinb@redhat.com>
3579
3580 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
3581 deleted in 2002-08-20 commit. This function is still used by
3582 ppc-linux-nat.c.
3583
55970da6
KS
35842002-08-26 Keith Seitz <keiths@redhat.com>
3585
3586 * gdb-events.sh: Add selected-frame-level-changed event.
3587 * gdb-events.c: Regenerated.
3588 * gdb-events.h: Regenerated.
3589
a790ad35
SC
35902002-08-26 Stephane Carrez <stcarrez@nerim.fr>
3591
3592 Fix PR gdb/393:
3593 * inflow.c (terminal_save_ours): New function to save terminal
3594 settings.
3595 * inferior.h (terminal_save_ours): Declare.
3596 * target.c (debug_to_terminal_save_ours): New function.
3597 (cleanup_target): Defaults to_terminal_save_ours.
3598 (update_current_target): Inherit to_terminal_save_ours.
3599 (setup_target_debug): Set to_terminal_save_ours.
3600 * target.h (target_terminal_save_ours): New to save terminal settings.
3601 (target_ops): New member to_terminal_save_ours.
3602 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
3603 * hpux-thread.c (init_hpux_thread_ops): Likewise.
3604 * inftarg.c (init_child_ops): Likewise.
3605 * m3-nat.c (init_m3_ops): Likewise.
3606 * procfs.c (init_procfs_ops): Likewise.
3607 * wince.c (init_child_ops): Likewise.
3608 * win32-nat.c (init_child_ops): Likewise.
3609 * sol-thread.c (init_sol_thread_ops): Likewise.
3610
c00dcbe9
MK
36112002-08-26 Mark Kettenis <kettenis@gnu.org>
3612
3d7f4f49
MK
3613 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
3614 use regcache_* functions.
3615 (i386_gdbarch_init): Set store_return_value instead of
3616 deprecated_store_return_value.
3617
c00dcbe9
MK
3618 * regcache.c (regcache_raw_write_signed,
3619 regcache_raw_write_unsigned): New functions.
3620 * regcache.h (regcache_raw_write_signed,
3621 regcache_raw_write_unsigned): New prototypes.
3622
0e0d15ca
AC
36232002-08-25 Andrew Cagney <ac131313@redhat.com>
3624
3625 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
3626 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
3627 source file dependencies. Cleanup corresponding generator rules.
3628
d3b22ed5
AC
36292002-08-25 Andrew Cagney <ac131313@redhat.com>
3630
3631 * regcache.h (register_offset_hack): Declare.
3632 (regcache_cooked_read_using_offset_hack): Declare.
3633 (regcache_cooked_write_using_offset_hack): Declare.
3634
3635 * regcache.c (register_offset_hack): New function.
3636 (regcache_cooked_read_using_offset_hack): New function.
3637 (regcache_cooked_write_using_offset_hack): New function.
3638 (regcache_dump): Check that the registers, according to their
3639 offset, are packed hard against each other.
3640 (cooked_xfer_using_offset_hack): New function.
3641
bb425013
AC
36422002-08-25 Andrew Cagney <ac131313@redhat.com>
3643
3644 * regcache.c (struct regcache_descr): Add field register_type.
3645 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
3646 in as a parameter
3647 (init_regcache_descr): Initialize register_type. Pass the descr
3648 to init_legacy_regcache_descr. Use register_type instead of
3649 REGISTER_VIRTUAL_TYPE.
3650 (register_type): New function.
3651 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
3652 * regcache.h (register_type): Declare.
3653
d0403e00
AC
36542002-08-25 Andrew Cagney <ac131313@redhat.com>
3655
3656 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
3657 instead of deprecated_store_return_value. Fix fallout from
3658 2002-08-23 Andrew Cagney <cagney@redhat.com>.
3659
0ed04cce
AC
36602002-08-25 Andrew Cagney <ac131313@redhat.com>
3661
3662 * regcache.c (max_register_size): New function.
3663 (init_legacy_regcache_descr): Ensure that max_register_size is
3664 large enough for REGISTER_VIRTUAL_SIZE.
3665 * regcache.h (max_register_size): Declare.
3666
46d79c04
AC
36672002-08-24 Andrew Cagney <ac131313@redhat.com>
3668
3669 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
3670 store_return_value.
3671 (e500_extract_return_value): Change type of valbuf pointer to
3672 void.
3673
853c7bd0
MK
36742002-08-24 Mark Kettenis <kettenis@gnu.org>
3675
cd87e769
MK
3676 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
3677 workaround.
3678
853c7bd0
MK
3679 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
3680 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
3681 long long) to prevent compiler warning on 64-bit systems.
3682
ebba8386
AC
36832002-08-23 Andrew Cagney <cagney@redhat.com>
3684
3685 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
3686 (DEPRECATED_STORE_RETURN_VALUE): New method.
3687 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
3688 * gdbarch.h, gdbarch.c: Re-generate.
3689
3690 * values.c (set_return_value): Pass current_regcache to
3691 STORE_RETURN_VALUE.
3692 * arch-utils.h (legacy_store_return_value): Declare.
3693 * arch-utils.c (legacy_store_return_value): New function.
3694 (legacy_extract_return_value): Update parameters.
3695
3696 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
3697 STORE_RETURN_VALUE.
3698 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3699 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3700 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3701 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3702 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3703 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3704 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3705 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3706 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3707 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3708
3709 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3710 * i386-tdep.c (i386_extract_return_value): Update.
3711 * arch-utils.c (legacy_extract_return_value): Update.
3712 * frv-tdep.c (frv_gdbarch_init): Update.
3713 * cris-tdep.c (cris_gdbarch_init): Update.
3714 * d10v-tdep.c (d10v_gdbarch_init): Update.
3715 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3716 * m68k-tdep.c (m68k_gdbarch_init): Update.
3717 * mcore-tdep.c (mcore_gdbarch_init): Update.
3718 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3719 * s390-tdep.c (s390_gdbarch_init): Update.
3720 * sparc-tdep.c (sparc_gdbarch_init): Update.
3721 * sh-tdep.c (sh_gdbarch_init): Update.
3722 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
3723 * v850-tdep.c (v850_gdbarch_init): Update.
3724 * avr-tdep.c (avr_gdbarch_init): Update.
3725 * ia64-tdep.c (ia64_gdbarch_init): Update.
3726 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3727 * vax-tdep.c (vax_gdbarch_init): Update.
3728 * alpha-tdep.c (alpha_gdbarch_init): Update.
3729 * arm-tdep.c (arm_gdbarch_init): Update.
3730 * mips-tdep.c (mips_gdbarch_init): Update.
3731 * i386-tdep.c (i386_gdbarch_init): Update.
3732
5bd8c6d0
AC
37332002-08-23 Andrew Cagney <ac131313@redhat.com>
3734
3735 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
3736 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
3737
e73e1724
MK
37382002-08-24 Mark Kettenis <kettenis@gnu.org>
3739
3740 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
3741 problems.
3742
3e6564e1
JB
37432002-08-23 Joel Brobecker <brobecker@gnat.com>
3744
3745 * infrun.c (handle_inferior_event): Move a comment outside of a
3746 function call, in order to avoid indent reformatting this part
3747 of the code in an unreadable way.
3748
81d0cc19
GS
37492002-08-23 Grace Sainsbury <graces@redhat.com>
3750
3751 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
3752 when breakpoints fail. Move general breakpoint error messages to
3753 insert_breakpoints.
3754 * breakpoint.c (insert_breakpoints): Change warnings when
3755 breakpoints are nto inserted to specify the type. Remove call to
3756 memory_error when hardware breakpoints can't be inserted. Remove
3757 multiple calls to warning so all messages are sent to the user at
3758 once.
3759 (delete_breakpoints): Make insert error messsages more explicit.
3760
17574093
DJ
37612002-08-23 Daniel Jacobowitz <drow@mvista.com>
3762
3763 * ChangeLog: Move gdbserver entries after GDB 5.2 to
3764 gdbserver/ChangeLog.
3765
8acc2935
MK
37662002-08-23 Mark Kettenis <kettenis@gnu.org>
3767
dfe01d39
MK
3768 * i386-tdep.c: Include "objfiles.h".
3769 (i386_svr4_init_abi): Set in_solib_call_trampoline and
3770 skip_trampoline_code.
3771 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
3772 (CPLUS_MARKER): Define to '.'.
3773
8acc2935
MK
3774 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
3775 member.
3776 (linux_corefile_thread_callback): Increase args->num_notes.
3777 (linux_make_note_section): Initialize thread_args.num_notes, and
3778 use it to determine whether notes for any threads were created.
3779
151fefe2 37802002-08-23 Donn Terry <donnte@microsoft.com>
640b227f
JB
3781
3782 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
3783 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
3784 and PCUNKILL.
3785 (write_with_trace): Conditionalize out the switch branch handling
3786 PCSHOLD if the corresponding macro is not defined. Likewise for
3787 PRSABORT and PRSTOP.
3788 This change will be needed by the Interix port.
3789
e1507482
EZ
37902002-08-22 Elena Zannoni <ezannoni@redhat.com>
3791
3792 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
3793 write_register wherever possible instead of manipulating the
3794 register bytes directly.
3795 Assign VALUE_CONTENTS to a variable and use that.
3796 The GPR numbers are now dependent on the architecture.
3797
96ff0de4
EZ
37982002-08-22 Elena Zannoni <ezannoni@redhat.com>
3799
3800 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
3801 ev_offset fields.
3802 (skip_prologue): Add support for BookE/e500 instructions.
3803 (e500_extract_return_value): New function.
3804 (frame_get_saved_regs): Add support for saving ev registers and
3805 pseudo gpr's.
3806 (e500_store_return_value): New function.
3807 (rs6000_gdbarch_init): Move up default intializations of
3808 deprecated_extract_return_value and store_return_value. Overwrite
3809 init of store_return_value with e500 specific version.
3810 Set extract_return_value for e500.
3811
fbefca5b
EZ
38122002-08-22 Elena Zannoni <ezannoni@redhat.com>
3813
3814 * blockframe.c (generic_call_dummy_register_unwind): Use
3815 regcache_cooked_read to catch cases in which the variable is
3816 stored in a pseudo register.
3817
4d210288
AC
38182002-08-22 Andrew Cagney <cagney@redhat.com>
3819
3820 * NEWS: Mention that the i960 has been made obsolete.
3821 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
3822 i960-tdep.c
3823 (remote-nrom.o): Obsolete target.
3824 (remote-nindy.o, i960-tdep.o): Ditto.
3825 * remote-nrom.c: Make file obsolete.
3826 * remote-nindy.c, remote-vx960.c: Ditto.
3827 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
3828 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
3829 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
3830 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
3831 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
3832 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
3833 i960-*-vxworks* obsolete.
3834 * MAINTAINERS: Note that the i960 is obsolete.
3835
6c0c456d
CV
38362002-08-21 Corinna Vinschen <vinschen@redhat.com
3837
3838 * aix-thread.c (aix_thread_detach): Disable thread debugging on
3839 detach to allow reinitialization.
3840
9f9d12b3
AC
38412002-08-22 Andrew Cagney <ac131313@redhat.com>
3842
3843 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
3844 attempt).
3845
ebeb39fe
JB
38462002-08-22 Jim Blandy <jimb@redhat.com>
3847
3848 * coffread.c (coff_symfile_read): Don't try to read the line
3849 number table from disk if the image file doesn't have a symbol
3850 table; we'll never actually look at the info anyway, and Windows
3851 ships DLL's with bogus file offsets for the line number data.
3852
5bf1c677
EZ
38532002-08-21 Elena Zannoni <ezannoni@redhat.com>
3854
3855 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
3856 an e500 executable.
3857
71b8ef93
MS
38582002-08-21 Michael Snyder <msnyder@redhat.com>
3859
3860 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
3861 (MSYMBOL_SIZE): Replace macro with function.
18f81521
MS
3862 (DEFAULT_MIPS_TYPE): Delete unused macro.
3863 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
3864 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
71b8ef93 3865
d174216d
JB
38662002-08-21 Jim Blandy <jimb@redhat.com>
3867
3868 * valops.c (value_cast): Simplify and correct logic for doing a
3869 static cast from a pointer to a base class to a pointer to a
3870 derived class.
3871
0ab7a791
AC
38722002-08-21 Andrew Cagney <ac131313@redhat.com>
3873
3874 * infcmd.c (default_print_registers_info): Replace
3875 do_registers_info.
3876 (registers_info): Use gdbarch_print_registers_info instead of
3877 DO_REGISTERS_INFO.
3878 * inferior.h (default_print_registers_info): Replace
3879 do_registers_info.
3880 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
3881 (DO_REGISTERS_INFO): Change to a predicate function.
3882 * gdbarch.h, gdbarch.c: Regenerate.
3883
e23792cc
KS
38842002-08-21 Keith Seitz <keiths@redhat.com>
3885
3886 * gdb-events.sh: Add target-changed event.
3887 * gdb-events.c: Regenerated.
3888 * gdb-events.c: Regenerated.
3889 * valops.c (value_assign): Add target-changed event notification
3890 to inlval_register, lval_memory, and lval_reg_frame_relative.
3891
9fb14e79
JB
38922002-08-21 Joel Brobecker <brobecker@gnat.com>
3893
3894 * NEWS: Add an entry regarding the improvement of the next/step
3895 operation on Alpha Tru64 multi-processor machines.
3896
6d39a69f
AC
38972002-08-21 Andrew Cagney <ac131313@redhat.com>
3898
72acd513
AC
3899 * Makefile.in: Update dependencies for mi/ cli/ and tui/
3900 directores.
342af04b 3901 * Makefile.in: Update all _h macro definitions.
6d39a69f
AC
3902 * Makefile.in (install-gdbtk): Move to install section.
3903 (rdi-share/libangsd.a): Move to end of file.
3904
fa5f27c7
AC
39052002-08-19 Andrew Cagney <ac131313@redhat.com>
3906
3907 * frame.c (frame_register_unwind): When a register, set addrp to
3908 the register's byte.
3909
5a89d8aa
MS
39102002-08-20 Michael Snyder <msnyder@redhat.com>
3911
3912 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
3913 used locally, so move them from the target machine header to here.
3914 (mips_set_processor_type, mips_register_name, mips32_next_pc,
3915 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
3916 Make static.
3917 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
3918
822e978b
AC
39192002-08-20 Andrew Cagney <cagney@redhat.com>
3920
3921 * NEWS: Mention that the Apollo line was made obsolete.
3922 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
3923 m68*-hp-hpux* obsolete.
3924 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
3925 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
3926 * buildsym.c (make_blockvector): Make static.
3927 * buildsym.h (make_blockvector): Make extern declaration obsolete.
3928 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
3929 (ALLDEPFILES): Remove dstread.c.
3930 (dstread.o): Obsolete make rule.
3931 * dstread.c: Makefile obsolete.
3932 * dst.h: Ditto.
3933 * config/m68k/hp300hpux.mt: Ditto.
3934 * config/m68k/hp300hpux.mh: Ditto.
3935 * config/m68k/hp300bsd.mt: Ditto.
3936 * config/m68k/hp300bsd.mh: Ditto.
3937 * config/m68k/apollo68b.mt: Ditto.
3938 * config/m68k/apollo68v.mh: Ditto.
3939 * config/m68k/apollo68b.mh: Ditto.
3940
e41b17f0
MS
39412002-08-20 Michael Snyder <msnyder@redhat.com>
3942
3943 * mips-tdep.c (mips_in_return_stub): Make static.
3944 (mips_gdbarch_init): Set in_solib_return_trampoline.
3945 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
3946
d50355b6
MS
39472002-08-20 Michael Snyder <msnyder@redhat.com>
3948
3949 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
3950 * gdbarch.c, gdbarch.h: Regenerate.
3951 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
3952 Add.
3953 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
3954
757a7cc6
MS
39552002-08-20 Michael Snyder <msnyder@redhat.com>
3956
3957 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
3958 (mips_gdbarch_init): Set skip_trampoline_code,
3959 in_solib_call_trampoline.
3960 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
3961 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
3962
c8001721
EZ
39632002-08-20 Elena Zannoni <ezannoni@redhat.com>
3964
3965 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
3966
3967 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
3968 vector type for ev registers.
3969 (e500_pseudo_register_read): New function.
3970 (e500_pseudo_register_write): New function.
3971 (e500_dwarf2_reg_to_regnum): New function.
3972 (PPC_UISA_NOFP_SPRS): New macro.
3973 (PPC_EV_REGS): New macro.
3974 (PPC_GPRS_PSEUDO_REGS): New macro.
3975 (registers_e500): New register set for e500.
3976 (variants): Add e500 variant.
3977 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
3978 before setting architectural dependent variations. Initialize ev
3979 registers numbers. Add case for e500 architecture. Set the
3980 number of pseudo registers.
3981
64366f1c
EZ
39822002-08-20 Elena Zannoni <ezannoni@redhat.com>
3983
3984 * rs6000-tdep.c: Clean up comments.
3985
7e78f0ca
AC
39862002-08-20 Andrew Cagney <cagney@redhat.com>
3987
3988 * h8300-tdep.c: Re-indent file.
3989
697f7479
JB
39902002-08-20 Jim Blandy <jimb@redhat.com>
3991
3992 * Makefile.in (LDFLAGS): Allow the configure script to establish a
3993 default for this.
697f7479 3994
e86ae29f
KS
39952002-08-20 Keith Seitz <keiths@redhat.com>
3996
3997 * breakpoints.c (watch_command_1): Use internal breakpoint
3998 when setting a watchpoint_scope breakpoint.
3999
216b504f
EZ
40002002-08-20 Elena Zannoni <ezannoni@redhat.com>
4001
4002 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
4003 (build_builtin_type_vec64i): Ditto.
4004 (build_builtin_type_vec128): Ditto.
4005 (build_builtin_type_vec128i): Ditto.
4006
f7ab6ec6
MS
40072002-08-19 Michael Snyder <msnyder@redhat.com>
4008
4009 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
4010 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
4011 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
4012 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
4013 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
4014 CALL_DUMMY_ADDRESS): Delete.
4015 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
4016 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
4017 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
4018 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
4019 push_return_address.
4020 (mips_register_raw_size, mips_eabi_use_struct_convention,
4021 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
4022 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
4023 mips_init_extra_frame_info, mips_eabi_push_arguments,
4024 mips_n32n64_push_arguments, mips_push_return_address,
4025 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
4026 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
4027
b5d1566e
MS
40282002-08-19 Michael Snyder <msnyder@redhat.com>
4029
4030 * mips-tdep.c (mips_frame_num_args): New function.
4031 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
4032 frame_saved_pc, frame_args_address, frame_locals_address,
4033 frame_num_args, and frame_args_skip.
4034 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
4035 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
4036 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
4037 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
4038
2f1488ce
MS
40392002-08-20 Michael Snyder <msnyder@redhat.com>
4040
4041 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
4042 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
4043 * mips-tdep.c (mips_store_struct_return): New function.
4044 (mips_extract_struct_value_address): New function.
4045 (mips_gdbarch_init): Set store_struct_return and
4046 extract_struct_value_address.
4047
41ff2da1
DC
40482002-08-20 David Carlton <carlton@math.stanford.edu>
4049
4050 * dwarf2read.c (dwarf2_build_psymtabs): Check that
4051 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
4052 (read_file_scope): Check that line_header is nonzero before
4053 decoding macro information.
4054
e5451d58
MK
40552002-08-20 Mark Kettenis <kettenis@gnu.org>
4056
4057 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
4058 flag the general-purpose registers as floating-point on targets
4059 that don't support the floating-point registers.
4060
4a6daafa
EZ
40612002-08-20 Elena Zannoni <ezannoni@redhat.com>
4062
4063 * rs6000-tdep.c (altivec_register_p): Delete.
4064 (rs6000_do_altivec_registers): Delete.
4065 (rs6000_altivec_registers_info): Delete.
4066 (rs6000_do_registers_info): Delete.
4067 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
4068 (rs6000_gdbarch_init): Remove setting of do_registers_info.
4069
ab4327e0
EZ
40702002-08-20 Elena Zannoni <ezannoni@redhat.com>
4071
4072 * infcmd.c (do_registers_info): Print vector registers in hex
4073 format only.
4074 (print_vector_info): Check that printing registers
4075 makes sense.
4076 (print_float_info): Ditto.
4077
cb1d2653
AC
40782002-08-20 Andrew Cagney <ac131313@redhat.com>
4079
4080 * mips-tdep.c (mips_gdbarch_init): Update.
4081 (mips_o32_extract_return_value): Rewrite.
4082 (mips_o32_store_return_value): Rewrite.
4083 (mips_o32_xfer_return_value): New function.
4084 (mips_xfer_register): Tweak debug print message. Allow for
4085 buf_offset when dumping the value transfered.
4086
dfc3d9b2
AC
40872002-08-20 Andrew Cagney <ac131313@redhat.com>
4088
4089 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
4090 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
4091 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
4092 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
4093 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
4094
7807aa61
MS
40952002-08-14 Michael Snyder <msnyder@redhat.com>
4096
4097 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
4098
489461e2
EZ
40992002-08-19 Elena Zannoni <ezannoni@redhat.com>
4100
4101 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
4102 register.
4103 (P): New macro to define a register as a pseudo register.
4104 (R, R4, R8, R16, FR32, R64, R0): Updated.
4105 (struct variant): Add new fields for number of pseudo registers
4106 and number of total registers.
4107 (tot_num_registers): New macro replacing....
4108 (num_registers): ...deleted macro.
4109 (num_registers): New function.
4110 (num_pseudo_registers): New function.
4111 (variants): Update all variants to intialize new fields correctly.
4112 Postpone initialization of number of pseudo regs and real regs.
4113 (init_variants): New function.
4114 (rs6000_gdbarch_init): Initialize variants. Update calculation of
4115 registers offsets.
4116
fcaffe4c
DC
41172002-08-19 David Carlton <carlton@math.stanford.edu>
4118
2c2738a0
DC
4119 * valops.c (search_struct_field): Change error message to treat
4120 return value of 0 from value_static_field as meaning that field is
4121 optimized out.
4122 (value_struct_elt_for_reference): Ditto.
4123 * values.c (value_static_field): Treat an unresolved location the
4124 same as a nonexistent symbol. Fix PR gdb/635.
2a73a662
DC
4125 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
4126 enclosed. Fix PR gdb/574.
fcaffe4c
DC
4127 * MAINTAINERS: Add self to Write After Approval list.
4128
88658117
AC
41292002-08-19 Andrew Cagney <ac131313@redhat.com>
4130
4131 * mips-tdep.c (mips_xfer_register): New function.
4132 (mips_n32n64_extract_return_value): Rewrite.
4133 (mips_gdbarch_init): For N32 and N64, set extract_return_value
4134 instead of deprecated_extract_return_value.
4135
21283beb
EZ
41362002-08-19 Elena Zannoni <ezannoni@redhat.com>
4137
4138 * rs6000-tdep.c (TDEP): Delete macro.
4139 (branch_dest): Replace use of TDEP macro with its body.
4140 (rs6000_pop_frame): Ditto.
4141 (rs6000_push_arguments): Ditto.
4142 (rs6000_skip_trampoline_code): Ditto.
4143 (rs6000_frame_saved_pc): Ditto.
4144 (rs6000_frame_chain): Ditto.
4145 (rs6000_register_name): Ditto.
4146 (rs6000_register_byte): Ditto.
4147 (rs6000_register_raw_size): Ditto.
4148 (rs6000_register_virtual_type): Ditto.
4149 (rs6000_register_convertible): Ditto.
4150 (rs6000_convert_from_func_ptr_addr): Ditto.
4151
bf072999
DJ
41522002-08-19 Daniel Jacobowitz <drow@mvista.com>
4153
4154 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
4155 conditionally.
4156 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
4157 MIPS_LINUX_JB_ELEMENT_SIZE.
4158 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
4159 for MAX_REGISTER_RAW_SIZE arrays.
4160 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
4161 MIPS_LINUX_JB_ELEMENT_SIZE.
4162
9b949a49
PM
41632002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
4164
4165 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
4166
6d3e79c6
AS
41672002-08-19 Aidan Skinner <aidan@velvet.net>
4168
4169 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
4170 ada-valprint.c ada-tasks.c.
4171 (YYFILES): Add ada-exp.y.
4172 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
4173 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
4174 (ada-exp.tab.o): New target.
4175
06c0b04e
AC
41762002-08-18 Andrew Cagney <ac131313@redhat.com>
4177
4178 * regcache.c (regcache_xfer_part): New function.
4179 (regcache_raw_read_part): New function.
4180 (regcache_raw_write_part): New function.
4181 (regcache_cooked_read_part): New function.
4182 (regcache_cooked_write_part): New function.
4183 * regcache.h (regcache_raw_read_part): Declare.
4184 (regcache_raw_write_part): Declare.
4185 (regcache_cooked_read_part): Declare.
4186 (regcache_cooked_write_part): Declare.
4187
92d1e331
DJ
41882002-08-18 Daniel Jacobowitz <drow@mvista.com>
4189
4190 * remote.c (remote_open_1): Add async_p.
4191 (remote_async_open_1): Delete.
4192 (open_remote_target): Delete.
4193 (remote_open, extended_remote_open): Update calls to remote_open_1.
4194 (remote_async_open, extended_remote_async_open): Call
4195 remote_open_1 instead of remote_async_open_1.
4196
247055de
MK
41972002-08-19 Mark Kettenis <kettenis@gnu.org>
4198
4199 * blockframe.c: Fix a few coding standard violations.
4200
641eda39
MK
42012002-08-19 Mark Kettenis <kettenis@gnu.org>
4202
0b717710
MK
4203 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
4204 here from ...
4205 * config/i386/tm-i386sco5.h: ... here. File removed.
4206 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
4207
26d28e12 4208 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
641eda39
MK
4209 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
4210 (TM_FILE): Set to tm-i386.h.
4211 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
4212 * config/i386/tm-i386v.h: Remove file.
4213 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
4214 instead of "i386/tm-i386v.h".
4215 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
4216 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
4217 "i386/tm-i386v.h".
4218 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
4219 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
4220 "i386/tm-i386.h".
4221
d4e0bab4
MK
42222002-08-18 Mark Kettenis <kettenis@gnu.org>
4223
4224 * config/i386/nm-i386v.h: Add protection against
4225 multiple-inclusion.
4226 (i386_register_u_addr): Remove prototype.
4227 (register_u_addr): New prototype.
4228 (REGISTER_U_ADDR): Redefine accordingly.
4229 * i386v-nat.c: Improve several comments.
4230 (i386_register_u_addr): Change signature and rename to
4231 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
4232 ubase variable.
4233
46cac009
AC
42342002-08-18 Andrew Cagney <ac131313@redhat.com>
4235
4236 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
4237 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
4238 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
4239 deprecated_extract_return_value.
4240 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
4241 rename mips_o32o64_push_arguments.
4242 (mips_gdbarch_init): Update.
4243 (mips_extract_return_value): Delete.
4244 (mips_o32_extract_return_value): Clone mips_extract_return_value.
4245 (mips_o64_extract_return_value): Clone mips_extract_return_value.
4246 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
4247 (mips_n32n64_extract_return_value): Clone
4248 mips_extract_return_value.
4249 (mips_store_return_value): Delete.
4250 (mips_o32_store_return_value): Clone mips_store_return_value.
4251 (mips_o64_store_return_value): Clone mips_store_return_value.
4252 (mips_eabi_store_return_value): Clone mips_store_return_value.
4253 (mips_n32n64_store_return_value): Clone mips_store_return_value.
4254
d2e4a39e
AS
42552002-08-18 Aidan Skinner <aidan@velvet.net>
4256
0c30c098
AS
4257 * ada-lang.c: Use gdb_string.h instead of <string.h>.
4258 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
4259
42602002-08-18 Aidan Skinner <aidan@velvet.net>
4261
4262 * ada-lang.c: Run through gdb_indent.sh.
4263 * ada-lang.h: Run through gdb_indent.sh.
4264 * ada-tasks.c: Run through gdb_indent.sh.
4265 * ada-typeprint.c: Run through gdb_indent.sh.
4266 * ada-valprint.c: Run through gdb_indent.sh.
d2e4a39e 4267
01fc4e33
AC
42682002-08-18 Andrew Cagney <ac131313@redhat.com>
4269
4270 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
4271 ABI.
4272
d8ee244c
MK
42732002-08-18 Mark Kettenis <kettenis@gnu.org>
4274
c38d8261
MK
4275 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
4276
222db64c
MK
4277 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
4278 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
4279
c2848c82
MK
4280 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
4281 write_register_gen instead of write_register_bytes.
4282
d8ee244c
MK
4283 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
4284 i[3456]-*-osf1mk* configurations have been made obsolete.
4285 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
4286 i[3456]86-*-osf1mk* hosts obsolete.
4287 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
4288 targets obsolete.
4289 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
4290 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
4291 config/i386/i386m3.mt, config/i386/nm-m3.h,
4292 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
4293 config/i386/i386mk.mh, config/i386/i386mk.mt,
4294 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
4295 obsolete.
4296 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
4297 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
4298 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
4299
61d8d407
AC
43002002-08-18 Andrew Cagney <ac131313@redhat.com>
4301
4302 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
4303 (hppa_value_returned_from_stack): Declare.
4304 (hppa_extract_return_value): Declare.
4305 * config/pa/hppa.mt: New file.
4306 * configure.tgt: Recognize hppa*-*-*.
4307 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
4308
0c52bd59
MK
43092002-08-18 Mark Kettenis <kettenis@gnu.org>
4310
4311 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
4312 comment.
4313
b5686e99
MK
43142002-08-17 Mark Kettenis <kettenis@gnu.org>
4315
4316 * top.c (gdb_rl_operate_and_get_next): Make sure
4317 operate-and-get-next functions correctly even when the history
4318 list is completely filled.
4319
c1bab85b
AC
43202002-08-18 Andrew Cagney <ac131313@redhat.com>
4321
4322 * MAINTAINERS (Target Instruction Set Architectures): Rename
4323 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
4324 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
4325 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
4326 already listed under Host/Native.
4327
4328 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
4329 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
4330 mips*-*-*.
4331
32089c7c
AC
43322002-08-17 Andrew Cagney <ac131313@redhat.com>
4333
4334 * config/ia64/ia64.mt: New file.
4335 * config/alpha/alpha.mt: New file.
4336 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
4337 ia64-linux-gnu. Mention that ia64-elf is broken.
4338 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
4339
b4671f85
MK
43402002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
4341
4342 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
4343 generic_func_frame_valid instead of func_frame_valid.
4344
c8edd8b4
JB
43452002-08-16 Joel Brobecker <brobecker@gnat.com>
4346
4347 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
4348 procfs appears to be broken when debugging on multi-processor
4349 machines. So enable software single stepping in order to avoid
4350 using the procfs interface to do next/step operations, using
4351 internal breakpoints instead.
4352
4353 * infrun.c (handle_inferior_event): Readjust the stop_pc by
4354 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
4355 make this pc address equal to the value it would have if the
4356 system stepping capability was used. Also set a new flag used
4357 to ensure that we don't readjust the PC one more time later.
4358
4359 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
4360 address by DECR_PC_AFTER_BREAK when software single step is
4361 in use for this architecture, as this has already been taken
4362 care of in handle_inferior_event().
4363
238617f6
JB
43642002-08-16 Joel Brobecker <brobecker@gnat.com>
4365
4366 * infrun.c (handle_inferior_event): Minor reformatting, to make
4367 a rather long condition expression easier to read.
4368
541a7aac
AC
43692002-08-16 Andrew Cagney <ac131313@redhat.com>
4370
4371 * Makefile.in (gdbtk.o): Move to end of file.
4372 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
4373 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
4374 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
4375 (gdbtk-wrapper.o, gdbres.o): Ditto.
4376
f92d4a7b
AC
43772002-08-16 Andrew Cagney <ac131313@redhat.com>
4378
4379 * Makefile.in (copying.o): Separate out compile rule.
4380 (hpux-thread.o, procfs.o, signals.o): Ditto.
4381 (v850ice.o, z8k-tdep.o): Ditto.
4382 (tui-file.o): Move to TUI section.
4383 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
4384 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
4385
1cce71eb
JB
43862002-08-16 Joel Brobecker <brobecker@gnat.com>
4387
4388 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
4389 skip_trampoline_code, for better namespace-proofing.
4390
4391 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
4392
0851f23d
JB
43932002-08-16 Joel Brobecker <brobecker@gnat.com>
4394
4395 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
4396
f8d40ec8
JB
43972002-08-16 Joel Brobecker <brobecker@gnat.com>
4398
4399 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
4400 signal, check whether we hit a breakpoint before checking for a
4401 single step breakpoint. Otherwise, GDB fails to notice that a
4402 breakpoint has been hit when stepping onto a breakpoint.
4403
63d022e0
KS
44042002-08-16 Keith Seitz <keiths@redhat.com>
4405
4406 * gdb-events.sh (clear_gdb_event_hooks): New function.
4407 * gdb-events.c: Regenerate.
4408 * gdb-events.h: Regenerate.
4409
6e31adb3
AC
44102002-08-16 Andrew Cagney <ac131313@redhat.com>
4411
4412 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
4413 not_a_sw_breakpoint.
4414 * breakpoint.h (bpstat_stop_status): Add parameter names.
4415
c8189ed1
GS
44162002-08-16 Grace Sainsbury <graces@redhat.com>
4417
4418 * remote.c (remote_insert_hw_breakpoint)
4419 (remote_remove_hw_breakpoint): Fix calculation of length field
4420 for Z-packet.
4421
d05285fa
MS
44222002-08-15 Michael Snyder <msnyder@redhat.com>
4423
466d7106
MS
4424 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
4425 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
4426 (supply_fpregset): Ditto.
4427
d05285fa
MS
4428 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
4429 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
4430 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
bcb0cc15 4431 (TARGET_READ_SP): Delete.
bf1f5b4c 4432 (DO_REGISTERS_INFO): Delete.
102182a9
MS
4433 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
4434 Delete.
4435 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
4436 from macros to functions.
bf1f5b4c 4437
d05285fa
MS
4438 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
4439 (mips_register_convertible, mips_register_convert_to_virtual,
4440 mips_register_convert_to_raw): Make static.
bcb0cc15
MS
4441 (mips_read_sp): New function.
4442 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
bf1f5b4c
MS
4443 (mips_do_registers_info): Make static.
4444 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
102182a9
MS
4445 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
4446 (mips_register_convert_from_type, mips_register_convert_to_type):
4447 New functions.
4448 (mips_gdbarch_init): Set up function_start_offset,
4449 register_virtual_size, pc_in_sigtramp.
d05285fa 4450
e76f1f2e
AC
44512002-08-15 Andrew Cagney <ac131313@redhat.com>
4452
4453 * infcmd.c (vector_info): New function.
4454 (_initialize_infcmd): Add command "info vector".
4455 (print_vector_info): New function.
4456
4457 * gdbarch.sh (PRINT_VECTOR_INFO): New method
4458 * gdbarch.h, gdbarch.c: Regenerate.
4459
4782dc19
AC
44602002-08-15 Andrew Cagney <ac131313@redhat.com>
4461
4462 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
4463 ``print_all''. Only print vector registers when ``print_all''.
4464
23e3a7ac
AC
44652002-08-15 Andrew Cagney <ac131313@redhat.com>
4466
8e186fd6
AC
4467 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
4468 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
4469
23e3a7ac
AC
4470 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
4471 Add `args' parameter.
4472 * gdbarch.h, gdbarch.c: Regenerate.
4473
4474 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
4475
4476 * infcmd.c (float_info): Call print_float_info.
4477 (print_float_info): New function. By default, print the
4478 floating-point registers.
4479
4480 * arch-utils.h (default_print_float_info): Delete declaration.
4481 * arch-utils.c (default_print_float_info): Delete function.
4482
e0ca2bb9
MK
44832002-08-16 Mark Kettenis <kettenis@gnu.org>
4484
3f733acc
MK
4485 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
4486 out define.
4487
7d8d2918
MK
4488 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
4489 FRAME.
4490
1c7cc583
MK
4491 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
4492 * configure.host: Make i[3456]86-*-aix host obsolete.
4493 * configure.tgt: Make i[3456]86-*-aix target obsolete.
4494 * config/i386/i386aix.mh, config/i386/i386aix.mt,
4495 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
4496 config/i386/xm-i386aix.h: Make files obsolete.
4497 * i386aix-nat.c: Make file obsolete.
4498 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
4499 (i386aix-nat.o): Make target obsolete.
4500
e0ca2bb9
MK
4501 * config/i386/nm-gnu.h: Removed.
4502 * config/i386/nm-i386gnu.h: New file.
4503 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
4504 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
4505 Moved here from ...
4506 * config/i386/tm-i386gnu.h: ... here. Removed.
4507 * config/i386/xm-i386gnu.h: Removed.
4508 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
4509 (NAT_FILE): Set to nm-i386gnu.h.
4510 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
4511 * i386-tdep.c: New file.
4512 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
4513 (i386gnu-tdep.o): Specify dependencies.
4514
16057ec7 45152002-08-15 Mark Kettenis <kettenis@gnu.org>
61113f8b 4516
6b99ee2e
MK
4517 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
4518 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
4519 Adjust a few comments to reflect reality a bit closer.
4520 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
4521 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
4522 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
4523 target_insert_watchpoint, target_remove_watchpoint):
4524 Move defines to ...
4525 * config/i386/nm-i386sco5.h: ... here.
4526 (kernel_u_size): Add prototype. Improve a few comments and add
4527 protection against multiple inclusion.
4528
d9a6f65c
MK
4529 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
4530 out define.
4531
047eff6a
MK
4532 * uw-thread.c (SP_ARG0): Define if not already defined.
4533 * config/i386/tm-i386.h (SO_ARG0): Remove define.
4534
dcdb1290
MK
4535 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
4536
5d2d0b2a
MK
4537 * config/i386/tm-i386.h: Don't include "regcache.h".
4538
61113f8b
MK
4539 * i387-tdep.h (i387_print_float_info): New prototype.
4540 * i387-tdep.c (print_i387_value, print_i387_ext,
4541 print_i387_status_word, print_i387_control_word): Add `struct
4542 ui_file *' argument and use it for output.
4543 (i387_print_float_info): Renamed from i387_float_info. Add
4544 `struct gdbarch *' and `struct ui_file *' arguments and use the
4545 latter for output.
4546 * i386-tdep.c: Include "i387-tdep.h".
4547 (i386_gdbarch_init): Set print_float_info.
4548 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
4549 (FLOAT_INFO): Remove define.
4550
46e0f506
MS
45512002-08-13 Michael Snyder <msnyder@redhat.com>
4552
4553 * mips-tdep.c (mips_push_arguments): Rename to
4554 mips_eabi_push_arguments, and tune for EABI.
4555 (MIPS_REGS_HAVE_HOME_P): Delete.
4556 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
4557 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
4558 Delete references to mips_regs_have_home_p.
4559
409268de
KS
45602002-08-14 Keith Seitz <keiths@redhat.com>
4561
4562 * Makefile.in (install-gdbtk): Create insight plugin directory.
4563 Install plugins.tcl file.
4564
ffc6a242
KS
45652002-08-14 Keith Seitz <keiths@redhat.com>
4566
4567 * configure.in: Move SUBDIRS to near top of the file so that
4568 --enable options may add things to it.
4569 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
4570 * configure: Regenerate.
4571
ebafbe83
MS
45722002-08-13 Michael Snyder <msnyder@redhat.com>
4573
4574 * mips-tdep.c (mips_o32o64_push_arguments): New function,
4575 cloned from mips_push_arguments, tuned for o32/o64 ABI.
4576 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
4577
32f6f25d
AC
45782002-08-13 Andrew Cagney <ac131313@redhat.com>
4579
4580 * vax-tdep.c (vax_get_saved_register): Delete function.
4581 (vax_gdbarch_init): Update.
4582 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
4583 (ns32k_gdbarch_init): Update.
4584 * alpha-tdep.c (alpha_get_saved_register): Delete function.
4585 (alpha_gdbarch_init): Update.
4586
53826de9
AC
45872002-08-13 Andrew Cagney <cagney@redhat.com>
4588
4589 * regcache.c (init_regcache_descr): Overallocate the
4590 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
4591 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
4592 nr_raw_registers.
4593 (set_register_cached): Add range checking assertions. Use
4594 current_regcache.
4595
16057ec7 45962002-08-13 Mark Kettenis <kettenis@gnu.org>
7d12f766
MK
4597
4598 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
4599 numbers for MMX registers.
4600
7b4c2dce
AC
46012002-08-13 Andrew Cagney <cagney@redhat.com>
4602
4603 * i386-tdep.c (i386_gdbarch_init): Use
4604 generic_unwind_get_saved_register.
4605
1e03ad20
KB
46062002-08-13 Kevin Buettner <kevinb@redhat.com>
4607
4608 * procfs.c (procfs_can_use_hw_breakpoint): New function.
4609 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
4610 target vector.
4611 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
4612 Delete. Add comment regarding this now-deleted target method.
4613
548bcbec
SC
46142002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4615
4616 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
4617 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
4618 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
4619 real PC and the page number (if it's within the memory bank window).
4620 (m68hc11_pseudo_register_write): Likewise when saving.
4621 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
4622 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
4623 (m68hc11_register_raw_size): And use 32-bit for it.
4624 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
4625 16K memory bank is used by the prog; also use the virtual pc.
4626
7df11f59
SC
46272002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4628
4629 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
4630 (m68hc11_gdbarch_init): Install it in gdbarch.
4631 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
4632 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
4633 (MSYMBOL_SIZE): New for documentation.
4634 (insn_return_kind): Enum to specify how a function returns.
4635 (frame_extra_info): Cleanup and record the return mode.
4636 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
4637 register in address computation.
4638 (m68hc11_get_return_insn): New to obtain the return instruction used
4639 by the function.
4640 (m68hc11_frame_init_saved_regs): Take into account the return
4641 instruction used by the function for far and interrupt functions.
4642 (m68hc11_init_extra_frame_info): Take into account page register.
4643 (m68hc11_frame_args_address): Adjust according to the return mode.
4644 (show_regs): Print page register only when it's used.
4645
5706502a
SC
46462002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4647
4648 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
4649 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
4650 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
4651 registers.
4652 (m68hc11_register_raw_size): Likewise.
4653
28fc6740
AC
46542002-08-13 Andrew Cagney <cagney@redhat.com>
4655
4656 * i386-tdep.c (i386_register_name): Handle mmx registers.
4657 (mmx_regnum_p): New function.
4658 (i386_mmx_names): New array.
4659 (mmx_num_regs): New variable.
4660 (i386_pseudo_register_read): New function.
4661 (i386_pseudo_register_write): New function.
4662 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
4663
4664 * regcache.c (regcache_raw_read_unsigned): New function.
4665 (regcache_raw_read_signed): New function.
4666 * regcache.h (regcache_raw_read_unsigned): Declare.
4667 (regcache_raw_read_signed): Declare.
4668
a378f419
AC
46692002-08-13 Andrew Cagney <cagney@redhat.com>
4670
4671 * regcache.c (regcache_raw_read_as_address): Delete function.
4672 (regcache_cooked_read_signed): New function.
4673 (regcache_cooked_read_unsigned): New function.
4674 * regcache.h (regcache_cooked_read_signed): Declare.
4675 (regcache_cooked_read_unsigned): Declare.
4676 (regcache_raw_read_as_address): Delete declaration.
4677
4678 * blockframe.c (generic_read_register_dummy): Use
4679 regcache_cooked_read_unsigned.
4680 * i386-tdep.c (i386_extract_struct_value_address): Use
4681 regcache_cooked_read_unsigned.
4682
81967506
SC
46832002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4684
4685 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
4686 double sizes according to ELF ABI flags.
4687 (gdbarch_tdep): Record elf_flags.
4688
ffe1f3ee
SC
46892002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4690
4691 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
4692 (m6812_prolog): They can appear in 68HC12 function prologue.
4693 (m68hc11_frame_chain): Cleanup.
4694
98216c5d
AC
46952002-08-12 Andrew Cagney <cagney@redhat.com>
4696
4697 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
4698 declarations.
4699 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
4700 (i386_linux_register_raw_size): Delete function.
4701 (i386_linux_init_abi): Update.
4702 * i386-tdep.c (i386_register_raw_size): Delete function.
4703 (i386_register_byte): Delete function.
4704 (i386_gdbarch_init): Update.
4705 (i386_register_size): Delete array.
4706 (i386_register_offset): Delete array.
4707
4708 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
4709 (REGISTER_RAW_SIZE): Delete macro.
4710 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
4711 (REGISTER_BYTE): Delete macro.
4712
3b19021e
AS
47132002-08-11 Aidan Skinner <aidan@velvet.net>
4714
4715 * ada-lang.c (ada_lookup_partial_symbol)
4716 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
4717 prototype names so that grep ^func works properly.
4718
4719 * ada-lang.c (ada_array_element_type)
4720 (ada_lookup_partial_symbol): Fix typos in parameter list.
4721
4722 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
4723 Fix prototype names so that grep ^func works properly.
4724
b063e7a2
AC
47252002-08-10 Andrew Cagney <cagney@redhat.com>
4726 Elena Zannoni <ezannoni@redhat.com>
4727 Martin M. Hunt <hunt@redhat.com>
4728
4729 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
4730 (build_builtin_type_vec128i): Set the vector bit.
4731 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
4732 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
4733 (build_builtin_type_vec64): New function.
4734 (build_builtin_type_vec64i): New function.
4735 (build_gdbtypes): Initialize builtin_type_vec64 and
4736 builtin_type_vec64i.
4737
a7e3c2ad
AC
47382002-08-09 Andrew Cagney <cagney@redhat.com>
4739
4740 * regcache.c (regcache_dump): Compare the register offset
4741 with REGISTER_BYTE.
4742 * arch-utils.c (generic_register_byte): New function.
4743 * arch-utils.h (generic_register_byte): Declare.
4744 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
4745 * gdbarch.h, gdbarch.c: Regenerate.
4746
af030b9a
AC
47472002-08-09 Andrew Cagney <cagney@redhat.com>
4748
4749 * regcache.c: Include "gdbcmd.h"
4750 (_initialize_regcache): Add commands "maintenance print
4751 registers", "maintenance print raw-registers" and "maintenance
4752 print cooked-registers".
4753 (enum regcache_dump_what): Define.
4754 (dump_endian_bytes): New function.
4755 (regcache_dump): New function.
4756 (regcache_print): New function.
4757 (maintenance_print_registers): New function.
4758 (maintenance_print_raw_registers): New function.
4759 (maintenance_print_cooked_registers): New function.
4760 * Makefile.in (regcache.o): Update dependencies.
4761
cb3d25d1
MS
47622002-08-09 Michael Snyder <msnyder@redhat.com>
4763
4764 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
4765 (mips_push_arguments): Correct some comments. Use paddr_nz
4766 for printing addresses in debug output. Replace static
4767 allocation using MAX_REGISTER_RAW_SIZE with alloca.
4768 (mips_n32n64_push_arguments): New function, cloned from
4769 mips_push_arguments and tuned for the n32/n64 ABI.
4770 (mips_push_register): Buffer needs dynamic allocation.
4771 (mips_print_register): Ditto.
4772 (do_gp_register_row): Ditto.
4773 (mips_store_return_value): Ditto.
4774 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
4775
2163ab9d
DH
47762002-08-09 Don Howard <dhoward@redhat.com>
4777
4778 * memattr.c (mem_info_command): Print special case of upper bound
4779 as max CORE_ADDR + 1.
4780
b78bcb18
MS
47812002-08-08 Michael Snyder <msnyder@redhat.com>
4782
4783 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
4784 returns structs by ref if they're too big to fit in two registers.
4785
ffabd70d
KB
47862002-08-09 Kevin Buettner <kevinb@redhat.com>
4787
4788 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
4789 saved regs value.
4790 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
4791 mips_find_saved_regs().
4792 (mips_pop_frame): Likewise.
4793
fbcdb4a3
KB
47942002-08-09 Kevin Buettner <kevinb@redhat.com>
4795
4796 * blockframe.c (frame_saved_regs_register_unwind): Revise
4797 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
4798 frames are in use.
4799
3c3bea1c
GS
48002002-08-09 Grace Sainsbury <graces@redhat.com>
4801
4802 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
4803 T-packets; the 'a' is not taken as a register number.
4804 (remote_check_watch_resources, remote_stopped_by_watchpoint)
4805 (remote_stopped_data_address): New functions; add to target
4806 vector.
4807 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
4808 prototypes to match other implementations of this
4809 function. replace integer argument with pointer -- the length
4810 field in the Z-packet is the length of what is pointed to or 1 if
4811 pointer is null. Add to target vector.
4812 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
4813 target vector.
4814
4815 From Mark Salter:
4816 * remote.c (remote_wait): Add support to extract optional
4817 watchpoint information from T-packet. Ignore unrecognized
4818 optional info in T-packet.
4819 (remote_async_wait): Ditto.
4820
5d1d95de
CV
48212002-08-09 Corinna Vinschen <vinschen@redhat.com>
4822
4823 * cli/cli-dump.c: Change fopen modes to use binary open modes
4824 as defined in include/fopen-bin.h throughout.
4825
c86b5b38
MS
48262002-08-08 Michael Snyder <msnyder@redhat.com>
4827
4828 * mips-tdep.c: Minor whitespace and indentation clean-ups.
4829
b30590dc
KB
48302002-08-08 Kevin Buettner <kevinb@redhat.com>
4831
4832 * doublest.c (store_floating): Avoid floatformat_from_doublest()
4833 assertion failure by returning early after a warning.
4834
498868ed
KB
48352002-08-08 Kevin Buettner <kevinb@redhat.com>
4836
4837 * mips-tdep.c (mips_find_saved_regs): Make static.
4838 (mips_frame_init_saved_regs): New function.
4839 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
4840 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
4841 (mips_find_saved_regs): Delete declaration.
4842
b2dd6311
GS
48432002-08-08 Grace Sainsbury <graces@redhat.com>
4844
3c3bea1c
GS
4845 * remote.c (remote_wait, remote_async_wait): Change
4846 thread_num from int to ULONGEST.
4847 (unpack_varlen_hex): Change result parameter from
4848 int * to ULONGEST *.
b2dd6311 4849
ea47855f
AC
48502002-08-08 Andrew Cagney <ac131313@redhat.com>
4851
4852 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
4853 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
4854 powerpc*-*-*.
4855 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
4856
69db8bae
AC
48572002-08-08 Andrew Cagney <cagney@redhat.com>
4858
4859 * gcore.c (override_derive_stack_segment): Delete variable.
4860 (preempt_derive_stack_segment): Delete function.
4861 (derive_stack_segment): Delete function.
4862 (default_derive_stack_segment): Renamed to derive_stack_segment.
4863 (override_derive_heap_segment): Delete variable.
4864 (preempt_derive_heap_segment): Delete function.
4865 (derive_heap_segment): Delete function.
4866 (default_derive_heap_segment): Rename to derive_heap_segment.
4867
cb811fe7
MS
48682002-08-06 Michael Snyder <msnyder@redhat.com>
4869
4870 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
4871 * mips-tdep.c (mips_EABI_use_struct_convention,
4872 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
4873 New functions. (mips_use_struct_convention): Delete.
4874 (mips_gdbarch_init): set use_gdbarch_convention.
4875
8b389c40
MS
48762002-08-06 Michael Snyder <msnyder@redhat.com>
4877
4878 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
4879 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
4880 mips_o32_reg_struct_has_addr): New functions.
4881 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
4882
5c27f28a
AC
48832002-08-07 Andrew Cagney <ac131313@redhat.com>
4884
4885 * regcache.c (pseudo_register): Delete function.
4886 (fetch_register): Delete function.
4887 (store_register): Delete function.
4888 (regcache_raw_read, legacy_read_register_gen): Use
4889 target_fetch_registers instead of fetch_register.
4890 (legacy_write_register_gen, regcache_raw_write): Use
4891 target_store_register instead of store_register.
4892 (write_register_bytes): Ditto.
4893
4894 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
4895 (STORE_PSEUDO_REGISTER): Delete.
4896 * gdbarch.h, gdbarch.c: Regenerate.
4897
5b331675
CV
48982002-08-06 Corinna Vinschen <vinschen@redhat.com>
4899
4900 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
4901 write dump file binary.
4902
6acdf5c7
MS
49032002-08-05 Michael Snyder <msnyder@redhat.com>
4904
4905 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
4906 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
4907 (mips_gdbarch_init): Set N32 target to be mips64.
4908
b2f01c35
KB
49092002-08-06 Kevin Buettner <kevinb@redhat.com>
4910
4911 * frame.c (find_saved_register): Break out of loop once saved
4912 register address is found. Don't mention sparc in loop comment
4913 anymore.
4914
63db5580
KB
49152002-08-06 Kevin Buettner <kevinb@redhat.com>
4916
4917 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
4918 mips_default_saved_regsize to 8.
4919
5e34e75e
AC
49202002-08-06 Andrew Cagney <ac131313@redhat.com>
4921
4922 * gcore.c: Do not include <sys/procfs.h>.
4923 * Makefile.in (gcore.o): Update dependencies.
4924
eb4c54a2
AC
49252002-08-06 Andrew Cagney <cagney@redhat.com>
4926
4927 * configure.tgt: Make arc-*-* obsolete.
4928 * NEWS: Mention that arc-*-* has been identifed as obsolete.
4929 * MAINTAINERS: Make arc-elf obsolete.
4930 * arc-tdep.c: Make file obsolete.
4931 * config/arc/arc.mt: Ditto.
4932 * config/arc/tm-arc.h: Ditto.
4933
ced15480
TR
49342002-08-05 Theodore A. Roth <troth@verinet.com>
4935
c1bab85b 4936 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
ced15480 4937
b4743822
AC
49382002-08-05 Andrew Cagney <ac131313@redhat.com>
4939
4940 * mcore-tdep.c (mcore_gdbarch_init): Use
4941 generic_unwind_get_saved_register instead of
4942 generic_get_saved_register.
4943 * v850-tdep.c (v850_gdbarch_init): Ditto.
4944 * frv-tdep.c (frv_gdbarch_init): Ditto.
4945 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4946 * s390-tdep.c (s390_gdbarch_init): Ditto.
4947 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
4948 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
4949 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
4950
3956d554
JB
49512002-08-05 Joel Brobecker <brobecker@gnat.com>
4952
4953 * objfiles.h: Add missing #include "symfile.h"
4954
4955 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
4956
8249c0d6
AC
49572002-08-04 Andrew Cagney <ac131313@redhat.com>
4958
4959 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
4960 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
4961 of FIELD_BITSIZE.
4962
b9d14705
DJ
49632002-08-04 Daniel Jacobowitz <drow@mvista.com>
4964
4965 * NEWS: Cleanup and nitpick.
4966
dd73b9bb
AC
49672002-08-03 Andrew Cagney <ac131313@redhat.com>
4968
4969 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
4970
043a27f8
AC
49712002-08-03 Andrew Cagney <ac131313@redhat.com>
4972
4973 * Makefile.in (gdbtk-bp.o): Update dependencies.
4974 (gdbtk-register.o): Ditto.
4975 (gdbtk-varobj.o): Ditto.
4976
46ce284d
AC
49772002-08-03 Andrew Cagney <cagney@redhat.com>
4978
4979 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
4980 m68hc11_fetch_pseudo_register.
4981 (m68hc11_pseudo_register_write): Replace
4982 m68hc11_store_pseudo_register.
4983 (m68hc11_gdbarch_init): Update.
4984
b66d6d2e
AC
4985Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
4986
4987 * gdbarch.sh: Include "gdb_string.h".
4988 * gdbarch.c: Regenerate.
4989
4990 * regcache.c: Include "gdb_string.h".
4991 * ax-general.c: Ditto.
4992 * varobj.c: Ditto.
4993 * std-regs.c: Ditto.
4994 * fbsd-proc.c: Ditto.
4995 * thread.c: Ditto.
4996
4997 * Makefile.in (regcache.o): Update dependencies.
4998 (thread.o, gdbarch.o): Ditto.
4999 (ax-general.o, gdbarch.o): Ditto.
5000 (varobj.o, std-regs.o): Ditto.
5001 (fbsd-proc.o): Specify dependencies.
5002
29e1842b
AC
50032002-08-02 Andrew Cagney <cagney@redhat.com>
5004
5005 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
5006 regnum.
5007 (regcache_cooked_write): Ditto.
5008
68365089
AC
50092002-08-02 Andrew Cagney <ac131313@redhat.com>
5010
5011 * regcache.c (regcache_cooked_read): New function.
5012 (regcache_cooked_write): New function.
5013 (read_register_gen): Rewrite using regcache_cooked_read.
5014 (write_register_gen): Rewrite using regcache_cooked_write.
5015
5016 * regcache.h (regcache_cooked_read, regcache_cooked_write):
5017 Declare.
5018
d8124050
AC
50192002-08-02 Andrew Cagney <cagney@redhat.com>
5020
5021 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
5022 Replace the architecture methods register_read and register_write.
5023 * gdbarch.h, gdbarch.c: Regenerate.
5024 * regcache.c (init_regcache_descr): Update.
5025 (read_register_gen): Update.
5026 (write_register_gen): Update.
5027 (supply_register): Update comment.
5028
5029 * sh-tdep.c (sh_gdbarch_init): Update.
5030 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
5031 `regcache' and `gdbarch' parameters. Make `buffer' a void
5032 pointer. Update code.
5033 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
5034 `regcache' and `gdbarch' parameters. Make `buffer' a constant
5035 void pointer. Update code.
5036 (sh64_register_write): Delete.
5037 (sh4_register_read): Delete.
5038 (sh64_register_read): Delete.
5039 (sh4_register_write): Delete.
5040 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
5041 void pointer, `to' parameter a void pointer.
5042 (sh_sh64_register_convert_to_raw): Ditto.
5043
a6425924
KB
50442002-08-01 Kevin Buettner <kevinb@redhat.com>
5045
5046 * mips-tdep.c (mips_register_virtual_type): Use architecture
5047 invariant return values.
5048
ff5922b5
AC
50492002-08-01 Andrew Cagney <cagney@redhat.com>
5050
5051 * linux-proc.c: Include "gdb_string.h".
5052 * Makefile.in (linux-proc.o): Update dependency list.
5053
32a6503c
KB
50542002-08-01 Kevin Buettner <kevinb@redhat.com>
5055
5056 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
5057 comment.
5058
ccaa32c7
GS
50592002-08-01 Grace Sainsbury <graces@redhat.com>
5060
5061 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
5062 to_insert_watchpoint, to_remove_watchpoint,
5063 to_stopped_by_watchpoint, to_stopped_data_address,
5064 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
5065 target vecctor. Define their corresponding macros so they call
5066 them.
5067
5068 * target.c: Add default and debug versions of for
5069 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
5070 to_insert_watchpoint, to_remove_watchpoint,
5071 to_stopped_by_watchpoint, to_stopped_data_address,
5072 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
5073
78fde5f8
KB
50742002-08-01 Kevin Buettner <kevinb@redhat.com>
5075
5076 * mips-tdep.c (mips_register_virtual_type): New function.
5077 (mips_gdbarch_init): Register mips_register_virtual_type()
5078 with gdbarch machinery.
5079 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
5080 this file instead of tm-bigmips.h.
5081 (MIPS_REGSIZE): Delete this macro.
5082 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
5083 multiarch version in mips-tdep.c will be found.
5084
db034ac5
AC
50852002-08-01 Andrew Cagney <cagney@redhat.com>
5086
5087 * NEWS: Menion that CHILL has been made obsolete.
5088
5089 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
db034ac5
AC
5090 * stabsread.c (read_range_type): Ditto.
5091 * gdbtypes.h: Ditto.
5092 * language.c (binop_type_check): Ditto.
5093 (binop_result_type): Ditto.
5094 (integral_type): Ditto.
5095 (character_type): Ditto.
5096 (string_type): Ditto.
5097 (boolean_type): Ditto.
5098 (structured_type): Ditto.
5099 (lang_bool_type): Ditto.
5100 (binop_type_check): Ditto.
5101 * language.h (_LANG_chill): Ditto.
5102 * dwarfread.c (set_cu_language): Ditto.
5103 * dwarfread.c (CHILL_PRODUCER): Ditto.
5104 * dwarfread.c (handle_producer): Ditto.
5105 * expression.h (enum exp_opcode): Ditto.
5106 * eval.c: Ditto for comments.
5107 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
5108 * expprint.c (print_subexp): Ditto.
5109 (print_subexp): Ditto.
5110 * valops.c (value_cast): Ditto.
5111 (search_struct_field): Ditto.
5112 * value.h (COERCE_VARYING_ARRAY): Ditto.
5113 * symfile.c (init_filename_language_table): Ditto.
5114 (add_psymbol_with_dem_name_to_list): Ditto.
5115 * valarith.c (value_binop): Ditto.
5116 (value_neg): Ditto.
5117 * valops.c (value_slice): Ditto.
5118 * symtab.h (union language_specific): Ditto.
5119 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
5120 (SYMBOL_DEMANGLED_NAME): Ditto.
5121 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
5122 * defs.h (enum language): Ditto.
5123 * symtab.c (got_symtab): Ditto.
5124 * utils.c (fprintf_symbol_filtered): Ditto.
5125
5126 * ch-typeprint.c: Make file obsolete.
5127 * ch-valprint.c: Make file obsolete.
5128 * ch-lang.h: Make file obsolete.
5129 * ch-exp.c: Make file obsolete.
5130 * ch-lang.c: Make file obsolete.
5131
5132 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
5133 CHILL_LIB.
5134 (TARGET_FLAGS_TO_PASS): Ditto.
5135 (CHILLFLAGS): Obsolete.
5136 (CHILL): Obsolete.
5137 (CHILL_FOR_TARGET): Obsolete.
5138 (CHILL_LIB): Obsolete.
5139 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
5140 ch-valprint.c.
5141 (HFILES_NO_SRCDIR): Remove ch-lang.h.
5142 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
5143 ch-lang.o.
5144 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
5145 targets.
5146
8aaf0b47
JB
51472002-07-31 Joel Brobecker <brobecker@gnat.com>
5148
5149 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
5150 This does not change anything at the moment, but will be helpful
5151 later when full Ada support is integrated.
5152
f3a7b3a5
KB
51532002-07-31 Kevin Buettner <kevinb@redhat.com>
5154
5155 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
5156 help message.
5157
fb850278
KB
51582002-07-31 Kevin Buettner <kevinb@redhat.com>
5159
5160 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
5161 and save it in a local variable. Use variable in later test.
5162
e3bddbfa
KB
51632002-07-31 Kevin Buettner <kevinb@redhat.com>
5164
5165 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
5166 test. (Thanks to Daniel Jacobowitz.)
5167
28d169de
KB
51682002-07-31 Kevin Buettner <kevinb@redhat.com>
5169
5170 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
5171 (mips_abi_strings): Add "n64".
5172 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
5173
7fe7e44e
KB
51742002-07-31 Kevin Buettner <kevinb@redhat.com>
5175
5176 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
5177 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
5178
c6caf090
KB
51792002-07-31 Kevin Buettner <kevinb@redhat.com>
5180
5181 * utils.c (host_pointer_to_address, address_to_host_pointer):
5182 Use gdb_assert() instead of explicit call to internal_error().
5183
c41669e0
KB
51842002-07-30 Kevin Buettner <kevinb@redhat.com>
5185
5186 * Makefile.in (rs6000-nat.o): Update dependencies.
5187
5188 From Nicholas Duffek:
5189 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
5190 (aix-thread.o): New rule.
5191 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
5192 * config/powerpc/aix432.mh: New file.
5193
2fda4977
DJ
51942002-07-30 Daniel Jacobowitz <drow@mvista.com>
5195
5196 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
5197 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
5198 (fetch_core_registers, ppc_linux_supply_gregset)
5199 (ppc_linux_supply_fpregset): New functions.
5200 (ppc_linux_regset_core_fns): New.
5201 (_initialize_ppc_linux_tdep): Call add_core_fns.
5202 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
5203 and ppc_linux_supply_gregset.
5204 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
5205 (supply_fpregset): Call ppc_linux_supply_fpregset.
5206 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
5207 corelow.o.
5208 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
5209
729051e6
DJ
52102002-07-30 Daniel Jacobowitz <drow@mvista.com>
5211
5212 * symtab.c (lookup_symbol): Demangle before lowercasing.
5213
5f8a3188
AC
52142002-07-30 Andrew Cagney <ac131313@redhat.com>
5215
5216 * symtab.h: Replace #include "gdb_obstack.h" with opaque
5217 declaration.
5218 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
5219 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
5220 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
5221 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
5222 "gdb_string.h".
5223 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
5224 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
5225 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
5226 (avr-tdep.o, mon960-rom.o): Ditto.
5227 (aout_stabs_gnu_h): Define.
5228 (symtab_h): Remove $(gdb_obstack_h).
5229
67f07146
JB
52302002-07-30 Jim Blandy <jimb@redhat.com>
5231
5232 Patch from David Carlton <carlton@math.stanford.edu>:
5233 * gdbinit.in: Move the `dir' commands that add GDB's own source
5234 directory to the search path to the end, so that the `gdb' source
5235 directory will be searched first.
5236
04ea0df1
AC
52372002-07-29 Andrew Cagney <ac131313@redhat.com>
5238
5239 * gdb_obstack.h: New file.
5240 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
5241 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
5242 * objfiles.h: Include "gdb_obstack.h".
5243 * Makefile.in (gdb_obstack_h): Define.
5244 (symtab_h): Add $(gdb_obstack_h).
5245 (objfiles_h): Add $(gdb_obstack_h).
5246
5247 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
5248 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
5249 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
5250 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
5251 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
5252 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
5253 * symfile.c, coffread.c, c-typeprint.c: Ditto.
5254 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
5255
5256 * Makefile.in (bcache.o): Update dependencies.
5257 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
5258 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
5259 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
5260 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
5261 (stabsread.o, symfile.o, symmisc.o): Ditto.
5262 (symtab.o, typeprint.o, macroexp.o): Ditto.
5263 (macrotab.o, mdebugread.o): Ditto.
5264 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
5265 (coff_ecoff_h, aout_aout64_h): Define.
5266 (aout_stabs_gnu_h, libaout_h): Define.
5267
d138e37a
AC
52682002-07-29 Andrew Cagney <cagney@redhat.com>
5269
5270 * regcache.c (struct regcache_descr): Rename nr_registers to
5271 nr_cooked_registers. Revise comments describing the structure
5272 member fields.
5273 (init_regcache_descr): Update.
5274 (init_legacy_regcache_descr): Update.
5275 (read_register_gen, write_register_gen): When a cooked register in
5276 the raw register range, directly access the value from the raw
5277 register cache.
5278
460e6ec3
AC
52792002-07-29 Andrew Cagney <ac131313@redhat.com>
5280
5281 * z8k-tdep.c: Do not include "obstack.h".
5282 * h8300-tdep.c, h8500-tdep.c: Ditto.
5283 * m68hc11-tdep.c, sh-tdep.c: Ditto.
5284 * valprint.c, v850-tdep.c: Ditto.
5285 * d10v-tdep.c, mn10300-tdep.c: Ditto.
5286 * mn10200-tdep.c: Ditto.
5287
5288 * Makefile.in (z8k-tdep.o): Update dependencies.
5289 (m68hc11-tdep.o, valprint.o): Ditto.
5290 (v850-tdep.o, d10v-tdep.o): Ditto.
5291 (mn10300-tdep.o, sparc-tdep.o): Ditto.
5292 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
5293 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
5294 (sh_opc_h, gdb_sim_sh_h): Define.
5295 (elf_sh_h, elf_bfd_h): Define.
5296 (opcode_m68hc11_h): Define.
5297 (OPCODES_SRC, OPCODES_DIR): define.
5298 (OPCODES): Use $(OPCODES_DIR).
5299 (gdb_sim_d10v_h): Rename sim_d10v_h.
5300 (gdb_sim_arm_h): Rename sim_arm_h.
5301
790c9cf0
KB
53022002-07-26 Kevin Buettner <kevinb@redhat.com>
5303
5304 * utils.c (host_pointer_to_address, address_to_host_pointer):
5305 Change internal_error() message to indicate function responsible
5306 for the error.
5307
9647fa49
KB
53082002-07-26 Kevin Buettner <kevinb@redhat.com>
5309
5310 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
5311 calls to local_hex_string_custom().
5312
dabbe2c0
KB
53132002-07-26 Kevin Buettner <kevinb@redhat.com>
5314
5315 * irix5-nat.c: Move IRIX shared library support from here...
5316 * solib-irix.c: ...to here. Revised substantially to work with
5317 generic solib framework.
5318
b96d0a4e
KB
5319 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
5320 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
5321 * mips-irix-tdep.c: New file.
5322
313fb2f6
KB
5323 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
5324 (mips-irix-tdep.o, solib-irix.o): New rules.
5325 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
5326 solib-irix.o.
5327 * config/mips/irix6.mt (TDEPFILES): Likewise.
5328 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
5329
ab2eaf26
KB
53302002-07-26 Kevin Buettner <kevinb@redhat.com>
5331
177e4768 5332 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
ab2eaf26
KB
5333 disabled (via ``#if 0'') includes.
5334
7244546a
KB
53352002-07-26 Kevin Buettner <kevinb@redhat.com>
5336
5337 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
5338 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
5339 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
5340 Add support for the fpscr register.
5341 * rs6000-nat.c (regmap, fetch_inferior_registers)
5342 (store_inferior_registers, fetch_core_registers): Likewise.
5343
dd7be90a
KB
53442002-07-26 Kevin Buettner <kevinb@redhat.com>
5345
5346 * rs6000-nat.c (language.h): Include.
5347 (special_regs): Delete this array.
5348 (regmap): New function.
5349 (fetch_register, store_register): Use regmap() to map gdb
5350 register numbers to ptrace register numbers. Also, use
5351 outputs from regmap() to make decisions regarding type of
5352 ptrace() call to make. In particular, don't compare against
5353 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
5354 (fetch_inferior_registers, store_inferior_registers): Where
5355 possible, obtain register numbers from tdep struct. Don't
5356 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
5357 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
5358 (LAST_UISA_SP_REGNUM): Delete.
5359
11bf77db
KB
53602002-07-25 Kevin Buettner <kevinb@redhat.com>
5361
5362 * rs6000-nat.c (ppc-tdep.h): Include.
d959a6ab
KB
5363 (fetch_registers, store_register, fetch_core_registers): Don't
5364 access registers[] directly. Instead, use supply_register() or
11bf77db
KB
5365 regcache_collect() as appropriate.
5366 (find_toc_address): Format hex address with local_hex_string().
5367
06afebeb
AC
53682002-07-25 Andrew Cagney <ac131313@redhat.com>
5369
5370 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
5371 bfd/elf32-frv.c.
5372
8c554d79
TT
53732002-07-24 Tom Tromey <tromey@redhat.com>
5374
5375 * jv-exp.y: Marked all strings with _().
5376 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
5377 internal_error.
5378 (MethodInvocation, CastExpression, parse_number, yyerror,
5379 java_type_from_name, push_expression_name, yylex): Typo fixes.
5380
e4c242d9
DJ
53812002-07-24 Daniel Jacobowitz <drow@mvista.com>
5382
5383 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
5384 (tee_file_flush, tee_file_write, tee_file_fputs)
5385 (tee_file_isatty): New.
5386 * ui-file.h (tee_file_new): Add prototype.
5387
ebf56fd3
AS
53882002-07-24 Aidan Skinner <aidan@velvet.net>
5389
5390 * ada-lang.c: Change k&r style function definitions to prototyped
5391 form.
5392 * ada-typeprint.c: Change k&r style function definitions to prototyped
5393 form.
5394 * ada-valprint.c: Change k&r style function definitions to prototyped
5395 form.
5396
7fb623f7
AC
53972002-07-24 Andrew Cagney <cagney@redhat.com>
5398
5399 * README: Remove reference to remote-bug.
5400 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
5401 remote-bug.c.
5402 (m88k-nat.o): Delete rule.
5403 (m88k-tdep.o): Delete rule.
5404 (remote-bug.o): Delete rule.
5405 * MAINTAINERS: Mark as obsolete.
5406 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
5407 * m88k-tdep.c: Make file obsolete.
5408 * config/m88k/m88k.mh: Ditto.
5409 * config/m88k/delta88v4.mh: Ditto.
5410 * config/m88k/delta88v4.mt: Ditto.
5411 * config/m88k/delta88.mt: Ditto.
5412 * config/m88k/delta88.mh: Ditto.
5413 * remote-bug.c: Ditto.
5414 * config/m88k/tm-delta88.h: Ditto.
5415 * config/m88k/nm-delta88v4.h: Ditto.
5416 * config/m88k/xm-delta88.h: Ditto.
5417 * config/m88k/xm-dgux.h: Ditto.
5418 * config/m88k/tm-m88k.h: Ditto.
5419 * config/m88k/nm-m88k.h: Ditto.
5420 * config/m88k/tm-delta88v4.h: Ditto.
5421 * m88k-nat.c: Ditto.
5422 * cxux-nat.c: Ditto.
5423 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
5424 and m88*-*-* obsolete.
5425 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
5426 m88*-*-* obsolete.
5427
37611a2b
AC
54282002-07-24 Andrew Cagney <cagney@redhat.com>
5429
5430 * findvar.c (extract_unsigned_integer): Make `addr' parameter
5431 constant. Same for local pointer variables.
5432 (extract_signed_integer): Ditto.
5433 * defs.h (extract_unsigned_integer): Update.
5434 (extract_signed_integer): Update.
5435
1aaa5f99
AC
54362002-07-24 Andrew Cagney <cagney@redhat.com>
5437
5438 * regcache.c (regcache_raw_write): Change buf parameter to a
5439 constant void pointer.
5440 (regcache_raw_read): Change buf parameter to a void pointer.
5441 (legacy_write_register_gen): Change myaddr parameter a constant
5442 void pointer.
5443 (supply_register): Change val parameter to a const void pointer.
5444 * regcache.h (regcache_raw_write): Update declaration.
5445 (regcache_raw_read): Update declaration.
5446 (supply_register): Update declaration.
5447
b4f5539f
TT
54482002-07-24 Tom Tromey <tromey@redhat.com>
5449
5450 * defs.h (gdb_readline_wrapper): Declare.
5451 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
5452 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
5453 * top.c (gdb_readline_wrapper): New function.
5454 (command_line_input): Use it.
5455
0818c12a
AC
54562002-07-24 Andrew Cagney <cagney@redhat.com>
5457
5458 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
5459 regcache_read and regcache_write.
5460 (regcache_raw_read_as_address): Replace regcache_read_as_address.
5461 * regcache.c: Update.
5462 * sh-tdep.c (sh64_push_arguments): Update comment.
5463 (sh_pseudo_register_read): Update.
5464 (sh_pseudo_register_write): Update.
5465 (sh4_register_read): Update.
5466 (sh4_register_write): Update.
5467 (sh64_pseudo_register_read): Update.
5468 (sh64_pseudo_register_write): Update.
5469 (sh64_register_read): Update.
5470 (sh64_register_write): Update.
5471 * i386-tdep.c (i386_extract_return_value): Update.
5472 (i386_extract_struct_value_address): Update.
5473 (i386_extract_return_value): Update.
5474 * blockframe.c (generic_read_register_dummy): Update.
5475 (generic_call_dummy_register_unwind): Update
5476 * infrun.c (write_inferior_status_register): Update.
5477
f7321c06
JB
54782002-07-23 Jim Blandy <jimb@redhat.com>
5479
5480 * parser-defs.h (expression_context_pc): Make this extern.
5481 (Thanks to Michael Snyder.)
5482
2037aebb
AC
54832002-07-23 Andrew Cagney <ac131313@redhat.com>
5484
5485 GDB 5.2.1 released from 5.2 branch.
5486 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
5487 * README: Update to mention 5.2.1.
5488
66504d44
MS
54892002-07-23 Mark Salter <msalter@redhat.com>
5490
5491 * remote.c (remote_read_bytes): Fix check for error.
5492
27bae383
KB
54932002-07-22 Kevin Buettner <kevinb@redhat.com>
5494
5495 * aix-thread.c (language.h): Include.
5496 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
5497 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
5498 Print newlines at end of debug messages.
5499 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
5500 (pdc_write_data): Use local_hex_string() instead of %llx formats.
5501
55022002-07-22 Kevin Buettner <kevinb@redhat.com>
5503
5504 * aix-thread.c (ppc-tdep.h): Include.
5505 (special_register_p): New function.
5506 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
5507 (store_regs_user_thread): Use register number information from
5508 gdbarch_tdep struct instead of hardcoded offsets relative to
5509 FIRST_UISA_SP_REGNUM.
5510 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
5511 special_register_p() instead of using FPLAST_REGNUM and
5512 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
5513 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
5514 will be MQ's register number.
5515
55162002-07-22 Michael Snyder <msnyder@redhat.com>
206d3d3c
KB
5517
5518 * aix-thread.c (ops): Rename to aix_thread_ops.
5519 (base_ops): Rename to base_target.
5520 (ops_attach): Rename to aix_thread_attach.
5521 (ops_detach): Rename to aix_thread_detach.
5522 (ops_resume): Rename to aix_thread_detach.
5523 (ops_wait): Rename to aix_thread_wait.
5524 (ops_kill): Rename to aix_thread_kill.
5525 (init_ops): Rename to init_aix_thread_ops.
5526 (ops_fetch_register): Rename to aix_thread_fetch_register.
5527 (ops_store_register): Rename to aix_thread_store_register.
5528 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
5529 (ops_thread_alive): Rename to aix_thread_thread_alive.
5530 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
5531 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
5532 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
5533 (fetch_regs_lib): Rename to fetch_regs_user_thread.
5534 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
5535 (store_regs_lib): Rename to store_regs_user_thread.
5536 (store_regs_kern): Rename to store_regs_kernel_thread.
5537
27bae383 55382002-07-22 Michael Snyder <msnyder@redhat.com>
cbe92db4
KB
5539
5540 * aix-thread.c (ops_prepare_to_store): Eliminate.
5541 (init_ops): Don't initialize ops.prepare_to_store.
5542 (store_regs_kern): Pre-fetch register buffers from child,
5543 because some registers may not be in the cache. Copy
5544 regs from register cache only if they are cached.
5545 (store_regs_lib): Copy regs from register cache only
5546 if they are cached.
5547 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
5548 fill_gprs64): Ditto.
5549
61c5da0b
KB
55502002-07-22 Kevin Buettner <kevinb@redhat.com>
5551
5552 * aix-thread.c (gdb_assert.h): Include.
5553 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
5554 register sizes (from register cache) match size of buffer holding
5555 register data.
5556 (fill_sprs32): Change parameter types to match those in the ptrace()
5557 buffer.
5558 (store_regs_lib): Likewise, but for 32-bit temporary variables.
5559 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
5560
55612002-07-22 Michael Snyder <msnyder@redhat.com>
5562
5563 * aix-thread.c (supply_sprs64): Cosmetic change.
5564 (supply_sprs32): Cosmetic change.
5565 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
5566 (fill_sprs64): Use regcache_collect instead of read_register.
5567 (store_regs_lib): Use regcache_collect instead of
5568 read_register. Use fill_sprs32 instead of fill_sprs64,
5569 if debugging a 32-bit architecture.
5570 (store_regs_kern): Use fill_gprs64 etc. to pull the values
5571 out of the register cache, instead of passing a pointer into
5572 the register cache directly to ptrace. Use regcache_collect
5573 insteaad of read_register.
5574 (ops_prepare_to_store): Use target_read_registers instead
5575 of read_register_bytes.
5576
36479eb1
AS
55772002-07-20 Aidan Skinner <aidan@velvet.net>
5578
5579 * MAINTAINERS: Add self under write after approval.
5580
80ae6ee2
AS
55812002-07-20 Aidan Skinner <aidan@velvet.net>
5582
5583 * ada-tasks.c: Change k&r style function definitions to prototyped
5584 form.
5585
8a8ab2b9
AC
55862002-07-19 Andrew Cagney <ac131313@redhat.com>
5587
5588 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
5589 * x86-64-tdep.c: Include "objfiles.h".
5590 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
5591 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
5592
fb16b900
ML
55932002-07-17 Michal Ludvig <michal@suse.cz>
5594
5595 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
5596 (update_context): Initialise cfa variable.
5597
0fe7bf7b
MS
55982002-07-17 Michael Snyder <msnyder@redhat.com>
5599
5600 * aix-thread.c: Shorten some long lines.
5601 Bring comments into line with code spec.
5602
488f131b
JB
56032002-07-18 Joel Brobecker <brobecker@gnat.com>
5604
5605 * infrun.c: Re-indent using gdb_indent.sh.
5606
46c415d2
JB
56072002-07-18 Joel Brobecker <brobecker@gnat.com>
5608
5609 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
5610 Leave the indentation temporarily untouched, to minimize the diffs.
5611
cdecafbe
EZ
56122002-07-18 Elena Zannoni <ezannoni@redhat.com>
5613
5614 * stabsread.c: Make os9k sections of the code obsolete,
5615 for real this time.
5616 * stabsread.h: Make os9k sections of the code obsolete.
5617
7b6aa020
ML
56182002-07-18 Michal Ludvig <mludvig@suse.cz>
5619
09ec9b38
ML
5620 * linux-low.c (regsets_store_inferior_registers): Add free()
5621 at the end of a loop to prevent memory leak.
5622 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
5623 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
7b6aa020
ML
5624 * config/sparc/tm-sp64linux.h: Make the rest of #endif
5625 line a comment.
4894ac5d 5626 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
7b6aa020 5627
233282cd
JB
56282002-07-17 Jim Blandy <jimb@redhat.com>
5629
5630 * macrocmd.c (info_macro_command): Remove newline from error
5631 message.
5632
7b6aa020 56332002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
2f14585c
JR
5634
5635 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
5636 (sh_gdbarch_init): Use it for sh-dsp.
5637
f7ef9339
KB
56382002-07-16 Kevin Buettner <kevinb@redhat.com>
5639
5640 * dwarf2read.c (read_initial_length): Handle older, non-standard,
5641 64-bit DWARF2 format.
5642
8dd72958
JB
56432002-07-16 Joel Brobecker <brobecker@gnat.com>
5644
5645 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
5646 <sys/proc.h> when not available.
5647
a99a9e1b
AC
56482002-07-16 Andrew Cagney <ac131313@redhat.com>
5649
5650 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
5651 * stabsread.c: Make os9k sections of the code obsolete.
5652 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
5653 * config/i386/i386os9k.mt: Make file obsolete.
5654 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
5655 (COMMON_OBS): Remove os9kread.o
5656 (SFILES): Remove os9kread.c.
5657 (os9kread.o, remote-os9k.o): Make target obsolete.
5658 * remote-os9k.c: Make file obsolete.
5659 * os9kread.c: Make file obsolete.
5660 * Makefile.in
5661
7a3085c1
AC
56622002-07-16 Andrew Cagney <ac131313@redhat.com>
5663
5664 * NEWS: Mention that the FR30 has been made obsolete.
5665 * fr30-tdep.c: Make file obsolete.
5666 * config/fr30/tm-fr30.h: Ditto.
5667 * config/fr30/fr30.mt: Ditto.
5668 * configure.tgt: Make fr30-*-elf obsolete.
5669 * MAINTAINERS: Make fr30-elf obsolete.
5670
28a93f5a
PM
56712002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
5672
5673 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
5674 found is not inside a section.
5675
be006b8b
KB
56762002-07-15 Kevin Buettner <kevinb@redhat.com>
5677
5678 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
5679 strerror().
5680 (pdc_realloc): Use xrealloc() instead of realloc().
5681
14fa3751
KB
56822002-07-15 Kevin Buettner <kevinb@redhat.com>
5683
5684 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
5685 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
5686 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
5687 macros.
5688
42cc437f
KB
56892002-07-15 Kevin Buettner <kevinb@redhat.com>
5690
5691 * aix-thread.c (ptrace_check): Eliminate goto.
5692 (sync_threadlists): Eliminate gotos. Also, fix array overrun
5693 problem.
5694
8e2c28d4
KB
56952002-07-15 Kevin Buettner <kevinb@redhat.com>
5696
5697 * aix-thread.c (gdbcmd.h): Include.
5698 (DEBUG, DBG, DBG2, dbg): Eliminate.
5699 (debug_aix_thread): New static global.
5700 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
5701 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
5702 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
5703 invocations to DBG and DBG2 macros to test against
5704 ``debug_aix_thread'' and call fprintf_unfiltered().
5705 (_initialize_aix_thread): Add new command "set debug aix-thread".
5706
30413464
AC
57072002-07-15 Andrew Cagney <ac131313@redhat.com>
5708
5709 From Gerhard Tonn <TON@de.ibm.com>:
5710 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
5711 instead of supply_register.
5712
7c43edc1
AC
57132002-07-15 Andrew Cagney <ac131313@redhat.com>
5714
5715 * dwarf2cfi.c: Include "gdb_assert.h".
5716 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
5717 non-NULL.
5718 (update_context): Do not use __func__. Add missing ``break''.
5719 (update_context): Do not use __func__.
5720
9364a0ef
EZ
57212002-07-15 Elena Zannoni <ezannoni@redhat.com>
5722
5723 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
5724 and its setting. Set gdbarch instruction printing functions
5725 directly. For non-rs6000 case use new function
5726 gdb_print_insn_powerpc.
5727 (gdb_print_insn_powerpc): New function.
5728
3fbeef0b
AC
57292002-07-13 Andrew Cagney <ac131313@redhat.com>
5730
92eb23c5 5731 * NEWS: Mention that the d30v has been marked obsolete.
3fbeef0b
AC
5732 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
5733 * configure.tgt: Mark d30v-*-* as obsolete.
5734 * d30v-tdep.c: Mark file as obsolete.
5735 * config/d30v/d30v.mt: Ditto.
5736 * config/d30v/tm-d30v.h: Ditto.
5737
aacb1f0a
AS
57382002-07-13 Aidan Skinner <aidan@velvet.net>
5739
5740 * ada-tasks.c (add_task_entry): replace calls to
5741 malloc() with xmalloc
5742 * ada-tasks.c (init_task_list): replace calls to free with xfree()
5743
5744 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
5745 ada_finish_decode_line_1, all_sals_for_line
5746 ada_breakpoint_rewrite): replace calls to free() with xfree()
5747
c11d79f2
KB
57482002-07-12 Kevin Buettner <kevinb@redhat.com>
5749
5750 From Nicholas Duffek (with minor changes by Martin Hunt,
5751 Louis Hamilton, and Kevin Buettner):
5752 * aix-thread.c: New file.
5753
8e19ed76
PS
57542002-07-12 Petr Sorfa <petrs@caldera.com>
5755
5756 * dwarf2read.c (dwarf2_invalid_attrib_class): New
5757 complaint for invalid attribute class or form.
5758 (read_func_scope): DW_AT_frame_base
5759 better handling of DW_AT_block*.
5760 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
5761 better handling of DW_AT_block*.
5762 (read_common_block): DW_AT_location
5763 better handling of DW_AT_block*.
5764 (read_partial_die): DW_AT_location better handling
5765 of DW_AT_block*.
5766 (new_symbol): DW_AT_external better handling of
5767 DW_AT_block*. Proper initialization of variable
5768 "addr".
5769 (attr_form_is_block): New function that returns true
5770 if the attribute's form is of DW_FORM_block*.
5771
295401f7
DJ
57722002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
5773
5774 * valops.c (find_method_list): Remove comment about
5775 removed STATIC_MEMFUNCP argument.
5776 (value_find_oload_method_list): Likewise.
5777
e42dc924
KB
57782002-07-12 Kevin Buettner <kevinb@redhat.com>
5779
5780 From Nicholas Duffek:
5781 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
5782 target_new_objfile_hook.
5783
6904b546
KB
57842002-07-12 Kevin Buettner <kevinb@redhat.com>
5785
5786 From Nicholas Duffek:
5787 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
5788 csect.
5789
53fe9346
AC
57902002-07-12 Andrew Cagney <cagney@redhat.com>
5791
5792 * MAINTAINERS: Mention --enable-sim-build-warnings.
5793 (m68hc11-elf): Disable sim build warnings.
5794 (m32r-elf): Mark as broken obsolete candidate.
5795 (x86_64-linux-gnu): Mark as buildable with -Werror.
5796 (arm-elf): Change -w to ``,'' which enables warnings but not
5797 -Werror.
5798
af5f3db6
AC
57992002-07-12 Andrew Cagney <ac131313@redhat.com>
5800
5801 * bcache.h: Update copyright.
5802 (struct bstring, struct bcache): Move definition to "bcache.c".
5803 Replaced by opaque declaration.
5804 (bcache_xfree): Replace free_bcache.
5805 (bcache_xmalloc, bcache_memory_used): Declare.
5806
5807 * bcache.c: Update copyright.
5808 (struct bstring, struct bcache): Moved to here from "bcache.h".
5809 Update comments.
5810 (bcache_xmalloc, bcache_memory_used): New functions.
5811 (bcache_xfree): Replace function free_bcache.
5812
5813 * Makefile.in (objfiles.o): Add $(bcache_h).
5814 (objfiles_h): Remove $(bcache_h).
5815 (symfile.o): Add $(bcache_h).
5816
5817 * symmisc.c: Update copyright.
5818 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
5819 (print_objfile_statistics): Use bcache_memory_used.
5820
5821 * symfile.c: Include "bcache.h".
5822 (reread_symbols): Use bcache_xfree.
5823 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
5824 (add_psymbol_to_list): Pass psymbol_cache by value.
5825 (add_psymbol_with_dem_name_to_list): Ditto.
5826
5827 * objfiles.h: Update copyright.
5828 (struct bcache): Declare opaque. Do not include "bcache.h".
5829 (struct objfile): Change psymbol_cache and macro_cache to ``struct
5830 bcache'' pointers.
5831 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
5832
5833 * objfiles.c: Include "bcache.h". Update copyright.
5834 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
5835 macro_cache.
5836 (free_objfile): Use bcache_xfree.
5837
444199e7
GS
58382002-07-11 Grace Sainsbury <graces@redhat.com>
5839
5840 * monitor.c (monitor_fetch_register): Make name a constant.
5841 (monitor_store_register): Same.
5842
261397f8
DJ
58432002-07-11 Daniel Jacobowitz <drow@mvista.com>
5844
5845 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
5846 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
5847 (finish_block) For non-function blocks, hash the symbol table. For
5848 function blocks, mark the symbol table as unhashed.
5849 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
5850 (msymbol_hash_iw): Likewise.
5851 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
5852 value.
5853 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
5854 (lookup_minimal_symbol): Likewise for both.
5855 * symtab.h (struct block): Add `hashtable' flag. Comment the
5856 hashtable.
5857 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
5858 (ALL_BLOCK_SYMBOLS): Update.
5859 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
5860 (struct symbol): Add `hash_next' pointer.
5861 * symtab.c (lookup_block_symbol): Search using the hash table when
5862 possible.
5863 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
5864 (search_symbols, find_addr_symbol): Likewise.
5865
5866 * dstread.c (process_dst_block): Clear hashtable bit for new block.
5867 (read_dst_symtab): Likewise.
5868 * jv-lang.c (get_java_class_symtab): Likewise.
5869 * mdebugread.c: Include "gdb_assert.h".
5870 (shrink_block): Assert that the block being modified is not hashed.
5871 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
5872 * symmisc.c (free_symtab_block): Walk the hash table when freeing
5873 symbols.
5874 (dump_symtab): Recognize hashed blocks.
5875 * printcmd.c (print_frame_args): Assert that function blocks do not
5876 have hashed symbol tables.
5877 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
5878 (fill_in_ada_prototype, debug_print_block): Likewise.
5879 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
5880
6f0eaa01
CV
58812002-07-11 Corinna Vinschen <vinschen@redhat.com>
5882
5883 * stack.c (print_frame): Use result of frame_address_in_block()
5884 instead of fi->pc when evaluating symbols.
5885 (backtrace_command_1): Ditto.
5886
a208b0cb
AC
58872002-07-11 Andrew Cagney <cagney@redhat.com>
5888
5889 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
5890 Make static.
5891
5892 * arm-tdep.c (arm_register_name): Make return type constant.
5893
a6b6b089
AC
58942002-07-10 Andrew Cagney <ac131313@redhat.com>
5895
5ae5f592
AC
5896 * win32-nat.c (has_detach_ability): Convert to strict ISO C
5897 prototype.
5898 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
5899 * s390-tdep.c (s390_fp_regnum): Ditto.
5900 (s390_read_fp): Ditto.
5901 (s390_pop_frame): Ditto.
5902 (_initialize_s390_tdep): Ditto.
5903 * remote.c (get_remote_state): Ditto.
5904 * procfs.c (mappingflags): Ditto.
5905 * memattr.c (_initialize_mem): Ditto.
5906 * mcore-tdep.c (mcore_pop_frame): Ditto.
5907 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
5908 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
5909 * language.c (set_case_str): Ditto.
5910 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
5911 * frv-tdep.c (new_variant): Ditto.
5912 (frv_stopped_data_address): Ditto.
5913 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
5914 (context_alloc): Ditto.
5915 (frame_state_alloc): Ditto.
5916 (unwind_tmp_obstack_init): Ditto.
5917 (unwind_tmp_obstack_free): Ditto.
5918 (cfi_read_fp): Ditto.
5919 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
5920 (cris_pop_frame): Ditto.
5921 * c-lang.c (scanning_macro_expansion): Ditto.
5922 (finished_macro_expansion): Ditto.
5923 (c_preprocess_and_parse): Ditto.
5924 * gdbarch.sh: Ditto.
5925 * gdbarch.h, gdbarch.c: Regenerate.
5926 * config/mn10200/tm-mn10200.h: Adjust indentation.
5927 * target.c: Adjust indentation.
5928 * symtab.h: Adjust indentation.
5929 * stabsread.h: Adjust indentation.
5930 * remote-es.c: Adjust indentation.
5931 * os9kread.c: Adjust indentation.
5932
59332002-07-10 Andrew Cagney <ac131313@redhat.com>
5934
a6b6b089
AC
5935 * wince.c (_initialize_wince): Rename _initialize_inftarg.
5936 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
5937
a1789893
GS
59382002-07-10 Grace Sainsbury <graces@redhat.com>
5939
5940 * NEWS: Mention m68k, mcore multi-arching.
5941 * MAINTAINERS: Change status of m68k, mcore to reflect
5942 multi-arching.
5943
02f0d45d
DJ
59442002-07-10 Daniel Jacobowitz <drow@mvista.com>
5945
5946 * valops.c (find_overload_match): Free oload_syms.
5947
f15f768e
JB
59482002-07-09 Joel Brobecker <brobecker@gnat.com>
5949
5950 Define HAVE_SYS_PROC_H if sys/proc.h exists
5951 * configure.in: Add check for sys/proc.h
5952 * config.in: Regenerate.
5953 * configure: Regenerate.
5954
902a7139
GS
59552002-07-09 Grace Sainsbury <graces@redhat.com>
5956
5957 * config/m68k/tm-m68k.h: Remove macros wrapped in
5958 #if !GDB_MULTI_ARCH.
5959
a534e424
AC
59602002-07-08 Andrew Cagney <ac131313@redhat.com>
5961
5962 * config.in, configure: Regenerate.
5963
9b94f7bf
MK
59642002-07-08 Mark Kettenis <kettenis@gnu.org>
5965
5966 * dwarf2cfi.c: Include "gcore.h".
5967 (execute_stack_op): Fix implementation of the
5968 DW_OP_deref and DW_OP_deref_size operators by letting do their
5969 lookup in the target.
5970
1d34db41
MK
59712002-07-07 Mark Kettenis <kettenis@gnu.org>
5972
5973 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
5974 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
5975 tdep->sc_sp_offset.
5976
79d5b63a
DJ
59772002-07-05 Daniel Jacobowitz <drow@mvista.com>
5978
5979 Fix PR gdb/595, gdb/602
5980 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
5981 Don't call value_cast, just read the vtable pointer; update comments
5982 to match.
5983
3bb912e8
GS
59842002-07-05 Grace Sainsbury <graces@redhat.com>
5985
5986 * config/mcore/tm-mcore.h: Remove file.
5987 * config/mcore/mcore.mt: Remove definition of TM_FILE
5988 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
5989
ca39387d
MK
59902002-07-05 Mark Kettenis <kettenis@gnu.org>
5991
5992 * i386bsd-tdep.c: Include "gdb_string.h".
5993
efdc1108
GS
59942002-07-04 Grace Sainsbury <graces@redhat.com>
5995
5996 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
5997 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
5998 mcore-tdep.
5999 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
6000 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
6001 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
6002 (RETVAL_REGNUM): Move macros from tm-mcore.h
6003 (mcore_reg_struct_has_addr): New function.
6004 (mcore_gdbarch_init): Added initializations for the macros removed
6005 from tm-mcore.h.
6006
bb21884d
MK
60072002-07-04 Mark Kettenis <kettenis@gnu.org>
6008
6009 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
6010 traditonal string branding within the ELF header.
6011
228c6d41
DJ
60122002-07-04 Daniel Jacobowitz <drow@mvista.com>
6013
6014 * symtab.c (remove_params): New function.
6015 (make_symbol_overload_list): Use it instead of cplus_demangle.
6016 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
6017
2404952e
MK
60182002-07-04 Mark Kettenis <kettenis@gnu.org>
6019
e5e4acad
MK
6020 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
6021
baadce09
MK
6022 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
6023 New variables.
6024 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
6025 and tdep->sigtramp_end.
6026 * i386obsd-nat.c: New file.
6027 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
6028
2404952e
MK
6029 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
6030 Don't call get_current_frame().
6031
9b4f1ba7
PM
60322002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
6033
6034 * i386-nat.c (child_post_startup_inferior): New function
6035 calling i386_cleanup_dregs if
6036 I386_USE_GENERIC_WATCHPOINTS is defined.
6037 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
6038 conditional to acknowledge that i386-nat.c has its
6039 own child_post_startup_inferior function.
6040
c0d1d883
MK
60412002-07-04 Mark Kettenis <kettenis@gnu.org>
6042
00f8375e
MK
6043 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
6044 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
6045 instead of MAX_REGISTER_RAW_SIZE.
6046 (i386_extract_return_value, i386_extract_struct_value_address):
6047 Convert to use regcache.
6048 (i386_gdbarch_init): Set max_register_raw_size and
6049 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
6050 Set extract_return_value and extract_struct_value_address instead
6051 of their deprecated variants.
6052
c0d1d883
MK
6053 Convert i386 target to generic dummy frames.
6054 * i386-tdep.c: Include "symfile.h".
6055 (i386_frameless_signal_p): Consider a function to be frameless if
6056 the pc points at the first instruction of the function.
6057 (i386_frame_chain): Handle (generic) call dummies.
6058 (i386_frame_saved_pc): Likewise.
6059 (i386_frame_init_saved_regs): Remove code dealing with call
6060 dummies on the stack.
6061 (i386_push_dummy_frame): Removed.
6062 (i386_call_dummy_words): Removed.
6063 (i386_fix_call_dummy): Removed.
6064 (i386_push_return_address): New function.
6065 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
6066 parameter, and don't call get_current_frame.
6067 (i386_pop_frame): New function.
6068 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
6069 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
6070 entry_point_address, set call_dummy_breakpoint_offset to 0, set
6071 call_dummy_length to 0, set call_dummy_words to NULL, set
6072 sizeof_call_dummy_words to 0, set fix_call_dummy to
6073 generic_fix_call_dummy, set pc_in_call_dummy to
6074 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
6075 generic_push_dummy_frame, set push_return_address to
6076 i386_push_return_address and set frame_chain_valid to
6077 generic_file_frame_chain_valid.
6078
049ee0e4
AC
60792002-07-03 Andrew Cagney <ac131313@redhat.com>
6080
6081 * gdbarch.sh (struct regcache): Add opaque declaration.
6082 (EXTRACT_RETURN_VALUE): New architecture method.
6083 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
6084 * gdbarch.h, gdbarch.c: Regenerate.
6085 * arch-utils.c (legacy_extract_return_value): New function.
6086 * arch-utils.h (legacy_extract_return_value): Declare.
6087 * values.c (value_being_returned): Re-enable code handling
6088 EXTRACT_STRUCT_VALUE_ADDRESS. Move
6089 deprecated_grub_regcache_for_registers call to block handling
6090 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
6091 (EXTRACT_RETURN_VALUE): Do not define.
6092
4e0d9804
GS
60932002-07-03 Grace Sainsbury <graces@redhat.com>
6094
6095 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
6096 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
6097 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
6098 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
6099 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
6100 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
6101 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
6102 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
6103 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
6104 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
6105 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
6106 argument so the function fits the prototype in the architecture
6107 vector.
6108 (mcore_pop_frame): Remove argument so the function fits the
6109 prototype. Use get_current_frame instead of the argument.
6110 (mcore_push_arguments): Change type of struct_return so the
6111 function can be used in the architecture vector.
6112 (mcore_store_struct_return): Add.
6113 (mcore_frame_init_saved_regs): Add.
6114 (mcore_gdbarch_init): Add function calls to replace the macros
6115 removed from tm-mcore.h
6116
36160dc4
AC
61172002-07-03 Andrew Cagney <ac131313@redhat.com>
6118
6119 * infcmd.c (print_return_value): Remove compatibility code calling
6120 deprecated_grub_regcache_for_registers.
6121
6122 * values.c: Include "regcache.h".
6123 (value_being_returned): Update. Use
6124 deprecated_grub_regcache_for_registers to extract the register
6125 buffer address.
6126 * value.h (value_being_returned): Change ``retbuf'' parameter to a
6127 ``struct regcache''.
6128 * Makefile.in (values.o): Add dependency on $(regcache_h).
6129
6130 * inferior.h (run_stack_dummy): Change type of second parameter to
6131 a ``struct regcache''.
6132 * valops.c (hand_function_call): Change type of retbuf to ``struct
6133 regcache''. Allocate using regcache_xmalloc, clean using
6134 make_cleanup_regcache_xfree.
6135 * infcmd.c (run_stack_dummy): Update. Use
6136 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
6137
6138 * regcache.c (do_regcache_xfree): New function.
6139 (make_cleanup_regcache_xfree): New function.
6140 * regcache.h (make_cleanup_regcache_xfree): Declare.
6141
e64d9b3d
MH
61422002-07-03 Martin M. Hunt <hunt@redhat.com>
6143
4dd79c29
MH
6144 * event-top.c (command_line_handler): Don't read past
6145 beginning of buffer.
e64d9b3d 6146
4dd79c29
MH
61472002-07-03 Martin M. Hunt <hunt@redhat.com>
6148
e64d9b3d
MH
6149 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
6150 struct frame_id.
6151 (varobj_create): Store frame_id for root.
6152 (varobj_gen_name): Use xasprintf.
6153 (varobj_update): Save and restore frame using get_frame_id() and
6154 frame_find_by_id().
6155 (create_child): Use xasprintf.
6156 (new_root_variable): Initialize frame_id.
6157 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
6158 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
6159 to prevent memory leak.
6160
26e6c56a
AC
61612002-07-03 Andrew Cagney <ac131313@redhat.com>
6162
6163 * valops.c (hand_function_call): Move declaration of retbuf to
6164 start of function, allocate using malloc, add a cleanup but before
6165 the inf_status cleanup, cleanup the buffer. Rename local variable
6166 old_chain to inf_status_cleanup.
6167
f436dd25
MH
61682002-07-03 Martin M. Hunt <hunt@redhat.com>
6169
6170 * top.c (execute_command): Use cmd_func() and cmd_func_p().
6171
6172 * cli/cli-decode.c (cmd_func_p): New function.
6173 (cmd_func): New function.
6174
6175 * command.h: Add cmd_func() and cmd_func_p().
6176
4cfe2084
GS
61772002-07-03 Grace Sainsbury <graces@redhat.com>
6178
6179 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
6180 (REGISTER_SIZE): Remove.
6181 (MAX_REGISTER_RAW_SIZE): Remove.
6182 (REGISTER_VIRTUAL_TYPE): Remove.
6183 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
6184 (REGISTER_NAME): Remove.
6185 (USE_GENERIC_DUMMY_FRAMES): Remove.
6186 (CALL_DUMMY): Remove.
6187 (CALL_DUMMY_START_OFFSET): Remove.
6188 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
6189 (CALL_DUMMY_LOCATION): Remove.
6190 (FIX_CALL_DUMMY): Remove.
6191 (CALL_DUMMY_ADDRESS): Remove.
6192 (SIZEOF_CALL_DUMMY_WORDS): Remove.
6193 (SAVE_DUMMY_FRAME_TOS): Remove.
6194 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
6195 (mcore_register_virtual_type): New function.
6196 (mcore_register_byte): New function.
6197 (mcore_register_size): New function.
6198 (mcore_register_name): New function.
6199 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
6200 macros removed from tm-mcore.h.
6201 (mcore_dump_tdep): Add.
6202 (_initialize_mcore_tdep): Add gdbarch_register call.
6203
4fd667e9
MK
62042002-07-03 Mark Kettenis <kettenis@gnu.org>
6205
6206 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
6207 frameless_look_for_prologue, such that we actually call this
6208 function.
6209
42f99ac2
JB
62102002-07-02 Joel Brobecker <brobecker@gnat.com>
6211
6212 * frame.h (frame_address_in_block): New function.
6213
6214 * blockframe.c (frame_address_in_block): New function extracted
6215 from get_frame_block().
6216 (get_frame_block): Use frame_address_in_block().
6217 (block_innermost_frame): Use frame_address_in_block() to match
6218 the frame pc address against the block boundaries rather than
6219 the frame pc directly. This prevents a failure when a frame pc
6220 is actually a return-address pointing immediately after the end
6221 of the given block.
6222
103a1597 62232002-07-02 Grace Sainsbury <graces@redhat.com>
83b4a0fe
GS
6224
6225 * MAINTAINERS: Add self under write after approval.
6226
62272002-07-02 Grace Sainsbury <graces@redhat.com>
6228
103a1597
GS
6229 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
6230 used in architecture vector. The default is
6231 m68k_local_breakpoint_from_pc.
6232 (m68k_local_breakpoint_from_pc): Add.
6233 (enum): Add register numbers from tm-m68k.h.
6234 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
6235 vector.
6236 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
6237 GDB_MULTI_ARCH_PARTIAL.
6238 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
6239 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
6240 m68k-tdep.c.
6241 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
6242 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
6243 to enum in m68k-tdep.c
6244
7a5a0534
JB
62452002-07-02 Joel Brobecker <brobecker@gnat.com>
6246
6247 * solib-osf.c (open_map): Compute the list of shared libraries
6248 loaded by the inferior, rather than the list of libraries loaded
6249 by GDB itself. Otherwise, GDB ends up reading the symbols from
6250 the wrong shared libraries...
6251
6f558d74
MK
62522002-07-02 Mark Kettenis <kettenis@gnu.org>
6253
b7d15bf7
MK
6254 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
6255 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
6256 macros.
6257 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
6258 Remove functions.
6259 (FRAMELESS_SIGNAL): Remove function.
6260 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
6261 i386_linux_saved_pc_after_call): Removed.
6262 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
6263 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
6264 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
6265
6bff26de
MK
6266 * i386-tdep.c (i386_frameless_signal_p): New function.
6267 (i386_frame_chain): Deal with frameless signals.
6268 (i386_sigtramp_saved_sp): New function.
6269 (i386_frame_saved_pc): Deal with frameless signals.
6270 (i386_saved_pc_after_call): Make sure the correct value is
6271 returned just after entry into a sigtramp.
6272 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
6273 i386fbsd4_sc_sp_offset): New variables.
6274 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
6275 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
6276 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
6277 similiar to what we already did for sc_pc_offset.
6278 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
6279 tdep->sc_sp_offset.
6280
6f558d74
MK
6281 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
6282
145564b7
ML
62832002-07-02 Michal Ludvig <mludvig@suse.cz>
6284
6285 * config/i386/tm-x86-64linux.h: New.
6286 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
6287 definitions.
6288 * config/i386/nm-x86-64.h: Rename to ...
6289 * config/i386/nm-x86-64linux.h: ... this one.
6290 * config/i386/x86-64linux.mh: Reflect the above change.
6291
3a1e71e3
MK
62922002-07-01 Mark Kettenis <kettenis@gnu.org>
6293
21d0e8a4
MK
6294 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
6295 with sigcontext_addr. Add sc_sp_offset.
6296 (i386bsd_sigtramp_saved_pc): Remove prototype.
6297 (i386bsd_sicontext_addr): Add prototype.
6298 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
6299 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
6300 (i386_svr4_sigtramp_saved_pc): Removed.
6301 (i386_svr4_sigcontext_addr): New function.
6302 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
6303 Initialize tdep->sigcontext_addr instead. Initialize
6304 tdep->sc_pc_offset and tdep->sc_sp_offset.
6305 (i386_gdbarch_init): Likewise.
6306 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
6307 any more.
6308 (i386bsd_sigtramp_saved_pc): Remove function.
6309 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
6310 Initialize tdep->sigcontext_addr instead. Initialize
6311 tdep->sc_pc_offset.
6312 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
6313 of tdep->sigtramp_saved_pc.
6314 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
6315 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
6316 instead.
6317
3a1e71e3
MK
6318 * i386-tdep.c (i386_frameless_function_invocation,
6319 i386_frame_num_args, i386_frame_init_saved_regs,
6320 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
6321 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
6322 i386_extract_return_value, i386_store_return_value,
6323 i386_extract_struct_value_address, i386_register_virtual_type,
6324 i386_register_convertible, i386_register_convert_to_virtual,
6325 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
6326 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
6327 static.
6328
52e9098c
MK
63292002-07-01 Mark Kettenis <kettenis@gnu.org>
6330
77b13a25
MK
6331 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
6332
52e9098c
MK
6333 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
6334 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
6335 this macro. Include "value.h".
6336
1b372fff
AS
63372002-06-30 Aidan Skinner <aidan@velvet.net>
6338
6339 * ada-exp.tab.c: remove as it's a generated file
6340 * ada-lex.c: remove as it's a generated file
6341
9c5045b5
MK
63422002-06-30 Mark Kettenis <kettenis@gnu.org>
6343
4a93c5bb
MK
6344 * config/i386/tm-i386.h (struct frame_info, struct
6345 frame_saved_regs, struct value, struct type): Remove forward
6346 declarations.
6347
322d4fe0
MK
6348 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
6349 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
6350 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
6351 (FILL_FPXREGSET): Define.
6352
fdd8263d
MK
6353 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
6354
482e577b
MK
6355 * configure.tgt (i[3456]86-*-openbsd*): Fold into
6356 i[3456]86-*-netbsd* case.
6357 * config/i386/tm-obsd.h: Removed.
6358 * config/i386/obsd.mt: Removed.
6359 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
6360 core-aout.o.
6361 (MH_CFLAGS): Add -DYYDEBUG=0.
6362
6916549a
MK
6363 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
6364 i386nbsd_sc_pc_offset on OpenBSD too.
6365
9c5045b5
MK
6366 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
6367 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
6368 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
6369 define.
6370 * i386bsd-tdep.c: Include "arch-utils.h".
6371 (i386bsd_aout_in_solib_call_trampoline): New function.
6372 (i386bsd_init_abi): Set in_solib_call_trampoline to
6373 i386bsd_aout_in_solib_call_trampoline.
6374 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
6375 in_solib_call_trampoline to generic_in_solib_call_trampoline.
6376
aa84d1bb
AC
63772002-06-28 Andrew Cagney <ac131313@redhat.com>
6378
6379 * macrotab.h: Do not include "obstack.h" or "bcache.h".
6380 (struct obstack, struct bcache): Add opaque declarations.
6381 * Makefile.in (macrotab_h): Update
6382
b4d83933
AC
63832002-06-28 Andrew Cagney <ac131313@redhat.com>
6384
6385 * blockframe.c (generic_find_dummy_frame): Change return type to
6386 ``struct regcache''.
6387 (struct dummy_frame): Replace field ``registers'' with regcache, a
6388 struct regcache object.
6389 (generic_find_dummy_frame): Update.
6390 (generic_push_dummy_frame): Update. Use regcache_xfree,
6391 regcache_xmalloc and regcache_cpy.
6392 (generic_pop_dummy_frame): Update. Use regcache_cpy and
6393 regcache_xfree.
6394 (deprecated_generic_find_dummy_frame): Update.
6395 (generic_read_register_dummy): Update. Use
6396 regcache_read_as_address.
6397 (generic_call_dummy_register_unwind): Update. Use regcache_read.
6398 (generic_get_saved_register): Update. Use regcache_read.
6399
08c0b5bc
AC
64002002-06-28 Andrew Cagney <ac131313@redhat.com>
6401
6402 * Makefile.in (objfiles_h): Add $(bcache_h).
6403 * objfiles.h: Include "bcache.h".
6404
6405 * Makefile.in (symtab_h): Remove $(bcache_h).
6406 * symtab.h: Do not include "bcache.h".
6407
1f89801a
AC
64082002-06-28 Andrew Cagney <ac131313@redhat.com>
6409
6410 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
6411 generic_func_frame_chain_valid.
6412
b9644b58
DB
64132002-06-28 David O'Brien <obrien@FreeBSD.org>
6414
6415 * config/i386/nm-fbsd.h: Include <sys/param.h>.
6416 * config/i386/tm-fbsd.h: Likewise.
6417
dd486634
AC
64182002-06-28 Andrew Cagney <ac131313@redhat.com>
6419
6420 * rs6000-tdep.c (rs6000_gdbarch_init): Use
6421 generic_unwind_get_saved_register.
6422
0b434a00
AC
64232002-06-27 Andrew Cagney <ac131313@redhat.com>
6424
6425 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
6426 * regcache.c (supply_register): Add missing argument to
6427 register_buffer call.
6428
f30e5a77
AC
64292002-06-27 Andrew Cagney <ac131313@redhat.com>
6430
6431 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
6432 Solaris /bin/grep does not not like it. From Peter Schauer.
6433
9f064c95
TT
64342002-06-26 Tom Tromey <tromey@redhat.com>
6435
6436 * command.h (add_setshow_cmd): Declare.
6437 (add_setshow_cmd_full): Declare.
6438 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
6439 returns void. Use add_setshow_cmd_full.
6440 (add_setshow_cmd_full): New function.
6441 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
6442 (add_setshow_boolean_cmd): Likewise.
6443
099c7589
JT
64442002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6445
6446 * config/vax/tm-vax.h: Protect from multiple inclusion.
6447 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
6448 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
6449 * config/vax/tm-vaxbsd.h: ...here. New file.
6450 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
6451
1d049c5e
JT
64522002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6453
6454 * config/vax/tm-vax.h (BREAKPOINT): Remove.
6455 (BELIEVE_PCC_PROMOTION): Remove.
6456 (AP_REGNUM): Move to...
6457 * config/vax/nm-vax.h: ...here.
6458 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
6459 (vax_breakpoint_from_pc): New function.
6460 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
6461 and gdbarch_believe_pcc_promotion.
6462
4791e091
JT
64632002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6464
6465 * Makefile.in (vax_tdep_h): Define.
6466 (vax-tdep.o): Use $(vax_tdep_h).
6467 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
6468 (vax_dump_tdep): New function.
6469 (_initialize_vax_tdep): Register vax_dump_tdep.
6470 * vax-tdep.h: Include osabi.h.
6471 (struct gdbarch_tdep): New.
6472
da130f98
AC
64732002-06-26 Andrew Cagney <cagney@redhat.com>
6474
6475 * frame.h (deprecated_generic_find_dummy_frame): Rename
6476 generic_find_dummy_frame.
6477 * blockframe.c (generic_find_dummy_frame): Make static.
6478 (deprecated_generic_find_dummy_frame): New function.
6479 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
6480 generic_find_dummy_frame with deprecated_find_dummy_frame.
6481 (sh64_nofp_frame_init_saved_regs): Ditto.
6482 (sh_fp_frame_init_saved_regs): Ditto.
6483 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
6484 (s390_frame_chain): Ditto.
6485 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
6486
6300c360
GS
64872002-06-26 Grace Sainsbury <graces@redhat.com>
6488
6489 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
6490 gdbarch vector are at the top.
6491 (NUM_REGS): Remove.
6492 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
6493 (FRAME_ARGS_ADDRESS): Remove.
6494 (FRAME_LOCALS_ADDRESS): Remove.
6495 (FRAME_NUM_ARGS): Remove.
6496 (FRAME_ARGS_SKIP): Remove.
6497 * m68k-tdep.c (enum): Add eumeration of special register numbers.
6498 (m68k_gdbarch_init): Add gdbarch initializations for macros
6499 undefined in tm-m68k.h
6500
1c617db8
GS
65012002-06-26 Grace Sainsbury <graces@redhat.com>
6502
6503 * monitor.h: Add the function regname to monitor_ops
6504 structure. This way NUM_REGS does not have to be a constant.
6505 * monitor.c (monitor_fetch_register): Added support for regname
6506 function. The function is called if the array regnames is NULL.
6507 (monitor_store_register): Same.
da130f98
AC
6508 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
6509 regnames array.
1c617db8
GS
6510 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
6511 cpu32bug_cmds.regname to point to new function.
6512 * abug-rom.c (abug_regname): Same as above.
6513 (init_abug_cmds): Same.
6514 * dbug-rom.c (dbug_regname): Same as above.
6515 (init_dbug_cmds): Same.
6516 * remote-est.c (est_regname): Same.
6517 (init_est_cmds): Same.
6518 * rom68k-rom.c (rom68k_regname): Same.
6519 (init_rom68k_cmds): Same.
6520
ea9365bb
TT
65212002-06-25 Tom Tromey <tromey@redhat.com>
6522
6523 * breakpoint.c (delete_command): Don't repeat `delete' commands.
6524
72cec141
AC
65252002-06-25 Andrew Cagney <cagney@redhat.com>
6526
6527 * infrun.c (stop_registers): Change variable's type to ``struct
6528 regcache'''.
6529 (xmalloc_inferior_status): Delete function.
6530 (free_inferior_status): Delete function.
6531 (normal_stop): Use regcache_cpy.
6532 (struct inferior_status): Change type of fields ``stop_registers''
6533 and ``registers'' to ``struct regcache''.
6534 (write_inferior_status_register): Use regcache_write.
6535 (save_inferior_status): Instead of calling
6536 xmalloc_inferior_status, allocate the inf_status buffer directly.
6537 Use regcache_dup_no_passthrough and regcache_dup to save the
6538 buffers.
6539 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
6540 Replace the stop_registers regcache instead of overriding it. Use
6541 regcache_xfree. Instead of calling free_inferior_status, xfree
6542 the buffer directly.
6543 (discard_inferior_status): Use regcache_xfree. Instead of calling
6544 free_inferior_status, xfree the buffer directly.
6545 (build_infrun): Use regcache_xmalloc.
6546 (_initialize_infrun): Delete redundant call to build_infrun.
6547
6548 * Makefile.in (infcmd.o): Add $(regcache_h).
6549
6550 * infcmd.c: Include "regcache.h".
6551 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
6552 obtain the address of `stop_registers' register buffer.
6553 (print_return_value): Ditto.
6554
6555 * inferior.h (struct regcache): Add opaque declaration.
6556 (stop_registers): Change variable's declared type to ``struct
6557 regcache''.
6558
defc6f8c
TT
65592002-06-24 Tom Tromey <tromey@redhat.com>
6560
c0e624e7
TT
6561 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
6562 * target.c (initialize_targets): Fixed typo in
6563 trust-readonly-sections `show' documentation.
6564
defc6f8c
TT
6565 * main.c: Marked all strings with _().
6566
2b236d82
DH
65672002-06-24 Don Howard <dhoward@redhat.com>
6568
6569 * memattr.c (create_mem_region): Treat hi == 0 as a special case
6570 that means max CORE_ADDR+1.
6571 (lookup_mem_region): Ditto.
6572 (mem_info_command): Ditto.
6573
942dc0e9
GS
65742002-06-24 Grace Sainsbury <graces@redhat.com>
6575
6576 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
6577 (REGISTER_BYTES_OK): Remove.
6578 (REGISTER_BYTES): Remove.
6579 (STORE_STRUCT_RETURN): Remove.
6580 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
6581 (STORE_RETURN_VALUE): Remove.
6582 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
6583 (FRAME_CHAIN): Remove.
6584 (FRAMELESS_FUNCTION_INVOCATION): Remove.
6585 (FRAME_SAVED_PC): Remove.
6586 * m68k-tdep.c (m68k_register_bytes_ok):Add.
6587 (m68k_store_struct_return): Add.
6588 (m68k_deprecated_extract_return_value): Add.
6589 (m68k_deprecated_extract_struct_value_address): Add.
6590 (m68k_store_return_value): Add.
6591 (m68k_frame_chain): Add.
6592 (m68k_frameless_function_invocation): Add.
6593 (m68k_frame_saved_pc): Add.
6594 (m68k_gdbarch_init): added set_gdbarch calls for new
6595 functions and deleted macros.
6596
03c30d4d
TT
65972002-06-23 Tom Tromey <tromey@redhat.com>
6598
6599 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
6600 (ALLDEPFILES): Likewise.
6601 (udiheaders): Removed.
6602 (udip2soc.o): Likewise.
6603 (udi2go32.o): Likewise.
6604 (udr.o): Likewise.
6605 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
6606
37e71372
AC
66072002-06-22 Andrew Cagney <ac131313@redhat.com>
6608
06a6ac57
AC
6609 * infrun.c (_initialize_infrun): Delete unnecessary call to
6610 build_infrun.
6611
37e71372
AC
6612 * regcache.h: Update comments describing the regcache_cpy family
6613 of functions.
6614 (regcache_save, regcache_restore): Delete declaration.
6615 (regcache_save_no_passthrough): Delete declaration.
6616 (regcache_restore_no_passthrough): Delete declaration.
6617 * regcache.c (regcache_save): Delete function.
6618 (regcache_save_no_passthrough): Delete function.
6619 (regcache_restore): Delete function.
6620 (regcache_restore_no_passthrough): Delete function.
6621
78f6d055
AC
66222002-06-21 Andrew Cagney <ac131313@redhat.com>
6623
6624 * config/m68k/tm-m68k.h: Fix typo.
6625 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
6626 (m68k_frame_init_saved_regs): Declare.
6627
78b119cb
JB
66282002-06-21 Jim Blandy <jimb@redhat.com>
6629
6630 Remove some vestiges of Harris 88k support.
6631 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
6632 register numbering quirk.
6633 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
6634 odd symbols occurring in Harris 88k ELF targets.
6635
0fbb3da7
TT
66362002-06-21 Tom Tromey <tromey@redhat.com>
6637
6638 * gdb_locale.h: New file.
6639 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
6640 (defs_h): Added gdb_locale.h.
6641 * configure, config.in: Rebuilt.
6642 * configure.in (PACKAGE): Define.
6643 * defs.h: Include gdb_locale.h.
6644 * main.c (captured_main): Call setlocale, bindtextdomain,
6645 textdomain.
6646
456f8b9d
DB
66472002-06-21 Dave Brolley <brolley@redhat.com>
6648
6649 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
6650 * config/frv/frv.mt: New file.
6651 * config/frv/tm-frv.h: New file.
6652 * configure.tgt: Support frv-*-*.
6653 * Makefile.in (frv-tdep.o): New target.
6654 * frv-tdep.c: New file.
6655 * NEWS: Mention frv.
6656
cdd463f9
DB
66572002-06-21 Dave Brolley <brolley@redhat.com>
6658
6659 * MAINTAINERS: Add self to "Write After Approval" list.
6660
5d3ed2e3
GS
66612002-06-21 Grace Sainsbury <graces@redhat.com>
6662
6663 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
6664 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
6665 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
6666 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
6667 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
6668
6669 * m68k-tdep.c: Include arch-utils.h
6670 (m68k_register_raw_size): Add.
6671 (m68k_register_virtual_size): Add.
6672 (m68k_register_virtual_type): Add.
6673 (m68k_register_name): Add.
6674 (m68k_stack_align): Add.
6675 (m68k_register_byte): Add.
6676 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
6677 tm-m68k.h.
6678
7f8e7424
GS
66792002-06-21 Grace Sainsbury <graces@redhat.com>
6680
a2c6a6d5 6681 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7f8e7424
GS
6682 m68k_find_saved_regs.
6683 (m68k_pop_frame): Removed saved_regs structure, and replaced
5d3ed2e3 6684 references to it with frame->saved_regs.
7f8e7424
GS
6685 (m68k_gdbarch_init): Added function calls to initialize the
6686 gdbarch structure.
a2c6a6d5
GS
6687 (m68k_fix_call_dummy): Add.
6688 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
6689 (CALL_DUMMY): Remove.
6690 (CALL_DUMMY_LENGTH): Remove.
6691 (CALL_DUMMY_START_OFFSET): Remove.
6692 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
6693 (FIX_CALL_DUMMY): Remove.
6694 (PUSH_DUMMY_FRAME): Remove.
6695 (POP_FRAME): Remove.
7f8e7424 6696
f461f5cf
PM
66972002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
6698
6699 * parse.c (parse_fprintf): New function used to avoid calls to
6700 fprintf in bison parser generated debug code.
6701 * parser-defs.h: Declaration of new parse_fprintf function.
6702 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
6703 Set YYDEBUG to 1 by default.
6704 Set YYFPRINTF as parse_fprintf.
6705
7f0c12ed
ML
67062002-06-21 Michal Ludvig <mludvig@suse.cz>
6707
6708 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
6709 encoding anymore.
6710 (pointer_encoding, enum ptr_encoding): New.
6711 (execute_cfa_program): Take care about pointer encoding.
6712 (dwarf2_build_frame_info): Only call parse_frame_info for
6713 .debug_frame and .eh_frame.
6714 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
6715 fixed augmentation handling, added relative addressing,
6716 ignore duplicate FDEs. Added comments.
19d833a2 6717 * dwarf2cfi.c: Reindented.
7f0c12ed 6718
87c4a039
EZ
67192002-06-20 Elena Zannoni <ezannoni@redhat.com>
6720
6721 * event-top.c (command_handler): Don't use space_at_cmd_start
6722 unless there is sbrk() on the host. Assign time and space data
6723 to union fields of the appropriate length.
6724
1cf877ad
ML
67252002-06-20 Michal Ludvig <mludvig@suse.cz>
6726
6727 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
6728 x86_64_register_name. Return type changed to 'const char *'.
6729 (x86_64_register_name2nr): Rename to x86_64_register_number.
6730 (x86_64_gdbarch_init): Update to reflect the change.
6731 * x86-64-tdep.h: Ditto.
6732 * x86-64-linux-nat.c (x86_64_fxsave_offset)
6733 (supply_fpregset): Ditto.
6734
3fadccb3
AC
67352002-06-19 Andrew Cagney <cagney@redhat.com>
6736
6737 * regcache.h: Update copyright.
6738 (struct regcache, struct gdbarch): Add opaque declarations.
6739 (current_regcache): Declare global variable.
6740 (regcache_read, regcache_write): Add gdbarch parameter.
6741 (regcache_save, regcache_save_no_passthrough)
6742 (regcache_restore, regcache_restore_no_passthrough)
6743 (regcache_dup, regcache_dup_no_passthrough)
6744 (regcache_cpy, regcache_cpy_no_passthrough)
6745 (deprecated_grub_regcache_for_registers)
6746 (deprecated_grub_regcache_for_register_valid)
6747 (regcache_valid_p): Add function declarations.
6748
6749 * regcache.c: Update copyright.
6750 (regcache_descr_handle): New global variable.
6751 (struct regcache_descr): Define.
6752 (init_legacy_regcache_descr, init_regcache_descr): New functions.
6753 (regcache_descr, xfree_regcache_descr): New functions.
6754 (struct regcache): Define.
6755 (regcache_xmalloc, regcache_xfree): New functions.
6756 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
6757 (regcache_dup, regcache_dup_no_passthrough): New functions.
6758 (regcache_valid_p, regcache_read_as_address): New functions.
6759 (deprecated_grub_regcache_for_registers): New function.
6760 (deprecated_grub_regcache_for_register_valid): New function.
6761 (current_regcache): New global variable.
6762 (register_buffer): Add regcache parameter. Update calls.
6763 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
6764 (read_register_gen, write_register_gen): Update register_buffer
6765 call. Test for legacy_p instead of gdbarch_register_read_p or
6766 gdbarch_register_write_p.
6767 (regcache_collect): Update register_buffer call.
6768 (build_regcache): Rewrite. Use deprecated grub functions.
6769 (regcache_save, regcache_save_no_passthrough): New functions.
6770 (regcache_restore, regcache_restore_no_passthrough): New
6771 functions.
6772 (_initialize_regcache): Create the regcache_data_handle. Swap
6773 current_regcache global variable.
6774
6775 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
6776 parameter to regcache_read and regcache_write calls.
6777 (sh4_register_read): Ditto.
6778 (sh64_pseudo_register_read): Ditto.
6779 (sh64_register_read): Ditto.
6780 (sh_pseudo_register_write): Ditto.
6781 (sh4_register_write): Ditto.
6782 (sh64_pseudo_register_write): Ditto.
6783 (sh64_register_write): Ditto.
6784
6785 * defs.h (XCALLOC): Define.
6786
152d9db6
GS
67872002-06-19 Grace Sainsbury <graces@redhat.com>
6788
6789 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
6790 * m68k-tdep.c (m68k_gdbarch_init): Added.
6791 (m68k_dump_tdep): Added.
6792
170911c7
DJ
67932002-06-19 Daniel Jacobowitz <drow@mvista.com>
6794
6795 * ada-lang.c (fill_in_ada_prototype): Update comment.
6796
2e4ebe70
DJ
67972002-06-19 Daniel Jacobowitz <drow@mvista.com>
6798
6799 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
6800 MIPS_ABI_LAST.
6801 (mips_abi_string, mips_abi_strings): New.
6802 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
6803 (mips_gdbarch_init): Set tdep->found_abi. Don't set
6804 tdep->mips_abi_string. Honor mips_abi_string. Default to
6805 O32 if no ABI is found.
6806 (mips_dump_tdep): Use mips_abi_strings.
6807 (mips_abi_update): New function.
6808 (_initialize_mips_tdep): Initialize mips_abi_string. Add
6809 ``set mips abi'' and ``show mips abi''. Check the size of
6810 mips_abi_strings.
6811
16775908
AC
68122002-06-19 Andrew Cagney <cagney@redhat.com>
6813
6814 * i386-linux-tdep.c (i386_linux_register_name): Make return type
6815 constant.
6816
5051bfa4 68172002-06-18 Joel Brobecker <brobecker@gnat.com>
16775908 6818
5051bfa4
JB
6819 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
6820 current frame using only the first stack size adjustment. All
6821 subsequent size adjustments are not considered to be part of
6822 the "static" part of the current frame.
6823 Compute the address of the saved registers relative to the
6824 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
6825 in use in this frame.
6826
56468235
DH
68272002-06-18 Don Howard <dhoward@redhat.com>
6828
6829 * valops.c (value_ind): Use value_at_lazy() when dereferencing
6830 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
6831 suggesting this solution.
6832
0b624158
AC
68332002-06-18 Andrew Cagney <ac131313@redhat.com>
6834
6835 * config/romp/xm-rtbsd.h: Delete file.
6836 * config/romp/rtbsd.mh: Delete file.
6837
221ea385
KS
68382002-06-18 Keith Seitz <keiths@redhat.com>
6839
6840 * breakpoint.c (condition_command): Post breakpoint_modify
6841 when a condition is added to an existing breakpoint.
6842 (commands_command): Likewise for commands.
6843 (set_ignore_count): Likewise for ignore counts.
6844 If no tty, do not simply return, still need to send event
6845 notification.
6846 (ignore_command): Only print a newline if the command came
6847 from a tty.
6848 Don't call breakpoints_changed, since this is now properly
6849 handled by set_ignore_count.
6850
5402eed1
AC
68512002-06-18 Andrew Cagney <cagney@redhat.com>
6852
6853 * MAINTAINERS: Note that cris-elf target can be compiled with
6854 -Werror.
6855 * cris-tdep.c (cris_register_name): Make return type constant.
6856 (cris_breakpoint_from_pc): Ditto.
6857
cc22880b
ML
68582002-06-18 Michal Ludvig <mludvig@suse.cz>
6859
6860 * frame.h (struct frame_info): Change type of context to
6861 'struct context'.
6862
fa88f677
AC
68632002-06-17 Andrew Cagney <cagney@redhat.com>
6864
6865 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
6866 pointer.
6867 * gdbarch.h, gdbarch.c: Regenerate.
6868 * config/mips/tm-mips.h (mips_register_name): Update.
6869 * i386-tdep.h (i386_register_name): Update.
6870 * mips-tdep.c (mips_register_name): Update
6871 * alpha-tdep.c (alpha_register_name): Update.
6872 * arch-utils.c (legacy_register_name): Update.
6873 * arch-utils.h (legacy_register_name): Update.
6874 * avr-tdep.c (avr_register_name): Update.
6875 * ia64-tdep.c (ia64_register_name): Update.
6876 * i386-tdep.c (i386_register_name): Update.
6877 * sparc-tdep.c (sparc32_register_name): Update.
6878 (sparc64_register_name): Update.
6879 (sparclite_register_name): Update.
6880 (sparclet_register_name): Update.
6881 * sh-tdep.c (sh_generic_register_name): Update.
6882 (sh_sh_register_name): Update.
6883 (sh_sh3_register_name): Update.
6884 (sh_sh3e_register_name): Update.
6885 (sh_sh_dsp_register_name): Update.
6886 (sh_sh3_dsp_register_name): Update.
6887 (sh_sh4_register_name): Update.
6888 (sh_sh64_register_name): Update.
6889 * s390-tdep.c (s390_register_name): Update.
6890 * rs6000-tdep.c (rs6000_register_name): Update.
6891 * ns32k-tdep.c (ns32k_register_name_32082): Update.
6892 (ns32k_register_name_32382): Update.
6893 * d10v-tdep.c (d10v_ts2_register_name): Update.
6894 (d10v_ts3_register_name): Update.
6895 * xstormy16-tdep.c (xstormy16_register_name): Update.
6896 * vax-tdep.c (vax_register_name): Update.
6897 * v850-tdep.c (v850_register_name): Update.
6898 * m68hc11-tdep.c (m68hc11_register_name): Update.
6899 * mn10300-tdep.c (mn10300_generic_register_name): Update.
6900 (am33_register_name): Update.
6901
ea1e7ef6
GS
69022002-06-17 Grace Sainsbury <graces@redhat.com>
6903
6904 * m68k-tdep.c: Reindented.
6905
9b02dd1b
AC
69062002-06-17 Andrew Cagney <ac131313@redhat.com>
6907
6908 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
6909 list of predefined types.
6910
8758dec1
MK
69112002-06-16 Mark Kettenis <kettenis@gnu.org>
6912
b6197528
MK
6913 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
6914 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
6915 REGISTER_CONVERT_TO_RAW): Remove defines.
6916 (i386_register_virtual_type, i386_register_convertible,
6917 i386_register_convert_to_virtual, i386_register_convert_to_raw):
6918 Remove prototypes.
6919 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6920 macros mentioned above.
6921
82b47e62
MK
6922 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
6923 (i386lynx_saved_pc_after_call): Remove prototype.
6924 * i386ly-tdep.c: Include "i386-tdep.h".
6925 (i386lynx_saved_pc_after_call): Make static. Use
6926 read_memory_nobpt instead of read_memory. Use
6927 read_memory_unsigned_integer instead of read_memory_integer.
6928 (i386lynx_init_abi): New function.
6929 (i386lynx_coff_osabi_sniffer): New function.
6930 (_initialize_i386bsd_tdep): New function.
6931
8758dec1
MK
6932 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
6933 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
6934 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
6935 (i386_fix_call_dummy): Remove prototype.
6936 * i386-tdep.c (i386_call_dummy_words): New variable.
6937 (i386_gdbarch_init): Adjust for removal of the
6938 macros mentioned above.
6939
e9e68a56
AC
69402002-06-15 Andrew Cagney <ac131313@redhat.com>
6941
6942 * command.h (add_setshow_auto_boolean_cmd): Replace
6943 add_set_auto_boolean_cmd.
6944 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
6945 add_set_auto_boolean_cmd.
6946 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
6947 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
6948 mask-address'' command.
6949 (show_mask_address): Add cmd parameter.
6950 * remote.c (add_packet_config_cmd): Update. Change type of
6951 set_func and show_func to cmd_sfunc_ftype.
6952 (_initialize_remote): Update `set remote Z-packet'
6953 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
6954 (show_remote_protocol_e_packet_cmd): Ditto.
6955 (show_remote_protocol_E_packet_cmd): Ditto.
6956 (show_remote_protocol_P_packet_cmd): Ditto.
6957 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
6958 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
6959 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
6960 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
6961 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
6962 (show_remote_protocol_Z_packet_cmd): Ditto.
6963 (show_remote_protocol_binary_download_cmd): Ditto.
6964 (show_remote_cmd): Pass NULL to all of above.
6965
fc08ec52
MK
69662002-06-15 Mark Kettenis <kettenis@gnu.org>
6967
6968 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
6969 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
6970 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
6971 POP_FRAME): Remove defines.
6972 (i386_push_arguments, i386_store_struct_return,
6973 i386_extract_return_value, i386_store_return_value,
6974 i386_extract_struct_value_address, i386_push_dummy_frame,
6975 i386_pop_frame): Renove prototypes.
6976 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6977 macros mentioned above.
6978
e707bbc2
AC
69792002-06-15 Andrew Cagney <ac131313@redhat.com>
6980
6981 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
6982 add_set_boolean_cmd.
6983 (add_setshow_cmd): New function.
6984 * command.h (add_setshow_boolean_cmd): Replace
6985 add_set_boolean_cmd.
6986 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
6987 and ``set rdiromatzero''.
6988 * maint.c (_initialize_maint_cmds): Update commented out code.
6989 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
6990 * target.c (initialize_targets): Update `set
6991 trust-readonly-sections'.
6992 * remote.c (_initialize_remote): Update `set remotebreak'.
6993
42fdc8df
MK
69942002-06-15 Mark Kettenis <kettenis@gnu.org>
6995
93924b6b
MK
6996 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
6997 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
6998 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
6999 fit into multi-arch framework.
7000 (i386_breakpoint_from_pc): New function.
7001 (i386_gdbarch_init): Adjust for removal of the macros mentioned
7002 above.
7003
42fdc8df
MK
7004 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
7005 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
7006 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
7007 (i386_frameless_function_invocation, i386_frame_num_args,
7008 i386_frame_init_saved_regs): Remove prototypes.
7009 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7010 macros mentioned above.
7011
9773a94b
AC
70122002-06-15 Andrew Cagney <ac131313@redhat.com>
7013
7014 * cli/cli-decode.c (set_cmd_cfunc): Update.
7015 (set_cmd_sfunc): Update.
7016 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
7017 (set_cmd_sfunc, set_cmd_cfunc): Update.
7018 * cli/cli-decode.h: Update.
7019
6e157172
MK
70202002-06-15 Mark Kettenis <kettenis@gnu.org>
7021
7022 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
7023 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
7024
7f19b9a2
AC
70252002-06-15 Andrew Cagney <ac131313@redhat.com>
7026
7027 * defs.h (auto_boolean): Declare enum.
7028 * command.h (cmd_auto_boolean): Delete enum.
7029 * mips-tdep.c (mask_address_var): Update.
7030 (mips_mask_address_p): Update.
7031 (show_mask_address): Update.
7032 * remote.c (struct packet_config): Update.
7033 (update_packet_config): Update.
7034 (show_packet_config_cmd): Update.
7035 (packet_ok): Update.
7036 (add_packet_config_cmd): Update.
7037 (_initialize_remote):
7038 * command.h: Update.
7039 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
7040 (do_setshow_command): Update.
7041 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
7042 * cli/cli-decode.h: Update.
7043
1cf88de5
MK
70442002-06-15 Mark Kettenis <kettenis@gnu.org>
7045
22ba8cf2
MK
7046 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
7047 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
7048 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
7049 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
7050 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
7051 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
7052
762c5349
MK
7053 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
7054 list of DJGPP COFF targets.
7055
091198bb
MK
7056 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
7057 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
7058 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
7059 (FP0_REGNUM): Remove define.
7060 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
7061 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
7062 (i386_register_virtual_size): Remove protoype.
7063 * i386-tdep.c (i386_register_virtual_size): Removed.
7064 (i386_extract_return_value, i386_store_return_value): Use
7065 FP0_REGNUM instead of NUM_FREGS to determine whether the
7066 floating-point registers are available.
7067 (i386_gdbarch_init): Tweak FIXME about FPU registers.
7068 Adjust for removal of macros mentioned above.
7069
70702002-06-15 Mark Kettenis <kettenis@gnu.org>
7071
fcc9bf01
MK
7072 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
7073 comments.
7074 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
7075 Remove prototypes.
7076 (supply_gregset, fill_gregset): Remove use of register keyword and
7077 remove declaration for regmap. Use I386_NUM_GREGS instead of
7078 NUM_REGS and NUM_FREGS.
7079 (FPREGSET_FSAVE_OFFSET): Remove.
7080 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
7081 NUM_FREGS to determine whether the floating-point registers are
7082 available.
7083
65e78234
MK
7084 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
7085 gnu_store_registers): Replace usage of NUM_GREGS with
7086 I386_NUM_GREGS.
7087
98df6387
MK
7088 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
7089 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
7090 usage of NUM_GREGS with I386_NUM_GREGS.
7091
099a9414
MK
7092 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
7093
57976e88
MK
7094 * i386bsd-nat.c: Include "i386-tdep.h".
7095 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
7096 I386_NUM_GREGS.
7097
b335f4a6
MK
7098 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
7099 and associated comment. They no longer make any sense, since we
7100 don't use this file anymore on Linux.
7101
1cf88de5
MK
7102 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
7103 * i386-tdep.c (i386_register_offset, i386_register_size): Use
7104 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
7105 elements in these arrays.
7106 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
7107 MAX_NUM_REGS.
7108
daa66587
MK
71092002-06-15 Mark Kettenis <kettenis@gnu.org>
7110
7111 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
7112 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
7113
26e9b323
AC
71142002-06-14 Andrew Cagney <cagney@redhat.com>
7115
7116 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
7117 EXTRACT_RETURN_VALUE.
7118 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
7119 EXTRACT_STRUCT_VALUE_ADDRESS.
7120 * gdbarch.h, gdbarch.c: Regenerate.
7121
7122 * values.c (value_being_returned): Handle
7123 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
7124 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
7125
7126 * arm-linux-tdep.c (arm_linux_init_abi): Update.
7127 * arm-tdep.c (arm_gdbarch_init): Update.
7128 * avr-tdep.c (avr_gdbarch_init): Update.
7129 * cris-tdep.c (cris_gdbarch_init): Update.
7130 * d10v-tdep.c (d10v_gdbarch_init): Update.
7131 * ia64-tdep.c (ia64_gdbarch_init): Update.
7132 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7133 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7134 * s390-tdep.c (s390_gdbarch_init): Update.
7135 * sh-tdep.c (sh_gdbarch_init): Update.
7136 * s390-tdep.c (s390_gdbarch_init): Update.
7137 * sparc-tdep.c (sparc_gdbarch_init): Update.
7138 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7139 * v850-tdep.c (v850_gdbarch_init): Update.
7140 * vax-tdep.c (vax_gdbarch_init): Update.
7141 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
7142 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7143
7144 * config/arc/tm-arc.h: Update.
7145 * config/d30v/tm-d30v.h: Update.
7146 * config/fr30/tm-fr30.h: Update.
7147 * config/h8300/tm-h8300.h: Update.
7148 * config/h8500/tm-h8500.h: Update.
7149 * config/i386/tm-i386.h: Update.
7150 * config/i386/tm-ptx.h: Update.
7151 * config/i386/tm-symmetry.h: Update.
7152 * config/i960/tm-i960.h: Update.
7153 * config/m32r/tm-m32r.h: Update.
7154 * config/m68k/tm-delta68.h: Update.
7155 * config/m68k/tm-linux.h: Update.
7156 * config/m68k/tm-m68k.h: Update.
7157 * config/m88k/tm-m88k.h: Update.
7158 * config/mcore/tm-mcore.h: Update.
7159 * config/mips/tm-mips.h: Update.
7160 * config/mn10200/tm-mn10200.h: Update.
7161 * config/pa/tm-hppa.h: Update.
7162 * config/pa/tm-hppa64.h: Update.
7163 * config/sparc/tm-sp64.h: Update.
7164 * config/sparc/tm-sparc.h: Update.
7165 * config/sparc/tm-sparclet.h: Update.
7166 * config/z8k/tm-z8k.h: Update.
7167
5179e78f
AC
71682002-06-14 Andrew Cagney <cagney@redhat.com>
7169
7170 * Makefile.in (i386_linux_tdep_h): Define.
7171 (i386_tdep_h, i387_tdep_h): Define.
7172 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
7173 $(i386_tdep_h) and $(i387_tdep_h).
7174 * i386-linux-nat.c: Include "i386-linux-tdep.h".
7175
8201327c
MK
71762002-06-14 Mark Kettenis <kettenis@gnu.org>
7177
edf393ac
MK
7178 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
7179 Already covered by the default.
7180
896fb97d
MK
7181 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
7182 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
7183 (i386_gdbarch_init): Initialize long_double_format and long_double
7184 bit.
7185
8201327c
MK
7186 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
7187 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
7188 Move these to ...
7189 * config/i386/i386sol2.mh: ... here.
7190 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
7191 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
7192 (SIGCONTEXT_PC_OFFSET): Remove define.
7193 (IN_SIGTRAMP): Remove define.
7194 * i386-sol2-tdep.c: New file.
7195
7196 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
7197 * config/i386/tm-i386nw.h: Removed.
7198
7199 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
7200 USE_STRUCT_CONVENTION): Remove defines.
7201 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7202 (get_longjmp_target): Remove prototype.
7203 (IN_SIGTRAMP): Remove define.
7204 (i386bsd_in_sigtramp): Remove prototype.
7205 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
7206 function. Update comment accordingly
7207 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
7208 (FRAME_SAVED_PC): Remove define.
7209 (i386bsd_frame_saved_pc): Remove prototype.
7210 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
7211 GET_LONGJMP_TARGET): Remove defines.
7212 (get_longjmp_target): Remove prototype.
7213 (IN_SIGTRAMP): Remove define.
7214 (i386bsd_in_sigtramp): Remove prototype.
7215 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
7216 function. Update comment accordingly
7217 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
7218 (FRAME_SAVED_PC): Remove define.
7219 (i386bsd_frame_saved_pc): Remove prototype.
7220 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
7221 Remove prototype.
7222 (USE_STRUCT_CONVENTION): Remove prototype.
7223 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
7224 declaration.
7225 (_initialize_i386bsd_nat): Revise logic to determine some
7226 constants at compile time when compiling a native GDB. Warn if
7227 things don't match up with what we expect.
7228 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
7229 Remove variables.
7230 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
7231 to use date stored in `struct gdbarch_tdep'.
7232 (i386bsd_sigcontext_offset): Remove varaible.
7233 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
7234 stored in `struct gdbarch_tdep'.
7235 (i386bsd_frame_saved_pc): Make static.
7236 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
7237 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
7238 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
7239 i386fbsd4_sc_pc_offset): New variables.
7240 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
7241 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
7242 functions.
7243 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
7244 functions.
7245 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
7246 Modify the value of i386fbsd_sigtramp_start and
7247 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
7248 i386fbsd_sigtramp_end.
7249 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
7250 function.
7251
7252 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
7253 define to i386-linux-tdep.h.
7254 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
7255 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
7256 defines.
7257 (i386_linux_register_name, i386_linux_register_byte,
7258 i386_linux_register_raw_size): Remove prototypes.
7259 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
7260 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
7261 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
7262 TARGET_WRITE_PC): Remove defines.
7263 (i386_linux_in_sigtramp, i386_linux_frame_chain,
7264 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
7265 i386_linux_write_pc): Remove prototypes.
7266 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7267 (get_longjmp_target): Remove prototype.
7268 * i386-linux-tdep.h: New file.
7269 * i386-linux-nat.c: Include "i386-linux-tdep.h".
7270 * i386-linux-tdep.c: Include "i386-tdep.h" and
7271 "i386-linux-tdep.h".
7272 (i386_linux_register_name, i386_linux_register_byte,
7273 i386_linux_register_raw_size, i386_linux_in_sigtramp,
7274 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
7275 Make static.
7276 (i386_linux_init_abi): New function.
7277 (_initialize_i386_linux_tdep): New function.
7278
7279 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
7280 (i386_saved_pc_after_call): Remove prototype.
7281 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
7282 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
7283 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
7284 (i386_register_name, i386_stab_reg_to_regnum,
7285 i386_dwarf_reg_to_regnum): Remove prototypes.
7286 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
7287 SIZEOF_SSE_REGS): Remove defines.
7288 (REGISTER_BYTES): Remove define.
7289 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
7290 (i386_register_byte, i386_register_raw_size): Remove prototypes.
7291 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
7292 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
7293 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
7294 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
7295 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
7296 (get_longjmp_target): Remove prototype.
7297 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
7298 (sigtramp_saved_pc): Remove define.
7299 (i386v4_sigtramp_saved_pc): Remove prototype.
7300 * config/i386/tm-go32.h (FRAME_CHAIN,
7301 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
7302 (i386go32_frame_saved_pc): Remove prototype.
7303 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7304 (get_longjmp_target): Remove prototype.
7305 * i386-tdep.h: Include "osabi.h".
7306 (enum i386_abi): Removed.
7307 (enum struct_return): New enum.
7308 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
7309 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
7310 sc_pc_offset members.
7311 (i386_gdbarch_register_os_abi): Remove prototype.
7312 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
7313 I386_SSE_NUM_REGS): New defines.
7314 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
7315 I386_SSE_SIZEOF_REGS): New defines.
7316 (i386_register_name, i386_register_byte, i386_register_raw_size):
7317 New prototypes.
7318 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
7319 (i386bsd_sigtramp_saved_pc): New prototype.
7320 * i386-tdep.c: Don't include "elf-bfd.h".
7321 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
7322 i386_frame_chain, i386_saved_pc_after_call): Make static.
7323 (i386_frame_saved_pc): Rewrite to call architecture dependent
7324 function to deal with signal handlers. Make static.
7325 (i386go32_frame_saved_pc): Removed.
7326 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
7327 Removed.
7328 (i386_get_longjmp_target): New function.
7329 (default_struct_convention, pcc_struct_convention,
7330 reg_struct_convention, valid_conventions, struct_convention): New
7331 variables.
7332 (i386_use_struct_convention): New function.
7333 (i386v4_sigtramp_saved_pc): Renamed to
7334 i386_svr4_sigtramp_saved_pc. Made static. Moved.
7335 (i386_pc_in_sigtramp): New function.
7336 (i386_abi_names): Removed.
7337 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
7338 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
7339 Removed.
7340 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
7341 i386_gdbarch_register_os_abi): Removed.
7342 (struct i386_abi_handler): Removed.
7343 (i386_abi_handler_list): Removed.
7344 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
7345 functions.
7346 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
7347 i386_nw_init_abi): New functions.
7348 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
7349 Use set_gdbarch_xxx() calls instead of relying on macros for a
7350 number of calls.
7351 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
7352 (_initialize_i386_tdep): Add new 'struct-convcention' command.
7353 Register the various architecture variants defined in this file.
7354
ad2f7632
DJ
73552002-06-14 Daniel Jacobowitz <drow@mvista.com>
7356
7357 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
7358 (struct main_type): Remove arg_types member. Update comments for
7359 struct field.
7360 (TYPE_ARG_TYPES): Remove.
7361 (TYPE_FN_FIELD_ARGS): Update.
7362 (smash_to_method_type): Update prototype.
7363
7364 * c-typeprint.c (cp_type_print_method_args): Take method type
7365 instead of argument list. Use new argument layout. Simplify.
7366 (c_type_print_args): Use new argument layout. Simplify.
7367 (c_type_print_base): Update call to cp_type_print_method_args.
7368 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
7369 argument; use die->type instead. Update call to
7370 smash_to_method_type.
7371 (read_structure_scope): Update call to dwarf2_add_member_fn.
7372 * gdbtypes.c (allocate_stub_method): Update comment.
7373 (smash_to_method_type): Take new NARGS and VARARGS arguments.
7374 Use new argument layout.
7375 (check_stub_method): Use new argument layout. Don't count
7376 void as an argument.
7377 (print_arg_types): Update comments. Use new argument layout.
7378 (recursive_dump_type): Don't print arg_types member.
7379 * hpread.c (hpread_read_struct_type): Use new argument layout.
7380 (fixup_class_method_type): Likewise.
7381 (hpread_type_lookup): Likewise.
7382 * stabsread.c (read_type): Update calls to read_args and
7383 smash_to_method_type.
7384 (read_args): Use new argument layout. Simplify.
7385 * valops.c (typecmp): Use new argument layout. Update parameters
7386 and comments. Simplify.
7387 (hand_function_call): Use new argument layout.
7388 (search_struct_method): Update call to typecmp.
7389 (find_overload_match): Use new argument layout.
7390
6da02953
DJ
73912002-06-13 Daniel Jacobowitz <drow@mvista.com>
7392
7393 * NEWS: Mention multithreaded debug support for gdbserver.
7394
519b2366
DJ
73952002-06-13 Daniel Jacobowitz <drow@mvista.com>
7396
7397 * MAINTAINERS: Mention NEWS.
7398
6c0d6680
DJ
73992002-06-13 Daniel Jacobowitz <drow@mvista.com>
7400
7401 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
7402 (struct mips_objfile_private, compare_pdr_entries): New.
7403 (non_heuristic_proc_desc): Read the ".pdr" section if it
7404 is present.
7405
6529d2dd
AC
74062002-06-12 Andrew Cagney <ac131313@redhat.com>
7407
7408 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
7409 (arm_debug): New static variable.
7410 (_initialize_arm_tdep): Add ``set debug arm'' command.
7411
26216b98
AC
74122002-06-12 Andrew Cagney <ac131313@redhat.com>
7413
7414 * Makefile.in (sim_arm_h): Define.
7415 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
7416 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
7417 (arm_register_sim_regno): New function, map an internal REGNUM
7418 onto a simulator register number.
7419 (arm_gdbarch_init): Set register_sim_regno.
7420
814b3ba0
AH
74212002-06-09 Aldy Hernandez <aldyh@redhat.com>
7422
7423 * MAINTAINERS: Add self.
7424
475b0867
JB
74252002-06-11 Jim Blandy <jimb@redhat.com>
7426
919d772c
JB
7427 * source.c (source_info): Mention whether the symtab has
7428 information about preprocessor macros.
7429
475b0867
JB
7430 Call the command `info macro', not `show macro'.
7431 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
7432 Fix error message.
7433 (_initialize_macrocmd): Register `info_macro_command' in
7434 `infolist', not `showlist'.
7435
9e364162
DJ
74362002-06-11 Daniel Jacobowitz <drow@mvista.com>
7437
7438 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
7439 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
7440 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
7441 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
7442 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
7443 unconditionally.
7444 (set_mipsfpu_single_command, set_mipsfpu_double_command)
7445 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
7446 (_initialize_mips_tdep): Remove dead code.
7447 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
7448 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
7449 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
7450 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
7451 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
7452 MIPS_LAST_FP_ARG_REGNUM): Remove.
7453
23aa4c72
ML
74542002-06-11 Michal Ludvig <mludvig@suse.cz>
7455
7456 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
7457 (unwind_tmp_obstack_free, parse_frame_info)
7458 (update_context, cfi_read_fp, cfi_write_fp)
7459 (cfi_frame_chain, cfi_init_extra_frame_info)
7460 (cfi_virtual_frame_pointer): Use the above function.
264d1763 7461 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
23aa4c72 7462
70eb15a4
CV
74632002-06-11 Corinna Vinschen <vinschen@redhat.com>
7464
7465 * v850-tdep.c (v850_type_is_scalar): New function.
7466 (v850_use_struct_convention): Match current gcc implementation
7467 as close as possible.
7468 (v850_push_arguments): Fix stack_offset handling. Don't write
7469 struct_addr into register. This is done by v850_store_struct_return.
7470 (v850_extract_return_value): Care for structs.
7471 (v850_store_return_value): Ditto.
7472 (v850_store_struct_return): Actually write address.
7473
482a4d06
ML
74742002-06-11 Michal Ludvig <mludvig@suse.cz>
7475
7476 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
7477 without debug information too.
7478
d855c300
AC
74792002-06-10 Andrew Cagney <ac131313@redhat.com>
7480
7481 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
7482 Make multi-arch pure.
7483 * gdbarch.h, gdbarch.c: Re-generate.
7484 * arm-tdep.c (arm_print_float_info): Update.
7485 * arch-utils.h (default_print_float_info): Update.
7486 * arch-utils.c (default_print_float_info): Update.
7487 * infcmd.c (float_info): Update call.
7488
dd12a101
AC
74892002-06-10 Andrew Cagney <ac131313@redhat.com>
7490
7491 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
7492 the front of the initialize list.
7493
101dcfbe
AC
74942002-06-10 Andrew Cagney <ac131313@redhat.com>
7495
7496 * infrun.c (struct inferior_status): Replace fields
7497 selected_frame_address and selected_level with field
7498 selected_frame_id.
7499 (save_inferior_status): Update. Use get_frame_id.
7500 (struct restore_selected_frame_args): Delete.
7501 (restore_selected_frame): Update. Use frame_find_by_id.
7502 (restore_inferior_status): Update.
7503
7504 * breakpoint.h (struct breakpoint): Change type of
7505 watchpoint_frame to frame_id.
7506 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
7507 call to get_current_frame.
7508 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
7509 get_current_frame.
7510 (watchpoint_check): Use frame_find_by_id.
7511
7512 * frame.h (record_selected_frame): Delete declaration.
7513 * stack.c (record_selected_frame): Delete function.
7514
7515 * frame.h (struct frame_id): Define.
7516 (get_frame_id): Declare.
7517 (frame_find_by_id): Declare.
7518 * frame.c (frame_find_by_id): New function.
7519 (get_frame_id): New function.
7520
304270b6
AV
75212002-06-10 Andrey Volkov <avolkov@transas.com>
7522
7523 * ser-e7kpc.c: Fix duplicated define and call of
7524 _initialize_ser_e7000pc
7525
2f2cf184
DJ
75262002-06-09 Daniel Jacobowitz <drow@mvista.com>
7527
7528 * signals/signals.c (target_signal_from_host): Fix #ifdef
7529 SIGRTMIN case.
7530 (do_target_signal_to_host): Likewise.
7531
caaa3122
DJ
75322002-06-09 Daniel Jacobowitz <drow@mvista.com>
7533
7534 * mips-tdep.c (mips_find_abi_section): New function.
7535 (mips_gdbarch_init): Call it.
7536
6ac5df3a
MK
75372002-06-09 Mark Kettenis <kettenis@gnu.org>
7538
7539 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
7540 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
7541 after Andrew's 2002-06-08 gdbarch change.
7542
82ea117a
MK
75432002-06-09 Mark Kettenis <kettenis@gnu.org>
7544
7545 * i386-linux-nat.c (suppy_gregset): Don't supply
7546 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
7547 register cache.
7548 (fill_gregset): Don't fetch it under the same circumstances.
7549
3c25f8c7
AC
75502002-06-09 Andrew Cagney <cagney@redhat.com>
7551
7552 * Makefile.in (callback_h): Define.
7553 (remote_sim_h): Update path to remote-sim.h.
7554 (remote-rdp.o): Add $(callback_h).
7555 (remote-sim.o): Use $(callback_h).
7556 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
7557 * remote-rdp.c: Include "gdb/callback.h".
7558
1029b7fa
MK
75592002-06-09 Mark Kettenis <kettenis@gnu.org>
7560
7561 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
7562 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
7563
616675d3
AC
75642002-06-08 Andrew Cagney <ac131313@redhat.com>
7565
a3efda28
AC
7566 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
7567 * rdi-share/serpardr.c: Ditto.
7568 * rdi-share/unixcomm.c: Ditto.
7569 * rdi-share/serdrv.c: Ditto.
7570 * rdi-share/hostchan.h: Ditto.
7571 * rdi-share/hostchan.c: Ditto.
7572 * rdi-share/host.h: Ditto.
7573 * rdi-share/devsw.c: Ditto.
7574
c5f10366
AC
7575 * objfiles.h: Change type of obj_private to void pointer.
7576 * pa64solib.c: Update copyright. Don't include "assert.h", use
7577 strcmp instead of STREQ, use LONGEST, do not use PTR
7578 * somsolib.c: Ditto.
7579
616675d3
AC
7580 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
7581 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
7582 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
7583
e4b415d9
AC
75842002-06-08 Andrew Cagney <ac131313@redhat.com>
7585
7586 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
7587 (default_get_saved_register): Delete function.
7588 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
7589 generic_unwind_get_saved_register.
7590 * gdbarch.h, gdbarch.c: Re-generate.
7591
ca0d0b52
AC
75922002-06-08 Andrew Cagney <ac131313@redhat.com>
7593
7594 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
7595 generic_func_frame_chain_valid.
7596 * gdbarch.h, gdbarch.c: Re-generate.
7597 * blockframe.c (generic_func_frame_chain_valid): Only check
7598 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
7599 passing FP to PC_IN_CALL_DUMMY.
7600 Fix PR gdb/360.
7601
76860b5f
AC
76022002-06-08 Andrew Cagney <ac131313@redhat.com>
7603
7604 * gdbarch.sh (struct gdbarch_data): Add field init_p.
7605 (register_gdbarch_data): Initialize init_p.
7606 (gdbarch_data): Initialize data pointer using the init function.
7607 (init_gdbarch_data): Delete function.
7608 (gdbarch_update_p): Update.
7609 (initialize_non_multiarch): Update.
7610 (struct gdbarch): Add field initialized_p.
7611 * gdbarch.h, gdbarch.c: Re-generate.
7612
8dda9770
ML
76132002-06-07 Michal Ludvig <mludvig@suse.cz>
7614
7615 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
7616 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
7617 better do the things actually here.
7618 * x86-64-tdep.c (x86_64_register_name2nr): New.
7619 (x86_64_register_name): Renamed to x86_64_register_nr2name.
7620 (x86_64_gdbarch_init): Respect the above change.
7621 * x86-64-tdep.h (x86_64_register_name2nr)
7622 (x86_64_register_nr2name): Add prototypes.
7623 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
7624
3d79a47c
MS
76252002-06-06 Michael Snyder <msnyder@redhat.com>
7626
7bd91a28
MS
7627 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
7628 Delete extra braces and re-indent.
7629 (d10v_store_return_value): Char return values
3d79a47c
MS
7630 must be shifted over by one byte in R0.
7631 (d10v_extract_return_value): Delete extra braces, re-indent.
7632
095a4c96
EZ
76332002-06-06 Elena Zannoni <ezannoni@redhat.com>
7634
7635 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
7636 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
7637 (d10v_integer_to_address): Rewrite.
7638 (d10v_frame_init_saved_regs): When reading fp and sp registers use
7639 the d10v specific functions which take care of converting to the
7640 correct space.
7641
e8a77ca4
EZ
76422002-06-06 Elena Zannoni <ezannoni@redhat.com>
7643
7644 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
7645 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
7646
4f2e4a4f
AC
76472002-06-02 Andrew Cagney <ac131313@redhat.com>
7648
7649 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
7650 includes.
7651 * config/tm-linux.h: Ditto.
7652 * config/alpha/tm-alphalinux.h: Ditto.
7653 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
7654 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
7655 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
7656 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
7657 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
7658 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
7659 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
7660 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
7661 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
7662 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
7663 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
7664 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
7665 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
7666 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
7667 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
7668 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
7669 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
7670 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
7671 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
7672 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
7673 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
7674 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
7675 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
7676 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
7677 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
7678 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
7679 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
7680 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
7681 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
7682 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
7683 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
7684 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
7685 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
7686 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
7687 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
7688 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
7689 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
7690
ae2ab2ce
AS
76912002-05-04 Aidan Skinner <aidan@velvet.net>
7692
7693 * ada-exp.tab.c: New file
7694 * ada-exp.y: New file
7695 * ada-lang.c: New file
7696 * ada-lang.h: New file
7697 * ada-lex.c: New file
7698 * ada-lex.l: New file
7699 * ada-tasks.c: New file
7700 * ada-typeprint.c: New file
7701 * ada-valprint.c: New file
7702
0ddd0135
JT
77032002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
7704
7705 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
7706 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
7707
750fbacc
JT
77082002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
7709
7710 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
7711 insetead of ppc-linux-tdep.o.
7712 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
7713 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
7714
df94e18a
AC
77152002-06-02 Andrew Cagney <ac131313@redhat.com>
7716
7717 2002-05-07 Christian Groessler <chris@groessler.org>
7718 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
7719 bit register contents for little endian hosts.
7720
1a38ab75
AC
77212002-06-01 Andrew Cagney <ac131313@redhat.com>
7722
7723 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
7724 any maintainer.
7725
8b1632ac
AC
77262002-06-01 Andrew Cagney <ac131313@redhat.com>
7727
7728 * gdbarch.h: Regenerate.
7729
627054c8
AC
77302002-06-01 Andrew Cagney <ac131313@redhat.com>
7731
7732 * MAINTAINERS: Add everyone to write-after-approval list.
7733
4f460812
AC
77342002-06-01 Andrew Cagney <ac131313@redhat.com>
7735
7736 * stack.c (frame_info): Use frame_register_unwind instead of
7737 saved_regs. Mention when the SP is on the stack or in a register.
7738
7739 * frame.h (frame_register_unwind_ftype): Define. Document.
7740 (struct frame_info): Add field register_unwind and
7741 register_unwind_cache.
7742 (frame_register_unwind): Declare.
7743 (generic_unwind_get_saved_register): Declare.
7744
7745 * frame.c (frame_register_unwind): New function.
7746 (generic_unwind_get_saved_register): New function.
7747
7748 * blockframe.c (generic_call_dummy_register_unwind): New function.
7749 (frame_saved_regs_register_unwind): New function.
7750 (set_unwind_by_pc): New function.
7751 (create_new_frame): New function.
7752 (get_prev_frame): New function.
7753
de888f76
AC
77542002-05-30 Andrew Cagney <ac131313@redhat.com>
7755
7756 * a29k-share/: Delete directory.
7757 * remote-vx29k.c: Delete file.
7758
2f2c3626
JT
77592002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7760
7761 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
7762 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
7763
9ce5c36a
JT
77642002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7765
7766 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
7767 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
7768 (sparc64nbsd-nat.o)
7769 (sparcnbsd-nat.o)
7770 (sparcnbsd-tdep.o): New dependency lists.
7771 * NEWS: Note new UltraSPARC NetBSD native configuration.
7772 * configure.host (sparc64-*-netbsd*): New host.
7773 * configure.tgt (sparc-*-netbsdelf*)
7774 (sparc-*-netbsd*): Set gdb_target to nbsd.
7775 (sparc64-*-netbsd*): New target.
7776 * sparc64nbsd-nat.c: New file.
7777 * sparcnbsd-nat.c: New file.
7778 * sparcnbsd-tdep.c: New file.
7779 * sparcnbsd-tdep.h: New file.
7780 * config/sparc/nbsd.mt: New file.
7781 * config/sparc/nbsd64.mh: New file.
7782 * config/sparc/nbsd64.mt: New file.
7783 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
7784 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
7785 (HOST_IPC): Remove.
7786 * config/sparc/nbsdaout.mt: Remove.
7787 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
7788 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
7789 (HOST_IPC): Remove.
7790 * config/sparc/nbsdelf.mt: Remove.
7791 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
7792 sparc-nat.c compatiblity defines.
7793 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
7794 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
7795 * config/sparc/tm-nbsd64.h: New file.
7796 * config/sparc/tm-nbsdaout.h: Remove.
7797 * config/sparc/xm-nbsd.h: Remove.
7798
ef3cf062
JT
77992002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7800
7801 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
7802 * sparc-tdep.c: Include osabi.h.
7803 (gdbarch_tdep): Add osabi member.
7804 (_initialize_sparc_tdep): Use gdbarch_register.
7805 (sparc_gdbarch_init): Use generic OS ABI framework.
7806 (sparc_dump_tdep): New function.
7807
ee8ff470
KB
78082002-05-30 Kevin Buettner <kevinb@redhat.com>
7809
7810 * corefile.c (do_captured_read_memory_integer): Return non-zero
7811 result.
7812 (safe_read_memory_integer): Copy result of memory read when
7813 status is non-zero. Also, add comments.
7814
7b112f9c
JT
78152002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
7816
7817 * Makefile.in (ppc_tdep_h): Define.
7818 (ppc-linux-nat.o)
7819 (ppc-linux-tdep.o)
7820 (rs6000-tdep.o): Use $(ppc_tdep_h).
7821 (ppc-sysv-tdep.o)
7822 (ppcnbsd-nat.o)
7823 (ppcnbsd-tdep.o): New dependency lists.
7824 * ppc-tdep.h: Use generic OS ABI framework.
357edbbc
JT
7825 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
7826 (ppc_linux_init_abi): New functions.
7b112f9c
JT
7827 (ppc_sysv_abi_broken_use_struct_convention)
7828 (ppc_sysv_abi_use_struct_convention)
7829 (ppc_sysv_abi_push_arguments): Move to...
7830 * ppc-sysv-tdep.c: ...here.
7831 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
7832 * rs6000-tdep.c (process_note_abi_tag_sections)
7833 (get_elfosabi): Remove.
7834 (rs6000_gdbarch_init): Use generic OS ABI framework.
7835 (rs6000_dump_tdep): New function.
7836 (_initialize_rs6000_tdep): Use gdbarch_register.
7837 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
7838 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7839 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
7840 of ppc-linux-tdep.o.
7841 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
7842 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
7843 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
7844 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
7845 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
7846 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
7847
480dd42a
JB
78482002-05-29 Jim Blandy <jimb@redhat.com>
7849
7850 * macroscope.c (default_macro_scope): Put `void' in empty argument
7851 list.
7852
4182591f
AC
78532002-05-29 Andrew Cagney <ac131313@redhat.com>
7854
7855 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
7856 * arch-utils.c: Include "sim-regno.h".
7857 * gdbarch.sh: Don't include "sim-regno.h".
7858 * gdbarch.h, gdbarch.c: Regenerate.
7859 * sim-regno.h (legacy_register_sim_regno): Move declaration from
7860 here.
7861 * arch-utils.h (legacy_register_sim_regno): To here.
7862 * remote-sim.c (legacy_register_sim_regno): Move function from
7863 here.
7864 * arch-utils.c (legacy_register_sim_regno): To here.
7865
8238d0bf
AC
78662002-05-28 Andrew Cagney <ac131313@redhat.com>
7867
7868 * sim-regno.h: New file.
7869 * Makefile.in (sim_regno_h): Define.
7870 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
7871 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
7872 (legacy_register_sim_regno): New function.
7873 (one2one_register_sim_regno): New function.
7874 (gdbsim_fetch_register): Rewrite.
7875 (gdbsim_store_register): Only store a register when
7876 REGISTER_SIM_REGNO is valid.
7877 * d10v-tdep.c: Include "sim-regno.h".
7878 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
7879 (d10v_ts3_register_sim_regno): Ditto.
7880 * gdbarch.sh: Include "sim-regno.h".
7881 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
7882 * gdbarch.h, gdbarch.c: Regenerate.
7883 * arch-utils.h (default_register_sim_regno): Delete declaration.
7884 * arch-utils.c (default_register_sim_regno): Delete function.
7885
485721b1
JT
78862002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
7887
7888 * ppcnbsd-nat.c: Rewrite.
7889 * ppcnbsd-tdep.c: New file.
7890 * ppcnbsd-tdep.h: New file.
7891 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
7892 solib.o, and solib-svr4.o.
7893 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
7894 nbsd-tdep.o, and corelow.o.
7895
697f244d
AC
78962002-05-28 Andrew Cagney <ac131313@redhat.com>
7897
7898 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
7899 `tr' and `sed'. Mention that `broken' targets are not expected to
7900 build.
7901
f08caad1 79022002-05-27 Michal Ludvig <mludvig@suse.cz>
b1ab997b
ML
7903
7904 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
7905 Let PC point right after the prologue before looking up symbols.
7906
3139facc
MH
79072002-05-27 Martin M. Hunt <hunt@redhat.com>
7908
7909 * i386-tdep.c (i386_register_virtual_type): Return
7910 builtin_type_vec128i for SSE registers.
7911
7912 * gdbtypes.h (builtin_type_vec128i): Declare.
7913
7914 * gdbtypes.c (build_builtin_type_vec128i): New function.
7915 (builtin_type_v2_double, builtin_type_v4_int64): New types.
7916 (builtin_type_vec128i): New type for SSE2 128-bit registers.
7917 (build_gdbtypes): Initialize new builtin vector types.
7918 (_initialize_gdbtypes): Register new vector types with gdbarch.
7919
6e3ba3b8
JT
79202002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7921
7922 * MAINTAINERS: ns32k is not longer an obsolete candidate,
7923 since it has been multi-arch'd.
7924 * NEWS: Note that ns32k-*-* is now partial multi-arch.
7925 Move Alpha and VAX multi-arch news entries to same section
7926 as other multi-arch news.
7927
93d5585d
JT
79282002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7929
7930 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
7931 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
7932 static. Rename some register numbers to put them in ns32k-tdep
7933 private namespace.
7934 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
7935 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
7936 functions.
7937 (_initialize_ns32k_tdep): Use gdbarch_register.
7938 * ns32k-tdep.h: New file.
7939 * ns32knbsd-tdep.c: New file.
7940 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
7941 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
7942 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
7943 REGISTER_BYTES, REGISTER_BYTE): Remove.
7944 * config/ns32k/tm-ns32k.h: New file.
7945 * config/ns32k/tm-umax.h: Remove.
7946
efb2c70e
JT
79472002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7948
7949 * ns32k-tdep.c (ns32k_saved_pc_after_call,
7950 ns32k_store_struct_return, ns32k_extract_return_value,
7951 ns32k_store_return_value, ns32k_extract_struct_value_address): New
7952 functions.
7953 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
7954 ns32k_saved_pc_after_call.
7955 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
7956 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
7957 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
7958 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
7959 ns32k_extract_struct_value_address.
7960
7bcc927b
JT
79612002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7962
7963 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
7964 ns32k_fix_call_dummy): New.
7965 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
7966 ns32k_call_dummy_words.
7967 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
7968 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
7969 CALL_DUMMY_NARGS): Remove.
7970 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
7971
78f9d765
JT
79722002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7973
7974 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
7975 ns32k_frame_saved_pc, ns32k_frame_args_address,
7976 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
7977 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
7978 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
7979 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
7980 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
7981 (BREAKPOINT): Remove..
7982 (FRAME_CHAIN): Define as ns32k_frame_chain.
7983 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
7984 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
7985 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
7986 (FRAME_FIND_SAVED_REGS): Remove.
7987 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
7988 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
7989 (POP_FRAME): Define as ns32k_pop_frame.
7990
f2c762e0
JT
79912002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7992
7993 * ns32k-tdep.c (ns32k_register_byte_32082,
7994 ns32k_register_byte_32382, ns32k_register_raw_size,
7995 ns32k_register_virtual_size, ns32k_register_virtual_type): New
7996 functions.
7997 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
7998 ns32k_register_byte_32382.
7999 * config/ns32k/tm-umax.h: Update copyright years.
8000 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
8001 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
8002 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
8003 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
8004 (ns32k_get_enter_addr): Fix prototype.
8005
af137673
JT
80062002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8007
8008 * ns32k-tdep.c: Update copyright years.
8009 (ns32k_register_name_32082): New function.
8010 (ns32k_register_name_32382): Ditto.
8011 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
8012 (REGISTER_NAME): Define as ns32k_register_name_32382.
8013 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
8014 (REGISTER_NAME): Define as ns32k_register_name_32082.
8015
a8bc7b56
JB
80162002-05-24 Jim Blandy <jimb@redhat.com>
8017
8018 * dwarf2read.c (free_line_header): Use xfree, not free.
8019
83a45910
JT
80202002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
8021
8022 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
8023 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
8024
0db71247
AC
80252002-05-23 Andrew Cagney <ac131313@redhat.com>
8026
8027 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
8028
b9e5e4dd
AC
80292002-05-23 Andrew Cagney <ac131313@redhat.com>
8030
8031 From Ross Alexander at NEC Europe:
8032 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
8033
de530e84
MS
80342002-05-23 Michael Snyder <msnyder@redhat.com>
8035
8036 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
8037 for input, rather than parse_and_eval_address.
8038
b91b96f4
AC
80392002-05-23 Andrew Cagney <ac131313@redhat.com>
8040
8041 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
8042 * Makefile.in (sim_d10v_h): Update definition.
8043
8b279e7a
AC
80442002-05-24 Andrew Cagney <cagney@redhat.com>
8045
8046 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
8047 change `2002-05-22 Michael Snyder' below.
8048 (d10v_push_arguments): Ditto.
8049 (d10v_extract_return_value): Ditto.
8050
0a3d0425
JB
80512002-05-23 Jim Blandy <jimb@redhat.com>
8052
8053 * macrotab.c (check_for_redefinition): Don't complain if the new
8054 definition is the same as the previous one. Take more arguments
8055 to allow the comparison.
8056 (macro_define_object, macro_define_function): Pass more arguments
8057 to check_for_redefinition.
8058
78eac43e
MS
80592002-05-22 Michael Snyder <msnyder@redhat.com>
8060
8061 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
8062 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
8063 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
8064 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
8065 Don't bail if return_pc is PC_IN_CALL_DUMMY.
8066 Add a temp variable to save a call (and a memory read).
8067 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
8068 if possible (so that PC_IN_CALL_DUMMY will work).
8069
9bc1edb8
CV
80702002-05-22 Corinna Vinschen <vinschen@redhat.com>
8071
8072 * MAINTAINERS: Remove status `OBSOLETE' from v850.
8073
005ef3d2
ML
80742002-05-22 Michal Ludvig <mludvig@suse.cz>
8075
8076 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
8077 fde->cie_ptr.
8078 (dwarf2_build_frame_info): Corrected handling of eh_frame.
8079 (dwarf2_build_frame_info): Add offset to fde->initial_location
8080 so that frames of shared libraries are mapped correctly.
6c3eb890
ML
8081 (execute_stack_op): Change type of 'result' from ULONGEST to
8082 CORE_ADDR.
005ef3d2 8083
fcf4f891
JT
80842002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8085
8086 * config/alpha/tm-nbsd.h: Include solib.h.
8087
cfef91e4
JT
80882002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8089
8090 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
8091 assumptions about the host's byte order.
8092
9964235a
JT
80932002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8094
8095 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
8096 to dependency list.
8097 * alphanbsd-tdep.c: Include solib-svr4.h.
8098 * shnbsd-tdep.c: Ditto.
8099
9eeef8ef
JT
81002002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8101
8102 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
8103 nbsd-tdep.h to dependency list.
8104 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
8105 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
8106 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
8107 nbsdaout.mh and nbsdelf.mh consistently.
8108 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
8109 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
8110 nbsdaout.mt and nbsdelf.mh consistently.
8111 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
8112 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
8113 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
8114 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
8115 a.out shared library stuff from here...
8116 * config/nm-nbsdaout.h: ...to here.
8117 * config/tm-nbsd.h: Remove.
8118 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
8119 * config/arm/nbsd.mh: Remove.
8120 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
8121 nbsd-tdep.o.
8122 * config/arm/nbsdaout.mh: New file.
8123 * config/arm/nbsdelf.mh: New file.
8124 * config/arm/nm-nbsdaout.h: New file.
8125 * config/i386/nbsd.mh: Remove.
8126 * config/i386/nbsd.mt: Remove.
8127 * config/i386/nbsdaout.mh: New file.
8128 * config/i386/nbsdaout.mt: New file.
8129 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
8130 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
8131 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
8132 i386_register_u_addr): Remove.
8133 * config/i386/nm-nbsdaout.h: New file.
8134 * config/i386/nm-nbsdelf.h: Remove.
8135 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
8136 (USE_STRUCT_CONVENTION): Remove.
8137 * config/i386/tm-nbsdaout.h: New file.
8138 * config/i386/tm-nbsdelf.h: Remove.
8139 * config/m68k/nbsd.mh: Remove.
8140 * config/m68k/nbsd.mt: Remove.
8141 * config/m68k/nbsdaout.mh: New file.
8142 * config/m68k/nbsdaout.mt: New file.
8143 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
8144 * config/m68k/nm-nbsdaout.h: New file.
8145 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
8146 (IN_SOLIB_CALL_TRAMPOLINE): Define.
8147 * config/ns32k/nbsd.mh: Remove.
8148 * config/ns32k/nbsd.mt: Remove.
8149 * config/ns32k/nbsdaout.mh: New file.
8150 * config/ns32k/nbsdaout.mt: New file.
8151 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
8152 * config/ns32k/nm-nbsdaout.h: New file.
8153 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
8154 (IN_SOLIB_CALL_TRAMPOLINE): Define.
8155 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
8156 (SVR4_SHARED_LIBS): Remove.
8157 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
8158 * config/sparc/nbsd.mh: Remove.
8159 * config/sparc/nbsd.mt: Remove.
8160 * config/sparc/nbsdaout.mh: New file.
8161 * config/sparc/nbsdaout.mt: New file.
8162 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
8163 * config/sparc/nbsdelf.mt: New file.
8164 * config/sparc/nm-nbsdaout.h: New file.
8165 * config/sparc/nm-nbsdelf.h: Remove.
8166 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
8167 * config/sparc/tm-nbsdaout.h: New file.
8168
257ce470
JT
81692002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8170
8171 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
8172 mipsnbsd-tdep.c
8173 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
8174
76a6d5fe
JT
81752002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8176
8177 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
8178 shnbsd-nat.c.
8179 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
8180
45888261
JT
81812002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8182
8183 * NEWS: Note new MIPS NetBSD native configuration.
8184 * configure.host (mips*-*-netbsd*): New host.
8185 * configure.tgt (mips*-*-netbsd*): New target.
8186 * mipsnbsd-nat.c: New file.
8187 * mipsnbsd-tdep.c: New file.
8188 * mipsnbsd-tdep.h: New file.
8189 * config/mips/nbsd.mh: New file.
8190 * config/mips/nbsd.mt: New file.
8191 * config/mips/nm-nbsd.h: New file.
8192 * config/mips/tm-nbsd.h: New file.
8193
70f80edf
JT
81942002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8195
8196 * Makefile.in (SFILES): Add osabi.c.
8197 (COMMON_OBS): Add osabi.o.
8198 (osabi.o): New dependency list.
8199 * osabi.c: New file.
8200 * osabi.h: New file.
8201 * doc/gdbint.texinfo: Document new generic OS ABI framework.
8202
8203 * Makefile.in (alpha_tdep_h): Define and use instead of
8204 alpha-tdep.h.
8205 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
8206 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
8207 Remove.
8208 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
8209 * alpha-tdep.h: Include osabi.h.
8210 (alpha_abi): Remove.
8211 (gdbarch_tdep): Use generic OS ABI framework.
8212 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
8213 gdbarch_register_osabi.
8214 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
8215 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
8216 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
8217
8218 * Makefile.in (sh_tdep_h): Add osabi.h.
8219 * sh-tdep.h (sh_osabi): Remove.
8220 (gdbarch_tdep): Use generic OS ABI framework.
8221 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
8222 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
8223 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
8224 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
8225
8226 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
8227 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
8228 gdbarch_register_osabi.
8229 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
8230 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
8231 (get_elfosabi): Rename to...
8232 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
8233 ABI framework support routines.
8234 (arm_gdbarch_init): Use generic OS ABI framework.
8235 (arm_dump_tdep): Likewise.
8236 (_initialize_arm_tdep): Likewise.
8237 * arm-tdep.h: Include osabi.h.
8238 (arm_abi): Remove.
8239 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
8240 osabi member.
8241 (arm_gdbarch_register_os_abi): Remove prototype.
8242 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
8243 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
8244
8245 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
8246 * mips-tdep.c: Include osabi.h.
8247 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
8248 OS ABI framework.
8249
d194345b
KH
82502002-05-20 Kazu Hirata <kazu@cs.umass.edu>
8251
8252 * h8300-tdep.c: Fix formatting.
8253
70c6b0d1
EZ
82542002-05-20 Elena Zannoni <ezannoni@redhat.com>
8255
8256 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
8257 printing vector registers.
8258
165b8e33
AC
82592002-05-19 Andrew Cagney <ac131313@redhat.com>
8260
8261 From Fernando Nasser:
8262 * remote.c (remote_async_open_1): Re-throw the exception when the
8263 connection fails.
8264 (remote_cisco_open): Ditto.
8265 (remote_open_1): Ditto.
8266
36918e70
AC
82672002-05-19 Andrew Cagney <ac131313@redhat.com>
8268
8269 * remote.c (remote_start_remote_dummy): Add uiout parameter.
8270 (remote_start_remote): Add uiout parameter. Pass through to
8271 remote_start_remote_dummy.
8272 (remote_open_1): Use catch_exception instead of catch_errors.
8273 (remote_async_open_1): Ditto.
8274 (remote_cisco_open): Ditto.
8275
ae44c0c4
AC
82762002-05-19 Andrew Cagney <ac131313@redhat.com>
8277
8278 * remote.c (remote_start_remote): Replace PTR with void pointer.
8279 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
8280 static.
8281
8efe637d
AC
82822002-05-18 Andrew Cagney <ac131313@redhat.com>
8283
8284 * gdb_indent.sh: Allow the script to be run in the sim directory.
8285
2f1b5984
MK
82862002-05-18 Mark Kettenis <kettenis@gnu.org>
8287
f0f625e2
MK
8288 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
8289 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
8290
2f1b5984
MK
8291 * corelow.c (core_open): Only call set_gdbarch_from_file if
8292 exec_bfd is NULL.
8293
fc974602
AV
82942002-05-17 Andrey Volkov <avolkov@transas.com>
8295
8296 * h8300-tdep.c: Add support of EXR register
8297 * config/h8300/tm-h8300.h: Ditto.
8298
906709f4
AV
82992002-05-17 Andrey Volkov <avolkov@transas.com>
8300
8301 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
8302
6e591d68
AV
83032002-05-17 Andrey Volkov <avolkov@transas.com>
8304
8305 * h8300-tdep.c: Change literal regnums to REGNO.
8306
84f0252a
JB
83072002-05-17 Jim Blandy <jimb@redhat.com>
8308
e0e9281e
JB
8309 * NEWS: Note addition of macro support.
8310
84f0252a
JB
8311 Expand preprocessor macros in C expressions.
8312 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
8313 (scan_macro_expansion, scanning_macro_expansion,
8314 finished_macro_expansion): New function declarations.
8315 (expression_macro_lookup_func, expression_macro_lookup_baton): New
8316 variable declarations.
8317 * parser-defs.h (expression_context_pc): New declaration.
8318 * parse.c (expression_context_pc): New variable.
8319 (parse_exp_1): Set expression_context_pc, as well as
8320 expression_context_block.
8321 * c-exp.y (yylex): If we're not already reading the result of a
8322 macro expansion, try to macro-expand the next token. When we're
8323 done scanning a macro expansion, switch back to the mainline text.
8324 Commas and `if's in a macro's expansion don't terminate the input.
8325 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
8326 (macro_original_text, macro_expanded_text,
8327 expression_macro_lookup_func, expression_macro_lookup_baton): New
8328 variables.
8329 (scan_macro_expansion, scanning_macro_expansion,
8330 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
8331 c_preprocess_and_parse): New functions.
8332 (c_language_defn, cplus_language_defn, asm_language_defn): Call
8333 c_preprocess_and_parse, instead of c_parse.
8334 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
8335 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
8336
1c509ca8
JR
8337Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
8338
8339 * sh-tdep.c (gdb_print_insn_sh64): Delete.
8340 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
8341 (sh_gdbarch_init): Always use gdb_print_insn_sh.
8342
2250ee0c
CV
83432002-05-17 Corinna Vinschen <vinschen@redhat.com>
8344
8345 * NEWS: Add section for multi-arched targets. Add v850 to that section.
8346
ab3b8126
JT
83472002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
8348
8349 * Makefile.in (sh_tdep_h): Define and use.
8350 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
8351 register enum): Move to...
8352 * * sh-tdep.h: ...here.
8353 * sh-tdep.c: Include sh-tdep.h.
8354 * sh3-rom.c: Likewise.
8355 * shnbsd-tdep.c: Likewise.
8356
ed9d4749
MS
83572002-05-16 Michael Snyder <msnyder@redhat.com>
8358
8359 * arm-tdep.c: Spelling fix in comment.
8360
2e276125
JB
83612002-05-16 Jim Blandy <jimb@redhat.com>
8362
6821892e
JB
8363 Add commands for manually expanding macros and showing their
8364 definitions.
8365 * macrocmd.c, macroscope.c, macroscope.h: New files.
8366 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
8367 (macroscope_h): New variable.
8368 (HFILES_NO_SRCDIR): Add macroscope.h.
8369 (COMMON_OBS): Add macrocmd.o, macroscope.o.
8370 (macroscope.o, macrocmd.o): New rules.
8371
2e276125
JB
8372 Teach the Dwarf 2 reader to read macro information.
8373 * dwarf2read.c: #include "macrotab.h".
8374 (dwarf_macinfo_buffer): New variable.
8375 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
8376 dwarf_macinfo_size.
8377 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
8378 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
8379 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
8380 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
8381 dwarf2_macro_spaces_in_definition): New complaints.
8382 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
8383 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
8384 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
8385 the partial symbol table.
8386 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
8387 from what's recorded in the partial symbol table.
8388 (read_file_scope): If the compilation unit has a
8389 `DW_AT_macro_info' attribute, read its macro information.
8390 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
8391
2f53fe6c
DJ
83922002-05-16 Daniel Jacobowitz <drow@mvista.com>
8393
8394 Fix PR gdb/546
8395 * ser-tcp.c: Don't include <netinet/udp.h>.
8396
2be99286
SC
83972002-05-16 Stephane Carrez <stcarrez@nerim.fr>
8398
8399 * MAINTAINERS: Update my email address.
8400
c9af212b 84012002-05-16 Richard Earnshaw <rearnsha@arm.com>
8501bbeb
RE
8402
8403 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
8404 include file of the same name.
8405
bf5f1a52
CV
84062002-05-16 Corinna Vinschen <vinschen@redhat.com>
8407
8408 * configure.tgt: Mark v850 as multi-arched.
8409 * config/v850/tm-v850.h: Remove file.
8410 * config/v850/v850.mt: Eliminate TM_FILE.
8411
435e042a
CV
84122002-05-16 Corinna Vinschen <vinschen@redhat.com>
8413
8414 * v850-tdep.c: Full multi-arch.
8415 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
8416 Define GDB_MULTI_ARCH to 2.
8417
9819c6c8
PM
84182002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
8419
8420 * p-exp.y (current_type): New static variable.
8421 Carries the type of the expression at the position that is parsed.
8422 (push_current_type, pop_current_type): Two new functions. Used
8423 to store/restore current_type in expression on specific tokens.
c9af212b
RE
8424 (search_field): New static variable. Set to one after parsing a point
8425 as at that point only a FIELDNAME token should be searched.
9819c6c8
PM
8426 (FIELDNAME): New token. After a point only a token belonging to
8427 current_type type definition is allowed.
8428 (all over token rules): reset and change current_type according
8429 to rules.
8430 (exp '[' rule): insert implicit array index field if
8431 exp is a pascal string type.
8432
3a06899a
CV
84332002-05-16 Corinna Vinschen <vinschen@redhat.com>
8434
8435 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
8436 frame info. Use frame_info's saved_regs instead of matching member
8437 in extra_frame_info throughout.
8438 (v850_frame_init_saved_regs): New function.
8439 (v850_init_extra_frame_info): Move most functionality into
8440 v850_frame_init_saved_regs().
8441 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
8442 (v850_frame_find_saved_regs): Remove declaration.
8443 (FRAME_FIND_SAVED_REGS): Remove definition.
8444 (v850_frame_init_saved_regs): Add declaration.
8445 (FRAME_INIT_SAVED_REGS): Add definition.
8446
6ed14b0e
CV
84472002-05-16 Corinna Vinschen <vinschen@redhat.com>
8448
8449 * v850-tdep.c: Begin multi-arch'ing v850.
8450 (v850_target_architecture_hook): Remove function.
8451 (v850_gdbarch_init): New function. Add code previously in
8452 v850_target_architecture_hook().
8453 (_initialize_v850_tdep): Don't set target_architecture_hook.
8454 Call register_gdbarch_init() instead.
8455
42725910
DJ
84562002-05-16 Daniel Jacobowitz <drow@mvista.com>
8457
8458 * gdbtypes.h (struct cplus_struct_type): Remove args field.
8459 * hpread.c (hpread_read_struct_type): Remove assignments to args.
8460 (fixup_class_method_type): Likewise.
8461
99d9066e
JB
84622002-05-15 Jim Blandy <jimb@redhat.com>
8463
8464 Add macro structures to GDB's symbol tables. Nobody puts anything
8465 in them yet.
8466 * symtab.h (struct symtab): New member: `macro_table'.
8467 * buildsym.h (pending_macros): New global variable.
8468 * buildsym.c: #include "macrotab.h".
8469 (buildsym_init): Initialize `pending_macros'.
8470 (end_symtab): If we found macro information while reading a CU's
8471 debugging info, do build a symtab structure for it. Make the
8472 symtab point to the macro information, and clear the
8473 `pending_macros' pointer which held it while we were reading the
8474 debug info.
8475 (really_free_pendings): Free any pending macro table.
8476 * objfiles.h (struct objfile): New member: `macro_cache'.
8477 * objfiles.c (allocate_objfile): Set allocate and free functions
8478 for the macro cache's objstack.
8479 (free_objfile): Empty the macro cache's obstack.
8480 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
8481 set new allocate and free functions for it.
8482 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
8483 free functions for the macro cache's objstack. (Why is this
8484 function building its own objfile?)
8485 * symmisc.c (print_objfile_statistics): Print statistics on the
8486 macro bcache.
8487 * Makefile.in: Note that buildsym.o depends on macrotab.h.
8488
c899585b
RE
84892002-05-15 Richard Earnshaw <rearnsha@arm.com>
8490
8491 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
8492 (REGISTER_U_ADDR): Delete definition.
8493 (arm_register_u_addr): Delete declaration.
8494
a6cdd8c5
RE
84952002-05-15 Richard Earnshaw <rearnsha@arm.com>
8496
8497 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
8498 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
8499
c97dcfc7
AC
85002002-05-14 Andrew Cagney <ac131313@redhat.com>
8501
8502 * regcache.c (register_valid): Revise comments refering to "Not
8503 available" and "unavailable".
8504 * frame.c (frame_register_read): Ditto.
8505 * findvar.c (value_of_register): Ditto.
8506
93021b7d
AC
85072002-05-15 Andrew Cagney <cagney@redhat.com>
8508
8509 * Makefile.in (remote_sim_h): Replace remote-sim_h.
8510 (remote-sim.o): Update dependencies.
8511 (d10v-tdep.o): Specify dependencies.
8512 (sim_d10v_h): Define.
8513
a86bc61c
JB
85142002-05-14 Jim Blandy <jimb@redhat.com>
8515
8516 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
8517 * macrotab.c (macro_lookup_inclusion, find_definition,
8518 new_macro_table): Same.
8519
8520 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
8521 not `! strcmp ()'. This is a dubious improvement.
8522 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
8523
8524 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
8525 although it's not necessary, to avoid a warning.
8526
2fdde8f8
DJ
85272002-05-14 Daniel Jacobowitz <drow@mvista.com>
8528
8529 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
8530 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
8531 TYPE_INSTANCE_FLAGS.
8532 (struct main_type): New.
8533 (struct type): Move most members to struct main_type. Change
8534 cv_type and as_type to new type_chain member. Add instance_flags.
8535 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
8536 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
8537 (finish_cv_type): Remove prototype.
8538 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
8539 Set TYPE_CHAIN.
8540 (alloc_type_instance): New function.
8541 (smash_type): New function.
8542 (make_pointer_type, make_reference_type, make_function_type)
8543 (smash_to_member_type, smash_to_method_type): Call smash_type.
8544 (make_qualified_type): New function.
8545 (make_type_with_address_space): Call make_qualified_type.
8546 (make_cv_type): Likewise.
8547 (finish_cv_type): Remove unnecessary function.
8548 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
8549 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
8550 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
8551 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
8552 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
8553 * hpread.c (hpread_read_struct_type): Likewise.
8554 * stabsread.c (read_struct_type): Likewise.
8555
843fedf4
EZ
85562002-05-14 Elena Zannoni <ezannoni@redhat.com>
8557
8558 * configure.tgt: Add a catch all sh* target, for cases like
8559 sh[2,3,4]-elf and sh-hms.
8560
05a6c72c
KS
85612002-05-14 Keith Seitz <keiths@redhat.com>
8562
8563 * event-loop.c (create_file_handler): Don't do anything but
8564 update data when we are given a fd which we are already
8565 monitoring.
8566
5d085aaf
ML
85672002-05-14 Michal Ludvig <mludvig@suse.cz>
8568
8569 * dwarf2cfi.c (context_cpy): Copy registers correctly.
8570 (update_context): Use __func__ in warnings.
8571
9db8d71f
DJ
85722002-05-14 Daniel Jacobowitz <drow@mvista.com>
8573
8574 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
8575 and tcp_close to net_open and net_close.
8576 (net_open): Accept "udp:" and "tcp:" specifications. Connect
8577 using UDP if requested. Don't try to disable Nagle on UDP
8578 sockets.
8579 * remote.c (remote_serial_open): New function. Warn about UDP.
8580 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
8581
5dbc6baa
EZ
85822002-05-13 Elena Zannoni <ezannoni@redhat.com>
8583
8584 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
8585
cc3023f7
EZ
85862002-05-13 Elena Zannoni <ezannoni@redhat.com>
8587
8588 * configure.tgt: Remove sh-hms target.
8589 * MAINTAINERS: Don't list sh-hms as a separate target.
8590
ec2bcbe7
JB
85912002-05-13 Jim Blandy <jimb@redhat.com>
8592
8593 Add first preprocessor macro-expansion files.
8594 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
8595 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
8596 (splay_tree_h, macroexp_h, macrotab_h): New variable.
8597 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
8598 (COMMON_OBS): Add macrotab.o, macroexp.o.
8599 (macroexp.o, macrotab.o): New rules.
8600
6d531722
AC
86012002-05-13 Andrew Cagney <ac131313@redhat.com>
8602
8603 * config/m88k/tm-m88k.h: Update copyright.
8604 (m88k_target_write_pc): Declare
8605 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
8606 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
8607 (SHIFT_INST_REGS): Update definition.
8608 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
8609 using old definition of TARGET_WRITE_PC.
8610 * regcache.c (generic_target_write_pc): Delete code handling
8611 NNPC_REGNUM.
8612 * gdbarch.sh (NNPC_REGNUM): Delete.
8613 * gdbarch.h, gdbarch.c: Regenerate.
8614
3e3f2739
RE
86152002-05-13 Richard Earnshaw <rearnsha@arm.com>
8616
8617 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
8618 builtin reg number.
8619
0004e5a2
DJ
86202002-05-13 Daniel Jacobowitz <drow@mvista.com>
8621
8622 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
8623 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
8624 (gen_address_of, gen_struct_ref, gen_repeat): Use type
8625 access macros.
8626 * c-typeprint.c (cp_type_print_method_args): Likewise.
8627 (c_type_print_args): Likewise.
8628 * d10v-tdep.c (d10v_push_arguments): Likewise.
8629 (d10v_extract_return_value): Likewise.
8630 * expprint.c (print_subexp): Likewise.
8631 * gdbtypes.c (lookup_primitive_typename): Likewise.
8632 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
8633 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
8634 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
8635 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
8636 (TYPE_VECTOR): Likewise.
8637 * hpread.c (hpread_read_struct_type)
8638 (fix_static_member_physnames, fixup_class_method_type)
8639 (hpread_type_lookup): Likewise.
8640 * mdebugread.c (parse_symbol, parse_type): Likewise.
8641 * p-lang.c (is_pascal_string_type): Likewise.
8642 * valops.c (hand_function_call): Likewise.
8643 * x86-64-tdep.c (classify_argument): Likewise.
8644
8645 * hpread.c (hpread_read_function_type)
8646 (hpread_read_doc_function_type): Call replace_type.
8647 * dstread.c (create_new_type): Delete.
8648 (decode_dst_structure, process_dst_function): Call alloc_type.
8649 Use type access macros.
8650
dff95cc7
MK
86512002-05-12 Mark Kettenis <kettenis@gnu.org>
8652
8653 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
8654 the're not supported by the current architecture.
8655 (i387_fill_fxsave): Likewise.
8656
bbcd32ad
FF
86572002-05-12 Fred Fish <fnf@redhat.com>
8658
8659 * symfile.c (default_symfile_offsets): Arrange for uninitialized
8660 sect_index_xxx members to index the first slot in section_offsets
8661 if all of the section_offsets are zero.
8662
89cf4787
MK
86632002-05-12 Mark Kettenis <kettenis@gnu.org>
8664
8665 * configure.tgt (sparc-*openbsd): Remove entry accidentially
8666 checked in with last change.
8667
1f77ffc5
MK
86682002-05-12 Mark Kettenis <kettenis@gnu.org>
8669
8670 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
8671 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
8672 config.sub.
8673
89b8b4a9
DJ
86742002-05-12 Daniel Jacobowitz <drow@mvista.com>
8675
8676 * Makefile.in: Update dependencies.
8677
14a5e767
AC
86782002-05-11 Andrew Cagney <ac131313@redhat.com>
8679
8680 * language.c (local_hex_string_custom): Simplify. Do not depend
8681 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
8682
8683 * memattr.c (mem_info_command): Replace calls to
8684 longest_local_hex_string and longest_local_hex_string_custom.
8685 * buildsym.c (make_blockvector): Ditto.
8686 * solib.c (info_sharedlibrary_command): Ditto.
8687 * tracepoint.c (tracepoints_info): Ditto.
8688 * symtab.c (print_msymbol_info): Ditto.
8689
8690 * language.c (local_hex_string): Delete.
8691 (local_hex_string_custom): Delete.
8692 (longest_local_hex_string): Rename to local_hex_string.
8693 (longest_local_hex_string_custom): Rename to
8694 local_hex_string_custom.
8695 * language.h (local_hex_string): Change parameter type to LONGEST.
8696 (local_hex_string_custom): Ditto.
8697 (longest_local_hex_string): Delete declaration.
8698 (longest_local_hex_string_custom): Ditto.
8699
8700 * solib.c: Update copyright.
8701 * memattr.c: Update copyright.
8702
13d01224
AC
87032002-05-11 Andrew Cagney <ac131313@redhat.com>
8704
8705 * arch-utils.h (legacy_register_to_value): Declare.
8706 (legacy_value_to_register): Declare.
8707 (legacy_convert_register_p): Declare.
8708 * arch-utils.c (legacy_register_to_value): New function.
8709 (legacy_value_to_register): New function.
8710 (legacy_convert_register_p): New function.
8711
8712 * gdbarch.sh (REGISTER_TO_VALUE): Define.
8713 (VALUE_TO_REGISTER): Define.
8714 (CONVERT_REGISTER_P): Define.
8715 * gdbarch.h, gdbarch.c: Regenerate.
8716
8717 * valops.c (value_assign): Use CONVERT_REGISTER_P and
8718 VALUE_TO_REGISTER.
8719 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
8720 CONVERT_REGISTER_P.
8721
4a1970e4
DJ
87222005-05-11 Daniel Jacobowitz <drow@mvista.com>
8723 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8724
8725 * Makefile.in: Update dependencies for valops.c.
8726 * valops.c: Include "gdb_assert.h".
8727 (typecmp): Skip THIS parameter to methods.
8728 (find_method_list): Remove static_memfuncp argument,
8729 update callers. Check for stub methods.
8730 (find_value_oload_method_list): Don't set *static_memfuncp.
8731 (find_overload_match): Don't check for stub methods. Assert
8732 that methods are not stubbed. Handle static methods.
8733 (value_find_oload_method_list): Remove static_memfuncp argument.
8734 * gdbtypes.c (check_stub_method): Do not add THIS pointer
8735 to the argument list for static stub methods.
8736 * value.h (value_find_oload_method_list): Update prototype.
8737
b2e75d78
AC
87382002-05-11 Andrew Cagney <ac131313@redhat.com>
8739
8740 * arch-utils.h (generic_register_size): Declare.
8741 (generic_register_raw_size, generic_register_virtual_size): Delete
8742 declarations.
8743 * arch-utils.c (generic_register_raw_size): Delete.
8744 (generic_register_size): New function.
8745 (generic_register_virtual_size): Delete.
8746
8747 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
8748 default generic_register_size.
8749 * gdbarch.h, gdbarch.c: Re-generate.
8750
8751 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
8752 register_virtual_size.
8753 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
8754 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8755
451fbdda
AC
87562002-05-11 Andrew Cagney <ac131313@redhat.com>
8757
8758 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
8759 * gdbarch.h, gdbarch.c: Regenerate.
8760 * gnu-v3-abi.c: Update copyright.
8761 (vtable_address_point_offset): Update.
8762 (gnuv3_rtti_type): Update.
8763 (gnuv3_baseclass_offset): Update.
8764 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
8765 (init_fetch_link_map_offsets): Update.
8766 * remote.c (get_remote_state): Update.
8767
6d2f5cea
DJ
87682002-05-11 Daniel Jacobowitz <drow@mvista.com>
8769
8770 * TODO: Remove value_headof/value_from_vtable_info comment.
8771 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
8772 * values.c (value_headof, value_from_vtable_info): Delete.
8773 * value.h (value_from_vtable_info): Delete prototype.
8774
d2324da4
AC
87752002-05-11 Andrew Cagney <ac131313@redhat.com>
8776
8777 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
8778 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
8779 $(gdb_regex_h).
8780 (gdb_assert_h): Define.
8781 (gdb_wait_h): Define.
8782 (gdb_regex_h): Define.
8783
5c717440
DJ
87842002-05-11 Daniel Jacobowitz <drow@mvista.com>
8785
8786 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
8787 * linespec.c (find_methods): Handle GCC 3.x template constructors.
8788
6c7861b3
JT
87892002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8790
8791 * nbsd-tdep.c: Fix comment.
8792
ea5bc2a6
JT
87932002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8794
8795 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
8796 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
8797 (nbsd-tdep.o): New dependency list.
8798 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
8799 nbsd-tdep.h.
8800 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
8801 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
8802 * nbsd-tdep.c: New file.
8803 * nbsd-tdep.h: New file.
8804 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
8805 nbsd-tdep.h.
8806 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
8807 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
8808 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
8809 * config/sh/nbsd.mt (TDEPFILES): Ditto.
8810
b28da865
JT
88112002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8812
8813 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
8814 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
8815 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
8816 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
8817 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
8818 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
8819
4b8ff1fa
JT
88202002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8821
8822 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
8823 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8824 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
8825 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
8826 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
8827 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
8828 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
8829
dfe6eb1f
JT
88302002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8831
8832 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
8833 fetch_elfcore_registers to...
8834 * i386nbsd-tdep.c: ...here.
8835 (i386nbsd_use_struct_convention): Rename to...
8836 (i386nbsd_aout_use_struct_convention): ...this.
8837 (i386nbsd_supply_reg): New function.
8838 (i386nbsd_fill_reg): New function.
8839 (fetch_core_registers): Use i386nbsd_supply_reg.
8840 (fetch_elfcore_registers): Likewise.
8841 (_initialize_i386nbsd_tdep): New function.
8842 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
8843 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8844 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
8845 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
8846 (i386nbsd_aout_use_struct_convention): ...this.
8847
20cb8cda
JT
88482002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8849
8850 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
8851 (store_inferior_registers): Use shnbsd_fill_reg.
8852 * shnbsd-tdep.c (sh_nbsd_supply_registers,
8853 sh_nbsd_supply_register): Collapse into...
8854 (shnbsd_supply_reg): ...this.
8855 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
8856 (shnbsd_fill_reg): ...this.
8857 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
8858 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
8859 (fetch_core_registers): Use shnbsd_supply_reg.
8860 (fetch_elfcore_registers): Use shnbsd_supply_reg.
8861 (sh_nbsd_core_fns): Rename to...
8862 (shnbsd_core_fns): ...this.
8863 (sh_nbsd_elfcore_fns): Rename to...
8864 (shnbsd_elfcore_fns): ...this.
8865 (sh_nbsd_init_abi): Rename to...
8866 (shnbsd_init_abi): ...this.
8867 (_initialize_sh_nbsd_tdep): Rename to...
8868 (_initialize_shnbsd_tdep): ...this.
8869 * shnbsd-tdep.h (sh_nbsd_supply_registers,
8870 sh_nbsd_supply_register, sh_nbsd_fill_registers,
8871 sh_nbsd_fill_register): Remove prototypes.
8872 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
8873
e750d25e
JT
88742002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8875
8876 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
8877 (i387-nat.o): Delete dependency list.
8878 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
8879 (x86-64-linux-nat.o): Likewise.
8880 * i387-nat.c: Delete file, moving contents to...
8881 * i387-tdep.c: ...here.
8882 * i387-nat.h: Rename...
8883 * i387-tdep.h: ...to this.
8884 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
8885 * i386-linux-nat.c: Likewise.
8886 * i386bsd-nat.c: Likewise.
8887 * i386gnu-nat.c: Likewise.
8888 * i386nbsd-nat.c: Likewise.
8889 * i386v4-nat.c: Likewise.
8890 * x86-64-linux-nat.c: Likewise.
8891 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
8892 * config/i386/go32.mh (NATDEPFILES): Likewise.
8893 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
8894 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
8895 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
8896 * config/i386/linux.mh (NATDEPFILES): Likewise.
8897 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
8898 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8899 * config/i386/obsd.mh (NATDEPFILES): Likewise.
8900 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
8901
1aee598a
JT
89022002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8903
8904 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
8905 (alphanbsd-nat.o): Remove dependency list.
8906 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
8907 * alphanbsd-nat.c: Delete. Contents moved to...
8908 * alphanbsd-tdep.c: ...here.
8909 (_initialize_alphanbsd_tdep): Register core functions.
8910 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
8911
12bcb0fe
JT
89122002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8913
8914 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
8915 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
8916 (alphanbsd-nat.o): Likewise.
8917 (alphabsd-tdep.o): New dependency list.
8918 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
8919 (fill_gregset): Use alphabsd_fill_reg.
8920 (supply_fpregset): Use alphabsd_supply_fpreg.
8921 (fill_fpregset): Use alphabsd_fill_fpreg.
8922 (fetch_inferior_registers): Use struct reg and struct fpreg
8923 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
8924 and alphabsd_supply_fpreg.
8925 (store_inferior_registers): Use struct reg and struct fpreg
8926 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
8927 and alphabsd_fill_fpreg.
8928 * alphabsd-tdep.c: New file.
8929 * alphabsd-tdep.h: New file.
8930 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
8931 (fetch_elfcore_registers): Use alphabsd_supply_reg and
8932 alphabsd_supply_fpreg.
8933 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
8934 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
8935
361d1df0
EC
89362002-05-11 Eric Christopher <echristo@redhat.com>
8937
8938 * mips-tdep.c (mips_double_register_type): Fix thinko.
8939 (mips_single_register_type): Ditto.
8940 * MAINTAINERS: Add self.
8941
92dd7cee
MK
89422002-05-11 Mark Kettenis <kettenis@gnu.org>
8943
8944 * i387-nat.c (i387_supply_register, i387_fill_fsave,
8945 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
8946 right thing on architectures with different endianness and/or
8947 integer sizes.
8948
e27da16d
JT
89492002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
8950
8951 From Christian Limpach <chris@Pin.LU>
8952 * configure.in: Change sed expression which comments out
8953 NATDEPFILES to also comment out continuation lines.
8954 * configure: Regenerate.
8955
ddde02bd
EZ
89562002-05-10 Elena Zannoni <ezannoni@redhat.com>
8957
8958 * sh-tdep.c: Clean up code erroneously reintroduced by previous
8959 big patch.
8960
1c922164
EZ
89612002-05-10 Elena Zannoni <ezannoni@redhat.com>
8962
8963 * sh-tdep.c: Include correct file.
8964
283150cd
EZ
89652002-05-10 Elena Zannoni <ezannoni@redhat.com>
8966
8967 New support for sh64-elf (sh5) target.
8968
8969 * configure.tgt: For sh64-elf target, default to sh-elf.
8970
8971 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
8972 (struct gdbarch_tdep): Add new fields for new registers and ABI
8973 info.
361d1df0 8974
283150cd
EZ
8975 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
8976 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
8977 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
8978 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
8979 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
8980 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
8981 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
8982 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
8983 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
8984 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
8985 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
8986 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
8987 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
8988 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
8989 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
8990 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
8991 sh64_get_gdb_regnum, sh64_media_reg_base_num,
8992 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
8993 sign_extend, sh64_nofp_frame_init_saved_regs,
8994 sh64_init_extra_frame_info, sh64_get_saved_register,
8995 sh64_extract_struct_value_address, sh64_pop_frame,
8996 sh64_push_arguments, sh64_extract_return_value,
8997 sh64_store_return_value, sh64_show_media_regs,
8998 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
8999 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
9000 sh_sh64_register_virtual_type,
9001 sh_sh64_register_convert_to_virtual,
9002 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
9003 sh64_register_read, sh64_pseudo_register_write,
9004 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
9005 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
9006 sh64_do_pseudo_register, sh_compact_do_registers_info,
9007 sh64_do_registers_info, sh_gdbarch_init): New functions.
9008
3117ed25
EZ
90092002-05-10 Elena Zannoni <ezannoni@redhat.com>
9010
9011 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
9012
2654e6d4
DJ
90132002-05-10 Daniel Jacobowitz <drow@mvista.com>
9014
9015 * linespec.c (decode_line_1): Check for a double quote after
9016 a filename correctly.
9017
9ab3e532
JB
90182002-05-10 Jim Blandy <jimb@redhat.com>
9019
9020 Properly track the size of the current objfile's .debug_line section.
9021 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
9022 (DWARF_LINE_SIZE): New macro.
9023 (dwarf2_build_psymtabs_hard): Record the line section's size in
9024 the partial symbol table.
9025 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
9026 symbol table.
9027
126fa72d
PS
90282002-05-10 Petr Sorfa <petrs@caldera.com>
9029
9030 * ia64-tdep.c: Handle breakpoints on L instruction type
9031 in MLX instruction bundle by moving the breakpoint to
9032 the third slot (X instruction type) as L holds only data.
9033
1f077a3e
KB
90342002-05-10 Kevin Buettner <kevinb@redhat.com>
9035
9036 * dbxread.c (discarding_local_symbols_complaint): New complaint.
9037 (process_one_symbol): Complain about discarding local symbols
9038 due to a misplaced N_LBRAC entry.
9039
8120c9d5 90402002-05-09 Elena Zannoni <ezannoni@redhat.com>
361d1df0
EC
9041
9042 From Daniel Berlin <dan@cgsoftware.com>
8120c9d5
EZ
9043 * linespec.c (find_toplevel_char): '<' and '>' also increase and
9044 decrease the depth we are at, in the case of templates.
361d1df0 9045
67b2c998
DJ
90462002-05-09 Daniel Jacobowitz <drow@mvista.com>
9047
9048 * mips-tdep.c (mips_float_register_type): New function.
9049 (mips_double_register_type): New function.
9050 (mips_print_register): Use them.
9051 (do_fp_register_row): Likewise.
9052
fd326606
DJ
90532002-05-09 Daniel Jacobowitz <drow@mvista.com>
9054
6609d9af 9055 * signals/signals.c (signals): Remove conditional compilation around
fd326606 9056 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6609d9af 9057 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
fd326606 9058
bef35864
MS
90592002-05-09 Michael Snyder <msnyder@redhat.com>
9060
9061 * remote-rdp.c (remote_rdp_can_run): Remove.
9062
c55a3f73
TT
90632002-05-09 Tom Tromey <tromey@redhat.com>
9064
9065 * jv-valprint.c (java_val_print): Handle `char' as a special case
9066 of TYPE_CODE_INT.
9067
b8d5e71d
MS
90682002-05-09 Michael Snyder <msnyder@redhat.com>
9069
9070 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
9071 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
361d1df0 9072 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
b8d5e71d 9073 str r(0123),[sp,#nn].
361d1df0 9074 (arm_skip_prologue): Ditto. Also make disassembly
b8d5e71d
MS
9075 order-independent by placing it in a loop.
9076
e2cd42dd
MS
90772002-05-06 Michael Snyder <msnyder@redhat.com>
9078
9079 * stabsread.c (read_type): Add recognition for new attribute:
9080 "@V;" means that an array type is actually a vector.
9081 This is analogous to the vector flag that's been added to dwarf2.
9082
3ce1502b
MK
90832002-05-09 Mark Kettenis <kettenis@gnu.org>
9084
9085 * i386-tdep.h (i386_abi): New enum.
9086 (struct gdbarch_tdep): Replace os_ident member with abi.
9087 (i386_gdbarch_register_os_abi): New prototype.
9088 * i386-tdep.c (i386_abi_names): New array.
9089 (process_note_abi_tag_sections): Removed.
9090 (process_note_sections): New function.
9091 (i386_elf_abi_from_note, i386_elf_abi): New functions.
9092 (struct i386_abi_handler): New struct.
9093 (i386_abi_handler_list): New variable.
9094 (i386_gdbarch_register_os_abi): New function.
9095 (i386_gdbarch_init): Adapt for the changes given above.
9096
084c156a
DJ
90972002-05-08 Daniel Jacobowitz <drow@mvista.com>
9098
9099 * gregset.h: Say "GNU/Linux".
9100
6599f021
EZ
91012002-05-08 Elena Zannoni <ezannoni@redhat.com>
9102
9103 * gdbtypes.c : Add new builtin type for 64 bit vectors.
9104 (build_gdbtypes): Build builtin_type_v2_float.
9105 (_initialize_gdbtypes): Register new builtin type.
9106
40af4b0c
AC
91072002-05-08 Andrew Cagney <ac131313@redhat.com>
9108
9109 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
9110 (clear_gdbarch_swap): New function.
9111 (initialize_non_multiarch): Call.
9112 (gdbarch_update_p): Before calling init(), swap out and clear the
9113 existing architecture.
9114 * gdbarch.c: Regenerate.
9115
4fe84f46
JT
91162002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9117
9118 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
9119 alphanbsd-tdep.c.
9120
4015edd1
JT
91212002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9122
9123 * sh-nbsd-nat.c: Rename to...
9124 * shnbsd-nat.c: ...this.
9125 * sh-nbsd-tdep.c: Rename to...
9126 * shnbsd-tdep.c: ...this.
9127 * sh-nbsd-tdep.h: Rename to...
9128 * shnbsd-tdep.h: ...this.
9129 * config/sh/nbsd.mh: Use shnbsd-nat.o.
9130 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
9131
0e2bd219
RE
91322002-05-08 Richard Earnshaw <rearnsha@arm.com>
9133
9134 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
9135 concatenation for command help messages.
9136
13a38d45
JT
91372002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9138
9139 * NEWS: Note new sh*-*-netbsdelf* configuration.
9140 * configure.host: Set gdb_host_cpu to sh for all sh*.
9141 (sh*-*-netbsdelf*): New host.
9142 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
9143 (sh*-*-netbsdelf*): New target.
9144 * sh-nbsd-nat.c: New file.
9145 * sh-nbsd-tdep.c: New file.
9146 * sh-nbsd-tdep.h: New file.
9147 * config/sh/nbsd.mh: New file.
9148 * config/sh/nbsd.mt: New file.
9149 * config/sh/nm-nbsd.h: New file.
9150 * config/sh/tm-nbsd.h: New file.
9151
d658f924
JT
91522002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9153
9154 * sh-tdep.c (sh_osabi_names): Declare.
9155 (process_note_abi_tag_sections): New function.
9156 (get_elfosabi): Ditto.
9157 (sh_gdbarch_register_os_abi): Ditto.
9158 (sh_dump_tdep): Ditto.
9159 _initialize_sh_tdep): Use gdbarch_register to register
9160 sh_gdbarch_init and sh_dump_tdep.
9161 * config/sh/tm-sh.h (sh_osabi): Declare.
9162 (gdbarch_tdep): Add sh_osabi and osabi_name members.
9163
848cfffb
AC
91642002-05-07 Andrew Cagney <ac131313@redhat.com>
9165
9166 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
9167 (thumb_scan_prologue): Ditto.
9168 (arm_find_callers_reg): Ditto.
9169 (arm_frame_chain): Ditto.
9170 (arm_init_extra_frame_info): Ditto.
9171 (arm_frame_saved_pc): Ditto.
9172 (arm_pop_frame): Ditto.
9173 (arm_push_return_address): New function.
9174 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
9175 call_dummy_location, call_dummy_breakpoint_offset_p,
9176 call_dummy_breakpoint_offset, call_dummy_p,
9177 call_dummy_stack_adjust_p, call_dummy_words,
9178 sizeof_call_dummy_words, call_dummy_start_offset,
9179 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
9180 call_dummy_address, push_return_address and push_dummy_frame for
9181 generic dummy frames.
9182
e7d717c0
JT
91832002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
9184
9185 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
9186 size computation for alloca.
9187 (sh_fp_frame_init_saved_regs): Likewise.
9188
7bbcf283
RE
91892002-05-07 Richard Earnshaw <rearnsha@arm.com>
9190
9191 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
9192 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
361d1df0 9193 * arm-tdep.c (arm_store_return_value): Use them.
7bbcf283
RE
9194 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
9195 * remote-rdp.c (remote_rdp_fetch_register): Use
9196 ARM_MAX_REGISTER_RAW_SIZE.
9197 (remote_rdp_store_register): Likewise.
9198
4657573b
ML
91992002-05-07 Michal Ludvig <mludvig@suse.cz>
9200
361d1df0 9201 * dwarf2cfi.c: Code cleanup, removed unused variables,
4657573b
ML
9202 added default labels to switch {} statements.
9203 * x86-64-tdep.c: Ditto.
9204 * x86-64-linux-nat.c: Ditto.
9205
010f3b2f
JT
92062002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
9207
9208 * solib.h: Protect against multiple inclusion.
9209
debd256d
JB
92102002-05-06 Jim Blandy <jimb@redhat.com>
9211
9ab3e532
JB
9212 Add first preprocessor macro-expansion files.
9213 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
9214 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
9215 (splay_tree_h, macroexp_h, macrotab_h): New variable.
9216 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
9217 (COMMON_OBS): Add macrotab.o, macroexp.o.
9218 (macroexp.o, macrotab.o): New rules.
9219
debd256d
JB
9220 Separate the job of reading the line number info statement program
9221 header (...expialidocious) out into its own function.
9222 * dwarf2read.c (struct line_head, struct filenames, struct
9223 directories): Replace with...
9224 (struct line_header): New structure, containing the full
9225 contents of the statement program header, including the
9226 include directory and file name tables.
9227 (read_file_scope): If we have line number info, instead of just
9228 calling dwarf_decode_lines to do all the work, call
9229 dwarf_decode_line_header first to get a `struct line_header'
9230 containing the data in the statement program header, and then
9231 pass that to dwarf_decode_lines, which will pick up where that
9232 left off. Be sure to clean up the `struct line_header' object.
9233 (dwarf_decode_line_header, free_line_header, add_include_dir,
9234 add_file_name): New functions.
9235 (dwarf_decode_lines): Move all the code to read the statement
9236 program header into dwarf_decode_line_header. Take the line
9237 header it built as the first argument, instead of the offset to
9238 the compilation unit's line number info. Use the new `struct
9239 line_header' type instead of the old structures. No need to do
9240 cleanups here now, since we don't allocate anything.
9241 (dwarf2_statement_list_fits_in_line_number_section,
9242 dwarf2_line_header_too_long): New complaints.
9243
ac3aafc7
EZ
92442002-05-06 Elena Zannoni <ezannoni@redhat.com>
9245
9246 * gdbtypes.c (init_vector_type): New function.
9247 (build_builtin_type_vec128): Simplify the representation of SIMD
9248 registers.
9249 (build_gdbtypes): Initialize new builtin vector types.
9250 (_initialize_gdbtypes): Register new vector types with gdbarch.
9251 (builtin_type_v4_float, builtin_type_v4_int32,
9252 builtin_type_v8_int16, builtin_type_v16_int8,
9253 builtin_type_v2_int32, builtin_type_v4_int16,
9254 builtin_type_v8_int8): New (renamed) SIMD types.
9255
13e49980
MK
92562002-05-06 Mark Kettenis <kettenis@gnu.org>
9257
9258 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
9259 (i387_fill_fxsave): Likewise.
9260
997b20b8
AO
92612002-05-05 Alexandre Oliva <aoliva@redhat.com>
9262
9263 * alpha-tdep.c (alpha_extract_return_value): Don't use
9264 non-constant array size in prototype.
9265
535c96ce
AC
92662002-05-04 Andrew Cagney <ac131313@redhat.com>
9267
9268 From Brian Taylor <briant at model dot com>:
9269 * ui-out.c (ui_out_field_core_addr): Use the function
9270 longest_local_hex_string_custom'to format addresses > 32 bits
9271 wide.
9272
9273 * ui-out.c (ui_out_field_core_addr): Update comment.
9274
bedfa57b
AC
92752002-05-04 Andrew Cagney <ac131313@redhat.com>
9276
9277 * stack.c (select_and_print_frame): Make static. Delete the
9278 parameter `level'.
9279 (func_command): Update call.
9280 (select_frame_command): Delete code computing the frame level.
9281 * frame.h (select_and_print_frame): Delete declaration.
9282
f621c63e
AC
92832002-05-04 Andrew Cagney <ac131313@redhat.com>
9284
9285 * sparc-tdep.c (sparc_get_saved_register): Comment why
9286 get_prev_frame call is safe.
9287
0f7d239c
AC
92882002-05-04 Andrew Cagney <ac131313@redhat.com>
9289
9290 * frame.h (select_frame): Delete level parameter.
9291 * stack.c (select_frame): Update. Use frame_relative_level to
9292 obtain the frame's level.
9293 (select_and_print_frame): Update call.
9294 (select_frame_command): Ditto.
9295 (up_silently_base): Ditto.
9296 (down_silently_base): Ditto.
9297 * ocd.c (ocd_start_remote): Ditto.
9298 * remote-rdp.c (remote_rdp_open): Ditto.
9299 * remote-mips.c (mips_initialize): Ditto.
9300 (common_open): Ditto.
9301 * remote-e7000.c (e7000_start_remote): Ditto.
9302 * m3-nat.c (select_thread): Ditto.
9303 * hppa-tdep.c (child_get_current_exception_event): Ditto.
9304 (child_get_current_exception_event): Ditto.
9305 * varobj.c (varobj_create): Ditto.
9306 (varobj_update): Ditto.
9307 (c_value_of_root): Ditto.
9308 * tracepoint.c (finish_tfind_command): Ditto.
9309 * corelow.c (core_open): Ditto.
9310 * arch-utils.c (generic_prepare_to_proceed): Ditto.
9311 * thread.c (info_threads_command): Ditto.
9312 (switch_to_thread): Ditto.
9313 * infrun.c (normal_stop): Ditto.
9314 (restore_selected_frame): Ditto.
9315 (restore_inferior_status): Ditto.
9316 * breakpoint.c (insert_breakpoints): Ditto.
9317 (watchpoint_check): Ditto.
9318 (bpstat_stop_status): Ditto.
9319 (do_enable_breakpoint): Ditto.
9320 * blockframe.c (flush_cached_frames): Ditto.
9321 (reinit_frame_cache): Ditto.
9322
71d6c7b1
AC
93232002-05-04 Andrew Cagney <ac131313@redhat.com>
9324
9325 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
9326 maintainer.
9327
cda6c68a
JB
93282002-05-04 Jim Blandy <jimb@redhat.com>
9329
9330 * gdbtypes.c (replace_type): Doc fix.
9331
5c1c87f0
AC
93322002-05-04 Andrew Cagney <ac131313@redhat.com>
9333
9334 * valprint.c (strcat_longest): Delete commented out function.
9335 Update copyright.
9336
cd9bfe15
AC
93372002-05-04 Andrew Cagney <ac131313@redhat.com>
9338
9339 * MAINTAINERS: Mark a29k as deleted.
9340 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
9341 Move new configurations to the top.
9342 * configure.tgt: Remove a29k.
9343 * config/a29k/tm-vx29k.h: Delete.
9344 * config/a29k/vx29k.mt: Delete.
9345 * config/a29k/tm-a29k.h: Delete.
9346 * config/a29k/a29k-udi.mt: Delete.
9347 * config/a29k/a29k.mt: Delete.
9348 * a29k-tdep.c: Delete.
9349 * remote-udi.c: Delete.
9350 * remote-mm.c: Delete.
9351 * remote-eb.c: Delete.
9352 * remote-adapt.c: Delete.
9353 * Makefile.in: Remove obsolete code.
cd9bfe15
AC
9354 * config/s390/s390x.mt: Ditto.
9355 * config/s390/s390.mt: Ditto.
9356 * config/sparc/sparclynx.mh: Ditto.
9357 * config/sparc/linux.mh: Ditto.
9358 * config/pa/hppaosf.mh: Ditto.
9359 * config/pa/hppabsd.mh: Ditto.
9360 * config/ns32k/nbsd.mt: Ditto.
9361 * config/mips/vr5000.mt: Ditto.
9362 * config/m68k/sun3os4.mh: Ditto.
9363 * config/m68k/nbsd.mt: Ditto.
9364 * config/m68k/m68klynx.mh: Ditto.
9365 * config/m32r/m32r.mt: Ditto.
9366 * config/i386/x86-64linux.mt: Ditto.
9367 * config/i386/nbsdelf.mt: Ditto.
9368 * config/i386/nbsd.mt: Ditto.
9369 * config/i386/i386lynx.mh: Ditto.
9370
bf0c5130
AC
93712002-05-04 Andrew Cagney <ac131313@redhat.com>
9372
9373 * target.c (debug_print_register): New function. Handle oversize
9374 registers.
9375 (debug_to_fetch_registers): Call.
9376 (debug_to_store_registers): Call.
9377
2ae1c2d2
JB
93782002-05-03 Jim Blandy <jimb@redhat.com>
9379
13a393b0
JB
9380 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
9381 (read_type): Doc fix.
9382 * gdbtypes.c (replace_type): Doc fix.
9383
2ae1c2d2
JB
9384 * stabsread.c (multiply_defined_struct): New complaint.
9385 (read_struct_type): If the type we were passed isn't empty, or
9386 incomplete, don't read the new struct type into it; complain,
9387 and return the original type unchanged. Take a new `type_code'
9388 argument, which is the type code for the new type.
9389 (read_type): Rather than storing the type's type code here, pass
9390 it as an argument to read_struct_type, and let that take care of
9391 storing it. That way, we don't overwrite the original type code,
9392 so read_struct_type can use it to decide whether we're overwriting
9393 something we shouldn't.
9394 (complain_about_struct_wipeout): New function.
9395
8de9bdc4
AC
93962002-05-03 Andrew Cagney <ac131313@redhat.com>
9397
9398 * gdbarch.sh: Assert that gdbarch is non-NULL.
9399 * gdbarch.c: Regenerate.
9400
f773fdbb
JM
94012002-05-03 Jason Merrill <jason@redhat.com>
9402
9403 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
9404 and return NULL.
9405
0e04a514
ML
94062002-05-03 Michal Ludvig <mludvig@suse.cz>
9407
9408 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
9409 (x86_64_dwarf2gdb_regno_map_length),
9410 (x86_64_dwarf2_reg_to_regnum): Added.
9411 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
9412 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
9413 (_initialize_x86_64_tdep): Synced with the change above.
9414 (x86_64_skip_prologue): Reformulated message.
9415
065432a8
PM
94162002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
9417
9418 * f-exp.y: Also use new prev_lexptr variable
9419 to improve error reporting. Based on Michael Snyder
9420 2002-04-24 dated patch to c-exp.y.
9421 * jv-exp.y: Likewise.
9422 * m2-exp.y: Likewise.
9423
a3162708
EZ
94242002-05-02 Elena Zannoni <ezannoni@redhat.com>
9425
9426 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
9427 we are dealing with vectors.
9428
03620c38
PM
94292002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9430
9431 * config/m68k/tm-nbsd.h: Obvious fix,
9432 correct machine name.
9433
6604db2e
PM
94342002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9435
9436 * p-typeprint.c (pascal_type_print_base): Add support
9437 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
9438
0906b739
PM
94392002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9440
9441 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
9442 for fondamental pascal 'char' type.
9443
e2625b33
PM
94442002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9445
9446 * p-lang.h (is_pascal_string_type): Declaration changed,
9447 new sixth argument of type char ** added.
361d1df0 9448 * p-lang.c (is_pascal_string_type): Implementation
e2625b33
PM
9449 changed. Args length_pos, length_size, string_pos, char_size
9450 can now be NULL. New argument arrayname set to the field
9451 name of the char array. Return value set to char array
9452 field index plus one.
361d1df0 9453 * p-valprint.c (pascal_val_print): Adapt to new declaration of
e2625b33
PM
9454 is_pascal_string_type function.
9455
cf17c188
AC
94562002-05-02 Andrew Cagney <cagney@redhat.com>
9457
9458 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
9459 <cagney@redhat.com> change.
9460 * gdbarch.c: Regenerate.
9461
52bca491
AC
94622002-05-02 Andrew Cagney <cagney@redhat.com>
9463
9464 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
9465 before probing for a new one. Detect errorenous gdbarch_init
9466 functions.
9467 * gdbarch.c: Regenerate.
9468
d5e72505
AC
94692002-05-01 Andrew Cagney <cagney@redhat.com>
9470
9471 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
9472 * config/mcore/tm-mcore.h: Ditto. Update copyright.
9473 * config/v850/tm-v850.h: Ditto. Update copyright.
9474
af566d9f
AC
94752002-04-30 Andrew Cagney <ac131313@redhat.com>
9476
9477 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
9478 current_gdbarch.
9479
880d85fa
MS
94802002-04-30 Michael Snyder <msnyder@redhat.com>
9481
94c30b78
MS
9482 * arm-tdep.c: Whitespace clean-ups.
9483 (arm_skip_prologue): Fix thinko; two lines
880d85fa
MS
9484 should have been removed as part of 4/24 change.
9485
6f5987a6
KB
94862002-04-30 Kevin Buettner <kevinb@redhat.com>
9487
9488 * rs6000-tdep.c: Added comment describing how fpscr register
9489 numbers were chosen.
9490
1a113c93
MS
94912002-04-30 Michael Snyder <msnyder@redhat.com>
9492
9493 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
9494
9a6f53fe
EZ
94952002-04-29 Elena Zannoni <ezannoni@redhat.com>
9496
9497 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
9498 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
9499 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
9500
11ed25ac
KB
95012002-04-29 Kevin Buettner <kevinb@redhat.com>
9502
9503 From Louis Hamilton <hamilton@redhat.com>:
9504 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
9505 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
9506 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
9507 not bfd-private xcoff data, to determine wordsize.
9508 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
9509
ae232405
AC
95102002-04-29 Andrew Cagney <ac131313@redhat.com>
9511
9512 GDB 5.2 released from 5.2 branch.
9513
91fd20f7
ML
95142002-04-29 Michal Ludvig <mludvig@suse.cz>
9515
9516 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
9517 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
9518 (x86_64_register_info_table): Added comments with register numbers.
361d1df0 9519
2dc5091b
EZ
95202002-04-29 Elena Zannoni <ezannoni@redhat.com>
9521
9522 * rs6000-tdep.c (rs6000_extract_return_value,
9523 rs6000_store_return_value): Handle returning vectors.
9524 (rs6000_gdbarch_init): Use
9525 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
9526 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
9527 New function.
9528 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
9529 vectors.
9530 (ppc_sysv_abi_push_arguments): Handle vector parameters.
9531 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
361d1df0 9532
2b9848d8
PM
95332002-04-24 Pierre Muller <ics.u-strasbg.fr>
9534
9535 * hpread.c (hpread_psymtab_to_symtab_1,
aacb1f0a 9536 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
2b9848d8
PM
9537 with fprintf_unfiltered (gdb_stderr,...).
9538
f8d17dc5
PM
95392002-04-24 Pierre Muller <ics.u-strasbg.fr>
9540
9541 * remote-array.c (printf_monitor, write_monitor,
361d1df0 9542 array_insert_breakpoint, array_remove_breakpoint ):
f8d17dc5
PM
9543 Replace fprintf (stderr,...
9544 with fprintf_unfiltered (gdb_stderr,....
9545 * remote-es.c: Likewise.
9546 * remote-os9k.c: Likewise.
9547 * remote-st.c: Likewise.
9548
2f2f1ad1
AS
95492002-04-28 Andreas Schwab <schwab@suse.de>
9550
9551 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
9552 linux-proc.o and gcore.o.
9553
b6779aa2
AC
95542002-04-26 Michal Ludvig <mludvig@suse.cz>
9555
9556 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
9557 code without frame pointers.
9558
7e57f5f4
AC
95592002-04-26 Andrew Cagney <ac131313@redhat.com>
9560
9561 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
9562 ON_STACK is needed.
9563
2ceb85d0
BE
95642002-04-26 Ben Elliston <bje@redhat.com>
9565
9566 * target.c (do_xfer_memory): Correct reference to the new option
9567 "trust-readonly-sections".
9568
f5f8a009
EZ
95692002-04-26 Elena Zannoni <ezannoni@redhat.com>
9570
9571 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
9572 * gdbtypes.c (recursive_dump_type): Output the vector flag.
9573 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
9574 vectors.
9575 (read_array_type): Record the fact that this array type is really a
9576 vector (i.e. are passed in by value).
9577
5868c862
JT
95782002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
9579
9580 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
9581 * alpha-tdep.c (alpha_sigcontext_addr): New function.
9582 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
9583 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
9584 * alpha-linux-tdep.c: Include frame.h.
9585 (alpha_linux_sigcontext_addr): New function.
9586 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
9587 alpha_linux_sigcontext_addr.
9588 * alpha-osf1-tdep.c: Include gdbcore.h.
9589 (alpha_osf1_sigcontext_addr): New function.
9590 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
9591 alpha_osf1_sigcontext_addr.
9592 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
9593 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
9594
bfb01f37
AC
95952002-04-26 Andrew Cagney <ac131313@redhat.com>
9596
361d1df0 9597 * stack.c (selected_frame_level):
bfb01f37
AC
9598 (select_frame): Do not set selected_frame_level.
9599 * frame.h (selected_frame_level): Delete declaration.
9600
15813d3f
AC
96012002-04-26 Andrew Cagney <ac131313@redhat.com>
9602
9603 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
9604 convert_from_func_ptr-addr when AIX / PowerOpen.
9605
6096c27a
AC
96062002-04-25 Andrew Cagney <ac131313@redhat.com>
9607
9608 * valops.c (hand_function_call): Call
9609 generic_save_call_dummy_addr.
9610 * frame.h (generic_save_call_dummy_addr): Declare.
9611 * blockframe.c (struct dummy_frame): Add fields call_lo and
9612 call_hi.
9613 (generic_find_dummy_frame): Check for PC in range call_lo to
9614 call_hi instead of entry_point_address.
9615 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
9616 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
9617 (generic_save_call_dummy_addr): New function.
9618
f510d44e
DM
96192002-04-24 David S. Miller <davem@redhat.com>
9620
9621 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
9622 sparc_skip_prologue.
9623 (sparc_skip_prologue): Kill frameless_p arg, and use line number
9624 information to find prologue when possible.
9625 (sparc_prologue_frameless_p): Call examine_prologue directly.
9626 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
9627 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
9628 second argument.
9629 (SKIP_PROLOGUE): Likewise.
9630
15d72a92
JT
96312002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9632
9633 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
9634 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
9635 indicate that the condition it was testing is always true.
9636 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
9637 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
9638 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
9639
accc6d1f
JT
96402002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9641
9642 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
9643 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
9644 tdep->jb_pc and tdep->jb_elt_size.
9645 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
9646 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
9647 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
9648 * alpha-nat.c (get_longjmp_target): Remove.
9649 (JB_ELEMENT_SIZE): Ditto.
9650 (JB_PC): Ditto.
9651 * alpha-tdep.c (alpha_get_longjmp_target): New function.
9652 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
9653 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
9654 to alpha_get_longjmp_target.
9655 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
9656 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
9657 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
9658
1bfdc549
AC
96592002-04-25 Andrew Cagney <ac131313@redhat.com>
9660
9661 * README: Update to GDB 5.2.
9662
1bd316f0
AC
96632002-04-25 Andrew Cagney <ac131313@redhat.com>
9664
9665 * gdbarch.sh (LC_ALL): Set to `c'.
9666
2e5ff58c
TR
96672002-04-25 Theodore A. Roth <troth@verinet.com>
9668
9669 * avr-tdep.c: Ran through gdb_indent.sh.
9670
e33ce519
TR
96712002-04-25 Theodore A. Roth <troth@verinet.com>
9672
9673 * MAINTAINERS: Add myself as AVR maintainer.
9674 * NEWS: Note new target avr.
9675
8818c391
TR
96762002-04-25 Theodore A. Roth <troth@verinet.com>
9677
9678 * Makefile.in: Add support for AVR target.
9679 * configure.tgt: Add support for AVR target.
9680 * avr-tdep.c: New file
9681 * config/avr/avr.mt: New file.
9682
79509c2d
TR
96832002-04-25 Theodore A. Roth <troth@verinet.com>
9684
9685 * MAINTAINERS: Add myself to write-after-approval.
9686
dac8068e
PM
96872002-04-24 Pierre Muller <ics.u-strasbg.fr>
9688
9689 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
9690 with fprintf_unfiltered (gdb_stderr,....
9691
25bf3106
PM
96922002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
9693
9694 Fix PR gdb/508.
9695 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
9696
24467a86
PM
96972002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
9698
9699 * p-exp.y: Also use new prev_lexptr variable
9700 to improve error reporting. Based on Michael Snyder
9701 2002-04-24 dated patch to c-exp.y.
9702
95b80706
JT
97032002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9704
9705 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
9706 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
9707 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
9708 to 0.
9709 * config/alpha/tm-alpha.h: Remove forward decls of struct type
9710 and struct value.
9711 (FUNCTION_START_OFFSET): Remove.
9712 (BREAKPOINT): Ditto.
9713
e90cc612
JT
97142002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9715
9716 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
9717 * NEWS: Ditto.
9718
6c72f9f9
JT
97192002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9720
9721 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
9722 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
9723 alpha_linux_pc_in_sigtramp.
9724 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
9725 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
9726 alpha_osf1_pc_in_sigtramp.
9727 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
9728 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
9729 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
9730 alphafbsd_pc_in_sigtramp.
9731 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
9732 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
9733 alphanbsd_pc_in_sigtramp.
9734 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
9735 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
9736
5e4f3379
JT
97372002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9738
9739 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
9740
da8ca43d
JT
97412002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9742
9743 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
9744 alphanbsd-tdep.c.
9745 (alphanbsd-nat.o): New dependency list.
9746 (alphanbsd-tdep.o): Ditto.
9747 * NEWS: Note new native NetBSD/alpha configuration.
9748 * alphanbsd-nat.c: New file.
9749 * alphanbsd-tdep.c: Ditto.
9750 * configure.host (alpha*-*-netbsd*): New host.
9751 * configure.tgt (alpha*-*-netbsd*): New target.
9752 * config/alpha/nbsd.mh: New file.
9753 * config/alpha/nbsd.mt: Ditto.
9754 * config/alpha/nm-nbsd.h: Ditto.
9755 * config/alpha/tm-nbsd.h: Ditto.
9756
36a6271d
JT
97572002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9758
9759 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
9760 (alpha-osf1-tdep.o): New dependency list.
9761 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
9762 and skip_sigtramp_frame members.
9763 * alpha-linux-tdep.c: Include gdbcore.h.
9764 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
9765 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
9766 * alpha-osf1-tdep.c: New file.
9767 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
9768 alpha-osf1-dep.c.
9769 (alpha_frame_past_sigtramp_frame): New function.
9770 (alpha_dynamic_sigtramp_offset): Ditto.
9771 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
9772 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
9773 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
9774 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
9775 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
9776 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
9777 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
9778 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
9779 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
9780 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
9781 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
9782 to find_solib_trampoline_target.
9783 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
9784 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
9785 (SKIP_TRAMPOLINE_CODE): Remove.
9786 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9787 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9788 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
9789 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
9790 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
9791 (PROC_SIGTRAMP_MAGIC): Ditto.
9792 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9793 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9794 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9795 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
9796 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
9797
2f4bc57b
JT
97982002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9799
9800 * NEWS: Note that Alpha targets are now multi-arch.
9801
665132f9
MS
98022002-04-24 Michael Snyder <msnyder@redhat.com>
9803
9804 * parser-defs.h (prev_lexptr): New external variable.
9805 * parse.c (parse_exp_1): Set prev_lexptr to null before
9806 calling the language-specific parser.
9807 * c-exp.y (yylex): Set prev_lexptr to start of current token.
9808 (yyerror): Use prev_lexptr in error reporting.
9809
32872fa7
DJ
98102002-04-24 Daniel Jacobowitz <drow@mvista.com>
9811
9812 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
9813 * gregset.h: If FILL_FPXREGSET is defined, provide
9814 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
9815 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
9816 is defined, call fill_fpxregset.
9817
57e76fac
MS
98182002-04-24 Roland McGrath <roland@frob.com>
9819
9820 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
9821 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
9822 (supply_gregset, supply_fpregset): New functions.
9823
9824 * gnu-nat.c (gnu_find_memory_regions): New function.
9825 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
9826 (gnu_xfer_memory): Add a cast.
9827
f43845b3
MS
98282002-04-24 Michael Snyder <msnyder@redhat.com>
9829
361d1df0 9830 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
f43845b3
MS
9831 loop. Add handling for "str lr, [sp, #-4]!" and for saves
9832 of argument regs ("str r(0123), [r11, #-nn"]).
361d1df0 9833 (arm_skip_prologue): Better handling for frameless functions.
f43845b3
MS
9834 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
9835 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
9836
a0abec03
AC
9837Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
9838
9839 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
9840 NUM_PSEUDO_REGS can be used.
9841
d7bd68ca
AC
98422002-04-24 Andrew Cagney <ac131313@redhat.com>
9843
9844 * arch-utils.h: Update copyright.
9845
9846 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
9847 * gdbarch.h, gdbarch.c: Re-generate.
9848
9849 * inferior.h (IN_SIGTRAMP): Delete definition.
9850 * arch-utils.c (legacy_pc_in_sigtramp): New function.
9851 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
9852
9853 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
9854 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
9855 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
9856 (find_proc_framesize): Ditto.
9857 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
9858 (alpha_init_extra_frame_info): Ditto.
9859 * infrun.c (handle_inferior_event): Ditto.
9860 (handle_inferior_event): Ditto.
9861 (check_sigtramp2): Ditto.
9862 * blockframe.c (create_new_frame): Ditto.
9863 (get_prev_frame): Ditto.
9864 * ppc-linux-tdep.c: Update comments.
9865 * i386-linux-tdep.c: Update comments.
9866 * breakpoint.c (bpstat_what): Update comment.
9867
4867e41e
DM
98682002-04-24 David S. Miller <davem@redhat.com>
9869
21d83aa5
DM
9870 * i960-tdep.c (register_in_window_p): New function.
9871 (i960_find_saved_register): Use it instead of
9872 REGISTER_IN_WINDOW_P.
9873 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
9874
4867e41e
DM
9875 * symtab.h (find_stab_function_addr): Kill extern.
9876 * minsyms.c (find_stab_function_addr): Remove from here...
9877 * dbxread.c: ... to here, and mark it static.
9878
69cdf6a2
DM
98792002-04-20 David S. Miller <davem@redhat.com>
9880
9881 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
9882 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
9883
5a595886
DM
98842002-04-21 David S. Miller <davem@redhat.com>
9885
9886 * remote-vxsparc.c (vx_read_register): Fix typo, we want
9887 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
9888 (vx_write_register): Likewise.
9889
1da1a192
JB
98902002-04-23 J. Brobecker <brobecker@gnat.com>
9891
9892 * source.c (is_regular_file): New function.
9893 (openp): Check wether file to open is a regular file
9894 to avoid opening directories.
9895
baa6f10b
JT
98962002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9897
9898 * findvar.c (extract_signed_integer): Cast printf argument
9899 to suppress format warning.
9900 (extract_unsigned_integer): Likewise.
9901 * infcmd.c (registers_info): Likewise.
9902 * top.c (get_prompt_1): Likewise.
9903 * valops.c (value_assign): Likewise.
9904 * valprint.c (print_decimal): Likewise.
9905
b2c4da81
L
99062002-04-22 H.J. Lu (hjl@gnu.org)
9907
9908 * c-exp.y (typebase): Support
361d1df0 9909
b2c4da81
L
9910 [long|long long|short] [signed|unsigned] [int|]
9911
9912 and
9913
9914 signed [long|long long|short] int
9915
f267bd6a
JT
99162002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9917
9918 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
9919 and vax-tdep.h.
9920 * vax-tdep.h: New file.
9921 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
9922 Make several routines static.
9923 (vax_get_saved_register): New function.
9924 (vax_gdbarch_init): New function.
9925 (_initialize_vax_tdep): Register vax_gdbarch_init.
9926 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
9927 Remove macros now under the control of gdbarch.
9928
da3c6d4a
MS
99292002-04-22 Michael Snyder <msnyder@redhat.com>
9930
11d3b27d
MS
9931 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
9932 Some whitespace and coding standards tweaks.
da3c6d4a 9933
a33f7558
JT
99342002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9935
9936 * vax-tdep.c: Include regcache.h.
9937 (vax_call_dummy_words): New.
9938 (sizeof_vax_call_dummy_words): New.
9939 (vax_fix_call_dummy): New function.
9940 (vax_saved_pc_after_call): Ditto.
9941 * config/vax/tm-vax.h: Don't include regcache.h.
9942 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
9943 (CALL_DUMMY): Remove.
9944 (CALL_DUMMY_WORDS): Define.
9945 (SIZEOF_CALL_DUMMY_WORDS): Define.
9946 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
9947
47a73475
MS
99482002-04-18 Michael Snyder <msnyder@redhat.com>
9949
9950 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
9951
52efde73
JT
99522002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9953
9954 * vax-tdep.c (vax_frame_chain): New function.
9955 (vax_push_dummy_frame): Ditto.
9956 (vax_pop_frame): Ditto.
9957 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
9958 (FRAMELESS_FUNCTION_INVOCATION): Use
9959 generic_frameless_function_invocation_not.
9960 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
9961 (POP_FRAME): Use vax_pop_frame.
9962
ea74468c
JT
99632002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9964
9965 * vax-tdep.c (vax_store_struct_return): New function.
9966 (vax_extract_return_value): Ditto.
9967 (vax_store_return_value): Ditto.
9968 (vax_extract_struct_value_address): Ditto.
9969 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
9970 vax_store_struct_return.
9971 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
9972 (STORE_RETURN_VALUE): Use vax_store_return_value.
9973 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
9974
5516aa92
JT
99752002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9976
9977 * vax-tdep.c (vax_frame_saved_pc): New function.
9978 (vax_frame_args_address_correct): Ditto.
9979 (vax_frame_args_address): Ditto.
9980 (vax_frame_locals_address): Ditto.
9981 (vax_frame_num_args): Move code to be in proximity to
9982 other frame-related functions.
9983 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
9984 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
9985 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
9986 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
9987 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
9988
36af0b35
L
99892002-04-22 H.J. Lu (hjl@gnu.org)
9990
9991 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
9992 includedir.
9993
ab62c900
JT
99942002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9995
9996 * vax-tdep.c (vax_frame_init_saved_regs): New function.
9997 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
9998 (FRAME_INIT_SAVED_REGS): New macro.
9999
7232b100
JT
100002002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10001
10002 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
10003
b70d2aee
JT
100042002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10005
10006 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
10007 where needed.
10008 (fetch_osf_core_registers): Likewise.
10009 (supply_gregset): Likewise.
10010
a0e8a2d1 100112002-04-22 J. Brobecker <brobecker@gnat.com>
361d1df0 10012
a0e8a2d1
JB
10013 * symfile.h (get_section_index): Define.
10014 * symfile.c (get_section_index): New function.
10015 * mdebugread.c (SC_IS_SBSS): New macro.
10016 (SC_IS_BSS): Return true for the scBss storage class only, as
10017 the scSBss storage class refers to the .sbss section.
10018 (parse_partial_symbols): Discard the symbols which associated
10019 section does not exist.
10020 Make sure to use the .sbss section index for symbols which
10021 storage class is scBss, rather than using the .bss section index.
10022
51eb8b08
JT
100232002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10024
10025 * vax-tdep.c: Update copyright years.
10026 (vax_register_name): New function.
10027 (vax_register_byte): Ditto.
10028 (vax_register_raw_size): Ditto.
10029 (vax_register_virtual_size): Ditto.
10030 (vax_register_virtual_type): Ditto.
10031 * config/vax/tm-vax.h: Update copyright years.
10032 (REGISTER_NAMES): Remove.
10033 (REGISTER_NAME): Define.
10034 (REGISTER_BYTE): Use vax_register_byte.
10035 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
10036 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
10037 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
10038
6cc1c0a8
AC
100392002-04-21 Andrew Cagney <ac131313@redhat.com>
10040
10041 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
10042 declaration
10043 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
10044
9319a2fe
DM
100452002-04-21 David S. Miller <davem@redhat.com>
10046
10047 * arch-utils.c (generic_prologue_frameless_p): Kill
10048 SKIP_PROLOGUE_FRAMELESS_P code.
10049 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
10050 references.
10051 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
10052 * arc-tdep.c (arc_prologue_frameless_p): Implement.
10053 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
10054 references.
10055 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
10056 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
10057 (sparc_gdbarch_init): Pass it to
10058 set_gdbarch_prologue_frameless_p.
a0e8a2d1 10059
e9ed6d01
JT
100602002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10061
10062 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
10063 (alphabsd-nat.o): New dependency list.
10064
36012033
JT
100652002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10066
10067 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
10068 alphafbsd-tdep.c.
10069 (alpha-linux-tdep.o): New dependency list.
10070 (alphafbsd-tdep.o): Likewise.
10071
3379287a
JT
100722002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10073
10074 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
10075 to here...
10076 * alpha-tdep.c: ...from here.
10077 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
10078
4bcbd6cb
JT
100792002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10080
10081 * config/alpha/tm-alpha.h: Move alpha_software_single_step
10082 prototype from here...
10083 * alpha-tdep.h: ...to here.
10084
b31da25e
AC
100852002-04-21 Andrew Cagney <ac131313@redhat.com>
10086
10087 * frame.h (selected_frame_level): Document as deprecated.
10088 (frame_relative_level): Declare.
10089 * stack.c (frame_relative_level): New function.
10090 (selected_frame_level): Document as deprecated.
10091 (select_frame): Do not set the selected_frame_level.
10092
10093 * stack.c (frame_info, record_selected_frame): Update.
10094 (frame_command, current_frame_command): Update.
10095 (up_silently_base, up_command, down_silently_base): Update.
10096 (down_command): Update.
10097 * inflow.c (kill_command): Update.
10098 * tracepoint.c (finish_tfind_command): Update.
10099 * corelow.c (core_open): Update.
10100 * thread.c (info_threads_command): Update.
10101 (do_captured_thread_select): Update.
10102 * infcmd.c (finish_command): Update.
10103 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
10104
9c1d6fe5
JT
101052002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10106
10107 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
10108
ab89facf
AC
101092002-04-21 Andrew Cagney <ac131313@redhat.com>
10110
10111 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
10112 type const.
10113
82a4efa1
JT
101142002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10115
10116 * alphafbsd-tdep.c: Update copyright years. Include
10117 alpha-tdep.h.
10118 (alphafbsd_use_struct_convention): Make static.
10119 (alphafbsd_init_abi): New function.
10120 (_initialize_alphafbsd_tdep): New function.
10121 * config/alpha/tm-fbsd.h: Update copyright years.
10122 (USE_STRUCT_CONVENTION): Remove.
10123
44dffaac
JT
101242002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10125
10126 * alpha-tdep.c (alpha_abi_handler): New structure to describe
10127 an Alpha ABI variant.
10128 (alpha_abi_handler_list): Declare.
10129 (alpha_gdbarch_register_os_abi): New function.
10130 (alpha_gdbarch_init): Give registered ABI variant handlers a
10131 chance to tweak the gdbarch once we have set up defaults.
10132 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
10133
65585be4
JT
101342002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10135
10136 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
10137 to standard_coerce_float_to_double.
10138 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10139
d9b023cc
JT
101402002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10141
10142 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
10143 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
10144 from gdbarch_tdep rather than a constant.
10145 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
10146 the default text address for all Alpha Unix ABIs.
10147 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
10148 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
10149
dc129d82
JT
101502002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10151
10152 * alpha-tdep.h: New file. Includes several Alpha target constants
10153 taken from...
10154 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
10155 let gdbarch deal with.
10156 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
10157 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
10158 to dependency list.
10159 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
10160 Alpha target register names.
10161 * alphabsd-nat.c: Likewise.
10162 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
10163 Alpha target register names. Make serveral routines static.
10164 (alpha_get_saved_register): New function.
10165 (alpha_abi_names): New.
10166 (process_note_abi_tag_sections): New function.
10167 (get_elfosabi): New function.
10168 (alpha_gdbarch_init): New function.
10169 (alpha_dump_tdep): New function.
10170 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
10171
d49d1e0a
AC
101722002-04-21 Andrew Cagney <ac131313@redhat.com>
10173
10174 * frame.c (find_saved_register): Delete #ifdef
10175 HAVE_REGISTER_WINDOWS code.
10176 * config/sparc/tm-sparc.h: Update comments.
10177 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
10178
92e8c9ed
AC
101792002-04-21 Andrew Cagney <ac131313@redhat.com>
10180
10181 * i960-tdep.c (i960_find_saved_register): New function.
10182 (i960_get_saved_register): New function.
10183 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
10184 (i960_get_saved_register): Declare.
10185 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
10186
e1925118
DM
101872002-04-20 David S. Miller <davem@redhat.com>
10188
10189 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
10190
29673b29
AC
101912002-04-20 Andrew Cagney <ac131313@redhat.com>
10192
10193 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
10194 instead of NUM_PSEUDO_REGS.
10195
6c86dcd5
DM
101962002-04-20 David S. Miller <davem@redhat.com>
10197
10198 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
10199 GDB_MULTI_ARCH_PARTIAL
10200 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
10201 define, let tm-sp64.h do it.
10202
aa40ec90
JT
102032002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
10204
10205 * frame.c (find_saved_register): Avoid a NULL pointer
10206 dereference and actually walk the frame list.
10207
0f79675b
AC
102082002-04-20 Andrew Cagney <ac131313@redhat.com>
10209
10210 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
10211 sorted in most most-recent-used order. Document.
10212 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 10213
f91305dd 102142002-04-19 Andrew Cagney <ac131313@redhat.com>
bf75c8c1
AC
10215
10216 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
10217 instead of ->prev.
10218 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
10219 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
10220 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
10221 instead of ->prev.
10222
73d322b1
EZ
102232002-04-19 Elena Zannoni <ezannoni@redhat.com>
10224
10225 Fix PR gdb/471.
10226 * gdbtypes.c (init_simd_type): Rewrite using new functions.
10227 (build_builtin_type_vec128): Ditto.
10228 (append_composite_type_field): Fix calculation of type length in
10229 union case.
10230
ccd9a834
EZ
102312002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
10232
10233 * config/djgpp/README: Update.
10234
10235 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
10236 compiler warnings.
10237
a57f9e49
JT
102382002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
10239
10240 * alpha-tdep.c (setup_arbitrary_frame): Rename...
10241 (alpha_setup_arbitrary_frame): ...to this.
10242 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
10243 for alpha_setup_arbitrary_frame.
10244
f4f9705a
AC
102452002-04-18 Andrew Cagney <cagney@redhat.com>
10246
10247 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
10248 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 10249
f4f9705a
AC
10250 * defs.h (breakpoint_from_pc_fn): Delete type definition.
10251 * target.h (memory_breakpoint_from_pc): Update declaration.
10252 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
10253
10254 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
10255 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
10256 * mem-break.c (memory_breakpoint_from_pc): Ditto.
10257 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
10258 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
10259 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
10260 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
10261 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
10262 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
10263 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
10264 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
10265 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
10266
10267 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
10268 const pointer.
10269 * monitor.c (monitor_insert_breakpoint): Ditto.
10270 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
10271
10272 * config/mcore/tm-mcore.h: Update copyright.
10273 * mem-break.c: Ditto.
10274 * xstormy16-tdep.c: Ditto.
10275
29f319b8
PM
102762002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
10277
10278 * p-exp.y: Add precedence rule for '^' token.
10279 This removes the shift/reduce conflicts.
10280 Remove the comment concerning these shift/reduce conflicts.
10281
ebeac11a
EZ
102822002-04-18 Elena Zannoni <ezannoni@redhat.com>
10283
10284 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
10285 (registers_powerpc_nofp): New register set for processors
10286 without floating point unit.
10287
27c31547
DM
102882002-04-18 David S. Miller <davem@redhat.com>
10289
10290 * MAINTAINERS: Add myself to write-after-approval.
10291
47a73475
MS
102922002-04-17 Michael Snyder <msnyder@redhat.com>
10293
10294 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
10295
953836b2
AC
102962002-04-17 Andrew Cagney <ac131313@redhat.com>
10297
10298 * rs6000-tdep.c (frame_initial_stack_address): Use
10299 frame_register_read to read the alloca_reg.
10300
8b0d4340
AC
103012002-04-17 Andrew Cagney <ac131313@redhat.com>
10302
10303 * frame.c (find_saved_register): Find saved registers in the next
10304 not prev frame.
10305 Fix PR gdb/365.
10306
d8864532
AC
103072002-04-17 Andrew Cagney <ac131313@redhat.com>
10308
10309 * gdbarch.sh (LANG): Set to ``c''.
10310
36cc83a3 103112002-04-15 Andrew Cagney <ac131313@redhat.com>
361d1df0 10312
36cc83a3 10313 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
361d1df0 10314
2f4150cc 103152002-04-15 Andrew Cagney <ac131313@redhat.com>
2c7ef074
AC
10316
10317 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
10318 Update copyright.
10319
628703c6 10320 * hpread.c (hpread_get_lntt): Add declaration.
2f4150cc 10321 Also fix PR gdb/391.
361d1df0 10322
56157b4a
AC
103232002-04-14 Andrew Cagney <ac131313@redhat.com>
10324
10325 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
10326 * aclocal.m4, configure: Re-generate.
10327 Fix PR gdb/391.
361d1df0 10328
6d1e3329
EZ
103292002-04-14 Elena Zannoni <ezannoni@redhat.com>
10330
10331 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
10332 instead of tm_print_insn.
10333
cb06fa07
EZ
103342002-04-14 Elena Zannoni <ezannoni@redhat.com>
10335
10336 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
10337
f208ba17
AC
103382002-04-14 Andrew Cagney <ac131313@redhat.com>
10339
10340 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
10341 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
10342 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
10343
20f01a46
DH
103442002-04-12 Don Howard <dhoward@redhat.com>
10345
10346 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
10347 max_user_call_depth.
10348 (init_cmd_lists): Initialize the new value;
10349 * cli/cli-script.c (execute_user_command): Limit the call depth of
10350 user defined commands. This avoids a core-dump when user commands
10351 are infinitly recursive.
10352
a88376a3
KB
103532002-04-12 Kevin Buettner <kevinb@redhat.com>
10354
10355 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
10356 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
10357 from tdep struct instead of DEFAULT_LR_SAVE.
10358 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
10359 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
10360 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
10361
f2172603
MS
103622002-04-12 Michael Snyder <msnyder@redhat.com>
10363
694f61fb 10364 * Remote.c: Spelling fix.
20fe79c8
MS
10365 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
10366 If no symbol found for "sbrk", try "_sbrk".
10367 (make_output_phdrs): Use bfd_section_name.
10368 (gcore_copy_callback): Use bfd_section_name.
62995fc4 10369 * eval.c: Indentation fix-ups.
169a7369
MS
10370 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
10371 in case it gets applied to an address that is already
10372 in the instruction space.
de74f71f
MS
10373 * cli/cli-decode.c (help_list): Allow long lines to wrap.
10374 * symfile.c: Fix indentation, long lines.
f2172603
MS
10375 * source.c: White space fix-up.
10376
cda5a58a
AC
103772002-04-12 Andrew Cagney <cagney@redhat.com>
10378
10379 * defs.h (read_relative_register_raw_bytes): Delete declaration.
10380 * frame.c (frame_register_read): New function. Return non-zero on
10381 success.
10382 (read_relative_register_raw_bytes_for_frame): Delete.
10383 (read_relative_register_raw_bytes): Delete.
10384 * frame.h (frame_register_read): Declare.
10385 * d30v-tdep.c: Update Copyright. Use frame_register_read.
10386 * sh-tdep.c: Ditto.
10387 * infcmd.c (do_registers_info): Ditto.
10388 * hppa-tdep.c: Ditto.
10389 * rs6000-tdep.c: Ditto.
10390 * h8500-tdep.c: Ditto.
10391 * mips-tdep.c: Ditto.
10392 * h8300-tdep.c: Ditto.
10393 * z8k-tdep.c: Ditto.
10394
2ea5f656
KB
103952002-04-12 Kevin Buettner <kevinb@redhat.com>
10396
10397 From Jimi X <jimix@watson.ibm.com>:
10398 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
10399 64-bit SysV ABI.
10400
27b15785
KB
104012002-04-12 Kevin Buettner <kevinb@redhat.com>
10402
10403 From Jimi X <jimix@watson.ibm.com>:
10404 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
10405 bfd info.
10406
5d57ee30
KB
104072002-04-12 Kevin Buettner <kevinb@redhat.com>
10408
10409 From Jimi X <jimix@watson.ibm.com>:
10410 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
10411 register sets for these processor variants.
10412
bc1e36ca
DJ
104132002-04-11 Daniel Jacobowitz <drow@mvista.com>
10414
bc1e36ca
DJ
10415 * regformats/reg-ppc.dat: Support FPSCR.
10416
e3f36dbd
KB
104172002-04-11 Kevin Buettner <kevinb@redhat.com>
10418
10419 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
10420 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
10421 Add fpscr as an invalid/unfetchable register.
10422 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
10423 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
10424 (fill_fpregset): Add support for register fpscr.
10425 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
10426 (fill_gregset): Account for the fact that register ``mq'' might
10427 not exist.
10428 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
10429 (registers_power): Add fpscr to register set at slot 71.
10430 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
10431 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
10432
943c9c25
MS
104332002-04-11 Michael Snyder <msnyder@redhat.com>
10434
10435 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
10436 * configure: Regenerate.
10437 * config.in: Regenerate.
10438 * acconfig.h: Add define for _SYSCALL32.
10439 * core-sol2.c: Remove #define _SYSCALL32.
10440 * solib-legacy.c: Remove #define _SYSCALL32.
10441
d8c0a2e7
AC
104422002-04-10 Andrew Cagney <ac131313@redhat.com>
10443
10444 * stack.c (select_frame): Cleanup internal error message, do not
10445 use %p.
10446
7cc19214
AC
104472002-04-10 Andrew Cagney <ac131313@redhat.com>
10448
10449 * stack.c (select_frame): Check that selected_frame and the
10450 specified level are as expected.
10451 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
10452 Update copyright.
10453 * frame.h (struct frame_info): Add field `level'. Update
10454 copyright.
10455 Work-in-progress PR gdb/464.
10456
67a2b77e
AC
104572002-04-10 Andrew Cagney <ac131313@redhat.com>
10458
10459 * maint.c (maint_print_section_info): Rename print_section_info.
10460 (print_bfd_section_info, print_objfile_section_info): Update.
10461 * inferior.h (struct gdbarch): Add opaque declaration.
10462 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
10463 * gdbarch.h: Regenerate.
10464
8cfda98c
ML
104652002-04-10 Michal Ludvig <mludvig@suse.cz>
10466
10467 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
10468 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
10469 (kernel_u_size): Added.
10470 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
10471 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
10472
ca439ad2 104732002-04-04 Jim Ingham <jingham@apple.com>
361d1df0 10474
ca439ad2
JI
10475 * valarith.c (find_size_for_pointer_math): New function, either returns
10476 the size for a pointer's target, returns 1 for void *, or errors for
10477 incomplete types.
10478 (value_add, value_sub): use find_size_for_pointer_math.
10479
2f2893d9
DJ
104802002-04-09 Daniel Jacobowitz <drow@mvista.com>
10481
10482 * linux-low.c (linux_look_up_symbols): New hook.
10483 (linux_target_ops): Add linux_look_up_symbols.
10484 * remote-utils.c (decode_address): New function.
10485 (look_up_one_symbol): New function.
10486 * server.c (handle_query): Call target look_up_symbols hook.
10487 * server.h (look_up_one_symbol): Add prototype.
10488 * target.h (struct target_ops): Add look_up_symbols hook.
10489
96cb11df
AC
104902002-04-09 Andrew Cagney <ac131313@redhat.com>
10491
10492 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
10493 override FP_REGNUM with frame->fp. Update copyright.
10494 * parse.c (num_std_regs, std_regs): Delete.
10495 (target_map_name_to_register): Do not search std_regs. Update
10496 function description.
10497 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
10498 declarations. Update copyright.
10499 Fix PR gdb/251.
361d1df0 10500
97658e92
DJ
105012002-04-09 Daniel Jacobowitz <drow@mvista.com>
10502
10503 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
10504 after the last symbol in a block.
10505
6044e3eb
PM
105062002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
10507
10508 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
10509 is non zero as a found symbol.
10510
0406ec40
AC
105112002-04-08 Andrew Cagney <ac131313@redhat.com>
10512
10513 * findvar.c: Include "builtin-regs.h".
10514 (value_of_register): Call value_of_builtin_reg when applicable.
10515 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
10516 (target_map_name_to_register): Call
10517 builtin_reg_map_name_to_regnum.
10518 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
10519 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
10520 (builtin_regs_h): Define.
10521 (builtin-regs.o): New target.
10522 (findvar.o): Add $(builtin_regs_h).
10523 * builtin-regs.c, builtin-regs.h: New files.
10524 * std-regs.c: New file.
10525 Partial fix for PR gdb/251.
10526
56a6dfb9
KB
105272002-04-08 Kevin Buettner <kevinb@redhat.com>
10528
10529 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
10530 it's no longer required.
10531
3a808432
AC
105322002-04-08 Andrew Cagney <ac131313@redhat.com>
10533
10534 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
10535
7c40d541
KB
105362002-04-08 Kevin Buettner <kevinb@redhat.com>
10537
10538 From Jimi X <jimix@watson.ibm.com>:
10539 * rs6000-tdep.c (rs6000_software_single_step): Use
10540 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
10541 and size. Use target_insert_breakpoint() and
10542 target_remove_breakpoint() to insert and remove breakpoints
10543 instead of explicit memory reads and writes.
10544
cc9836a8
KB
105452002-04-08 Kevin Buettner <kevinb@redhat.com>
10546
10547 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
10548 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
10549 ELF_OBJECT_FORMAT ifdef.
10550
7495d1dc
KB
105512002-04-08 Kevin Buettner <kevinb@redhat.com>
10552
10553 From Jimi X <jimix@watson.ibm.com>:
10554 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
10555
4288e836
KB
105562002-04-08 Kevin Buettner <kevinb@redhat.com>
10557
10558 From Jimi X <jimix@watson.ibm.com>:
10559 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
10560 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
10561
a4e4e501
MK
105622002-04-07 Mark Kettenis <kettenis@gnu.org>
10563
10564 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
10565 s/asprintf/xasprintf/.
10566 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
10567
006defba
AC
105682002-04-07 Andrew Cagney <ac131313@redhat.com>
10569
10570 I believe Jeff Law denies responsability for this one:
10571 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
10572 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
10573 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
10574 Work-around for PR gdb/366.
10575
7aa83cac
EZ
105762002-04-07 Elena Zannoni <ezannoni@redhat.com>
10577
10578 * remote-e7000.c (write_small, e7000_read_inferior_memory,
10579 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
10580 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
10581
cf1fcca1
EZ
105822002-04-07 Elena Zannoni <ezannoni@redhat.com>
10583
10584 * sh-tdep.c (sh_fp_frame_init_saved_regs,
10585 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
10586 information.
10587
3f289e6f
AC
105882002-04-07 Andrew Cagney <ac131313@redhat.com>
10589
10590 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
10591 maintainer.
10592
129188f6
AC
105932002-04-07 Andrew Cagney <ac131313@redhat.com>
10594
10595 * README (Reporting Bugs in GDB): Document the bug web page as the
10596 prefered way of submitting bugs.
10597 Fix PR gdb/402.
10598
1200cd6e
AC
105992002-04-06 Andrew Cagney <ac131313@redhat.com>
10600
10601 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
10602 -1. Update comment.
10603 * gdbarch.h, gdbarch.c: Re-generate.
10604
2853c33c
AS
106052002-04-07 Andreas Schwab <schwab@suse.de>
10606
10607 * m68klinux-nat.c (fill_fpregset): Properly pass address of
10608 buffer to regcache_collect.
10609
c2169756
AC
106102002-04-06 Andrew Cagney <ac131313@redhat.com>
10611
10612 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
10613 * gdbarch.c, gdbarch.h: Re-generate.
10614
25f1b008
AC
106152002-04-06 Andrew Cagney <ac131313@redhat.com>
10616
10617 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
10618 declaration. Fix -Werror.
10619
59263426
DJ
106202002-04-05 Daniel Jacobowitz <drow@mvista.com>
10621
10622 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
10623 * gdbarch.c: Regenerate.
10624
f5db4da3
MS
106252002-04-05 Michael Snyder <msnyder@redhat.com>
10626
80f8a6eb
MS
10627 * breakpoint.c (clear_command): Rewrite middle section to
10628 combine two loops with identical control conditions.
10629 Add a cleanup to eliminate a memory leak.
f5db4da3
MS
10630 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
10631
ad3dcc5c
L
106322002-04-05 H.J. Lu (hjl@gnu.org)
10633
10634 * solib-svr4.c (bkpt_names): Add "__start".
10635
f32e7a74
AC
106362002-04-04 Andrew Cagney <ac131313@redhat.com>
10637
10638 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
10639 as test for 64 bit target.
10640
8227c0ff
AC
106412002-04-05 Andrew Cagney <ac131313@redhat.com>
10642
10643 * h8500-tdep.c (h8500_write_fp): Delete function.
10644 * dwarf2cfi.c (cfi_write_fp): Document as not used.
10645 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
10646 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
10647 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
10648 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
10649 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
10650 (s390_write_fp):
10651 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
10652 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
10653 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
10654 (d10v_write_fp): Delete function.
10655 * inferior.h (write_fp, generic_target_write_fp): Delete
10656 declarations.
10657 * regcache.c (generic_target_write_fp): Delete function.
10658 (write_fp): Delete function.
10659 * gdbarch.sh (TARGET_WRITE_FP): Delete.
10660 * gdbarch.h, gdbarch.c: Regenerate.
10661 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
10662 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
10663 (sparc64_write_fp): Delete declaration.
10664 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
10665 (h8500_write_fp): Delete declaration.
10666
2757dd86
AC
106672002-04-04 Andrew Cagney <ac131313@redhat.com>
10668
10669 * sparc-tdep.c (sparc64_write_fp): Delete.
10670 (sparc_push_dummy_frame): Replace write_fp call with code to store
10671 the FP directly.
10672 (sparc_gdbarch_init): Do not initialize write_fp.
10673
c69255e1
KB
106742002-04-05 Kevin Buettner <kevinb@redhat.com>
10675
10676 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
10677 clause.
10678
ae767bfb
JB
106792002-03-29 Jim Blandy <jimb@redhat.com>
10680
10681 * stack.c (get_selected_block): Add new argument `addr_in_block',
10682 used to return the exact code address we used to select the block,
10683 not just the block.
10684 * blockframe.c (get_frame_block, get_current_block): Same.
10685 * frame.h (get_frame_block, get_current_block,
10686 get_selected_block): Update declarations.
10687 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
10688 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
10689
84d2ac95
MS
106902002-04-05 Michael Snyder <msnyder@redhat.com>
10691
10692 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
10693 warning message.
10694
596aa3bf
JB
106952002-04-05 J. Brobecker <brobecker@gnat.com>
10696
10697 * utils.c (xfullpath): New function.
10698 * defs.h (xfullpath): Add declaration.
10699 * source.c (openp): Use xfullpath in place of gdb_realpath to
10700 avoid resolving the basename part of filenames when the
10701 associated file is a symbolic link. This fixes a potential
10702 inconsistency between the filenames known to GDB and the
10703 filenames it prints in the annotations.
10704 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
10705 to be able to match a filename with either the real filename, or
10706 the name of any symbolic link to this file.
10707 (lookup_partial_symtab): Ditto.
10708
c02f5703
MS
107092002-04-04 Michael Snyder <msnyder@redhat.com>
10710
10711 * breakpoint.c: Add support for hardware breakpoints in overlays.
10712 (overlay_events_enabled): New state variable.
10713 (insert_breakpoints): Use overlay_events_enabled to decide
10714 whether to attempt to set a breakpoint at the overlay load addr.
10715 Handle bp_hardware_breakpoint as well as bp_breakpoint.
10716 (remove_breakpoint): Use overlay_events_enabled to decide
10717 whether breakpoints need to be removed from overlay load addr.
10718 Handle bp_hardware_breakpoint as well as bp_breakpoint.
10719 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
361d1df0 10720 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
c02f5703
MS
10721 disable_overlay_breakpoints): Update overlay_events_enabled.
10722
5fb290d7
DJ
107232002-04-04 Daniel Jacobowitz <drow@mvista.com>
10724
10725 * dwarf2read.c (struct function_range): New.
10726 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
10727 (check_cu_functions): New.
10728 (read_file_scope): Initialize global function lists.
10729 Call dwarf_decode_line after processing children.
10730 (read_func_scope): Add to global function list.
10731 (dwarf_decode_lines): Call check_cu_functions everywhere
10732 record_line is called. Call record_line with a linenumber
10733 of 0 to mark sequence ends.
10734
7b3fabf0
ML
107352002-04-04 Michal Ludvig <mludvig@suse.cz>
10736
361d1df0 10737 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7b3fabf0
ML
10738 change sync with glibc.
10739
bce58c09
JB
107402002-04-03 Jim Blandy <jimb@redhat.com>
10741
10742 * configure.in: Call AC_C_INLINE.
10743 * configure: Regenerated.
361d1df0 10744
2fccf04a
DJ
107452002-04-01 Daniel Jacobowitz <drow@mvista.com>
10746
10747 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
10748 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
10749
2d1bfe2e
MK
107502002-03-31 Mark Kettenis <kettenis@gnu.org>
10751
a5941fbf
MK
10752 * NEWS: Mention gcore support on FreeBSD/i386.
10753
a90cd31d
MK
10754 * fbsd-proc.c: New file.
10755 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
10756 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
10757
2d1bfe2e
MK
10758 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
10759 while statement.
10760
9eb6e5a1
JB
107612002-03-29 Jim Blandy <jimb@redhat.com>
10762
10763 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
10764 unescaped newlines in string literals, but newer ones don't. So
10765 escape them.
10766
f02df580
MS
107672002-03-26 Michael Snyder <msnyder@redhat.com>
10768 Andrew Cagney <cagney@redhat.com>
10769
361d1df0 10770 * cli/cli-dump.c: New file. Dump memory to file,
f02df580
MS
10771 restore file to memory.
10772 * cli/cli-dump.h: New file.
10773 * Makefile.in: Add rules, dependencies for cli-dump.o.
89743e04 10774 * NEWS: Mention new commands.
f02df580 10775
109f874e
MS
107762002-03-28 Michael Snyder <msnyder@redhat.com>
10777
10778 * symfile.c (symbol_file_add): Move test for null symbols to later.
10779
520f6ade
AC
107802002-03-27 Andrew Cagney <ac131313@redhat.com>
10781
10782 From veksler at il.ibm.com:
10783 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
10784 the xstrduped original path.
10785 Fix PR gdb/417.
10786
d4654627
MS
107872002-03-27 Michael Snyder <msnyder@redhat.com>
10788
10789 * breakpoint.c (_initialize_breakpoint): Clean up help string.
10790 * infcmd.c (_initialize_infcmd): Ditto.
10791 * language.c (_initialize_language): Ditto.
10792 * symfile.c (_initialize_symfile): Ditto.
10793 * top.c (_init_main): Ditto.
10794 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10795
6be8bc0c
EZ
107962002-03-27 Elena Zannoni <ezannoni@redhat.com>
10797
10798 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
10799 vector registers handling.
10800 (skip_prologue): Handle new AltiVec instructions. Fill in new
10801 fields of frame data.
10802 (frame_get_saved_regs): Fill in information for AltiVec registers.
10803
12af6855
JB
108042002-03-27 Jim Blandy <jimb@redhat.com>
10805
10806 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
10807 a function; leave this macro here to invoke that function.
10808 (symbol_init_mangled_name): Declaration for that function.
10809 * symtab.c (symbol_init_mangled_name): New function.
10810
dc672865
AC
108112002-03-27 Andrew Cagney <ac131313@redhat.com>
10812
10813 * valarith.c: Replace strerror with safe_strerror.
10814 * tracepoint.c: Ditto.
10815 * lin-lwp.c: Ditto.
10816 * go32-nat.c: Ditto.
10817 * inflow.c: Ditto.
10818 * gnu-nat.c: Ditto.
10819
d96429cd
AS
108202002-03-27 Andreas Schwab <schwab@suse.de>
10821
10822 * event-top.c (command_line_handler): Remove useless if.
10823
7e336ba1
AJ
108242002-03-27 Andreas Jaeger <aj@suse.de>
10825
10826 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
10827 comment.
10828
de220d0f
ML
108292002-03-27 Michal Ludvig <mludvig@suse.cz>
10830
10831 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
10832 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
10833 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
10834 (x86_64_linux_dr_get_status, supply_gregset),
10835 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
10836 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
10837 (x86_64_register_info_table): Add.
10838 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
10839 (x86_64_register_raw_size, x86_64_register_virtual_type),
10840 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
10841 general x86_64_register_info_table.
10842 (i386_gdbarch_init): gdbarch_register_bytes is now set
10843 dynamicaly during initialization.
10844 * regformats/reg-x86-64.dat: Synced with changes to registers above.
10845 * gdbserver/linux-x86-64-low.c: Ditto.
7e336ba1 10846
0e98d0a7
DJ
108472002-03-27 Daniel Jacobowitz <drow@mvista.com>
10848
10849 * gdbserver/server.c (main): Call target_signal_to_host_p
10850 and target_signal_to_host on signals received from the remote.
10851 * gdbserver/remote-utils.c (prepare_resume_reply): Call
10852 target_signal_from_host on signals sent to the remote.
10853 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
10854 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
10855
3130066b
DJ
108562002-03-27 Daniel Jacobowitz <drow@mvista.com>
10857
10858 * signals/signals.c: Include "server.h" in gdbserver build.
10859 (target_signal_from_name): Don't use STREQ.
10860 (_initialize_signals): Likewise. Don't include function in
10861 gdbserver build.
10862
9aedf4f4
DJ
108632002-03-27 Daniel Jacobowitz <drow@mvista.com>
10864
10865 * signals.c: Moved to...
10866 * signals/signals.c: Here.
7e336ba1 10867 * Makefile (signals.o): Update.
9aedf4f4 10868
3fa41cdb
JL
108692002-03-26 Jeff Law (law@redhat.com)
10870
10871 * somread.c (som_symtab_read): Remove some commented out code and
10872 updated related comments. Do not set the minimal symbol table to
10873 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
10874 in a dynamic executable.
10875 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
10876 where we are unable to find the minimal symbol for the given
10877 PC value.
10878
ee677e8d
MS
108792002-03-25 Jeff Law (law@redhat.com)
10880
10881 * linux-proc.c (read_mapping): Scan up to end of line for filename.
10882
e76e1718
ML
108832002-03-25 Michal Ludvig <mludvig@suse.cz>
10884
10885 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
10886
18a642a1
AC
108872002-03-23 Andrew Cagney <ac131313@redhat.com>
10888
10889 * command.h: Update copyright.
10890 (struct cmd_list_element): Replace definition with opaque
10891 declaration.
10892 (enum cmd_types): Document that it will eventually be moved to
10893 cli/cli-decode.h
10894 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
10895 (MALLOCED_REPLACEMENT): Delete macro.
10896 * Makefile.in (cli_decode_h): Add $(command_h).
10897 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7e336ba1 10898 * top.c: Include "cli/cli-decode.h".
18a642a1
AC
10899 * completer.c: Include "cli/cli-decode.h".
10900 * maint.c: Include "cli/cli-decode.h".
10901 * cli/cli-decode.h: Include "command.h".
10902 (enum command_class): Delete.
10903 (enum cmd_types): Comment out.
10904 (enum cmd_auto_boolean): Delete.
10905 (enum var_types): Delete.
10906
b2875cc0
AC
109072002-03-23 Andrew Cagney <ac131313@redhat.com>
10908
10909 * cli/cli-decode.c: Include "gdb_assert.h".
10910 (add_set_or_show_cmd): New static function.
10911 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
10912 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
10913 all fields, such as func, from the set command.
10914
3b45974e
AC
109152002-03-23 Andrew Cagney <ac131313@redhat.com>
10916
10917 * MAINTAINERS (sh-elf): Change warning flag to -w.
10918
823ca731
AC
109192002-03-23 Andrew Cagney <cagney@redhat.com>
10920
10921 * defs.h (error): Add printf format attribute.
10922 * thread-db.c (thread_from_lwp): Fix error format string.
10923 * stack.c (parse_frame_specification): Ditto.
10924 * cli/cli-decode.c (undef_cmd_error): Ditto.
10925 * scm-lang.c (scm_lookup_name): Ditto.
10926 * tracepoint.c (trace_error): Ditto.
10927 * remote-utils.c (usage): Ditto.
10928 * remote.c (compare_sections_command): Ditto.
10929 Fix PR gdb/328.
10930
0e101458
AC
109312002-03-22 Andrew Cagney <ac131313@redhat.com>
10932
10933 * gdbtypes.c (append_composite_type_field): New function.
10934 (init_composite_type): New function.
10935 * gdbtypes.h (append_composite_type_field): Declare.
10936 (init_composite_type): Ditto.
10937
8e0662df
EZ
109382002-03-22 Elena Zannoni <ezannoni@redhat.com>
10939
10940 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7e336ba1 10941 function.
8e0662df
EZ
10942 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
10943 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
10944 structure returning convention for SYSV ABI case, but not
10945 for GNU/Linux, FreeBSD, or NetBSD.
10946
3121eff0
DJ
109472002-03-22 Daniel Jacobowitz <drow@mvista.com>
10948
10949 * symtab.h (lookup_block_symbol): Add mangled_name argument
10950 to prototype.
10951
10952 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
10953 with new mangled_name argument.
10954 * linespec.c (decode_line_1): Likewise.
10955 * valops (value_of_this): Likewise.
10956 * symtab.c (lookup_transparent_type): Likewise.
10957 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
10958 (lookup_symbol): If we are given a mangled name, pass it down
10959 to lookup_symbol_aux.
10960 (lookup_block_symbol): If we are given a mangled name to check
10961 against, only return symbols which match it.
10962
349b409f
CF
109632002-03-22 Christopher Faylor <cgf@redhat.com>
10964
10965 * win32-nat.c (child_create_inferior): Check for proper shell to use
10966 here, in case the user changes it on the fly.
10967 (_initialize_inftarg): Remove shell path considerations.
10968
2a873819
EZ
109692002-03-21 Elena Zannoni <ezannoni@redhat.com>
10970
10971 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
10972 for gdbarch_max_register_raw_size and max_register_virtual_size.
10973 Adjust copyright year.
10974
a1b9830c
DJ
109752002-03-21 Daniel Jacobowitz <drow@mvista.com>
10976
10977 * dbxread.c (process_one_symbol): Extend the first N_SLINE
10978 in a function to cover the entire beginning of the function
10979 as well if it does not already.
10980
8b5790f2
TR
109812002-03-21 Tom Rix <trix@redhat.com>
10982
10983 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
10984 (rs6000_ptrace64): Renamed from ptrace64.
10985
bdbe5747
MH
109862002-03-20 Martin M. Hunt <hunt@redhat.com>
10987
10988 * gdbserver/remote-utils.c (remote_open): Don't call
10989 getprotobyname, we're all using TCP here so just use
10990 IPPROTO_TCP.
7e336ba1 10991 * gdbserver/gdbreplay.c (remote_open): Ditto.
bdbe5747
MH
10992
109932002-03-20 Martin M. Hunt <hunt@redhat.com>
7e336ba1 10994
bdbe5747
MH
10995 * regcache.c (_initialize_regcache): No need to call
10996 build_regcache() at this time; it gets called whenever
10997 the gdbarch changes.
10998
7781cd62
DB
109992002-03-20 David O'Brien <obrien@FreeBSD.org>
11000
11001 * sparc-nat.c: Include sys/param.h where possible.
11002
f65ca430
DJ
110032002-03-20 Daniel Jacobowitz <drow@mvista.com>
11004
11005 Fix PR gdb/422.
11006 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
11007 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
11008 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
11009 complex types.
11010 * stabsread.c (rs6000_builtin_type): Likewise.
11011 (read_sun_floating_type): Likewise.
11012
0c867556
PS
110132002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11014
11015 * stabsread.c (read_member_functions): Remove skip code for duplicate
11016 constructor/destructor methods. Use standard parsing for these
11017 methods and just do not chain them to the list of methods after
11018 parsing.
11019
12b9c64f
AO
110202002-03-19 Alexandre Oliva <aoliva@redhat.com>
11021
11022 * coffread.c: Remove redundant static declarations. Replace
11023 occurrences of `PTR' with `void *'.
11024 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
11025 * top.h (quit_cover): Likewise.
11026 * defs.h (catch_errors): Likewise.
11027
349c5d5f
AC
110282002-03-18 Andrew Cagney <ac131313@redhat.com>
11029
11030 * defs.h (XMALLOC): Define.
11031 * gdb-events.sh (XMALLOC): Delete macro.
11032 * gdb-events.c, gdb-events.h: Regenerate.
11033 * gdbarch.sh (XMALLOC): Delete macro.
11034 * gdbarch.c: Regenerate.
11035 * serial.c (XMALLOC): Delete macro.
11036 * ui-file.c (XMALLOC): Ditto.
11037 * ser-unix.h (XMALLOC): Ditto.
11038 * sh-tdep.c (XMALLOC): Ditto.
11039 * ui-out.c (XMALLOC): Ditto.
11040 * utils.c (XMALLOC): Ditto.
11041 * i386-tdep.c (XMALLOC): Ditto.
11042 * gdb-events.c (XMALLOC): Ditto.
11043 * d10v-tdep.c (XMALLOC): Ditto.
11044 * cli-out.c (XMALLOC): Ditto.
11045
11046 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
11047 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
11048 * ui-file.c, ui-out.c: Ditto.
11049
7d0766f3
AC
110502002-03-18 Andrew Cagney <ac131313@redhat.com>
11051
11052 * command.h (struct cmd_list_element): Add field context.
11053 (set_cmd_context, get_cmd_context): Declare.
11054 * cli/cli-decode.h: Ditto.
11055 * cli/cli-decode.c (get_cmd_context): New function.
11056 (set_cmd_context): New function.
11057 (add_cmd): Initialize context.
11058 Part of fixing PR gdb/145 and PR gdb/146.
11059
5913bcb0
AC
110602002-03-17 Andrew Cagney <ac131313@redhat.com>
11061
1868c04e
AC
11062 * cli/cli-decode.c (cmd_type): New function.
11063 * command.h (cmd_type): Declare.
11064 * infrun.c (set_schedlock_func): Call function cmd_type.
11065 * kod.c (kod_set_os): Call cmd_type.
11066 * cris-tdep.c (cris_version_update): Use function cmd_type.
11067 (cris_mode_update, cris_abi_update): Ditto.
11068
5913bcb0
AC
11069 * command.h: (execute_cmd_post_hook): Declare.
11070 (execute_cmd_pre_hook): Declare.
11071 * cli/cli-script.c (clear_hook_in_cleanup): New function.
11072 (execute_cmd_post_hook, execute_cmd_pre_hook): New
11073 functions. Execute pre/post hook while ensuring that afterwords
11074 hook_in is cleared.
11075 * top.c (execute_command): Use execute_cmd_post_hook, and
11076 execute_cmd_pre_hook to execute pre/post commands.
11077 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
11078 hook_stop_stub.
11079 (hook_stop_stub): Call execute_cmd_pre_hook.
11080
b51450c9
AC
110812002-03-17 Andrew Cagney <ac131313@redhat.com>
11082
11083 * kod.c (kod_set_os): Revert previous change. Is called by ``info
11084 set'' and this leads to a core dump. Move xstrdup of
11085 operating_system to after check that it is not NULL.
11086
f66c9f11
AC
110872002-03-17 Andrew Cagney <ac131313@redhat.com>
11088
8e694ecf
AC
11089 * kod.c (kod_set_os): Remove unnecessary check that
11090 ``command->type'' is set_cmd.
11091
f66c9f11
AC
11092 * valprint.c (set_input_radix): Use input_radix.
11093 (set_output_radix): Use output_radix.
11094 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
11095 isn't reverted.
11096
9d01611c
AC
110972002-03-16 Andrew Cagney <ac131313@redhat.com>
11098
11099 * value.h (struct value): Delete field ``substring_addr''. Change
11100 aligner fields to force_doublest_align, force_longest_align,
ee2d3b3a
AC
11101 force_core_addr_align and force_pointer_aligh.
11102
11103 * value.h (struct value): Fix typo in above change.
9d01611c 11104
4156bb53
PS
111052002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11106
11107 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
11108 to fix internal_error from ``maintenance print architecture''.
11109
0e5e3ea6
PS
111102002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11111
11112 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
11113 for gcc versions after gcc-2.8.1.
11114
9b013045
PS
111152002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11116
11117 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
11118 for method resolution. Restore adjustment of ``this'' pointer after
11119 calling value_struct_elt, which was accidentally removed during the
11120 HP merge.
11121
376c9600
AC
111222002-03-15 Andrew Cagney <ac131313@redhat.com>
11123
11124 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
11125 value_of_register.
11126 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
11127 get_saved_register.
11128 * value.h (value_of_register): Update.
11129
a4db0f07
RH
111302002-03-14 Richard Henderson <rth@redhat.com>
11131
11132 * configure.in: Detect declaration for canonicalize_file_name.
11133 * utils.c (canonicalize_file_name): Declare, if needed.
11134 (gdb_realpath): Prefer realpath if available and usable.
11135 * config.in, configure: Rebuild.
11136
96383835
RH
111372002-03-14 Richard Henderson <rth@redhat.com>
11138
11139 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
11140 a constant array bound.
11141
11142 * MAINTAINERS: Add myself to write-after-approval.
11143
75245b24
MS
111442002-03-14 Michael Snyder <msnyder@redhat.com>
11145
11146 * symfile.c (syms_from_objfile): Return immediately if no syms.
11147 (symbol_file_add): Return immediately if no syms.
11148 (find_sym_fns): Return immediately if no syms.
11149
e641a1ca
ML
111502002-03-13 Michal Ludvig <mludvig@suse.cz>
11151
11152 * gdbserver/remote-util.c (remote_open): Print remote-side's
11153 IP address when remote debugging over the network.
7e336ba1 11154
df08bfec
DB
111552002-03-12 David O'Brien <obrien@FreeBSD.org>
11156
11157 * config/sparc/fbsd.mh: Fix copyright.
11158 * config/sparc/fbsd.mt: Likewise.
11159
9a57864f
RE
111602002-03-11 Richard Earnshaw <rearnsha@arm.com>
11161
11162 * MAINTAINERS: Fix typo in name of gdb warnings option.
11163 (x86-64): Fix formating so that this can be parsed by awk.
11164
dd7bf85e
DJ
111652002-03-10 Daniel Jacobowitz <drow@mvista.com>
11166
11167 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
11168 * defs.h: Include "gdb/signals.h".
11169 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
11170
33a0a2ac
ML
111712002-03-10 Michal Ludvig <mludvig@suse.cz>
11172
11173 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7e336ba1 11174 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
33a0a2ac
ML
11175 from x86-64-tdep.h
11176
dd824b04
DJ
111772002-03-10 Daniel Jacobowitz <drow@mvista.com>
11178 Don Howard <dhoward@redhat.com>
11179
11180 * mips-tdep.c (ST0_FR): Define.
11181 (mips2_fp_compat): New function, temporarily disabled.
11182 (mips_read_fp_register_single): New function.
11183 (mips_read_fp_register_double): New function.
11184 (mips_print_register): Use them.
11185 (do_fp_register_row): Likewise.
11186
6a41ff59
AC
111872002-03-09 Andrew Cagney <ac131313@redhat.com>
11188
11189 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
11190 approval''.
11191
4ea09c10
PS
111922002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11193
11194 * stabsread.c (read_member_functions): Fix is_stub test for
11195 static member functions, improve comment.
11196
6ccc741d
RE
111972002-03-07 Richard Earnshaw <rearnsha@arm.com>
11198
11199 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
11200 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
11201 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
11202 commands that set boolean values.
11203 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
11204 (arm_rdi_resume): Always initialize PC.
11205 (arm_rdi_open): Don't use rslt as a boolean.
11206 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
11207 (arm_rdi_fetch_registers, arm_rdi_store_registers)
11208 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
11209 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
11210
438013df
AO
112112002-03-06 Alexandre Oliva <aoliva@redhat.com>
11212
11213 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
11214 * configure: Rebuilt.
11215
70ed8774
SC
112162002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11217
11218 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
11219 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
11220
5ba2abeb
AC
112212002-03-06 Andrew Cagney <ac131313@redhat.com>
11222
11223 * cli/cli-decode.c (set_cmd_completer): New function.
11224 * command.h (set_cmd_completer): Declare.
11225 * cli/cli-decode.h (set_cmd_completer): Ditto.
11226
11227 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
11228 * cli/cli-cmds.c (init_cli_cmds): Ditto.
11229 * win32-nat.c (_initialize_inftarg): Ditto.
11230 * remote-rdi.c (_initialize_remote_rdi): Ditto.
11231 * proc-api.c (_initialize_proc_api): Ditto.
11232 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
11233 * source.c (_initialize_source): Ditto.
11234 * exec.c (_initialize_exec): Ditto.
11235 * solib.c (_initialize_solib): Ditto.
11236 * top.c (init_main): Ditto.
11237 * tracepoint.c (_initialize_tracepoint): Ditto.
11238 * symfile.c (_initialize_symfile): Ditto.
11239 * printcmd.c (_initialize_printcmd): Ditto.
11240 * infcmd.c (_initialize_infcmd): Ditto.
11241 * corefile.c (_initialize_core): Ditto.
11242
f779ca99
AC
112432002-03-05 Andrew Cagney <ac131313@redhat.com>
11244
11245 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
11246
01a3934b
AC
112472002-03-05 Andrew Cagney <ac131313@redhat.com>
11248
11249 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
11250
37057839
AC
112512002-03-05 Andrew Cagney <ac131313@redhat.com>
11252
11253 * NEWS: Update headings, 5.2 has branched.
11254
c6ecbae5
DJ
112552002-03-04 Daniel Jacobowitz <drow@mvista.com>
11256
11257 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
11258 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
11259 (register_addr, REGISTER_RAW_SIZE): Likewise.
11260 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
11261 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
11262
e9f30c21
ML
112632002-03-03 Michal Ludvig <mludvig@suse.cz>
11264
11265 * MAINTAINERS (x86-64): Add myself.
11266 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
11267 changed value_ptr -> struct value *
11268
54394ac3
DB
112692002-03-01 David O'Brien <obrien@FreeBSD.org>
11270
11271 * configure.host (sparc64-*-freebsd): Add.
11272 * configure.tgt: Likewise.
11273 * config/sparc/fbsd.mh: New file.
11274 * config/sparc/fbsd.mt: Likewise.
11275 * config/sparc/nm-fbsd.h: Likewise.
11276 * config/sparc/tm-fbsd.h: Likewise.
11277
bfe95955
DJ
112782002-03-01 Daniel Jacobowitz <drow@mvista.com>
11279
11280 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
11281 regformats/reg-s390x.dat.
11282
f33c6cbf
AC
112832002-03-01 Andrew Cagney <ac131313@redhat.com>
11284
11285 * utils.c: Add FIXME explaining true/false problem.
11286
5ecaa7dd
AC
112872002-02-28 Andrew Cagney <ac131313@redhat.com>
11288
11289 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
11290
2a251cc2
MC
112912002-02-28 Michael Chastain <mec@shout.net>
11292
11293 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
11294
6a8031a3 112952002-02-28 Daniel Jacobowitz <drow@mvista.com>
265f716b
DJ
11296
11297 * gdbserver/linux-s390-low.c: New file.
11298 * regformats/reg-s390.dat: New file.
11299 * regformats/reg-s390x.dat: New file.
11300 * gdbserver/configure.srv: Add S/390.
11301 * gdbserver/Makefile.in: Add S/390.
11302 * configure.tgt: Enable gdbserver for S/390.
11303
ac469903
EZ
113042002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
11305
11306 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
11307 first line of the doc string for "info dos", except at the end of
11308 the sentence, since the short help stops at the first period.
11309
985cb1a3
JM
113102002-02-28 Jason Merrill <jason@redhat.com>
11311
11312 * dwarf2read.c (dwarf_cfi_name): Add new codes.
11313
c570663e
FF
113142002-02-27 Fred Fish <fnf@redhat.com>
11315
11316 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
11317 comment (dumy -> dummy).
11318
43630227
PS
113192002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11320
11321 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
11322
b84911e8
RB
113232002-02-27 Rodney Brown <rbrown64@csc.com.au>
11324
11325 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
11326
58caa3dc
DJ
113272002-02-27 Daniel Jacobowitz <drow@mvista.com>
11328
11329 * gdbserver/acconfig.h: New file.
11330 * gdbserver/i387-fp.c: New file.
11331 * gdbserver/i387-fp.h: New file.
11332 * gdbserver/linux-x86-64.c: New file.
11333 * regformats/reg-x86-64.dat: New file.
11334 * configure.tgt: Add x86_64-*-linux* gdbserver support.
11335 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
11336 * gdbserver/configure.in: Add support for regsets.
11337 * gdbserver/config.in: Regenerate.
11338 * gdbserver/configure: Regenerate.
11339 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
11340 * gdbserver/linux-low.h: New file.
11341 * gdbserver/linux-low.c: Include "linux-low.h". Add support
11342 for regsets.
11343 * gdbserver/linux-arm-low.c: Include "linux-low.h".
11344 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
11345 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
11346 * gdbserver/linux-mips-low.c: Include "linux-low.h".
11347 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
11348 * gdbserver/linux-sh-low.c: Include "linux-low.h".
11349 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
11350 "i387-fp.h". Add PTRACE_GETREGS and friends.
11351 * gdbserver/regcache.c (supply_register): New function.
11352 (supply_register_by_name): New function.
11353 (collect_register): New function.
11354 (collect_register_by_name): New function.
11355
93652174
DJ
113562002-02-27 Daniel Jacobowitz <drow@mvista.com>
11357
11358 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
11359 (config.status): Add configure.srv dependency.
11360 (server_h): Add config.h dependency.
11361
a02e4a61
DJ
113622002-02-27 Daniel Jacobowitz <drow@mvista.com>
11363
11364 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
11365 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
11366 * gdbserver/configure.srv: Change i386-*-linux* to use
11367 reg-i386-linux.o.
11368
ce0eebec
AC
113692002-02-26 Andrew Cagney <ac131313@redhat.com>
11370
11371 * x86-64-tdep.c: Re-indent. Update copyright date.
11372
82dbc5f7
AC
113732002-02-26 Andrew Cagney <ac131313@redhat.com>
11374
11375 From Michal Ludvig <mludvig@suse.cz>:
11376 * x86-64-tdep.c (value.h): Delete.
11377 (gdb_assert.h): Include.
11378 (x86_64_register_convert_to_virtual,
11379 x86_64_register_convert_to_raw ): Add check which lets only
11380 floating-point values to be converted.
11381 (value_push): Delete.
11382 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
11383 (i386_gdbarch_init): Number of register_bytes fixed.
11384
e4621584
AC
113852002-02-26 Andrew Cagney <ac131313@redhat.com>
11386
11387 * MAINTAINERS: Add x86-64 target.
11388
81a9a963
AC
113892002-02-26 Andrew Cagney <ac131313@redhat.com>
11390
11391 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
11392 * osfsolib.c (solib_map_sections): Ditto.
11393 * irix5-nat.c (solib_map_sections): Ditto.
11394 * corelow.c (gdb_check_format): Ditto.
11395 * symfile.c (symfile_bfd_open): Ditto.
11396 * solib.c (solib_map_sections): Ditto.
11397 Fix PR gdb/354.
7e336ba1 11398
0f017ab9
AC
113992002-02-26 Andrew Cagney <ac131313@redhat.com>
11400
11401 * remote.c (_initialize_remote): By default, disable ``e'' and
11402 ``E'' step out-of-range packets.
11403
75738c29
AS
114042002-02-26 Andreas Schwab <schwab@suse.de>
11405
11406 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
11407 m68k_linux_frame_saved_pc.
11408 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
11409 in_sigtramp.
11410 (SIGCONTEXT_PC_OFFSET): Remove.
11411 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
11412 m68k_linux_sigtramp_saved_pc): New functions.
11413 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
11414 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
11415 (UCONTEXT_PC_OFFSET): Define.
11416 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
11417 non-RT and RT signal trampolines.
11418
7e8ed687
RE
114192002-02-26 Richard Earnshaw <rearnsha@arm.com>
11420
11421 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
11422 (TARGET_NBPG, STACK_END_ADDR): Delete
11423 (VARIABLES_INSIDE_BLOCK): Delete.
11424
6972bc8b
AC
114252002-02-25 Andrew Cagney <ac131313@redhat.com>
11426
11427 * utils.c (perror_with_name): Make string parameter constant.
11428 (print_sys_errmsg): Ditto.
11429 (query): Ditto.
11430 * defs.h (perror_with_name): Update.
11431 (print_sys_errmsg): Update.
11432 (query): Update.
11433
aa32f823
DJ
114342002-02-25 Daniel Jacobowitz <drow@mvista.com>
11435
11436 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
11437 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
11438
19caaa45
PS
114392002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11440
11441 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
11442 if it already matches the current architecture from the exec file.
11443 Include arch-utils.h for gdbarch_info_init prototype.
11444 * Makefile.in (rs6000-nat.o): Update dependencies.
11445
d951901f
EZ
114462002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
11447
11448 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
11449 list of exported variables.
11450
7ea81414
DJ
114512002-02-24 Daniel Jacobowitz <drow@mvista.com>
11452
11453 * gdbserver/configure.srv: New file.
11454 * gdbserver/configure.in: Use configure.srv instead
11455 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
11456 from it.
11457 * gdbserver/configure: Regenerated.
11458 * gdbserver/terminal.h: New file.
11459 * gdbserver/Makefile.in: Update for configure changes. Remove
11460 more unneeded include paths.
11461
080fe24b
AC
114622002-02-24 Andrew Cagney <ac131313@redhat.com>
11463
11464 From wiz at danbala:
11465 * config/sparc/tm-sp64.h: Fix grammar and typos.
11466 Fix PR gdb/287.
11467
8605d56e
AC
114682002-02-24 Andrew Cagney <ac131313@redhat.com>
11469
11470 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
a4b6fc86
AC
11471 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
11472 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
11473 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
ca557f44
AC
11474 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
11475 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
11476 * s390-tdep.c: Ditto.
92362027
AC
11477 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
11478 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
11479 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
11480 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
11481 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
11482 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
11483 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
11484 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
11485 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
11486 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8605d56e 11487 Fix PR gdb/378.
7e336ba1 11488
8ed32cc0
AC
114892002-02-23 Andrew Cagney <ac131313@redhat.com>
11490
a3007b6f
AC
11491 * lin-thread.c: Delete file.
11492 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
11493 to gdb_proc_service.h.
11494 * configure: Re-generate.
11495
50a9e2f1
AC
11496 * ocd.c (ocd_open): Do not try to open the "ocd" device.
11497 * serial.c (serial_open): Delete check for "ocd".
11498 Fix PR gdb/349.
11499
8b6e7932
AC
11500 * Makefile.in (linux-thread.o): Delete target.
11501 * linux-thread.c: Delete file.
11502
d155c46b
AC
11503 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
11504 renamed SH files to be consistent.
11505
8ed32cc0
AC
11506 * symtab.c (sort_search_symbols): Use xfree.
11507
0e18d038
RE
115082002-02-23 Richard Earnshaw <rearnsha@arm.com>
11509
11510 * arm-linux-tdep.c (arm_linux_init_abi): Register
11511 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
11512 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
11513 definition with undef, since we don't want the sysvr4 definition.
11514 (SKIP_TRAMPOLINE_CODE): Likewise.
11515
27aac7ff
AC
115162002-02-23 Andrew Cagney <ac131313@redhat.com>
11517
11518 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
11519
11520 * configure.in: (AC_CHECK_FUNCS) Added test for
11521 canonicalize_file_name Regenerated.
11522 * config.in, configure: Regenerated.
11523 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
11524 defined use canonicalize_file_name.
7e336ba1 11525
65a6e0ee
MC
115262002-02-23 Michael Chastain <mec@shout.net>
11527
11528 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
11529
47b95330
AC
115302002-02-23 Andrew Cagney <ac131313@redhat.com>
11531
11532 * README: Remove references to cygnus.com.
11533 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
11534 dot com'' form. Remove references to cygnus.com and sourceware.
11535
696f451b
AC
115362002-02-23 Andrew Cagney <ac131313@redhat.com>
11537
11538 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
11539 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
11540 1003.1-2001 no longer allows "head -1".
11541 * gdb/Makefile.in (version.c): Likewise.
11542 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
11543 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
11544 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
11545
bbaca940
AC
115462002-02-23 Andrew Cagney <ac131313@redhat.com>
11547
11548 * cli/cli-decode.c (cmd_cfunc_eq): New function.
11549 * command.h (cmd_cfunc_eq): Declare.
11550 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
11551
11552 * cli/cli-cmds.h (is_complete_command): Change parameter to a
11553 ``struct cmd_list_element *''.
11554 * cli/cli-cmds.c (is_complete_command): Update. Use
11555 cmd_cfunc_eq.
11556 * top.c (execute_command): Pass the command to
11557 is_complete_command.
11558 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
11559
b8b8b047
AC
115602002-02-23 Andrew Cagney <ac131313@redhat.com>
11561
11562 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
11563 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
11564 architecture defines.
11565 * s390-tdep.c (s390_gdbarch_init): Likewise.
11566
19d3fc80
RE
115672002-02-23 Richard Earnshaw <rearnsha@arm.com>
11568
11569 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
11570 (arm_linux_push_arguments): Likewise.
11571 (arm_linux_init_abi): Register them. Also register linux-specific
11572 call_dummy_words.
11573 (find_minsym_and_objfile): Use strcmp, not STREQ.
11574 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
11575 (arm_linux_call_dummy_words): Delete declaration.
11576 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
11577 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
11578 declarations.
11579 (LOWEST_PC): Delete.
11580
3ab13650
PS
115812002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11582
11583 * maint.c (print_section_info): Do not prepend `0x' to filepos
11584 output, it will be handled by local_hex_string_custom.
11585
19d3fc80 115862002-02-23 Richard Earnshaw <rearnsha@arm.com>
85ae890c
RE
11587
11588 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
11589 (store_newfpe_double, store_newfpe_extended, store_fpregister)
11590 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
11591
d85a5daf
JB
115922002-02-22 Jim Blandy <jimb@redhat.com>
11593
11594 Indicate that the bcache functions don't change the strings
11595 they're passed.
11596 * bcache.h (bcache, hash): Add `const' keywords to declarations.
11597 * bcache.c (bcache, hash): Add `const' keywords to definitions.
11598
eeb25b8a
PM
115992002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
11600
11601 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
11602
6badb179
CF
116032002-02-21 Christopher Faylor <cgf@redhat.com>
11604
11605 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
11606 find the complete path to a loaded DLL.
11607
e8717518
FF
116082002-02-21 Fred Fish <fnf@redhat.com>
11609
11610 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
11611 that marks the end of the range of a function, enter a line number
11612 entry that has a line number of zero and a PC offset that matches
11613 the end of the function. This starts a range of PC's for which no
11614 line number information is known.
11615 * symtab.c (find_pc_sect_line): If our best fit is in a range of
11616 PC's for which no line number info is found (line number is zero)
11617 then we didn't find any valid line information.
11618 * symtab.h: Document use of zero line number entry.
11619
9abe5450
EZ
116202002-02-21 Elena Zannoni <ezannoni@redhat.com>
11621
11622 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
11623 (have_ptrace_getvrregs): Define for run time checks.
11624 (gdb_vrregset_t): New type for Altivec register handling.
11625 (fetch_register, store_register): Fetch/store altivec register
11626 when needed.
11627 (fetch_altivec_register, store_altivec_register): New functions.
11628 (supply_vrregset, fill_vrregset): New functions.
11629 (fetch_altivec_registers, store_altivec_registers): New functions.
11630 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
11631 registers as well.
11632
aaa38bb5
AJ
116332002-02-21 Jiri Smid <smid@suse.cz>
11634
11635 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
11636
b34db576
RE
116372002-02-21 Richard Earnshaw <rearnsha@arm.com>
11638
11639 * Makefile.in (armnbsd-nat.o): Update dependencies.
11640 * armnbsd-nat.c (supply_gregset): New function. Common code to
11641 supply the integer register set.
11642 (supply_fparegset): New function. Similar for FPA registers.
11643 (fetch_regs, fetch_fp_regs): Use them.
11644 (fetch_core_registers): Likewise.
11645 (fetch_elfcore_registers): New function.
11646 (arm_netbsd_elfcore_fns): New core-file type specification.
11647 (_initialize_arm_netbsd_nat): Register it.
11648
3e56fc4b
RE
116492002-02-21 Richard Earnshaw <rearnsha@arm.com>
11650
11651 * armnbsd-nat.c: Include gdbcore.h.
11652 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
11653 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
11654 'void' to declaration, to shut up ARI.
11655 (fetch_core_registers): Make static. Rewrite using supply_register.
11656 (arm_netbsd_core_fns): New core-file type specification.
11657 (_initialize_arm_netbsd_nat): New function.
11658
097f6b0b
CF
116592002-02-21 Christopher Faylor <cgf@redhat.com>
11660
11661 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
11662 value.
11663
c914e0cc
CF
116642002-02-20 Christopher Faylor <cgf@redhat.com>
11665
11666 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
11667 fails.
11668
385fa495
DJ
116692002-02-20 Daniel Jacobowitz <drow@mvista.com>
11670
11671 * jv-exp.y (parse_number): Change type of implicit longs
11672 to builtin_type_uint64.
11673
e5f1222d
DJ
116742002-02-20 Daniel Jacobowitz <drow@mvista.com>
11675
11676 * gdbserver/linux-low.c (mywait): Change argument to waitpid
11677 to be an integer instead of a `union wait'.
11678
75c9abc6
DJ
116792002-02-20 Daniel Jacobowitz <drow@mvista.com>
11680
11681 * mips-linux-nat.c: Call the operating system GNU/Linux.
11682 * mips-linux-tdep.c: Likewise.
11683 * mips-tdep.c: Likewise.
11684
551792a5
DJ
116852002-02-20 Daniel Jacobowitz <drow@mvista.com>
11686
11687 Fix PR gdb/265.
11688 * jv-exp.y (parse_number): Handle 64-bit integers.
11689
ee6e2b82
DJ
116902002-02-20 Daniel Jacobowitz <drow@mvista.com>
11691
11692 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
11693 AC_STDC_HEADERS to AC_HEADER_STDC.
11694 * gdbserver/configure: Regenerated.
11695
a48442a0
RE
116962002-02-20 Richard Earnshaw <rearnsha@arm.com>
11697
11698 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
11699 is defined.
11700 * sparc-tdep.c (get_longjmp_target): Likewise.
11701
fe419ffc
RE
117022002-02-20 Richard Earnshaw <rearnsha@arm.com>
11703
11704 * News: Add news about ARM and Multi-arch. Mention the new target
11705 arm*-*-netbsd*.
11706
5832ed7e
JB
117072002-02-19 Jim Blandy <jimb@redhat.com>
11708
11709 * stabsread.c (error_type_complaint): Improve error message.
11710
84563040
DJ
117112002-02-19 Daniel Jacobowitz <drow@mvista.com>
11712
11713 * gdbserver/README: Update documentation.
11714 * gdbserver/configure.in: Update configury to match documentation.
11715 * gdbserver/Makefile.in: Likewise.
11716 * gdbserver/configure: Regenerated.
11717 * gdbserver/aclocal.m4: New file, generated by aclocal.
11718 * gdbserver/config.in: New file, generated by autoheader.
11719
375fd65b
RE
117202002-02-19 Richard Earnshaw <rearnsha@arm.com>
11721
11722 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
11723 armnbsd-nat.c.
11724
08216dd7
RE
117252002-02-19 Richard Earnshaw <rearnsha@arm.com>
11726
11727 * arm-tdep.h (enum arm_float_model): New enum.
11728 (struct gdbarch_tdep): Add fp_model.
11729 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
11730 up floating-point conversions until we know the floating-point model
11731 in use by the inferior. Don't complain about being unable to
11732 determine the ABI of the inferior when we don't have one.
11733 (arm_extract_return_value): Support different floating-point models.
11734 (arm_store_return_value): Likewise.
aaa38bb5 11735 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
08216dd7
RE
11736 ARM_FLOAT_SOFT.
11737 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
11738
65d6d66a
PS
117392002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11740
11741 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
11742 of ``current_gdbarch''.
11743
47221191
RE
117442002-02-19 Richard Earnshaw <rearnsha@arm.com>
11745
11746 * armnbsd-nat.c : ANSIfy all function declarations.
11747 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
11748 (fetch_inferior_registers): Re-implement in terms of above.
11749 (store_register, store_regs, store_fp_register, store_fp_regs): New.
11750 (store_inferior_registers): Re-implement in terms of above.
11751
fdf39c9a
RE
117522002-02-19 Richard Earnshaw <rearnsha@arm.com>
11753
aaa38bb5 11754 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
fdf39c9a
RE
11755 kernel.
11756 * arm-linux-tdep.c: Likewise.
11757 * config/arm/tm-linux.h: Likewise.
11758
93247f88
RE
117592002-02-19 Richard Earnshaw <rearnsha@arm.com>
11760
11761 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
11762 * config/arm/nbsd.mt (TM_FILE): Delete.
11763 * config/arm/tm-nbsd.h: Delete.
11764
d7b486e7
RE
117652002-02-19 Richard Earnshaw <rearnsha@arm.com>
11766
11767 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
11768 Initialize CALL_DUMMY_LENGTH.
11769
41d39a95
RE
117702002-02-19 Richard Earnshaw <rearnsha@arm.com>
11771
11772 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
11773 function.
11774 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
aaa38bb5 11775 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
41d39a95
RE
11776 defines one thing and that is incorrect for this port.
11777 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
11778
e1195560
PM
117792002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
11780
11781 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
11782
c1748f97
PM
117832002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
11784
11785 * win32-nat.c (display_selector): New function. Displays information
11786 about the information returned by GetThreadSelectorEntry API function.
11787 (display_selectors): New function. Displays the infomation of
11788 the selector given as argument, or of CS, DS ans FS selectors
11789 if no argument is given.
11790 ( _initialize_inftarg): Add "w32" as info prefix command.
11791 Add "info w32 selector" as command calling display_selectors.
11792
e41e6bbf
PM
117932002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
11794
11795 * i386-tdep.c (get_longjmp_target): Fix compilation failure
11796 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
11797 if not defined.
11798
0d3a9f48
RE
117992002-02-18 Richard Earnshaw <rearnsha@arm.com>
11800
11801 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
11802
3fb4b924
RE
118032002-02-18 Richard Earnshaw <rearnsha@arm.com>
11804
11805 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
11806 (arm_fix_call_dummy): Call it.
11807 (arm_call_dummy_breakpoint_offset): Delete.
11808 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
11809 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
11810
7f55af32
AC
118112002-02-18 Andrew Cagney <ac131313@redhat.com>
11812
11813 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
11814 Default to func_frame_chain_valid.
11815 * gdbarch.h, gdbarch.c: Re-generate.
11816 * frame.h (FRAME_CHAIN_VALID): Delete definition.
11817
05f13b9c
EZ
118182002-02-18 Elena Zannoni <ezannoni@redhat.com>
11819
11820 * ppc-linux-nat.c: Update copyright.
11821 (fetch_register, store_register): Add tid parameter, don't compute
11822 tid here.
11823 (fetch_ppc_registers, store_ppc_registers): Add tid
11824 parameter. Pass it along to callees.
11825 (fetch_inferior_registers, store_inferior_registers): Compute tid
11826 here, and pass it to calleed functions.
11827 (fill_gregset, supply_fpregset): Clean up formatting.
11828
d7afb4c9
RE
118292002-02-18 Richard Earnshaw <rearnsha@arm.com>
11830
11831 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
11832 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
11833
9df628e0
RE
118342002-02-18 Richard Earnshaw <rearnsha@arm.com>
11835
11836 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
11837 * gdbarch.c gdbarch.h: Regenerate.
11838 * breakpoint.c (create_longjmp_breakpoint): Always compile this
11839 function.
11840 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
11841 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
11842 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
11843
11844 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
11845 * arm-tdep.c (arm_get_longjmp_target): New function.
11846 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
11847 this to a positive value register arm_get_longjmp_target as the
11848 longjmp handler.
11849 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
11850 (arm_linux_init_abi): Set up longjmp description in tdep.
11851 * armnbsd-nat.c (get_longjmp_target): Delete.
11852 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
11853 description in tdep.
11854 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
11855 (get_longjmp_target): Delete declaration.
11856 (GET_LONGJMP_TARGET): Delete.
11857 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
11858 (GET_LONGJMP_TARGET): Delete.
11859
57bc8964
KB
118602002-02-17 Kevin Buettner <kevinb@redhat.com>
11861
11862 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
11863 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
11864 of ``current_gdbarch''.
11865
83d31a92
TT
118662002-02-17 Tom Tromey <tromey@redhat.com>
11867
11868 * cli/cli-cmds.c (compare_strings): New function.
11869 (complete_command): Only print each unique item once.
11870 * completer.h (complete_line): Declare.
11871 * completer.c (complete_line): New function.
11872 (line_completion_function): Use it.
11873
17ef5d92
AC
118742002-02-16 Andrew Cagney <ac131313@redhat.com>
11875
11876 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
11877 * gdbarch.h, gdbarch.c: Re-generate.
11878
491b8946
DJ
118792002-02-16 Daniel Jacobowitz <drow@mvista.com>
11880
11881 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
11882
118832002-02-16 Daniel Jacobowitz <drow@mvista.com>
11884
11885 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
11886 * valops.c (value_arg_coerce): Don't take the address of a reference
11887 to convert an argument to a reference.
11888
dfe7f3ac
CF
118892002-02-15 Christopher Faylor <cgf@redhat.com>
11890
11891 * win32-nat.c (get_image_name): New function.
11892 (handle_load_dll): Use get_image_name function.
11893 (get_child_debug_event): Avoid registering debug events until possibly
11894 execed process is started.
11895 (child_create_inferior): Allow invocation via shell so that command
11896 line redirection, etc. works ok.
11897 (_initialize_inftarg): Add new command: "set shell" to control whether
11898 a shell is used to start a process.
11899
1d33e73a
DJ
119002002-02-15 Daniel Jacobowitz <drow@mvista.com>
11901
11902 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
11903 instead of find_register_by_number.
11904 (cannot_store_register): Likewise.
11905
48cd0caa
PM
119062002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
11907
aaa38bb5 11908 * dwarf2read.c: Replace fprintf (stderr, ...) by
48cd0caa
PM
11909 fprintf_unfiltered (gdb_stderr, ...).
11910
8656e7d8
DJ
119112002-02-15 Daniel Jacobowitz <drow@mvista.com>
11912
11913 * gdbserver/gdbserver.1: Document --attach.
11914
66e810cd
RE
119152002-02-15 Richard Earnshaw <rearnsha@arm.com>
11916
11917 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
11918 descriptions.
11919 * arm-tdep.c (arm_default_arm_le_breakpoint)
11920 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
11921 (arm_default_thumb_be_breakpoint): New. Initialize them from
11922 traditional breakpoint defines.
11923 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
11924 (arm_gdbarch_init): Initialize new breakpoint variables.
11925 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
11926 (arm_linux_init_abi): Initialize linux-specific breakpoint.
11927 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
11928 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
11929 code out to ...
11930 (arm_netbsd_init_abi_common): ... here; new function.
11931 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
11932 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
11933 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
11934 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
11935
97e03143
RE
119362002-02-15 Richard Earnshaw <rearnsha@arm.com>
11937
11938 * arm-tdep.h (enum arm_abi): New enum.
11939 (struct gdbarch_tdep): New structure.
11940 (LOWEST_PC): Provide a default.
11941 (arm_gdbarch_register_os_abi): Declare new function.
11942 * arm-tdep.c (arm_abi_names): New array.
11943 (process_note_abi_tag_sections): New function.
11944 (get_elfosabi): New function.
11945 (arm_gdbarch_register_os_abi): New function.
11946 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
11947 support for that ABI has been built in, then call the appropriate
11948 configuration routine. Use gdbarch_num_regs() to get the number
11949 of registers.
11950 (arm_dump_tdep): New function.
11951 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
11952 place-holder functions.
11953 (_initialize_arm_tdep): Register them.
11954 * config/arm/tm-arm.h (LOWEST_PC): Delete.
11955
11956 * armnbsd-tdep.c: New file.
11957 * Makefile.in (armnbsd-tdep.o): Add dependencies.
11958 * config/arm/nbsd.mt (TDEPFILES): Add it.
11959 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
11960
11961 * armnbsd-nat.c: Include regcache.h.
11962 * Makefile.in (armnbsd-nat.o): Update dependency list.
11963
11964 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
11965
ad68be46
DJ
119662002-02-14 Daniel Jacobowitz <drow@mvista.com>
11967
11968 * gdbserver/Makefile.in: Fix typos in target rules.
11969
003d6d1d
DJ
119702002-02-14 Daniel Jacobowitz <drow@mvista.com>
11971
aaa38bb5 11972 Fix part of PR gdb/267.
003d6d1d
DJ
11973 * linespec.c (find_methods): Handle constructors specially for now.
11974
6b230f1b
CV
119752002-02-14 Corinna Vinschen <vinschen@redhat.com>
11976
11977 * arm-tdep.c (arm_push_arguments): Eliminate special float type
11978 handling.
11979 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
11980 standard_coerce_float_to_double().
11981
1ea98d12
CF
119822002-02-14 Christopher Faylor <cgf@redhat.com>
11983
11984 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
11985 GDBINIT_FILENAME.
11986
dd47e6fd
EZ
119872002-02-14 Elena Zannoni <ezannoni@redhat.com>
11988
11989 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
11990 find_variant_by_name, because it confuses the multiarch
11991 framework. Return NULL if there isn't an architecture with the
11992 user supplied name, instead of forcing a different one without
11993 recording the change with the multiarch machinery.
11994 (find_variant_by_name): Delete.
11995
d7e39b9e
PS
119962002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11997
11998 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
11999 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
12000
76e42a4f
MH
120012002-02-13 Martin M. Hunt <hunt@redhat.com>
12002
aaa38bb5 12003 * stack.c (print_frame_info_base): When calling
76e42a4f
MH
12004 print_frame_info_listing_hook, set current_source_symtab.
12005
0a30fbc4
DJ
120062002-02-14 Daniel Jacobowitz <drow@mvista.com>
12007
12008 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
12009 and remove unused $(INCLUDE_DIR).
12010 Add regcache.c to OBS.
12011 Add generated register protocol files to clean target.
12012 Update dependencies for new objects, obsolete old target code.
12013
12014 * gdbserver/linux-low.c: Remove all platform-specific code to
12015 new files. Remove various dead code. Update to use regcache
12016 functionality.
12017 * gdbserver/remote-utils.c (fromhex): Add return statement
12018 to quiet warning.
12019 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
12020 constant.
12021 (input_interrupt): Add integer parameter to match prototype
12022 of a signal handler.
12023 (outreg): Use register_data ().
12024 (prepare_resume_reply): Use gdbserver_expedite_regs.
12025 * gdbserver/server.c (main): Dynamically allocate own_buf because
12026 PBUFSIZ is no longer constant. Use registers_to_string () and
12027 registers_from_string ().
12028 * gdbserver/server.h: No longer include "defs.h". Add prototypes
12029 for error (), fatal (), and warning (). Update definition of
12030 PBUFSIZ to use regcache functionality. Add include guard.
12031 * gdbserver/utils.c (fatal): Add missing ``const''.
12032 (warning): New function.
12033
12034 * regformats/regdat.sh: Include "regcache.h" in generated files.
12035 Provide init_registers () function.
12036 * regformats/regdef.h: Add prototype for set_register_cache ().
12037 Add include guard.
12038
12039 * gdbserver/linux-arm-low.c: New file.
12040 * gdbserver/linux-i386-low.c: New file.
12041 * gdbserver/linux-ia64-low.c: New file.
12042 * gdbserver/linux-m68k-low.c: New file.
12043 * gdbserver/linux-mips-low.c: New file.
12044 * gdbserver/linux-ppc-low.c: New file.
12045 * gdbserver/linux-sh-low.c: New file.
12046
12047 * gdbserver/regcache.c: New file.
12048 * gdbserver/regcache.h: New file.
12049
12050 * gdbserver/low-linux.c: Removed obsolete file.
12051
4cc841d0
DJ
120522002-02-14 Daniel Jacobowitz <drow@mvista.com>
12053
12054 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
12055 * config/i386/linux.mt: Likewise.
12056 * config/ia64/linux.mt: Likewise.
12057 * config/m68k/linux.mh: Likewise.
12058 * config/powerpc/linux.mh: Likewise.
12059 * config/mips/linux.mt: Likewise.
12060
12061 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
12062
12063 * config/i386/i386lynx.mh: Mark gdbserver variables
12064 as (currently) obsolete for this target.
12065 * config/i386/nbsd.mt: Likewise.
12066 * config/i386/nbsdelf.mt: Likewise.
12067 * config/m32r/m32r.mt: Likewise.
12068 * config/m68k/m68klynx.mh: Likewise.
12069 * config/m68k/nbsd.mt: Likewise.
12070 * config/m68k/sun3os4.mh: Likewise.
12071 * config/mips/vr5000.mt: Likewise.
12072 * config/ns32k/nbsd.mt: Likewise.
12073 * config/pa/hppabsd.mh: Likewise.
12074 * config/pa/hppaosf.mh: Likewise.
12075 * config/powerpc/nbsd.mt: Likewise.
12076 * config/rs6000/rs6000lynx.mh: Likewise.
12077 * config/s390/s390.mt: Likewise.
12078 * config/s390/s390x.mt: Likewise.
12079 * config/sparc/sparclynx.mh: Likewise.
12080 * config/sparc/sun4os4.mh: Likewise.
12081 * config/i386/x86-64linux.mt: Likewise.
12082 * config/sparc/linux.mh: Likewise.
12083
a85f51e7
DJ
120842002-02-14 Daniel Jacobowitz <drow@mvista.com>
12085
12086 * configure.tgt: Configure gdbserver only for known working
12087 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
12088 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
12089 SUBDIRS if it is configured. Update comment for ${nativefile}.
12090 * configure: Regenerated.
12091
65554fef
MS
120922002-02-13 Michael Snyder <msnyder@redhat.com>
12093
670a52db
MS
12094 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
12095
6dbdc4a3
MS
12096 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
12097 (default_gcore_mach): Just return 0, work around a problem in bfd.
12098 (default_gcore_target): OK to return NULL if exec_bfd is null.
12099 (make_mem_sec): Use a cast, avoid a warning.
12100
12101 * procfs.c (find_memory_regions_callback): Use a cast instead of
aaa38bb5 12102 calling host_pointer_to_address (which complains if
6dbdc4a3
MS
12103 sizeof (host pointer) != sizeof (target pointer)).
12104 (procfs_make_note_section): Avoid overflow in psargs string.
12105
aaa38bb5 12106 * procfs.c (procfs_make_note_section): Make the default
65554fef
MS
12107 implementation return an error.
12108
121092002-02-13 Rodney Brown <rbrown64@csc.com.au>
12110
12111 * procfs.c (procfs_make_note_section): Provide a default definition
12112 (for alpha-dec-osf4.0f). Fix typos.
12113
1e4d76e7
EZ
121142002-02-13 Elena Zannoni <ezannoni@redhat.com>
12115
12116 * linux-proc.c: Add include of regcache.h.
12117 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
12118
b6d1a1d5
AC
121192002-02-13 Andrew Cagney <ac131313@redhat.com>
12120
12121 From 2002-01-18 Greg McGary <greg@mcgary.org>:
aaa38bb5
AJ
12122 * memattr.c (create_mem_region): Disallow useless empty region.
12123 Regions are half-open intervals, so allow [A..B) [B..C) as
65554fef 12124 non-overlapping.
b6d1a1d5 12125
6c6ea35e
MC
121262002-02-13 Michael Chastain <mec@shout.net>
12127
12128 * defs.h: Kill CONST_PTR.
12129 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
12130 * c-lang.c (c_builtin_types): Likewise.
12131 * ch-lang.c (ch_builtin_types): Likewise.
12132 * f-lang.c (f_builtin_types): Likewise.
12133 * language.c (unknown_builtin_types): Likewise.
12134 * m2-lang.c (m2_builtin_types): Likewise.
12135 * p-lang.c (pascal_builtin_types): Likewise.
12136 * scm-lang.c (c_builtin_types): Likewise.
12137
3e0b0f48
KS
121382002-02-13 Keith Seitz <keiths@redhat.com>
12139
12140 * arm-tdep.h (arm_get_next_pc): Add declaration.
12141
67255d04
RE
121422002-02-13 Richard Earnshaw <rearnsha@arm.com>
12143
12144 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
12145 with other related struct-returning functions.
12146 (arm_extract_struct_value_address): New function.
12147 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
12148 initialize float_format, double_format and long_double_format as
12149 appropriate to the endianness of the target.
12150 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
12151 (arm_use_struct_convention): Delete declaration.
12152 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
12153
079777f6
KS
121542002-02-13 Keith Seitz <keiths@redhat.com>
12155
12156 * defs.h (core_addr_to_string_nz): New function.
12157
34588f23
MK
121582002-02-13 Mark Kettenis <kettenis@gnu.org>
12159
12160 Apply missing bits of 2002-01-15 patch.
12161 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
12162 (fill_fpregset): Use i387_fill_fsave.
12163
49b563f9
KS
121642002-02-12 Keith Seitz <keiths@redhat.com>
12165
49b563f9
KS
12166 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
12167 (core_addr_to_string_nz): New function.
12168
aeb98c60
RE
121692002-02-11 Richard Earnshaw <rearnsha@arm.com>
12170
12171 * arm-linux-nat.c: Really include arm-tdep.h.
12172 * config/arm/tm-linux.h (struct type, struct value): Declare.
12173
65554fef
MS
121742002-02-11 Michael Snyder <msnyder@redhat.com>
12175
12176 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
12177 (gcore section): Ifdef for Solaris and Unixware only.
12178 (procfs_do_thread_registers): Unixware needs one lwpstatus
12179 per thread (not one prstatus or pstatus).
12180 (procfs_make_note_section): Iterate only over kernel threads (lwps),
12181 not over all gdb threads. For unixware, call elfcore_write_pstatus
12182 once before iterating over threads.
12183
34e8f22d
RE
121842002-02-11 Richard Earnshaw <rearnsha@arm.com>
12185
12186 * arm-tdep.h: New file.
12187 * arm-tdep.c: Include arm-tdep.h.
12188 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
12189 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
12190 (arm_print_float_info, arm_register_type, convert_to_extended)
12191 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
12192 (arm_extract_return_value, arm_register_name): Make static.
12193 (arm_software_single_step): Similarly. Fix types in declaration.
12194 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
12195 (arm_store_return_value, arm_store_struct_return): New functions.
12196 (arm_gdbarch_init): Register the above functions. Also register
12197 call_dummy_start_offset, sizeof_call_dummy_words,
12198 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
12199 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
aaa38bb5 12200 max_register_virtual_size, register_size. Set up
34e8f22d
RE
12201 prologue_cache.saved_regs here, rather than ...
12202 (_initialize_arm_tdep): ... here.
12203 * config/arm/tm-arm.h (struct type, struct value): Delete forward
12204 declarations.
12205 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
12206 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
12207 (arm_print_float_info, arm_register_type, convert_to_extended)
12208 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
12209 (arm_extract_return_value, arm_register_name): Delete declarations.
12210 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
12211 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
12212 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
12213 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
12214 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
12215 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
12216 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
12217 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
12218 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
12219 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
12220 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
12221 (arm_get_next_pc): No-longer static -- these are needed by the RDI
12222 interface.
12223 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
12224 * remote-rdi.c remote-rdp.c: Likewise.
12225 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
12226 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
12227 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
12228 definition.
12229
12230 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
12231 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
12232 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
12233 from non-ARM_ prefixed definitions.
12234 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
12235 all uses of above.
12236 * remote-rdi.c remote-rdp.c: Likewise.
12237 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
12238
148754e5
RE
122392002-02-11 Richard Earnshaw <rearnsha@arm.com>
12240
12241 * arm-tdep.c (arm_frameless_function_invocation)
12242 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
12243 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
12244 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
12245 (arm_pop_frame, arm_get_next_pc): Make static.
12246 (arm_gdbarch_init): Register above in gdbarch structure.
12247 (arm_read_fp): Renamed from arm_target_read_fp.
12248 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
12249 * config/arm/tm-arm.h (arm_frameless_function_invocation)
12250 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
12251 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
12252 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
12253 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
12254 (arm_pc_is_thumb_dummy): Delete declarations.
fcfb8836
RE
12255 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
12256 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
12257 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
12258 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
148754e5 12259
434d2d4f
DJ
122602002-02-10 Daniel Jacobowitz <drow@mvista.com>
12261
12262 * symtab.c (compare_search_syms): New function.
12263 (sort_search_symbols): New function.
12264 (search_symbols): Sort symbols after searching rather than
12265 before.
12266
55241689
AC
122672002-02-10 Andrew Cagney <ac131313@redhat.com>
12268
12269 * NEWS: Linux -> GNU/Linux.
12270
028c194b
AC
122712002-02-10 Andrew Cagney <ac131313@redhat.com>
12272
12273 * gdbarch.sh: For for level one methods, disallow a definition
12274 when partially multi-arched. Add comments explaining rationale.
12275 * gdbarch.h: Re-generate.
12276
6acf50cd
AC
122772002-02-10 Andrew Cagney <ac131313@redhat.com>
12278
12279 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
12280 multi-arch partial.
aaa38bb5 12281
50248794
AC
122822002-02-10 Andrew Cagney <ac131313@redhat.com>
12283
12284 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
12285 field. Use diff -u.
12286 * gdbarch.c: Re-generate.
12287
c30e0066
AC
122882002-02-10 Andrew Cagney <ac131313@redhat.com>
12289
9b56c5f3 12290 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
c30e0066
AC
12291 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
12292 partial.
12293
6e6d6484
AC
122942002-02-10 Andrew Cagney <ac131313@redhat.com>
12295
12296 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
12297 multi-arch partial.
12298 (PUSH_ARGUMENTS): Switch to using predefault.
12299 * gdbarch.c: Regenerate.
12300
c203844d
AC
123012002-02-10 Andrew Cagney <ac131313@redhat.com>
12302
12303 * valops.c (PUSH_ARGUMENTS): Delete definition.
12304 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
12305 partial. Default to default_push_arguments.
12306 * gdbarch.h, gdbarch.c: Regenerate.
12307
b5a2688f
AC
123082002-02-09 Andrew Cagney <ac131313@redhat.com>
12309
12310 * defs.h (throw_exception): Rename return_to_top_level. Update
12311 comments.
12312 * utils.c (error_stream, internal_verror, quit): Ditto.
12313 * top.c (throw_exception, catcher): Ditto.
12314 * sparclet-rom.c (sparclet_load): Ditto.
12315 * remote.c (interrupt_query, minitelnet): Ditto.
12316 * remote-sds.c (interrupt_query): Ditto.
12317 * remote-mips.c (mips_error, mips_kill): Ditto.
12318 * ocd.c (interrupt_query): Ditto.
12319 * monitor.c (monitor_interrupt_query): Ditto.
12320 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
12321 * target.h: Update comment.
aaa38bb5 12322
b5a2688f 12323 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
aaa38bb5 12324
2fa5c1e0
AC
123252002-02-09 Andrew Cagney <ac131313@redhat.com>
12326
12327 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
12328 default_double_format.
12329 * gdbarch.h, gdbarch.c: Re-generate.
12330 * findvar.c (floatformat_unknown): Delete variable definition.
12331 * doublest.h (floatformat_unknown): Delete variable declaration.
12332
da966255
JB
123332002-02-09 Jim Blandy <jimb@redhat.com>
12334
12335 * stabsread.c (read_type): Add code to parse Sun's syntax for
12336 prototyped function types.
12337
123a4891
AC
123382002-02-09 Andrew Cagney <ac131313@redhat.com>
12339
12340 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
12341 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
12342
fb39c8f3
PS
123432002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12344
12345 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
12346 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
12347 now _initialize_xcoffsolib gets called again and overrides the
12348 commands from solib.c in a native configuration.
12349
0b87a11d
MK
123502002-02-09 Mark Kettenis <kettenis@gnu.org>
12351
12352 * doublest.c (store_typed_floating): Don't try to return a value.
12353 Fixes PR gdb/290.
12354
bdc2fc72
JB
123552002-02-08 Jim Blandy <jimb@redhat.com>
12356
12357 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
12358 is prototyped and has no arguments, print its argument list as
12359 `(void)'.
12360
da69bbcf
CD
123612002-02-08 Chris Demetriou <cgd@broadcom.com>
12362
12363 * MAINTAINERS (write-after-approval): Add myself.
12364 (paper-trail): I've escaped!
aaa38bb5 12365
b69571f5
CF
123662002-02-08 Christopher Faylor <cgf@redhat.com>
12367
12368 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
12369 changes.
12370 (_initialize_check_for_gdb_ini): Ditto.
12371
f6871398
MH
123722002-02-08 Martin M. Hunt <hunt@redhat.com>
12373
12374 * win32-nat.c (cygwin_pid_to_str): Fix typo.
12375 xaprintf -> xasprintf.
12376
4e52d31c
PM
123772002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
12378
12379 * win32-nat.c: Remove use of printf and sprintf functions.
12380
39bbf761
RE
123812002-02-08 Richard Earnshaw <rearnsha@arm.com>
12382
12383 * arm-tdep.c (arm_frame_chain_valid): Make static.
12384 (arm_push_arguments): Likewise.
12385 (arm_gdbarch_init): New function.
12386 (_initialize_arm_tdep): Call it.
12387 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
12388 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
12389 (FRAME_CHAIN_VALID): Delete.
12390 (arm_frame_chain_valid): Delete declaration.
12391 (PUSH_ARGUMENTS): Delete.
12392 (arm_push_arguments): Delete declaration.
12393 (CALL_DUMMY_P): Delete.
12394
9c9532c9
CV
123952002-02-08 Andrew Cagney <ac131313@redhat.com>
12396 Corinna Vinschen <vinschen@redhat.com>
12397
12398 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
12399 on builtin float types.
12400
4e8f7a8b
DJ
124012002-02-08 Daniel Jacobowitz <drow@mvista.com>
12402
12403 * utils.c: Include <curses.h> before "bfd.h".
12404 * tui/tui-hooks.c: Likewise.
12405 * tui/tui.c: Likewise.
12406 * tui/tuiCommand.c: Likewise.
12407 * tui/tuiData.c: Likewise.
12408 * tui/tuiDataWin.c: Likewise.
12409 * tui/tuiDisassem.c: Likewise.
12410 * tui/tuiGeneralWin.c: Likewise.
12411 * tui/tuiIO.c: Likewise.
12412 * tui/tuiLayout.c: Likewise.
12413 * tui/tuiRegs.c: Likewise.
12414 * tui/tuiSource.c: Likewise.
12415 * tui/tuiSourceWin.c: Likewise.
12416 * tui/tuiStack.c: Likewise.
12417 * tui/tuiWin.c: Likewise.
12418
cd4bffcf
EZ
124192002-02-07 Elena Zannoni <ezannoni@redhat.com>
12420
12421 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
12422 to include space for pseudoregs as well. Update loops accordingly.
12423 (sh_fp_frame_init_saved_regs): Ditto.
12424 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
12425
26806ce2
AC
124262002-02-07 Andrew Cagney <ac131313@redhat.com>
12427
12428 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
12429 Add Richard Earnshaw to Arm maintainers.
12430
97fdab62
AC
124312002-02-07 Andrew Cagney <ac131313@redhat.com>
12432
a6b98203
AC
12433 * defs.h (warning_begin): Delete declaration.
12434
97fdab62
AC
12435 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
12436 Delete macro.
12437
78b29b40
MS
124382002-02-07 Michael Snyder <msnyder@redhat.com>
12439
aaa38bb5 12440 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
78b29b40
MS
12441 Logic bug, remove misplaced else.
12442
d8849953
KD
124432002-02-07 Klee Dienes <klee@apple.com>
12444
12445 * fork-inferior.c (fork_inferior): Add '!' to the list of
12446 characters that need to be quoted when building a string for the
12447 shell. Quote '!' specifically with a backslash, since CSH chokes
12448 when trying to evaluate "str!str".
aaa38bb5 12449
095778a0
NC
124502002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
12451
12452 * rdi-share/host.h: Only provide a typedef for bool if it is not
12453 defined.
12454
1900040c
MS
124552002-02-04 Michael Snyder <msnyder@redhat.com>
12456
12457 * breakpoint.h (enum bptype): Add new overlay event bp type.
12458 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
aaa38bb5 12459
1900040c
MS
12460 * breakpoint.c (create_internal_breakpoint): New function.
12461 (internal_breakpoint_number): Moved into create_internal_breakpoint.
12462 (create_longjmp_breakpoint): Use create_internal_breakpoint.
12463 (create_thread_event_breakpoint): Ditto.
12464 (create_solib_event_breakpoint): Ditto.
12465 (create_overlay_event_breakpoint): New function.
12466 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
12467 (update_breakpoints_after_exec): Delete and re-initialize
12468 overlay event breakpoints after an exec. Add FIXME comment
12469 about longjmp breakpoint.
12470 (print_it_typical): Ignore overlay event breakpoints.
12471 (print_one_breakpoint): Ditto.
12472 (mention): Ditto.
12473 (bpstat_what): Do not stop for overlay event breakpoints.
12474 (delete_breakpoint): Don't delete overlay event breakpoints.
12475 (breakpoint_re_set_one): Delete the overlay event breakpoint.
12476 (breakpoint_re_set): Re-create overlay event breakpoint.
12477
12478 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
12479 (overlay_manual_command): Disable overlay breakpoints.
12480 (overlay_off_command): Disable overlay breakpoints.
12481
082fc60d
RE
124822002-02-06 Richard Earnshaw <rearnsha@arm.com>
12483
12484 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
12485 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
12486 to here from config/tm-arm.h.
12487 (coff_sym_is_thumb): Make static.
12488 (arm_elf_make_msymbol_special): New function.
12489 (arm_coff_make_msymbol_special): New function.
12490 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
12491 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
12492 (coff_sym_is_thumb): Delete declaration.
12493 (arm_elf_make_msymbol_special): Declare.
12494 (arm_coff_make_msymbol_special): Declare.
12495 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
12496 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
12497
039c5766
RE
124982002-02-06 Richard Earnshaw <rearnsha@arm.com>
12499
12500 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
12501
125022002-02-06 Richard Earnshaw <rearnsha@arm.com>
12503
12504 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
12505 * gdbarch.c gdbarch.h: Regenerate.
12506 * arch-utils.c (default_print_float_info): New function.
12507 * arch-utils.h (default_print_float_info): Prototype it.
12508 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
12509 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
12510 (PRINT_FLOAT_INFO): Document it.
12511
12512 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
12513 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
12514 (PRINT_FLOAT_INFO): Define.
12515
58fa08f0
PM
125162002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
12517
aaa38bb5 12518 * win32-nat.c (_initialize_check_for_gdb_ini):
58fa08f0
PM
12519 Add typecast to sprintf argument to suppress a warning.
12520
7393af7c
PM
125212002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
12522
58fa08f0 12523 * win32-nat.c (last_sig): Changed type of variable to target_signal,
7393af7c
PM
12524 to allow easier handling of pass state.
12525 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
12526 that gives exception name and address.
12527 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
aaa38bb5 12528 and set last_sig value to ourstatus->value.sig. Some missing
7393af7c 12529 exceptions added.
aaa38bb5
AJ
12530 (child_continue): Correctly report continue_status.
12531 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
7393af7c 12532 TARGET_SIGNAL_0 (new default value).
aaa38bb5 12533 (child_resume): consider sig argument passed to decide if
7393af7c
PM
12534 the exception should be passed to debuggee or not.
12535
6af4589c
MS
125362002-02-05 Michael Snyder <msnyder@redhat.com>
12537
12538 * regcache.c (fetch_register): Call target_fetch_register
12539 only if we don't call FETCH_PSEUDO_REGISTER.
12540 (store_register): Call target_store_register only if we
12541 don't call STORE_PSEUDO_REGISTER.
12542
a2cf933a
EZ
125432002-02-05 Elena Zannoni <ezannoni@redhat.com>
12544
12545 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
12546 ELF_MAKE_MSYMBOL_SPECIAL.
12547 * gdbarch.c, gdbarch.h: Regenerate.
12548 * arch-utils.c (default_make_msymbol_special): New function.
aaa38bb5 12549 * arch-utils.h (default_make_msymbol_special): Export.
a2cf933a
EZ
12550 * elfread.c (elf_symtab_read): Compile use of
12551 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
12552 multiarched.
12553 * coffread.c (coff_symtab_read): Ditto, for
12554 COFF_MAKE_MSYMBOL_SPECIAL.
12555
6bb7be43
JB
125562002-02-05 Jim Blandy <jimb@redhat.com>
12557
12558 * solib-svr4.c (svr4_truncate_ptr): New function.
12559 (svr4_relocate_section_addresses): Do the address arithmetic with
12560 the appropriate truncation for target addresses, even when
12561 CORE_ADDR is larger than a target address.
12562
e18651ec
DJ
125632002-02-05 Daniel Jacobowitz <drow@mvista.com>
12564
12565 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
12566 to (int *).
12567
6b2725be
DJ
125682002-02-05 Daniel Jacobowitz <drow@mvista.com>
12569
12570 * gdbserver/linux-low.c (kill_inferior): Remove commented out
12571 code.
12572
fca9e603
DJ
125732002-02-05 Daniel Jacobowitz <drow@mvista.com>
12574
12575 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
12576
6c537a52
DJ
125772002-02-05 Daniel Jacobowitz <drow@mvista.com>
12578
12579 * gdbserver/linux-low.c: Remove unused include files.
12580
d844cde6
DJ
125812002-02-05 Daniel Jacobowitz <drow@mvista.com>
12582
12583 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
12584 (read_inferior_memory): Use it.
12585 (write_inferior_memory): Likewise.
12586
d07c63e7
DJ
125872002-02-05 Daniel Jacobowitz <drow@mvista.com>
12588
12589 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
12590 grubbing through sys_errlist.
12591
da6d8c04
DJ
125922002-02-05 Daniel Jacobowitz <drow@mvista.com>
12593
12594 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
12595
5b421780
PM
125962002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
12597 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
12598
9f60d481
AC
125992002-02-04 Andrew Cagney <ac131313@redhat.com>
12600
12601 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
12602 (do_sfunc, set_cmd_sfunc): New functions.
12603
12604 * command.h (struct cmd_list_element): Add field func.
12605 * cli/cli-decode.h (struct cmd_list_element): Ditto.
12606 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
12607 * cli/cli-decode.h: Ditto.
12608
12609 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
12610 (help_all, help_cmd_list): Ditto.
12611 (find_cmd, complete_on_cmdlist): Ditto.
12612 * top.c (execute_command): Ditto.
12613
12614 * cli/cli-setshow.c (do_setshow_command): Call func instead of
12615 function.sfunc.
12616
12617 * infcmd.c (notice_args_read): Fix function signature.
12618
12619 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
12620 * cli/cli-decode.c (add_set_cmd): Ditto.
12621 * utils.c (initialize_utils): Ditto.
12622 * maint.c (_initialize_maint_cmds): Ditto.
12623 * infrun.c (_initialize_infrun): Ditto.
12624 * demangle.c (_initialize_demangler): Ditto.
12625 * remote.c (add_packet_config_cmd): Ditto.
12626 * mips-tdep.c (_initialize_mips_tdep): Ditto.
12627 * cris-tdep.c (_initialize_cris_tdep): Ditto.
12628 * proc-api.c (_initialize_proc_api): Ditto.
12629 * kod.c (_initialize_kod): Ditto.
12630 * valprint.c (_initialize_valprint): Ditto.
12631 * top.c (init_main): Ditto.
12632 * infcmd.c (_initialize_infcmd): Ditto.
12633 * corefile.c (_initialize_core): Ditto.
12634 * arm-tdep.c (_initialize_arm_tdep): Ditto.
12635 * arch-utils.c (initialize_current_architecture): Ditto.
12636 (_initialize_gdbarch_utils): Ditto.
12637 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
12638
12639 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
12640 * wince.c (_initialize_inftarg): Ditto.
12641 * symfile.c (_initialize_symfile): Ditto.
12642 * mips-tdep.c (_initialize_mips_tdep): Ditto.
12643 * language.c (_initialize_language): Ditto.
12644 * arc-tdep.c (_initialize_arc_tdep): Ditto.
12645
f9ba0717
MS
126462002-02-04 Michael Snyder <msnyder@redhat.com>
12647
12648 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
12649
0c74b2a7
DJ
126502002-02-04 Daniel Jacobowitz <drow@mvista.com>
12651
12652 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
12653 Add rules for building the register data files.
12654
c638789f
DJ
126552002-02-04 Daniel Jacobowitz <drow@mvista.com>
12656
12657 * regformats/regdat.sh: Add braces to the definition of
12658 expedite_regs_${arch}.
12659
db253027
DJ
126602002-02-04 Daniel Jacobowitz <drow@mvista.com>
12661
12662 * regformats/regdef.h (struct reg): Add comment describing the
12663 requirements for offset and size fields.
12664
206be19c
AS
126652002-02-04 Andreas Schwab <schwab@suse.de>
12666
12667 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
12668 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
12669
181c1381
RE
126702002-02-04 Richard Earnshaw <rearnsha@arm.com>
12671
12672 * gdbarch.sh (copyright): Update years in generated header.
12673 (SMASH_TEXT_ADDRESS): Add rule.
db253027 12674 * gdbarch.h, gdbarch.c: Re-generate.
181c1381
RE
12675 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
12676 * dbxread.c: Likewise.
12677 * dwarfread.c: Likewise.
12678 * elfread.c: Likewise.
12679 * somread.c: Likewise.
12680
12681 * arm-tdep.c (arm_smash_text_address): New function.
12682 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
12683
fa4ba8da
PM
126842002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
12685
12686 Add support for hardware watchpoints on win32 native.
aaa38bb5 12687 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
fa4ba8da 12688 CONTEXT_DEBUG_REGISTERS.
aaa38bb5 12689 (dr variable): New variable. Static array containing a local copy
fa4ba8da
PM
12690 of debug registers.
12691 (debug_registers_changed): New variable. Reflects when debug registers
12692 are changed and need to be written to inferior.
aaa38bb5 12693 (debug_registers_used): New variable. Reflects when any debug register
fa4ba8da
PM
12694 was set, used when new threads are created.
12695 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
12696 i386-nat code.
12697 (thread_rec): Set dr array if id is the thread of current_event .
12698 (child_continue, child_resume): Change the debug registers for all
12699 threads if debug_registers_changed.
12700 (child_add_thread): Change the debug registers if debug_registers_used.
12701 * config/i386/cygwin.mh: Add use of i386-nat.o file.
12702 Link nm.h to new nm-cygwin.h file.
12703 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
12704 of hardware registers.
12705
a73c86fb
AC
127062002-02-03 Andrew Cagney <ac131313@redhat.com>
12707
12708 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
12709 Restore behavour broken by 2002-01-20 Andrew Cagney
12710 <ac131313@redhat.com> IEEE_FLOAT removal.
12711
acf5ed49
DJ
127122002-02-03 Daniel Jacobowitz <drow@mvista.com>
12713
12714 * c-valprint.c (c_val_print): Pass a proper valaddr to
12715 cp_print_class_method.
12716 * valops.c (search_struct_method): If there is only one method
12717 and args is NULL, return that method.
12718
493d28d5
DJ
127192002-02-03 Daniel Jacobowitz <drow@mvista.com>
12720
12721 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
12722 accessing tag_name directly.
12723
7495dfdb
DJ
127242002-02-03 Daniel Jacobowitz <drow@mvista.com>
12725
12726 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
12727 of accessing tag_name directly.
12728
dd6bda65
DJ
127292002-02-03 Daniel Jacobowitz <drow@mvista.com>
12730
12731 PR gdb/280
12732 * gdbtypes.c (replace_type): New function.
12733 * gdbtypes.h (replace_type): Add prototype.
12734 * stabsread.c (read_type): Use replace_type.
12735
88fe217c
RE
127362002-02-03 Richard Earnshaw <rearnsha@arm.com>
12737
12738 * Makefile.in (memattr.o): Add missing dependencies rule.
12739
e5d66720
PS
127402002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12741
12742 * breakpoint.c (break_at_finish_command): Really export.
12743 (break_at_finish_at_depth_command): Ditto.
12744 (tbreak_at_finish_command): Ditto.
12745 * hppa-tdep.c: Include completer.h.
12746 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
12747 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
12748
fffee0be
AC
127492002-02-01 Andrew Cagney <ac131313@redhat.com>
12750
12751 * utils.c (do_write): New function.
12752 (error_stream): Rewrite combining the code from error_begin and
12753 verror.
12754 (verror): Rewrite using error_stream.
12755 (error_begin): Delete function.
12756
255e7dbf
AC
127572002-02-01 Andrew Cagney <ac131313@redhat.com>
12758
12759 * utils.c (error_begin): Make static.
12760 * defs.h (error_begin): Delete declaration.
12761
12762 * linespec.c (cplusplus_error): Replace cplusplus_hint.
12763 (decode_line_1): Use cplusplus_error instead of error_begin,
12764 cplusplus_hint and return_to_top_level.
12765 * coffread.c (coff_symfile_read): Use error instead of error_begin
12766 and return_to_top_level.
12767 * infrun.c (default_skip_permanent_breakpoint): Ditto.
12768
ddfe3c15
AC
127692002-02-01 Andrew Cagney <ac131313@redhat.com>
12770
12771 * language.h (type_error, range_error): Make string parameter
12772 constant.
12773 * language.c (warning_pre_print): Delete extern declaration.
12774 * dwarfread.c (warning_pre_print): Ditto.
12775 * language.c (type_error, range_error): Rewrite to use verror and
12776 vwarning instead of warning_begin.
12777
03ac34d5
MS
127782002-02-01 Michael Snyder <msnyder@redhat.com>
12779
261c4ca2
MS
12780 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
12781 (set_ignore_count): Move misplaced comment back where it belongs.
03ac34d5 12782
e00d1dc8
AC
127832002-02-01 Andrew Cagney <ac131313@redhat.com>
12784
12785 * command.h (NO_FUNCTION): Delete macro.
12786 * cli/cli-decode.h (NO_FUNCTION): Ditto.
12787 * top.c (execute_command): Replace NO_FUNCTION with NULL.
12788 * tracepoint.c (_initialize_tracepoint): Ditto.
12789 * cli/cli-decode.c (add_set_cmd): Ditto.
12790 * cli/cli-cmds.c (init_cli_cmds): Ditto.
aaa38bb5 12791
76b79d6e
DJ
127922002-02-01 Daniel Jacobowitz <drow@mvista.com>
12793
12794 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
12795 Update ``this'' pointer when calling virtual functions.
12796
799f9e91
MS
127972002-02-01 Michael Snyder <msnyder@redhat.com>
12798
c7bd442c 12799 * breakpoint.c (create_temp_exception_breakpoint): Delete.
799f9e91
MS
12800 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
12801
3cf384d4
DJ
128022002-02-01 Daniel Jacobowitz <drow@mvista.com>
12803
12804 * regformats/reg-arm.dat: New file.
12805 * regformats/reg-i386.dat: New file.
12806 * regformats/reg-ia64.dat: New file.
12807 * regformats/reg-m68k.dat: New file.
12808 * regformats/reg-mips.dat: New file.
12809 * regformats/reg-ppc.dat: New file.
12810 * regformats/reg-sh.dat: New file.
12811 * regformats/regdef.h: New file.
12812 * regformats/regdat.sh: New file.
12813
0defa245
RE
128142002-02-01 Richard Earnshaw <reanrsha@arm.com>
12815
12816 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
12817 (arm_frame_args_address, arm_frame_locals_address): New functions.
12818 (arm_frame_num_args): New function.
12819 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
12820 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
12821 (FRMA_NUM_ARGS): Call arm_frame_num_args.
12822
405f26e6
MS
128232002-01-31 Michael Snyder <msnyder@redhat.com>
12824
502fd408
MS
12825 * breakpoint.c (break_at_finish_command): Export.
12826 (break_at_finish_at_depth_command): Export.
12827 (tbreak_at_finish_command): Export.
d6020d45 12828 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
502fd408 12829 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
d6020d45 12830 "txbreak" commands, which are HPPA specific.
502fd408 12831
7d35e135
MS
12832 * printcmd.c (disassemble_command): Remove an ancient
12833 artifact of an old merge.
12834
aaa38bb5 12835 * symfile.h (enum overlay_debugging_state):
d874f1e2
MS
12836 Define enum constant values for overlay mode.
12837 * symfile.c (overlay_debugging): Use enums instead of literals.
aaa38bb5
AJ
12838 (overlay_is_mapped, overlay_auto_command,
12839 overlay_manual_command): Ditto.
d874f1e2 12840
aaa38bb5
AJ
12841 * breakpoint.c (insert_breakpoints, remove_breakpoint,
12842 breakpoint_here_p, breakpoint_inserted_here_p,
12843 breakpoint_thread_match, bpstat_stop_status,
9f04af04
MS
12844 describe_other_breakpoints, check_duplicates, clear_command):
12845 Coding standard fixes.
12846
8add0441 12847 * target.c (target_xfer_memory): Add spaces, coding standard.
9f04af04 12848 (do_xfer_memory): Add missing line to trust-readonly
405f26e6
MS
12849 code: check bfd SEC_READONLY flag for section.
12850
e351066e
AC
128512002-01-31 Andrew Cagney <ac131313@redhat.com>
12852
7d35e135 12853 * PROBLEMS: Fix typo, 5.1->5.1.1.
e351066e 12854
8a48e967
DJ
128552002-01-30 Daniel Jacobowitz <drow@mvista.com>
12856
12857 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
12858 data symbols, since we search based on textlow and texthigh.
12859 (find_pc_sect_symtab): Likewise.
12860
f5a96129
AC
128612002-01-30 Andrew Cagney <ac131313@redhat.com>
12862
12863 * defs.h (vwarning): Declare.
f5a96129
AC
12864 * utils.c (vwarning): New function.
12865 (warning): Call vwarning.
12866 (warning_begin): Delete function.
12867
12868 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
12869 the warning message.
12870 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
12871 warning_begin.
12872
cefd4ef5
MS
128732002-01-30 Michael Snyder <msnyder@redhat.com>
12874
1a703748
MS
12875 * NEWS: Mention "set trust-readonly-sections" command.
12876 Mention generate-core-file command.
cefd4ef5 12877
3a11626d
MS
128782002-01-15 Michael Snyder <msnyder@redhat.com>
12879
12880 * target.c: New command, "set trust-readonly-sections on".
12881 (do_xfer_memory): Honor the suggestion to trust readonly sections
12882 by reading them from the object file instead of from the target.
12883 (initialize_targets): Register command "set trust-readonly-sections".
12884
d1c7e53b
AC
128852002-01-29 Andrew Cagney <ac131313@redhat.com>
12886
12887 * parse.c (target_map_name_to_register): Simplify, search regs and
12888 pseudo-regs using a single loop.
12889
e2c9a72c
AC
128902002-01-30 Andrew Cagney <ac131313@redhat.com>
12891
12892 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
12893
69824b4e
MK
128942002-01-15 Rodney Brown <rbrown64@csc.com.au>
12895
12896 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
12897 * config/i386/i386v42mp.mh: Add i387-nat.o .
12898 * i386v4-nat.c: Include i387-nat.h.
12899 (supply_fpregset): Use i387_supply_fsave.
12900 (fill_fpregset): Use i387_fill_fsave.
12901
6eb69eab
RE
129022002-01-30 Richard Earnshaw <rearnsha@arm.com>
12903
12904 * arm-tdep.c (arm_call_dummy_words): Define.
12905 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
12906 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
12907 (CALL_DUMMY_WORDS): Define.
12908 (arm_call_dummy_words): Declare.
12909 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
12910 (arm_linux_call_dummy_words): Declare.
12911
9852326a
AS
129122002-01-30 Andreas Schwab <schwab@suse.de>
12913
12914 * m68klinux-nat.c: Fix last change to use regcache_collect
12915 instead of referencing registers[] directly.
12916
977a3030
AC
129172002-01-29 Andrew Cagney <ac131313@redhat.com>
12918
12919 * parse.c (target_map_name_to_register): Delete code wrapped in
12920 #ifdef REGISTER_NAME_ALIAS_HOOK.
12921
2076c72b
MS
129222002-01-28 Michael Snyder <msnyder@redhat.com>
12923
12924 * regcache.c (legacy_read_register_gen): Need to be able to
12925 read pseudo-register as well as real register.
12926 (legacy_write_register_gen): Ditto.
12927
8fcc723b
AC
129282002-01-28 Andrew Cagney <ac131313@redhat.com>
12929
12930 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
12931 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
12932 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
12933 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
12934 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
12935 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
12936 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
12937 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
12938 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
12939 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
12940 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
12941 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
12942 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
12943 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
12944 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
12945 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
12946 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
12947 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
12948 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
12949 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
12950
afe64c1a
AC
129512002-01-28 Andrew Cagney <ac131313@redhat.com>
12952
12953 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
12954 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
12955 (initialize_current_architecture): Update target_byte_order using
12956 information from BFD.
aaa38bb5 12957 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
afe64c1a
AC
12958 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
12959
75bc7ddf
AC
129602002-01-28 Andrew Cagney <ac131313@redhat.com>
12961
12962 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
12963 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
12964
12965 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
12966 #ifdef INVALID_FLOAT.
12967 * infcmd.c (do_registers_info): Ditto.
12968 * values.c (unpack_double): Ditto. Add comment.
12969
12970 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
12971 already commented out.
12972
0280a90a
AS
129732002-01-26 Andreas Schwab <schwab@suse.de>
12974
12975 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
12976 * m68klinux-nat.c: Update ptrace interface for fetching/storing
12977 registers and add support for PTRACE_GETREGS.
12978
7072a954
AC
129792002-01-24 Andrew Cagney <ac131313@redhat.com>
12980
12981 GDB 5.1.1 released from 5.1 branch.
12982 * NEWS: Add 5.1.1 news.
12983 * README: Sync with 5.1 branch.
12984
86f902e0
FF
129852002-01-23 Fred Fish <fnf@redhat.com>
12986
12987 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
12988 stabstring on initial malloc. Reallocing will copy it for us,
12989 if necessary.
12990
8af51c36
EZ
129912002-01-23 Elena Zannoni <ezannoni@redhat.com>
12992
aaa38bb5 12993 * Makefile.in (hpread_h): Delete.
8af51c36
EZ
12994 (HFILES_NO_SRCDIR): Remove hpread.h.
12995 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
12996 (hpread.o): Update dependencies.
12997 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
12998
12999 * hp-psymtab-read.c: Remove file.
13000 * hp-symtab-read.c: Remove file.
13001 * hpread.h: Remove file.
13002
13003 * hpread.c: Merge all contents of hp-psymtab-read.c,
13004 hp-symtab-read.c and hpread.h into this file, as it was prior to
13005 January 1999.
13006
13007 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
aaa38bb5 13008 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
8af51c36
EZ
13009 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
13010 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
13011
dc5cfeb6
EZ
130122002-01-23 Elena Zannoni <ezannoni@redhat.com>
13013
13014 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
13015 fill_gregset): Call gdbarch_tdep() just once, assign result to
13016 variable and use that, instead of calling the function several
13017 times.
13018
ea87b71b
AO
130192002-01-24 Alexandre Oliva <aoliva@redhat.com>
13020
13021 * configure.host: Accept sparcv9 as alias for sparc64.
13022 * configure.tgt: Likewise.
13023
13fc0c2f
KB
130242002-01-22 Kevin Buettner <kevinb@redhat.com>
13025
13026 * solib-aix5.c (build_so_list_from_mapfile)
13027 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
13028 arguments is not reversed.
13029 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
13030 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
aaa38bb5 13031
7bd872fe
EZ
130322002-01-22 Elena Zannoni <ezannoni@redhat.com>
13033
13034 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
13035 modified version of obsolete sh_fetch_pseudo_register.
13036 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
13037 (sh4_register_read): New function.
13038 (sh_pseudo_register_write): New function. Renamed and modified
13039 version of obsolete sh_store_pseudo_register.
13040 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
13041 (sh4_register_write): New function.
13042 (sh_gdbarch_init): Remove setting of gdbarch function
13043 fetch_pseudo_register and store_pseudo_register. Remove setting of
13044 register_convert_to_raw, register_convert_to_virtual,
13045 register_convertible.
13046 (sh_sh4_register_convertible): Delete. No longer needed. All is
13047 taken care by architecture specific functions
13048 register_read/register_write.
13049 (sh_sh4_register_convert_to_virtual): Make static.
13050 (sh_sh4_register_convert_to_raw): Ditto.
13051
069e84fd
AC
130522002-01-22 Andrew Cagney <ac131313@redhat.com>
13053
13054 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
13055 (floatformat_is_nan, floatformat_mantissa): Ditto.
13056
13057 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
13058 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
13059 builtin_type_ieee_double_little,
13060 builtin_type_ieee_double_littlebyte_bigword,
13061 builtin_type_m68881_ext, builtin_type_i960_ext,
13062 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
13063 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
13064 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
13065 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
13066
211a4f69
CV
130672002-01-22 Corinna Vinschen <vinschen@redhat.com>
13068
13069 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
13070 parameter. Set frameless flag if it exists and depended of
13071 whether the scanned function is frameless or not.
13072 (xstormy16_skip_prologue): If function is frameless, return
13073 result of xstormy16_scan_prologue().
13074 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
13075 call.
13076
f81353e4
EZ
130772002-01-21 Elena Zannoni <ezannoni@redhat.com>
13078
13079 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
13080 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
13081 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
13082 sh_sh4_register_byte, sh_sh4_register_raw_size,
13083 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
13084 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
13085 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
13086 sh_store_pseudo_register, sh_do_pseudo_register): Call
13087 gdbarch_tdep() just once, assign result to variable and use that,
13088 instead of calling the function several times.
13089
63c73a17
MK
130902002-01-20 Mark Kettenis <kettenis@gnu.org>
13091
13092 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
13093 macros instead of LAST_FPU_CTRL_REGNUM.
13094 (store_register): Likewise.
13095
39ad761d
JB
130962002-01-21 Jim Blandy <jimb@redhat.com>
13097
13098 * infcmd.c (run_command): Check that the `exec' target layer's BFD
13099 is up-to-date before running the program, not just when a program
13100 exits.
13101
3d74b771
FF
131022002-01-21 Fred Fish <fnf@redhat.com>
13103
13104 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
13105 when we have found all instructions we are looking for.
13106
966fbf70
RE
131072002-01-21 Richard Earnshaw <rearnsha@arm.com>
13108
13109 * arm-tdep.c (arm_register_name): New function.
13110 (arm_registers_names): Make static.
13111 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
13112 (arm_register_name): Declare.
13113 (REGISTER_NAME): Use it.
13114
c3b4394c
RE
131152002-01-21 Richard Earnshaw <rearnsha@arm.com>
13116 Kevin Buettner <kevinb@redhat.com>
13117
13118 Convert arm targets to new FRAME interface.
13119 * arm-tdep.c (struct frame_extra_info): Remove fsr.
13120 (arm_frame_find_save_regs): Delete.
13121 (arm_frame_init_saved_regs): New.
13122 (arm_init_extra_frame_info): Alloacte saved_regs as required.
13123 Allocate extra_info as required. Convert all uses of fsr.regs
13124 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
13125 to use extra_info.
13126 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
13127 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
13128 (check_prologue_cache, save_prologue_cache): Likewise.
13129 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
13130 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
13131 (FRAME_FIND_SAVED_REGS): Delete.
13132 (arm_frame_find_saved_regs): Delete prototype.
13133 (arm_frame_init_saved_regs): New prototype.
13134 (FRAME_INIT_SAVED_REGS): Define.
13135
61d99182
AC
131362002-01-20 Andrew Cagney <ac131313@redhat.com>
13137
13138 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
13139
6aaea291
AC
131402002-01-20 Andrew Cagney <ac131313@redhat.com>
13141
13142 From Jeff Law <law@redhat.com>:
13143 * infttrace.c: Include <sys/pstat.h>.
13144 (child_pid_to_exec_file): Revamp. Use pstat call to get the
13145 exec file if the ttrace equivalent fails.
13146
15f698d2
AC
131472002-01-20 Andrew Cagney <ac131313@redhat.com>
13148
13149 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
13150 (closeLogFile): Ditto.
13151
f86ddd7c
MC
131522002-01-20 Michael Chastain <mec@shout.net>
13153
13154 * top.c (print_gdb_version): Bump copyright year to 2002.
13155
904507ce
AC
131562002-01-20 Andrew Cagney <ac131313@redhat.com>
13157
13158 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
13159 Zannoni and Eli Zaretskii.
13160
d7f0b9ce
DJ
131612002-01-20 Daniel Jacobowitz <drow@mvista.com>
13162
13163 * buildsym.c: Update copyright years.
13164 * c-typeprint.c: Likewise.
13165 * dwarf2read.c: Likewise.
13166 * f-typeprint.c: Likewise.
13167 * gdbtypes.c: Likewise.
13168 * gdbtypes.h: Likewise.
13169 * hp-symtab-read.c: Likewise.
13170 * hpread.c: Likewise.
13171 * mdebugread.c: Likewise.
13172 * p-typeprint.c: Likewise.
13173
3fd3d7d2
AC
131742002-01-20 Andrew Cagney <ac131313@redhat.com>
13175
13176 * remote-sim.c (gdbsim_open): Simplify code testing the macro
13177 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
13178 byte-order selectable.
13179 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
13180 * arch-utils.c: Ditto.
13181 (set_endian): Ditto.
13182 (set_endian_from_file): Ditto.
13183 * gdbserver/low-sim.c (create_inferior): Ditto.
13184 * gdbarch.sh: Ditto.
13185 * gdbarch.h: Re-generate.
aaa38bb5
AJ
13186 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13187 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
13188 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
13189 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13190 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13191 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13192 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
3fd3d7d2
AC
13193 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
13194 macro definition.
13195 * config/mips/tm-wince.h: Remove #undef of macro
13196 TARGET_BYTE_ORDER_SELECTABLE.
13197 * config/sh/tm-wince.h: Ditto.
13198
b02dede2
DJ
131992002-01-20 Daniel Jacobowitz <drow@mvista.com>
13200
13201 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
13202 member function fields. Add accessor macro
13203 TYPE_FN_FIELD_ARTIFICIAL.
13204 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
13205 * c-typeprint.c (c_type_print_base): Skip artificial member
13206 functions.
13207
c3643761
DJ
132082002-01-20 Daniel Jacobowitz <drow@mvista.com>
13209
13210 * f-typeprint.c: Delete unused function f_type_print_args.
13211 * p-typeprint.c: Delete unused function pascal_type_print_args.
13212
8176bb6d
DJ
132132002-01-20 Daniel Jacobowitz <drow@mvista.com>
13214
13215 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
13216 comment. Add ``artificial'' to ``union field_location''.
13217
13218 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
13219
13220 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
13221 * mdebugread.c (parse_symbol): Likewise.
13222 * stabsread.c (define_symbol): Likewise.
13223 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
13224 initializing TYPE_FIELD_BITPOS to n (obsolete).
13225 (hpread_doc_function_type): Likewise.
13226 * hpread.c (hpread_function_type): Likewise.
13227
7fd60527
AC
132282002-01-20 Andrew Cagney <ac131313@redhat.com>
13229
13230 * configure.in (host_makefile_frag): Only require a host makefile
13231 fragment when a native build.
13232 * configure: Re-generate.
13233
c2f05ac9
AC
132342002-01-20 Andrew Cagney <ac131313@redhat.com>
13235
13236 * doublest.h (floatformat_from_type): Declare.
13237 * doublest.c (floatformat_from_type): New function.
13238 (convert_typed_floating): Use.
13239
13240 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
13241 call to function floatformat_from_type.
13242
13243 * gdbarch.sh (IEEE_FLOAT): Delete.
13244 * gdbarch.h, gdbarch.c: Re-generate.
13245 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
13246 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
13247 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
13248 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
13249 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
13250 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
13251 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
13252 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
13253 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
13254 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
13255 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
c2f05ac9
AC
13256 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
13257
13258 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
13259 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
13260 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
13261 * sh-tdep.c (sh_gdbarch_init): Ditto.
13262 * mips-tdep.c (mips_gdbarch_init): Ditto.
13263 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
13264 * cris-tdep.c (cris_gdbarch_init): Ditto.
13265
abf22e64
AJ
132662002-01-20 Jiri Smid <smid@suse.cz>
13267
13268 * configure.host, configure.tgt: Support x86-64.
13269 * NEWS: Note new target x86-64.
13270
b7c4cbf8
AJ
13271 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
13272 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
13273 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
13274 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
13275 x86-64-linux-nat.o): Fix dependencies.
13276
82600034
AC
132772002-01-19 Andrew Cagney <ac131313@redhat.com>
13278
13279 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
13280 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
13281 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
13282 * config/sparc/xm-sun4os4.h: Delete file.
13283 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
abf22e64 13284
bbe5c628
AC
132852002-01-19 Andrew Cagney <ac131313@redhat.com>
13286
13287 * config/sparc/sparclynx.mh (XM_FILE): Delete.
13288 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
13289 * config/m68k/m68klynx.mh (XM_FILE): Delete.
13290 * config/i386/i386lynx.mh (XM_FILE): Delete.
13291 * config/rs6000/xm-rs6000ly.h: Delete file.
13292 * config/sparc/xm-sparclynx.h: Delete file.
13293 * config/m68k/xm-m68klynx.h: Delete file.
13294 * config/i386/xm-i386lynx.h: Delete file.
13295 * config/xm-lynx.h: Delete file.
13296 * config/djgpp/fnchange.lst: Update.
13297
f8453e34
JT
132982002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13299
13300 * alpha-tdep.c (alpha_register_byte): New function.
13301 (alpha_register_raw_size): Ditto.
13302 (alpha_register_virtual_size): Ditto.
13303 (alpha_skip_prologue_internal): Renamed from
13304 alpha_skip_prologue.
13305 (alpha_skip_prologue): New version that calls
13306 alpha_skip_prologue_internal.
13307 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
13308 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
13309 second argument from alpha_skip_prologue.
13310 (REGISTER_BYTE): Use alpha_register_byte.
13311 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
13312 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
13313 (FRAMELESS_FUNCTION_INVOCATION): Use
13314 generic_frameless_function_invocation_not.
13315 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
13316 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
13317
52d9e613
AC
133182002-01-19 Andrew Cagney <ac131313@redhat.com>
13319
13320 * config/mips/xm-news-mips.h: Delete file.
13321 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
13322
13323 * config/m88k/xm-m88k.h: Delete file.
13324 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
13325 * config/m88k/xm-delta88v4.h: Ditto.
13326 * config/m88k/xm-delta88.h: Ditto.
13327
13328 * config/alpha/xm-fbsd.h: Delete file.
13329 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
13330
13331 * config/sparc/xm-sparc.h: Delete file.
13332 * Makefile.in (xm-sun4os4.h): Delete dependency.
13333 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
13334 * config/sparc/xm-sun4os4.h: Ditto.
13335 * config/sparc/xm-linux.h: Ditto.
13336
13337 * config/i386/xm-windows.h: Delete file.
13338
2d1b2124
AC
133392002-01-19 Andrew Cagney <ac131313@redhat.com>
13340
13341 * utils.c: Include <sys/param.h> for MAXPATHLEN.
13342 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
13343
ee1f65f0
JT
133442002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13345
13346 * alpha-tdep.c (alpha_call_dummy_words): New.
13347 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
13348 (CALL_DUMMY_P): Define.
13349 (CALL_DUMMY_WORDS): Define.
13350 (SIZEOF_CALL_DUMMY_WORDS): Define.
13351
98081e55
PB
133522002-01-19 Per Bothner <per@bothner.com>
13353
13354 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
13355 isn't NULL, which can happen with some gcj-3.x-produced code.
13356
0d056799
JT
133572002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13358
13359 * alpha-tdep.c (alpha_register_virtual_type): New function.
13360 (alpha_init_frame_pc_first): Ditto.
13361 (alpha_fix_call_dummy): Ditto.
13362 (alpha_store_struct_return): Ditto.
13363 (alpha_extract_struct_value_address): Ditto.
13364 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
13365 alpha_register_virtual_type.
13366 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
13367 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
13368 alpha_extract_struct_value_address.
13369 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
13370 (INIT_FRAME_PC): Use init_frame_pc_noop.
13371 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
13372
4604bcad
MK
133732002-01-19 Mark Kettenis <kettenis@gnu.org>
13374
13375 * i386gnu-nat.c: Include "i386-tdep.h".
13376 (fetch_fpregs): Simplify code dealing with uninitialized floating
13377 point states such that it doesn't require FP7_REGNUM.
13378
140f9984
JT
133792002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13380
abf22e64
AJ
13381 * alpha-tdep.c (frame_extra_info): New.
13382 (alpha_find_saved_regs): Make static. Use
140f9984
JT
13383 frame->extra_info.
13384 (alpha_frame_init_saved_regs): New function.
abf22e64
AJ
13385 (alpha_frame_saved_pc): Use frame->extra_info.
13386 (temp_saved_regs): Don't declare as struct frame_saved_regs.
13387 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
140f9984
JT
13388 (init_extra_frame_info): Rename to...
13389 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
abf22e64 13390 (alpha_print_extra_frame_info): New function.
140f9984
JT
13391 (alpha_frame_locals_address): Ditto.
13392 (alpha_frame_args_address): Ditto.
abf22e64 13393 (alpha_pop_frame): Use frame->extra_info.
140f9984
JT
13394 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
13395 alpha_frame_args_address.
abf22e64 13396 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
140f9984 13397 (alpha_find_saved_regs): Remove prototype.
abf22e64
AJ
13398 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
13399 (EXTRA_FRAME_INFO): Remove.
140f9984
JT
13400 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
13401 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
13402
d734c450
JT
134032002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13404
13405 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
13406 (alpha_cannot_fetch_register): Ditto.
13407 (alpha_cannot_store_register): Ditto.
13408 (alpha_register_convertible): Ditto.
13409 (alpha_use_struct_convention): Ditto.
13410 * config/alpha/tm-alpha.h: Update copyright years.
13411 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
13412 (INNER_THAN): Use core_addr_lessthan.
13413 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
13414 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
13415 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
13416 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
13417 (FRAME_CHAIN): Remove unnecessary cast.
13418
b4ceaee6
AC
134192002-01-18 Andrew Cagney <ac131313@redhat.com>
13420
13421 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
13422 obsolete.
13423
0a65a603
AC
134242002-01-18 Andrew Cagney <ac131313@redhat.com>
13425
13426 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
13427 * monitor.c, remote-array.c, remote-bug.c: Ditto.
13428 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
13429 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
13430 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
13431 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
13432 * x86-64-linux-nat.c: Ditto.
13433
636a6dfc
JT
134342002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13435
abf22e64 13436 * alpha-tdep.c (alpha_register_name): New function.
636a6dfc
JT
13437 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
13438 (REGISTER_NAME): Define.
13439
acceddb6
JT
134402002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13441
13442 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
13443
ec32e4be
JT
134442002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13445
13446 * alpha-tdep.c: Update copyright years.
13447 (alpha_next_pc): New function.
13448 (alpha_software_single_step): Ditto.
13449 * config/alpha/tm-alpha.h: Add prototype for
13450 alpha_software_single_step.
13451
e771a871
JT
134522002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13453
13454 * alphabsd-nat.c: Update copyright years.
13455 (fill_gregset): Use regcache_collect.
13456 (fill_fpregset): Likewise.
13457 (fetch_inferior_registers): Only fetch integer registers
13458 if requested to do so.
13459 (store_inferior_registers): Only store integer registers
13460 if requested to do so.
13461
7708fa01
AC
134622002-01-17 Andrew Cagney <ac131313@redhat.com>
13463
13464 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
13465 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
13466 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
13467 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
13468 * config/alpha/fbsd.mh (XDEPFILES): Delete.
13469 * config/arm/linux.mh (XDEPFILES): Delete.
13470 * config/arm/nbsd.mh (XDEPFILES): Delete.
13471 * config/i386/i386dgux.mh (XDEPFILES): Delete.
13472 * config/i386/i386sol2.mh (XDEPFILES): Delete.
13473 * config/i386/i386m3.mh (XDEPFILES): Delete.
13474 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
13475 * config/i386/i386gnu.mh (XDEPFILES): Delete.
13476 * config/i386/fbsd.mh (XDEPFILES): Delete.
13477 * config/i386/i386bsd.mh (XDEPFILES): Delete.
13478 * config/i386/i386sco5.mh (XDEPFILES): Delete.
13479 * config/i386/i386v4.mh (XDEPFILES): Delete.
13480 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
13481 * config/i386/i386sco4.mh (XDEPFILES): Delete.
13482 * config/i386/i386aix.mh (XDEPFILES): Delete.
13483 * config/i386/go32.mh (XDEPFILES): Delete.
13484 * config/i386/cygwin.mh (XDEPFILES): Delete.
13485 * config/i386/i386lynx.mh (XDEPFILES): Delete.
13486 * config/i386/i386mach.mh (XDEPFILES): Delete.
13487 * config/i386/i386v32.mh (XDEPFILES): Delete.
13488 * config/i386/linux.mh (XDEPFILES): Delete.
13489 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
13490 * config/i386/ncr3000.mh (XDEPFILES): Delete.
13491 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
13492 * config/i386/i386sco.mh (XDEPFILES): Delete.
13493 * config/i386/i386v.mh (XDEPFILES): Delete.
13494 * config/i386/nbsd.mh (XDEPFILES): Delete.
13495 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
13496 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
13497 * config/i386/symmetry.mh (XDEPFILES): Delete.
13498 * config/i386/obsd.mh (XDEPFILES): Delete.
13499 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
13500 * config/ia64/linux.mh (XDEPFILES): Delete.
13501 * config/ia64/aix.mh (XDEPFILES): Delete.
13502 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
13503 * config/m68k/dpx2.mh (XDEPFILES): Delete.
13504 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
13505 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
13506 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
13507 * config/m68k/linux.mh (XDEPFILES): Delete.
13508 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
13509 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
13510 * config/m68k/nbsd.mh (XDEPFILES): Delete.
13511 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
13512 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
13513 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
13514 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
13515 * config/m88k/delta88.mh (XDEPFILES): Delete.
13516 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
13517 * config/m88k/m88k.mh (XDEPFILES): Delete.
13518 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
13519 * config/mips/linux.mh (XDEPFILES): Delete.
13520 * config/mips/irix6.mh (XDEPFILES): Delete.
13521 * config/mips/irix5.mh (XDEPFILES): Delete.
13522 * config/mips/irix4.mh (XDEPFILES): Delete.
13523 * config/mips/irix3.mh (XDEPFILES): Delete.
13524 * config/mips/decstation.mh (XDEPFILES): Delete.
13525 * config/mips/mipsm3.mh (XDEPFILES): Delete.
13526 (NATDEPFILES): Move core-aout.o to here.
13527 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
13528 * config/pa/hpux1020.mh (XDEPFILES): Delete.
13529 * config/pa/hppabsd.mh (XDEPFILES): Delete.
13530 * config/pa/hppahpux.mh (XDEPFILES): Delete.
13531 * config/pa/hpux11w.mh (XDEPFILES): Delete.
13532 * config/pa/hppaosf.mh (XDEPFILES): Delete.
13533 * config/pa/hpux11.mh (XDEPFILES): Delete.
13534 * config/powerpc/aix.mh (XDEPFILES): Delete.
13535 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
13536 * config/powerpc/linux.mh (XDEPFILES): Delete.
13537 * config/romp/rtbsd.mh: Rename XDEPFILES.
13538 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
13539 * config/rs6000/aix4.mh (XDEPFILES): Delete.
13540 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
13541 * config/s390/s390.mh (XDEPFILES): Delete.
13542 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
13543 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
13544 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
13545 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
13546 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
13547 * config/sparc/nbsd.mh (XDEPFILES): Delete.
13548 * config/sparc/linux.mh (XDEPFILES): Delete.
13549 * config/vax/vaxult.mh (XDEPFILES): Delete.
13550 * config/vax/vaxult2.mh (XDEPFILES): Delete.
13551 * Makefile.in (DEPFILES): Remove XDEPFILES.
13552
375fc983
AC
135532002-01-17 Andrew Cagney <ac131313@redhat.com>
13554
13555 * utils.c (internal_verror): Fix comments, default is yes not no.
13556 Update queries to match. Default to quit and dump core.
13557
8926118c
AC
135582002-01-17 Andrew Cagney <ac131313@redhat.com>
13559
13560 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
13561 copyright.
13562 * defs.h, event-top.c, gdbcmd.h: Ditto.
13563 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
13564 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
13565 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
13566 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
13567 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
13568 * mi/mi-main.c:Ditto.
13569
13570 * stack.c, symfile.c: Update copyright.
13571
45b7b345
DJ
135722002-01-17 Daniel Jacobowitz <drow@mvista.com>
13573
db728ff7
DJ
13574 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
13575 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
13576 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
13577 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
45b7b345 13578
db728ff7
DJ
135792002-01-17 Daniel Jacobowitz <drow@mvista.com>
13580
13581 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
13582 * gdbserver/low-lynx.c (myattach): Likewise.
13583 * gdbserver/low-nbsd.c (myattach): Likewise.
13584 * gdbserver/low-sim.c (myattach): Likewise.
13585 * gdbserver/low-sparc.c (myattach): Likewise.
13586 * gdbserver/low-sun3.c (myattach): Likewise.
13587
13588 * gdbserver/low-linux.c (myattach): New function.
45b7b345 13589
db728ff7 13590 * gdbserver/server.c (attach_inferior): New function.
45b7b345
DJ
13591 (main): Handle "--attach".
13592
8de3c354
AC
135932002-01-16 Andrew Cagney <ac131313@redhat.com>
13594
13595 * MAINTAINERS (language support): Daniel Jacobwitz is C++
13596 maintainer.
13597
b0129042
DJ
135982002-01-15 Daniel Jacobowitz <drow@mvista.com>
13599
13600 * c-typeprint.c (is_type_conversion_operator): Add additional
13601 check for non-conversion operators.
13602
ba8679fb 136032002-01-15 Michael Snyder <msnyder@redhat.com>
2bf543a6
MS
13604
13605 * linux-proc.c: Add "info proc" command, a la procfs.c.
13606 (read_mapping): New function, abstract and re-use code.
13607 (linux_find_memory_regions): Use new func read_mapping.
13608 (linux_info_proc_cmd): New function, implement "info proc".
13609 (_initialize_linux_proc): Add new command "info proc".
13610
e4f9b4d5
MS
136112002-01-15 Michael Snyder <msnyder@redhat.com>
13612
13613 * symfile.c (generic_load): Use bfd_map_over_sections method
13614 instead of manipulating bfd structure members directly.
13615 (add_section_size_callback): New function, bfd sections callback
13616 used by generic_load.
13617 (load_sections_callback): New function, bfd sections callback
13618 used by generic_load.
13619
08cf96df
EZ
136202002-01-15 Elena Zannoni <ezannoni@redhat.com>
13621
abf22e64 13622 [Based on work by Jim Blandy]
08cf96df
EZ
13623 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
13624 (builtin_type_vec128): Export.
13625 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
13626 types.
13627 (builtin_type_vec128): New builtin type for 128 bit vector
13628 registers.
13629 (build_gdbtypes): Initialize builtin_type_v16qi and
13630 builtin_type_v8hi. Create the vec128 register builtin type
13631 structure.
13632 (build_builtin_type_vec128): New function.
abf22e64 13633 (_initialize_gdbtypes): Register builtin_type_v16qi and
08cf96df
EZ
13634 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
13635 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
13636 AltiVec register to new builtin type.
13637
d7242108
DJ
136382001-01-15 Daniel Jacobowitz <drow@mvista.com>
13639
13640 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
13641 to make_cv_type.
13642
4ee3352d
AC
136432002-01-14 Andrew Cagney <ac131313@redhat.com>
13644
13645 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
13646 CLEAN_UP_REGISTER_VALUE.
13647 * regcache.c (supply_register): Update only call.
13648
f015b2e7
AC
136492002-01-14 Andrew Cagney <ac131313@redhat.com>
13650
13651 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
13652 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
13653 a29k-*-vxworks* targets as obsolete.
13654
356ae49d
MS
136552002-01-14 Michael Snyder <msnyder@redhat.com>
13656
13657 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
13658 until we can resolve portability issues.
13659 * gregset.h: Remove references to fpxregs.
13660 * gcore.c (gcore_command): Initialize note_sec to NULL.
13661
ade8f45e
AC
136622002-01-13 Andrew Cagney <ac131313@redhat.com>
13663
13664 * signals.c (target_signal_to_name): Rewrite. Only use
13665 signals[].name when in bounds and non-NULL.
abf22e64 13666
89c49e7a
AC
136672002-01-13 Andrew Cagney <ac131313@redhat.com>
13668
13669 From Petr Ledvina <ledvinap@kae.zcu.cz>:
13670 * signals.c (target_signal_to_name): Verify that SIG is within the
13671 bounds of the signals array.
13672
4daa9f9f
AC
136732002-01-13 Andrew Cagney <ac131313@redhat.com>
13674
13675 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
13676
ba4bbdcb
KS
136772002-01-13 Keith Seitz <keiths@redhat.com>
13678
13679 * stack.c (print_frame_info_base): Print the frame's pc
13680 only if when print_frame_info_listing_hook is not defined.
13681
575bbeb6
KS
136822002-01-13 Keith Seitz <keiths@redhat.com>
13683
13684 * varobj.c (varobj_set_value): Make sure that there were no
13685 errors evaluating the object before attempting to set its
13686 value.
13687 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
13688 so this offset adjustment is no longer necessary.
13689 (create_child): Don't set the error flag if the child is
13690 a CPLUS_FAKE_CHILD.
13691 (value_of_child): If value_fetch_lazy fails, return NULL
13692 so that callers will be notified that an error occurred.
13693 (c_value_of_variable): Delay check of variable's validity
13694 until later. We actually want all structs and unions to have
13695 the value "{...}".
13696 Do not return "???" for variables which could not be evaluated.
13697 This error condition must be returned to the caller so that it
13698 can get the error condition from gdb.
13699 (cplus_name_of_child): Adjust index for vptr before figuring
13700 out the name of the child.
13701 (cplus_value_of_child): If a child's (real) parent is not valid,
13702 don't even bother trying to give a value for it. Just return
13703 an error. Change all instances in this function.
13704 (cplus_type_of_child): If our parent is one of the "fake"
13705 parents, we need to get at the type of the real parent, and
13706 derive the child's true type using this information.
13707
b76898ab
AC
137082002-01-13 Andrew Cagney <ac131313@redhat.com>
13709
13710 From 2002-01-09 John Marshall <johnm@falch.net>:
13711 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
13712 sources.redhat.com, and tweak some related URLs which had
13713 suffered from linkrot.
13714
b6649e88
AC
137152002-01-13 Andrew Cagney <ac131313@redhat.com>
13716
13717 From Jeff law:
13718 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
13719 structures passed in registers.
13720
82cc5033
EZ
137212002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
13722
13723 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
13724 white space which prevented compilation. Reported by DSK
13725 <dsk@student.unsw.edu.au>.
13726
ba5f2f8a
MS
137272002-01-11 Michael Snyder <msnyder@redhat.com>
13728
fbd35540
MS
13729 * symfile.c (build_section_addr_info_from_section_tab):
13730 Use bfd access method instead of manipulating bfd directly.
13731 (syms_from_objfile): Ditto.
13732 (simple_overlay_update_1): Ditto.
13733 (simple_overlay_update): Ditto.
13734 (generic_load): Ditto.
13735 (overlay_unmapped_address): FIXME comment, bfd access methods.
13736 (sections_overlap): FIXME comment, bfd access methods.
13737 (pc_in_mapped_range): FIXME comment, bfd access methods.
13738 (pc_in_unmapped_range): FIXME comment, bfd access methods.
13739 (section_is_mapped): FIXME comment, bfd access methods.
13740 (section_is_overlay): FIXME comment, bfd access methods.
13741
ba5f2f8a
MS
13742 * symfile.c (generic_load): Whitespace and long line cleanups.
13743 Remove duplicate variable, change several local variables to
13744 more appropriate data types.
13745 (print_transfer_performance): Use %lu instead of %ld for ulongs.
13746
17df2af6
AC
137472002-01-12 Andrew Cagney <ac131313@redhat.com>
13748
13749 From Peter Schauer:
13750 * language.c (longest_local_hex_string_custom): Use phex_nz to
13751 convert NUM to a hex string.
13752
ec920329
EZ
137532002-01-12 Elena Zannoni <ezannoni@redhat.com>
13754
13755 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
13756 the function.
538a76d6 13757 Update Copyright year.
ec920329 13758
3abd2e01
AC
137592002-01-12 Andrew Cagney <ac131313@redhat.com>
13760
13761 * language.c (longest_raw_hex_string): Delete unused function.
13762
b21b22e0
PS
137632002-01-11 Petr Sorfa <petrs@caldera.com>
13764
13765 * MAINTAINERS (write-after-approval): Add myself.
13766 * dwarf2read.c (read_tag_string_type): Handling of
13767 DW_AT_byte_size.
13768 (read_tag_string_type): FORTRAN fix to prevent propagation of
13769 first string size.
13770 (set_cu_language): Handling of DW_LANG_Fortran95
13771
747fe712
RE
137722002-01-11 Richard Earnshaw <rearnsha@arm.com>
13773
13774 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
13775 GETPID(inferior_ptid).
13776 (store_inferior_registers): Likewise.
13777
f1bea926
JM
137782002-01-10 Jason Merrill <jason@redhat.com>
13779
13780 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
13781 Fix DW_OP_minus.
13782
ae940673
AC
137832002-01-10 Andrew Cagney <ac131313@redhat.com>
13784
13785 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
13786 and bfd/elf32-sh-nbsd.c.
13787
00546b04
MS
137882002-01-10 Michael Snyder <msnyder@redhat.com>
13789
352ed7b4
MS
13790 * NEWS: Mention --pid and corefile/proc-id behavior change.
13791
c18be923
MS
13792 * Makefile.in: Add rules for gcore.o and linux-proc.o.
13793 * gcore.c: Include cli/cli-decode.h instead of command.h.
13794
00546b04
MS
13795 * main.c (captured_main): Add new command line option "--pid".
13796 If the second command line argument (following the symbol-file)
13797 begins with a digit, try to attach to it before trying to open
13798 it as a corefile.
13799 (print_gdb_help): Document the "--pid" argument.
13800
db60ec62
EZ
138012002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
13802
13803 * completer.c (command_completer): New function.
13804
13805 * completer.h <command_completer>: Add prototype.
13806
13807 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
13808 completer for the "help" command.
13809
39c22d1a
JM
138102002-01-09 Jason Merrill <jason@redhat.com>
13811
13812 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
13813
c564377f
MS
138142002-01-09 Michael Snyder <msnyder@redhat.com>
13815
975aec09
MS
13816 * i386-linux-nat.c (fill_fpxregset): Make global.
13817 (store_fpxregset): Ditto.
13818
db4a10fa
MS
13819 * gregset.h (gdb_fpxregset_t): Define.
13820 (supply_fpxregset): Prototype.
13821 (fill_fpxregset): Prototype.
13822
c564377f
MS
13823 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
13824
c3d45d70
RE
138252002-01-09 Richard Earnshaw <rearnsha@arm.com>
13826
13827 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
13828 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
13829 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
13830
fcc87af1
AC
138312002-01-09 Andrew Cagney <ac131313@redhat.com>
13832
13833 * MAINTAINERS: Update target maintainer rules so that any
13834 Maintainer can approve a tested patch for a maintenance-only
13835 target.
13836
dd96c05b
RE
138372002-01-09 Richard Earnshaw <rearnsha@arm.com>
13838
d4297db9 13839 * MAINTAINERS (write-after-approval): Add myself.
dd96c05b 13840
d4297db9 13841 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
dd96c05b
RE
13842 IN_SIGTRAMP.
13843
145fdc6e
MS
138442002-01-08 Michael Snyder <msnyder@redhat.com>
13845
13846 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
13847 real name of the executable, rather than the /proc name.
13848
be4d1333
MS
138492002-01-03 Michael Snyder <msnyder@redhat.com>
13850
13851 Implement a "generate-core-file" command in gdb, save target state.
13852 * gcore.c: New file. Implement new command 'generate-core-file'.
13853 Save a corefile image of the current state of the inferior.
13854 * linux-proc.c: Add linux-specific code for saving corefiles.
13855 * target.h (struct target_ops): Add new target vectors for saving
13856 corefiles; to_find_memory_regions and to_make_corefile_notes.
13857 (target_find_memory_regions): New macro.
13858 (target_make_corefile_notes): New macro.
13859 * target.c (update_current_target): Inherit new target methods.
13860 (dummy_find_memory_regions): New place-holder method.
13861 (dummy_make_corefile_notes): New place-holder method.
13862 (init_dummy_target): Initialize new dummy target vectors.
13863 * exec.c (exec_set_find_memory_regions): New function.
13864 Allow the exec_ops vector for memory regions to be taken over.
13865 (exec_make_note_section): New function, target vector method.
13866 * defs.h (exec_set_find_memory_regions): Export prototype.
13867 * procfs.c (proc_find_memory_regions): New function, corefile method.
13868 (procfs_make_note_section): New function, corefile method.
13869 (init_procfs_ops): Set new target vector pointers.
13870 (find_memory_regions_callback): New function.
13871 (procfs_do_thread_registers): New function.
13872 (procfs_corefile_thread_callback): New function.
13873 * sol-thread.c (sol_find_memory_regions): New function.
13874 (sol_make_note_section): New function.
13875 (init_sol_thread_ops): Initialize new target vectors.
13876 * inftarg.c (inftarg_set_find_memory_regions): New function.
13877 Allow to_find_memory_regions vector to be taken over.
13878 (inftarg_set_make_corefile_notes): New function.
13879 Allow to_make_corefile_notes vector to be taken over.
13880 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
13881 interface layer if not target_has_execution (may be a corefile).
13882 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
13883 * config/sparc/sun4sol2.mh: Ditto.
13884 * config/alpha/alpha-linux.mh: Ditto.
13885 * config/arm/linux.mh: Ditto.
13886 * config/i386/x86-64linux.mh: Ditto.
13887 * config/ia64/linux.mh: Ditto.
13888 * config/m68k/linux.mh: Ditto.
13889 * config/mips/linux.mh: Ditto.
13890 * config/powerpc/linux.mh: Ditto.
13891 * config/sparc/linux.mh: Ditto.
13892
c6b92abd
MS
138932002-01-07 Michael Snyder <msnyder@redhat.com>
13894
13895 * arm-linux-nat.c: Remove references to regcache.c internal data
13896 (registers[] and register_valid[]).
13897
4b09dc8c
MS
138982002-01-07 Michael Snyder <msnyder@redhat.com>
13899
abf22e64
AJ
13900 * linux-proc.c: New file. Implement child_pid_to_exec_file,
13901 so that attaching to a pid will automatically read the process's
4b09dc8c
MS
13902 symbol file and shlibs.
13903 * Makefile.in: Add rule for linux-proc.o.
13904 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
13905 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
13906 * config/arm/linux.mh: Ditto.
13907 * config/i386/linux.mh: Ditto.
13908 * config/i386/x86-64linux.mh: Ditto.
13909 * config/ia64/linux.mh: Ditto.
13910 * config/m68k/linux.mh: Ditto.
13911 * config/mips/linux.mh: Ditto.
13912 * config/powerpc/linux.mh: Ditto.
13913 * config/sparc/linux.mh: Ditto.
13914
c25b74ac
PM
139152002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
13916
13917 * win32-nat.c: Add i386-tdep.h dependency.
13918
94cd915f
MS
139192002-01-07 Michael Snyder <msnyder@redhat.com>
13920
c7cccb76
MS
13921 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
13922 instead of bfd_get_arch_size. Don't bail out just because
13923 there's no exec_bfd.
abf22e64 13924
34c0bd93
MS
13925 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
13926 * p-valprint.c (pascal_object_print_value): Ditto.
13927 * somread.c (som_symtab_read): Ditto.
13928 * symfile.c (simple_free_overlay_region_table): Ditto.
13929 * valops.c (value_assign): Ditto.
13930
21c1c920
MS
13931 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
13932 use tilde_expand and strerror for opening save-tracepoints file.
13933
5bbd998e
MS
13934 * thread-db.c (thread_db_new_objfile): Indendation fix.
13935
94cd915f
MS
13936 * infptrace.c (GDB_MAX_ALLOCA): New define.
13937 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
abf22e64 13938 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
94cd915f
MS
13939 can be overridden with whatever value is appropriate to the host).
13940 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
13941 alloca to allocate potentially large buffer.
13942 * rs6000-nat.c (child_xfer_memory): Ditto.
13943 * symm-nat.c (child_xfer_memory): Ditto.
13944 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
13945
494e8a93
JSC
139462002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
13947
13948 From Nick Clifton <nickc@redhat.com>
13949 * d10v-tdep.c: Set STACK_START to 0x200bffe.
13950
d0e1d48e
MS
139512002-01-07 Michael Snyder <msnyder@redhat.com>
13952
abf22e64 13953 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
d0e1d48e
MS
13954 Don't use exec_bfd if it's NULL.
13955
290b2c7a
MK
139562002-01-06 Mark Kettenis <kettenis@gnu.org>
13957
abf22e64 13958 * valops.c (value_arg_coerce): Fix formatting.
290b2c7a 13959
aef21287
AC
139602002-01-06 Andrew Cagney <ac131313@redhat.com>
13961
13962 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
13963 * gnu-nat.c: Ditto.
13964
30efa627
AC
139652002-01-06 Andrew Cagney <ac131313@redhat.com>
13966
13967 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
13968 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
13969 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
13970 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
13971 z8k-coff have not been multi-arched. Update z8k-coff build
13972 status.
13973
9b4ff276
AC
139742002-01-06 Andrew Cagney <ac131313@redhat.com>
13975
13976 * MAINTAINERS: Mark a29k target as obsolete.
13977 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
13978 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
13979 comments.
13980 * NEWS: Note that a29k targets are obsolete.
13981 * a29k-tdep.c: Mark as obsolete.
13982 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
13983 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
13984 a29k-*-vxworks* targets as obsolete.
13985 * remote-adapt.c: Obsolete.
13986 * remote-eb.c: Obsolete.
13987 * remote-mm.c: Obsolete.
13988 * remote-udi.c: Obsolete.
13989 * config/a29k/a29k-udi.mt: Obsolete.
13990 * config/a29k/a29k.mt: Obsolete.
13991 * config/a29k/tm-a29k.h: Obsolete.
13992 * config/a29k/tm-vx29k.h: Obsolete.
13993 * config/a29k/vx29k.mt: Obsolete.
13994
a9011d31
AC
139952002-01-05 Andrew Cagney <ac131313@redhat.com>
13996
13997 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
13998 with BFD_ENDIAN_BIG.
13999
9299404e
AC
140002002-01-05 Andrew Cagney <ac131313@redhat.com>
14001
14002 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
14003 * configure, config.in: Re-generate.
14004 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
14005 * defs.h: Do not include <endian.h>.
14006
7e89e357
JT
140072002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
14008
14009 * acconfig.h (HAVE_PT_GETXMMREGS): New.
14010 * config.in: Regenerate.
14011 * configure.in: Update copyright years.
14012 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
14013 * configure: Regenerate.
14014 * i386bsd-nat.c: Update copyright years.
14015 (fill_gregset): Use regcache_collect.
14016 (fetch_inferior_registers): Only fetch integer registers
14017 if requested to do so. Add support for XMM registers
14018 using PT_GETXMMREGS.
14019 (store_inferior_registers): Only store integer registers
14020 if requested to do so. Add support for XMM registers
14021 using PT_SETXMMREGS.
14022 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
14023 (store_inferior_registers): Remove.
14024 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
14025 (fetch_elfcore_registers): New function.
14026 (i386nbsd_elfcore_fns): New.
14027 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
14028 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
14029 i386bsd-nat.o.
14030 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
14031 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
14032 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
14033 * config/i386/tm-nbsd.h: Update copyright years.
14034 (HAVE_SSE_REGS): Define.
14035 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
14036 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
14037 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
14038 (SIGCONTEXT_PC_OFFSET): Remove.
14039 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
14040
a752853e
AC
140412002-01-05 Andrew Cagney <ac131313@redhat.com>
14042
14043 * configure.tgt: Remove powerpc-*-macos* target.
14044 * config/m68k/xm-mpw.h: Delete file.
14045 * config/xm-mpw.h: Delete file.
14046 * ser-mac.c: Delete file.
14047 * mpw-make.sed: Delete file.
14048 * mpw-config.in: Delete file.
14049 * mac-xdep.c: Delete file.
14050 * mac-gdb.r: Delete file.
14051 * mac-defs.h: Delete file.
14052 * mac-nat.c: Delete file.
14053 * config/powerpc/macos.mh: Delete file.
14054 * config/powerpc/macos.mt: Delete file.
14055 * config/powerpc/nm-macos.h: Delete file.
14056 * config/powerpc/tm-macos.h: Delete file.
14057 * source.c (openp, open_source_file): Remove obsolete code.
14058 * top.c (gdb_readline): Ditto.
14059 * utils.c (query): Ditto.
14060 * event-top.c (display_gdb_prompt): Ditto.
14061 * Makefile.in (ser-mac.o): Delete obsolete target.
14062 * NEWS: Update.
14063
d7449b42
AC
140642002-01-04 Andrew Cagney <ac131313@redhat.com>
14065
14066 * defs.h (BIG_ENDIAN): Delete macro definition.
14067 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
14068 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
14069 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
14070 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
14071 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
14072 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
14073 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
14074 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
14075 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
14076 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
14077 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
14078 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
14079 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
14080 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
14081 * gdbarch.c: Re-generate.
14082
356374e8
DJ
140832002-01-04 Daniel Jacobowitz <drow@mvista.com>
14084
14085 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
14086 for core files.
14087
a2b8f8f8
JT
140882002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
14089
14090 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
14091
12466af9
AC
140922002-01-04 Andrew Cagney <ac131313@redhat.com>
14093
14094 * value.h (value_ptr): Delete typedef.
14095
3549ab40
JT
140962002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
14097
14098 * i386nbsd-nat.c: Update copyright years.
14099 Include i386-tdep.h.
14100
fedbd091
EZ
141012002-01-04 Elena Zannoni <ezannoni@redhat.com>
14102
14103 * stabsread.c: Update copyright years.
14104
14105 From Debashis Mahata <debashis.mahata@wipro.com>:
14106 (read_struct_fields): Deal with Sun C compiler erroneous stab
14107 output for structs and unions.
fec8b34f 14108 Fix PR gdb/269.
fedbd091 14109
eb43544b
DJ
141102002-01-04 Daniel Jacobowitz <drow@mvista.com>
14111
14112 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
14113 prototype.
14114
1514d34e
DJ
141152002-01-04 Daniel Jacobowitz <drow@mvista.com>
14116
14117 * cp-abi.c: Fix whitespace.
14118 (baseclass_offset): New wrapper function.
14119 * cp-abi.h (baseclass_offset): Add prototype.
14120 (struct cp_abi_ops): Add baseclass_offset pointer.
14121
14122 * valops.c (vb_match): Move to...
14123 * gnu-v2-abi.c (vb_match): here.
14124 * valops.c (baseclass_offset): Move to...
14125 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
14126
14127 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
14128
14129 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
14130 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
14131 * hpacc-abi.c (init_hpacc_ops): Likewise.
14132
7f8c9282
DJ
141332002-01-04 Daniel Jacobowitz <drow@mvista.com>
14134
14135 * valops.c (find_overload_match): Accept obj as a
14136 reference parameter. Update it before returning.
14137 * value.h (find_overload_match): Update prototype.
14138 * eval.c (evaluate_subexp_standard): Pass object to
14139 find_overload_match by reference.
14140
f23631e4
AC
141412002-01-03 Andrew Cagney <ac131313@redhat.com>
14142
14143 * valarith.c: Replace value_ptr with struct value pointer. Remove
14144 register attribute from value declarations.
14145 * valops.c: Ditto.
14146 * value.h: Ditto.
14147 * scm-lang.c (scm_lookup_name): Ditto.
14148
79e10fab 141492002-01-03 Michael Snyder <msnyder@redhat.com>
abf22e64 14150
79e10fab
AC
14151 Abstract the functionality of iterating over mapped memory
14152 regions into a general purpose iterator function.
abf22e64 14153 * procfs.c (iterate_over_mappings): New function, general purpose
79e10fab
AC
14154 iterator for memory sections.
14155 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
14156 (solib_mappings_callback): New function, callback for above.
14157 (info_proc_mappings): Reimpliment using iterate_over_mappings.
14158 (info_mappings_callback): New function, callback for above.
14159
14160 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
14161
c5ad026a
MK
141622002-01-01 Mark Kettenis <kettenis@gnu.org>
14163
d2a7c97a
MK
14164 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
14165 * i386-tdep.c: Include "elf-bfd.h".
14166 (process_note_abi_tag_sections): New function.
14167 (i386_gdbarch_init): Add code to recognize various OS/ABI
14168 combinations.
14169
c5ad026a
MK
14170 * maint.c (_initialize_maint_cmds): Add missing \ in
14171 string-literal.
14172
a1a5b71e 14173For older changes see ChangeLog-2001
c906108c
SS
14174\f
14175Local Variables:
14176mode: change-log
14177left-margin: 8
14178fill-column: 74
14179version-control: never
14180End:
This page took 1.011661 seconds and 4 git commands to generate.