2002-12-10 Andrew Cagney <ac131313@redhat.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
50631d4f
AC
12002-12-10 Andrew Cagney <ac131313@redhat.com>
2
3 * MAINTAINERS (gdb.c++): Add David Carlton.
4
808013d1
DC
52002-12-09 David Carlton <carlton@math.stanford.edu>
6
7 * cli/cli-setshow.c: #include <readline/tilde.h> after defs.h.
8 * cli/cli-cmds.c: Ditto.
9
31deffe5
AC
102002-12-09 Andrew Cagney <cagney@redhat.com>
11
6cbda714
AC
12 * gdbarch.sh (gdbarch_dump): Print NAME_OF_MALLOC using %s. Wrap
13 function address in <>.
31deffe5
AC
14 * gdbarch.c: Re-generate.
15
2692ddb3
DC
162002-12-09 David Carlton <carlton@math.stanford.edu>
17
18 * p-exp.y: Rename TRUE and FALSE to TRUEKEYWORD and FALSEKEYWORD.
19
f3c39e76
DC
202002-12-09 David Carlton <carlton@math.stanford.edu>
21
22 * linespec.c (symtab_from_filename): New function.
23 (decode_line_1): Move code into symtab_from_filename.
24
1b84163e
KB
252002-12-09 Kevin Buettner <kevinb@redhat.com>
26
27 * lin-lwp.c (strsignal): Make extern declaration match that of glibc.
28
bdd78e62
AC
292002-12-07 Andrew Cagney <ac131313@redhat.com>
30
31 * f-valprint.c (info_common_command): Use get_frame_pc.
32 * std-regs.c (value_of_builtin_frame_pc_reg): Ditto.
33 * ax-gdb.c (agent_command): Ditto.
34 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
35 (rs6000_pop_frame): Ditto.
36 (rs6000_frameless_function_invocation): Ditto.
37 (rs6000_frame_saved_pc, frame_get_saved_regs): Ditto.
38 (frame_initial_stack_address, rs6000_frame_chain): Ditto.
39 * macroscope.c (default_macro_scope): Ditto.
40 * stack.c (print_frame_info_base): Ditto.
41 (print_frame, frame_info, print_frame_label_vars): Ditto.
42 (return_command, func_command, get_frame_language): Ditto.
43 * infcmd.c (finish_command): Ditto.
44 * dummy-frame.c (cached_find_dummy_frame): Ditto.
45 * breakpoint.c (deprecated_frame_in_dummy): Ditto.
46 (break_at_finish_at_depth_command_1): Ditto.
47 (break_at_finish_command_1): Ditto.
48 (until_break_command, get_catch_sals): Ditto.
49 * blockframe.c (func_frame_chain_valid): Ditto.
50 (frameless_look_for_prologue): Ditto.
51 (frame_address_in_block, generic_func_frame_chain_valid): Ditto.
52
408400e7
AC
532002-12-08 Andrew Cagney <ac131313@redhat.com>
54
55 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Add declaration.
56 * dwarf2cfi.c (cfi_init_frame_pc): Cast the PC to a pointer.
57
97f46953
AC
582002-12-08 Andrew Cagney <ac131313@redhat.com>
59
60 * gdbarch.sh (INIT_FRAME_PC_FIRST, INIT_FRAME_PC_DEFAULT): Convert
61 to pure functions.
62 * gdbarch.h, gdbarch.c: Re-generate.
63 * frame.c (get_prev_frame): Explictly assign prev's pc with value
64 returned by INIT_FRAME_PC_FIRST and INIT_EXTRA_FRAME_INFO.
65
66 * arch-utils.h (init_frame_pc_default, init_frame_pc_noop): Change
67 declaration to a function returning a CORE_ADDR.
68 * x86-64-tdep.h (x86_64_init_frame_pc): Ditto.
69 * arch-utils.c (init_frame_pc_noop): Return the PC value.
70 (init_frame_pc_default): Ditto.
71 * x86-64-linux-tdep.c (x86_64_init_frame_pc): Ditto.
72 * s390-tdep.c (s390_init_frame_pc_first): Ditto.
73 * mips-tdep.c (mips_init_frame_pc_first): Ditto.
74 * dwarf2cfi.h (cfi_init_frame_pc): Ditto.
75 * dwarf2cfi.c (cfi_init_frame_pc): Ditto.
76 * alpha-tdep.c (alpha_init_frame_pc_first): Ditto.
77
78 * i386-interix-tdep.c (i386_interix_init_abi): Set init_frame_pc
79 to init_frame_pc_noop.
80 (i386_interix_init_frame_pc): Delete function.
81 * z8k-tdep.c (init_frame_pc): Delete function.
82 * config/z8k/tm-z8k.h (INIT_FRAME_PC): Define as init_frame_pc_noop.
83 (INIT_FRAME_PC_FIRST): Ditto.
84 * config/mn10200/tm-mn10200.h (INIT_FRAME_PC): Ditto.
85 (INIT_FRAME_PC_FIRST): Ditto.
86 * config/sparc/tm-sparc.h (INIT_FRAME_PC): Ditto.
87 * config/rs6000/tm-rs6000.h (INIT_FRAME_PC): Redefine as
88 init_frame_pc_noop.
89 (INIT_FRAME_PC_FIRST): Convert to an expression.
90 * config/sparc/tm-sparc.h (INIT_FRAME_PC_FIRST): Ditto.
91
8b36eed8
AC
922002-12-08 Andrew Cagney <ac131313@redhat.com>
93
94 * blockframe.c: Use get_frame_base instead of directly accessing
95 the `struct frame_info' member frame.
96 * f-valprint.c, std-regs.c, rs6000-tdep.c: Ditto.
97 * stack.c, dummy-frame.c, breakpoint.c: Ditto.
98
aeeccc89
EZ
992002-12-08 Elena Zannoni <ezannoni@redhat.com>
100
101 * Makefile.in (readline_h): Define.
102 (completer.o): Depend on readline_h.
103 (corelow.o): Ditto.
104 (event-top.o): Ditto.
105 (exec.o): Ditto.
106 (solib.o): Ditto.
107 (source.o): Ditto.
108 (symfile.o): Ditto.
109 (symmisc.o): Ditto.
110 (top.o): Ditto.
111 (tracepoint.o): Ditto.
112 (utils.o): Ditto.
113 (cli-dump.o): Ditto.
114 (tui-hooks.o): Ditto.
115 (tuiWin.o): Ditto.
116
38017ce8
EZ
1172002-12-08 Elena Zannoni <ezannoni@redhat.com>
118
119 More cleanup from import of readline 4.3.
120 * completer.h (complete_line, readline_line_completion_function):
121 Update prototypes.
122 (line_completion_function): Removed, not used outside of completer.c.
123 * completer.c (readline_line_completion_function,
124 complete_function, line_completion_function): Use const for first
125 parameter.
126 (line_completion_function): Make static.
127 (filename_completer): filename_completion_function is now called
128 rl_filename_completion_function
129 * corelow.c: Include <readline/readline.h>.
130 * exec.c: Ditto.
131 * solib.c: Ditto.
132 * source.c: Ditto.
133 * symfile.c: Ditto.
134 * symmisc.c: Ditto.
135 * top.c (init_main): No need to coerce
136 readline_line_completion_function anymore.
137 * cli/cli-dump.c: Include <readline/readline.h>.
138
75e3c1f9
AC
1392002-12-08 Andrew Cagney <ac131313@redhat.com>
140
141 * stack.c (frame_info): Use get_prev_frame.
142 * blockframe.c (frame_address_in_block): Ditto.
143 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
144 (rs6000_frameless_function_invocation): Ditto.
145 (rs6000_frame_saved_pc): Ditto.
146 (rs6000_frame_chain): Ditto.
147 * arch-utils.c (init_frame_pc_default): Ditto.
148
0d2b8049
AC
1492002-12-08 Andrew Cagney <ac131313@redhat.com>
150
151 * config/mn10200/tm-mn10200.h (DEPRECATED_PC_IN_CALL_DUMMY):
152 Delete redundant definition.
153
9255ee31
EZ
1542002-12-08 Elena Zannoni <ezannoni@redhat.com>
155
156 Import of readline 4.3:
157 * cli/cli-cmds.c: Include readline/tilde.h.
158 * cli/cli-setshow.c: Ditto.
159 * defs.h: Don't declare tilde_expand anymore, since readline
160 exports it.
161
3442dad6 1622002-12-08 Elena Zannoni <ezannoni@redhat.com>
57725d84
EZ
163
164 * Makefile.in (thread-db.o): Add explicit rule to ignore the use of
165 -Werror on this file.
166
52f87c51
AC
1672002-12-07 Andrew Cagney <ac131313@redhat.com>
168
169 * gdbarch.sh (TARGET_FLOAT_FORMAT): Use the macro when printing
170 the format name.
171 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
172 * gdbarch.c: Regenerate.
173
2ca6c561
AC
1742002-12-06 Andrew Cagney <ac131313@redhat.com>
175
176 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Rename
177 INIT_FRAME_PC_FIRST. Change to a function with predicate. Do not
178 provide a default value.
179 * gdbarch.h, gdbarch.c: Regenerate.
180 * frame.c (get_prev_frame): Update. Check
181 DEPRECATED_INIT_FRAME_PC_FIRST_P.
182 * s390-tdep.c (s390_gdbarch_init): Update.
183 * mips-tdep.c (mips_gdbarch_init): Update.
184 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
185 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
186 * alpha-tdep.c (alpha_gdbarch_init): Update.
187
e162d11b
EZ
1882002-12-06 Elena Zannoni <ezannoni@redhat.com>
189
190 * ia64-linux-nat.c: Include gdb_string.h.
191 * alpha-nat.c: Ditto.
2b298b5d
EZ
192 * ppc-linux-nat.c: Ditto.
193 * Makefile.in (ia64-linux-nat.o, alpha-nat.o, ppc-linux-nat.o):
194 Update dependencies.
e162d11b 195
aa0cd9c1
AC
1962002-12-05 Andrew Cagney <ac131313@redhat.com>
197
198 * gdbthread.h: Include "frame.h".
199 (struct thread_info): Replace step_frame_address with
200 step_frame_id.
201 * inferior.h: Include "frame.h".
202 (step_frame_id): Replace external variable step_frame_address.
203 * gdbthread.h (save_infrun_state): Replace step_frame_address
204 parameter with step_frame_id parameter.
205 (load_infrun_state): Ditto.
206 * Makefile.in (gdbthread_h, inferior_h): Add $(frame_h).
207 * infcmd.c (step_frame_id, step_1, step_once): Update.
208 * thread.c (load_infrun_state, save_infrun_state): Update.
209 * infrun.c (clear_proceed_status, save_inferior_status): Update.
210 (handle_inferior_event, step_over_function): Update.
211 (normal_stop, context_switch, restore_inferior_status): Update.
212 (struct inferior_status): Replace step_frame_address with
213 step_frame_id.
214
a9a9bd0f
DC
2152002-12-05 David Carlton <carlton@math.stanford.edu>
216
217 * dwarf2read.c (dwarf2_add_field): Treat a field that is a
218 DW_TAG_member as well as a declaration as being a C++ static data
219 member.
220 (read_structure_scope): Combine tests for DW_TAG_member and
221 DW_TAG_variable.
222
614b3b14
DC
2232002-12-05 David Carlton <carlton@math.stanford.edu>
224
225 * linespec.c (decode_compound): New function.
226 (decode_line_1): Move code into decode_compound.
227
e4051eeb
DC
2282002-12-05 David Carlton <carlton@math.stanford.edu>
229
230 * symtab.c (lookup_symbol_aux_local): Add 'static_block'
231 argument.
232 (lookup_symbol_aux): Do the 'field_of_this' check before checking
233 the static block. See PR gdb/804.
234
f61e8913
DC
2352002-12-05 David Carlton <carlton@math.stanford.edu>
236
237 * symtab.c (lookup_symbol_aux_block): New function.
238 (lookup_symbol_aux_local): Move code into lookup_symbol_aux_block.
239
1e9f55d0
AC
2402002-12-05 Andrew Cagney <ac131313@redhat.com>
241
242 * gdbarch.sh: Dump the predicate function and macro values.
243 (read): Print error on standard error.
244 * gdbarch.c: Regenerate.
245
d1973055
KB
2462002-12-04 Kevin Buettner <kevinb@redhat.com>
247
248 * Makefile.in (mips_tdep_h): Define.
249 (mips-tdep.o): Add mips_tdep_h to dependency list.
250 * mips-tdep.h: New file.
251 * mips-tdep.c (mips-tdep.h): Include.
252 (enum mips_abi): Move to mips-tdep.h.
253 (mips_abi): New function.
254
f1253c7b
DC
2552002-12-04 David Carlton <carlton@math.stanford.edu>
256
257 * Makefile.in (f-exp.tab.c): Don't depend on c-exp.tab.c.
258
406bc4de
DC
2592002-12-04 David Carlton <carlton@math.stanford.edu>
260
261 * symtab.c (lookup_symbol_aux): Move minsym code into a separate
262 function.
263 (lookup_symbol_aux_minsyms): New function.
264
2a3750c5
JB
2652002-12-04 J. Brobecker <brobecker@gnat.com>
266
267 * pa64solib.c: s/boolean/int/. Fixes a build failure on hppa64-hpux.
268
961d8652
JB
2692002-12-04 J. Brobecker <brobecker@gnat.com>
270
271 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Renamed from IN_SIGTRAMP,
272 which is an obsolete macro name.
273
38c52d5a
DJ
2742002-12-04 Daniel Jacobowitz <drow@mvista.com>
275
276 * doublest.c (convert_floatformat_to_doublest): Cast exp_bias to int.
277 * config/alpha/alpha-linux.mh (MH_CFLAGS): Add -mieee.
278
d8ef46f5
DJ
2792002-12-03 H.J. Lu (hjl@gnu.org)
280
281 * breakpoint.c (create_thread_event_breakpoint): Use xasprintf.
282 (create_breakpoints): Make sure the addr_string field is not
283 NULL.
284
02ae7771
AC
2852002-12-03 Andrew Cagney <ac131313@redhat.com>
286
287 * sparc-nat.c (fetch_inferior_registers)
288 (store_inferior_registers): Add comment on problem of LWP vs
289 threads.
290
291 From 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
292 * lin-lwp.c (lin_lwp_fetch_registers): Remove.
293 (lin_lwp_store_registers): Remove.
294 (init_lin_lwp_ops): Use fetch_inferior_registers
295 and store_inferior_registers directly.
296 * sparc-nat.c (fetch_inferior_registers): Honor LWP ID.
297 (store_inferior_registers): Likewise.
298 Fix PR gdb/725.
299
7a424e99
AC
3002002-12-03 Andrew Cagney <ac131313@redhat.com>
301
302 * frame.h (get_frame_id): Convert to a function.
303 (null_frame_id, frame_id_p): Declare.
304 (frame_id_eq, frame_id_inner): Declare.
305 (frame_id_build): New function.
306 * frame.c (get_frame_id): Update. Use null_frame_id.
307 (frame_find_by_id): Rewrite using frame_id_p, frame_id_eq and
308 frame_id_inner.
309 (null_frame_id, frame_id_p): Define.
310 (frame_id_eq, frame_id_inner): Define.
311 (frame_id_build): New function.
312 * varobj.c (varobj_create): Update.
313 (varobj_update): Update.
314 * valops.c (value_assign): Update.
315 (new_root_variable): Update.
316 * infrun.c (save_inferior_status): Update.
317 * breakpoint.c (watch_command_1): Update.
318
891c7f5f
JB
3192002-12-03 J. Brobecker <brobecker@gnat.com>
320
321 * config/pa/tm-hppah.h (SNAP1): Remove unused macro.
322 (SNAP2): Likewise.
323
144da3c1
AC
3242002-12-03 Andrew Cagney <cagney@redhat.com>
325
46248966
AC
326 * NEWS: Mention Daniel Jacobowitz's multi-threaded shared library
327 patch.
328
144da3c1
AC
329 * PROBLEMS: Mention PR gdb/725.
330
03c6228e
AS
3312002-12-03 Andreas Schwab <schwab@suse.de>
332
333 * infcmd.c (construct_inferior_arguments): Handle empty arguments.
334
36e53c63
AF
3352002-12-02 Adam Fedor <fedor@gnu.org>
336 Klee Dienes <kdienes@apple.com>
337
338 * objc-lang.c (objc_printstr): Add width arg to match
339 printstr prototype.
340 (compare_selectors): Add 'const' to arg types.
341 (compare_classes): Likewise.
342 (find_imps): Cast msym pointer to avoid compiler warning.
343 (print_object_command): Validate the address before
344 passing it to the print routine.
345 (find_objc_msgcall_submethod): Change function argument to
346 return an int.
347 * objc-lang.h: Add 'extern' to all function declarations.
348 (value_nsstring): Add declaration.
349
504d5c7e
JB
3502002-12-02 J. Brobecker <brobecker@gnat.com>
351
352 * somsolib.c (dld_cache): Replace boolean by int for field is_valid.
353 Fixes a build failure on HP/UX.
354
355 * hpread.c (told_objfile): Replace boolean type by int. Fixes a build
356 failure on HP/UX.
357 (hpread_has_name): Advance declaration to avoid a compilation warning.
358 (pst_syms_count): Add missing variable type. By change, the compiler
359 was defaulting to int, which seems a good choice. Fixes a compilation
360 warning.
361 (pst_syms_size): Likewise.
362
59623e27
JB
3632002-12-02 J. Brobecker <brobecker@gnat.com>
364
365 * hppa-tdep.c: Add #include "osabi.h" (for hppa_gdbarch_init).
366 (hppa_gdbarch_init): Detect osabi from objfile. Will be needed
367 later to set the proper gdbarch methods depending on the osabi.
368 * Makefile.in (hppa-tdep.o): Add dependency on osabi.h.
369
a09a320d
JB
3702002-12-02 J. Brobecker <brobecker@gnat.com>
371
372 * osabi.h (gdb_osabi): Add two new enum values for HPUX ELF and SOM.
373 * osabi.c (gdb_osabi_name): Add strings images for the two new
374 enum values.
375 (generic_elf_osabi_sniffer): Handle HPUX objfiles.
376
8a81a99e
AC
3772002-12-02 Andrew Cagney <ac131313@redhat.com>
378
379 * MAINTAINERS (Java): Global maintainers are responible for Java.
380 (Past Maintainers): Mention both Anthony Green and Per Bothner as
381 part Java maintainers.
382
7af35dad
JB
3832002-12-02 J. Brobecker <brobecker@gnat.com>
384
385 * xcoffread.c (read_symbol_lineno): Replace boolean by int.
386 Fixes a compilation failure on AiX.
387
f4ede9bc
JB
3882002-12-02 J. Brobecker <brobecker@gnat.com>
389
390 * config/powerpc/aix432.mh (NATDEPFILES): Add a comment explaining
391 why aix-thread.o is not listed.
392
ae45cd16
AC
3932002-12-01 Andrew Cagney <ac131313@redhat.com>
394
395 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Rename
396 PC_IN_CALL_DUMMY. Change to predicate. Always allow call.
397 * gdbarch.h, gdbarch.c: Re-generate.
398 * config/sparc/tm-sparc.h, config/sparc/tm-sp64.h: Update.
399 * config/mn10200/tm-mn10200.h, config/h8500/tm-h8500.h: Update.
400 * config/pa/tm-hppa.h, frame.h: Update.
401 * x86-64-tdep.c, vax-tdep.c, sparc-tdep.c: Update.
402 * s390-tdep.c, ns32k-tdep.c, mn10300-tdep.c: Update.
403 * m68k-tdep.c, i386-tdep.c, frv-tdep.c: Update.
404 * cris-tdep.c, alpha-tdep.c: Update.
405 * frame.c (set_unwind_by_pc, create_new_frame): Use either
406 DEPRECATED_PC_IN_CALL_DUMMY or pc_in_dummy_frame.
407 (get_prev_frame): Ditto.
408
020cc13c
AC
4092002-11-30 Andrew Cagney <cagney@redhat.com>
410
411 * exec.c (xfer_memory): Replace boolean with int.
412 * p-exp.y: Use 0 instead of false.
413 * corelow.c (gdb_check_format): Change return type to int from
414 boolean.
415 * utils.c: Don't include <curses.h> or <term.h> first.
416
1d9b2aa8
SC
4172002-11-29 Stephane Carrez <stcarrez@nerim.fr>
418
419 * m68hc11-tdep.c (m68hc11_register_raw_size): Remove.
420 (m68hc11_register_byte): Remove.
421 (m68hc11_gdbarch_init): Don't set the above.
422
a193e397
AC
4232002-11-29 Andrew Cagney <cagney@redhat.com>
424
425 * remote-mips.c (mips_initialize): Force a selected frame rebuild
426 by calling get_selected_frame.
427 * ocd.c (ocd_start_remote): Use get_selected frame instead of
428 set_current_frame, create_new_frame, select_frame and
429 get_current_frame.
430 * remote-e7000.c (e7000_start_remote): Ditto.
431 * remote-mips.c (common_open): Ditto
432 * remote-rdp.c (remote_rdp_open): Ditto.
433
b5fc49aa
AS
4342002-11-29 Andreas Schwab <schwab@suse.de>
435
436 * m68k-tdep.c (m68k_frame_chain, m68k_frame_saved_pc)
437 (altos_skip_prologue, delta68_frame_saved_pc, isi_frame_num_args)
438 (delta68_frame_num_args, news_frame_num_args, m68k_skip_prologue)
439 (m68k_frame_init_saved_regs, m68k_saved_pc_after_call): Use
440 read_memory_unsigned_integer instead of read_memory_integer when
441 dealing with addresses and instruction opcodes.
442 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc)
443 (m68k_linux_frame_saved_pc): Likewise.
444
6e7f8b9c
AC
4452002-11-29 Andrew Cagney <ac131313@redhat.com>
446
447 * stack.c (selected_frame, select_frame): Move from here ...
448 * frame.c (selected_frame, select_frame): ... to here. Include
449 "language.h".
450 * Makefile.in (frame.o): Update dependencies.
451 * frame.c (get_selected_frame): New function.
452 * frame.h (get_selected_frame): Declare.
453 (deprecated_selected_frame): Rename selected_frame.
454 * ada-lang.c, ada-tasks.c, breakpoint.c, corelow.c: Update.
455 * eval.c, f-valprint.c, findvar.c, frame.c, frame.h: Update.
456 * h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, infcmd.c: Update.
457 * inflow.c, infrun.c, macroscope.c, mips-tdep.c: Update.
458 * mn10300-tdep.c, ocd.c, regcache.h, remote-e7000.c: Update.
459 * remote-mips.c, remote-rdp.c, sh-tdep.c, sparc-tdep.c: Update.
460 * stack.c, thread.c, tracepoint.c, valops.c, varobj.c: Update.
461 * z8k-tdep.c, cli/cli-cmds.c: Update.
462
805e2818
AC
4632002-11-29 Andrew Cagney <ac131313@redhat.com>
464
465 * frame.h (get_selected_block): Add comments.
466
1058bca7
AC
4672002-11-28 Andrew Cagney <ac131313@redhat.com>
468
469 * frame.c (pc_notcurrent): New function.
470 (find_frame_sal): New function.
471 * frame.h (find_frame_sal): Declare.
472 (struct symtab_and_line): Add opaque declaration.
fe67b6c5
AC
473 * stack.c (print_frame_info_base): Use find_frame_sal instead of
474 find_pc_line.
1058bca7
AC
475 (frame_info): Ditto.
476 * ada-lang.c (find_printable_frame): Ditto.
477
d92419e5
JB
4782002-11-28 J. Brobecker <brobecker@gnat.com>
479
480 * configure.in: Check that the pthdebug library is recent enough
481 before enabling thread support on native AiX.
482 * configure: Regenerate.
483
484 * config/powerpc/aix432.mh (NATDEPFILES): Remove aix-thread.o
485 from the list of object files as it is now appended by configure
486 if thread support is enabled.
487 (NAT_CLIBS): Removed as -lpthdebug is also appended by configure
488 if thread support is enabled.
489
8c69fc49
AC
4902002-11-28 Andrew Cagney <cagney@redhat.com>
491
492 * stack.c (get_selected_block): In-line get_current_block.
493 * frame.h (get_current_block): Delete declaration.
494 * blockframe.c (get_current_block): Delete function.
495
07555a72
AC
4962002-11-28 Andrew Cagney <ac131313@redhat.com>
497
498 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Rename
499 USE_GENERIC_DUMMY_FRAMES.
500 * gdbarch.h, gdbarch.c: Regenerate.
501 * valops.c, frame.c: Update.
502 * config/z8k/tm-z8k.h, config/mn10200/tm-mn10200.h: Update.
503 * config/m32r/tm-m32r.h, config/h8500/tm-h8500.h: Update.
504 * config/pa/tm-hppa.h, blockframe.c: Update.
505 * vax-tdep.c, sparc-tdep.c, ns32k-tdep.c: Ditto.
506 * m68k-tdep.c, alpha-tdep.c: Ditto.
507
508 * arm-tdep.c: Eliminate USE_GENERIC_DUMMY_FRAMES as always 1.
509 * mips-tdep.c: Ditto.
510
b99fa2d2
AC
5112002-11-27 Andrew Cagney <ac131313@redhat.com>
512
513 * gdbarch.sh (CALL_DUMMY_LOCATION): Default to AT_ENTRY_POINT.
514 (USE_GENERIC_DUMMY_FRAMES): Default to true.
515 (PC_IN_CALL_DUMMY): Default to generic_pc_in_call_dummy.
516 * gdbarch.c, gdbarch.h: Re-generate.
517 * inferior.h (USE_GENERIC_DUMMY_FRAMES): Delete macro definition.
518 (CALL_DUMMY_LOCATION): Delete macro definition.
519 (PC_IN_CALL_DUMMY): Delete macro definitions.
520
521 * arm-tdep.c (arm_gdbarch_init): Do not set pc_in_call_dummy,
522 default is already generic_pc_in_call_dummy.
523 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
524 * v850-tdep.c (v850_gdbarch_init): Ditto.
525 * sh-tdep.c (sh_gdbarch_init): Ditto.
526 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
527 * mips-tdep.c (mips_gdbarch_init): Ditto.
528 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
529 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
530 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
531 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
532 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
533 * avr-tdep.c (avr_gdbarch_init): Ditto.
534
535 * arm-tdep.c (arm_gdbarch_init): Do not set
536 use_generic_dummy_frames, default is already 1.
537 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
538 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
539 * v850-tdep.c (v850_gdbarch_init): Ditto.
540 * sh-tdep.c (sh_gdbarch_init): Ditto.
541 * s390-tdep.c (s390_gdbarch_init): Ditto.
542 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
543 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
544 * mips-tdep.c (mips_gdbarch_init): Ditto.
545 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
546 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
547 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
548 * i386-tdep.c (i386_gdbarch_init): Ditto.
549 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
550 * frv-tdep.c (frv_gdbarch_init): Ditto.
551 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
552 * cris-tdep.c (cris_gdbarch_init): Ditto.
553 * avr-tdep.c (avr_gdbarch_init): Ditto.
554
555 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
556 call_dummy_location, default is already AT_ENTRY_POINT.
557 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
558 * v850-tdep.c (v850_gdbarch_init): Ditto.
559 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
560 * sh-tdep.c (sh_gdbarch_init): Ditto.
561 * s390-tdep.c (s390_gdbarch_init): Ditto.
562 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
563 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
564 * mips-tdep.c (mips_gdbarch_init): Ditto.
565 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
566 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
567 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
568 * i386-tdep.c (i386_gdbarch_init): Ditto.
569 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
570 * frv-tdep.c (frv_gdbarch_init): Ditto.
571 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
572 * cris-tdep.c (cris_gdbarch_init): Ditto.
573 * avr-tdep.c (avr_gdbarch_init): Ditto.
574 * arm-tdep.c (arm_gdbarch_init): Ditto.
575 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
576
abc0af47
AC
5772002-11-28 Andrew Cagney <cagney@redhat.com>
578
579 * frame.h: Update comments on set_current_frame, create_new_frame,
580 flush_cached_frames, reinit_frame_cache, select_frame and
581 selected_frame.
582
ed5cedc5
AC
5832002-11-27 Andrew Cagney <cagney@redhat.com>
584
585 * config/z8k/tm-z8k.h (PC_IN_CALL_DUMMY): Update definition to use
586 deprecated pc_in_call_dummy function.
587 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Ditto.
588 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Ditto.
589 * config/pa/tm-hppa.h (PC_IN_CALL_DUMMY): Ditto.
590 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Ditto.
591 * config/h8500/tm-h8500.h (PC_IN_CALL_DUMMY): Ditto.
592
b2a1bd4f
MH
5932002-11-26 Martin M. Hunt <hunt@redhat.com>
594
595 * Makefile.in: Remove Tix dependencies.
596 * acinclude.m4: Ditto.
597 * aclocal.m4: Ditto.
598 * configure.in: Ditto.
599 * configure: Regenerated.
600
f09cffaa
AC
6012002-11-26 Andrew Cagney <ac131313@redhat.com>
602
603 * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name.
604 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
605 * gdbarch.c: Re-generate.
606
e92b0cc9
AC
6072002-11-26 Andrew Cagney <ac131313@redhat.com>
608
609 * config/h8500/tm-h8500.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
610 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
611 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
612 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
613 pc_in_call_dummy_at_entry_point.
614 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
615 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
616 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
617 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
618 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
619 pc_in_call_dummy_on_stack.
620 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
621 pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
622 * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
623 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
624 (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
625
b4b88177
AC
6262002-11-26 Andrew Cagney <ac131313@redhat.com>
627
628 * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
629 pc_in_call_dummy_before_text_end
630 (deprecated_pc_in_call_dummy_after_text_end): Rename
631 pc_in_call_dummy_after_text_end.
632 (deprecated_pc_in_call_dummy_on_stack): Rename
633 pc_in_call_dummy_on_stack.
634 (deprecated_pc_in_call_dummy_at_entry_point): Rename
635 pc_in_call_dummy_at_entry_point.
636 * m68k-tdep.c (m68k_gdbarch_init): Update.
637 * s390-tdep.c (s390_gdbarch_init): Update.
638 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
639 * vax-tdep.c (vax_gdbarch_init): Update.
640 * sparc-tdep.c (sparc_gdbarch_init): Update.
641 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
642 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
643 * i386-tdep.c (i386_gdbarch_init): Update.
644 * frv-tdep.c (frv_gdbarch_init): Update.
645 * cris-tdep.c (cris_gdbarch_init): Update.
646 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
647 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
648 (deprecated_pc_in_call_dummy_after_text_end)
649 (deprecated_pc_in_call_dummy_on_stack)
650 (deprecated_pc_in_call_dummy_at_entry_point): Update.
651 * alpha-tdep.c (alpha_gdbarch_init): Update.
652
eb784848
DJ
6532002-11-25 Daniel Jacobowitz <drow@mvista.com>
654
655 * acconfig.h (HAVE_PREAD64): Add.
656 * configure.in: Check for pread64.
657 * config.in: Regenerated.
658 * configure: Regenerated.
659 * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
660 * linux-proc.c (linux_proc_xfer_memory): New function.
661 * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
662
933c6fe4
DC
6632002-11-25 David Carlton <carlton@math.stanford.edu>
664
665 * dwarf2read.c (scan_partial_symbols): Descend into namespace
666 pdi's with no name.
667
158a8022
AC
6682002-11-25 Andrew Cagney <ac131313@redhat.com>
669
670 * MAINTAINERS: Mark h8500 as broken. Breakage occured Fri Nov 5
671 16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>.
672
481d0f41
JB
6732002-11-25 Jim Blandy <jimb@redhat.com>
674
e8289572
JB
675 * symfile.c (init_objfile_sect_indices): New function.
676 (default_symfile_offsets): Move the section-index-initializing
677 stuff into init_objfile_sect_indices, and call that.
678
b29c9944
JB
679 * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
680 (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
681
13de58df
JB
682 * symfile.c (syms_from_objfile): Adjust indentation.
683
481d0f41
JB
684 * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
685 || info_verbose isn't true.
686
7d6a26a7
AC
6872002-11-24 Andrew Cagney <ac131313@redhat.com>
688
689 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
690 default to get_frame_base.
691 * gdbarch.h, gdbarch.c: Regenerate.
692 * arch-utils.c (default_frame_address): Delete function.
693 * arch-utils.h (default_frame_address): Delete declaration
694
6abe1021
PM
6952002-11-24 Pierre Muller <muller@ics.u-strasbg.fr>
696
697 * varobj.c (find_frame_addr_in_frame_chain):
698 Use get_frame_base instead of FRAME_FP,
699 obvious fix.
700
c193f6ac
AC
7012002-11-19 Andrew Cagney <ac131313@redhat.com>
702
703 * frame.h (FRAME_FP): Delete macro.
704 (get_frame_base): New function declaration.
705 * frame.c (get_frame_base): New function.
706 (get_frame_id): Use ->frame.
707 (frame_find_by_id): Rewrite to use get_frame_id.
708 * blockframe.c: Use get_frame_base instead of FRAME_FP.
709 * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
710 * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
711 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
712 * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
713 * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
714 * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
715
e5d2af14
AC
7162002-11-24 Andrew Cagney <ac131313@redhat.com>
717
718 * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
719
931d12c6
AC
7202002-11-24 Andrew Cagney <ac131313@redhat.com>
721
722 * frame.c (set_unwind_by_pc): Revert change below, use
723 PC_IN_CALL_DUMMY.
724 (get_prev_frame): Ditto.
725
5e0f933e
AC
7262002-11-24 Andrew Cagney <ac131313@redhat.com>
727
728 * dummy-frame.c (pc_in_dummy_frame): New function.
729 (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
730 (find_dummy_frame): Update comment.
731 (generic_pop_current_frame): Use get_frame_type.
732 * dummy-frame.h (pc_in_dummy_frame): Declare.
733 * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
734 (create_new_frame): Use pc_in_dummy_frame.
735 (get_prev_frame): Use pc_in_dummy_frame.
736 (frame_saved_regs_register_unwind): Use get_prev_frame.
737 (deprecated_generic_get_saved_register): Use get_prev_frame.
738
7d8547c9
AC
7392002-11-23 Andrew Cagney <ac131313@redhat.com>
740
741 * blockframe.c (find_frame_addr_in_frame_chain): Move function
742 from here ...
743 * varobj.c (find_frame_addr_in_frame_chain): ... to here.
744 (varobj_create): Note that frame ID should be used.
745 * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
746
0225421b
AC
7472002-11-23 Andrew Cagney <ac131313@redhat.com>
748
749 * breakpoint.c: Include "gdb_assert.h".
750 (deprecated_frame_in_dummy): Assert that generic dummy frames are
751 not being used.
752 * Makefile.in (breakpoint.o): Update dependencies.
753 * ada-lang.c (find_printable_frame): Use get_frame_type instead of
754 deprecated_frame_in_dummy.
755 * stack.c (print_frame_info_base): Ditto.
756 (frame_info): Ditto.
757 (print_frame_info_base): Ditto. Delete dead code.
758
32eeb91a
AS
7592002-11-23 Andreas Schwab <schwab@suse.de>
760
761 * Makefile.in (m68k_tdep_h): Define.
762 (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
763 (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
764 * m68k-tdep.c: Move register number enum ...
765 * m68k-tdep.h: ... to this new file and rename the constants from
766 E_* to M68K_*. All uses changed.
767 * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
768 * abug-rom.c: Include "m68k-tdep.h". Use
769 M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
770 * cpu32bug-rom.c: Likewise.
771 * dbug-rom.c: Likewise.
772 * m68k-tdep.c: Likewise.
773 * m68klinux-nat.c: Likewise.
774 * remote-est.c: Likewise.
775 * rom68k-rom.c: Likewise.
776 * config/m68k/tm-linux.h: Likewise.
777
9648bac8
AC
7782002-11-23 Andrew Cagney <ac131313@redhat.com>
779
780 * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
781 dummy frame initialization code.
782 * mips-tdep.c (mips_gdbarch_init): Ditto.
783
91a175b3
CF
7842002-11-22 Christopher Faylor <cgf@redhat.com>
785
786 * win32-nat.c (child_attach): Reset saw_create counter or subsequent
787 attach will hang.
788
f4ded5b1
AC
7892002-11-22 Andrew Cagney <ac131313@redhat.com>
790
791 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
792 to default_frame_address.
793 * gdbarch.h, gdbarch.c: Re-generate.
794
795 * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
796 or frame_locals_address to default_frame_address.
797 * m68k-tdep.c (m68k_gdbarch_init): Update.
798 * i386-tdep.c (i386_gdbarch_init): Update.
799 * frv-tdep.c (frv_gdbarch_init): Update.
800 * sh-tdep.c (sh_gdbarch_init): Update.
801 * v850-tdep.c (v850_gdbarch_init): Update.
802 * sparc-tdep.c (sparc_gdbarch_init): Update.
803 * mips-tdep.c (mips_gdbarch_init): Update.
804 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
805 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
806 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
807
808 * cris-tdep.c (cris_frame_args_address): Delete function.
809 (cris_frame_locals_address): Delete function.
810 (cris_gdbarch_init): Do not set frame_args_address or
811 frame_locals_address.
812
f7c1e0f3
MS
8132002-11-22 Michael Snyder <msnyder@redhat.com>
814
815 * thread-db.c (thread_db_load): Tell the user what's going on
816 if dlopen fails on libthread_db.
817
03dac896
AS
8182002-11-23 Andreas Schwab <schwab@suse.de>
819
820 * m68k-tdep.c (m68k_register_virtual_type): Use architecture
821 invariant return values.
822
7a67d0fe
AS
8232002-11-22 Andreas Schwab <schwab@suse.de>
824
825 * valops.c (value_slice): Move declaration of `offset' to avoid
826 warning.
827
5633f842
CF
8282002-11-22 Christopher Faylor <cgf@redhat.com>
829
830 * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
831 (struct so_stuff): Add end_addr field.
832 (register_loaded_dll): Calculate and store end address of loaded dll.
833 (solib_address): New function.
834 (child_solib_loaded_library_pathname): Pass carefully constructed
835 section info to safe_symbol_file_add rather than ignoring it.
836 (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
837 DLL is loaded.
838 (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
839 (child_create_inferior): Fix a compiler warning.
840 * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
841 (solib_address): Declare new function.
842
d85fe7f7
AS
8432002-11-22 Andreas Schwab <schwab@suse.de>
844
845 * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
846 and FPS registers.
847
8308e54c
DJ
8482002-11-21 Daniel Jacobowitz <drow@mvista.com>
849
850 * maint.c (_initialize_maint_cmds): Fix typo. From
851 Francesco Potorti` <pot@gnu.org>.
852
8997bd5e
AC
8532002-11-21 Andrew Cagney <cagney@redhat.com>
854
855 * mips-tdep.c (mips_dump_tdep): Delete references to
856 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
857 * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
858 (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
859 * printcmd.c (build_address_symbolic): Delete calls to
860 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
861 (address_info): Ditto.
862 Fix PR gdb/773.
863
4e87b832
KD
8642002-11-19 Klee Dienes <kdienes@apple.com>
865 Adam Fedor <fedor@gnu.org>
866
867 * completer.c (skip_quoted_chars): Renamed from skip_chars. Add
868 the ability to explicitly specify the quote characters and word
869 break characters; if NULL is specified for either, use the old
870 behavior of using the characters used by the completer.
871 (skip_chars): New function. Convenience wrapper around
872 skip_quoted_chars to provide the original skip_chars behavior.
873 * completer.h (skip_quoted_chars): Add prototype.
874
9ba8d803
AC
8752002-11-19 Andrew Cagney <ac131313@redhat.com>
876
877 Problems reported by Paul Eggert.
878 * gdbarch.sh: Use `sort -k 3`. Fix PR gdb/527.
879
0a595803
AS
8802002-11-19 Andreas Schwab <schwab@suse.de>
881
882 * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP)
883 (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET)
884 (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc)
885 (m68k_linux_frame_saved_pc): Move to ...
886 * m68klinux-tdep.c: ... here. New file.
887 * Makefile.in (m68klinux-tdep.o): Add dependencies.
888 * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
889
e8afa4d7
AF
8902002-11-19 Adam Fedor <fedor@gnu.org>
891
892 * objc-exp.y: Revert to old skip_quoted usage.
893
a76c9d72
AF
8942002-11-19 Adam Fedor <fedor@gnu.org>
895
896 * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
897 (objc_lang_h): Define.
898 (YYFILES): Add objc-exp.tab.c.
899 (local-maintainer-clean): Remove objc-exp.tab.c.
900 (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
901
fd0e9d45
PM
9022002-11-19 Pierre Muller <muller@ics.u-strasbg.fr>
903
904 * p-exp.y (typecast rule): Add automatic dereference of
905 pascal classes if needed.
906 (THIS): Set current_type.
907 Automatically dereference pascal classes.
908 (typebase rule): Add ^typebase recognition.
909
82eeeb94
AF
9102002-11-18 Adam Fedor <fedor@gnu.org>
911
912 * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
913 OP_OBJC_MSGCALL, and OP_OBJC_SELF.
914 (op_name): Handle OP_OBJC_SELF.
915 * Makefile.in (expprint.o): Add additional depends.
916
646df18d
AF
9172002-11-18 Adam Fedor <fedor@gnu.org>
918
919 * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
920 OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
921 * parse.c (length_of_subexp, prefixify_subexp): Likewise.
922 * objc-exp.y: Likewise.
923
379b85df
AF
9242002-11-18 Adam Fedor <fedor@gnu.org>
925
926 * gdb/parser-defs.h: (struct objc_class_str): New structure
927 for parsing ObjC classes.
928
85cf597a
AC
9292002-11-18 Andrew Cagney <ac131313@redhat.com>
930
931 * stack.c (frame_relative_level): Copy function from here ...
932 * frame.c (frame_relative_level): ...to here.
933
5a203e44
AC
9342002-11-18 Andrew Cagney <ac131313@redhat.com>
935
936 * frame.h (enum frame_type): Define.
937 (get_frame_type): Declare.
938 (struct frame_info): Add field `type'. Delete field
939 signal_handler_caller.
940 (deprecated_set_frame_signal_handler_caller): Declare.
941 * frame.c (get_frame_type): New function.
942 (deprecated_set_frame_type): New function.
943 (create_new_frame): Set the frame's type.
944 (get_prev_frame): Similar.
945 * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
946 * s390-tdep.c: Ditto.
947 * m68klinux-nat.c: Ditto.
948 * ns32k-tdep.c: Ditto.
949 * x86-64-linux-tdep.c: Ditto.
950 * vax-tdep.c: Ditto.
951 * rs6000-tdep.c: Ditto.
952 * ppc-linux-tdep.c: Ditto.
953 * i386-interix-tdep.c: Ditto.
954 * mips-tdep.c: Ditto.
955 * m68k-tdep.c: Ditto.
956 * hppa-tdep.c: Ditto.
957 * ia64-tdep.c: Ditto.
958 * cris-tdep.c: Ditto.
959 * arm-tdep.c: Ditto.
960 * alpha-tdep.c: Ditto.
961 * i386-tdep.c: Ditto.
962 * stack.c: Ditto.
963 * ada-lang.c: Ditto.
964 * blockframe.c: Update.
965 * i386-interix-tdep.c (i386_interix_back_one_frame): Use
966 deprecated_set_frame_type instead of signal_handler_caller.
967 * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
968 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
969 * breakpoint.h: Delete FIXME suggesting get_frame_type.
970
bf4ae8b2
KD
9712002-11-18 Klee Dienes <kdienes@apple.com>
972
973 * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
974
a672ef13
KD
9752002-11-18 Klee Dienes <kdienes@apple.com>
976
977 * buildsym.c (pop_context): Add comment.
978
0c5e171a
KD
9792002-11-18 Klee Dienes <kdienes@apple.com>
980
981 * buildsym.h (pop_context): Convert to function, defined in
982 buildsym.c.
983 * buildsym.c: Include gdb_assert.h.
984 (pop_context): Implement as C function. Add check for stack
985 underflow.
986 * dbxread.c (process_one_symbol): Complain and stop processing
987 that symbol if we are already at the top of the context stack for
988 a function-end N_FUN (this would imply an umatched RBRAC). Ditto
989 when processing N_RBRAC.
990
8a1f4c4c
DJ
9912002-11-16 Daniel Jacobowitz <drow@mvista.com>
992
993 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
994 define.
995 (struct target_waitstatus): Add opaque definition.
996 * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
997 * exec.c (init_exec_ops): Likewise.
998 * fork-child.c (clone_and_follow_inferior): Remove.
999 * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
1000 * inferior.h (clone_and_follow_inferior): Remove prototype.
1001 * infrun.c (follow_fork_mode_both): Remove.
1002 (follow_fork_mode_kind_names): Remove commented out "both".
1003 (follow_inferior_fork): Remove follow_fork_mode_both support.
1004 * inftarg.c (child_clone_and_follow_inferior): Remove.
1005 (child_post_follow_inferior_by_clone): Remove.
1006 (init_child_ops): Don't set to_clone_and_follow_inferior
1007 or to_post_follow_inferior_by_clone.
1008 * target.c (default_clone_and_follow_inferior): Remove.
1009 (cleanup_target): Don't set to_clone_and_follow_inferior
1010 or to_post_follow_inferior_by_clone.
1011 (find_default_clone_and_follow_inferior): Remove.
1012 (init_dummy_target): Don't set to_clone_and_follow_inferior.
1013 (debug_to_clone_and_follow_inferior): Remove.
1014 (debug_to_post_follow_inferior_by_clone): Remove.
1015 (setup_target_debug): Don't set to_clone_and_follow_inferior
1016 or to_post_follow_inferior_by_clone.
1017 * target.h (struct target_ops): Remove to_clone_and_follow_inferior
1018 and to_post_follow_inferior_by_clone.
1019 (child_clone_and_follow_inferior): Remove prototype.
1020 (child_post_follow_inferior_by_clone): Remove prototype.
1021 (target_clone_and_follow_inferior): Remove macro.
1022 (target_post_follow_inferior_by_clone): Remove macro.
1023 (find_default_clone_and_follow_inferior): Remove prototype.
1024
47932f85
DJ
10252002-11-16 Daniel Jacobowitz <drow@mvista.com>
1026
1027 * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
1028 inferior_has_vforked, and inferior_has_execd instead of
1029 target_has_forked, target_has_vforked, and target_has_execd.
1030 * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
1031 (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
1032 (CHILD_WAIT): Define.
1033 (child_wait): Add prototype.
1034 * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
1035 Add prototype.
1036 (hpux_has_vforked): Likewise, from child_has_vforked.
1037 (hpux_has_execd): Likewise, from child_has_execd.
1038 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
1039 (not_same_real_pid, child_wait): New, copied from inftarg.c.
1040 Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
1041 and hpux_has_syscall_event instead of the target hooks.
1042 * infrun.c (inferior_has_forked, inferior_has_vforked)
1043 (inferior_has_execd): New functions.
1044 * inftarg.c (not_same_real_pid): Remove.
1045 (child_wait): Remove references to not_same_real_pid,
1046 target_has_forked, target_has_vforked, target_has_execd,
1047 and target_has_syscall_event.
1048 (child_has_forked, child_has_vforked, child_has_execd)
1049 (child_has_syscall_event): Remove.
1050 (init_child_ops): Remove references to child_has_forked,
1051 child_has_vforked, child_has_execd, and child_has_syscall_event.
1052 * infttrace.c (hpux_has_forked): Rename from child_has_forked.
1053 (hpux_has_vforked): Likewise, from child_has_vforked.
1054 (hpux_has_execd): Likewise, from child_has_execd.
1055 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
1056 * target.c (cleanup_target): Remove references to
1057 to_has_forked, to_has_vforked, to_has_execd, and
1058 to_has_syscall_event.
1059 (update_current_target): Likewise.
1060 (setup_target_debug): Likewise.
1061 (debug_to_has_forked): Remove.
1062 (debug_to_has_vforked): Remove.
1063 (debug_to_has_execd): Remove.
1064 (debug_to_has_syscall_event): Remove.
1065 * target.h (struct target_ops): Remove to_has_forked.
1066 to_has_vforked, to_has_execd, and to_has_syscall_event.
1067 (child_has_forked, child_has_vforked, child_has_execd)
1068 (child_has_syscall_event): Remove prototypes.
1069 (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
1070 prototypes.
1071 (target_has_forked, target_has_vforked, target_has_execd)
1072 (target_has_syscall_event): Remove macros.
1073
4088142a
DJ
10742002-11-16 Daniel Jacobowitz <drow@mvista.com>
1075
1076 * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
1077 * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
1078 (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
1079 * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
1080 * target.c (cleanup_target): Remove reference to
1081 to_can_follow_vfork_prior_to_exec.
1082 (update_current_target): Likewise.
1083 (debug_to_can_follow_vfork_prior_to_exec): Remove.
1084 (setup_target_debug): Remove reference to
1085 to_can_follow_vfork_prior_to_exec.
1086 * target.h (struct target_ops): Remove
1087 to_can_follow_vfork_prior_to_exec.
1088 (child_can_follow_vfork_prior_to_exec): Remove prototype.
1089 (target_can_follow_vfork_prior_to_exec): Remove definition.
1090 * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
1091 define.
1092 * infrun.c (follow_vfork_when_exec): Remove.
1093 (follow_inferior_fork): Remove references to follow_vfork_when_exec.
1094 (follow_exec): Likewise.
1095 (handle_inferior_event): Likewise.
1096 (keep_going): Likewise.
1097
18cde8d5
AC
10982002-11-15 Andrew Cagney <cagney@redhat.com>
1099
1100 * frame.c (generic_unwind_get_saved_register): Make static.
1101 * frame.h (generic_unwind_get_saved_register): Delete declaration.
1102 * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
1103 defaults to generic_unwind_get_saved_register.
1104 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1105 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1106 * frv-tdep.c (frv_gdbarch_init): Ditto.
1107 * i386-tdep.c (i386_gdbarch_init): Ditto.
1108 * s390-tdep.c (s390_gdbarch_init): Ditto.
1109 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1110 * v850-tdep.c (v850_gdbarch_init): Ditto.
1111 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1112 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1113 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
1114
a6b063af
AC
11152002-11-15 Andrew Cagney <cagney@redhat.com>
1116
1117 * x86-64-linux-nat.c (i386_sse_regnum_p): New function. Copy from
1118 i386-tdep.c.
1119
f407986f
AC
11202002-11-15 Andrew Cagney <cagney@redhat.com>
1121
1122 * frame.h (sigtramp_saved_pc): Delete declaration.
1123 * blockframe.c (sigtramp_saved_pc): Delete function.
1124 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
1125 (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
1126 * vax-tdep.c (vax_sigtramp_saved_pc): New function.
1127 (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
1128
f18c5a73
AC
11292002-11-15 Andrew Cagney <ac131313@redhat.com>
1130
1131 * frame.c (frame_pc_unwind): New function.
1132 (frame_saved_regs_pc_unwind): New function.
1133 (frame_register_unwind): Pass unwind_cache instead of
1134 register_unwind_cache.
1135 (set_unwind_by_pc): Add unwind_pc parameter, set.
1136 (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
1137 (get_prev_frame): Ditto.
1138 * frame.h (frame_pc_unwind_ftype): Declare.
1139 (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
1140 pc_unwind_cache. Rename register_unwind_cache to unwind_cache.
1141 (frame_pc_unwind): Declare.
1142 * dummy-frame.c (dummy_frame_pc_unwind): New function.
1143 (struct dummy_frame): Add comment mentioning that values are for
1144 previous frame.
1145 * dummy-frame.h (dummy_frame_pc_unwind): Declare.
1146 * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
1147 (generic_file_frame_chain_valid): Ditto.
1148 * stack.c (frame_info): Ditto.
1149
d9285969 11502002-11-15 David Carlton <carlton@math.stanford.edu>
0960f083
DC
1151
1152 * linespec.c (locate_first_half): New function.
1153 (decode_line_1): Move code into locate_first_half.
1154
d741b867
AC
11552002-11-15 Andrew Cagney <ac131313@redhat.com>
1156
1157 * complaints.h: Add comment explaining how to eliminate a
1158 deprecated_complain call.
24382c5c 1159 * complaints.h: Fix spelling errors.
d741b867 1160
82d03c99
DC
11612002-11-15 David Carlton <carlton@math.stanford.edu>
1162
1163 * printcmd.c: Remove #include "disasm.h".
1164
c97eb5d9
AC
11652002-11-14 Andrew Cagney <ac131313@redhat.com>
1166
1167 * frame.h: Move the most relevant interface functions to the start
1168 of the file.
1169
524d7c18
AC
11702002-11-14 Andrew Cagney <ac131313@redhat.com>
1171
1172 * regcache.h (deprecated_registers): Rename registers.
1173 * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
1174 * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
1175 * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
1176 * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
1177 * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
1178 * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
1179 * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
1180 * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
1181 * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
1182 * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
1183 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
1184 * v850ice.c: Update.
1185
6411e720
AC
1186Wed Nov 13 19:51:05 2002 Andrew Cagney <cagney@redhat.com>
1187
1188 * utils.c (gdb_realpath): Add comment mentioning realpath with a
1189 NULL buffer.
1190
73937e03
AC
11912002-11-13 Andrew Cagney <cagney@redhat.com>
1192
1193 * regcache.h (deprecated_read_register_bytes): Rename
1194 read_register_bytes.
1195 (deprecated_write_register_bytes): Rename write_register_bytes.
1196 * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
1197 * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
1198 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
1199 * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
1200 * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
1201 * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
1202 * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
1203 * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
1204 * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
1205 * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
1206 * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
1207 * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
1208 * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
1209 * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
1210
fb0cd46e
JB
12112002-11-13 Jim Blandy <jimb@redhat.com>
1212
1213 * findvar.c (read_var_value): Doc fix.
1214
2d28509a
AC
12152002-11-13 Andrew Cagney <cagney@redhat.com>
1216
1217 * regcache.c (struct regcache): Replace passthough_p with
1218 readonly_p.
1219 (regcache_xmalloc): Initialize readonly_p.
1220 (build_regcache): Initialize readonly_p.
1221 (regcache_save): New function.
1222 (regcache_restore): New function.
1223 (regcache_cpy): Re-implement using regcache_save and
1224 regcache_restore.
1225 (regcache_raw_read): Update.
1226 (regcache_cooked_read): When a read-only cache, checked for cached
1227 pseudo register values.
1228 (regcache_raw_write): Assert that the cache is not read-only.
1229 Remove code handling a non-passthrough cache.
1230 * regcache.h (regcache_save): Declare.
1231 (regcache_restore): Declare.
1232
067df2e5
AC
12332002-11-13 Andrew Cagney <cagney@redhat.com>
1234
1235 * regcache.c (struct regcache_descr): Add fields
1236 sizeof_cooked_registers and sizeof_cooked_register_valid_p.
1237 (init_legacy_regcache_descr): Compute the size of a cooked
1238 register cache and then assign that to sizeof_raw_registers. Set
1239 sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
1240 (init_legacy_regcache_descr): Ditto.
1241
51b1fe4e
AC
12422002-11-13 Andrew Cagney <cagney@redhat.com>
1243
1244 * regcache.c (register_buffer): Move to near start of file, update
1245 description.
1246 (regcache_raw_read): Use.
1247 (regcache_raw_write): Use.
1248 (struct regcache): Rename raw_registers to registers and
1249 raw_register_valid_p to register_valid_p.
1250 (regcache_xmalloc): Update.
1251 (regcache_xfree): Update.
1252 (register_buffer): Update.
1253 (regcache_cpy): Update.
1254 (regcache_cpy_no_passthrough): Update.
1255 (regcache_valid_p): Update.
1256 (deprecated_grub_regcache_for_registers): Update.
1257 (deprecated_grub_regcache_for_register_valid): Update.
1258 (set_register_cached): Update.
1259 (regcache_raw_write): Update.
1260
80b4c677
PM
12612002-11-13 Pierre Muller <muller@ics.u-strasbg.fr>
1262
1263 * p-exp.y (name_not_typename): Use copy_name to
1264 set current_type variable for fields of THIS.
1265
0f3fafde
DJ
12662002-11-12 Daniel Jacobowitz <drow@mvista.com>
1267
1268 * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
1269 * monitor.c (init_base_monitor_ops): Likewise.
1270 * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
1271 * remote-array.c (init_array_ops): Likewise.
1272 * remote-e7000.c (init_e7000_ops): Likewise.
1273 * remote-es.c (init_es1800_ops): Likewise.
1274 (init_es1800_child_ops): Likewise.
1275 * remote-rdp.c (init_remote_rdp_ops): Likewise.
1276 * remote-sim.c (init_gdbsim_ops): Likewise.
1277 * remote-st.c (init_st2000_ops): Likewise.
1278 * sol-thread.c (init_sol_core_ops): Likewise.
1279 (init_sol_thread_ops): Likewise.
1280 * v850ice.c (init_850ice_ops): Likewise.
1281 * win32-nat.c (init_child_ops): Likewise.
1282 * wince.c (init_child_ops): Likewise.
1283
82c0260e
AC
12842002-11-12 Andrew Cagney <ac131313@redhat.com>
1285
1286 * utils.c (gdb_realpath): Make rp a constant pointer.
1287
70d35819
AC
12882002-11-12 Andrew Cagney <ac131313@redhat.com>
1289
1290 * utils.c (gdb_realpath): Rewrite. Try, in order: realpath() with
1291 a constant buffer; cannonicalize_file_name(); realpath() with a
1292 pathconf() defined buffer, xstrdup().
1293
9835a8b0
AC
12942002-11-12 Andrew Cagney <ac131313@redhat.com>
1295
1296 * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
1297 to hang2.C; hang3.c to hang3.C.
1298
3f47be5c
EZ
12992002-11-11 Elena Zannoni <ezannoni@redhat.com>
1300
1301 * findvar.c (read_var_value): Reenable TLS code.
1302
13032002-11-11 Elena Zannoni <ezannoni@redhat.com>
1304 Jim Blandy <jimb@redhat.com>
1305
1306 * gdb_thread_db.h (enum): Add TD_NOTALLOC.
1307 * target.c (update_current_target): Add
1308 to_get_thread_local_address.
1309 * target.h (to_get_thread_local_address): Export.
1310 (target_get_thread_local_address): Define.
1311 (target_get_thread_local_address_p): Define.
1312 * thread-db.c: Include solib-svr4.h.
1313 (td_thr_tls_get_addr_p): Define.
1314 (thread_db_load): Get a pointer to td_thr_tls_get_addr.
1315 (thread_db_get_thread_local_address): New function.
1316 (init_thread_db_ops): Initialize to_get_thread_local_address.
1317 * configure.in: Add test for TD_NOTALLOC in thread_db.h.
1318 * configure: Regenerate.
1319 * config.in: Regenerate.
1320
636b1a6d
DC
13212002-11-11 David Carlton <carlton@math.stanford.edu>
1322
1323 * linespec.c (set_flags): New function.
1324 (decode_line_1): Move code into set_flags.
1325
44fe14ab
DC
13262002-11-11 David Carlton <carlton@math.stanford.edu>
1327
1328 * linespec.c (decode_line_1): Move chunks of code to separate
1329 functions.
1330 (initialize_defaults): New function.
1331 (decode_indirect): New function.
1332
e6f181f5
AC
13332002-11-11 Andrew Cagney <ac131313@redhat.com>
1334
8971b011
AC
1335 * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
1336 instead of void_code_ptr.
1337 (sigtramp_saved_pc): Ditto.
1338
e6f181f5
AC
1339 * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
1340 i386_fp_regnum_p.
1341
01ad7f36
DJ
13422002-11-10 Daniel Jacobowitz <drow@mvista.com>
1343
1344 * gdbtypes.h (struct main_type): Move artificial flag out of
1345 loc. New member of ``struct field'' named static_kind. Reduce
1346 overloaded meaning of bitsize.
1347 (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
1348 (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
1349 (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
1350
1351 * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
1352 new fields.
1353 (template_to_fixed_record_type, template_to_static_fixed_type)
1354 (to_record_with_fixed_variant_part): Likewise.
1355 * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
1356 * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
1357 * dwarfread.c (struct_type, enum_type): Likewise.
1358 * hpread.c (hpread_read_enum_type)
1359 (hpread_read_function_type, hpread_read_doc_function_type)
1360 (hpread_read_struct_type): Likewise.
1361 * mdebugread.c (parse_symbol): Likewise.
1362
bf1e52be
AC
13632002-11-10 Andrew Cagney <ac131313@redhat.com>
1364
1365 * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
1366 * stack.c (print_frame_info_base): Update.
1367 (print_frame_info_base, frame_info): Update.
1368 * sparc-tdep.c (sparc_init_extra_frame_info): Update.
1369 (sparc_frame_saved_pc): Update.
1370 * ada-lang.c (find_printable_frame): Update.
1371 * breakpoint.c (deprecated_frame_in_dummy): Update.
1372
ce556f85
MK
13732002-11-09 Mark Kettenis <kettenis@gnu.org>
1374
1375 * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
1376 defined.
1377 (regmap): Extend to cover all registers.
1378 (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
1379 OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
1380 definitions.
1381 (fetch_register, sore_register): Simplify.
1382 (old_fetch_inferior_registers, old_store_inferior_registers):
1383 Remove functions.
1384 (cannot_fetch_register, cannot_store_register): Change
1385 implementation to use regmap array to decide which registers
1386 cannot be fetched/stored. This removes $orig_eax from the
1387 registers that cannot be fetched/stored.
1388 (fetch_inferior_registers): Call fetch_register directly instead
1389 of calling old_fetch_inferior_registers.
1390 (store_inferior_registers): Call store_register directly instead
1391 of calling old_store_inferior_registers.
1392 (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
1393 (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
1394 * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
1395
932bb524
KD
13962002-11-09 Klee Dienes <kdienes@apple.com>
1397
1398 * i387-tdep.c (i387_supply_register): When called with NULL as a
1399 buffer, mark the register as not provided (to mirror the behavior
1400 of supply_register).
1401 (i387_supply_fxsave): Ditto.
1402 (i387_supply_fsave): Ditto (inherits the behavior from
1403 i387_supply_register).
1404
ebe68b27
KD
14052002-11-09 Klee Dienes <kdienes@apple.com>
1406
1407 * blockframe.c (sigtramp_saved_pc): Use
1408 builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
1409 extracting the PC). Use TYPE_LENGTH (builtin_type_void_code_ptr)
1410 instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
1411
15220c65
AC
14122002-11-09 Andrew Cagney <ac131313@redhat.com>
1413
1414 * frame.c (get_prev_frame): Test prev_p to identify a previously
1415 unwound frame. Initialize prev_p.
1416 * frame.h (struct frame_info): Add field prev_p. Expand prev/next
1417 comment.
1418
95adb866
AC
14192002-11-09 Andrew Cagney <ac131313@redhat.com>
1420
1421 * frame.c (get_prev_frame): Cleanups. Eliminate redundant tests
1422 for a NULL NEXT_FRAME. Simplify fromleaf initialization. Add
1423 more comments. Zap dead code.
1424
e71ecd70
MK
14252002-11-09 Mark Kettenis <kettenis@gnu.org>
1426
1427 * infcmd.c (print_vector_info, print_float_info): Move code that
1428 checks whether the target has any registers and whether there is a
1429 selected frame up, such that it is also used if a target provides
1430 multi-arch definitions of these functions.
1431
c525330d
AC
14322002-11-08 Andrew Cagney <ac131313@redhat.com>
1433
72bdd927
AC
1434 * Makefile.in (DESTDIR): Define.
1435 (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
1436 prefix.
1437
c525330d
AC
1438 * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
1439 i386obsd-tdep.c. Rename to "gdb.cxx", paths containing "gdb.c++".
1440
38c968cf
AC
14412002-11-08 Andrew Cagney <ac131313@redhat.com>
1442
1443 * i386-linux-tdep.c: Include "reggroups.h".
1444 (i386_linux_register_reggroup_p): New function.
1445 (i386_linux_init_abi): Set register_reggroup_p to
1446 i386_linux_register_reggroup_p.
1447 * i386-tdep.h (i386_register_reggroup_p): Declare.
1448 * i386-tdep.c: Include "reggroups.h".
1449 (i386_init_reggroups): New function.
1450 (i386_add_reggroups): New function.
1451 (i386_register_reggroup_p): New function.
1452 (i386_sse_reggroup, i386_mmx_reggroup): New variables.
1453 (_initialize_i386_tdep): Call i386_init_reggroups.
1454 (i386_gdbarch_init): Set register_reggroup_p and add in the i386
1455 specific reggroups.
1456
19e33363
MK
14572002-11-09 Mark Kettenis <kettenis@gnu.org>
1458
371a6e84
MK
1459 * infptrace.c (child_xfer_memory): Make use of the new PT_IO
1460 request that's available in *BSD.
1461
94ba925a
MK
1462 * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
1463
19e33363
MK
1464 * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
1465 FDOFF_REGNUM.
1466
8779790c
AC
14672002-11-08 Andrew Cagney <ac131313@redhat.com>
1468
1469 * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
1470 * dummy-frame.c (find_dummy_frame): Rename
1471 generic_find_dummy_frame, make static. Return the dummy frame
1472 instead of the regcache.
1473 (generic_find_dummy_frame): Re-implement using find_dummy_frame,
1474 (cached_find_dummy_frame): New function. Use find_dummy_frame.
1475 (dummy_frame_register_unwind): Rename
1476 generic_call_dummy_register_unwind. Use cached_find_dummy_frame.
1477 * dummy-frame.h (dummy_frame_register_unwind): Rename
1478 generic_call_dummy_register_unwind.
1479
8674b74f
MK
14802002-11-08 Mark Kettenis <kettenis@gnu.org>
1481
1482 * config/i386/tm-i386v42mp.h: Remove file. Move its contents,
1483 except the inclusion of "i386/tm-i386.h", to...
1484 * config/i386/nm-i386v42mp.h: ...here.
1485 * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
1486
4c1e7e9d
AC
14872002-11-08 Andrew Cagney <ac131313@redhat.com>
1488
1489 * Makefile.in (frame.o): Update dependencies.
1490 * blockframe.c (current_frame, frame_obstack_alloc)
1491 (frame_saved_regs_zalloc, get_current_frame)
1492 (set_current_frame, create_new_frame)
1493 (set_unwind_by_pc, get_next_frame)
1494 (flush_cached_frames, reinit_frame_cache)
1495 (frame_saved_regs_register_unwind)
1496 (deprecated_generic_get_saved_register)
1497 (get_prev_frame, get_frame_pc, get_frame_saved_regs)
1498 (_initialize_blockframe): Move frame code from here...
1499 * frame.c: ...to here. Include "gdb_obstack.h", "gdbcore.h",
1500 "annotate.h" and "dummy-frame.h".
1501 (_initialize_frame): New function.
1502
921e78cf
JB
15032002-11-08 Jim Blandy <jimb@redhat.com>
1504
1505 * dwarf2read.c (read_func_scope): Restore list_in_scope properly
1506 when we finish a function a context.
1507 * buildsym.h (outermost_context_p): New macro.
1508 (Bug analyzed by David Edelsohn.)
1509
9c1412c1
AC
15102002-11-08 Andrew Cagney <ac131313@redhat.com>
1511
1512 * blockframe.c: Include "dummy-frame.h".
1513 (struct dummy_frame, dummy_frame_stack)
1514 (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
1515 (generic_pc_in_call_dummy, deprecated_read_register_dummy)
1516 (generic_push_dummy_frame, generic_save_dummy_frame_tos)
1517 (generic_save_call_dummy_addr, generic_pop_current_frame)
1518 (generic_pop_dummy_frame, generic_fix_call_dummy)
1519 (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
1520 dummy frame code from here...
1521 * dummy-frame.c: ...to here. New file.
1522 * dummy-frame.h: New file.
1523 (generic_call_dummy_register_unwind): Declare.
1524 (generic_find_dummy_frame): Declare.
1525 * Makefile.in (SFILES): Add dummy-frame.c.
1526 (dummy-frame.o): Specify dependencies.
1527 (dummy_frame_h): Define.
1528 (COMMON_OBS): Add dummy-frame.o.
1529 (blockframe.o): Update dependencies.
1530
208d8187
JB
15312002-11-08 Jim Blandy <jimb@redhat.com>
1532
1533 * dwarf2read.c (read_func_scope): Restore local_symbols and
1534 param_symbols after we finish the function context. (Based on a
1535 patch from David Edelsohn.)
1536
413dad4d
DC
15372002-11-08 David Carlton <carlton@math.stanford.edu>
1538
1539 * linespec.c (symbol_found): New function.
1540 (minsym_found): New function.
1541 (decode_line_1): Separate out some code into separate functions.
1542
5512c44a
JB
15432002-11-08 Joel Brobecker <brobecker@gnat.com>
1544
1545 * i386-tdep.c (i386_frameless_signal_p): Make non static for
1546 the benefit of the interix target.
1547 * i386-tdep.h (i386_frameless_signal_p): Declare.
1548
1b33ef47
AC
15492002-11-08 Andrew Cagney <ac131313@redhat.com>
1550
1551 * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
1552 declaration that snuck in from change below.
1553
23a34459
AC
15542002-11-06 Andrew Cagney <cagney@redhat.com>
1555
1556 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
1557 all callers.
1558 (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P.
1559 (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P.
1560 (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P.
1561 (i386_mxcsr_regnum_p): new function. Use instead of
1562 MXCSR_REGNUM_P.
1563 * i386-tdep.h (SSE_REGNUM_P): Delete macro.
1564 (i386_sse_regnum_p): Declare.
1565 (i386_mxcsr_regnum_p): Declare.
1566 (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
1567 (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
1568 (IS_FP_REGNUM): Update definition.
1569 (IS_FPU_CTRL_REGNUM): Update definition..
1570 (IS_SSE_REGNUM): Update definition..
1571 * i386v-nat.c (register_u_addr): Update.
1572 * go32-nat.c (fetch_register): Update.
1573 (store_register): Update.
1574
d709c020
JB
15752002-11-07 Joel Brobecker <brobecker@gnat.com>
1576
1577 Preparation work to convert the hppa targets to multiarch partial.
1578
1579 * hppa-tdep.c: Add new functions replacing macro bodies from
1580 config/pa/tm-hppa.h. These function will be used to initialize
1581 the gdbarch structure. Import some comments from tm-hppa.h,
1582 and place them where appropriate, to avoid loosing them when
1583 we cleanup this file.
1584 (hppa_reg_struct_has_addr): New function.
1585 (hppa_inner_than): New function.
1586 (hppa_stack_align): New function.
1587 (hppa_pc_requires_run_before_use): New function.
1588 (hppa_instruction_nullified): New function.
1589 (hppa_register_byte): New function.
1590 (hppa_register_virtual_type): New function.
1591 (hppa_store_struct_return): New function.
1592 (hppa_cannot_store_register): New function.
1593 (hppa_frame_args_address): New function.
1594 (hppa_frame_locals_address): New function.
1595 (hppa_smash_text_address): New function.
1596 (hppa_coerce_float_to_double): New function. Requires the inclusion
1597 of "language.h".
1598
1599 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
1600
1601 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
1602 gdbarch-eligible macro to a call to the new associated function
1603 created in hppa-tdep.c.
1604 (INNER_THAN): Likewise.
1605 (STACK_ALIGN): Likewise.
1606 (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
1607 (INSTRUCTION_NULLIFIED): Likewise.
1608 (REGISTER_BYTE): Likewise.
1609 (REGISTER_VIRTUAL_TYPE): Likewise.
1610 (STORE_STRUCT_RETURN): Likewise.
1611 (CANNOT_STORE_REGISTER): Likewise.
1612 (FRAME_ARGS_ADDRESS): Likewise.
1613 (FRAME_LOCALS_ADDRESS): Likewise.
1614 (SMASH_TEXT_ADDRESS): Likewise.
1615 (COERCE_FLOAT_TO_DOUBLE): Likewise.
1616 (ABOUT_TO_RETURN): Delete, as no longer used.
1617
83c31e7d
FN
16182002-11-07 Fernando Nasser <fnasser@redhat.com>
1619
1620 * printcmd.c (disassemble_command): Remove obsolete function.
1621 (_initialize_printcmd): Do not create disassemble command here.
1622 * cli/cli-cmds.c (disassemble_command): New function. Implements
1623 disassemble command.
1624 (init_cli_cmds): Create disassemble command here instead.
1625
0ec30a36
AC
16262002-11-07 Andrew Cagney <ac131313@redhat.com>
1627
1628 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
1629
e600bd34
AC
16302002-11-07 Andrew Cagney <ac131313@redhat.com>
1631
1632 * regcache.h (regcache_cooked_read_using_offset_hack)
1633 (regcache_cooked_write_using_offset_hack): Delete declarations.
1634 (register_changed): Delete declaration.
1635 * regcache.c (regcache_cooked_read_using_offset_hack)
1636 (regcache_cooked_write_using_offset_hack): Delete functions.
1637 (cooked_xfer_using_offset_hack): Delete function.
1638 (register_changed): Delete function.
1639
568f8739
JB
16402002-11-07 Jim Blandy <jimb@redhat.com>
1641
1642 * macroscope.c: #include "complaints.h".
1643 (sal_macro_scope): Cope with filenames that appear in the symtabs,
1644 but not in the macro table.
1645 * Makefile.in (macroscope.o): Record dependency.
1646
b0718b7b
JB
16472002-11-07 Joel Brobecker <brobecker@gnat.com>
1648
1649 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
1650
2b9e5f3f
AC
16512002-11-07 Andrew Cagney <ac131313@redhat.com>
1652
1653 * regcache.c (deprecated_registers_fetched): Update.
1654 * regcache.h (deprecated_registers_fetched): Rename
1655 registers_fetched.
1656 * remote-vxsparc.c (vx_read_register): Update.
1657 * remote-vxmips.c (vx_read_register): Update.
1658 * remote-vx68.c (vx_read_register): Update.
1659 * irix5-nat.c (fetch_core_registers): Update.
1660 * mipsm3-nat.c (fetch_inferior_registers): Update.
1661 * sun3-nat.c (fetch_inferior_registers): Update.
1662 * symm-nat.c (fetch_inferior_registers): Update.
1663 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
1664 (fetch_core_registers): Update.
1665 (fetch_kcore_registers): Update.
1666 * mips-nat.c (fetch_inferior_registers): Update.
1667 * corelow.c (get_core_registers): Update.
1668 * a68v-nat.c (fetch_inferior_registers): Update.
1669
e6e68f1f
JB
16702002-11-06 Joel Brobecker <brobecker@gnat.com>
1671
1672 Put in place the framework necessary for multiarching the hppa targets.
1673 * hppa-tdep.c (hppa_gdbarch_init): New function.
1674 (hppa_dump_tdep): New function.
1675 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
1676 tdep structure dumper.
1677 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
1678 until the multi-arching conversion has partially been completed.
1679
492254e9
AC
16802002-11-06 Andrew Cagney <ac131313@redhat.com>
1681
1682 * valops.c (value_assign): Merge lval_register case into
1683 lval_reg_frame_relative. Use frame_register and
1684 regcache_cooked_write instead of get_saved_register and
1685 write_register_bytes. After flushing the register cache, try to
1686 re-select the selected frame.
1687
8262ee23
AC
16882002-11-06 Andrew Cagney <ac131313@redhat.com>
1689
1690 * regcache.h (deprecated_register_valid): Rename register_valid.
1691 * regcache.c: Update.
1692 * ia64-aix-nat.c: Update.
1693 * i386gnu-nat.c: Update.
1694 * alpha-nat.c: Update.
1695 * sparc-nat.c: Update.
1696 * lynx-nat.c: Update.
1697 * remote-mips.c: Update.
1698
4facf7e8
JB
16992002-11-06 Joel Brobecker <brobecker@gnat.com>
1700
1701 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
1702 to end of file, to be more consistent with the pratice followed
1703 by other targets.
1704
f9418c0f
AC
17052002-11-06 Andrew Cagney <ac131313@redhat.com>
1706
1707 * infcmd.c: Include "reggroups.h" and <ctype.h>.
1708 (print_float_info): Print registers in float_reggroup.
1709 (print_vector_info): Print registers in vector_reggroup.
1710 (default_print_registers_info): When all, print registers in
1711 all_reggroup. Otherwize, print registers in general_reggroup.
1712 (registers_info): Rewrite. Add support for register groups.
1713 Eliminate a goto.
1714
3fe235a7
EZ
17152002-11-06 Elena Zannoni <ezannoni@redhat.com>
1716
1717 * symtab.c (methods_info): Delete. It has been ifdeffed out for
1718 ages.
1719 (symtab_symbol_info): Remove eons old ifdeffed out code.
1720 (_initialize_symtab): Remove prehistoric disabled 'info methods'
1721 command.
1722
ef944135
TR
17232002-11-06 Theodore A. Roth <troth@openavr.org>
1724
1725 * c-exp.y: Add missing semi-colons.
1726 * f-exp.y: Add missing semi-colons.
1727 * m2-exp.y: Add missing semi-colons.
1728 * p-exp.y: Add missing semi-colons.
1729 Add empty action to start rule to avoid a type clash error when
1730 building with bison >= 1.50.
1731
f8302a57
JB
17322002-11-06 Jim Blandy <jimb@redhat.com>
1733
1734 * macrotab.h (struct macro_source_file): Doc fix.
1735
6e382aa3
JJ
17362002-11-05 Jeff Johnston <jjohnstn@redhat.com>
1737
1738 * varobj.c (child_exists, cplus_number_of_children): Change
1739 STREQ macro references to strcmp.
1740 (cplus_name_of_child): Change code to handle the fact that
1741 fields are not necessarily contiguous with regards to their
1742 access control. This is a fix for PR gdb/792.
1743
a216a322
AC
17442002-11-05 Andrew Cagney <ac131313@redhat.com>
1745
1746 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
1747 * gdbarch.h, gdbarch.c: Regnerate.
1748 * frame.h (frame_register): Declare.
1749 * frame.c (frame_register): New function.
1750 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
1751 GET_SAVED_REGISTER, otherwize call
1752 generic_unwind_get_saved_register.
1753 (frame_register_read): Use frame_register instead of
1754 get_saved_register.
1755
7d5b6fdd
EZ
17562002-11-05 Elena Zannoni <ezannoni@redhat.com>
1757
1758 From Jim Ingham <jingham@apple.com>:
1759 * event-top.c (gdb_disable_readline): New function.
1760 (_initialize_event_loop): Move comment.
1761
b7c64260
EZ
17622002-11-05 Elena Zannoni <ezannoni@redhat.com>
1763
1764 * event-loop.c (start_event_loop): Add comment.
1765 Update copyright.
1766
c2e1b8f2
AC
17672002-11-05 Andrew Cagney <ac131313@redhat.com>
1768
1769 * infcmd.c (default_print_registers_info): Do not call
1770 PRINT_REGISTER_HOOK.
1771
87647bb0
AC
17722002-11-05 Andrew Cagney <ac131313@redhat.com>
1773
1774 * sparc-tdep.c (sparc_print_register_hook): Make static.
1775 (sparc_print_registers_info): New function.
1776 (sparc_do_registers_info): New function.
1777 (sparclet_print_registers_info): New function.
1778 (sparclet_do_registers_info): New function.
1779 (do_sparc_print_registers_info): New function.
1780 (sparc_print_registers): New static function, clone of infcmd.c's
1781 default_print_registers_info.
1782 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
1783 (sparclet_do_registers_info): Declare.
1784 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
1785 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
1786 Re-define.
1787 (sparc_do_registers_info): Declare.
1788 (PRINT_REGISTER_HOOK): Delete macro.
1789 (sparc_print_register_hook): Delete declaration.
1790
8155455b
DC
17912002-11-05 David Carlton <carlton@math.stanford.edu>
1792
1793 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
1794 functions.
1795 (lookup_symbol_aux_local): New function.
1796 (lookup_symbol_aux_symtabs): New function.
1797 (lookup_symbol_aux_psymtabs): New function.
1798
29924310
DC
17992002-11-05 David Carlton <carlton@math.stanford.edu>
1800
1801 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
1802 previous values of 'objfile' and 'block'.
1803
cc303028
PM
18042002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
1805
1806 * values.c (value_change_enclosing_type): Set
1807 enclosing_type field correctly also for the case where
1808 more memory needs to be allocated.
1809
1d70089a
MK
18102002-11-03 Mark Kettenis <kettenis@gnu.org>
1811
f16a25ae
MK
1812 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
1813 of puts_filtered.
1814
1d70089a
MK
1815 * i387-tdep.c (i387_print_float_info): Replace calls to
1816 register_read and deprecated_read_register_gen with calls to
1817 frame_register_read, and make the necessary adjustments to the
1818 surrounding code.
1819
7e20f3fb
AC
18202002-11-02 Andrew Cagney <ac131313@redhat.com>
1821
1822 * gdbarch.sh (register_reggroup_p): Allow default value.
1823 * gdbarch.h, gdbarch.c: Regenerate.
1824
192dbe33
AC
18252002-11-02 Andrew Cagney <ac131313@redhat.com>
1826
1827 * regcache.h: Add coment indicating replacements for deprecated
1828 functions.
1829
b59ff9d5
AC
18302002-11-02 Andrew Cagney <cagney@redhat.com>
1831
1832 * reggroups.h, reggroups.c: New files.
1833 * regcache.c: Include "reggroups.h".
1834 (enum regcache_dump_what): Add `regcache_dump_groups'.
1835 (regcache_dump): Contract size of the "Type" column. When
1836 specified, dump the register's groups.
1837 (maintenance_print_register_groups): New function.
1838 (_initialize_regcache): Add command `maint print register-groups'.
1839 * Makefile.in (COMMON_OBS): Add reggroups.o
1840 (SFILES): Add reggroups.c.
1841 (reggroups_h): Define.
1842 (regcache.o, gdbarch.o): Update dependencies.
1843 (reggroups.o): Specify dependencies.
1844 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
1845 Add opaque declaration for `struct reggroup' in generated .h file.
1846 Include "reggroups.h" in generated .c file.
1847 gdbarch.h, gdbarch.c: Re-generate.
1848
4caf0990
AC
18492002-11-02 Andrew Cagney <cagney@redhat.com>
1850
1851 * regcache.h (deprecated_read_register_gen): Rename
1852 read_register_gen.
1853 (deprecated_write_register_gen): Rename write_register_gen.
1854 * i387-tdep.c: Update.
1855 * x86-64-linux-nat.c: Update
1856 * wince.c: Update.
1857 * thread-db.c: Update.
1858 * win32-nat.c: Update.
1859 * mips-tdep.c: Update.
1860 * d10v-tdep.c: Update.
1861 * cris-tdep.c: Update.
1862 * remote-sim.c: Update.
1863 * remote-rdi.c: Update.
1864 * remote-rdp.c: Update.
1865 * frame.c: Update.
1866 * target.c: Update.
1867 * blockframe.c: Update.
1868 * x86-64-tdep.c: Update.
1869 * xstormy16-tdep.c: Update.
1870 * sh-tdep.c: Update.
1871 * s390-tdep.c: Update.
1872 * rs6000-tdep.c: Update.
1873 * sparc-tdep.c: Update.
1874 * i386-tdep.c: Update.
1875 * dwarf2cfi.c: Update.
1876 * regcache.c: Update.
1877
7a7adcdf
JB
18782002-11-01 Joel Brobecker <brobecker@gnat.com>
1879
1880 New interix-specific files:
1881 * config/i386/nm-interix.h: New file.
1882 * config/i386/interix.mh: New file.
1883 * config/i386/interix.mt: New file.
1884 * i386-interix-nat.c: New file.
1885 * i386-interix-tdep.c: New file.
1886
bdcdd535
AC
18872002-11-01 Andrew Cagney <cagney@redhat.com>
1888
1889 * frame.h (deprecated_generic_get_saved_register): Rename
1890 generic_get_saved_register.
1891 * blockframe.c (deprecated_generic_get_saved_register): Update.
1892 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
1893 (xstormy16_frame_saved_register): Update.
1894 * sh-tdep.c (sh_gdbarch_init): Update.
1895 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1896 * ia64-tdep.c (ia64_get_saved_register): Update.
1897 * cris-tdep.c (cris_gdbarch_init): Update.
1898 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
1899 * arm-tdep.c (arm_gdbarch_init): Update.
1900
2a4b7c45
DJ
19012002-10-31 Daniel Jacobowitz <drow@mvista.com>
1902
1903 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
1904
ef17e74b
DJ
19052002-10-31 Daniel Jacobowitz <drow@mvista.com>
1906
1907 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
1908 trampolines in sigaction.
1909
4904ba5b
AC
19102002-10-31 Andrew Cagney <cagney@redhat.com>
1911
1912 * h8300-tdep.c: Include "gdb_assert.h".
1913 (h8300_print_register): Add gdbarch, file and frame parameters.
1914 Use frame_read_unsigned_register to read the register's value.
1915 Use fprintf_filtered to display output.
1916 (h8300_print_registers_info): Replace h8300_do_registers_info.
1917 (h8300_gdbarch_init): Set print_registers_info.
1918
f908a0eb
AC
19192002-10-31 Andrew Cagney <cagney@redhat.com>
1920
1921 * frame.c (frame_read_unsigned_register): New function.
1922 (frame_read_signed_register): New function.
1923 * frame.h (frame_read_unsigned_register): Declare.
1924 (frame_read_signed_register): Declare.
1925
c5646e11
AC
19262002-10-31 Andrew Cagney <cagney@redhat.com>
1927
1928 * h8500-tdep.c (h8500_print_registers_info): New static function,
1929 clone of infcmd.c's default_print_registers_info.
1930 (h8500_do_registers_info): New funtion.
1931 (h8500_print_register_hook): Rename print_register_hook, make
1932 static.
1933
1934 * config/h8500/tm-h8500.h: Update copyright.
1935 (DEPRECATED_DO_REGISTERS_INFO): Define.
1936 (h8500_do_registers_info: Declare.
1937 (PRINT_REGISTER_HOOK): Delete macro.
1938 (print_register_hook): Delete function.
1939
0bdd672b
AC
19402002-10-31 Andrew Cagney <cagney@redhat.com>
1941
1942 * z8k-tdep.c (z8k_print_register_hook): Make static.
1943 (z8k_print_registers_info): New static function, clone of
1944 infcmd.c's default_print_registers_info.
1945 (z8k_do_registers_info): New function. Wrap
1946 z8k_print_registers_info.
1947 * config/z8k/tm-z8k.h: Update copyright.
1948 (PRINT_REGISTER_HOOK): Delete macro.
1949 (z8k_print_register_hook): Delete declaration.
1950 (DEPRECATED_DO_REGISTERS_INFO): Define.
1951 (z8k_do_registers_info): Declare.
1952
bf9c25dc
JB
19532002-10-30 Joel Brobecker <brobecker@gnat.com>
1954
1955 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
1956 as this is already provided by value.h, and was actually causing
1957 a compilation error because of a conflict in parameter type
1958 declaration due to a missing const keyword.
1959 (low_text_segment_addres): Fix a compilation warning.
1960
2c665b51
DJ
19612002-10-29 Daniel Jacobowitz <drow@mvista.com>
1962
1963 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
1964 registers without a name.
1965 (mips_linux_cannot_store_register): Don't store registers without
1966 a name.
1967
e70ea697
DC
19682002-10-28 David Carlton <carlton@math.stanford.edu>
1969
1970 * symtab.c (find_addr_symbol): Delete. (It was already commented
1971 out.)
1972 * symtab.h: Delete prototype for find_addr_symbol.
1973
903ad3a6
AC
19742002-10-26 Andrew Cagney <cagney@redhat.com>
1975
1976 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
1977 DO_REGISTERS_INFO.
1978 gdbarch.h, gdbarch.c: Re-generate.
1979 * infcmd.c (default_print_registers_info): Update reference.
1980 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
1981 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
1982 * sh-tdep.c (sh_gdbarch_init): Ditto.
1983 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1984 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1985
ab91194c
MK
19862002-10-26 Mark Kettenis <kettenis@gnu.org>
1987
e3033f15
MK
1988 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
1989 cfi_init_extra_frame_info.
1990 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
1991 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
1992
b83b026c
MK
1993 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
1994 target where necessary. Add more comments and remove the ones
1995 that don't provide any useful information.
1996
267bf4bb
MK
1997 * i386-tdep.c (i386_frame_saved_pc): Replace call to
1998 deprecated_read_register_dummy with
1999 frame_unwind_unsigned_register.
2000
751f1375
MK
2001 * i386-tdep.c (i386_extract_struct_value_address): Use
2002 regcache_raw_read_unsigned instead of
2003 regcache_cooked_read_unsigned since we know that the register
2004 we're reading isn't a pseudo register. Rename variable 'val' into
2005 the more descriptive 'addr'.
2006
26abbdc4
MK
2007 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
2008 (x86_64_push_return_address): Add comment.
2009 (x86_64_pop_frame): Make static.
2010 (examine_argument): Clarify comment.
2011 (x86_64_skip_prologue): Make prolog_expact variable static.
2012
9f1549cc
MK
2013 * dwarf2cfi.c: Fix some formatting problems.
2014 (context_cpy, read_encoded_pointer): Clarify comments.
2015
ab91194c
MK
2016 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
2017 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
2018 i386 target back into x86_64_gdbarch_init. Add some comments and
2019 remove meaningless ones.
2020
72367fb4
AC
20212002-10-25 Andrew Cagney <cagney@redhat.com>
2022
2023 * complaints.h (struct deprecated_complaint): Rename `struct
2024 complaint'.
2025 * complaints.c (complain): Update.
2026 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
2027 incorrect comment indicating that "symfile.h" was being included
2028 for the `struct complaint' definition.
2029 * remote-vx.c: Update.
2030 * objc-lang.c: Update.
2031 * xcoffread.c: Update.
2032 * hpread.c: Update.
2033 * mdebugread.c: Update.
2034 * stabsread.c: Update.
2035 * dwarf2read.c: Update.
2036 * dwarfread.c: Update.
2037 * elfread.c: Update.
2038 * coffread.c: Update.
2039 * stabsread.h: Update.
2040 * dbxread.c: Update.
2041 * buildsym.c: Update.
2042 * gdbtypes.c: Update.
2043 * macrotab.c: Update.
2044
1f2baacc
MK
20452002-10-25 Mark Kettenis <kettenis@gnu.org>
2046
0c1a73d6
MK
2047 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
2048 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
2049 (x86_64_init_abi): ...new function.
2050
6aee4d54 2051 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
1f2baacc
MK
2052 * i386v-nat.c: Include "i386-tdep.h".
2053
8f9cbe01
AC
20542002-10-25 Andrew Cagney <cagney@redhat.com>
2055
5f11f355
AC
2056 * gdbtypes.c (address_space_name_to_int): Update.
2057 (address_space_int_to_name): Update.
2058 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
2059 multi-arch predicate.
2060 (address_class_name_to_type_flags): Ditto.
2061 * gdbarch.h, gdbarch.c: Re-generate.
2062
8f9cbe01
AC
2063 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
2064
e8d96a5d
MH
20652002-10-24 Martin M. Hunt <hunt@redhat.com>
2066
2067 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
2068
fe39c653
EZ
20692002-10-24 Elena Zannoni <ezannoni@redhat.com>
2070
2071 * symtab.h (INIT_SAL): Delete macro.
2072 (init_sal): Export.
2073 * symtab.c (init_sal): New function.
2074
2075 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
2076 to init_sal function call.
2077 (find_sal_from_funcs_and_line): Ditto.
2078 (all_sals_for_line): Ditto.
2079 * breakpoint.c (create_internal_breakpoint): Ditto.
2080 (create_fork_vfork_event_catchpoint): Ditto.
2081 (create_exec_event_catchpoint): Ditto.
2082 (parse_breakpoint_sals): Ditto.
2083 (watch_command_1): Ditto.
2084 (handle_gnu_4_16_catch_command): Ditto.
2085 (clear_command): Ditto.
2086 * hppa-tdep.c (child_enable_exception_callback): Ditto.
2087 * infcmd.c (run_stack_dummy): Ditto.
2088 * infrun.c (process_event_stop_test): Ditto.
2089 (check_sigtramp2): Ditto.
2090 (step_over_function): Ditto.
2091 * linespec.c (decode_line_2): Ditto.
2092 (decode_line_1): Ditto.
2093 * source.c (line_info): Ditto.
2094 * symtab.c (find_pc_sect_line): Ditto.
2095
baed091b
ML
20962002-10-24 Michal Ludvig <mludvig@suse.cz>
2097
2098 * dwarf2cfi.c (struct context)
2099 (struct context_reg): Moved to dwarf2cfi.h
2100 (context_alloc, frame_state_alloc, context_cpy):
2101 Made extern instead of static, removed prototypes.
2102 * dwarf2cfi.h (struct context)
2103 (struct context_reg): New, moved from dwarf2cfi.c
2104 (context_alloc, frame_state_alloc, context_cpy):
2105 New prototypes.
2106 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
2107 Changed from static to extern.
2108 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
2109 (LINUX_SIGCONTEXT_FP_OFFSET)
2110 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
2111 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
2112 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
2113 * x86-64-tdep.c (x86_64_gdbarch_init): Several
2114 set_gdbarch_*() calls now use x86-64 specific functions
2115 instead of DWARF2 CFI ones.
2116 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
2117 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
2118 (x86_64_init_extra_frame_info): New prototypes.
2119
c38da1af
DC
21202002-10-23 David Carlton <carlton@math.stanford.edu>
2121
2122 * linespec.c: #include "parser-defs.h".
2123 Delete prototype for find_template_name_end.
2124 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
2125
fb9b6b35
JJ
21262002-10-23 Jeff Johnston <jjohnstn@redhat.com>
2127
2128 * NEWS: add recent mi fixes.
2129 * varobj.c (struct varobj): Add new "updated" flag.
2130 (new_variable): Default "updated" flag to 0.
2131 (varobj_set_value): Set "updated" flag to 1 if value
2132 changes.
2133 (varobj_update): Check varobj "updated" flag before
2134 comparing old and refreshed values. Fix for
2135 PR gdb/702.
2136
8da065d5
DC
21372002-10-23 David Carlton <carlton@math.stanford.edu>
2138
2139 * parse.c (parse_exp_1): Use BLOCK_START.
2140 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
2141 SYMBOL_BLOCK_VALUE.
2142 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
2143
87f2f08c
DC
21442002-10-23 David Carlton <carlton@math.stanford.edu>
2145
2146 * symtab.c: Delete cplusplus_hint.
2147 Delete prototype for find_template_name_end.
2148
88cda038
EZ
21492002-10-23 Elena Zannoni <ezannoni@redhat.com>
2150
2151 * symtab.h: Update comment.
2152
2625d86c
MS
21532002-10-23 Michael Snyder <msnyder@redhat.com>
2154
2155 * printcmd.c (address_info): Restore quotes in output.
2156 * valops.c (value_of_local): Restore quotes in error message.
2157
9cc0d196
EZ
21582002-10-23 Elena Zannoni <ezannoni@redhat.com>
2159
2160 * symtab.c (symbol_demangled_name): New function.
2161 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
2162 turning most of it into a function.
2163 (symbol_demangled_name): Export.
2164
19de93d0
MS
21652002-10-23 Michael Snyder <msnyder@redhat.com>
2166
2167 * valops.c (value_of_local): Restore quotes in error message.
2168
89aad1f9
EZ
21692002-10-23 Elena Zannoni <ezannoni@redhat.com>
2170
2171 * symtab.c (symbol_init_language_specific): New function.
2172 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
2173 turning most of it into a function.
2174 (symbol_init_language_specific): Export.
2175
d9fa45fe
DC
21762002-10-23 David Carlton <carlton@math.stanford.edu>
2177
2178 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
2179 (dwarf_attr_name): Ditto.
2180 (dwarf_type_encoding_name): Ditto.
2181 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
2182 (process_die): Handle DW_TAG_namespace,
2183 DW_TAG_imported_declaration, DW_TAG_imported_module.
2184 (read_namespace): New function.
2185
1045b512
JB
21862002-10-22 Joel Brobecker <brobecker@gnat.com>
2187
2188 * configure.in: Define NEW_PROC_API on Interix too.
2189 * configure: Regenerate.
2190
21912002-10-21 Joel Brobecker <brobecker@gnat.com>
8ec41317
JB
2192
2193 * configure: Regenerate using the proper version of autoconf.
2194
3987b9d4
EZ
21952002-10-21 Elena Zannoni <ezannoni@redhat.com>
2196
2197 * findvar.c (read_var_value): Temporarily disable TLS code, until
2198 complete TLS support is added.
2199
9d774e44
EZ
22002002-10-21 Jim Blandy <jimb@redhat.com>
2201 Elena Zannoni <ezannoni@redhat.com>
2202
2203 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
2204 for thread local storage locations.
2205 (struct symbol): Add objfile field.
2206 (SYMBOL_OBJFILE): Define.
2207 * dwarf2read.c (is_thread_local): New static variable.
2208 (new_symbol): If variable is in thread local fill in address class
2209 and objfile appropriately.
2210 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
2211 stack operation.
2212 * printcmd.c (address_info): Print the information for thread
2213 local storage variable.
2214 * findvar.c (read_var_value): In case of thread local variable,
2215 defer to the target vector code to compute address.
2216
bc4a16ae
EZ
22172002-10-21 Elena Zannoni <ezannoni@redhat.com>
2218
2219 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
2220 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
2221
407caf07
EZ
22222002-10-21 Elena Zannoni <ezannoni@redhat.com>
2223
2224 * symtab.h (address_class): Rename
2225 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
2226 * hpread.c (hpread_process_one_debug_symbol): Ditto.
2227 * printcmd.c (address_info): Ditto.
2228 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
2229
005328e3
MK
22302002-10-20 Mark Kettenis <kettenis@gnu.org>
2231
afdb036a
MK
2232 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
2233 DBREG_DRX macro to acces debug registers.
2234
ca02e098
MK
2235 * Makefile.in (i386obsd-tdep.o): New target.
2236
03cc47f7
MK
2237 * solib-sunos.c: Include "bcache.h" and "regcache.h".
2238 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
2239
005328e3
MK
2240 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
2241 * config/i386/obsd.mt: New file.
2242 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
2243 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
2244 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
2245 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
2246 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
2247 * i386obsd-tdep.c: New file.
2248
9c96f9f2
AF
22492002-10-19 Adam Fedor <fedor@gnu.org>
2250
2251 * objc-exp.y (name_not_typename): Fix invalid comment.
2252
ce1ed485
MK
22532002-10-20 Mark Kettenis <kettenis@gnu.org>
2254
2255 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
2256 to allocate partial syms and macro byte caches.
2257
1efc7aaa
DC
22582002-10-18 David Carlton <carlton@math.stanford.edu>
2259
2260 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
2261
7e1d63ec
AF
22622002-10-18 Adam Fedor <fedor@gnu.org>
2263
2264 * stabsread.c (find_name_end): New function.
2265 (define_symbol): Use it.
2266
6e8d29a9
DJ
22672002-10-18 Daniel Jacobowitz <drow@mvista.com>
2268
2269 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2270 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2271 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2272 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2273
1efc7aaa 22742002-10-17 David Carlton <carlton@math.stanford.edu>
63ca651f
DC
2275
2276 * symfile.h: Add opaque declaration for struct obstack.
2277 Declare obsavestring to take a const char *.
2278 * symfile.c (obsavestring): Make first argument a const char *.
2279
1aeae86e
AF
22802002-10-16 Adam Fedor <fedor@gnu.org>
2281
2282 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
2283 names when matching breakpoints in current file.
2284
8b2dbe47
KB
22852002-10-16 Kevin Buettner <kevinb@redhat.com>
2286
2287 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
2288 (read_tag_pointer_type): Add address class support.
2289 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
2290 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
2291 New methods.
2292 * gdbarch.h, gdbarch.c: Regenerate.
2293 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
2294 (make_type_with_address_space, recursive_type_dump): Add address
2295 class support.
2296 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
2297 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
2298 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
2299
74451869
KD
23002002-10-16 Klee Dienes <kdienes@apple.com>
2301
2302 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
2303 to get the last character of a char[] buffer, not
2304 name[sizeof(vptr_name)-1].
2305
ff4cb3e8
AF
23062002-10-14 Adam Fedor <fedor@gnu.org>
2307
2308 * symtab.h: New objc_specific struct.
2309 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
2310 (SYMBOL_DEMANGLED_NAME): Likewise.
2311
da2cf7e0
AF
23122002-10-14 Adam Fedor <fedor@gnu.org>
2313
2314 * symfile.c (init_filename_language_table): Add ObjC file extension.
2315
4a351cef
AF
23162002-10-14 Adam Fedor <fedor@gnu.org>
2317
2318 * utils.c (puts_filtered_tabular): New function.
2319 (fprintf_symbol_filtered): Get ObjC demangled name.
2320 * defs.h (puts_filtered_tabular): Declared.
2321
9750e763
KB
23222002-10-14 Kevin Buettner <kevinb@redhat.com>
2323
2324 * c-lang.h (c_type_print_varspec_prefix): Delete.
2325 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
2326 ``need_post_space'' parameter. Adjust all callers.
2327
eee771c1
DJ
23282002-10-14 Daniel Jacobowitz <drow@mvista.com>
2329
2330 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
2331 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2332 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2333 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2334
46c82446
AF
23352002-10-13 Adam Fedor <fedor@gnu.org>
2336
2337 * source.c (print_source_lines): Update comments.
2338
d069f99d
AF
23392002-10-13 Adam Fedor <fedor@gnu.org>
2340
2341 * valops.c (value_of_local): New function.
2342 (value_of_this): Use it.
2343 * value.h (value_of_local): Declared.
2344
53c551b7
AF
23452002-10-13 Adam Fedor <fedor@gnu.org>
2346
2347 * parse.c: (length_of_subexp, prefixify_subexp): Handle
2348 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
2349
eb392fbf
AF
23502002-10-12 Adam Fedor <fedor@gnu.org>
2351
2352 * language.c (binop_result_type): Add language_objc to case.
2353 (integral_type): Likewise.
2354 (character_type): Likewise.
2355 (string_type): Likewise.
2356 (boolean_type): Likewise.
2357 (structured_type): Likewise.
2358 (binop_type_check): Likewise.
2359
e2b23ee9
AF
23602002-10-11 Adam Fedor <fedor@gnu.org>
2361
2362 * printcmd.c (address_info): Print 'self' for ObjC.
2363
b01ab485
AF
23642002-10-11 Adam Fedor <fedor@gnu.org>
2365
2366 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
2367 OP_SELF.
2368
806e6073
AF
23692002-10-11 Adam Fedor <fedor@gnu.org>
2370
2371 * language.h (CAST_IS_CONVERSION): Add language_objc.
2372
50f85cdf
AF
23732002-10-11 Adam Fedor <fedor@gnu.org>
2374
2375 * defs.h (enum language): Add language_objc.
2376
0d540cdf
KD
23772002-10-11 Klee Dienes <kdienes@apple.com>
2378
69266111 2379 * corefile.c (read_memory_typed_address): New function.
0d540cdf
KD
2380 * gdbcore.h (read_memory_typed_address): Add prototype.
2381 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
2382 to read a value destined for a CORE_ADDR, not read_memory_integer.
2383 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
2384 (f77_get_dynamic_lowerbound): Ditto.
2385
d5dc7960
MH
23862002-10-11 Martin M. Hunt <hunt@redhat.com>
2387
2388 * utils.c (string_to_core_addr): After turning string into
2389 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
2390 which will do necessary sign-extension, etc.
2391
8343f86c
DJ
23922002-10-11 Daniel Jacobowitz <drow@mvista.com>
2393
2394 * c-exp.y (THIS): Delete token and grammar rule.
2395 (yylex): Don't return THIS.
2396 * cp-valprint.c (vtbl_ptr_name_old): Delete.
2397 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
2398 * demangle.c (cplus_markers): Update comment. Put '$'
2399 first. Remove CPLUS_MARKER.
2400 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
2401 * jv-exp.y (THIS): Delete token and grammar rule.
2402 (yylex): Don't return THIS.
2403 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
2404 * objc-exp.y (THIS): Delete token and grammar rule.
2405 (yylex): Don't return THIS.
2406 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
2407 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
2408 (read_member_functions): Likewise for opname.
2409 (read_tilde_fields): Use is_cplus_marker.
2410
2411 * defs.h (CPLUS_MARKER): Don't define.
2412 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
2413 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
2414 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
2415 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
2416 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
2417
2418 * config/i386/tm-i386v4.h: Delete file.
2419 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
2420 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
2421 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
2422 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
2423 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
2424 * config/i386/i386sco5.mt (TM_FILE): Likewise.
2425 * config/i386/i386v4.mt (TM_FILE): Likewise.
2426 * config/i386/ncr3000.mt (TM_FILE): Likewise.
2427
967c0d83
MM
24282002-10-10 Marko Mlinar <markom@opencores.org>
2429
2430 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
2431 accidentially not commited 2002-10-09
2432 * gdbarch.h, gdbarch.c: Re-generate.
2433
f74fa174
MM
24342002-10-09 Marko Mlinar <markom@opencores.org>
2435
2436 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
2437 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
2438 * gdbarch.h, gdbarch.c: Re-generate.
2439
57349743
JB
24402002-10-08 Petr Sorfa <petrs@caldera.com>
2441
2442 Revised and re-submitted by John Wolfe <jlw@caldera.com>
2443
2444 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
2445 so we can work on more than one compilation unit at a time. This
2446 helps prepare GDB to handle inter-CU die references.
2447 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
2448 the code to be defined before struct comp_unit_head.
2449 (comp_unit_head): Added new members - offset, cu_head,
2450 begin_die, next and dwarf2_abbrevs.
2451 (dwarf2_abbrevs): Removed single static var; now member of
2452 struct comp_unit_head.
2453 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
2454 members.
2455 (psymtab_to_symtab_1): Changed to work with the new
2456 struct comp_unit_head.
2457 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
2458 constructs the dwarf2_abbrevs[] inside the cu_header.
2459 (dwarf2_empty_abbrev_table): Now expects a ptr to a
2460 dwarf2_abbrev table to clean up.
2461 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
2462 handling of dwarf2_abbrevs inside the cu_header.
2463 (read_partial_die): Now supports the call to the new
2464 dwarf2_lookup_abbrev.
2465 (read_full_die): Now supports the call to the new
2466 dwarf2_lookup_abbrev.
2467
4092aadb
CF
24682002-10-06 Christopher Faylor <cgf@redhat.com>
2469
2470 * Makefile.in (install-gdbtk): Add missing continuation backslash to
2471 insure that shell variables, such as "transformed_name" are propagated
2472 to later shell statements in rule.
2473
af0b2512
MK
24742002-10-06 Mark Kettenis <kettenis@gnu.org>
2475
2476 * config/i386/nm-i386sco.h: Add protection against
2477 multiple-inclusion. Include "i386/nm-i386v.h".
2478 (REGISTER_U_ADDR): Remove define.
2479 (i386_register_u_addr): Remove prototype.
2480
d6020d45
MS
24812002-10-04 Michael Snyder <msnyder@redhat.com>
2482
2483 * m32r-stub.c (handle_exception): Make sure exception is "trap"
2484 before treating it as a single-step event.
2485
7248f48e
AF
24862002-10-03 Adam Fedor <fedor@gnu.org>
2487
2488 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
2489 (objc_demangle): Remove assignment in if statements, Replace
2490 free with xfree.
2491 (add_msglist): Likewise.
2492 (end_msglist): Likewise.
2493 (complare_selectors): Likewise.
2494 (selectors_info): Likewise.
2495 (compare_classes): Likewise.
2496 (classes_info): Likewise.
2497 (print_object_command): Likewise.
2498 (find_objc_msgcall_submethod): Replace PTR with void *.
2499 * objc-lang.h: Remove check for __STDC__.
2500
52c6a6ac
JJ
25012002-10-03 Jeff Johnston <jjohnstn@redhat.com>
2502
2503 * ui-out.h (ui_out_field_fmt_int): New prototype.
2504 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
2505 of field width and alignment.
2506 * stack.c (print_frame_info_base): When printing frame level, use
2507 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
2508 PR gdb/192
2509
7e3cec17
JJ
25102002-10-03 Jeff Johnston <jjohnstn@redhat.com>
2511
2512 * MAINTAINERS: Add self to Write After Approval list.
2513
a58dd373
EZ
25142002-10-02 Elena Zannoni <ezannoni@redhat.com>
2515
2516 * infcmd.c (interrupt_target_command_wrapper): Delete.
2517 (interrupt_target_command): Make non static.
2518 (nofp_registers_info): Make static.
2519 * stack.c (return_command_wrapper): Delete.
2520 (return_command): Make non static.
2521
cee6ddeb
EZ
25222002-10-02 Elena Zannoni <ezannoni@redhat.com>
2523
2524 * event-top.c (gdb_setup_readline): New function. Code moved from
2525 _initialize_event_loop().
2526 (_initialize_event_loop): Call gdb_setup_readline().
2527
c4ed33b9
AC
25282002-10-02 Andrew Cagney <ac131313@redhat.com>
2529
2530 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
2531 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
2532 * gdbarch.h, gdbarch.c: Re-generate.
2533
cef4f5dd
DJ
25342002-10-02 Daniel Jacobowitz <drow@mvista.com>
2535
2536 Fix PR gdb/778
2537 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
2538 before recursing.
2539 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
2540 of fill_in_vptr_fieldno.
2541
36dc181b 25422002-10-02 Elena Zannoni <ezannoni@redhat.com>
cee6ddeb 2543
36dc181b
EZ
2544 * inferior.h (registers_info, stepi_command, nexti_command,
2545 continue_command, interrupt_target_command): Export from infcmd.c.
2546 * frame.h (args_info, selected_frame_level_changed_hook,
2547 return_command): Export from stack.c.
2548 * v850ice.c (stepi_command, nexti_command, continue_command): use
2549 prototypes from inferior.h.
2550 * tracepoint.c (registers_info, args_info, locals_info): Use
2551 prototypes from frame.h and inferior.h.
2552 * Makefile.in (mi-main.o): Add dependency on frame.h.
2553
6f99cb26
AC
25542002-10-02 Andrew Cagney <ac131313@redhat.com>
2555
da3eff49
AC
2556 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
2557 value in register 3 adjusted by ppc_gp0_regnum.
2558
6f99cb26
AC
2559 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
2560
da615bee
MM
25612002-10-02 Marko Mlinar <markom@opencores.org>
2562
2563 * MAINTAINERS: Add myself to the Write After Approval list.
2564
d154bee2
AO
25652002-10-01 Alexandre Oliva <aoliva@redhat.com>
2566
62a49b2c
AO
2567 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
2568 of the section for the N64 ABI, fixed.
2569
d154bee2
AO
2570 * config/mips/tm-irix6.h: Include solib.h.
2571
ed348acc
EZ
25722002-10-01 Elena Zannoni <ezannoni@redhat.com>
2573
2574 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
2575 GNU operators.
2576
da0f9dcd
AC
25772002-10-01 Andrew Cagney <ac131313@redhat.com>
2578
2579 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
2580 and that "mi0" syntax has been removed.
2581
bdf64bac
DC
25822002-09-30 David Carlton <carlton@math.stanford.edu>
2583
2584 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
2585 * ppc-sysv-tdep.c: #include "gdb_string.h".
2586 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
2587 pacify GCC.
2588
54c2a1e6
AC
25892002-10-01 Andrew Cagney <ac131313@redhat.com>
2590
2591 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
2592 "vrsave"'s register number.
2593
cedea778
AC
25942002-09-30 Andrew Cagney <ac131313@redhat.com>
2595
2596 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
2597 use frame_unwind_signed_register to obtain the PC.
2598 (mips_frame_chain): Handle a generic dummy frame.
2599 (mips_init_extra_frame_info): When a generic dummy frame, don't
2600 re-compute the frame base.
2601 (mips_pop_frame): Handle generic dummy frames.
2602 (mips_gdbarch_init): When generic dummy frames, set
2603 use_generic_dummy_frames, push_dummy_frame to
2604 generic_push_dummy_frame, pc_in_call_dummy to
2605 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
2606 generic_save_dummy_frame_tos.
2607
68315eb8
AC
26082002-09-30 Andrew Cagney <ac131313@redhat.com>
2609
2610 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
2611 against TOP when TOP was explictly set.
2612 (generic_push_dummy_frame): Set TOP to zero.
2613
3b8630c3
EZ
26142002-09-30 Elena Zannoni <ezannoni@redhat.com>
2615
2616 * event-loop.c (start_event_loop): Rename variable 'result' to
2617 'gdb_result', to avoid conflicts with upcoming intepreters changes.
2618
28ee05e9
KS
26192002-09-30 Keith Seitz <keiths@redhat.com>
2620
2621 * gdb-events.sh (selected_thread_changed): New event.
2622 * gdb-events.c: Regenerated.
2623 * gdb-events.h: Regenerated.
2624
6eecb1c8
HPN
26252002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
2626
2627 * MAINTAINERS: Add self to Write After Approval list.
2628
92df71f0
FN
26292002-09-30 Fernando Nasser <fnasser@redhat.com>
2630
3b8630c3
EZ
2631 * disasm.c: New file.
2632 * disasm.h: New file.
92df71f0
FN
2633 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
2634 (compare_lines): Ditto.
2635 (dump_insns): Ditto.
3b8630c3
EZ
2636 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
2637 argument.
92df71f0 2638 (do_assembly_only): Ditto.
3b8630c3
EZ
2639 (do_disassembly): Renamed to gdb_disassembly and moved to
2640 disasm.c. Sdded uiout argument.
2641 * Makefile.in: Add new files. Reorder SFILES list. Update
2642 dependencies. Include libgdb.a later in the insight executable.
92df71f0 2643
0c22854d
AC
26442002-09-29 Andrew Cagney <ac131313@redhat.com>
2645
2646 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
2647 bfd/elf64-alpha-fbsd.c.
2648
e67f2023
AC
26492002-09-29 Andrew Cagney <ac131313@redhat.com>
2650
2651 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
2652 i386gnu-tdep.c.
2653
89396210
AC
26542002-09-29 Andrew Cagney <ac131313@redhat.com>
2655
2656 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
2657 __FUNCTION__.
2658 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
2659 function name.
2660 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
2661 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
2662 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
2663 (S_msg_sig_post_reply): Ditto.
2664
7079c36c
CV
26652002-09-28 Corinna Vinschen <vinschen@redhat.com>
2666
89396210
AC
2667 * sh-tdep.c (sh_use_struct_convention): Use definition according
2668 to ABI.
7079c36c
CV
2669 (sh_push_arguments): Store in register with correct endianess.
2670 (sh_default_store_return_value): Ditto.
2671 (sh_gdbarch_init): Set sizeof long double to 8.
2672
975ac915
MK
26732002-09-27 Mark Kettenis <kettenis@gnu.org>
2674
2675 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
2676 Fix some whitespace problems.
2677
9bbe19fb
DC
26782002-09-27 David Carlton <carlton@math.stanford.edu>
2679
2680 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
2681 (mcore-tdep.o): Ditto.
2682 (ns32k-tdep.o): Ditto.
2683 (ns32knbsd-tdep.o): Ditto.
2684 (sh3-rom.o): Ditto.
2685 (vax-tdep.o): Ditto.
2686 * cris-tdep.c: #include "gdb_string.h"
2687 * mcore-tdep.c: Ditto.
2688 * ns32k-tdep.c: Ditto.
2689 * ns32knbsd-tdep.c: Ditto.
2690 * sh3-rom.c: Ditto.
2691 * vax-tdep.c: Ditto.
2692
43b2fdc7
DC
26932002-09-27 David Carlton <carlton@math.stanford.edu>
2694
2695 * config/djgpp/fnchange.lst: Add entries for
2696 gdb/testsuite/gdb.c++/m-static files.
2697
e8cfbbd9
JW
26982002-09-27 Jim Wilson <wilson@redhat.com>
2699
2700 * MAINTAINERS: Add myself to the Write After Approval list.
2701
43b2fdc7 27022002-09-26 Martin M. Hunt <hunt@redhat.com>
4e0df2df
MH
2703
2704 * mips-tdep.c (find_proc_desc): Initialize startaddr.
2705
2706
9f3b7f07
AC
27072002-09-26 Andrew Cagney <ac131313@redhat.com>
2708
2709 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
2710 frame.
2711
11269d7e
AC
27122002-09-26 Andrew Cagney <ac131313@redhat.com>
2713
2714 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
2715 (rs6000_struct_return_address): Delete variable.
2716 (rs6000_store_struct_return): Update.
2717 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
2718 deprecated_extract_struct_value_address.
2719 (rs6000_frame_align): New function.
2720 (rs6000_gdbarch_init): Set frame_align.
2721
f15ab4a7
AC
27222002-09-26 Andrew Cagney <ac131313@redhat.com>
2723
2724 From Grace Sainsbury <graces@redhat.com>:
2725 * Makefile.in (gdbtk-main.o): New target.
2726 (gdb.o): New target.
2727 (main_h): Define.
2728 (main.o): Update dependencies.
2729 (gdb$(EXEEXT)): Add gdb.o.
2730 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
2731 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
2732 (SUBDIR_GDBTK_CLEAN): Set.
2733 (install-gdbtk): Install the insight binary.
2734 (uninstall-gdbtk): New target.
2735 (all-gdbtk, clean-gdbtk): New rule.
2736 * top.c (use_windows): Default to zero.
2737 * main.c: Include "main.h".
2738 (main): Delete.
2739 (struct captured_main_args): Delete.
2740 (gdb_main): New function.
2741 * main.h: New file.
2742 * gdb.c: New File.
2743
e36180d7
AC
27442002-09-25 Andrew Cagney <cagney@redhat.com>
2745
2746 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
2747 (frame_map_regnum_to_name): New function.
2748 (frame_map_name_to_regnum): New function.
2749 * frame.h (frame_map_name_to_regnum): Declare.
2750 (frame_map_regnum_to_name): Declare.
2751 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
2752 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
2753 * parse.c: Do not include "builtin-regs.h".
2754 (target_map_name_to_register): Delete function.
2755 (write_dollar_variable): Use frame_map_name_to_regnum.
2756 * parser-defs.h (target_map_name_to_register): Delete declaration.
2757 * expprint.c: Include "frame.h".
2758 (print_subexp): Use frame_map_regnum_to_name.
2759 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
2760 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
2761
8b69000d
AC
27622002-09-25 Andrew Cagney <ac131313@redhat.com>
2763
2764 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
2765 wasn't saved, and the next innermost frame is a dummy, return the
2766 dummy frame's link register.
2767
046ca86a
JB
27682002-09-24 Jim Blandy <jimb@redhat.com>
2769
2770 Fix from Paul Breed:
2771 * main.c (captured_main): Add a `break' after the case for 'b'.
2772
94b66fa7
KS
27732002-09-24 Keith Seitz <keiths@redhat.com>
2774
2775 * varobj.c (c_type_of_child): Use get_target_type instead
2776 of TYPE_TARGET_TYPE.
2777
c214a6fd
FN
27782002-09-22 Fernando Nasser <fnasser@redhat.com>
2779
53cb0458
FN
2780 * source.c (get_current_or_default_source_symtab_and_line): Remove
2781 function.
2782 (set_default_source_symtab_and_line): New function. Attempts to
2783 determine a source file to list lines from if one is not currently
2784 defined.
2785 (get_current_source_symtab_and_line): Initialize sal.pc and
2786 sal.end fields.
2787 (set_current_source_symtab_and_line): Mark argument as const.
2788 * source.h: Update declarations and comments.
2789 * linespec.c (decode_line_1): Replace call to removed routine above.
2790 * stack.c (print_frame_info_base): Ditto.
2791 * cli/cli-cmds.c (edit_command): Ditto.
2792 (list_command): Ditto.
2793
27942002-09-22 Fernando Nasser <fnasser@redhat.com>
2795
d6020d45 2796 * source.c (get_current_or_default_source_symtab_and_line): Initialize
53cb0458 2797 sal.pc and sal.end fields.
c214a6fd
FN
2798 (get_current_or_default_source_symtab_and_line): Ditto.
2799 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
2800 so we do not cause a new source symtab to be searched for (reverting an
2801 unintentional change from the 2002-09-20 patch).
2802 * scm-lang.c (scm_unpac): Ditto.
2803
cc3b68a5
AC
28042002-09-21 Andrew Cagney <cagney@redhat.com>
2805
2806 * complaints.c (symfile_explanations): Remove new-line from
2807 ``isolated_message''.
2808 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
2809 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
2810
5835abe7
NC
28112002-09-20 Nick Clifton <nickc@redhat.com>
2812
2813 * NEWS: Announce that V850EA ISA is no longer supported.
2814 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
2815
a15ef5f5
DC
28162002-09-20 David Carlton <carlton@math.stanford.edu>
2817
06ba1b39
DC
2818 * Makefile.in (c-lang.o): Correct dependencies.
2819 (utils.o): Gather dependencies.
2820 (charset.o): Move.
a15ef5f5
DC
2821 * c-lang.c: #include "gdb_string.h"
2822
87885426
FN
28232002-09-20 Fernando Nasser <fnasser@redhat.com>
2824
2825 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
2826 * cli/cli-cmds.c (list_command): New function. Implements the new
2827 cli edit command.
2828 (_init_cli_cmds): Add new command definition.
2829 * gdb.1: Document edit command.
2830 * doc/gdb.texinfo: Document edit command.
2831
28322002-09-20 Fernando Nasser <fnasser@redhat.com>
0378c332
FN
2833
2834 * source.c: Make global variables current_source_symtab and
2835 current_source_line static.
2836 (list_command): Moved to cli/cli-cmds.c.
2837 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
2838 (get_first_line_listed): New accessor function.
2839 (get_lines_to_list): New accessor function.
2840 (get_current_source_symtab_and_line): New function. Retrieves the
2841 position in the source code that we consider current.
2842 (get_current_or_default_source_symtab_and_line): New function.
2843 Like the above but attempts to determine a default position if one
2844 is not currently defined.
2845 (set_current_source_symtab_and_line): New function. Sets the source
2846 code position considered current and returns the previously set one.
2847 (clear_current_source_symtab_and_line): Reset stored information about
2848 a current source line.
2849 (_initialize_source): Remove registration for the "list" command and
2850 its alias.
2851 * source.h: Add declarations for the new functions above.
2852 * symtab.h: Remove declarations for the global variables mentioned
2853 above.
2854 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
2855 obtain current source line.
2856 * linespec.c (decode_line_1): Ditto.
2857 * macroscope.c (default_macro_scope): Ditto.
2858 * scm-lang.c (scm_unpac): Ditto.
2859 * stack.c (print_frame_info_base): Ditto.
2860 * symfile.c (clear_symtab_users): Ditto.
2861 * symtab.c (decode_line_spec): Ditto.
2862 * cli/cli-cmds.c (list_command): Moved here from source.c.
2863 (ambiguous_line_spec): Moved here from source.c.
2864 (_init_cli_cmds): Add definition for "list" and its alias.
2865 * Makefile.in: Update dependencies.
2866
ddd216ea
CV
28672002-09-20 Corinna Vinschen <vinschen@redhat.com>
2868
2869 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
2870 with what gcc thinks is correct.
2871
6d305052
CV
28722002-09-20 Corinna Vinschen <vinschen@redhat.com>
2873
2874 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
2875 multiple register push instruction.
2876
234b45d4
KB
28772002-09-19 Jim Blandy <jimb@redhat.com>
2878
2879 Add support for distinct host and target character sets.
2880 * charset.c, charset.h: New files.
2881 * c-exp.y: #include "charset.h".
2882 (yylex): Convert character and string literals to the target
2883 character set, before returning them as the semantic value of the
2884 token.
2885 * c-lang.c: #include "charset.h".
2886 (c_emit_char): Use charset-specific methods to recognize
2887 characters with backslash escape forms, to decide which characters
2888 to print literally and which to print using numeric escape
2889 sequences, and to convert target characters to host characters
2890 before printing.
2891 * utils.c: #include "charset.h".
2892 (no_control_char_error): New function.
2893 (parse_escape): Use charset-specific methods to recognize
2894 backslash escapes, parse `control character' notation, and convert
2895 characters from the host character set to the target character set.
2896 * configure.in: Set the default host character set.
2897 Check where to find iconv, and what its argument types might be.
2898 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
2899 * Makefile.in (SFILES): List charset.c.
2900 (COMMON_OBS): List charset.o.
2901 (charset.o): New rule.
2902 (charset_h): New header dependency variable.
2903 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
2904 (LIBICONV): New variable, set by configure.
2905 (CLIBS): Include $(LIBICONV) here.
2906 * aclocal.m4, config.in, configure: Regenerated.
2907
525d6a61
JB
29082002-09-19 Joel Brobecker <brobecker@gnat.com>
2909
2910 * ada-exp.y: Add missing semicolons to end rules. Fixes a
2911 bison 1.35 warning.
2912
3ed93867
RE
29132002-09-19 Richard Earnshaw <rearnsha@arm.com>
2914
2915 * gdb_mbuild.sh: New file.
2916
437666f8
AC
29172002-09-19 Andrew Cagney <ac131313@redhat.com>
2918
2919 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
2920
389e51db
AC
29212002-09-18 Andrew Cagney <ac131313@redhat.com>
2922
2923 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
2924 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
2925 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
2926 valops.c, value.h: Revert previous change.
2927
3b4efeaa
MS
29282002-09-18 Michael Snyder <msnyder@redhat.com>
2929
2930 Preliminary support for Objective-C:
2931 * defs.h (language_objc): New enum value.
2932 (puts_filtered_tabular): Declaration only, exported from utils.c.
2933 (skip_quoted): Delete, declared in completer.h.
2934 * c-exp.y: Include completer.h.
2935 * p-exp.y: Ditto.
2936 * jv-exp.y: Ditto.
2937 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
2938 New operator enum values.
2939 * language.h (CAST_IS_CONVERSION): Test for language_objc.
2940 * language.c (binop_result_type): Handle language_objc case.
2941 (integral_type, character_type, string_type, boolean_type,
2942 structured_type, binop_type_check): Ditto.
2943 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
2944 (struct objc_specific): Add to general_symbol_info.
2945 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
2946 (SYMBOL_DEMANGLED_NAME): Handle objc case.
2947 * parser-defs.h (struct objc_class_str): New struct type.
2948 (start_msglist, end_msglist, add_msglist): Declaration only,
2949 exported from objc-lang.c.
2950 * value.h (value_of_local, value_nsstring,
2951 call_function_by_hand_expecting_type): Exported from valops.c.
2952 * valops.c (find_function_addr): Export.
2953 (call_function_by_hand_expecting_type): New function.
2954 (value_of_local): New function.
2955 * symfile.c (init_filename_language_table): Add ".m" extension
2956 for Objective-C.
2957 * utils.c (puts_filtered_tabular): New function.
2958 (fprintf_symbol_filtered): Add objc demangling support (disabled).
2959 (set/show demangle): Extend help-string to refer to ObjC.
2960 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
2961 * stabsread.c (symbol_reference_defined): Objective-C symbols
2962 may contain colons: make allowances when scanning stabs strings
2963 for colons.
2964 (objc_find_colon): New function.
2965 * printcmd.c (address_info): If language == objc then print
2966 "self" instead of "this".
2967 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
2968 OP_NSSTRING, and OP_SELF.
2969 (prefixify_subexp): Ditto.
2970 * source.c (print_source_lines): Mention objc in comment.
2971 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
2972 method names.
2973
b9caf505
AC
29742002-09-18 Andrew Cagney <ac131313@redhat.com>
2975
2976 * complaints.h: Update copyright.
2977 (struct complaints): Declare.
2978 (struct complaint): Make `message' constant.
2979 (internal_complaint): Declare.
2980 (complaint): Declare.
2981 (complaint_root): Delete declaration.
2982 (symfile_complaints): Delete declaration.
2983 (struct complaints): Add opaque declaration.
2984 (clear_complaints): Add a complaints parameter.
2985 * complaints.c: Update copyright.
2986 (enum complaint_series): Define.
2987 (complaint_root): Delete.
2988 (struct complaints): Define.
2989 (complaint_sentinel, symfile_complaint_book): New variables.
2990 (symfile_explanations, symfile_complaints): New variables.
2991 New variables.
2992 (get_complaints): New function.
2993 (vcomplaint): New function.
2994 (complaint): New function.
2995 (internal_complaint): New function.
2996 (complain): Call vcomplain with symfile_complaint.
2997 (clear_complaints): Rewrite.
2998 (_initialize_complaints): Use add_setshow_command.
2999 * Makefile.in (complaints.o): Update dependencies.
3000 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
3001 to call to clear_complaints.
3002 (new_symfile_objfile, reread_symbols): Ditto.
3003 (oldsyms_complaint): Delete.
3004 (empty_symtab_complaint, unknown_option_complaint): Delete.
3005 (free_named_symtabs): Use complaint instead of complain.
3006
d2e6263c
MS
30072002-09-18 Michael Snyder <msnyder@redhat.com>
3008
5fb2031a
AC
3009 Contributed by Apple Computer, Inc. Merged with current sources
3010 by Adam Fedor <fedor@doc.com> [cagney].
3011
d2e6263c
MS
3012 * objc-lang.c: First clean-up round: comments, indentation.
3013 * objc-lang.h: Ditto.
3014 * objc-lang.y: Ditto.
3015
dec43320
AC
30162002-09-18 Andrew Cagney <ac131313@redhat.com>
3017
3018 * maint.c (maintenance_internal_error): Print the parameter as the
3019 error message.
3020 (maintenance_internal_warning): New function.
3021 (_initialize_maint_cmds): Add command `maint internal-warning'.
3022
3023 * defs.h (internal_warning, internal_vwarning): Declare.
3024 * utils.c (struct internal_problem): Define.
3025 (internal_vproblem): New function.
3026 (internal_warning): New function.
3027 (internal_vwarning): New function.
3028 (internal_warning_problem, internal_error_problem): New variables.
3029 (internal_verror): Just call internal_vproblem.
3030
b81654f1
MS
30312002-09-18 Michael Snyder <msnyder@redhat.com>
3032
3033 * objc-lang.c: New file, support for Objective-C.
3034 Preliminary check-in, not yet integrated into gdb.
3035 * objc-lang.h: New file.
3036 * objc-exp.y: New file.
3037
0542c381
AC
30382002-09-18 Andrew Cagney <ac131313@redhat.com>
3039
7bda5e4a
AC
3040 * infrun.c (signal_stop_update): Convert definition to ISO C.
3041 (signal_print_update): Ditto.
3042 (signal_pass_update): Ditto.
3043 * inflow.c (terminal_save_ours): Ditto.
3044
5247b418
AC
3045 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
3046 comments.
3047
fc60962c
AC
3048 * config/djgpp/fnchange.lst: Handle name clashes between
3049 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
3050 bfd/coff-tic80.c.
3051
0542c381
AC
3052 * i386-linux-tdep.h: Fix tipo.
3053
5b924b9b
AF
30542002-09-18 Adam Fedor <fedor@gnu.org>
3055
3056 * MAINTAINERS: Add myself to the Write After Approval list.
3057
5afc051b
JB
30582002-09-18 Jim Blandy <jimb@redhat.com>
3059
3060 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
3061 texthigh and textlow to reader-specific structs caused
3062 objfile_relocate to miss them. This is fixable, but the work that
3063 the change was supposed to prepare GDB for never got done anyway.
3064
eb944380
DC
30652002-09-18 David Carlton <carlton@math.stanford.edu>
3066
3067 * MAINTAINERS: Alphabetize Write After Approval list.
3068
948e66d9
DJ
30692002-09-18 Daniel Jacobowitz <drow@mvista.com>
3070
3071 Fix PR gdb/709
3072 * values.c (value_static_field): Call read_var_value.
3073
dc604539
AC
30742002-09-18 Andrew Cagney <ac131313@redhat.com>
3075
3076 * valops.c (hand_function_call): Align the initial stack pointer
3077 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
3078 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
3079 return value.
3080 * mips-tdep.c (mips_frame_align): New function.
3081 (mips_gdbarch_init): Set frame_align.
3082 * gdbarch.sh (FRAME_ALIGN): New method.
3083 * gdbarch.h, gdbarch.c: Re-generate.
3084
cb7e422f
ML
30852002-09-18 Michal Ludvig <mludvig@suse.cz>
3086
3087 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
3088 registers.
3089
a094c6fb
AC
30902002-09-17 Andrew Cagney <ac131313@redhat.com>
3091
3092 * NEWS: Mention that MIPS $fp behavior changed.
3093 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
3094 reference to FP_REGNUM.
3095 (mipsnbsd_cannot_store_register): Ditto.
3096 * mips-linux-nat.c: Update copyright.
3097 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
3098 (mips_linux_cannot_store_register): Ditto.
3099 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
3100 * config/mips/tm-mips.h: Update copyright.
3101 (FP_REGNUM): Delete macro.
3102 (MIPS_REGISTER_NAMES): Replace "fp" with "".
3103 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
3104 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
3105 (mips_r3041_reg_names, mips_r3051_reg_names)
3106 (mips_r3081_reg_names): Replace "fp" with "".
3107 Fix PR gdb/480.
3108
45cf40d1
TR
31092002-09-17 Theodore A. Roth <troth@verinet.com>
3110
3111 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
3112 generic_read_register_dummy() (PR gdb/703).
3113 (avr_push_return_address): #if 0 out unused vars.
3114 (avr_gdbarch_init): Enable use of avr_push_return_address().
3115
c7e701b5
MS
31162002-09-17 Michael Snyder <msnyder@redhat.com>
3117
d76ba2a5 3118 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
c7e701b5
MS
3119 RTE will take care of it.
3120
20bcf01c
AC
31212002-09-17 Andrew Cagney <ac131313@redhat.com>
3122
3123 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
3124 invalid, return SP_REGNUM.
3125
009a9971 31262002-09-17 Michael Snyder <msnyder@redhat.com>
21f87145
MS
3127
3128 * mips-tdep.c (mips_pop_frame): Read saved values of floating
3129 point registers without sign extension.
3130
135c175f
AC
31312002-09-17 Andrew Cagney <cagney@redhat.com>
3132
3133 * blockframe.c (deprecated_read_register_dummy): Rename
3134 generic_read_register_dummy.
3135 * frame.c (frame_unwind_signed_register): New function.
3136 (frame_unwind_unsigned_register): New function.
3137 * frame.h (frame_unwind_signed_register): Declare.
3138 (frame_unwind_unsigned_register): Declare.
3139 (deprecated_read_register_dummy): Rename
3140 generic_read_register_dummy.
3141
3142 * h8300-tdep.c (h8300_frame_chain): Update.
3143 (h8300_frame_saved_pc): Update.
3144 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
3145 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
3146 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
3147 (s390_frame_chain): Update.
3148 * v850-tdep.c (v850_find_callers_reg): Update.
3149 (v850_frame_saved_pc): Update.
3150 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
3151 (m32r_find_callers_reg): Update.
3152 (m32r_frame_saved_pc): Update.
3153 * sh-tdep.c (sh_find_callers_reg): Update.
3154 (sh64_get_saved_pr): Update.
3155 (sh_init_extra_frame_info): Update.
3156 (sh_init_extra_frame_info): Update.
3157 (sh64_init_extra_frame_info): Update.
3158 (sh64_init_extra_frame_info): Update.
3159 * mcore-tdep.c (mcore_find_callers_reg): Update.
3160 (mcore_frame_saved_pc): Update.
3161 (mcore_init_extra_frame_info): Update.
3162 * i386-tdep.c (i386_frame_saved_pc): Update.
3163 * ia64-tdep.c (ia64_frame_saved_pc): Update.
3164 (ia64_init_extra_frame_info): Update.
3165 (ia64_init_extra_frame_info): Update.
3166 * d10v-tdep.c (d10v_frame_saved_pc): Update.
3167 * cris-tdep.c (cris_init_extra_frame_info): Update.
3168 * avr-tdep.c (avr_frame_chain): Update.
3169 (avr_init_extra_frame_info): Update.
3170 (avr_frame_saved_pc): Update.
3171 * arm-tdep.c (arm_find_callers_reg): Update.
3172 (arm_init_extra_frame_info): Update.
3173 (arm_frame_saved_pc): Update.
3174
a741e514
TT
31752002-09-17 Tom Tromey <tromey@redhat.com>
3176
3177 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
3178 is "'".
3179
d1a8e808
CV
31802002-09-17 Corinna Vinschen <vinschen@redhat.com>
3181
3182 * MAINTAINERS: Remove "non multi-arched" text from h8300.
3183 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
3184 NEXT_PROLOGUE_INSN.
3185 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
3186 NEXT_PROLOGUE_INSN.
3187
d9025a18
JB
31882002-09-16 Joel Brobecker <brobecker@gnat.com>
3189
3190 * osfsolib.c: Remove file, replaced by solib-osf.c.
3191 * Makefile.in: Remove compilation rules for osfsolib.c.
3192
1b2ef1b6
DC
31932002-09-16 David Carlton <carlton@math.stanford.edu>
3194
3195 * cp-valprint.c (cp_print_class_method): Correct args to
3196 check_stub_method_group.
3197
928e48af
CV
31982002-09-16 Corinna Vinschen <vinschen@redhat.com>
3199
3200 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
3201 `set architecture'. Unify naming convention of functions.
3202 (h8300_skip_prologue): Improve prologue analysis.
3203 (h8300_push_arguments): Rewritten to more closely match GCC's
3204 bizarre argument-passing behavior, along with the comment describing
3205 said behavior.
3206 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
3207 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
3208 sim, remote-e7000.c, remote-hms.c and remote.c
3209
5e3397bb
MK
32102002-09-15 Mark Kettenis <kettenis@gnu.org>
3211
3212 * i386-tdep.c (gdb_print_insn_i386): Removed.
3213 (i386_print_insn): New function.
3214 (i386_gdbarch_init): Set print_insn to i386_print_insns.
3215 (_initialize_i386_tdep): Don't initialize tm_print_insn and
3216 tm_print_insn_info.
3217
f710f4fc
MK
32182002-09-14 Mark Kettenis <kettenis@gnu.org>
3219
3220 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
3221 zero.
3222
db54fef4
CV
32232002-09-14 Corinna Vinschen <vinschen@redhat.com>
3224
3225 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
3226 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
3227 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
3228
2becadee
CF
32292002-09-13 Christopher Faylor <cgf@redhat.com>
3230
3231 * win32-nat.c (child_create_inferior): Honor 'tty' command.
3232
de17c821
DJ
32332002-09-13 Daniel Jacobowitz <drow@mvista.com>
3234
3235 * gdbtypes.c (check_stub_method): Make static.
3236 (check_stub_method_group): New function.
3237 * gdbtypes.h: Update prototypes.
3238 * cp-support.c: New file.
3239 * cp-support.h: New file.
3240
3241 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
3242 (update_method_name_from_physname): New function.
3243 (read_member_functions): Correct method names for operators
3244 and v3 constructors/destructors. Separate v2 constructors and
3245 destructors.
3246 * Makefile.in (stabsread.o): Update dependencies.
3247 (SFILES): Add cp-support.c.
3248 (COMMON_OBS): Add cp-support.o.
3249 (cp_support_h, cp-support.o): Add.
3250
3251 * cp-valprint.c (cp_print_class_method): Call
3252 check_stub_method_group instead of check_stub_method. Remove
3253 extraneous QUITs.
3254 * p-valprint.c (pascal_object_print_class_method): Likewise.
3255 * valops.c (search_struct_method): Likewise.
3256 (find_method_list, value_struct_elt_for_reference): Likewise.
3257
e76cff22
AC
32582002-09-13 Andrew Cagney <cagney@redhat.com>
3259
3260 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
3261 * gdbarch.h, gdbarch.c: Regenerate.
3262
905abb3f
AC
32632002-09-13 Andrew Cagney <ac131313@redhat.com>
3264
3265 * frame.c (find_saved_register): Delete function.
3266 * frame.h (find_saved_register): Delete declaration.
3267 Fix PR gdb/631.
3268
64159455
AC
3269Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
3270
3271 * mips-tdep.c (read_next_frame_reg): Re-hack using
3272 frame_register_unwind.
3273
795e1e11
AC
3274Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
3275
3276 * mips-tdep.c (mips_get_saved_register): Re-hack using
3277 frame_register_unwind.
3278
5720643c
JB
32792002-09-12 Joel Brobecker <brobecker@gnat.com>
3280
3281 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
3282 vector. Will be useful for Interix.
3283 * gdbarch.h, gdbarch.c: Regenerate.
3284
3285 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
3286 name of the malloc function by NAME_OF_MALLOC.
3287
3bada2a2
JB
32882002-09-12 Joel Brobecker <brobecker@gnat.com>
3289
3290 * value.h (find_function_in_inferior): Add const keyword to
3291 one of the parameters. Allows us to invoke this function with
3292 a const char *.
3293 * valops.c (find_function_in_inferior): Likewise.
3294
3db26b01
JB
32952002-09-12 Joel Brobecker <brobecker@gnat.com>
3296
3297 * exec.c (xfer_memory): Fix compilation warning with old versions
3298 of GCC.
3299 * tracepoint.c (trace_find_tracepoint_command): Likewise.
3300
17c5ed2c
DC
33012002-09-12 David Carlton <carlton@math.stanford.edu>
3302
3303 * symtab.h: Run through gdb_indent.h.
3304 Add 2002 to Copyright year list.
3305
ecd1107e
AM
33062002-09-12 Alan Modra <amodra@bigpond.net.au>
3307
3308 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
3309 mach constants.
3310 * MAINTAINERS: Add myself to write after approval list.
3311
e64f66d1
JB
33122002-09-11 J. Brobecker <brobecker@gnat.com>
3313
3314 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
3315
f9395794
JB
33162002-09-11 J. Brobecker <brobecker@gnat.com>
3317
3318 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
3319 Interix.
3320
1a303dec
MS
33212002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
3322
3323 * procfs.c (do_detach): Clear current signal, not just fault.
3324 Corrects problem with breakpoint trap signal leaking to detached
3325 process on Tru64.
3326
c0219d42
MS
33272002-09-10 Michael Snyder <msnyder@redhat.com>
3328
3329 * buildsym.c (finish_block): Protect against null pointer.
3330
9d84ac84
AC
33312002-09-10 Andrew Cagney <cagney@redhat.com>
3332
3333 * infcmd.c (default_print_registers_info): Send all output to
3334 ``file'' instead of ``gdb_stdout''.
3335
77d8f2b4
MS
33362002-09-10 Michael Snyder <msnyder@redhat.com>
3337
3338 * mips-tdep.c (mips_extract_struct_value_address): Make val a
3339 LONGEST, and use signed register read (addresses are sign-
3340 extended for mips).
3341
99656a61
SC
33422002-09-10 Stephane Carrez <stcarrez@nerim.fr>
3343
3344 * event-loop.c (gdb_do_one_event): Make public.
3345 * event-loop.h (gdb_do_one_event): Declare.
3346
da12f4d8
JL
33472002-09-10 Jeff Law <law@redhat.com>
3348
3349 * infttrace.c (child_resume): Simplify and rework to avoid
3350 TT_PROC_CONTINUE.
3351
d0aee0c4
FF
33522002-09-09 Fred Fish <fnf@intrinsity.com>
3353
3354 * printcmd.c (print_scalar_formatted): "len" is the number of
3355 target bytes, NOT the number of target bits.
3356
7cb3ec5e
EZ
33572002-09-09 Elena Zannoni <ezannoni@redhat.com>
3358
3359 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
3360 * top.c (init_main): Set rl_terminal_name.
3361
4dc81987
AS
33622002-09-08 Aidan Skinner <aidan@velvet.net>
3363
3364 * ada-lang.c (ada_array_bound, ada_type_match,
3365 _initialize_ada_language): Fix K&R definitions.
3366 * ada-tasks.c (get_current_task): Fix K&R definitions.
3367 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
3368
842330b4
CF
33692002-09-07 Christopher Faylor <cgf@redhat.com>
3370
3371 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
3372 Add XP.
3373
43156d82
MK
33742002-09-06 Mark Kettenis <kettenis@gnu.org>
3375
66da5fd8
MK
3376 * i386-tdep.c (i386_register_virtual_type,
3377 i386_register_convertible, i386_register_convert_to_virtual,
3378 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
3379 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
3380 (i386_gdbarch_init): Fix comment. Add comments on calls that set
3381 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
3382 Don't set push_arguments twice.
3383
4b218c18
MK
3384 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
3385 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
3386 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
3387 sigtramp_end to NULL.
3388 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
3389 defines.
3390 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
3391
4cc314d5
MK
3392 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
3393 whitespace.
3394
43156d82
MK
3395 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
3396 * gdbarch.h, gdbarch.c: Re-generate.
3397 * blockframe.c (find_pc_sect_partial_function): Convert to use
3398 SIGTRAMP_START_P predicate.
3399
6672060b
MS
34002002-09-05 Michael Snyder <msnyder@redhat.com>
3401
a90c3637
MS
3402 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
3403 generic_dummy_frame method and old method. Also distinguish
3404 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
95f95911 3405 (arm_extract_return_value): Use new regcache method.
a90c3637 3406
6672060b
MS
3407 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
3408 adjustment that doesn't conform to the ABI.
3409 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
3410 saved regcache, not from current regcache.
3411
299ffc64
AC
34122002-09-05 Andrew Cagney <ac131313@redhat.com>
3413
3414 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
3415 * README: Update.
3416
a3a2ee65
JT
34172002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
3418
3419 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
3420 if arm_apcs_32 is false.
3421
2bc7eea9
AC
34222002-09-04 Andrew Cagney <ac131313@redhat.com>
3423
3424 GDB 5.3 branch created.
3425
8a55a7c5
TR
34262002-09-03 Theodore A. Roth <troth@verinet.com>
3427
3428 * gdb/avr-tdep.c (avr_gdbarch_init): Use
3429 generic_unwind_get_saved_register.
3430
e26fb1d7
DC
34312002-09-03 David Carlton <carlton@math.stanford.edu>
3432
3433 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
3434 argument (PR gdb/653). Update call to smash_to_method_type.
3435 (read_structure_scope): Update call to dwarf2_add_member_fn.
3436
30d52491
ML
34372002-09-03 Michal Ludvig <mludvig@suse.cz>
3438
3439 * x86-64-linux-tdep.c: Include gdb_string.h
3440 * x86-64-linux-nat.c: Ditto.
3441
06891d83
JT
34422002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3443
3444 * ada-exp.y (yyname, yyrule): Remap global variables that appear
3445 when YYDEBUG is set to 1.
3446 * c-exp.y: Likewise.
3447 * f-exp.y: Likewise.
3448 * jv-exp.y: Likewise.
3449 * m2-exp.y: Likewise.
3450 * p-exp.y: Likewise.
3451
7d400e77
JT
34522002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3453
3454 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
3455 dependency list.
3456 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
3457 solib_svr4_fetch_link_map_offsets to
3458 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
3459 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
3460 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
3461 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
3462 solib-svr4.o, and solib-legacy.o.
3463 * config/i386/tm-nbsd.h: Include solib.h.
3464
704a27c4
JT
34652002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3466
3467 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
3468 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
3469 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
3470 comment noting that this needs its own target configuration.
3471 * config/i386/nbsd.mt: New file.
3472 * config/i386/nbsdaout.mt: Remove.
3473 * config/i386/nbsdelf.mt: Ditto.
3474 * config/i386/tm-nbsdaout.h: Ditto.
3475
d66198e1
JT
34762002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3477
3478 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
3479 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
3480 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
3481 tdep->sigtramp_end.
3482 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
3483 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
3484 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
3485
3cac699e
JT
34862002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3487
3488 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
3489 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
3490 * i386-tdep.h (i386bsd_init_abi): New prototype.
3491 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
3492 function declaration.
3493 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
3494 for NetBSD-a.out or NetBSD-ELF.
3495 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
3496 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
3497 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
3498 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
3499 and nbsd-tdep.h.
3500 (i386nbsd_pc_in_sigtramp): New function.
3501 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3502 i386nbsd_pc_in_sigtramp.
3503 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
3504 and i386nbsdelf_init_abi OS ABI handlers.
3505 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
3506 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
3507
7010ca0a
MK
35082002-09-02 Mark Kettenis <kettenis@gnu.org>
3509
3510 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
3511 registers if the target really has them.
3512
6dd93b72
JT
35132002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3514
3515 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
3516 than nbsd-tdep.h.
3517
2ca8ae21
JT
35182002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3519
3520 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
3521 list.
3522 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
3523 (alphanbsd_skip_sigtramp_frame): New functions.
3524 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
3525 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
3526 to alphanbsd_sigcontext_addr.
3527
3d9b49b0
JT
35282002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3529
3530 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
3531 list.
3532 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
3533 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
3534 nbsd_pc_in_sigtramp.
3535 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
3536 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
3537 * nbsd-tdep.c: Include gdb_string.h.
3538 (nbsd_pc_in_sigtramp): New function.
3539 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
3540 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
3541 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3542 ppcnbsd_pc_in_sigtramp.
3543 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
3544 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3545 shnbsd_pc_in_sigtramp.
3546 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
3547 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
3548 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
3549
c860120c
PM
35502002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
3551
3552 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
3553 watchpoints to NULL.
3554 (insert_breakpoints): set val field of watchpoints if NULL.
3555
3556
c7612d53
JB
35572002-08-29 Jim Blandy <jimb@redhat.com>
3558
3559 * symtab.c (lookup_symbol_aux): In the cases where we find a
3560 minimal symbol of an appropriate name and use its address to
3561 select a symtab to read and search, use `name' (as passed to us)
3562 as the demangled name when searching the symtab's global and
3563 static blocks, not the minsym's name.
3564
66609862
KS
35652002-08-29 Keith Seitz <keiths@redhat.com>
3566
3567 * stack.c (print_frame_info_base): Always set current_source_symtab
3568 and current_source_line.
3569
151fefe2
JB
35702002-08-29 Donn Terry <donnte@microsoft.com>
3571
3572 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
3573
bfb3754e
KS
35742002-08-28 Keith Seitz <keiths@redhat.com>
3575
3576 * stack.c (select_frame): Add FIXME concerning selected-frame
3577 events.
3578 (select_frame_command): Send selected-frame-level-changed
3579 event notification, but only if the level actually changed.
3580 (up_silently_base): Add selected-frame-level-changed event
3581 notification.
3582 (down_silently_base): Likewise.
3583
e822a2a0
AC
35842002-08-28 Andrew Cagney <ac131313@redhat.com>
3585
3586 * Makefile.in: Update dependencies for all gdb/*.c files.
3587
309367d4
TT
35882002-08-27 Tom Tromey <tromey@redhat.com>
3589
3590 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
3591 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
3592 Update dependencies.
3593 * i387-tdep.c: Include gdb_string.h.
3594 * osabi.c: Likewise.
3595 * i386-linux-nat.c: Likewise.
3596 * lin-lwp.c: Likewise.
3597 * ax-gdb.c: Likewise.
3598 * signals/signals.c: Likewise.
3599 * jv-valprint.c: Likewise.
3600 * p-lang.c: Likewise.
3601 * c-valprint.c: Likewise.
3602 * cp-abi.c: Likewise.
3603
e1507482
EZ
36042002-08-27 Elena Zannoni <ezannoni@redhat.com>
3605
3606 * cli/cli-script.h (copy_command_lines): Export.
3607 * breakpoint.c: Include cli/cli-script.h.
3608 * Makefile.in (breakpoint.o): Update dependencies.
3609
c6510018
MS
36102002-08-26 Michael Snyder <msnyder@redhat.com>
3611
3612 * breakpoint.c (insert_breakpoints): Protect all references
3613 to 'process_warning'. Shorten long lines.
3614
c2b8ed2c
MS
36152002-08-26 Joel Brobecker <brobecker@gnat.com>
3616
3617 * cli/cli-script.c (copy_command_lines): New function.
3618 * defs.h (copy_command_lines): Export.
3619 * testsuite/gdb.base/commands.exp: New tests for commands
3620 attached to a temporary breakpoint, and for commands that
3621 delete the breakpoint they are attached to.
3622
36232002-08-26 Michael Snyder <msnyder@redhat.com>
3624
3625 * breakpoint.c (bpstat_stop_status): Instead of copying the
3626 pointer to the breakpoint commands struct, make a new copy
3627 of the struct and point to that.
3628 (bpstat_clear): Free the commands struct.
3629 (bpstat_clear_actions): Free the commands struct.
3630 (bpstat_do_actions): Free the command actions. Also execute
3631 the local cleanups, instead of deleting them.
3632 (delete_breakpoint): Leave the commands field of the bpstat
3633 chain alone -- it will be freed later.
3634
64b84175
KB
36352002-08-26 Kevin Buettner <kevinb@redhat.com>
3636
3637 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
3638 deleted in 2002-08-20 commit. This function is still used by
3639 ppc-linux-nat.c.
3640
55970da6
KS
36412002-08-26 Keith Seitz <keiths@redhat.com>
3642
3643 * gdb-events.sh: Add selected-frame-level-changed event.
3644 * gdb-events.c: Regenerated.
3645 * gdb-events.h: Regenerated.
3646
a790ad35
SC
36472002-08-26 Stephane Carrez <stcarrez@nerim.fr>
3648
3649 Fix PR gdb/393:
3650 * inflow.c (terminal_save_ours): New function to save terminal
3651 settings.
3652 * inferior.h (terminal_save_ours): Declare.
3653 * target.c (debug_to_terminal_save_ours): New function.
3654 (cleanup_target): Defaults to_terminal_save_ours.
3655 (update_current_target): Inherit to_terminal_save_ours.
3656 (setup_target_debug): Set to_terminal_save_ours.
3657 * target.h (target_terminal_save_ours): New to save terminal settings.
3658 (target_ops): New member to_terminal_save_ours.
3659 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
3660 * hpux-thread.c (init_hpux_thread_ops): Likewise.
3661 * inftarg.c (init_child_ops): Likewise.
3662 * m3-nat.c (init_m3_ops): Likewise.
3663 * procfs.c (init_procfs_ops): Likewise.
3664 * wince.c (init_child_ops): Likewise.
3665 * win32-nat.c (init_child_ops): Likewise.
3666 * sol-thread.c (init_sol_thread_ops): Likewise.
3667
c00dcbe9
MK
36682002-08-26 Mark Kettenis <kettenis@gnu.org>
3669
3d7f4f49
MK
3670 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
3671 use regcache_* functions.
3672 (i386_gdbarch_init): Set store_return_value instead of
3673 deprecated_store_return_value.
3674
c00dcbe9
MK
3675 * regcache.c (regcache_raw_write_signed,
3676 regcache_raw_write_unsigned): New functions.
3677 * regcache.h (regcache_raw_write_signed,
3678 regcache_raw_write_unsigned): New prototypes.
3679
0e0d15ca
AC
36802002-08-25 Andrew Cagney <ac131313@redhat.com>
3681
3682 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
3683 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
3684 source file dependencies. Cleanup corresponding generator rules.
3685
d3b22ed5
AC
36862002-08-25 Andrew Cagney <ac131313@redhat.com>
3687
3688 * regcache.h (register_offset_hack): Declare.
3689 (regcache_cooked_read_using_offset_hack): Declare.
3690 (regcache_cooked_write_using_offset_hack): Declare.
3691
3692 * regcache.c (register_offset_hack): New function.
3693 (regcache_cooked_read_using_offset_hack): New function.
3694 (regcache_cooked_write_using_offset_hack): New function.
3695 (regcache_dump): Check that the registers, according to their
3696 offset, are packed hard against each other.
3697 (cooked_xfer_using_offset_hack): New function.
3698
bb425013
AC
36992002-08-25 Andrew Cagney <ac131313@redhat.com>
3700
3701 * regcache.c (struct regcache_descr): Add field register_type.
3702 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
3703 in as a parameter
3704 (init_regcache_descr): Initialize register_type. Pass the descr
3705 to init_legacy_regcache_descr. Use register_type instead of
3706 REGISTER_VIRTUAL_TYPE.
3707 (register_type): New function.
3708 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
3709 * regcache.h (register_type): Declare.
3710
d0403e00
AC
37112002-08-25 Andrew Cagney <ac131313@redhat.com>
3712
3713 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
3714 instead of deprecated_store_return_value. Fix fallout from
3715 2002-08-23 Andrew Cagney <cagney@redhat.com>.
3716
0ed04cce
AC
37172002-08-25 Andrew Cagney <ac131313@redhat.com>
3718
3719 * regcache.c (max_register_size): New function.
3720 (init_legacy_regcache_descr): Ensure that max_register_size is
3721 large enough for REGISTER_VIRTUAL_SIZE.
3722 * regcache.h (max_register_size): Declare.
3723
46d79c04
AC
37242002-08-24 Andrew Cagney <ac131313@redhat.com>
3725
3726 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
3727 store_return_value.
3728 (e500_extract_return_value): Change type of valbuf pointer to
3729 void.
3730
853c7bd0
MK
37312002-08-24 Mark Kettenis <kettenis@gnu.org>
3732
cd87e769
MK
3733 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
3734 workaround.
3735
853c7bd0
MK
3736 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
3737 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
3738 long long) to prevent compiler warning on 64-bit systems.
3739
ebba8386
AC
37402002-08-23 Andrew Cagney <cagney@redhat.com>
3741
3742 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
3743 (DEPRECATED_STORE_RETURN_VALUE): New method.
3744 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
3745 * gdbarch.h, gdbarch.c: Re-generate.
3746
3747 * values.c (set_return_value): Pass current_regcache to
3748 STORE_RETURN_VALUE.
3749 * arch-utils.h (legacy_store_return_value): Declare.
3750 * arch-utils.c (legacy_store_return_value): New function.
3751 (legacy_extract_return_value): Update parameters.
3752
3753 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
3754 STORE_RETURN_VALUE.
3755 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3756 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3757 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3758 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3759 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3760 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3761 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3762 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3763 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3764 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3765
3766 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3767 * i386-tdep.c (i386_extract_return_value): Update.
3768 * arch-utils.c (legacy_extract_return_value): Update.
3769 * frv-tdep.c (frv_gdbarch_init): Update.
3770 * cris-tdep.c (cris_gdbarch_init): Update.
3771 * d10v-tdep.c (d10v_gdbarch_init): Update.
3772 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3773 * m68k-tdep.c (m68k_gdbarch_init): Update.
3774 * mcore-tdep.c (mcore_gdbarch_init): Update.
3775 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3776 * s390-tdep.c (s390_gdbarch_init): Update.
3777 * sparc-tdep.c (sparc_gdbarch_init): Update.
3778 * sh-tdep.c (sh_gdbarch_init): Update.
3779 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
3780 * v850-tdep.c (v850_gdbarch_init): Update.
3781 * avr-tdep.c (avr_gdbarch_init): Update.
3782 * ia64-tdep.c (ia64_gdbarch_init): Update.
3783 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3784 * vax-tdep.c (vax_gdbarch_init): Update.
3785 * alpha-tdep.c (alpha_gdbarch_init): Update.
3786 * arm-tdep.c (arm_gdbarch_init): Update.
3787 * mips-tdep.c (mips_gdbarch_init): Update.
3788 * i386-tdep.c (i386_gdbarch_init): Update.
3789
5bd8c6d0
AC
37902002-08-23 Andrew Cagney <ac131313@redhat.com>
3791
3792 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
3793 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
3794
e73e1724
MK
37952002-08-24 Mark Kettenis <kettenis@gnu.org>
3796
3797 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
3798 problems.
3799
3e6564e1
JB
38002002-08-23 Joel Brobecker <brobecker@gnat.com>
3801
3802 * infrun.c (handle_inferior_event): Move a comment outside of a
3803 function call, in order to avoid indent reformatting this part
3804 of the code in an unreadable way.
3805
81d0cc19
GS
38062002-08-23 Grace Sainsbury <graces@redhat.com>
3807
3808 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
3809 when breakpoints fail. Move general breakpoint error messages to
3810 insert_breakpoints.
3811 * breakpoint.c (insert_breakpoints): Change warnings when
3812 breakpoints are nto inserted to specify the type. Remove call to
3813 memory_error when hardware breakpoints can't be inserted. Remove
3814 multiple calls to warning so all messages are sent to the user at
3815 once.
3816 (delete_breakpoints): Make insert error messsages more explicit.
3817
17574093
DJ
38182002-08-23 Daniel Jacobowitz <drow@mvista.com>
3819
3820 * ChangeLog: Move gdbserver entries after GDB 5.2 to
3821 gdbserver/ChangeLog.
3822
8acc2935
MK
38232002-08-23 Mark Kettenis <kettenis@gnu.org>
3824
dfe01d39
MK
3825 * i386-tdep.c: Include "objfiles.h".
3826 (i386_svr4_init_abi): Set in_solib_call_trampoline and
3827 skip_trampoline_code.
3828 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
3829 (CPLUS_MARKER): Define to '.'.
3830
8acc2935
MK
3831 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
3832 member.
3833 (linux_corefile_thread_callback): Increase args->num_notes.
3834 (linux_make_note_section): Initialize thread_args.num_notes, and
3835 use it to determine whether notes for any threads were created.
3836
151fefe2 38372002-08-23 Donn Terry <donnte@microsoft.com>
640b227f
JB
3838
3839 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
3840 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
3841 and PCUNKILL.
3842 (write_with_trace): Conditionalize out the switch branch handling
3843 PCSHOLD if the corresponding macro is not defined. Likewise for
3844 PRSABORT and PRSTOP.
3845 This change will be needed by the Interix port.
3846
e1507482
EZ
38472002-08-22 Elena Zannoni <ezannoni@redhat.com>
3848
3849 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
3850 write_register wherever possible instead of manipulating the
3851 register bytes directly.
3852 Assign VALUE_CONTENTS to a variable and use that.
3853 The GPR numbers are now dependent on the architecture.
3854
96ff0de4
EZ
38552002-08-22 Elena Zannoni <ezannoni@redhat.com>
3856
3857 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
3858 ev_offset fields.
3859 (skip_prologue): Add support for BookE/e500 instructions.
3860 (e500_extract_return_value): New function.
3861 (frame_get_saved_regs): Add support for saving ev registers and
3862 pseudo gpr's.
3863 (e500_store_return_value): New function.
3864 (rs6000_gdbarch_init): Move up default intializations of
3865 deprecated_extract_return_value and store_return_value. Overwrite
3866 init of store_return_value with e500 specific version.
3867 Set extract_return_value for e500.
3868
fbefca5b
EZ
38692002-08-22 Elena Zannoni <ezannoni@redhat.com>
3870
3871 * blockframe.c (generic_call_dummy_register_unwind): Use
3872 regcache_cooked_read to catch cases in which the variable is
3873 stored in a pseudo register.
3874
4d210288
AC
38752002-08-22 Andrew Cagney <cagney@redhat.com>
3876
3877 * NEWS: Mention that the i960 has been made obsolete.
3878 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
3879 i960-tdep.c
3880 (remote-nrom.o): Obsolete target.
3881 (remote-nindy.o, i960-tdep.o): Ditto.
3882 * remote-nrom.c: Make file obsolete.
3883 * remote-nindy.c, remote-vx960.c: Ditto.
3884 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
3885 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
3886 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
3887 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
3888 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
3889 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
3890 i960-*-vxworks* obsolete.
3891 * MAINTAINERS: Note that the i960 is obsolete.
3892
6c0c456d
CV
38932002-08-21 Corinna Vinschen <vinschen@redhat.com
3894
3895 * aix-thread.c (aix_thread_detach): Disable thread debugging on
3896 detach to allow reinitialization.
3897
9f9d12b3
AC
38982002-08-22 Andrew Cagney <ac131313@redhat.com>
3899
3900 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
3901 attempt).
3902
ebeb39fe
JB
39032002-08-22 Jim Blandy <jimb@redhat.com>
3904
3905 * coffread.c (coff_symfile_read): Don't try to read the line
3906 number table from disk if the image file doesn't have a symbol
3907 table; we'll never actually look at the info anyway, and Windows
3908 ships DLL's with bogus file offsets for the line number data.
3909
5bf1c677
EZ
39102002-08-21 Elena Zannoni <ezannoni@redhat.com>
3911
3912 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
3913 an e500 executable.
3914
71b8ef93
MS
39152002-08-21 Michael Snyder <msnyder@redhat.com>
3916
3917 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
3918 (MSYMBOL_SIZE): Replace macro with function.
18f81521
MS
3919 (DEFAULT_MIPS_TYPE): Delete unused macro.
3920 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
3921 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
71b8ef93 3922
d174216d
JB
39232002-08-21 Jim Blandy <jimb@redhat.com>
3924
3925 * valops.c (value_cast): Simplify and correct logic for doing a
3926 static cast from a pointer to a base class to a pointer to a
3927 derived class.
3928
0ab7a791
AC
39292002-08-21 Andrew Cagney <ac131313@redhat.com>
3930
3931 * infcmd.c (default_print_registers_info): Replace
3932 do_registers_info.
3933 (registers_info): Use gdbarch_print_registers_info instead of
3934 DO_REGISTERS_INFO.
3935 * inferior.h (default_print_registers_info): Replace
3936 do_registers_info.
3937 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
3938 (DO_REGISTERS_INFO): Change to a predicate function.
3939 * gdbarch.h, gdbarch.c: Regenerate.
3940
e23792cc
KS
39412002-08-21 Keith Seitz <keiths@redhat.com>
3942
3943 * gdb-events.sh: Add target-changed event.
3944 * gdb-events.c: Regenerated.
3945 * gdb-events.c: Regenerated.
3946 * valops.c (value_assign): Add target-changed event notification
3947 to inlval_register, lval_memory, and lval_reg_frame_relative.
3948
9fb14e79
JB
39492002-08-21 Joel Brobecker <brobecker@gnat.com>
3950
3951 * NEWS: Add an entry regarding the improvement of the next/step
3952 operation on Alpha Tru64 multi-processor machines.
3953
6d39a69f
AC
39542002-08-21 Andrew Cagney <ac131313@redhat.com>
3955
72acd513
AC
3956 * Makefile.in: Update dependencies for mi/ cli/ and tui/
3957 directores.
342af04b 3958 * Makefile.in: Update all _h macro definitions.
6d39a69f
AC
3959 * Makefile.in (install-gdbtk): Move to install section.
3960 (rdi-share/libangsd.a): Move to end of file.
3961
fa5f27c7
AC
39622002-08-19 Andrew Cagney <ac131313@redhat.com>
3963
3964 * frame.c (frame_register_unwind): When a register, set addrp to
3965 the register's byte.
3966
5a89d8aa
MS
39672002-08-20 Michael Snyder <msnyder@redhat.com>
3968
3969 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
3970 used locally, so move them from the target machine header to here.
3971 (mips_set_processor_type, mips_register_name, mips32_next_pc,
3972 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
3973 Make static.
3974 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
3975
822e978b
AC
39762002-08-20 Andrew Cagney <cagney@redhat.com>
3977
3978 * NEWS: Mention that the Apollo line was made obsolete.
3979 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
3980 m68*-hp-hpux* obsolete.
3981 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
3982 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
3983 * buildsym.c (make_blockvector): Make static.
3984 * buildsym.h (make_blockvector): Make extern declaration obsolete.
3985 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
3986 (ALLDEPFILES): Remove dstread.c.
3987 (dstread.o): Obsolete make rule.
3988 * dstread.c: Makefile obsolete.
3989 * dst.h: Ditto.
3990 * config/m68k/hp300hpux.mt: Ditto.
3991 * config/m68k/hp300hpux.mh: Ditto.
3992 * config/m68k/hp300bsd.mt: Ditto.
3993 * config/m68k/hp300bsd.mh: Ditto.
3994 * config/m68k/apollo68b.mt: Ditto.
3995 * config/m68k/apollo68v.mh: Ditto.
3996 * config/m68k/apollo68b.mh: Ditto.
3997
e41b17f0
MS
39982002-08-20 Michael Snyder <msnyder@redhat.com>
3999
4000 * mips-tdep.c (mips_in_return_stub): Make static.
4001 (mips_gdbarch_init): Set in_solib_return_trampoline.
4002 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
4003
d50355b6
MS
40042002-08-20 Michael Snyder <msnyder@redhat.com>
4005
4006 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
4007 * gdbarch.c, gdbarch.h: Regenerate.
4008 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
4009 Add.
4010 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
4011
757a7cc6
MS
40122002-08-20 Michael Snyder <msnyder@redhat.com>
4013
4014 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
4015 (mips_gdbarch_init): Set skip_trampoline_code,
4016 in_solib_call_trampoline.
4017 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
4018 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
4019
c8001721
EZ
40202002-08-20 Elena Zannoni <ezannoni@redhat.com>
4021
4022 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
4023
4024 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
4025 vector type for ev registers.
4026 (e500_pseudo_register_read): New function.
4027 (e500_pseudo_register_write): New function.
4028 (e500_dwarf2_reg_to_regnum): New function.
4029 (PPC_UISA_NOFP_SPRS): New macro.
4030 (PPC_EV_REGS): New macro.
4031 (PPC_GPRS_PSEUDO_REGS): New macro.
4032 (registers_e500): New register set for e500.
4033 (variants): Add e500 variant.
4034 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
4035 before setting architectural dependent variations. Initialize ev
4036 registers numbers. Add case for e500 architecture. Set the
4037 number of pseudo registers.
4038
64366f1c
EZ
40392002-08-20 Elena Zannoni <ezannoni@redhat.com>
4040
4041 * rs6000-tdep.c: Clean up comments.
4042
7e78f0ca
AC
40432002-08-20 Andrew Cagney <cagney@redhat.com>
4044
4045 * h8300-tdep.c: Re-indent file.
4046
697f7479
JB
40472002-08-20 Jim Blandy <jimb@redhat.com>
4048
4049 * Makefile.in (LDFLAGS): Allow the configure script to establish a
4050 default for this.
697f7479 4051
e86ae29f
KS
40522002-08-20 Keith Seitz <keiths@redhat.com>
4053
4054 * breakpoints.c (watch_command_1): Use internal breakpoint
4055 when setting a watchpoint_scope breakpoint.
4056
216b504f
EZ
40572002-08-20 Elena Zannoni <ezannoni@redhat.com>
4058
4059 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
4060 (build_builtin_type_vec64i): Ditto.
4061 (build_builtin_type_vec128): Ditto.
4062 (build_builtin_type_vec128i): Ditto.
4063
f7ab6ec6
MS
40642002-08-19 Michael Snyder <msnyder@redhat.com>
4065
4066 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
4067 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
4068 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
4069 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
4070 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
4071 CALL_DUMMY_ADDRESS): Delete.
4072 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
4073 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
4074 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
4075 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
4076 push_return_address.
4077 (mips_register_raw_size, mips_eabi_use_struct_convention,
4078 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
4079 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
4080 mips_init_extra_frame_info, mips_eabi_push_arguments,
4081 mips_n32n64_push_arguments, mips_push_return_address,
4082 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
4083 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
4084
b5d1566e
MS
40852002-08-19 Michael Snyder <msnyder@redhat.com>
4086
4087 * mips-tdep.c (mips_frame_num_args): New function.
4088 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
4089 frame_saved_pc, frame_args_address, frame_locals_address,
4090 frame_num_args, and frame_args_skip.
4091 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
4092 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
4093 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
4094 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
4095
2f1488ce
MS
40962002-08-20 Michael Snyder <msnyder@redhat.com>
4097
4098 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
4099 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
4100 * mips-tdep.c (mips_store_struct_return): New function.
4101 (mips_extract_struct_value_address): New function.
4102 (mips_gdbarch_init): Set store_struct_return and
4103 extract_struct_value_address.
4104
41ff2da1
DC
41052002-08-20 David Carlton <carlton@math.stanford.edu>
4106
4107 * dwarf2read.c (dwarf2_build_psymtabs): Check that
4108 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
4109 (read_file_scope): Check that line_header is nonzero before
4110 decoding macro information.
4111
e5451d58
MK
41122002-08-20 Mark Kettenis <kettenis@gnu.org>
4113
4114 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
4115 flag the general-purpose registers as floating-point on targets
4116 that don't support the floating-point registers.
4117
4a6daafa
EZ
41182002-08-20 Elena Zannoni <ezannoni@redhat.com>
4119
4120 * rs6000-tdep.c (altivec_register_p): Delete.
4121 (rs6000_do_altivec_registers): Delete.
4122 (rs6000_altivec_registers_info): Delete.
4123 (rs6000_do_registers_info): Delete.
4124 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
4125 (rs6000_gdbarch_init): Remove setting of do_registers_info.
4126
ab4327e0
EZ
41272002-08-20 Elena Zannoni <ezannoni@redhat.com>
4128
4129 * infcmd.c (do_registers_info): Print vector registers in hex
4130 format only.
4131 (print_vector_info): Check that printing registers
4132 makes sense.
4133 (print_float_info): Ditto.
4134
cb1d2653
AC
41352002-08-20 Andrew Cagney <ac131313@redhat.com>
4136
4137 * mips-tdep.c (mips_gdbarch_init): Update.
4138 (mips_o32_extract_return_value): Rewrite.
4139 (mips_o32_store_return_value): Rewrite.
4140 (mips_o32_xfer_return_value): New function.
4141 (mips_xfer_register): Tweak debug print message. Allow for
4142 buf_offset when dumping the value transfered.
4143
dfc3d9b2
AC
41442002-08-20 Andrew Cagney <ac131313@redhat.com>
4145
4146 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
4147 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
4148 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
4149 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
4150 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
4151
7807aa61
MS
41522002-08-14 Michael Snyder <msnyder@redhat.com>
4153
4154 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
4155
489461e2
EZ
41562002-08-19 Elena Zannoni <ezannoni@redhat.com>
4157
4158 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
4159 register.
4160 (P): New macro to define a register as a pseudo register.
4161 (R, R4, R8, R16, FR32, R64, R0): Updated.
4162 (struct variant): Add new fields for number of pseudo registers
4163 and number of total registers.
4164 (tot_num_registers): New macro replacing....
4165 (num_registers): ...deleted macro.
4166 (num_registers): New function.
4167 (num_pseudo_registers): New function.
4168 (variants): Update all variants to intialize new fields correctly.
4169 Postpone initialization of number of pseudo regs and real regs.
4170 (init_variants): New function.
4171 (rs6000_gdbarch_init): Initialize variants. Update calculation of
4172 registers offsets.
4173
fcaffe4c
DC
41742002-08-19 David Carlton <carlton@math.stanford.edu>
4175
2c2738a0
DC
4176 * valops.c (search_struct_field): Change error message to treat
4177 return value of 0 from value_static_field as meaning that field is
4178 optimized out.
4179 (value_struct_elt_for_reference): Ditto.
4180 * values.c (value_static_field): Treat an unresolved location the
4181 same as a nonexistent symbol. Fix PR gdb/635.
2a73a662
DC
4182 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
4183 enclosed. Fix PR gdb/574.
fcaffe4c
DC
4184 * MAINTAINERS: Add self to Write After Approval list.
4185
88658117
AC
41862002-08-19 Andrew Cagney <ac131313@redhat.com>
4187
4188 * mips-tdep.c (mips_xfer_register): New function.
4189 (mips_n32n64_extract_return_value): Rewrite.
4190 (mips_gdbarch_init): For N32 and N64, set extract_return_value
4191 instead of deprecated_extract_return_value.
4192
21283beb
EZ
41932002-08-19 Elena Zannoni <ezannoni@redhat.com>
4194
4195 * rs6000-tdep.c (TDEP): Delete macro.
4196 (branch_dest): Replace use of TDEP macro with its body.
4197 (rs6000_pop_frame): Ditto.
4198 (rs6000_push_arguments): Ditto.
4199 (rs6000_skip_trampoline_code): Ditto.
4200 (rs6000_frame_saved_pc): Ditto.
4201 (rs6000_frame_chain): Ditto.
4202 (rs6000_register_name): Ditto.
4203 (rs6000_register_byte): Ditto.
4204 (rs6000_register_raw_size): Ditto.
4205 (rs6000_register_virtual_type): Ditto.
4206 (rs6000_register_convertible): Ditto.
4207 (rs6000_convert_from_func_ptr_addr): Ditto.
4208
bf072999
DJ
42092002-08-19 Daniel Jacobowitz <drow@mvista.com>
4210
4211 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
4212 conditionally.
4213 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
4214 MIPS_LINUX_JB_ELEMENT_SIZE.
4215 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
4216 for MAX_REGISTER_RAW_SIZE arrays.
4217 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
4218 MIPS_LINUX_JB_ELEMENT_SIZE.
4219
9b949a49
PM
42202002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
4221
4222 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
4223
6d3e79c6
AS
42242002-08-19 Aidan Skinner <aidan@velvet.net>
4225
4226 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
4227 ada-valprint.c ada-tasks.c.
4228 (YYFILES): Add ada-exp.y.
4229 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
4230 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
4231 (ada-exp.tab.o): New target.
4232
06c0b04e
AC
42332002-08-18 Andrew Cagney <ac131313@redhat.com>
4234
4235 * regcache.c (regcache_xfer_part): New function.
4236 (regcache_raw_read_part): New function.
4237 (regcache_raw_write_part): New function.
4238 (regcache_cooked_read_part): New function.
4239 (regcache_cooked_write_part): New function.
4240 * regcache.h (regcache_raw_read_part): Declare.
4241 (regcache_raw_write_part): Declare.
4242 (regcache_cooked_read_part): Declare.
4243 (regcache_cooked_write_part): Declare.
4244
92d1e331
DJ
42452002-08-18 Daniel Jacobowitz <drow@mvista.com>
4246
4247 * remote.c (remote_open_1): Add async_p.
4248 (remote_async_open_1): Delete.
4249 (open_remote_target): Delete.
4250 (remote_open, extended_remote_open): Update calls to remote_open_1.
4251 (remote_async_open, extended_remote_async_open): Call
4252 remote_open_1 instead of remote_async_open_1.
4253
247055de
MK
42542002-08-19 Mark Kettenis <kettenis@gnu.org>
4255
4256 * blockframe.c: Fix a few coding standard violations.
4257
641eda39
MK
42582002-08-19 Mark Kettenis <kettenis@gnu.org>
4259
0b717710
MK
4260 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
4261 here from ...
4262 * config/i386/tm-i386sco5.h: ... here. File removed.
4263 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
4264
26d28e12 4265 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
641eda39
MK
4266 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
4267 (TM_FILE): Set to tm-i386.h.
4268 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
4269 * config/i386/tm-i386v.h: Remove file.
4270 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
4271 instead of "i386/tm-i386v.h".
4272 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
4273 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
4274 "i386/tm-i386v.h".
4275 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
4276 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
4277 "i386/tm-i386.h".
4278
d4e0bab4
MK
42792002-08-18 Mark Kettenis <kettenis@gnu.org>
4280
4281 * config/i386/nm-i386v.h: Add protection against
4282 multiple-inclusion.
4283 (i386_register_u_addr): Remove prototype.
4284 (register_u_addr): New prototype.
4285 (REGISTER_U_ADDR): Redefine accordingly.
4286 * i386v-nat.c: Improve several comments.
4287 (i386_register_u_addr): Change signature and rename to
4288 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
4289 ubase variable.
4290
46cac009
AC
42912002-08-18 Andrew Cagney <ac131313@redhat.com>
4292
4293 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
4294 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
4295 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
4296 deprecated_extract_return_value.
4297 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
4298 rename mips_o32o64_push_arguments.
4299 (mips_gdbarch_init): Update.
4300 (mips_extract_return_value): Delete.
4301 (mips_o32_extract_return_value): Clone mips_extract_return_value.
4302 (mips_o64_extract_return_value): Clone mips_extract_return_value.
4303 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
4304 (mips_n32n64_extract_return_value): Clone
4305 mips_extract_return_value.
4306 (mips_store_return_value): Delete.
4307 (mips_o32_store_return_value): Clone mips_store_return_value.
4308 (mips_o64_store_return_value): Clone mips_store_return_value.
4309 (mips_eabi_store_return_value): Clone mips_store_return_value.
4310 (mips_n32n64_store_return_value): Clone mips_store_return_value.
4311
d2e4a39e
AS
43122002-08-18 Aidan Skinner <aidan@velvet.net>
4313
0c30c098
AS
4314 * ada-lang.c: Use gdb_string.h instead of <string.h>.
4315 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
4316
43172002-08-18 Aidan Skinner <aidan@velvet.net>
4318
4319 * ada-lang.c: Run through gdb_indent.sh.
4320 * ada-lang.h: Run through gdb_indent.sh.
4321 * ada-tasks.c: Run through gdb_indent.sh.
4322 * ada-typeprint.c: Run through gdb_indent.sh.
4323 * ada-valprint.c: Run through gdb_indent.sh.
d2e4a39e 4324
01fc4e33
AC
43252002-08-18 Andrew Cagney <ac131313@redhat.com>
4326
4327 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
4328 ABI.
4329
d8ee244c
MK
43302002-08-18 Mark Kettenis <kettenis@gnu.org>
4331
c38d8261
MK
4332 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
4333
222db64c
MK
4334 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
4335 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
4336
c2848c82
MK
4337 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
4338 write_register_gen instead of write_register_bytes.
4339
d8ee244c
MK
4340 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
4341 i[3456]-*-osf1mk* configurations have been made obsolete.
4342 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
4343 i[3456]86-*-osf1mk* hosts obsolete.
4344 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
4345 targets obsolete.
4346 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
4347 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
4348 config/i386/i386m3.mt, config/i386/nm-m3.h,
4349 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
4350 config/i386/i386mk.mh, config/i386/i386mk.mt,
4351 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
4352 obsolete.
4353 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
4354 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
4355 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
4356
61d8d407
AC
43572002-08-18 Andrew Cagney <ac131313@redhat.com>
4358
4359 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
4360 (hppa_value_returned_from_stack): Declare.
4361 (hppa_extract_return_value): Declare.
4362 * config/pa/hppa.mt: New file.
4363 * configure.tgt: Recognize hppa*-*-*.
4364 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
4365
0c52bd59
MK
43662002-08-18 Mark Kettenis <kettenis@gnu.org>
4367
4368 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
4369 comment.
4370
b5686e99
MK
43712002-08-17 Mark Kettenis <kettenis@gnu.org>
4372
4373 * top.c (gdb_rl_operate_and_get_next): Make sure
4374 operate-and-get-next functions correctly even when the history
4375 list is completely filled.
4376
c1bab85b
AC
43772002-08-18 Andrew Cagney <ac131313@redhat.com>
4378
4379 * MAINTAINERS (Target Instruction Set Architectures): Rename
4380 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
4381 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
4382 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
4383 already listed under Host/Native.
4384
4385 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
4386 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
4387 mips*-*-*.
4388
32089c7c
AC
43892002-08-17 Andrew Cagney <ac131313@redhat.com>
4390
4391 * config/ia64/ia64.mt: New file.
4392 * config/alpha/alpha.mt: New file.
4393 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
4394 ia64-linux-gnu. Mention that ia64-elf is broken.
4395 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
4396
b4671f85
MK
43972002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
4398
4399 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
4400 generic_func_frame_valid instead of func_frame_valid.
4401
c8edd8b4
JB
44022002-08-16 Joel Brobecker <brobecker@gnat.com>
4403
4404 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
4405 procfs appears to be broken when debugging on multi-processor
4406 machines. So enable software single stepping in order to avoid
4407 using the procfs interface to do next/step operations, using
4408 internal breakpoints instead.
4409
4410 * infrun.c (handle_inferior_event): Readjust the stop_pc by
4411 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
4412 make this pc address equal to the value it would have if the
4413 system stepping capability was used. Also set a new flag used
4414 to ensure that we don't readjust the PC one more time later.
4415
4416 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
4417 address by DECR_PC_AFTER_BREAK when software single step is
4418 in use for this architecture, as this has already been taken
4419 care of in handle_inferior_event().
4420
238617f6
JB
44212002-08-16 Joel Brobecker <brobecker@gnat.com>
4422
4423 * infrun.c (handle_inferior_event): Minor reformatting, to make
4424 a rather long condition expression easier to read.
4425
541a7aac
AC
44262002-08-16 Andrew Cagney <ac131313@redhat.com>
4427
4428 * Makefile.in (gdbtk.o): Move to end of file.
4429 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
4430 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
4431 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
4432 (gdbtk-wrapper.o, gdbres.o): Ditto.
4433
f92d4a7b
AC
44342002-08-16 Andrew Cagney <ac131313@redhat.com>
4435
4436 * Makefile.in (copying.o): Separate out compile rule.
4437 (hpux-thread.o, procfs.o, signals.o): Ditto.
4438 (v850ice.o, z8k-tdep.o): Ditto.
4439 (tui-file.o): Move to TUI section.
4440 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
4441 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
4442
1cce71eb
JB
44432002-08-16 Joel Brobecker <brobecker@gnat.com>
4444
4445 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
4446 skip_trampoline_code, for better namespace-proofing.
4447
4448 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
4449
0851f23d
JB
44502002-08-16 Joel Brobecker <brobecker@gnat.com>
4451
4452 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
4453
f8d40ec8
JB
44542002-08-16 Joel Brobecker <brobecker@gnat.com>
4455
4456 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
4457 signal, check whether we hit a breakpoint before checking for a
4458 single step breakpoint. Otherwise, GDB fails to notice that a
4459 breakpoint has been hit when stepping onto a breakpoint.
4460
63d022e0
KS
44612002-08-16 Keith Seitz <keiths@redhat.com>
4462
4463 * gdb-events.sh (clear_gdb_event_hooks): New function.
4464 * gdb-events.c: Regenerate.
4465 * gdb-events.h: Regenerate.
4466
6e31adb3
AC
44672002-08-16 Andrew Cagney <ac131313@redhat.com>
4468
4469 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
4470 not_a_sw_breakpoint.
4471 * breakpoint.h (bpstat_stop_status): Add parameter names.
4472
c8189ed1
GS
44732002-08-16 Grace Sainsbury <graces@redhat.com>
4474
4475 * remote.c (remote_insert_hw_breakpoint)
4476 (remote_remove_hw_breakpoint): Fix calculation of length field
4477 for Z-packet.
4478
d05285fa
MS
44792002-08-15 Michael Snyder <msnyder@redhat.com>
4480
466d7106
MS
4481 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
4482 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
4483 (supply_fpregset): Ditto.
4484
d05285fa
MS
4485 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
4486 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
4487 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
bcb0cc15 4488 (TARGET_READ_SP): Delete.
bf1f5b4c 4489 (DO_REGISTERS_INFO): Delete.
102182a9
MS
4490 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
4491 Delete.
4492 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
4493 from macros to functions.
bf1f5b4c 4494
d05285fa
MS
4495 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
4496 (mips_register_convertible, mips_register_convert_to_virtual,
4497 mips_register_convert_to_raw): Make static.
bcb0cc15
MS
4498 (mips_read_sp): New function.
4499 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
bf1f5b4c
MS
4500 (mips_do_registers_info): Make static.
4501 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
102182a9
MS
4502 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
4503 (mips_register_convert_from_type, mips_register_convert_to_type):
4504 New functions.
4505 (mips_gdbarch_init): Set up function_start_offset,
4506 register_virtual_size, pc_in_sigtramp.
d05285fa 4507
e76f1f2e
AC
45082002-08-15 Andrew Cagney <ac131313@redhat.com>
4509
4510 * infcmd.c (vector_info): New function.
4511 (_initialize_infcmd): Add command "info vector".
4512 (print_vector_info): New function.
4513
4514 * gdbarch.sh (PRINT_VECTOR_INFO): New method
4515 * gdbarch.h, gdbarch.c: Regenerate.
4516
4782dc19
AC
45172002-08-15 Andrew Cagney <ac131313@redhat.com>
4518
4519 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
4520 ``print_all''. Only print vector registers when ``print_all''.
4521
23e3a7ac
AC
45222002-08-15 Andrew Cagney <ac131313@redhat.com>
4523
8e186fd6
AC
4524 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
4525 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
4526
23e3a7ac
AC
4527 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
4528 Add `args' parameter.
4529 * gdbarch.h, gdbarch.c: Regenerate.
4530
4531 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
4532
4533 * infcmd.c (float_info): Call print_float_info.
4534 (print_float_info): New function. By default, print the
4535 floating-point registers.
4536
4537 * arch-utils.h (default_print_float_info): Delete declaration.
4538 * arch-utils.c (default_print_float_info): Delete function.
4539
e0ca2bb9
MK
45402002-08-16 Mark Kettenis <kettenis@gnu.org>
4541
3f733acc
MK
4542 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
4543 out define.
4544
7d8d2918
MK
4545 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
4546 FRAME.
4547
1c7cc583
MK
4548 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
4549 * configure.host: Make i[3456]86-*-aix host obsolete.
4550 * configure.tgt: Make i[3456]86-*-aix target obsolete.
4551 * config/i386/i386aix.mh, config/i386/i386aix.mt,
4552 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
4553 config/i386/xm-i386aix.h: Make files obsolete.
4554 * i386aix-nat.c: Make file obsolete.
4555 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
4556 (i386aix-nat.o): Make target obsolete.
4557
e0ca2bb9
MK
4558 * config/i386/nm-gnu.h: Removed.
4559 * config/i386/nm-i386gnu.h: New file.
4560 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
4561 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
4562 Moved here from ...
4563 * config/i386/tm-i386gnu.h: ... here. Removed.
4564 * config/i386/xm-i386gnu.h: Removed.
4565 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
4566 (NAT_FILE): Set to nm-i386gnu.h.
4567 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
4568 * i386-tdep.c: New file.
4569 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
4570 (i386gnu-tdep.o): Specify dependencies.
4571
16057ec7 45722002-08-15 Mark Kettenis <kettenis@gnu.org>
61113f8b 4573
6b99ee2e
MK
4574 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
4575 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
4576 Adjust a few comments to reflect reality a bit closer.
4577 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
4578 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
4579 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
4580 target_insert_watchpoint, target_remove_watchpoint):
4581 Move defines to ...
4582 * config/i386/nm-i386sco5.h: ... here.
4583 (kernel_u_size): Add prototype. Improve a few comments and add
4584 protection against multiple inclusion.
4585
d9a6f65c
MK
4586 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
4587 out define.
4588
047eff6a
MK
4589 * uw-thread.c (SP_ARG0): Define if not already defined.
4590 * config/i386/tm-i386.h (SO_ARG0): Remove define.
4591
dcdb1290
MK
4592 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
4593
5d2d0b2a
MK
4594 * config/i386/tm-i386.h: Don't include "regcache.h".
4595
61113f8b
MK
4596 * i387-tdep.h (i387_print_float_info): New prototype.
4597 * i387-tdep.c (print_i387_value, print_i387_ext,
4598 print_i387_status_word, print_i387_control_word): Add `struct
4599 ui_file *' argument and use it for output.
4600 (i387_print_float_info): Renamed from i387_float_info. Add
4601 `struct gdbarch *' and `struct ui_file *' arguments and use the
4602 latter for output.
4603 * i386-tdep.c: Include "i387-tdep.h".
4604 (i386_gdbarch_init): Set print_float_info.
4605 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
4606 (FLOAT_INFO): Remove define.
4607
46e0f506
MS
46082002-08-13 Michael Snyder <msnyder@redhat.com>
4609
4610 * mips-tdep.c (mips_push_arguments): Rename to
4611 mips_eabi_push_arguments, and tune for EABI.
4612 (MIPS_REGS_HAVE_HOME_P): Delete.
4613 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
4614 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
4615 Delete references to mips_regs_have_home_p.
4616
409268de
KS
46172002-08-14 Keith Seitz <keiths@redhat.com>
4618
4619 * Makefile.in (install-gdbtk): Create insight plugin directory.
4620 Install plugins.tcl file.
4621
ffc6a242
KS
46222002-08-14 Keith Seitz <keiths@redhat.com>
4623
4624 * configure.in: Move SUBDIRS to near top of the file so that
4625 --enable options may add things to it.
4626 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
4627 * configure: Regenerate.
4628
ebafbe83
MS
46292002-08-13 Michael Snyder <msnyder@redhat.com>
4630
4631 * mips-tdep.c (mips_o32o64_push_arguments): New function,
4632 cloned from mips_push_arguments, tuned for o32/o64 ABI.
4633 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
4634
32f6f25d
AC
46352002-08-13 Andrew Cagney <ac131313@redhat.com>
4636
4637 * vax-tdep.c (vax_get_saved_register): Delete function.
4638 (vax_gdbarch_init): Update.
4639 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
4640 (ns32k_gdbarch_init): Update.
4641 * alpha-tdep.c (alpha_get_saved_register): Delete function.
4642 (alpha_gdbarch_init): Update.
4643
53826de9
AC
46442002-08-13 Andrew Cagney <cagney@redhat.com>
4645
4646 * regcache.c (init_regcache_descr): Overallocate the
4647 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
4648 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
4649 nr_raw_registers.
4650 (set_register_cached): Add range checking assertions. Use
4651 current_regcache.
4652
16057ec7 46532002-08-13 Mark Kettenis <kettenis@gnu.org>
7d12f766
MK
4654
4655 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
4656 numbers for MMX registers.
4657
7b4c2dce
AC
46582002-08-13 Andrew Cagney <cagney@redhat.com>
4659
4660 * i386-tdep.c (i386_gdbarch_init): Use
4661 generic_unwind_get_saved_register.
4662
1e03ad20
KB
46632002-08-13 Kevin Buettner <kevinb@redhat.com>
4664
4665 * procfs.c (procfs_can_use_hw_breakpoint): New function.
4666 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
4667 target vector.
4668 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
4669 Delete. Add comment regarding this now-deleted target method.
4670
548bcbec
SC
46712002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4672
4673 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
4674 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
4675 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
4676 real PC and the page number (if it's within the memory bank window).
4677 (m68hc11_pseudo_register_write): Likewise when saving.
4678 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
4679 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
4680 (m68hc11_register_raw_size): And use 32-bit for it.
4681 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
4682 16K memory bank is used by the prog; also use the virtual pc.
4683
7df11f59
SC
46842002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4685
4686 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
4687 (m68hc11_gdbarch_init): Install it in gdbarch.
4688 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
4689 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
4690 (MSYMBOL_SIZE): New for documentation.
4691 (insn_return_kind): Enum to specify how a function returns.
4692 (frame_extra_info): Cleanup and record the return mode.
4693 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
4694 register in address computation.
4695 (m68hc11_get_return_insn): New to obtain the return instruction used
4696 by the function.
4697 (m68hc11_frame_init_saved_regs): Take into account the return
4698 instruction used by the function for far and interrupt functions.
4699 (m68hc11_init_extra_frame_info): Take into account page register.
4700 (m68hc11_frame_args_address): Adjust according to the return mode.
4701 (show_regs): Print page register only when it's used.
4702
5706502a
SC
47032002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4704
4705 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
4706 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
4707 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
4708 registers.
4709 (m68hc11_register_raw_size): Likewise.
4710
28fc6740
AC
47112002-08-13 Andrew Cagney <cagney@redhat.com>
4712
4713 * i386-tdep.c (i386_register_name): Handle mmx registers.
4714 (mmx_regnum_p): New function.
4715 (i386_mmx_names): New array.
4716 (mmx_num_regs): New variable.
4717 (i386_pseudo_register_read): New function.
4718 (i386_pseudo_register_write): New function.
4719 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
4720
4721 * regcache.c (regcache_raw_read_unsigned): New function.
4722 (regcache_raw_read_signed): New function.
4723 * regcache.h (regcache_raw_read_unsigned): Declare.
4724 (regcache_raw_read_signed): Declare.
4725
a378f419
AC
47262002-08-13 Andrew Cagney <cagney@redhat.com>
4727
4728 * regcache.c (regcache_raw_read_as_address): Delete function.
4729 (regcache_cooked_read_signed): New function.
4730 (regcache_cooked_read_unsigned): New function.
4731 * regcache.h (regcache_cooked_read_signed): Declare.
4732 (regcache_cooked_read_unsigned): Declare.
4733 (regcache_raw_read_as_address): Delete declaration.
4734
4735 * blockframe.c (generic_read_register_dummy): Use
4736 regcache_cooked_read_unsigned.
4737 * i386-tdep.c (i386_extract_struct_value_address): Use
4738 regcache_cooked_read_unsigned.
4739
81967506
SC
47402002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4741
4742 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
4743 double sizes according to ELF ABI flags.
4744 (gdbarch_tdep): Record elf_flags.
4745
ffe1f3ee
SC
47462002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4747
4748 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
4749 (m6812_prolog): They can appear in 68HC12 function prologue.
4750 (m68hc11_frame_chain): Cleanup.
4751
98216c5d
AC
47522002-08-12 Andrew Cagney <cagney@redhat.com>
4753
4754 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
4755 declarations.
4756 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
4757 (i386_linux_register_raw_size): Delete function.
4758 (i386_linux_init_abi): Update.
4759 * i386-tdep.c (i386_register_raw_size): Delete function.
4760 (i386_register_byte): Delete function.
4761 (i386_gdbarch_init): Update.
4762 (i386_register_size): Delete array.
4763 (i386_register_offset): Delete array.
4764
4765 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
4766 (REGISTER_RAW_SIZE): Delete macro.
4767 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
4768 (REGISTER_BYTE): Delete macro.
4769
3b19021e
AS
47702002-08-11 Aidan Skinner <aidan@velvet.net>
4771
4772 * ada-lang.c (ada_lookup_partial_symbol)
4773 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
4774 prototype names so that grep ^func works properly.
4775
4776 * ada-lang.c (ada_array_element_type)
4777 (ada_lookup_partial_symbol): Fix typos in parameter list.
4778
4779 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
4780 Fix prototype names so that grep ^func works properly.
4781
b063e7a2
AC
47822002-08-10 Andrew Cagney <cagney@redhat.com>
4783 Elena Zannoni <ezannoni@redhat.com>
4784 Martin M. Hunt <hunt@redhat.com>
4785
4786 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
4787 (build_builtin_type_vec128i): Set the vector bit.
4788 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
4789 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
4790 (build_builtin_type_vec64): New function.
4791 (build_builtin_type_vec64i): New function.
4792 (build_gdbtypes): Initialize builtin_type_vec64 and
4793 builtin_type_vec64i.
4794
a7e3c2ad
AC
47952002-08-09 Andrew Cagney <cagney@redhat.com>
4796
4797 * regcache.c (regcache_dump): Compare the register offset
4798 with REGISTER_BYTE.
4799 * arch-utils.c (generic_register_byte): New function.
4800 * arch-utils.h (generic_register_byte): Declare.
4801 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
4802 * gdbarch.h, gdbarch.c: Regenerate.
4803
af030b9a
AC
48042002-08-09 Andrew Cagney <cagney@redhat.com>
4805
4806 * regcache.c: Include "gdbcmd.h"
4807 (_initialize_regcache): Add commands "maintenance print
4808 registers", "maintenance print raw-registers" and "maintenance
4809 print cooked-registers".
4810 (enum regcache_dump_what): Define.
4811 (dump_endian_bytes): New function.
4812 (regcache_dump): New function.
4813 (regcache_print): New function.
4814 (maintenance_print_registers): New function.
4815 (maintenance_print_raw_registers): New function.
4816 (maintenance_print_cooked_registers): New function.
4817 * Makefile.in (regcache.o): Update dependencies.
4818
cb3d25d1
MS
48192002-08-09 Michael Snyder <msnyder@redhat.com>
4820
4821 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
4822 (mips_push_arguments): Correct some comments. Use paddr_nz
4823 for printing addresses in debug output. Replace static
4824 allocation using MAX_REGISTER_RAW_SIZE with alloca.
4825 (mips_n32n64_push_arguments): New function, cloned from
4826 mips_push_arguments and tuned for the n32/n64 ABI.
4827 (mips_push_register): Buffer needs dynamic allocation.
4828 (mips_print_register): Ditto.
4829 (do_gp_register_row): Ditto.
4830 (mips_store_return_value): Ditto.
4831 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
4832
2163ab9d
DH
48332002-08-09 Don Howard <dhoward@redhat.com>
4834
4835 * memattr.c (mem_info_command): Print special case of upper bound
4836 as max CORE_ADDR + 1.
4837
b78bcb18
MS
48382002-08-08 Michael Snyder <msnyder@redhat.com>
4839
4840 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
4841 returns structs by ref if they're too big to fit in two registers.
4842
ffabd70d
KB
48432002-08-09 Kevin Buettner <kevinb@redhat.com>
4844
4845 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
4846 saved regs value.
4847 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
4848 mips_find_saved_regs().
4849 (mips_pop_frame): Likewise.
4850
fbcdb4a3
KB
48512002-08-09 Kevin Buettner <kevinb@redhat.com>
4852
4853 * blockframe.c (frame_saved_regs_register_unwind): Revise
4854 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
4855 frames are in use.
4856
3c3bea1c
GS
48572002-08-09 Grace Sainsbury <graces@redhat.com>
4858
4859 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
4860 T-packets; the 'a' is not taken as a register number.
4861 (remote_check_watch_resources, remote_stopped_by_watchpoint)
4862 (remote_stopped_data_address): New functions; add to target
4863 vector.
4864 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
4865 prototypes to match other implementations of this
4866 function. replace integer argument with pointer -- the length
4867 field in the Z-packet is the length of what is pointed to or 1 if
4868 pointer is null. Add to target vector.
4869 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
4870 target vector.
4871
4872 From Mark Salter:
4873 * remote.c (remote_wait): Add support to extract optional
4874 watchpoint information from T-packet. Ignore unrecognized
4875 optional info in T-packet.
4876 (remote_async_wait): Ditto.
4877
5d1d95de
CV
48782002-08-09 Corinna Vinschen <vinschen@redhat.com>
4879
4880 * cli/cli-dump.c: Change fopen modes to use binary open modes
4881 as defined in include/fopen-bin.h throughout.
4882
c86b5b38
MS
48832002-08-08 Michael Snyder <msnyder@redhat.com>
4884
4885 * mips-tdep.c: Minor whitespace and indentation clean-ups.
4886
b30590dc
KB
48872002-08-08 Kevin Buettner <kevinb@redhat.com>
4888
4889 * doublest.c (store_floating): Avoid floatformat_from_doublest()
4890 assertion failure by returning early after a warning.
4891
498868ed
KB
48922002-08-08 Kevin Buettner <kevinb@redhat.com>
4893
4894 * mips-tdep.c (mips_find_saved_regs): Make static.
4895 (mips_frame_init_saved_regs): New function.
4896 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
4897 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
4898 (mips_find_saved_regs): Delete declaration.
4899
b2dd6311
GS
49002002-08-08 Grace Sainsbury <graces@redhat.com>
4901
3c3bea1c
GS
4902 * remote.c (remote_wait, remote_async_wait): Change
4903 thread_num from int to ULONGEST.
4904 (unpack_varlen_hex): Change result parameter from
4905 int * to ULONGEST *.
b2dd6311 4906
ea47855f
AC
49072002-08-08 Andrew Cagney <ac131313@redhat.com>
4908
4909 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
4910 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
4911 powerpc*-*-*.
4912 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
4913
69db8bae
AC
49142002-08-08 Andrew Cagney <cagney@redhat.com>
4915
4916 * gcore.c (override_derive_stack_segment): Delete variable.
4917 (preempt_derive_stack_segment): Delete function.
4918 (derive_stack_segment): Delete function.
4919 (default_derive_stack_segment): Renamed to derive_stack_segment.
4920 (override_derive_heap_segment): Delete variable.
4921 (preempt_derive_heap_segment): Delete function.
4922 (derive_heap_segment): Delete function.
4923 (default_derive_heap_segment): Rename to derive_heap_segment.
4924
cb811fe7
MS
49252002-08-06 Michael Snyder <msnyder@redhat.com>
4926
4927 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
4928 * mips-tdep.c (mips_EABI_use_struct_convention,
4929 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
4930 New functions. (mips_use_struct_convention): Delete.
4931 (mips_gdbarch_init): set use_gdbarch_convention.
4932
8b389c40
MS
49332002-08-06 Michael Snyder <msnyder@redhat.com>
4934
4935 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
4936 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
4937 mips_o32_reg_struct_has_addr): New functions.
4938 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
4939
5c27f28a
AC
49402002-08-07 Andrew Cagney <ac131313@redhat.com>
4941
4942 * regcache.c (pseudo_register): Delete function.
4943 (fetch_register): Delete function.
4944 (store_register): Delete function.
4945 (regcache_raw_read, legacy_read_register_gen): Use
4946 target_fetch_registers instead of fetch_register.
4947 (legacy_write_register_gen, regcache_raw_write): Use
4948 target_store_register instead of store_register.
4949 (write_register_bytes): Ditto.
4950
4951 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
4952 (STORE_PSEUDO_REGISTER): Delete.
4953 * gdbarch.h, gdbarch.c: Regenerate.
4954
5b331675
CV
49552002-08-06 Corinna Vinschen <vinschen@redhat.com>
4956
4957 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
4958 write dump file binary.
4959
6acdf5c7
MS
49602002-08-05 Michael Snyder <msnyder@redhat.com>
4961
4962 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
4963 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
4964 (mips_gdbarch_init): Set N32 target to be mips64.
4965
b2f01c35
KB
49662002-08-06 Kevin Buettner <kevinb@redhat.com>
4967
4968 * frame.c (find_saved_register): Break out of loop once saved
4969 register address is found. Don't mention sparc in loop comment
4970 anymore.
4971
63db5580
KB
49722002-08-06 Kevin Buettner <kevinb@redhat.com>
4973
4974 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
4975 mips_default_saved_regsize to 8.
4976
5e34e75e
AC
49772002-08-06 Andrew Cagney <ac131313@redhat.com>
4978
4979 * gcore.c: Do not include <sys/procfs.h>.
4980 * Makefile.in (gcore.o): Update dependencies.
4981
eb4c54a2
AC
49822002-08-06 Andrew Cagney <cagney@redhat.com>
4983
4984 * configure.tgt: Make arc-*-* obsolete.
4985 * NEWS: Mention that arc-*-* has been identifed as obsolete.
4986 * MAINTAINERS: Make arc-elf obsolete.
4987 * arc-tdep.c: Make file obsolete.
4988 * config/arc/arc.mt: Ditto.
4989 * config/arc/tm-arc.h: Ditto.
4990
ced15480
TR
49912002-08-05 Theodore A. Roth <troth@verinet.com>
4992
c1bab85b 4993 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
ced15480 4994
b4743822
AC
49952002-08-05 Andrew Cagney <ac131313@redhat.com>
4996
4997 * mcore-tdep.c (mcore_gdbarch_init): Use
4998 generic_unwind_get_saved_register instead of
4999 generic_get_saved_register.
5000 * v850-tdep.c (v850_gdbarch_init): Ditto.
5001 * frv-tdep.c (frv_gdbarch_init): Ditto.
5002 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5003 * s390-tdep.c (s390_gdbarch_init): Ditto.
5004 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5005 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
5006 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
5007
3956d554
JB
50082002-08-05 Joel Brobecker <brobecker@gnat.com>
5009
5010 * objfiles.h: Add missing #include "symfile.h"
5011
5012 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
5013
8249c0d6
AC
50142002-08-04 Andrew Cagney <ac131313@redhat.com>
5015
5016 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
5017 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
5018 of FIELD_BITSIZE.
5019
b9d14705
DJ
50202002-08-04 Daniel Jacobowitz <drow@mvista.com>
5021
5022 * NEWS: Cleanup and nitpick.
5023
dd73b9bb
AC
50242002-08-03 Andrew Cagney <ac131313@redhat.com>
5025
5026 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
5027
043a27f8
AC
50282002-08-03 Andrew Cagney <ac131313@redhat.com>
5029
5030 * Makefile.in (gdbtk-bp.o): Update dependencies.
5031 (gdbtk-register.o): Ditto.
5032 (gdbtk-varobj.o): Ditto.
5033
46ce284d
AC
50342002-08-03 Andrew Cagney <cagney@redhat.com>
5035
5036 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
5037 m68hc11_fetch_pseudo_register.
5038 (m68hc11_pseudo_register_write): Replace
5039 m68hc11_store_pseudo_register.
5040 (m68hc11_gdbarch_init): Update.
5041
b66d6d2e
AC
5042Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
5043
5044 * gdbarch.sh: Include "gdb_string.h".
5045 * gdbarch.c: Regenerate.
5046
5047 * regcache.c: Include "gdb_string.h".
5048 * ax-general.c: Ditto.
5049 * varobj.c: Ditto.
5050 * std-regs.c: Ditto.
5051 * fbsd-proc.c: Ditto.
5052 * thread.c: Ditto.
5053
5054 * Makefile.in (regcache.o): Update dependencies.
5055 (thread.o, gdbarch.o): Ditto.
5056 (ax-general.o, gdbarch.o): Ditto.
5057 (varobj.o, std-regs.o): Ditto.
5058 (fbsd-proc.o): Specify dependencies.
5059
29e1842b
AC
50602002-08-02 Andrew Cagney <cagney@redhat.com>
5061
5062 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
5063 regnum.
5064 (regcache_cooked_write): Ditto.
5065
68365089
AC
50662002-08-02 Andrew Cagney <ac131313@redhat.com>
5067
5068 * regcache.c (regcache_cooked_read): New function.
5069 (regcache_cooked_write): New function.
5070 (read_register_gen): Rewrite using regcache_cooked_read.
5071 (write_register_gen): Rewrite using regcache_cooked_write.
5072
5073 * regcache.h (regcache_cooked_read, regcache_cooked_write):
5074 Declare.
5075
d8124050
AC
50762002-08-02 Andrew Cagney <cagney@redhat.com>
5077
5078 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
5079 Replace the architecture methods register_read and register_write.
5080 * gdbarch.h, gdbarch.c: Regenerate.
5081 * regcache.c (init_regcache_descr): Update.
5082 (read_register_gen): Update.
5083 (write_register_gen): Update.
5084 (supply_register): Update comment.
5085
5086 * sh-tdep.c (sh_gdbarch_init): Update.
5087 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
5088 `regcache' and `gdbarch' parameters. Make `buffer' a void
5089 pointer. Update code.
5090 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
5091 `regcache' and `gdbarch' parameters. Make `buffer' a constant
5092 void pointer. Update code.
5093 (sh64_register_write): Delete.
5094 (sh4_register_read): Delete.
5095 (sh64_register_read): Delete.
5096 (sh4_register_write): Delete.
5097 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
5098 void pointer, `to' parameter a void pointer.
5099 (sh_sh64_register_convert_to_raw): Ditto.
5100
a6425924
KB
51012002-08-01 Kevin Buettner <kevinb@redhat.com>
5102
5103 * mips-tdep.c (mips_register_virtual_type): Use architecture
5104 invariant return values.
5105
ff5922b5
AC
51062002-08-01 Andrew Cagney <cagney@redhat.com>
5107
5108 * linux-proc.c: Include "gdb_string.h".
5109 * Makefile.in (linux-proc.o): Update dependency list.
5110
32a6503c
KB
51112002-08-01 Kevin Buettner <kevinb@redhat.com>
5112
5113 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
5114 comment.
5115
ccaa32c7
GS
51162002-08-01 Grace Sainsbury <graces@redhat.com>
5117
5118 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
5119 to_insert_watchpoint, to_remove_watchpoint,
5120 to_stopped_by_watchpoint, to_stopped_data_address,
5121 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
5122 target vecctor. Define their corresponding macros so they call
5123 them.
5124
5125 * target.c: Add default and debug versions of for
5126 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
5127 to_insert_watchpoint, to_remove_watchpoint,
5128 to_stopped_by_watchpoint, to_stopped_data_address,
5129 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
5130
78fde5f8
KB
51312002-08-01 Kevin Buettner <kevinb@redhat.com>
5132
5133 * mips-tdep.c (mips_register_virtual_type): New function.
5134 (mips_gdbarch_init): Register mips_register_virtual_type()
5135 with gdbarch machinery.
5136 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
5137 this file instead of tm-bigmips.h.
5138 (MIPS_REGSIZE): Delete this macro.
5139 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
5140 multiarch version in mips-tdep.c will be found.
5141
db034ac5
AC
51422002-08-01 Andrew Cagney <cagney@redhat.com>
5143
5144 * NEWS: Menion that CHILL has been made obsolete.
5145
5146 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
db034ac5
AC
5147 * stabsread.c (read_range_type): Ditto.
5148 * gdbtypes.h: Ditto.
5149 * language.c (binop_type_check): Ditto.
5150 (binop_result_type): Ditto.
5151 (integral_type): Ditto.
5152 (character_type): Ditto.
5153 (string_type): Ditto.
5154 (boolean_type): Ditto.
5155 (structured_type): Ditto.
5156 (lang_bool_type): Ditto.
5157 (binop_type_check): Ditto.
5158 * language.h (_LANG_chill): Ditto.
5159 * dwarfread.c (set_cu_language): Ditto.
5160 * dwarfread.c (CHILL_PRODUCER): Ditto.
5161 * dwarfread.c (handle_producer): Ditto.
5162 * expression.h (enum exp_opcode): Ditto.
5163 * eval.c: Ditto for comments.
5164 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
5165 * expprint.c (print_subexp): Ditto.
5166 (print_subexp): Ditto.
5167 * valops.c (value_cast): Ditto.
5168 (search_struct_field): Ditto.
5169 * value.h (COERCE_VARYING_ARRAY): Ditto.
5170 * symfile.c (init_filename_language_table): Ditto.
5171 (add_psymbol_with_dem_name_to_list): Ditto.
5172 * valarith.c (value_binop): Ditto.
5173 (value_neg): Ditto.
5174 * valops.c (value_slice): Ditto.
5175 * symtab.h (union language_specific): Ditto.
5176 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
5177 (SYMBOL_DEMANGLED_NAME): Ditto.
5178 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
5179 * defs.h (enum language): Ditto.
5180 * symtab.c (got_symtab): Ditto.
5181 * utils.c (fprintf_symbol_filtered): Ditto.
5182
5183 * ch-typeprint.c: Make file obsolete.
5184 * ch-valprint.c: Make file obsolete.
5185 * ch-lang.h: Make file obsolete.
5186 * ch-exp.c: Make file obsolete.
5187 * ch-lang.c: Make file obsolete.
5188
5189 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
5190 CHILL_LIB.
5191 (TARGET_FLAGS_TO_PASS): Ditto.
5192 (CHILLFLAGS): Obsolete.
5193 (CHILL): Obsolete.
5194 (CHILL_FOR_TARGET): Obsolete.
5195 (CHILL_LIB): Obsolete.
5196 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
5197 ch-valprint.c.
5198 (HFILES_NO_SRCDIR): Remove ch-lang.h.
5199 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
5200 ch-lang.o.
5201 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
5202 targets.
5203
8aaf0b47
JB
52042002-07-31 Joel Brobecker <brobecker@gnat.com>
5205
5206 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
5207 This does not change anything at the moment, but will be helpful
5208 later when full Ada support is integrated.
5209
f3a7b3a5
KB
52102002-07-31 Kevin Buettner <kevinb@redhat.com>
5211
5212 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
5213 help message.
5214
fb850278
KB
52152002-07-31 Kevin Buettner <kevinb@redhat.com>
5216
5217 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
5218 and save it in a local variable. Use variable in later test.
5219
e3bddbfa
KB
52202002-07-31 Kevin Buettner <kevinb@redhat.com>
5221
5222 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
5223 test. (Thanks to Daniel Jacobowitz.)
5224
28d169de
KB
52252002-07-31 Kevin Buettner <kevinb@redhat.com>
5226
5227 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
5228 (mips_abi_strings): Add "n64".
5229 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
5230
7fe7e44e
KB
52312002-07-31 Kevin Buettner <kevinb@redhat.com>
5232
5233 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
5234 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
5235
c6caf090
KB
52362002-07-31 Kevin Buettner <kevinb@redhat.com>
5237
5238 * utils.c (host_pointer_to_address, address_to_host_pointer):
5239 Use gdb_assert() instead of explicit call to internal_error().
5240
c41669e0
KB
52412002-07-30 Kevin Buettner <kevinb@redhat.com>
5242
5243 * Makefile.in (rs6000-nat.o): Update dependencies.
5244
5245 From Nicholas Duffek:
5246 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
5247 (aix-thread.o): New rule.
5248 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
5249 * config/powerpc/aix432.mh: New file.
5250
2fda4977
DJ
52512002-07-30 Daniel Jacobowitz <drow@mvista.com>
5252
5253 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
5254 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
5255 (fetch_core_registers, ppc_linux_supply_gregset)
5256 (ppc_linux_supply_fpregset): New functions.
5257 (ppc_linux_regset_core_fns): New.
5258 (_initialize_ppc_linux_tdep): Call add_core_fns.
5259 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
5260 and ppc_linux_supply_gregset.
5261 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
5262 (supply_fpregset): Call ppc_linux_supply_fpregset.
5263 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
5264 corelow.o.
5265 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
5266
729051e6
DJ
52672002-07-30 Daniel Jacobowitz <drow@mvista.com>
5268
5269 * symtab.c (lookup_symbol): Demangle before lowercasing.
5270
5f8a3188
AC
52712002-07-30 Andrew Cagney <ac131313@redhat.com>
5272
5273 * symtab.h: Replace #include "gdb_obstack.h" with opaque
5274 declaration.
5275 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
5276 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
5277 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
5278 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
5279 "gdb_string.h".
5280 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
5281 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
5282 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
5283 (avr-tdep.o, mon960-rom.o): Ditto.
5284 (aout_stabs_gnu_h): Define.
5285 (symtab_h): Remove $(gdb_obstack_h).
5286
67f07146
JB
52872002-07-30 Jim Blandy <jimb@redhat.com>
5288
5289 Patch from David Carlton <carlton@math.stanford.edu>:
5290 * gdbinit.in: Move the `dir' commands that add GDB's own source
5291 directory to the search path to the end, so that the `gdb' source
5292 directory will be searched first.
5293
04ea0df1
AC
52942002-07-29 Andrew Cagney <ac131313@redhat.com>
5295
5296 * gdb_obstack.h: New file.
5297 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
5298 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
5299 * objfiles.h: Include "gdb_obstack.h".
5300 * Makefile.in (gdb_obstack_h): Define.
5301 (symtab_h): Add $(gdb_obstack_h).
5302 (objfiles_h): Add $(gdb_obstack_h).
5303
5304 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
5305 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
5306 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
5307 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
5308 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
5309 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
5310 * symfile.c, coffread.c, c-typeprint.c: Ditto.
5311 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
5312
5313 * Makefile.in (bcache.o): Update dependencies.
5314 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
5315 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
5316 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
5317 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
5318 (stabsread.o, symfile.o, symmisc.o): Ditto.
5319 (symtab.o, typeprint.o, macroexp.o): Ditto.
5320 (macrotab.o, mdebugread.o): Ditto.
5321 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
5322 (coff_ecoff_h, aout_aout64_h): Define.
5323 (aout_stabs_gnu_h, libaout_h): Define.
5324
d138e37a
AC
53252002-07-29 Andrew Cagney <cagney@redhat.com>
5326
5327 * regcache.c (struct regcache_descr): Rename nr_registers to
5328 nr_cooked_registers. Revise comments describing the structure
5329 member fields.
5330 (init_regcache_descr): Update.
5331 (init_legacy_regcache_descr): Update.
5332 (read_register_gen, write_register_gen): When a cooked register in
5333 the raw register range, directly access the value from the raw
5334 register cache.
5335
460e6ec3
AC
53362002-07-29 Andrew Cagney <ac131313@redhat.com>
5337
5338 * z8k-tdep.c: Do not include "obstack.h".
5339 * h8300-tdep.c, h8500-tdep.c: Ditto.
5340 * m68hc11-tdep.c, sh-tdep.c: Ditto.
5341 * valprint.c, v850-tdep.c: Ditto.
5342 * d10v-tdep.c, mn10300-tdep.c: Ditto.
5343 * mn10200-tdep.c: Ditto.
5344
5345 * Makefile.in (z8k-tdep.o): Update dependencies.
5346 (m68hc11-tdep.o, valprint.o): Ditto.
5347 (v850-tdep.o, d10v-tdep.o): Ditto.
5348 (mn10300-tdep.o, sparc-tdep.o): Ditto.
5349 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
5350 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
5351 (sh_opc_h, gdb_sim_sh_h): Define.
5352 (elf_sh_h, elf_bfd_h): Define.
5353 (opcode_m68hc11_h): Define.
5354 (OPCODES_SRC, OPCODES_DIR): define.
5355 (OPCODES): Use $(OPCODES_DIR).
5356 (gdb_sim_d10v_h): Rename sim_d10v_h.
5357 (gdb_sim_arm_h): Rename sim_arm_h.
5358
790c9cf0
KB
53592002-07-26 Kevin Buettner <kevinb@redhat.com>
5360
5361 * utils.c (host_pointer_to_address, address_to_host_pointer):
5362 Change internal_error() message to indicate function responsible
5363 for the error.
5364
9647fa49
KB
53652002-07-26 Kevin Buettner <kevinb@redhat.com>
5366
5367 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
5368 calls to local_hex_string_custom().
5369
dabbe2c0
KB
53702002-07-26 Kevin Buettner <kevinb@redhat.com>
5371
5372 * irix5-nat.c: Move IRIX shared library support from here...
5373 * solib-irix.c: ...to here. Revised substantially to work with
5374 generic solib framework.
5375
b96d0a4e
KB
5376 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
5377 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
5378 * mips-irix-tdep.c: New file.
5379
313fb2f6
KB
5380 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
5381 (mips-irix-tdep.o, solib-irix.o): New rules.
5382 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
5383 solib-irix.o.
5384 * config/mips/irix6.mt (TDEPFILES): Likewise.
5385 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
5386
ab2eaf26
KB
53872002-07-26 Kevin Buettner <kevinb@redhat.com>
5388
177e4768 5389 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
ab2eaf26
KB
5390 disabled (via ``#if 0'') includes.
5391
7244546a
KB
53922002-07-26 Kevin Buettner <kevinb@redhat.com>
5393
5394 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
5395 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
5396 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
5397 Add support for the fpscr register.
5398 * rs6000-nat.c (regmap, fetch_inferior_registers)
5399 (store_inferior_registers, fetch_core_registers): Likewise.
5400
dd7be90a
KB
54012002-07-26 Kevin Buettner <kevinb@redhat.com>
5402
5403 * rs6000-nat.c (language.h): Include.
5404 (special_regs): Delete this array.
5405 (regmap): New function.
5406 (fetch_register, store_register): Use regmap() to map gdb
5407 register numbers to ptrace register numbers. Also, use
5408 outputs from regmap() to make decisions regarding type of
5409 ptrace() call to make. In particular, don't compare against
5410 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
5411 (fetch_inferior_registers, store_inferior_registers): Where
5412 possible, obtain register numbers from tdep struct. Don't
5413 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
5414 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
5415 (LAST_UISA_SP_REGNUM): Delete.
5416
11bf77db
KB
54172002-07-25 Kevin Buettner <kevinb@redhat.com>
5418
5419 * rs6000-nat.c (ppc-tdep.h): Include.
d959a6ab
KB
5420 (fetch_registers, store_register, fetch_core_registers): Don't
5421 access registers[] directly. Instead, use supply_register() or
11bf77db
KB
5422 regcache_collect() as appropriate.
5423 (find_toc_address): Format hex address with local_hex_string().
5424
06afebeb
AC
54252002-07-25 Andrew Cagney <ac131313@redhat.com>
5426
5427 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
5428 bfd/elf32-frv.c.
5429
8c554d79
TT
54302002-07-24 Tom Tromey <tromey@redhat.com>
5431
5432 * jv-exp.y: Marked all strings with _().
5433 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
5434 internal_error.
5435 (MethodInvocation, CastExpression, parse_number, yyerror,
5436 java_type_from_name, push_expression_name, yylex): Typo fixes.
5437
e4c242d9
DJ
54382002-07-24 Daniel Jacobowitz <drow@mvista.com>
5439
5440 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
5441 (tee_file_flush, tee_file_write, tee_file_fputs)
5442 (tee_file_isatty): New.
5443 * ui-file.h (tee_file_new): Add prototype.
5444
ebf56fd3
AS
54452002-07-24 Aidan Skinner <aidan@velvet.net>
5446
5447 * ada-lang.c: Change k&r style function definitions to prototyped
5448 form.
5449 * ada-typeprint.c: Change k&r style function definitions to prototyped
5450 form.
5451 * ada-valprint.c: Change k&r style function definitions to prototyped
5452 form.
5453
7fb623f7
AC
54542002-07-24 Andrew Cagney <cagney@redhat.com>
5455
5456 * README: Remove reference to remote-bug.
5457 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
5458 remote-bug.c.
5459 (m88k-nat.o): Delete rule.
5460 (m88k-tdep.o): Delete rule.
5461 (remote-bug.o): Delete rule.
5462 * MAINTAINERS: Mark as obsolete.
5463 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
5464 * m88k-tdep.c: Make file obsolete.
5465 * config/m88k/m88k.mh: Ditto.
5466 * config/m88k/delta88v4.mh: Ditto.
5467 * config/m88k/delta88v4.mt: Ditto.
5468 * config/m88k/delta88.mt: Ditto.
5469 * config/m88k/delta88.mh: Ditto.
5470 * remote-bug.c: Ditto.
5471 * config/m88k/tm-delta88.h: Ditto.
5472 * config/m88k/nm-delta88v4.h: Ditto.
5473 * config/m88k/xm-delta88.h: Ditto.
5474 * config/m88k/xm-dgux.h: Ditto.
5475 * config/m88k/tm-m88k.h: Ditto.
5476 * config/m88k/nm-m88k.h: Ditto.
5477 * config/m88k/tm-delta88v4.h: Ditto.
5478 * m88k-nat.c: Ditto.
5479 * cxux-nat.c: Ditto.
5480 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
5481 and m88*-*-* obsolete.
5482 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
5483 m88*-*-* obsolete.
5484
37611a2b
AC
54852002-07-24 Andrew Cagney <cagney@redhat.com>
5486
5487 * findvar.c (extract_unsigned_integer): Make `addr' parameter
5488 constant. Same for local pointer variables.
5489 (extract_signed_integer): Ditto.
5490 * defs.h (extract_unsigned_integer): Update.
5491 (extract_signed_integer): Update.
5492
1aaa5f99
AC
54932002-07-24 Andrew Cagney <cagney@redhat.com>
5494
5495 * regcache.c (regcache_raw_write): Change buf parameter to a
5496 constant void pointer.
5497 (regcache_raw_read): Change buf parameter to a void pointer.
5498 (legacy_write_register_gen): Change myaddr parameter a constant
5499 void pointer.
5500 (supply_register): Change val parameter to a const void pointer.
5501 * regcache.h (regcache_raw_write): Update declaration.
5502 (regcache_raw_read): Update declaration.
5503 (supply_register): Update declaration.
5504
b4f5539f
TT
55052002-07-24 Tom Tromey <tromey@redhat.com>
5506
5507 * defs.h (gdb_readline_wrapper): Declare.
5508 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
5509 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
5510 * top.c (gdb_readline_wrapper): New function.
5511 (command_line_input): Use it.
5512
0818c12a
AC
55132002-07-24 Andrew Cagney <cagney@redhat.com>
5514
5515 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
5516 regcache_read and regcache_write.
5517 (regcache_raw_read_as_address): Replace regcache_read_as_address.
5518 * regcache.c: Update.
5519 * sh-tdep.c (sh64_push_arguments): Update comment.
5520 (sh_pseudo_register_read): Update.
5521 (sh_pseudo_register_write): Update.
5522 (sh4_register_read): Update.
5523 (sh4_register_write): Update.
5524 (sh64_pseudo_register_read): Update.
5525 (sh64_pseudo_register_write): Update.
5526 (sh64_register_read): Update.
5527 (sh64_register_write): Update.
5528 * i386-tdep.c (i386_extract_return_value): Update.
5529 (i386_extract_struct_value_address): Update.
5530 (i386_extract_return_value): Update.
5531 * blockframe.c (generic_read_register_dummy): Update.
5532 (generic_call_dummy_register_unwind): Update
5533 * infrun.c (write_inferior_status_register): Update.
5534
f7321c06
JB
55352002-07-23 Jim Blandy <jimb@redhat.com>
5536
5537 * parser-defs.h (expression_context_pc): Make this extern.
5538 (Thanks to Michael Snyder.)
5539
2037aebb
AC
55402002-07-23 Andrew Cagney <ac131313@redhat.com>
5541
5542 GDB 5.2.1 released from 5.2 branch.
5543 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
5544 * README: Update to mention 5.2.1.
5545
66504d44
MS
55462002-07-23 Mark Salter <msalter@redhat.com>
5547
5548 * remote.c (remote_read_bytes): Fix check for error.
5549
27bae383
KB
55502002-07-22 Kevin Buettner <kevinb@redhat.com>
5551
5552 * aix-thread.c (language.h): Include.
5553 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
5554 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
5555 Print newlines at end of debug messages.
5556 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
5557 (pdc_write_data): Use local_hex_string() instead of %llx formats.
5558
55592002-07-22 Kevin Buettner <kevinb@redhat.com>
5560
5561 * aix-thread.c (ppc-tdep.h): Include.
5562 (special_register_p): New function.
5563 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
5564 (store_regs_user_thread): Use register number information from
5565 gdbarch_tdep struct instead of hardcoded offsets relative to
5566 FIRST_UISA_SP_REGNUM.
5567 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
5568 special_register_p() instead of using FPLAST_REGNUM and
5569 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
5570 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
5571 will be MQ's register number.
5572
55732002-07-22 Michael Snyder <msnyder@redhat.com>
206d3d3c
KB
5574
5575 * aix-thread.c (ops): Rename to aix_thread_ops.
5576 (base_ops): Rename to base_target.
5577 (ops_attach): Rename to aix_thread_attach.
5578 (ops_detach): Rename to aix_thread_detach.
5579 (ops_resume): Rename to aix_thread_detach.
5580 (ops_wait): Rename to aix_thread_wait.
5581 (ops_kill): Rename to aix_thread_kill.
5582 (init_ops): Rename to init_aix_thread_ops.
5583 (ops_fetch_register): Rename to aix_thread_fetch_register.
5584 (ops_store_register): Rename to aix_thread_store_register.
5585 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
5586 (ops_thread_alive): Rename to aix_thread_thread_alive.
5587 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
5588 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
5589 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
5590 (fetch_regs_lib): Rename to fetch_regs_user_thread.
5591 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
5592 (store_regs_lib): Rename to store_regs_user_thread.
5593 (store_regs_kern): Rename to store_regs_kernel_thread.
5594
27bae383 55952002-07-22 Michael Snyder <msnyder@redhat.com>
cbe92db4
KB
5596
5597 * aix-thread.c (ops_prepare_to_store): Eliminate.
5598 (init_ops): Don't initialize ops.prepare_to_store.
5599 (store_regs_kern): Pre-fetch register buffers from child,
5600 because some registers may not be in the cache. Copy
5601 regs from register cache only if they are cached.
5602 (store_regs_lib): Copy regs from register cache only
5603 if they are cached.
5604 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
5605 fill_gprs64): Ditto.
5606
61c5da0b
KB
56072002-07-22 Kevin Buettner <kevinb@redhat.com>
5608
5609 * aix-thread.c (gdb_assert.h): Include.
5610 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
5611 register sizes (from register cache) match size of buffer holding
5612 register data.
5613 (fill_sprs32): Change parameter types to match those in the ptrace()
5614 buffer.
5615 (store_regs_lib): Likewise, but for 32-bit temporary variables.
5616 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
5617
56182002-07-22 Michael Snyder <msnyder@redhat.com>
5619
5620 * aix-thread.c (supply_sprs64): Cosmetic change.
5621 (supply_sprs32): Cosmetic change.
5622 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
5623 (fill_sprs64): Use regcache_collect instead of read_register.
5624 (store_regs_lib): Use regcache_collect instead of
5625 read_register. Use fill_sprs32 instead of fill_sprs64,
5626 if debugging a 32-bit architecture.
5627 (store_regs_kern): Use fill_gprs64 etc. to pull the values
5628 out of the register cache, instead of passing a pointer into
5629 the register cache directly to ptrace. Use regcache_collect
5630 insteaad of read_register.
5631 (ops_prepare_to_store): Use target_read_registers instead
5632 of read_register_bytes.
5633
36479eb1
AS
56342002-07-20 Aidan Skinner <aidan@velvet.net>
5635
5636 * MAINTAINERS: Add self under write after approval.
5637
80ae6ee2
AS
56382002-07-20 Aidan Skinner <aidan@velvet.net>
5639
5640 * ada-tasks.c: Change k&r style function definitions to prototyped
5641 form.
5642
8a8ab2b9
AC
56432002-07-19 Andrew Cagney <ac131313@redhat.com>
5644
5645 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
5646 * x86-64-tdep.c: Include "objfiles.h".
5647 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
5648 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
5649
fb16b900
ML
56502002-07-17 Michal Ludvig <michal@suse.cz>
5651
5652 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
5653 (update_context): Initialise cfa variable.
5654
0fe7bf7b
MS
56552002-07-17 Michael Snyder <msnyder@redhat.com>
5656
5657 * aix-thread.c: Shorten some long lines.
5658 Bring comments into line with code spec.
5659
488f131b
JB
56602002-07-18 Joel Brobecker <brobecker@gnat.com>
5661
5662 * infrun.c: Re-indent using gdb_indent.sh.
5663
46c415d2
JB
56642002-07-18 Joel Brobecker <brobecker@gnat.com>
5665
5666 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
5667 Leave the indentation temporarily untouched, to minimize the diffs.
5668
cdecafbe
EZ
56692002-07-18 Elena Zannoni <ezannoni@redhat.com>
5670
5671 * stabsread.c: Make os9k sections of the code obsolete,
5672 for real this time.
5673 * stabsread.h: Make os9k sections of the code obsolete.
5674
7b6aa020
ML
56752002-07-18 Michal Ludvig <mludvig@suse.cz>
5676
09ec9b38
ML
5677 * linux-low.c (regsets_store_inferior_registers): Add free()
5678 at the end of a loop to prevent memory leak.
5679 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
5680 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
7b6aa020
ML
5681 * config/sparc/tm-sp64linux.h: Make the rest of #endif
5682 line a comment.
4894ac5d 5683 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
7b6aa020 5684
233282cd
JB
56852002-07-17 Jim Blandy <jimb@redhat.com>
5686
5687 * macrocmd.c (info_macro_command): Remove newline from error
5688 message.
5689
7b6aa020 56902002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
2f14585c
JR
5691
5692 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
5693 (sh_gdbarch_init): Use it for sh-dsp.
5694
f7ef9339
KB
56952002-07-16 Kevin Buettner <kevinb@redhat.com>
5696
5697 * dwarf2read.c (read_initial_length): Handle older, non-standard,
5698 64-bit DWARF2 format.
5699
8dd72958
JB
57002002-07-16 Joel Brobecker <brobecker@gnat.com>
5701
5702 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
5703 <sys/proc.h> when not available.
5704
a99a9e1b
AC
57052002-07-16 Andrew Cagney <ac131313@redhat.com>
5706
5707 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
5708 * stabsread.c: Make os9k sections of the code obsolete.
5709 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
5710 * config/i386/i386os9k.mt: Make file obsolete.
5711 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
5712 (COMMON_OBS): Remove os9kread.o
5713 (SFILES): Remove os9kread.c.
5714 (os9kread.o, remote-os9k.o): Make target obsolete.
5715 * remote-os9k.c: Make file obsolete.
5716 * os9kread.c: Make file obsolete.
5717 * Makefile.in
5718
7a3085c1
AC
57192002-07-16 Andrew Cagney <ac131313@redhat.com>
5720
5721 * NEWS: Mention that the FR30 has been made obsolete.
5722 * fr30-tdep.c: Make file obsolete.
5723 * config/fr30/tm-fr30.h: Ditto.
5724 * config/fr30/fr30.mt: Ditto.
5725 * configure.tgt: Make fr30-*-elf obsolete.
5726 * MAINTAINERS: Make fr30-elf obsolete.
5727
28a93f5a
PM
57282002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
5729
5730 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
5731 found is not inside a section.
5732
be006b8b
KB
57332002-07-15 Kevin Buettner <kevinb@redhat.com>
5734
5735 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
5736 strerror().
5737 (pdc_realloc): Use xrealloc() instead of realloc().
5738
14fa3751
KB
57392002-07-15 Kevin Buettner <kevinb@redhat.com>
5740
5741 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
5742 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
5743 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
5744 macros.
5745
42cc437f
KB
57462002-07-15 Kevin Buettner <kevinb@redhat.com>
5747
5748 * aix-thread.c (ptrace_check): Eliminate goto.
5749 (sync_threadlists): Eliminate gotos. Also, fix array overrun
5750 problem.
5751
8e2c28d4
KB
57522002-07-15 Kevin Buettner <kevinb@redhat.com>
5753
5754 * aix-thread.c (gdbcmd.h): Include.
5755 (DEBUG, DBG, DBG2, dbg): Eliminate.
5756 (debug_aix_thread): New static global.
5757 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
5758 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
5759 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
5760 invocations to DBG and DBG2 macros to test against
5761 ``debug_aix_thread'' and call fprintf_unfiltered().
5762 (_initialize_aix_thread): Add new command "set debug aix-thread".
5763
30413464
AC
57642002-07-15 Andrew Cagney <ac131313@redhat.com>
5765
5766 From Gerhard Tonn <TON@de.ibm.com>:
5767 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
5768 instead of supply_register.
5769
7c43edc1
AC
57702002-07-15 Andrew Cagney <ac131313@redhat.com>
5771
5772 * dwarf2cfi.c: Include "gdb_assert.h".
5773 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
5774 non-NULL.
5775 (update_context): Do not use __func__. Add missing ``break''.
5776 (update_context): Do not use __func__.
5777
9364a0ef
EZ
57782002-07-15 Elena Zannoni <ezannoni@redhat.com>
5779
5780 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
5781 and its setting. Set gdbarch instruction printing functions
5782 directly. For non-rs6000 case use new function
5783 gdb_print_insn_powerpc.
5784 (gdb_print_insn_powerpc): New function.
5785
3fbeef0b
AC
57862002-07-13 Andrew Cagney <ac131313@redhat.com>
5787
92eb23c5 5788 * NEWS: Mention that the d30v has been marked obsolete.
3fbeef0b
AC
5789 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
5790 * configure.tgt: Mark d30v-*-* as obsolete.
5791 * d30v-tdep.c: Mark file as obsolete.
5792 * config/d30v/d30v.mt: Ditto.
5793 * config/d30v/tm-d30v.h: Ditto.
5794
aacb1f0a
AS
57952002-07-13 Aidan Skinner <aidan@velvet.net>
5796
5797 * ada-tasks.c (add_task_entry): replace calls to
5798 malloc() with xmalloc
5799 * ada-tasks.c (init_task_list): replace calls to free with xfree()
5800
5801 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
5802 ada_finish_decode_line_1, all_sals_for_line
5803 ada_breakpoint_rewrite): replace calls to free() with xfree()
5804
c11d79f2
KB
58052002-07-12 Kevin Buettner <kevinb@redhat.com>
5806
5807 From Nicholas Duffek (with minor changes by Martin Hunt,
5808 Louis Hamilton, and Kevin Buettner):
5809 * aix-thread.c: New file.
5810
8e19ed76
PS
58112002-07-12 Petr Sorfa <petrs@caldera.com>
5812
5813 * dwarf2read.c (dwarf2_invalid_attrib_class): New
5814 complaint for invalid attribute class or form.
5815 (read_func_scope): DW_AT_frame_base
5816 better handling of DW_AT_block*.
5817 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
5818 better handling of DW_AT_block*.
5819 (read_common_block): DW_AT_location
5820 better handling of DW_AT_block*.
5821 (read_partial_die): DW_AT_location better handling
5822 of DW_AT_block*.
5823 (new_symbol): DW_AT_external better handling of
5824 DW_AT_block*. Proper initialization of variable
5825 "addr".
5826 (attr_form_is_block): New function that returns true
5827 if the attribute's form is of DW_FORM_block*.
5828
295401f7
DJ
58292002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
5830
5831 * valops.c (find_method_list): Remove comment about
5832 removed STATIC_MEMFUNCP argument.
5833 (value_find_oload_method_list): Likewise.
5834
e42dc924
KB
58352002-07-12 Kevin Buettner <kevinb@redhat.com>
5836
5837 From Nicholas Duffek:
5838 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
5839 target_new_objfile_hook.
5840
6904b546
KB
58412002-07-12 Kevin Buettner <kevinb@redhat.com>
5842
5843 From Nicholas Duffek:
5844 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
5845 csect.
5846
53fe9346
AC
58472002-07-12 Andrew Cagney <cagney@redhat.com>
5848
5849 * MAINTAINERS: Mention --enable-sim-build-warnings.
5850 (m68hc11-elf): Disable sim build warnings.
5851 (m32r-elf): Mark as broken obsolete candidate.
5852 (x86_64-linux-gnu): Mark as buildable with -Werror.
5853 (arm-elf): Change -w to ``,'' which enables warnings but not
5854 -Werror.
5855
af5f3db6
AC
58562002-07-12 Andrew Cagney <ac131313@redhat.com>
5857
5858 * bcache.h: Update copyright.
5859 (struct bstring, struct bcache): Move definition to "bcache.c".
5860 Replaced by opaque declaration.
5861 (bcache_xfree): Replace free_bcache.
5862 (bcache_xmalloc, bcache_memory_used): Declare.
5863
5864 * bcache.c: Update copyright.
5865 (struct bstring, struct bcache): Moved to here from "bcache.h".
5866 Update comments.
5867 (bcache_xmalloc, bcache_memory_used): New functions.
5868 (bcache_xfree): Replace function free_bcache.
5869
5870 * Makefile.in (objfiles.o): Add $(bcache_h).
5871 (objfiles_h): Remove $(bcache_h).
5872 (symfile.o): Add $(bcache_h).
5873
5874 * symmisc.c: Update copyright.
5875 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
5876 (print_objfile_statistics): Use bcache_memory_used.
5877
5878 * symfile.c: Include "bcache.h".
5879 (reread_symbols): Use bcache_xfree.
5880 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
5881 (add_psymbol_to_list): Pass psymbol_cache by value.
5882 (add_psymbol_with_dem_name_to_list): Ditto.
5883
5884 * objfiles.h: Update copyright.
5885 (struct bcache): Declare opaque. Do not include "bcache.h".
5886 (struct objfile): Change psymbol_cache and macro_cache to ``struct
5887 bcache'' pointers.
5888 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
5889
5890 * objfiles.c: Include "bcache.h". Update copyright.
5891 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
5892 macro_cache.
5893 (free_objfile): Use bcache_xfree.
5894
444199e7
GS
58952002-07-11 Grace Sainsbury <graces@redhat.com>
5896
5897 * monitor.c (monitor_fetch_register): Make name a constant.
5898 (monitor_store_register): Same.
5899
261397f8
DJ
59002002-07-11 Daniel Jacobowitz <drow@mvista.com>
5901
5902 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
5903 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
5904 (finish_block) For non-function blocks, hash the symbol table. For
5905 function blocks, mark the symbol table as unhashed.
5906 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
5907 (msymbol_hash_iw): Likewise.
5908 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
5909 value.
5910 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
5911 (lookup_minimal_symbol): Likewise for both.
5912 * symtab.h (struct block): Add `hashtable' flag. Comment the
5913 hashtable.
5914 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
5915 (ALL_BLOCK_SYMBOLS): Update.
5916 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
5917 (struct symbol): Add `hash_next' pointer.
5918 * symtab.c (lookup_block_symbol): Search using the hash table when
5919 possible.
5920 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
5921 (search_symbols, find_addr_symbol): Likewise.
5922
5923 * dstread.c (process_dst_block): Clear hashtable bit for new block.
5924 (read_dst_symtab): Likewise.
5925 * jv-lang.c (get_java_class_symtab): Likewise.
5926 * mdebugread.c: Include "gdb_assert.h".
5927 (shrink_block): Assert that the block being modified is not hashed.
5928 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
5929 * symmisc.c (free_symtab_block): Walk the hash table when freeing
5930 symbols.
5931 (dump_symtab): Recognize hashed blocks.
5932 * printcmd.c (print_frame_args): Assert that function blocks do not
5933 have hashed symbol tables.
5934 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
5935 (fill_in_ada_prototype, debug_print_block): Likewise.
5936 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
5937
6f0eaa01
CV
59382002-07-11 Corinna Vinschen <vinschen@redhat.com>
5939
5940 * stack.c (print_frame): Use result of frame_address_in_block()
5941 instead of fi->pc when evaluating symbols.
5942 (backtrace_command_1): Ditto.
5943
a208b0cb
AC
59442002-07-11 Andrew Cagney <cagney@redhat.com>
5945
5946 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
5947 Make static.
5948
5949 * arm-tdep.c (arm_register_name): Make return type constant.
5950
a6b6b089
AC
59512002-07-10 Andrew Cagney <ac131313@redhat.com>
5952
5ae5f592
AC
5953 * win32-nat.c (has_detach_ability): Convert to strict ISO C
5954 prototype.
5955 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
5956 * s390-tdep.c (s390_fp_regnum): Ditto.
5957 (s390_read_fp): Ditto.
5958 (s390_pop_frame): Ditto.
5959 (_initialize_s390_tdep): Ditto.
5960 * remote.c (get_remote_state): Ditto.
5961 * procfs.c (mappingflags): Ditto.
5962 * memattr.c (_initialize_mem): Ditto.
5963 * mcore-tdep.c (mcore_pop_frame): Ditto.
5964 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
5965 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
5966 * language.c (set_case_str): Ditto.
5967 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
5968 * frv-tdep.c (new_variant): Ditto.
5969 (frv_stopped_data_address): Ditto.
5970 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
5971 (context_alloc): Ditto.
5972 (frame_state_alloc): Ditto.
5973 (unwind_tmp_obstack_init): Ditto.
5974 (unwind_tmp_obstack_free): Ditto.
5975 (cfi_read_fp): Ditto.
5976 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
5977 (cris_pop_frame): Ditto.
5978 * c-lang.c (scanning_macro_expansion): Ditto.
5979 (finished_macro_expansion): Ditto.
5980 (c_preprocess_and_parse): Ditto.
5981 * gdbarch.sh: Ditto.
5982 * gdbarch.h, gdbarch.c: Regenerate.
5983 * config/mn10200/tm-mn10200.h: Adjust indentation.
5984 * target.c: Adjust indentation.
5985 * symtab.h: Adjust indentation.
5986 * stabsread.h: Adjust indentation.
5987 * remote-es.c: Adjust indentation.
5988 * os9kread.c: Adjust indentation.
5989
59902002-07-10 Andrew Cagney <ac131313@redhat.com>
5991
a6b6b089
AC
5992 * wince.c (_initialize_wince): Rename _initialize_inftarg.
5993 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
5994
a1789893
GS
59952002-07-10 Grace Sainsbury <graces@redhat.com>
5996
5997 * NEWS: Mention m68k, mcore multi-arching.
5998 * MAINTAINERS: Change status of m68k, mcore to reflect
5999 multi-arching.
6000
02f0d45d
DJ
60012002-07-10 Daniel Jacobowitz <drow@mvista.com>
6002
6003 * valops.c (find_overload_match): Free oload_syms.
6004
f15f768e
JB
60052002-07-09 Joel Brobecker <brobecker@gnat.com>
6006
6007 Define HAVE_SYS_PROC_H if sys/proc.h exists
6008 * configure.in: Add check for sys/proc.h
6009 * config.in: Regenerate.
6010 * configure: Regenerate.
6011
902a7139
GS
60122002-07-09 Grace Sainsbury <graces@redhat.com>
6013
6014 * config/m68k/tm-m68k.h: Remove macros wrapped in
6015 #if !GDB_MULTI_ARCH.
6016
a534e424
AC
60172002-07-08 Andrew Cagney <ac131313@redhat.com>
6018
6019 * config.in, configure: Regenerate.
6020
9b94f7bf
MK
60212002-07-08 Mark Kettenis <kettenis@gnu.org>
6022
6023 * dwarf2cfi.c: Include "gcore.h".
6024 (execute_stack_op): Fix implementation of the
6025 DW_OP_deref and DW_OP_deref_size operators by letting do their
6026 lookup in the target.
6027
1d34db41
MK
60282002-07-07 Mark Kettenis <kettenis@gnu.org>
6029
6030 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
6031 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
6032 tdep->sc_sp_offset.
6033
79d5b63a
DJ
60342002-07-05 Daniel Jacobowitz <drow@mvista.com>
6035
6036 Fix PR gdb/595, gdb/602
6037 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
6038 Don't call value_cast, just read the vtable pointer; update comments
6039 to match.
6040
3bb912e8
GS
60412002-07-05 Grace Sainsbury <graces@redhat.com>
6042
6043 * config/mcore/tm-mcore.h: Remove file.
6044 * config/mcore/mcore.mt: Remove definition of TM_FILE
6045 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
6046
ca39387d
MK
60472002-07-05 Mark Kettenis <kettenis@gnu.org>
6048
6049 * i386bsd-tdep.c: Include "gdb_string.h".
6050
efdc1108
GS
60512002-07-04 Grace Sainsbury <graces@redhat.com>
6052
6053 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
6054 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
6055 mcore-tdep.
6056 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
6057 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
6058 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
6059 (RETVAL_REGNUM): Move macros from tm-mcore.h
6060 (mcore_reg_struct_has_addr): New function.
6061 (mcore_gdbarch_init): Added initializations for the macros removed
6062 from tm-mcore.h.
6063
bb21884d
MK
60642002-07-04 Mark Kettenis <kettenis@gnu.org>
6065
6066 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
6067 traditonal string branding within the ELF header.
6068
228c6d41
DJ
60692002-07-04 Daniel Jacobowitz <drow@mvista.com>
6070
6071 * symtab.c (remove_params): New function.
6072 (make_symbol_overload_list): Use it instead of cplus_demangle.
6073 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
6074
2404952e
MK
60752002-07-04 Mark Kettenis <kettenis@gnu.org>
6076
e5e4acad
MK
6077 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
6078
baadce09
MK
6079 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
6080 New variables.
6081 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
6082 and tdep->sigtramp_end.
6083 * i386obsd-nat.c: New file.
6084 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
6085
2404952e
MK
6086 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
6087 Don't call get_current_frame().
6088
9b4f1ba7
PM
60892002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
6090
6091 * i386-nat.c (child_post_startup_inferior): New function
6092 calling i386_cleanup_dregs if
6093 I386_USE_GENERIC_WATCHPOINTS is defined.
6094 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
6095 conditional to acknowledge that i386-nat.c has its
6096 own child_post_startup_inferior function.
6097
c0d1d883
MK
60982002-07-04 Mark Kettenis <kettenis@gnu.org>
6099
00f8375e
MK
6100 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
6101 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
6102 instead of MAX_REGISTER_RAW_SIZE.
6103 (i386_extract_return_value, i386_extract_struct_value_address):
6104 Convert to use regcache.
6105 (i386_gdbarch_init): Set max_register_raw_size and
6106 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
6107 Set extract_return_value and extract_struct_value_address instead
6108 of their deprecated variants.
6109
c0d1d883
MK
6110 Convert i386 target to generic dummy frames.
6111 * i386-tdep.c: Include "symfile.h".
6112 (i386_frameless_signal_p): Consider a function to be frameless if
6113 the pc points at the first instruction of the function.
6114 (i386_frame_chain): Handle (generic) call dummies.
6115 (i386_frame_saved_pc): Likewise.
6116 (i386_frame_init_saved_regs): Remove code dealing with call
6117 dummies on the stack.
6118 (i386_push_dummy_frame): Removed.
6119 (i386_call_dummy_words): Removed.
6120 (i386_fix_call_dummy): Removed.
6121 (i386_push_return_address): New function.
6122 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
6123 parameter, and don't call get_current_frame.
6124 (i386_pop_frame): New function.
6125 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
6126 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
6127 entry_point_address, set call_dummy_breakpoint_offset to 0, set
6128 call_dummy_length to 0, set call_dummy_words to NULL, set
6129 sizeof_call_dummy_words to 0, set fix_call_dummy to
6130 generic_fix_call_dummy, set pc_in_call_dummy to
6131 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
6132 generic_push_dummy_frame, set push_return_address to
6133 i386_push_return_address and set frame_chain_valid to
6134 generic_file_frame_chain_valid.
6135
049ee0e4
AC
61362002-07-03 Andrew Cagney <ac131313@redhat.com>
6137
6138 * gdbarch.sh (struct regcache): Add opaque declaration.
6139 (EXTRACT_RETURN_VALUE): New architecture method.
6140 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
6141 * gdbarch.h, gdbarch.c: Regenerate.
6142 * arch-utils.c (legacy_extract_return_value): New function.
6143 * arch-utils.h (legacy_extract_return_value): Declare.
6144 * values.c (value_being_returned): Re-enable code handling
6145 EXTRACT_STRUCT_VALUE_ADDRESS. Move
6146 deprecated_grub_regcache_for_registers call to block handling
6147 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
6148 (EXTRACT_RETURN_VALUE): Do not define.
6149
4e0d9804
GS
61502002-07-03 Grace Sainsbury <graces@redhat.com>
6151
6152 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
6153 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
6154 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
6155 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
6156 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
6157 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
6158 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
6159 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
6160 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
6161 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
6162 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
6163 argument so the function fits the prototype in the architecture
6164 vector.
6165 (mcore_pop_frame): Remove argument so the function fits the
6166 prototype. Use get_current_frame instead of the argument.
6167 (mcore_push_arguments): Change type of struct_return so the
6168 function can be used in the architecture vector.
6169 (mcore_store_struct_return): Add.
6170 (mcore_frame_init_saved_regs): Add.
6171 (mcore_gdbarch_init): Add function calls to replace the macros
6172 removed from tm-mcore.h
6173
36160dc4
AC
61742002-07-03 Andrew Cagney <ac131313@redhat.com>
6175
6176 * infcmd.c (print_return_value): Remove compatibility code calling
6177 deprecated_grub_regcache_for_registers.
6178
6179 * values.c: Include "regcache.h".
6180 (value_being_returned): Update. Use
6181 deprecated_grub_regcache_for_registers to extract the register
6182 buffer address.
6183 * value.h (value_being_returned): Change ``retbuf'' parameter to a
6184 ``struct regcache''.
6185 * Makefile.in (values.o): Add dependency on $(regcache_h).
6186
6187 * inferior.h (run_stack_dummy): Change type of second parameter to
6188 a ``struct regcache''.
6189 * valops.c (hand_function_call): Change type of retbuf to ``struct
6190 regcache''. Allocate using regcache_xmalloc, clean using
6191 make_cleanup_regcache_xfree.
6192 * infcmd.c (run_stack_dummy): Update. Use
6193 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
6194
6195 * regcache.c (do_regcache_xfree): New function.
6196 (make_cleanup_regcache_xfree): New function.
6197 * regcache.h (make_cleanup_regcache_xfree): Declare.
6198
e64d9b3d
MH
61992002-07-03 Martin M. Hunt <hunt@redhat.com>
6200
4dd79c29
MH
6201 * event-top.c (command_line_handler): Don't read past
6202 beginning of buffer.
e64d9b3d 6203
4dd79c29
MH
62042002-07-03 Martin M. Hunt <hunt@redhat.com>
6205
e64d9b3d
MH
6206 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
6207 struct frame_id.
6208 (varobj_create): Store frame_id for root.
6209 (varobj_gen_name): Use xasprintf.
6210 (varobj_update): Save and restore frame using get_frame_id() and
6211 frame_find_by_id().
6212 (create_child): Use xasprintf.
6213 (new_root_variable): Initialize frame_id.
6214 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
6215 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
6216 to prevent memory leak.
6217
26e6c56a
AC
62182002-07-03 Andrew Cagney <ac131313@redhat.com>
6219
6220 * valops.c (hand_function_call): Move declaration of retbuf to
6221 start of function, allocate using malloc, add a cleanup but before
6222 the inf_status cleanup, cleanup the buffer. Rename local variable
6223 old_chain to inf_status_cleanup.
6224
f436dd25
MH
62252002-07-03 Martin M. Hunt <hunt@redhat.com>
6226
6227 * top.c (execute_command): Use cmd_func() and cmd_func_p().
6228
6229 * cli/cli-decode.c (cmd_func_p): New function.
6230 (cmd_func): New function.
6231
6232 * command.h: Add cmd_func() and cmd_func_p().
6233
4cfe2084
GS
62342002-07-03 Grace Sainsbury <graces@redhat.com>
6235
6236 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
6237 (REGISTER_SIZE): Remove.
6238 (MAX_REGISTER_RAW_SIZE): Remove.
6239 (REGISTER_VIRTUAL_TYPE): Remove.
6240 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
6241 (REGISTER_NAME): Remove.
6242 (USE_GENERIC_DUMMY_FRAMES): Remove.
6243 (CALL_DUMMY): Remove.
6244 (CALL_DUMMY_START_OFFSET): Remove.
6245 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
6246 (CALL_DUMMY_LOCATION): Remove.
6247 (FIX_CALL_DUMMY): Remove.
6248 (CALL_DUMMY_ADDRESS): Remove.
6249 (SIZEOF_CALL_DUMMY_WORDS): Remove.
6250 (SAVE_DUMMY_FRAME_TOS): Remove.
6251 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
6252 (mcore_register_virtual_type): New function.
6253 (mcore_register_byte): New function.
6254 (mcore_register_size): New function.
6255 (mcore_register_name): New function.
6256 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
6257 macros removed from tm-mcore.h.
6258 (mcore_dump_tdep): Add.
6259 (_initialize_mcore_tdep): Add gdbarch_register call.
6260
4fd667e9
MK
62612002-07-03 Mark Kettenis <kettenis@gnu.org>
6262
6263 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
6264 frameless_look_for_prologue, such that we actually call this
6265 function.
6266
42f99ac2
JB
62672002-07-02 Joel Brobecker <brobecker@gnat.com>
6268
6269 * frame.h (frame_address_in_block): New function.
6270
6271 * blockframe.c (frame_address_in_block): New function extracted
6272 from get_frame_block().
6273 (get_frame_block): Use frame_address_in_block().
6274 (block_innermost_frame): Use frame_address_in_block() to match
6275 the frame pc address against the block boundaries rather than
6276 the frame pc directly. This prevents a failure when a frame pc
6277 is actually a return-address pointing immediately after the end
6278 of the given block.
6279
103a1597 62802002-07-02 Grace Sainsbury <graces@redhat.com>
83b4a0fe
GS
6281
6282 * MAINTAINERS: Add self under write after approval.
6283
62842002-07-02 Grace Sainsbury <graces@redhat.com>
6285
103a1597
GS
6286 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
6287 used in architecture vector. The default is
6288 m68k_local_breakpoint_from_pc.
6289 (m68k_local_breakpoint_from_pc): Add.
6290 (enum): Add register numbers from tm-m68k.h.
6291 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
6292 vector.
6293 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
6294 GDB_MULTI_ARCH_PARTIAL.
6295 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
6296 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
6297 m68k-tdep.c.
6298 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
6299 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
6300 to enum in m68k-tdep.c
6301
7a5a0534
JB
63022002-07-02 Joel Brobecker <brobecker@gnat.com>
6303
6304 * solib-osf.c (open_map): Compute the list of shared libraries
6305 loaded by the inferior, rather than the list of libraries loaded
6306 by GDB itself. Otherwise, GDB ends up reading the symbols from
6307 the wrong shared libraries...
6308
6f558d74
MK
63092002-07-02 Mark Kettenis <kettenis@gnu.org>
6310
b7d15bf7
MK
6311 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
6312 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
6313 macros.
6314 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
6315 Remove functions.
6316 (FRAMELESS_SIGNAL): Remove function.
6317 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
6318 i386_linux_saved_pc_after_call): Removed.
6319 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
6320 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
6321 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
6322
6bff26de
MK
6323 * i386-tdep.c (i386_frameless_signal_p): New function.
6324 (i386_frame_chain): Deal with frameless signals.
6325 (i386_sigtramp_saved_sp): New function.
6326 (i386_frame_saved_pc): Deal with frameless signals.
6327 (i386_saved_pc_after_call): Make sure the correct value is
6328 returned just after entry into a sigtramp.
6329 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
6330 i386fbsd4_sc_sp_offset): New variables.
6331 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
6332 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
6333 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
6334 similiar to what we already did for sc_pc_offset.
6335 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
6336 tdep->sc_sp_offset.
6337
6f558d74
MK
6338 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
6339
145564b7
ML
63402002-07-02 Michal Ludvig <mludvig@suse.cz>
6341
6342 * config/i386/tm-x86-64linux.h: New.
6343 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
6344 definitions.
6345 * config/i386/nm-x86-64.h: Rename to ...
6346 * config/i386/nm-x86-64linux.h: ... this one.
6347 * config/i386/x86-64linux.mh: Reflect the above change.
6348
3a1e71e3
MK
63492002-07-01 Mark Kettenis <kettenis@gnu.org>
6350
21d0e8a4
MK
6351 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
6352 with sigcontext_addr. Add sc_sp_offset.
6353 (i386bsd_sigtramp_saved_pc): Remove prototype.
6354 (i386bsd_sicontext_addr): Add prototype.
6355 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
6356 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
6357 (i386_svr4_sigtramp_saved_pc): Removed.
6358 (i386_svr4_sigcontext_addr): New function.
6359 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
6360 Initialize tdep->sigcontext_addr instead. Initialize
6361 tdep->sc_pc_offset and tdep->sc_sp_offset.
6362 (i386_gdbarch_init): Likewise.
6363 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
6364 any more.
6365 (i386bsd_sigtramp_saved_pc): Remove function.
6366 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
6367 Initialize tdep->sigcontext_addr instead. Initialize
6368 tdep->sc_pc_offset.
6369 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
6370 of tdep->sigtramp_saved_pc.
6371 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
6372 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
6373 instead.
6374
3a1e71e3
MK
6375 * i386-tdep.c (i386_frameless_function_invocation,
6376 i386_frame_num_args, i386_frame_init_saved_regs,
6377 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
6378 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
6379 i386_extract_return_value, i386_store_return_value,
6380 i386_extract_struct_value_address, i386_register_virtual_type,
6381 i386_register_convertible, i386_register_convert_to_virtual,
6382 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
6383 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
6384 static.
6385
52e9098c
MK
63862002-07-01 Mark Kettenis <kettenis@gnu.org>
6387
77b13a25
MK
6388 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
6389
52e9098c
MK
6390 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
6391 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
6392 this macro. Include "value.h".
6393
1b372fff
AS
63942002-06-30 Aidan Skinner <aidan@velvet.net>
6395
6396 * ada-exp.tab.c: remove as it's a generated file
6397 * ada-lex.c: remove as it's a generated file
6398
9c5045b5
MK
63992002-06-30 Mark Kettenis <kettenis@gnu.org>
6400
4a93c5bb
MK
6401 * config/i386/tm-i386.h (struct frame_info, struct
6402 frame_saved_regs, struct value, struct type): Remove forward
6403 declarations.
6404
322d4fe0
MK
6405 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
6406 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
6407 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
6408 (FILL_FPXREGSET): Define.
6409
fdd8263d
MK
6410 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
6411
482e577b
MK
6412 * configure.tgt (i[3456]86-*-openbsd*): Fold into
6413 i[3456]86-*-netbsd* case.
6414 * config/i386/tm-obsd.h: Removed.
6415 * config/i386/obsd.mt: Removed.
6416 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
6417 core-aout.o.
6418 (MH_CFLAGS): Add -DYYDEBUG=0.
6419
6916549a
MK
6420 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
6421 i386nbsd_sc_pc_offset on OpenBSD too.
6422
9c5045b5
MK
6423 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
6424 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
6425 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
6426 define.
6427 * i386bsd-tdep.c: Include "arch-utils.h".
6428 (i386bsd_aout_in_solib_call_trampoline): New function.
6429 (i386bsd_init_abi): Set in_solib_call_trampoline to
6430 i386bsd_aout_in_solib_call_trampoline.
6431 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
6432 in_solib_call_trampoline to generic_in_solib_call_trampoline.
6433
aa84d1bb
AC
64342002-06-28 Andrew Cagney <ac131313@redhat.com>
6435
6436 * macrotab.h: Do not include "obstack.h" or "bcache.h".
6437 (struct obstack, struct bcache): Add opaque declarations.
6438 * Makefile.in (macrotab_h): Update
6439
b4d83933
AC
64402002-06-28 Andrew Cagney <ac131313@redhat.com>
6441
6442 * blockframe.c (generic_find_dummy_frame): Change return type to
6443 ``struct regcache''.
6444 (struct dummy_frame): Replace field ``registers'' with regcache, a
6445 struct regcache object.
6446 (generic_find_dummy_frame): Update.
6447 (generic_push_dummy_frame): Update. Use regcache_xfree,
6448 regcache_xmalloc and regcache_cpy.
6449 (generic_pop_dummy_frame): Update. Use regcache_cpy and
6450 regcache_xfree.
6451 (deprecated_generic_find_dummy_frame): Update.
6452 (generic_read_register_dummy): Update. Use
6453 regcache_read_as_address.
6454 (generic_call_dummy_register_unwind): Update. Use regcache_read.
6455 (generic_get_saved_register): Update. Use regcache_read.
6456
08c0b5bc
AC
64572002-06-28 Andrew Cagney <ac131313@redhat.com>
6458
6459 * Makefile.in (objfiles_h): Add $(bcache_h).
6460 * objfiles.h: Include "bcache.h".
6461
6462 * Makefile.in (symtab_h): Remove $(bcache_h).
6463 * symtab.h: Do not include "bcache.h".
6464
1f89801a
AC
64652002-06-28 Andrew Cagney <ac131313@redhat.com>
6466
6467 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
6468 generic_func_frame_chain_valid.
6469
b9644b58
DB
64702002-06-28 David O'Brien <obrien@FreeBSD.org>
6471
6472 * config/i386/nm-fbsd.h: Include <sys/param.h>.
6473 * config/i386/tm-fbsd.h: Likewise.
6474
dd486634
AC
64752002-06-28 Andrew Cagney <ac131313@redhat.com>
6476
6477 * rs6000-tdep.c (rs6000_gdbarch_init): Use
6478 generic_unwind_get_saved_register.
6479
0b434a00
AC
64802002-06-27 Andrew Cagney <ac131313@redhat.com>
6481
6482 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
6483 * regcache.c (supply_register): Add missing argument to
6484 register_buffer call.
6485
f30e5a77
AC
64862002-06-27 Andrew Cagney <ac131313@redhat.com>
6487
6488 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
6489 Solaris /bin/grep does not not like it. From Peter Schauer.
6490
9f064c95
TT
64912002-06-26 Tom Tromey <tromey@redhat.com>
6492
6493 * command.h (add_setshow_cmd): Declare.
6494 (add_setshow_cmd_full): Declare.
6495 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
6496 returns void. Use add_setshow_cmd_full.
6497 (add_setshow_cmd_full): New function.
6498 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
6499 (add_setshow_boolean_cmd): Likewise.
6500
099c7589
JT
65012002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6502
6503 * config/vax/tm-vax.h: Protect from multiple inclusion.
6504 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
6505 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
6506 * config/vax/tm-vaxbsd.h: ...here. New file.
6507 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
6508
1d049c5e
JT
65092002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6510
6511 * config/vax/tm-vax.h (BREAKPOINT): Remove.
6512 (BELIEVE_PCC_PROMOTION): Remove.
6513 (AP_REGNUM): Move to...
6514 * config/vax/nm-vax.h: ...here.
6515 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
6516 (vax_breakpoint_from_pc): New function.
6517 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
6518 and gdbarch_believe_pcc_promotion.
6519
4791e091
JT
65202002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6521
6522 * Makefile.in (vax_tdep_h): Define.
6523 (vax-tdep.o): Use $(vax_tdep_h).
6524 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
6525 (vax_dump_tdep): New function.
6526 (_initialize_vax_tdep): Register vax_dump_tdep.
6527 * vax-tdep.h: Include osabi.h.
6528 (struct gdbarch_tdep): New.
6529
da130f98
AC
65302002-06-26 Andrew Cagney <cagney@redhat.com>
6531
6532 * frame.h (deprecated_generic_find_dummy_frame): Rename
6533 generic_find_dummy_frame.
6534 * blockframe.c (generic_find_dummy_frame): Make static.
6535 (deprecated_generic_find_dummy_frame): New function.
6536 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
6537 generic_find_dummy_frame with deprecated_find_dummy_frame.
6538 (sh64_nofp_frame_init_saved_regs): Ditto.
6539 (sh_fp_frame_init_saved_regs): Ditto.
6540 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
6541 (s390_frame_chain): Ditto.
6542 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
6543
6300c360
GS
65442002-06-26 Grace Sainsbury <graces@redhat.com>
6545
6546 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
6547 gdbarch vector are at the top.
6548 (NUM_REGS): Remove.
6549 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
6550 (FRAME_ARGS_ADDRESS): Remove.
6551 (FRAME_LOCALS_ADDRESS): Remove.
6552 (FRAME_NUM_ARGS): Remove.
6553 (FRAME_ARGS_SKIP): Remove.
6554 * m68k-tdep.c (enum): Add eumeration of special register numbers.
6555 (m68k_gdbarch_init): Add gdbarch initializations for macros
6556 undefined in tm-m68k.h
6557
1c617db8
GS
65582002-06-26 Grace Sainsbury <graces@redhat.com>
6559
6560 * monitor.h: Add the function regname to monitor_ops
6561 structure. This way NUM_REGS does not have to be a constant.
6562 * monitor.c (monitor_fetch_register): Added support for regname
6563 function. The function is called if the array regnames is NULL.
6564 (monitor_store_register): Same.
da130f98
AC
6565 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
6566 regnames array.
1c617db8
GS
6567 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
6568 cpu32bug_cmds.regname to point to new function.
6569 * abug-rom.c (abug_regname): Same as above.
6570 (init_abug_cmds): Same.
6571 * dbug-rom.c (dbug_regname): Same as above.
6572 (init_dbug_cmds): Same.
6573 * remote-est.c (est_regname): Same.
6574 (init_est_cmds): Same.
6575 * rom68k-rom.c (rom68k_regname): Same.
6576 (init_rom68k_cmds): Same.
6577
ea9365bb
TT
65782002-06-25 Tom Tromey <tromey@redhat.com>
6579
6580 * breakpoint.c (delete_command): Don't repeat `delete' commands.
6581
72cec141
AC
65822002-06-25 Andrew Cagney <cagney@redhat.com>
6583
6584 * infrun.c (stop_registers): Change variable's type to ``struct
6585 regcache'''.
6586 (xmalloc_inferior_status): Delete function.
6587 (free_inferior_status): Delete function.
6588 (normal_stop): Use regcache_cpy.
6589 (struct inferior_status): Change type of fields ``stop_registers''
6590 and ``registers'' to ``struct regcache''.
6591 (write_inferior_status_register): Use regcache_write.
6592 (save_inferior_status): Instead of calling
6593 xmalloc_inferior_status, allocate the inf_status buffer directly.
6594 Use regcache_dup_no_passthrough and regcache_dup to save the
6595 buffers.
6596 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
6597 Replace the stop_registers regcache instead of overriding it. Use
6598 regcache_xfree. Instead of calling free_inferior_status, xfree
6599 the buffer directly.
6600 (discard_inferior_status): Use regcache_xfree. Instead of calling
6601 free_inferior_status, xfree the buffer directly.
6602 (build_infrun): Use regcache_xmalloc.
6603 (_initialize_infrun): Delete redundant call to build_infrun.
6604
6605 * Makefile.in (infcmd.o): Add $(regcache_h).
6606
6607 * infcmd.c: Include "regcache.h".
6608 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
6609 obtain the address of `stop_registers' register buffer.
6610 (print_return_value): Ditto.
6611
6612 * inferior.h (struct regcache): Add opaque declaration.
6613 (stop_registers): Change variable's declared type to ``struct
6614 regcache''.
6615
defc6f8c
TT
66162002-06-24 Tom Tromey <tromey@redhat.com>
6617
c0e624e7
TT
6618 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
6619 * target.c (initialize_targets): Fixed typo in
6620 trust-readonly-sections `show' documentation.
6621
defc6f8c
TT
6622 * main.c: Marked all strings with _().
6623
2b236d82
DH
66242002-06-24 Don Howard <dhoward@redhat.com>
6625
6626 * memattr.c (create_mem_region): Treat hi == 0 as a special case
6627 that means max CORE_ADDR+1.
6628 (lookup_mem_region): Ditto.
6629 (mem_info_command): Ditto.
6630
942dc0e9
GS
66312002-06-24 Grace Sainsbury <graces@redhat.com>
6632
6633 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
6634 (REGISTER_BYTES_OK): Remove.
6635 (REGISTER_BYTES): Remove.
6636 (STORE_STRUCT_RETURN): Remove.
6637 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
6638 (STORE_RETURN_VALUE): Remove.
6639 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
6640 (FRAME_CHAIN): Remove.
6641 (FRAMELESS_FUNCTION_INVOCATION): Remove.
6642 (FRAME_SAVED_PC): Remove.
6643 * m68k-tdep.c (m68k_register_bytes_ok):Add.
6644 (m68k_store_struct_return): Add.
6645 (m68k_deprecated_extract_return_value): Add.
6646 (m68k_deprecated_extract_struct_value_address): Add.
6647 (m68k_store_return_value): Add.
6648 (m68k_frame_chain): Add.
6649 (m68k_frameless_function_invocation): Add.
6650 (m68k_frame_saved_pc): Add.
6651 (m68k_gdbarch_init): added set_gdbarch calls for new
6652 functions and deleted macros.
6653
03c30d4d
TT
66542002-06-23 Tom Tromey <tromey@redhat.com>
6655
6656 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
6657 (ALLDEPFILES): Likewise.
6658 (udiheaders): Removed.
6659 (udip2soc.o): Likewise.
6660 (udi2go32.o): Likewise.
6661 (udr.o): Likewise.
6662 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
6663
37e71372
AC
66642002-06-22 Andrew Cagney <ac131313@redhat.com>
6665
06a6ac57
AC
6666 * infrun.c (_initialize_infrun): Delete unnecessary call to
6667 build_infrun.
6668
37e71372
AC
6669 * regcache.h: Update comments describing the regcache_cpy family
6670 of functions.
6671 (regcache_save, regcache_restore): Delete declaration.
6672 (regcache_save_no_passthrough): Delete declaration.
6673 (regcache_restore_no_passthrough): Delete declaration.
6674 * regcache.c (regcache_save): Delete function.
6675 (regcache_save_no_passthrough): Delete function.
6676 (regcache_restore): Delete function.
6677 (regcache_restore_no_passthrough): Delete function.
6678
78f6d055
AC
66792002-06-21 Andrew Cagney <ac131313@redhat.com>
6680
6681 * config/m68k/tm-m68k.h: Fix typo.
6682 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
6683 (m68k_frame_init_saved_regs): Declare.
6684
78b119cb
JB
66852002-06-21 Jim Blandy <jimb@redhat.com>
6686
6687 Remove some vestiges of Harris 88k support.
6688 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
6689 register numbering quirk.
6690 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
6691 odd symbols occurring in Harris 88k ELF targets.
6692
0fbb3da7
TT
66932002-06-21 Tom Tromey <tromey@redhat.com>
6694
6695 * gdb_locale.h: New file.
6696 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
6697 (defs_h): Added gdb_locale.h.
6698 * configure, config.in: Rebuilt.
6699 * configure.in (PACKAGE): Define.
6700 * defs.h: Include gdb_locale.h.
6701 * main.c (captured_main): Call setlocale, bindtextdomain,
6702 textdomain.
6703
456f8b9d
DB
67042002-06-21 Dave Brolley <brolley@redhat.com>
6705
6706 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
6707 * config/frv/frv.mt: New file.
6708 * config/frv/tm-frv.h: New file.
6709 * configure.tgt: Support frv-*-*.
6710 * Makefile.in (frv-tdep.o): New target.
6711 * frv-tdep.c: New file.
6712 * NEWS: Mention frv.
6713
cdd463f9
DB
67142002-06-21 Dave Brolley <brolley@redhat.com>
6715
6716 * MAINTAINERS: Add self to "Write After Approval" list.
6717
5d3ed2e3
GS
67182002-06-21 Grace Sainsbury <graces@redhat.com>
6719
6720 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
6721 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
6722 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
6723 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
6724 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
6725
6726 * m68k-tdep.c: Include arch-utils.h
6727 (m68k_register_raw_size): Add.
6728 (m68k_register_virtual_size): Add.
6729 (m68k_register_virtual_type): Add.
6730 (m68k_register_name): Add.
6731 (m68k_stack_align): Add.
6732 (m68k_register_byte): Add.
6733 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
6734 tm-m68k.h.
6735
7f8e7424
GS
67362002-06-21 Grace Sainsbury <graces@redhat.com>
6737
a2c6a6d5 6738 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7f8e7424
GS
6739 m68k_find_saved_regs.
6740 (m68k_pop_frame): Removed saved_regs structure, and replaced
5d3ed2e3 6741 references to it with frame->saved_regs.
7f8e7424
GS
6742 (m68k_gdbarch_init): Added function calls to initialize the
6743 gdbarch structure.
a2c6a6d5
GS
6744 (m68k_fix_call_dummy): Add.
6745 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
6746 (CALL_DUMMY): Remove.
6747 (CALL_DUMMY_LENGTH): Remove.
6748 (CALL_DUMMY_START_OFFSET): Remove.
6749 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
6750 (FIX_CALL_DUMMY): Remove.
6751 (PUSH_DUMMY_FRAME): Remove.
6752 (POP_FRAME): Remove.
7f8e7424 6753
f461f5cf
PM
67542002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
6755
6756 * parse.c (parse_fprintf): New function used to avoid calls to
6757 fprintf in bison parser generated debug code.
6758 * parser-defs.h: Declaration of new parse_fprintf function.
6759 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
6760 Set YYDEBUG to 1 by default.
6761 Set YYFPRINTF as parse_fprintf.
6762
7f0c12ed
ML
67632002-06-21 Michal Ludvig <mludvig@suse.cz>
6764
6765 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
6766 encoding anymore.
6767 (pointer_encoding, enum ptr_encoding): New.
6768 (execute_cfa_program): Take care about pointer encoding.
6769 (dwarf2_build_frame_info): Only call parse_frame_info for
6770 .debug_frame and .eh_frame.
6771 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
6772 fixed augmentation handling, added relative addressing,
6773 ignore duplicate FDEs. Added comments.
19d833a2 6774 * dwarf2cfi.c: Reindented.
7f0c12ed 6775
87c4a039
EZ
67762002-06-20 Elena Zannoni <ezannoni@redhat.com>
6777
6778 * event-top.c (command_handler): Don't use space_at_cmd_start
6779 unless there is sbrk() on the host. Assign time and space data
6780 to union fields of the appropriate length.
6781
1cf877ad
ML
67822002-06-20 Michal Ludvig <mludvig@suse.cz>
6783
6784 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
6785 x86_64_register_name. Return type changed to 'const char *'.
6786 (x86_64_register_name2nr): Rename to x86_64_register_number.
6787 (x86_64_gdbarch_init): Update to reflect the change.
6788 * x86-64-tdep.h: Ditto.
6789 * x86-64-linux-nat.c (x86_64_fxsave_offset)
6790 (supply_fpregset): Ditto.
6791
3fadccb3
AC
67922002-06-19 Andrew Cagney <cagney@redhat.com>
6793
6794 * regcache.h: Update copyright.
6795 (struct regcache, struct gdbarch): Add opaque declarations.
6796 (current_regcache): Declare global variable.
6797 (regcache_read, regcache_write): Add gdbarch parameter.
6798 (regcache_save, regcache_save_no_passthrough)
6799 (regcache_restore, regcache_restore_no_passthrough)
6800 (regcache_dup, regcache_dup_no_passthrough)
6801 (regcache_cpy, regcache_cpy_no_passthrough)
6802 (deprecated_grub_regcache_for_registers)
6803 (deprecated_grub_regcache_for_register_valid)
6804 (regcache_valid_p): Add function declarations.
6805
6806 * regcache.c: Update copyright.
6807 (regcache_descr_handle): New global variable.
6808 (struct regcache_descr): Define.
6809 (init_legacy_regcache_descr, init_regcache_descr): New functions.
6810 (regcache_descr, xfree_regcache_descr): New functions.
6811 (struct regcache): Define.
6812 (regcache_xmalloc, regcache_xfree): New functions.
6813 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
6814 (regcache_dup, regcache_dup_no_passthrough): New functions.
6815 (regcache_valid_p, regcache_read_as_address): New functions.
6816 (deprecated_grub_regcache_for_registers): New function.
6817 (deprecated_grub_regcache_for_register_valid): New function.
6818 (current_regcache): New global variable.
6819 (register_buffer): Add regcache parameter. Update calls.
6820 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
6821 (read_register_gen, write_register_gen): Update register_buffer
6822 call. Test for legacy_p instead of gdbarch_register_read_p or
6823 gdbarch_register_write_p.
6824 (regcache_collect): Update register_buffer call.
6825 (build_regcache): Rewrite. Use deprecated grub functions.
6826 (regcache_save, regcache_save_no_passthrough): New functions.
6827 (regcache_restore, regcache_restore_no_passthrough): New
6828 functions.
6829 (_initialize_regcache): Create the regcache_data_handle. Swap
6830 current_regcache global variable.
6831
6832 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
6833 parameter to regcache_read and regcache_write calls.
6834 (sh4_register_read): Ditto.
6835 (sh64_pseudo_register_read): Ditto.
6836 (sh64_register_read): Ditto.
6837 (sh_pseudo_register_write): Ditto.
6838 (sh4_register_write): Ditto.
6839 (sh64_pseudo_register_write): Ditto.
6840 (sh64_register_write): Ditto.
6841
6842 * defs.h (XCALLOC): Define.
6843
152d9db6
GS
68442002-06-19 Grace Sainsbury <graces@redhat.com>
6845
6846 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
6847 * m68k-tdep.c (m68k_gdbarch_init): Added.
6848 (m68k_dump_tdep): Added.
6849
170911c7
DJ
68502002-06-19 Daniel Jacobowitz <drow@mvista.com>
6851
6852 * ada-lang.c (fill_in_ada_prototype): Update comment.
6853
2e4ebe70
DJ
68542002-06-19 Daniel Jacobowitz <drow@mvista.com>
6855
6856 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
6857 MIPS_ABI_LAST.
6858 (mips_abi_string, mips_abi_strings): New.
6859 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
6860 (mips_gdbarch_init): Set tdep->found_abi. Don't set
6861 tdep->mips_abi_string. Honor mips_abi_string. Default to
6862 O32 if no ABI is found.
6863 (mips_dump_tdep): Use mips_abi_strings.
6864 (mips_abi_update): New function.
6865 (_initialize_mips_tdep): Initialize mips_abi_string. Add
6866 ``set mips abi'' and ``show mips abi''. Check the size of
6867 mips_abi_strings.
6868
16775908
AC
68692002-06-19 Andrew Cagney <cagney@redhat.com>
6870
6871 * i386-linux-tdep.c (i386_linux_register_name): Make return type
6872 constant.
6873
5051bfa4 68742002-06-18 Joel Brobecker <brobecker@gnat.com>
16775908 6875
5051bfa4
JB
6876 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
6877 current frame using only the first stack size adjustment. All
6878 subsequent size adjustments are not considered to be part of
6879 the "static" part of the current frame.
6880 Compute the address of the saved registers relative to the
6881 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
6882 in use in this frame.
6883
56468235
DH
68842002-06-18 Don Howard <dhoward@redhat.com>
6885
6886 * valops.c (value_ind): Use value_at_lazy() when dereferencing
6887 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
6888 suggesting this solution.
6889
0b624158
AC
68902002-06-18 Andrew Cagney <ac131313@redhat.com>
6891
6892 * config/romp/xm-rtbsd.h: Delete file.
6893 * config/romp/rtbsd.mh: Delete file.
6894
221ea385
KS
68952002-06-18 Keith Seitz <keiths@redhat.com>
6896
6897 * breakpoint.c (condition_command): Post breakpoint_modify
6898 when a condition is added to an existing breakpoint.
6899 (commands_command): Likewise for commands.
6900 (set_ignore_count): Likewise for ignore counts.
6901 If no tty, do not simply return, still need to send event
6902 notification.
6903 (ignore_command): Only print a newline if the command came
6904 from a tty.
6905 Don't call breakpoints_changed, since this is now properly
6906 handled by set_ignore_count.
6907
5402eed1
AC
69082002-06-18 Andrew Cagney <cagney@redhat.com>
6909
6910 * MAINTAINERS: Note that cris-elf target can be compiled with
6911 -Werror.
6912 * cris-tdep.c (cris_register_name): Make return type constant.
6913 (cris_breakpoint_from_pc): Ditto.
6914
cc22880b
ML
69152002-06-18 Michal Ludvig <mludvig@suse.cz>
6916
6917 * frame.h (struct frame_info): Change type of context to
6918 'struct context'.
6919
fa88f677
AC
69202002-06-17 Andrew Cagney <cagney@redhat.com>
6921
6922 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
6923 pointer.
6924 * gdbarch.h, gdbarch.c: Regenerate.
6925 * config/mips/tm-mips.h (mips_register_name): Update.
6926 * i386-tdep.h (i386_register_name): Update.
6927 * mips-tdep.c (mips_register_name): Update
6928 * alpha-tdep.c (alpha_register_name): Update.
6929 * arch-utils.c (legacy_register_name): Update.
6930 * arch-utils.h (legacy_register_name): Update.
6931 * avr-tdep.c (avr_register_name): Update.
6932 * ia64-tdep.c (ia64_register_name): Update.
6933 * i386-tdep.c (i386_register_name): Update.
6934 * sparc-tdep.c (sparc32_register_name): Update.
6935 (sparc64_register_name): Update.
6936 (sparclite_register_name): Update.
6937 (sparclet_register_name): Update.
6938 * sh-tdep.c (sh_generic_register_name): Update.
6939 (sh_sh_register_name): Update.
6940 (sh_sh3_register_name): Update.
6941 (sh_sh3e_register_name): Update.
6942 (sh_sh_dsp_register_name): Update.
6943 (sh_sh3_dsp_register_name): Update.
6944 (sh_sh4_register_name): Update.
6945 (sh_sh64_register_name): Update.
6946 * s390-tdep.c (s390_register_name): Update.
6947 * rs6000-tdep.c (rs6000_register_name): Update.
6948 * ns32k-tdep.c (ns32k_register_name_32082): Update.
6949 (ns32k_register_name_32382): Update.
6950 * d10v-tdep.c (d10v_ts2_register_name): Update.
6951 (d10v_ts3_register_name): Update.
6952 * xstormy16-tdep.c (xstormy16_register_name): Update.
6953 * vax-tdep.c (vax_register_name): Update.
6954 * v850-tdep.c (v850_register_name): Update.
6955 * m68hc11-tdep.c (m68hc11_register_name): Update.
6956 * mn10300-tdep.c (mn10300_generic_register_name): Update.
6957 (am33_register_name): Update.
6958
ea1e7ef6
GS
69592002-06-17 Grace Sainsbury <graces@redhat.com>
6960
6961 * m68k-tdep.c: Reindented.
6962
9b02dd1b
AC
69632002-06-17 Andrew Cagney <ac131313@redhat.com>
6964
6965 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
6966 list of predefined types.
6967
8758dec1
MK
69682002-06-16 Mark Kettenis <kettenis@gnu.org>
6969
b6197528
MK
6970 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
6971 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
6972 REGISTER_CONVERT_TO_RAW): Remove defines.
6973 (i386_register_virtual_type, i386_register_convertible,
6974 i386_register_convert_to_virtual, i386_register_convert_to_raw):
6975 Remove prototypes.
6976 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6977 macros mentioned above.
6978
82b47e62
MK
6979 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
6980 (i386lynx_saved_pc_after_call): Remove prototype.
6981 * i386ly-tdep.c: Include "i386-tdep.h".
6982 (i386lynx_saved_pc_after_call): Make static. Use
6983 read_memory_nobpt instead of read_memory. Use
6984 read_memory_unsigned_integer instead of read_memory_integer.
6985 (i386lynx_init_abi): New function.
6986 (i386lynx_coff_osabi_sniffer): New function.
6987 (_initialize_i386bsd_tdep): New function.
6988
8758dec1
MK
6989 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
6990 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
6991 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
6992 (i386_fix_call_dummy): Remove prototype.
6993 * i386-tdep.c (i386_call_dummy_words): New variable.
6994 (i386_gdbarch_init): Adjust for removal of the
6995 macros mentioned above.
6996
e9e68a56
AC
69972002-06-15 Andrew Cagney <ac131313@redhat.com>
6998
6999 * command.h (add_setshow_auto_boolean_cmd): Replace
7000 add_set_auto_boolean_cmd.
7001 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
7002 add_set_auto_boolean_cmd.
7003 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
7004 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
7005 mask-address'' command.
7006 (show_mask_address): Add cmd parameter.
7007 * remote.c (add_packet_config_cmd): Update. Change type of
7008 set_func and show_func to cmd_sfunc_ftype.
7009 (_initialize_remote): Update `set remote Z-packet'
7010 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
7011 (show_remote_protocol_e_packet_cmd): Ditto.
7012 (show_remote_protocol_E_packet_cmd): Ditto.
7013 (show_remote_protocol_P_packet_cmd): Ditto.
7014 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
7015 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
7016 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
7017 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
7018 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
7019 (show_remote_protocol_Z_packet_cmd): Ditto.
7020 (show_remote_protocol_binary_download_cmd): Ditto.
7021 (show_remote_cmd): Pass NULL to all of above.
7022
fc08ec52
MK
70232002-06-15 Mark Kettenis <kettenis@gnu.org>
7024
7025 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
7026 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
7027 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
7028 POP_FRAME): Remove defines.
7029 (i386_push_arguments, i386_store_struct_return,
7030 i386_extract_return_value, i386_store_return_value,
7031 i386_extract_struct_value_address, i386_push_dummy_frame,
7032 i386_pop_frame): Renove prototypes.
7033 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7034 macros mentioned above.
7035
e707bbc2
AC
70362002-06-15 Andrew Cagney <ac131313@redhat.com>
7037
7038 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
7039 add_set_boolean_cmd.
7040 (add_setshow_cmd): New function.
7041 * command.h (add_setshow_boolean_cmd): Replace
7042 add_set_boolean_cmd.
7043 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
7044 and ``set rdiromatzero''.
7045 * maint.c (_initialize_maint_cmds): Update commented out code.
7046 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
7047 * target.c (initialize_targets): Update `set
7048 trust-readonly-sections'.
7049 * remote.c (_initialize_remote): Update `set remotebreak'.
7050
42fdc8df
MK
70512002-06-15 Mark Kettenis <kettenis@gnu.org>
7052
93924b6b
MK
7053 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
7054 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
7055 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
7056 fit into multi-arch framework.
7057 (i386_breakpoint_from_pc): New function.
7058 (i386_gdbarch_init): Adjust for removal of the macros mentioned
7059 above.
7060
42fdc8df
MK
7061 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
7062 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
7063 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
7064 (i386_frameless_function_invocation, i386_frame_num_args,
7065 i386_frame_init_saved_regs): Remove prototypes.
7066 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7067 macros mentioned above.
7068
9773a94b
AC
70692002-06-15 Andrew Cagney <ac131313@redhat.com>
7070
7071 * cli/cli-decode.c (set_cmd_cfunc): Update.
7072 (set_cmd_sfunc): Update.
7073 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
7074 (set_cmd_sfunc, set_cmd_cfunc): Update.
7075 * cli/cli-decode.h: Update.
7076
6e157172
MK
70772002-06-15 Mark Kettenis <kettenis@gnu.org>
7078
7079 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
7080 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
7081
7f19b9a2
AC
70822002-06-15 Andrew Cagney <ac131313@redhat.com>
7083
7084 * defs.h (auto_boolean): Declare enum.
7085 * command.h (cmd_auto_boolean): Delete enum.
7086 * mips-tdep.c (mask_address_var): Update.
7087 (mips_mask_address_p): Update.
7088 (show_mask_address): Update.
7089 * remote.c (struct packet_config): Update.
7090 (update_packet_config): Update.
7091 (show_packet_config_cmd): Update.
7092 (packet_ok): Update.
7093 (add_packet_config_cmd): Update.
7094 (_initialize_remote):
7095 * command.h: Update.
7096 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
7097 (do_setshow_command): Update.
7098 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
7099 * cli/cli-decode.h: Update.
7100
1cf88de5
MK
71012002-06-15 Mark Kettenis <kettenis@gnu.org>
7102
22ba8cf2
MK
7103 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
7104 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
7105 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
7106 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
7107 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
7108 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
7109
762c5349
MK
7110 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
7111 list of DJGPP COFF targets.
7112
091198bb
MK
7113 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
7114 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
7115 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
7116 (FP0_REGNUM): Remove define.
7117 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
7118 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
7119 (i386_register_virtual_size): Remove protoype.
7120 * i386-tdep.c (i386_register_virtual_size): Removed.
7121 (i386_extract_return_value, i386_store_return_value): Use
7122 FP0_REGNUM instead of NUM_FREGS to determine whether the
7123 floating-point registers are available.
7124 (i386_gdbarch_init): Tweak FIXME about FPU registers.
7125 Adjust for removal of macros mentioned above.
7126
71272002-06-15 Mark Kettenis <kettenis@gnu.org>
7128
fcc9bf01
MK
7129 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
7130 comments.
7131 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
7132 Remove prototypes.
7133 (supply_gregset, fill_gregset): Remove use of register keyword and
7134 remove declaration for regmap. Use I386_NUM_GREGS instead of
7135 NUM_REGS and NUM_FREGS.
7136 (FPREGSET_FSAVE_OFFSET): Remove.
7137 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
7138 NUM_FREGS to determine whether the floating-point registers are
7139 available.
7140
65e78234
MK
7141 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
7142 gnu_store_registers): Replace usage of NUM_GREGS with
7143 I386_NUM_GREGS.
7144
98df6387
MK
7145 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
7146 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
7147 usage of NUM_GREGS with I386_NUM_GREGS.
7148
099a9414
MK
7149 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
7150
57976e88
MK
7151 * i386bsd-nat.c: Include "i386-tdep.h".
7152 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
7153 I386_NUM_GREGS.
7154
b335f4a6
MK
7155 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
7156 and associated comment. They no longer make any sense, since we
7157 don't use this file anymore on Linux.
7158
1cf88de5
MK
7159 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
7160 * i386-tdep.c (i386_register_offset, i386_register_size): Use
7161 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
7162 elements in these arrays.
7163 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
7164 MAX_NUM_REGS.
7165
daa66587
MK
71662002-06-15 Mark Kettenis <kettenis@gnu.org>
7167
7168 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
7169 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
7170
26e9b323
AC
71712002-06-14 Andrew Cagney <cagney@redhat.com>
7172
7173 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
7174 EXTRACT_RETURN_VALUE.
7175 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
7176 EXTRACT_STRUCT_VALUE_ADDRESS.
7177 * gdbarch.h, gdbarch.c: Regenerate.
7178
7179 * values.c (value_being_returned): Handle
7180 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
7181 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
7182
7183 * arm-linux-tdep.c (arm_linux_init_abi): Update.
7184 * arm-tdep.c (arm_gdbarch_init): Update.
7185 * avr-tdep.c (avr_gdbarch_init): Update.
7186 * cris-tdep.c (cris_gdbarch_init): Update.
7187 * d10v-tdep.c (d10v_gdbarch_init): Update.
7188 * ia64-tdep.c (ia64_gdbarch_init): Update.
7189 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7190 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7191 * s390-tdep.c (s390_gdbarch_init): Update.
7192 * sh-tdep.c (sh_gdbarch_init): Update.
7193 * s390-tdep.c (s390_gdbarch_init): Update.
7194 * sparc-tdep.c (sparc_gdbarch_init): Update.
7195 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7196 * v850-tdep.c (v850_gdbarch_init): Update.
7197 * vax-tdep.c (vax_gdbarch_init): Update.
7198 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
7199 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7200
7201 * config/arc/tm-arc.h: Update.
7202 * config/d30v/tm-d30v.h: Update.
7203 * config/fr30/tm-fr30.h: Update.
7204 * config/h8300/tm-h8300.h: Update.
7205 * config/h8500/tm-h8500.h: Update.
7206 * config/i386/tm-i386.h: Update.
7207 * config/i386/tm-ptx.h: Update.
7208 * config/i386/tm-symmetry.h: Update.
7209 * config/i960/tm-i960.h: Update.
7210 * config/m32r/tm-m32r.h: Update.
7211 * config/m68k/tm-delta68.h: Update.
7212 * config/m68k/tm-linux.h: Update.
7213 * config/m68k/tm-m68k.h: Update.
7214 * config/m88k/tm-m88k.h: Update.
7215 * config/mcore/tm-mcore.h: Update.
7216 * config/mips/tm-mips.h: Update.
7217 * config/mn10200/tm-mn10200.h: Update.
7218 * config/pa/tm-hppa.h: Update.
7219 * config/pa/tm-hppa64.h: Update.
7220 * config/sparc/tm-sp64.h: Update.
7221 * config/sparc/tm-sparc.h: Update.
7222 * config/sparc/tm-sparclet.h: Update.
7223 * config/z8k/tm-z8k.h: Update.
7224
5179e78f
AC
72252002-06-14 Andrew Cagney <cagney@redhat.com>
7226
7227 * Makefile.in (i386_linux_tdep_h): Define.
7228 (i386_tdep_h, i387_tdep_h): Define.
7229 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
7230 $(i386_tdep_h) and $(i387_tdep_h).
7231 * i386-linux-nat.c: Include "i386-linux-tdep.h".
7232
8201327c
MK
72332002-06-14 Mark Kettenis <kettenis@gnu.org>
7234
edf393ac
MK
7235 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
7236 Already covered by the default.
7237
896fb97d
MK
7238 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
7239 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
7240 (i386_gdbarch_init): Initialize long_double_format and long_double
7241 bit.
7242
8201327c
MK
7243 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
7244 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
7245 Move these to ...
7246 * config/i386/i386sol2.mh: ... here.
7247 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
7248 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
7249 (SIGCONTEXT_PC_OFFSET): Remove define.
7250 (IN_SIGTRAMP): Remove define.
7251 * i386-sol2-tdep.c: New file.
7252
7253 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
7254 * config/i386/tm-i386nw.h: Removed.
7255
7256 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
7257 USE_STRUCT_CONVENTION): Remove defines.
7258 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7259 (get_longjmp_target): Remove prototype.
7260 (IN_SIGTRAMP): Remove define.
7261 (i386bsd_in_sigtramp): Remove prototype.
7262 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
7263 function. Update comment accordingly
7264 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
7265 (FRAME_SAVED_PC): Remove define.
7266 (i386bsd_frame_saved_pc): Remove prototype.
7267 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
7268 GET_LONGJMP_TARGET): Remove defines.
7269 (get_longjmp_target): Remove prototype.
7270 (IN_SIGTRAMP): Remove define.
7271 (i386bsd_in_sigtramp): Remove prototype.
7272 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
7273 function. Update comment accordingly
7274 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
7275 (FRAME_SAVED_PC): Remove define.
7276 (i386bsd_frame_saved_pc): Remove prototype.
7277 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
7278 Remove prototype.
7279 (USE_STRUCT_CONVENTION): Remove prototype.
7280 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
7281 declaration.
7282 (_initialize_i386bsd_nat): Revise logic to determine some
7283 constants at compile time when compiling a native GDB. Warn if
7284 things don't match up with what we expect.
7285 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
7286 Remove variables.
7287 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
7288 to use date stored in `struct gdbarch_tdep'.
7289 (i386bsd_sigcontext_offset): Remove varaible.
7290 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
7291 stored in `struct gdbarch_tdep'.
7292 (i386bsd_frame_saved_pc): Make static.
7293 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
7294 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
7295 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
7296 i386fbsd4_sc_pc_offset): New variables.
7297 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
7298 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
7299 functions.
7300 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
7301 functions.
7302 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
7303 Modify the value of i386fbsd_sigtramp_start and
7304 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
7305 i386fbsd_sigtramp_end.
7306 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
7307 function.
7308
7309 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
7310 define to i386-linux-tdep.h.
7311 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
7312 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
7313 defines.
7314 (i386_linux_register_name, i386_linux_register_byte,
7315 i386_linux_register_raw_size): Remove prototypes.
7316 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
7317 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
7318 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
7319 TARGET_WRITE_PC): Remove defines.
7320 (i386_linux_in_sigtramp, i386_linux_frame_chain,
7321 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
7322 i386_linux_write_pc): Remove prototypes.
7323 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7324 (get_longjmp_target): Remove prototype.
7325 * i386-linux-tdep.h: New file.
7326 * i386-linux-nat.c: Include "i386-linux-tdep.h".
7327 * i386-linux-tdep.c: Include "i386-tdep.h" and
7328 "i386-linux-tdep.h".
7329 (i386_linux_register_name, i386_linux_register_byte,
7330 i386_linux_register_raw_size, i386_linux_in_sigtramp,
7331 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
7332 Make static.
7333 (i386_linux_init_abi): New function.
7334 (_initialize_i386_linux_tdep): New function.
7335
7336 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
7337 (i386_saved_pc_after_call): Remove prototype.
7338 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
7339 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
7340 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
7341 (i386_register_name, i386_stab_reg_to_regnum,
7342 i386_dwarf_reg_to_regnum): Remove prototypes.
7343 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
7344 SIZEOF_SSE_REGS): Remove defines.
7345 (REGISTER_BYTES): Remove define.
7346 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
7347 (i386_register_byte, i386_register_raw_size): Remove prototypes.
7348 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
7349 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
7350 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
7351 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
7352 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
7353 (get_longjmp_target): Remove prototype.
7354 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
7355 (sigtramp_saved_pc): Remove define.
7356 (i386v4_sigtramp_saved_pc): Remove prototype.
7357 * config/i386/tm-go32.h (FRAME_CHAIN,
7358 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
7359 (i386go32_frame_saved_pc): Remove prototype.
7360 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7361 (get_longjmp_target): Remove prototype.
7362 * i386-tdep.h: Include "osabi.h".
7363 (enum i386_abi): Removed.
7364 (enum struct_return): New enum.
7365 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
7366 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
7367 sc_pc_offset members.
7368 (i386_gdbarch_register_os_abi): Remove prototype.
7369 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
7370 I386_SSE_NUM_REGS): New defines.
7371 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
7372 I386_SSE_SIZEOF_REGS): New defines.
7373 (i386_register_name, i386_register_byte, i386_register_raw_size):
7374 New prototypes.
7375 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
7376 (i386bsd_sigtramp_saved_pc): New prototype.
7377 * i386-tdep.c: Don't include "elf-bfd.h".
7378 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
7379 i386_frame_chain, i386_saved_pc_after_call): Make static.
7380 (i386_frame_saved_pc): Rewrite to call architecture dependent
7381 function to deal with signal handlers. Make static.
7382 (i386go32_frame_saved_pc): Removed.
7383 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
7384 Removed.
7385 (i386_get_longjmp_target): New function.
7386 (default_struct_convention, pcc_struct_convention,
7387 reg_struct_convention, valid_conventions, struct_convention): New
7388 variables.
7389 (i386_use_struct_convention): New function.
7390 (i386v4_sigtramp_saved_pc): Renamed to
7391 i386_svr4_sigtramp_saved_pc. Made static. Moved.
7392 (i386_pc_in_sigtramp): New function.
7393 (i386_abi_names): Removed.
7394 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
7395 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
7396 Removed.
7397 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
7398 i386_gdbarch_register_os_abi): Removed.
7399 (struct i386_abi_handler): Removed.
7400 (i386_abi_handler_list): Removed.
7401 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
7402 functions.
7403 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
7404 i386_nw_init_abi): New functions.
7405 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
7406 Use set_gdbarch_xxx() calls instead of relying on macros for a
7407 number of calls.
7408 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
7409 (_initialize_i386_tdep): Add new 'struct-convcention' command.
7410 Register the various architecture variants defined in this file.
7411
ad2f7632
DJ
74122002-06-14 Daniel Jacobowitz <drow@mvista.com>
7413
7414 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
7415 (struct main_type): Remove arg_types member. Update comments for
7416 struct field.
7417 (TYPE_ARG_TYPES): Remove.
7418 (TYPE_FN_FIELD_ARGS): Update.
7419 (smash_to_method_type): Update prototype.
7420
7421 * c-typeprint.c (cp_type_print_method_args): Take method type
7422 instead of argument list. Use new argument layout. Simplify.
7423 (c_type_print_args): Use new argument layout. Simplify.
7424 (c_type_print_base): Update call to cp_type_print_method_args.
7425 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
7426 argument; use die->type instead. Update call to
7427 smash_to_method_type.
7428 (read_structure_scope): Update call to dwarf2_add_member_fn.
7429 * gdbtypes.c (allocate_stub_method): Update comment.
7430 (smash_to_method_type): Take new NARGS and VARARGS arguments.
7431 Use new argument layout.
7432 (check_stub_method): Use new argument layout. Don't count
7433 void as an argument.
7434 (print_arg_types): Update comments. Use new argument layout.
7435 (recursive_dump_type): Don't print arg_types member.
7436 * hpread.c (hpread_read_struct_type): Use new argument layout.
7437 (fixup_class_method_type): Likewise.
7438 (hpread_type_lookup): Likewise.
7439 * stabsread.c (read_type): Update calls to read_args and
7440 smash_to_method_type.
7441 (read_args): Use new argument layout. Simplify.
7442 * valops.c (typecmp): Use new argument layout. Update parameters
7443 and comments. Simplify.
7444 (hand_function_call): Use new argument layout.
7445 (search_struct_method): Update call to typecmp.
7446 (find_overload_match): Use new argument layout.
7447
6da02953
DJ
74482002-06-13 Daniel Jacobowitz <drow@mvista.com>
7449
7450 * NEWS: Mention multithreaded debug support for gdbserver.
7451
519b2366
DJ
74522002-06-13 Daniel Jacobowitz <drow@mvista.com>
7453
7454 * MAINTAINERS: Mention NEWS.
7455
6c0d6680
DJ
74562002-06-13 Daniel Jacobowitz <drow@mvista.com>
7457
7458 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
7459 (struct mips_objfile_private, compare_pdr_entries): New.
7460 (non_heuristic_proc_desc): Read the ".pdr" section if it
7461 is present.
7462
6529d2dd
AC
74632002-06-12 Andrew Cagney <ac131313@redhat.com>
7464
7465 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
7466 (arm_debug): New static variable.
7467 (_initialize_arm_tdep): Add ``set debug arm'' command.
7468
26216b98
AC
74692002-06-12 Andrew Cagney <ac131313@redhat.com>
7470
7471 * Makefile.in (sim_arm_h): Define.
7472 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
7473 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
7474 (arm_register_sim_regno): New function, map an internal REGNUM
7475 onto a simulator register number.
7476 (arm_gdbarch_init): Set register_sim_regno.
7477
814b3ba0
AH
74782002-06-09 Aldy Hernandez <aldyh@redhat.com>
7479
7480 * MAINTAINERS: Add self.
7481
475b0867
JB
74822002-06-11 Jim Blandy <jimb@redhat.com>
7483
919d772c
JB
7484 * source.c (source_info): Mention whether the symtab has
7485 information about preprocessor macros.
7486
475b0867
JB
7487 Call the command `info macro', not `show macro'.
7488 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
7489 Fix error message.
7490 (_initialize_macrocmd): Register `info_macro_command' in
7491 `infolist', not `showlist'.
7492
9e364162
DJ
74932002-06-11 Daniel Jacobowitz <drow@mvista.com>
7494
7495 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
7496 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
7497 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
7498 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
7499 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
7500 unconditionally.
7501 (set_mipsfpu_single_command, set_mipsfpu_double_command)
7502 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
7503 (_initialize_mips_tdep): Remove dead code.
7504 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
7505 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
7506 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
7507 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
7508 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
7509 MIPS_LAST_FP_ARG_REGNUM): Remove.
7510
23aa4c72
ML
75112002-06-11 Michal Ludvig <mludvig@suse.cz>
7512
7513 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
7514 (unwind_tmp_obstack_free, parse_frame_info)
7515 (update_context, cfi_read_fp, cfi_write_fp)
7516 (cfi_frame_chain, cfi_init_extra_frame_info)
7517 (cfi_virtual_frame_pointer): Use the above function.
264d1763 7518 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
23aa4c72 7519
70eb15a4
CV
75202002-06-11 Corinna Vinschen <vinschen@redhat.com>
7521
7522 * v850-tdep.c (v850_type_is_scalar): New function.
7523 (v850_use_struct_convention): Match current gcc implementation
7524 as close as possible.
7525 (v850_push_arguments): Fix stack_offset handling. Don't write
7526 struct_addr into register. This is done by v850_store_struct_return.
7527 (v850_extract_return_value): Care for structs.
7528 (v850_store_return_value): Ditto.
7529 (v850_store_struct_return): Actually write address.
7530
482a4d06
ML
75312002-06-11 Michal Ludvig <mludvig@suse.cz>
7532
7533 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
7534 without debug information too.
7535
d855c300
AC
75362002-06-10 Andrew Cagney <ac131313@redhat.com>
7537
7538 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
7539 Make multi-arch pure.
7540 * gdbarch.h, gdbarch.c: Re-generate.
7541 * arm-tdep.c (arm_print_float_info): Update.
7542 * arch-utils.h (default_print_float_info): Update.
7543 * arch-utils.c (default_print_float_info): Update.
7544 * infcmd.c (float_info): Update call.
7545
dd12a101
AC
75462002-06-10 Andrew Cagney <ac131313@redhat.com>
7547
7548 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
7549 the front of the initialize list.
7550
101dcfbe
AC
75512002-06-10 Andrew Cagney <ac131313@redhat.com>
7552
7553 * infrun.c (struct inferior_status): Replace fields
7554 selected_frame_address and selected_level with field
7555 selected_frame_id.
7556 (save_inferior_status): Update. Use get_frame_id.
7557 (struct restore_selected_frame_args): Delete.
7558 (restore_selected_frame): Update. Use frame_find_by_id.
7559 (restore_inferior_status): Update.
7560
7561 * breakpoint.h (struct breakpoint): Change type of
7562 watchpoint_frame to frame_id.
7563 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
7564 call to get_current_frame.
7565 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
7566 get_current_frame.
7567 (watchpoint_check): Use frame_find_by_id.
7568
7569 * frame.h (record_selected_frame): Delete declaration.
7570 * stack.c (record_selected_frame): Delete function.
7571
7572 * frame.h (struct frame_id): Define.
7573 (get_frame_id): Declare.
7574 (frame_find_by_id): Declare.
7575 * frame.c (frame_find_by_id): New function.
7576 (get_frame_id): New function.
7577
304270b6
AV
75782002-06-10 Andrey Volkov <avolkov@transas.com>
7579
7580 * ser-e7kpc.c: Fix duplicated define and call of
7581 _initialize_ser_e7000pc
7582
2f2cf184
DJ
75832002-06-09 Daniel Jacobowitz <drow@mvista.com>
7584
7585 * signals/signals.c (target_signal_from_host): Fix #ifdef
7586 SIGRTMIN case.
7587 (do_target_signal_to_host): Likewise.
7588
caaa3122
DJ
75892002-06-09 Daniel Jacobowitz <drow@mvista.com>
7590
7591 * mips-tdep.c (mips_find_abi_section): New function.
7592 (mips_gdbarch_init): Call it.
7593
6ac5df3a
MK
75942002-06-09 Mark Kettenis <kettenis@gnu.org>
7595
7596 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
7597 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
7598 after Andrew's 2002-06-08 gdbarch change.
7599
82ea117a
MK
76002002-06-09 Mark Kettenis <kettenis@gnu.org>
7601
7602 * i386-linux-nat.c (suppy_gregset): Don't supply
7603 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
7604 register cache.
7605 (fill_gregset): Don't fetch it under the same circumstances.
7606
3c25f8c7
AC
76072002-06-09 Andrew Cagney <cagney@redhat.com>
7608
7609 * Makefile.in (callback_h): Define.
7610 (remote_sim_h): Update path to remote-sim.h.
7611 (remote-rdp.o): Add $(callback_h).
7612 (remote-sim.o): Use $(callback_h).
7613 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
7614 * remote-rdp.c: Include "gdb/callback.h".
7615
1029b7fa
MK
76162002-06-09 Mark Kettenis <kettenis@gnu.org>
7617
7618 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
7619 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
7620
616675d3
AC
76212002-06-08 Andrew Cagney <ac131313@redhat.com>
7622
a3efda28
AC
7623 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
7624 * rdi-share/serpardr.c: Ditto.
7625 * rdi-share/unixcomm.c: Ditto.
7626 * rdi-share/serdrv.c: Ditto.
7627 * rdi-share/hostchan.h: Ditto.
7628 * rdi-share/hostchan.c: Ditto.
7629 * rdi-share/host.h: Ditto.
7630 * rdi-share/devsw.c: Ditto.
7631
c5f10366
AC
7632 * objfiles.h: Change type of obj_private to void pointer.
7633 * pa64solib.c: Update copyright. Don't include "assert.h", use
7634 strcmp instead of STREQ, use LONGEST, do not use PTR
7635 * somsolib.c: Ditto.
7636
616675d3
AC
7637 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
7638 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
7639 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
7640
e4b415d9
AC
76412002-06-08 Andrew Cagney <ac131313@redhat.com>
7642
7643 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
7644 (default_get_saved_register): Delete function.
7645 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
7646 generic_unwind_get_saved_register.
7647 * gdbarch.h, gdbarch.c: Re-generate.
7648
ca0d0b52
AC
76492002-06-08 Andrew Cagney <ac131313@redhat.com>
7650
7651 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
7652 generic_func_frame_chain_valid.
7653 * gdbarch.h, gdbarch.c: Re-generate.
7654 * blockframe.c (generic_func_frame_chain_valid): Only check
7655 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
7656 passing FP to PC_IN_CALL_DUMMY.
7657 Fix PR gdb/360.
7658
76860b5f
AC
76592002-06-08 Andrew Cagney <ac131313@redhat.com>
7660
7661 * gdbarch.sh (struct gdbarch_data): Add field init_p.
7662 (register_gdbarch_data): Initialize init_p.
7663 (gdbarch_data): Initialize data pointer using the init function.
7664 (init_gdbarch_data): Delete function.
7665 (gdbarch_update_p): Update.
7666 (initialize_non_multiarch): Update.
7667 (struct gdbarch): Add field initialized_p.
7668 * gdbarch.h, gdbarch.c: Re-generate.
7669
8dda9770
ML
76702002-06-07 Michal Ludvig <mludvig@suse.cz>
7671
7672 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
7673 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
7674 better do the things actually here.
7675 * x86-64-tdep.c (x86_64_register_name2nr): New.
7676 (x86_64_register_name): Renamed to x86_64_register_nr2name.
7677 (x86_64_gdbarch_init): Respect the above change.
7678 * x86-64-tdep.h (x86_64_register_name2nr)
7679 (x86_64_register_nr2name): Add prototypes.
7680 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
7681
3d79a47c
MS
76822002-06-06 Michael Snyder <msnyder@redhat.com>
7683
7bd91a28
MS
7684 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
7685 Delete extra braces and re-indent.
7686 (d10v_store_return_value): Char return values
3d79a47c
MS
7687 must be shifted over by one byte in R0.
7688 (d10v_extract_return_value): Delete extra braces, re-indent.
7689
095a4c96
EZ
76902002-06-06 Elena Zannoni <ezannoni@redhat.com>
7691
7692 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
7693 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
7694 (d10v_integer_to_address): Rewrite.
7695 (d10v_frame_init_saved_regs): When reading fp and sp registers use
7696 the d10v specific functions which take care of converting to the
7697 correct space.
7698
e8a77ca4
EZ
76992002-06-06 Elena Zannoni <ezannoni@redhat.com>
7700
7701 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
7702 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
7703
4f2e4a4f
AC
77042002-06-02 Andrew Cagney <ac131313@redhat.com>
7705
7706 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
7707 includes.
7708 * config/tm-linux.h: Ditto.
7709 * config/alpha/tm-alphalinux.h: Ditto.
7710 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
7711 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
7712 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
7713 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
7714 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
7715 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
7716 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
7717 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
7718 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
7719 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
7720 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
7721 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
7722 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
7723 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
7724 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
7725 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
7726 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
7727 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
7728 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
7729 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
7730 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
7731 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
7732 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
7733 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
7734 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
7735 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
7736 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
7737 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
7738 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
7739 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
7740 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
7741 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
7742 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
7743 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
7744 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
7745 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
7746 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
7747
ae2ab2ce
AS
77482002-05-04 Aidan Skinner <aidan@velvet.net>
7749
7750 * ada-exp.tab.c: New file
7751 * ada-exp.y: New file
7752 * ada-lang.c: New file
7753 * ada-lang.h: New file
7754 * ada-lex.c: New file
7755 * ada-lex.l: New file
7756 * ada-tasks.c: New file
7757 * ada-typeprint.c: New file
7758 * ada-valprint.c: New file
7759
0ddd0135
JT
77602002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
7761
7762 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
7763 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
7764
750fbacc
JT
77652002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
7766
7767 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
7768 insetead of ppc-linux-tdep.o.
7769 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
7770 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
7771
df94e18a
AC
77722002-06-02 Andrew Cagney <ac131313@redhat.com>
7773
7774 2002-05-07 Christian Groessler <chris@groessler.org>
7775 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
7776 bit register contents for little endian hosts.
7777
1a38ab75
AC
77782002-06-01 Andrew Cagney <ac131313@redhat.com>
7779
7780 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
7781 any maintainer.
7782
8b1632ac
AC
77832002-06-01 Andrew Cagney <ac131313@redhat.com>
7784
7785 * gdbarch.h: Regenerate.
7786
627054c8
AC
77872002-06-01 Andrew Cagney <ac131313@redhat.com>
7788
7789 * MAINTAINERS: Add everyone to write-after-approval list.
7790
4f460812
AC
77912002-06-01 Andrew Cagney <ac131313@redhat.com>
7792
7793 * stack.c (frame_info): Use frame_register_unwind instead of
7794 saved_regs. Mention when the SP is on the stack or in a register.
7795
7796 * frame.h (frame_register_unwind_ftype): Define. Document.
7797 (struct frame_info): Add field register_unwind and
7798 register_unwind_cache.
7799 (frame_register_unwind): Declare.
7800 (generic_unwind_get_saved_register): Declare.
7801
7802 * frame.c (frame_register_unwind): New function.
7803 (generic_unwind_get_saved_register): New function.
7804
7805 * blockframe.c (generic_call_dummy_register_unwind): New function.
7806 (frame_saved_regs_register_unwind): New function.
7807 (set_unwind_by_pc): New function.
7808 (create_new_frame): New function.
7809 (get_prev_frame): New function.
7810
de888f76
AC
78112002-05-30 Andrew Cagney <ac131313@redhat.com>
7812
7813 * a29k-share/: Delete directory.
7814 * remote-vx29k.c: Delete file.
7815
2f2c3626
JT
78162002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7817
7818 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
7819 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
7820
9ce5c36a
JT
78212002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7822
7823 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
7824 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
7825 (sparc64nbsd-nat.o)
7826 (sparcnbsd-nat.o)
7827 (sparcnbsd-tdep.o): New dependency lists.
7828 * NEWS: Note new UltraSPARC NetBSD native configuration.
7829 * configure.host (sparc64-*-netbsd*): New host.
7830 * configure.tgt (sparc-*-netbsdelf*)
7831 (sparc-*-netbsd*): Set gdb_target to nbsd.
7832 (sparc64-*-netbsd*): New target.
7833 * sparc64nbsd-nat.c: New file.
7834 * sparcnbsd-nat.c: New file.
7835 * sparcnbsd-tdep.c: New file.
7836 * sparcnbsd-tdep.h: New file.
7837 * config/sparc/nbsd.mt: New file.
7838 * config/sparc/nbsd64.mh: New file.
7839 * config/sparc/nbsd64.mt: New file.
7840 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
7841 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
7842 (HOST_IPC): Remove.
7843 * config/sparc/nbsdaout.mt: Remove.
7844 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
7845 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
7846 (HOST_IPC): Remove.
7847 * config/sparc/nbsdelf.mt: Remove.
7848 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
7849 sparc-nat.c compatiblity defines.
7850 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
7851 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
7852 * config/sparc/tm-nbsd64.h: New file.
7853 * config/sparc/tm-nbsdaout.h: Remove.
7854 * config/sparc/xm-nbsd.h: Remove.
7855
ef3cf062
JT
78562002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7857
7858 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
7859 * sparc-tdep.c: Include osabi.h.
7860 (gdbarch_tdep): Add osabi member.
7861 (_initialize_sparc_tdep): Use gdbarch_register.
7862 (sparc_gdbarch_init): Use generic OS ABI framework.
7863 (sparc_dump_tdep): New function.
7864
ee8ff470
KB
78652002-05-30 Kevin Buettner <kevinb@redhat.com>
7866
7867 * corefile.c (do_captured_read_memory_integer): Return non-zero
7868 result.
7869 (safe_read_memory_integer): Copy result of memory read when
7870 status is non-zero. Also, add comments.
7871
7b112f9c
JT
78722002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
7873
7874 * Makefile.in (ppc_tdep_h): Define.
7875 (ppc-linux-nat.o)
7876 (ppc-linux-tdep.o)
7877 (rs6000-tdep.o): Use $(ppc_tdep_h).
7878 (ppc-sysv-tdep.o)
7879 (ppcnbsd-nat.o)
7880 (ppcnbsd-tdep.o): New dependency lists.
7881 * ppc-tdep.h: Use generic OS ABI framework.
357edbbc
JT
7882 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
7883 (ppc_linux_init_abi): New functions.
7b112f9c
JT
7884 (ppc_sysv_abi_broken_use_struct_convention)
7885 (ppc_sysv_abi_use_struct_convention)
7886 (ppc_sysv_abi_push_arguments): Move to...
7887 * ppc-sysv-tdep.c: ...here.
7888 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
7889 * rs6000-tdep.c (process_note_abi_tag_sections)
7890 (get_elfosabi): Remove.
7891 (rs6000_gdbarch_init): Use generic OS ABI framework.
7892 (rs6000_dump_tdep): New function.
7893 (_initialize_rs6000_tdep): Use gdbarch_register.
7894 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
7895 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7896 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
7897 of ppc-linux-tdep.o.
7898 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
7899 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
7900 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
7901 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
7902 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
7903 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
7904
480dd42a
JB
79052002-05-29 Jim Blandy <jimb@redhat.com>
7906
7907 * macroscope.c (default_macro_scope): Put `void' in empty argument
7908 list.
7909
4182591f
AC
79102002-05-29 Andrew Cagney <ac131313@redhat.com>
7911
7912 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
7913 * arch-utils.c: Include "sim-regno.h".
7914 * gdbarch.sh: Don't include "sim-regno.h".
7915 * gdbarch.h, gdbarch.c: Regenerate.
7916 * sim-regno.h (legacy_register_sim_regno): Move declaration from
7917 here.
7918 * arch-utils.h (legacy_register_sim_regno): To here.
7919 * remote-sim.c (legacy_register_sim_regno): Move function from
7920 here.
7921 * arch-utils.c (legacy_register_sim_regno): To here.
7922
8238d0bf
AC
79232002-05-28 Andrew Cagney <ac131313@redhat.com>
7924
7925 * sim-regno.h: New file.
7926 * Makefile.in (sim_regno_h): Define.
7927 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
7928 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
7929 (legacy_register_sim_regno): New function.
7930 (one2one_register_sim_regno): New function.
7931 (gdbsim_fetch_register): Rewrite.
7932 (gdbsim_store_register): Only store a register when
7933 REGISTER_SIM_REGNO is valid.
7934 * d10v-tdep.c: Include "sim-regno.h".
7935 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
7936 (d10v_ts3_register_sim_regno): Ditto.
7937 * gdbarch.sh: Include "sim-regno.h".
7938 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
7939 * gdbarch.h, gdbarch.c: Regenerate.
7940 * arch-utils.h (default_register_sim_regno): Delete declaration.
7941 * arch-utils.c (default_register_sim_regno): Delete function.
7942
485721b1
JT
79432002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
7944
7945 * ppcnbsd-nat.c: Rewrite.
7946 * ppcnbsd-tdep.c: New file.
7947 * ppcnbsd-tdep.h: New file.
7948 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
7949 solib.o, and solib-svr4.o.
7950 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
7951 nbsd-tdep.o, and corelow.o.
7952
697f244d
AC
79532002-05-28 Andrew Cagney <ac131313@redhat.com>
7954
7955 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
7956 `tr' and `sed'. Mention that `broken' targets are not expected to
7957 build.
7958
f08caad1 79592002-05-27 Michal Ludvig <mludvig@suse.cz>
b1ab997b
ML
7960
7961 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
7962 Let PC point right after the prologue before looking up symbols.
7963
3139facc
MH
79642002-05-27 Martin M. Hunt <hunt@redhat.com>
7965
7966 * i386-tdep.c (i386_register_virtual_type): Return
7967 builtin_type_vec128i for SSE registers.
7968
7969 * gdbtypes.h (builtin_type_vec128i): Declare.
7970
7971 * gdbtypes.c (build_builtin_type_vec128i): New function.
7972 (builtin_type_v2_double, builtin_type_v4_int64): New types.
7973 (builtin_type_vec128i): New type for SSE2 128-bit registers.
7974 (build_gdbtypes): Initialize new builtin vector types.
7975 (_initialize_gdbtypes): Register new vector types with gdbarch.
7976
6e3ba3b8
JT
79772002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7978
7979 * MAINTAINERS: ns32k is not longer an obsolete candidate,
7980 since it has been multi-arch'd.
7981 * NEWS: Note that ns32k-*-* is now partial multi-arch.
7982 Move Alpha and VAX multi-arch news entries to same section
7983 as other multi-arch news.
7984
93d5585d
JT
79852002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7986
7987 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
7988 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
7989 static. Rename some register numbers to put them in ns32k-tdep
7990 private namespace.
7991 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
7992 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
7993 functions.
7994 (_initialize_ns32k_tdep): Use gdbarch_register.
7995 * ns32k-tdep.h: New file.
7996 * ns32knbsd-tdep.c: New file.
7997 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
7998 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
7999 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
8000 REGISTER_BYTES, REGISTER_BYTE): Remove.
8001 * config/ns32k/tm-ns32k.h: New file.
8002 * config/ns32k/tm-umax.h: Remove.
8003
efb2c70e
JT
80042002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8005
8006 * ns32k-tdep.c (ns32k_saved_pc_after_call,
8007 ns32k_store_struct_return, ns32k_extract_return_value,
8008 ns32k_store_return_value, ns32k_extract_struct_value_address): New
8009 functions.
8010 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
8011 ns32k_saved_pc_after_call.
8012 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
8013 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
8014 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
8015 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
8016 ns32k_extract_struct_value_address.
8017
7bcc927b
JT
80182002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8019
8020 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
8021 ns32k_fix_call_dummy): New.
8022 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
8023 ns32k_call_dummy_words.
8024 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
8025 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
8026 CALL_DUMMY_NARGS): Remove.
8027 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
8028
78f9d765
JT
80292002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8030
8031 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
8032 ns32k_frame_saved_pc, ns32k_frame_args_address,
8033 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
8034 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
8035 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
8036 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
8037 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
8038 (BREAKPOINT): Remove..
8039 (FRAME_CHAIN): Define as ns32k_frame_chain.
8040 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
8041 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
8042 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
8043 (FRAME_FIND_SAVED_REGS): Remove.
8044 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
8045 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
8046 (POP_FRAME): Define as ns32k_pop_frame.
8047
f2c762e0
JT
80482002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8049
8050 * ns32k-tdep.c (ns32k_register_byte_32082,
8051 ns32k_register_byte_32382, ns32k_register_raw_size,
8052 ns32k_register_virtual_size, ns32k_register_virtual_type): New
8053 functions.
8054 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
8055 ns32k_register_byte_32382.
8056 * config/ns32k/tm-umax.h: Update copyright years.
8057 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
8058 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
8059 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
8060 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
8061 (ns32k_get_enter_addr): Fix prototype.
8062
af137673
JT
80632002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8064
8065 * ns32k-tdep.c: Update copyright years.
8066 (ns32k_register_name_32082): New function.
8067 (ns32k_register_name_32382): Ditto.
8068 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
8069 (REGISTER_NAME): Define as ns32k_register_name_32382.
8070 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
8071 (REGISTER_NAME): Define as ns32k_register_name_32082.
8072
a8bc7b56
JB
80732002-05-24 Jim Blandy <jimb@redhat.com>
8074
8075 * dwarf2read.c (free_line_header): Use xfree, not free.
8076
83a45910
JT
80772002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
8078
8079 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
8080 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
8081
0db71247
AC
80822002-05-23 Andrew Cagney <ac131313@redhat.com>
8083
8084 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
8085
b9e5e4dd
AC
80862002-05-23 Andrew Cagney <ac131313@redhat.com>
8087
8088 From Ross Alexander at NEC Europe:
8089 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
8090
de530e84
MS
80912002-05-23 Michael Snyder <msnyder@redhat.com>
8092
8093 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
8094 for input, rather than parse_and_eval_address.
8095
b91b96f4
AC
80962002-05-23 Andrew Cagney <ac131313@redhat.com>
8097
8098 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
8099 * Makefile.in (sim_d10v_h): Update definition.
8100
8b279e7a
AC
81012002-05-24 Andrew Cagney <cagney@redhat.com>
8102
8103 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
8104 change `2002-05-22 Michael Snyder' below.
8105 (d10v_push_arguments): Ditto.
8106 (d10v_extract_return_value): Ditto.
8107
0a3d0425
JB
81082002-05-23 Jim Blandy <jimb@redhat.com>
8109
8110 * macrotab.c (check_for_redefinition): Don't complain if the new
8111 definition is the same as the previous one. Take more arguments
8112 to allow the comparison.
8113 (macro_define_object, macro_define_function): Pass more arguments
8114 to check_for_redefinition.
8115
78eac43e
MS
81162002-05-22 Michael Snyder <msnyder@redhat.com>
8117
8118 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
8119 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
8120 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
8121 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
8122 Don't bail if return_pc is PC_IN_CALL_DUMMY.
8123 Add a temp variable to save a call (and a memory read).
8124 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
8125 if possible (so that PC_IN_CALL_DUMMY will work).
8126
9bc1edb8
CV
81272002-05-22 Corinna Vinschen <vinschen@redhat.com>
8128
8129 * MAINTAINERS: Remove status `OBSOLETE' from v850.
8130
005ef3d2
ML
81312002-05-22 Michal Ludvig <mludvig@suse.cz>
8132
8133 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
8134 fde->cie_ptr.
8135 (dwarf2_build_frame_info): Corrected handling of eh_frame.
8136 (dwarf2_build_frame_info): Add offset to fde->initial_location
8137 so that frames of shared libraries are mapped correctly.
6c3eb890
ML
8138 (execute_stack_op): Change type of 'result' from ULONGEST to
8139 CORE_ADDR.
005ef3d2 8140
fcf4f891
JT
81412002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8142
8143 * config/alpha/tm-nbsd.h: Include solib.h.
8144
cfef91e4
JT
81452002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8146
8147 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
8148 assumptions about the host's byte order.
8149
9964235a
JT
81502002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8151
8152 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
8153 to dependency list.
8154 * alphanbsd-tdep.c: Include solib-svr4.h.
8155 * shnbsd-tdep.c: Ditto.
8156
9eeef8ef
JT
81572002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8158
8159 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
8160 nbsd-tdep.h to dependency list.
8161 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
8162 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
8163 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
8164 nbsdaout.mh and nbsdelf.mh consistently.
8165 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
8166 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
8167 nbsdaout.mt and nbsdelf.mh consistently.
8168 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
8169 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
8170 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
8171 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
8172 a.out shared library stuff from here...
8173 * config/nm-nbsdaout.h: ...to here.
8174 * config/tm-nbsd.h: Remove.
8175 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
8176 * config/arm/nbsd.mh: Remove.
8177 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
8178 nbsd-tdep.o.
8179 * config/arm/nbsdaout.mh: New file.
8180 * config/arm/nbsdelf.mh: New file.
8181 * config/arm/nm-nbsdaout.h: New file.
8182 * config/i386/nbsd.mh: Remove.
8183 * config/i386/nbsd.mt: Remove.
8184 * config/i386/nbsdaout.mh: New file.
8185 * config/i386/nbsdaout.mt: New file.
8186 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
8187 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
8188 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
8189 i386_register_u_addr): Remove.
8190 * config/i386/nm-nbsdaout.h: New file.
8191 * config/i386/nm-nbsdelf.h: Remove.
8192 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
8193 (USE_STRUCT_CONVENTION): Remove.
8194 * config/i386/tm-nbsdaout.h: New file.
8195 * config/i386/tm-nbsdelf.h: Remove.
8196 * config/m68k/nbsd.mh: Remove.
8197 * config/m68k/nbsd.mt: Remove.
8198 * config/m68k/nbsdaout.mh: New file.
8199 * config/m68k/nbsdaout.mt: New file.
8200 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
8201 * config/m68k/nm-nbsdaout.h: New file.
8202 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
8203 (IN_SOLIB_CALL_TRAMPOLINE): Define.
8204 * config/ns32k/nbsd.mh: Remove.
8205 * config/ns32k/nbsd.mt: Remove.
8206 * config/ns32k/nbsdaout.mh: New file.
8207 * config/ns32k/nbsdaout.mt: New file.
8208 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
8209 * config/ns32k/nm-nbsdaout.h: New file.
8210 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
8211 (IN_SOLIB_CALL_TRAMPOLINE): Define.
8212 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
8213 (SVR4_SHARED_LIBS): Remove.
8214 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
8215 * config/sparc/nbsd.mh: Remove.
8216 * config/sparc/nbsd.mt: Remove.
8217 * config/sparc/nbsdaout.mh: New file.
8218 * config/sparc/nbsdaout.mt: New file.
8219 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
8220 * config/sparc/nbsdelf.mt: New file.
8221 * config/sparc/nm-nbsdaout.h: New file.
8222 * config/sparc/nm-nbsdelf.h: Remove.
8223 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
8224 * config/sparc/tm-nbsdaout.h: New file.
8225
257ce470
JT
82262002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8227
8228 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
8229 mipsnbsd-tdep.c
8230 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
8231
76a6d5fe
JT
82322002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8233
8234 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
8235 shnbsd-nat.c.
8236 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
8237
45888261
JT
82382002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8239
8240 * NEWS: Note new MIPS NetBSD native configuration.
8241 * configure.host (mips*-*-netbsd*): New host.
8242 * configure.tgt (mips*-*-netbsd*): New target.
8243 * mipsnbsd-nat.c: New file.
8244 * mipsnbsd-tdep.c: New file.
8245 * mipsnbsd-tdep.h: New file.
8246 * config/mips/nbsd.mh: New file.
8247 * config/mips/nbsd.mt: New file.
8248 * config/mips/nm-nbsd.h: New file.
8249 * config/mips/tm-nbsd.h: New file.
8250
70f80edf
JT
82512002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8252
8253 * Makefile.in (SFILES): Add osabi.c.
8254 (COMMON_OBS): Add osabi.o.
8255 (osabi.o): New dependency list.
8256 * osabi.c: New file.
8257 * osabi.h: New file.
8258 * doc/gdbint.texinfo: Document new generic OS ABI framework.
8259
8260 * Makefile.in (alpha_tdep_h): Define and use instead of
8261 alpha-tdep.h.
8262 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
8263 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
8264 Remove.
8265 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
8266 * alpha-tdep.h: Include osabi.h.
8267 (alpha_abi): Remove.
8268 (gdbarch_tdep): Use generic OS ABI framework.
8269 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
8270 gdbarch_register_osabi.
8271 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
8272 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
8273 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
8274
8275 * Makefile.in (sh_tdep_h): Add osabi.h.
8276 * sh-tdep.h (sh_osabi): Remove.
8277 (gdbarch_tdep): Use generic OS ABI framework.
8278 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
8279 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
8280 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
8281 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
8282
8283 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
8284 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
8285 gdbarch_register_osabi.
8286 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
8287 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
8288 (get_elfosabi): Rename to...
8289 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
8290 ABI framework support routines.
8291 (arm_gdbarch_init): Use generic OS ABI framework.
8292 (arm_dump_tdep): Likewise.
8293 (_initialize_arm_tdep): Likewise.
8294 * arm-tdep.h: Include osabi.h.
8295 (arm_abi): Remove.
8296 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
8297 osabi member.
8298 (arm_gdbarch_register_os_abi): Remove prototype.
8299 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
8300 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
8301
8302 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
8303 * mips-tdep.c: Include osabi.h.
8304 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
8305 OS ABI framework.
8306
d194345b
KH
83072002-05-20 Kazu Hirata <kazu@cs.umass.edu>
8308
8309 * h8300-tdep.c: Fix formatting.
8310
70c6b0d1
EZ
83112002-05-20 Elena Zannoni <ezannoni@redhat.com>
8312
8313 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
8314 printing vector registers.
8315
165b8e33
AC
83162002-05-19 Andrew Cagney <ac131313@redhat.com>
8317
8318 From Fernando Nasser:
8319 * remote.c (remote_async_open_1): Re-throw the exception when the
8320 connection fails.
8321 (remote_cisco_open): Ditto.
8322 (remote_open_1): Ditto.
8323
36918e70
AC
83242002-05-19 Andrew Cagney <ac131313@redhat.com>
8325
8326 * remote.c (remote_start_remote_dummy): Add uiout parameter.
8327 (remote_start_remote): Add uiout parameter. Pass through to
8328 remote_start_remote_dummy.
8329 (remote_open_1): Use catch_exception instead of catch_errors.
8330 (remote_async_open_1): Ditto.
8331 (remote_cisco_open): Ditto.
8332
ae44c0c4
AC
83332002-05-19 Andrew Cagney <ac131313@redhat.com>
8334
8335 * remote.c (remote_start_remote): Replace PTR with void pointer.
8336 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
8337 static.
8338
8efe637d
AC
83392002-05-18 Andrew Cagney <ac131313@redhat.com>
8340
8341 * gdb_indent.sh: Allow the script to be run in the sim directory.
8342
2f1b5984
MK
83432002-05-18 Mark Kettenis <kettenis@gnu.org>
8344
f0f625e2
MK
8345 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
8346 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
8347
2f1b5984
MK
8348 * corelow.c (core_open): Only call set_gdbarch_from_file if
8349 exec_bfd is NULL.
8350
fc974602
AV
83512002-05-17 Andrey Volkov <avolkov@transas.com>
8352
8353 * h8300-tdep.c: Add support of EXR register
8354 * config/h8300/tm-h8300.h: Ditto.
8355
906709f4
AV
83562002-05-17 Andrey Volkov <avolkov@transas.com>
8357
8358 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
8359
6e591d68
AV
83602002-05-17 Andrey Volkov <avolkov@transas.com>
8361
8362 * h8300-tdep.c: Change literal regnums to REGNO.
8363
84f0252a
JB
83642002-05-17 Jim Blandy <jimb@redhat.com>
8365
e0e9281e
JB
8366 * NEWS: Note addition of macro support.
8367
84f0252a
JB
8368 Expand preprocessor macros in C expressions.
8369 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
8370 (scan_macro_expansion, scanning_macro_expansion,
8371 finished_macro_expansion): New function declarations.
8372 (expression_macro_lookup_func, expression_macro_lookup_baton): New
8373 variable declarations.
8374 * parser-defs.h (expression_context_pc): New declaration.
8375 * parse.c (expression_context_pc): New variable.
8376 (parse_exp_1): Set expression_context_pc, as well as
8377 expression_context_block.
8378 * c-exp.y (yylex): If we're not already reading the result of a
8379 macro expansion, try to macro-expand the next token. When we're
8380 done scanning a macro expansion, switch back to the mainline text.
8381 Commas and `if's in a macro's expansion don't terminate the input.
8382 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
8383 (macro_original_text, macro_expanded_text,
8384 expression_macro_lookup_func, expression_macro_lookup_baton): New
8385 variables.
8386 (scan_macro_expansion, scanning_macro_expansion,
8387 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
8388 c_preprocess_and_parse): New functions.
8389 (c_language_defn, cplus_language_defn, asm_language_defn): Call
8390 c_preprocess_and_parse, instead of c_parse.
8391 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
8392 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
8393
1c509ca8
JR
8394Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
8395
8396 * sh-tdep.c (gdb_print_insn_sh64): Delete.
8397 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
8398 (sh_gdbarch_init): Always use gdb_print_insn_sh.
8399
2250ee0c
CV
84002002-05-17 Corinna Vinschen <vinschen@redhat.com>
8401
8402 * NEWS: Add section for multi-arched targets. Add v850 to that section.
8403
ab3b8126
JT
84042002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
8405
8406 * Makefile.in (sh_tdep_h): Define and use.
8407 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
8408 register enum): Move to...
8409 * * sh-tdep.h: ...here.
8410 * sh-tdep.c: Include sh-tdep.h.
8411 * sh3-rom.c: Likewise.
8412 * shnbsd-tdep.c: Likewise.
8413
ed9d4749
MS
84142002-05-16 Michael Snyder <msnyder@redhat.com>
8415
8416 * arm-tdep.c: Spelling fix in comment.
8417
2e276125
JB
84182002-05-16 Jim Blandy <jimb@redhat.com>
8419
6821892e
JB
8420 Add commands for manually expanding macros and showing their
8421 definitions.
8422 * macrocmd.c, macroscope.c, macroscope.h: New files.
8423 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
8424 (macroscope_h): New variable.
8425 (HFILES_NO_SRCDIR): Add macroscope.h.
8426 (COMMON_OBS): Add macrocmd.o, macroscope.o.
8427 (macroscope.o, macrocmd.o): New rules.
8428
2e276125
JB
8429 Teach the Dwarf 2 reader to read macro information.
8430 * dwarf2read.c: #include "macrotab.h".
8431 (dwarf_macinfo_buffer): New variable.
8432 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
8433 dwarf_macinfo_size.
8434 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
8435 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
8436 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
8437 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
8438 dwarf2_macro_spaces_in_definition): New complaints.
8439 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
8440 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
8441 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
8442 the partial symbol table.
8443 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
8444 from what's recorded in the partial symbol table.
8445 (read_file_scope): If the compilation unit has a
8446 `DW_AT_macro_info' attribute, read its macro information.
8447 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
8448
2f53fe6c
DJ
84492002-05-16 Daniel Jacobowitz <drow@mvista.com>
8450
8451 Fix PR gdb/546
8452 * ser-tcp.c: Don't include <netinet/udp.h>.
8453
2be99286
SC
84542002-05-16 Stephane Carrez <stcarrez@nerim.fr>
8455
8456 * MAINTAINERS: Update my email address.
8457
c9af212b 84582002-05-16 Richard Earnshaw <rearnsha@arm.com>
8501bbeb
RE
8459
8460 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
8461 include file of the same name.
8462
bf5f1a52
CV
84632002-05-16 Corinna Vinschen <vinschen@redhat.com>
8464
8465 * configure.tgt: Mark v850 as multi-arched.
8466 * config/v850/tm-v850.h: Remove file.
8467 * config/v850/v850.mt: Eliminate TM_FILE.
8468
435e042a
CV
84692002-05-16 Corinna Vinschen <vinschen@redhat.com>
8470
8471 * v850-tdep.c: Full multi-arch.
8472 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
8473 Define GDB_MULTI_ARCH to 2.
8474
9819c6c8
PM
84752002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
8476
8477 * p-exp.y (current_type): New static variable.
8478 Carries the type of the expression at the position that is parsed.
8479 (push_current_type, pop_current_type): Two new functions. Used
8480 to store/restore current_type in expression on specific tokens.
c9af212b
RE
8481 (search_field): New static variable. Set to one after parsing a point
8482 as at that point only a FIELDNAME token should be searched.
9819c6c8
PM
8483 (FIELDNAME): New token. After a point only a token belonging to
8484 current_type type definition is allowed.
8485 (all over token rules): reset and change current_type according
8486 to rules.
8487 (exp '[' rule): insert implicit array index field if
8488 exp is a pascal string type.
8489
3a06899a
CV
84902002-05-16 Corinna Vinschen <vinschen@redhat.com>
8491
8492 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
8493 frame info. Use frame_info's saved_regs instead of matching member
8494 in extra_frame_info throughout.
8495 (v850_frame_init_saved_regs): New function.
8496 (v850_init_extra_frame_info): Move most functionality into
8497 v850_frame_init_saved_regs().
8498 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
8499 (v850_frame_find_saved_regs): Remove declaration.
8500 (FRAME_FIND_SAVED_REGS): Remove definition.
8501 (v850_frame_init_saved_regs): Add declaration.
8502 (FRAME_INIT_SAVED_REGS): Add definition.
8503
6ed14b0e
CV
85042002-05-16 Corinna Vinschen <vinschen@redhat.com>
8505
8506 * v850-tdep.c: Begin multi-arch'ing v850.
8507 (v850_target_architecture_hook): Remove function.
8508 (v850_gdbarch_init): New function. Add code previously in
8509 v850_target_architecture_hook().
8510 (_initialize_v850_tdep): Don't set target_architecture_hook.
8511 Call register_gdbarch_init() instead.
8512
42725910
DJ
85132002-05-16 Daniel Jacobowitz <drow@mvista.com>
8514
8515 * gdbtypes.h (struct cplus_struct_type): Remove args field.
8516 * hpread.c (hpread_read_struct_type): Remove assignments to args.
8517 (fixup_class_method_type): Likewise.
8518
99d9066e
JB
85192002-05-15 Jim Blandy <jimb@redhat.com>
8520
8521 Add macro structures to GDB's symbol tables. Nobody puts anything
8522 in them yet.
8523 * symtab.h (struct symtab): New member: `macro_table'.
8524 * buildsym.h (pending_macros): New global variable.
8525 * buildsym.c: #include "macrotab.h".
8526 (buildsym_init): Initialize `pending_macros'.
8527 (end_symtab): If we found macro information while reading a CU's
8528 debugging info, do build a symtab structure for it. Make the
8529 symtab point to the macro information, and clear the
8530 `pending_macros' pointer which held it while we were reading the
8531 debug info.
8532 (really_free_pendings): Free any pending macro table.
8533 * objfiles.h (struct objfile): New member: `macro_cache'.
8534 * objfiles.c (allocate_objfile): Set allocate and free functions
8535 for the macro cache's objstack.
8536 (free_objfile): Empty the macro cache's obstack.
8537 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
8538 set new allocate and free functions for it.
8539 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
8540 free functions for the macro cache's objstack. (Why is this
8541 function building its own objfile?)
8542 * symmisc.c (print_objfile_statistics): Print statistics on the
8543 macro bcache.
8544 * Makefile.in: Note that buildsym.o depends on macrotab.h.
8545
c899585b
RE
85462002-05-15 Richard Earnshaw <rearnsha@arm.com>
8547
8548 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
8549 (REGISTER_U_ADDR): Delete definition.
8550 (arm_register_u_addr): Delete declaration.
8551
a6cdd8c5
RE
85522002-05-15 Richard Earnshaw <rearnsha@arm.com>
8553
8554 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
8555 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
8556
c97dcfc7
AC
85572002-05-14 Andrew Cagney <ac131313@redhat.com>
8558
8559 * regcache.c (register_valid): Revise comments refering to "Not
8560 available" and "unavailable".
8561 * frame.c (frame_register_read): Ditto.
8562 * findvar.c (value_of_register): Ditto.
8563
93021b7d
AC
85642002-05-15 Andrew Cagney <cagney@redhat.com>
8565
8566 * Makefile.in (remote_sim_h): Replace remote-sim_h.
8567 (remote-sim.o): Update dependencies.
8568 (d10v-tdep.o): Specify dependencies.
8569 (sim_d10v_h): Define.
8570
a86bc61c
JB
85712002-05-14 Jim Blandy <jimb@redhat.com>
8572
8573 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
8574 * macrotab.c (macro_lookup_inclusion, find_definition,
8575 new_macro_table): Same.
8576
8577 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
8578 not `! strcmp ()'. This is a dubious improvement.
8579 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
8580
8581 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
8582 although it's not necessary, to avoid a warning.
8583
2fdde8f8
DJ
85842002-05-14 Daniel Jacobowitz <drow@mvista.com>
8585
8586 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
8587 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
8588 TYPE_INSTANCE_FLAGS.
8589 (struct main_type): New.
8590 (struct type): Move most members to struct main_type. Change
8591 cv_type and as_type to new type_chain member. Add instance_flags.
8592 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
8593 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
8594 (finish_cv_type): Remove prototype.
8595 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
8596 Set TYPE_CHAIN.
8597 (alloc_type_instance): New function.
8598 (smash_type): New function.
8599 (make_pointer_type, make_reference_type, make_function_type)
8600 (smash_to_member_type, smash_to_method_type): Call smash_type.
8601 (make_qualified_type): New function.
8602 (make_type_with_address_space): Call make_qualified_type.
8603 (make_cv_type): Likewise.
8604 (finish_cv_type): Remove unnecessary function.
8605 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
8606 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
8607 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
8608 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
8609 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
8610 * hpread.c (hpread_read_struct_type): Likewise.
8611 * stabsread.c (read_struct_type): Likewise.
8612
843fedf4
EZ
86132002-05-14 Elena Zannoni <ezannoni@redhat.com>
8614
8615 * configure.tgt: Add a catch all sh* target, for cases like
8616 sh[2,3,4]-elf and sh-hms.
8617
05a6c72c
KS
86182002-05-14 Keith Seitz <keiths@redhat.com>
8619
8620 * event-loop.c (create_file_handler): Don't do anything but
8621 update data when we are given a fd which we are already
8622 monitoring.
8623
5d085aaf
ML
86242002-05-14 Michal Ludvig <mludvig@suse.cz>
8625
8626 * dwarf2cfi.c (context_cpy): Copy registers correctly.
8627 (update_context): Use __func__ in warnings.
8628
9db8d71f
DJ
86292002-05-14 Daniel Jacobowitz <drow@mvista.com>
8630
8631 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
8632 and tcp_close to net_open and net_close.
8633 (net_open): Accept "udp:" and "tcp:" specifications. Connect
8634 using UDP if requested. Don't try to disable Nagle on UDP
8635 sockets.
8636 * remote.c (remote_serial_open): New function. Warn about UDP.
8637 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
8638
5dbc6baa
EZ
86392002-05-13 Elena Zannoni <ezannoni@redhat.com>
8640
8641 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
8642
cc3023f7
EZ
86432002-05-13 Elena Zannoni <ezannoni@redhat.com>
8644
8645 * configure.tgt: Remove sh-hms target.
8646 * MAINTAINERS: Don't list sh-hms as a separate target.
8647
ec2bcbe7
JB
86482002-05-13 Jim Blandy <jimb@redhat.com>
8649
8650 Add first preprocessor macro-expansion files.
8651 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
8652 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
8653 (splay_tree_h, macroexp_h, macrotab_h): New variable.
8654 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
8655 (COMMON_OBS): Add macrotab.o, macroexp.o.
8656 (macroexp.o, macrotab.o): New rules.
8657
6d531722
AC
86582002-05-13 Andrew Cagney <ac131313@redhat.com>
8659
8660 * config/m88k/tm-m88k.h: Update copyright.
8661 (m88k_target_write_pc): Declare
8662 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
8663 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
8664 (SHIFT_INST_REGS): Update definition.
8665 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
8666 using old definition of TARGET_WRITE_PC.
8667 * regcache.c (generic_target_write_pc): Delete code handling
8668 NNPC_REGNUM.
8669 * gdbarch.sh (NNPC_REGNUM): Delete.
8670 * gdbarch.h, gdbarch.c: Regenerate.
8671
3e3f2739
RE
86722002-05-13 Richard Earnshaw <rearnsha@arm.com>
8673
8674 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
8675 builtin reg number.
8676
0004e5a2
DJ
86772002-05-13 Daniel Jacobowitz <drow@mvista.com>
8678
8679 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
8680 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
8681 (gen_address_of, gen_struct_ref, gen_repeat): Use type
8682 access macros.
8683 * c-typeprint.c (cp_type_print_method_args): Likewise.
8684 (c_type_print_args): Likewise.
8685 * d10v-tdep.c (d10v_push_arguments): Likewise.
8686 (d10v_extract_return_value): Likewise.
8687 * expprint.c (print_subexp): Likewise.
8688 * gdbtypes.c (lookup_primitive_typename): Likewise.
8689 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
8690 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
8691 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
8692 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
8693 (TYPE_VECTOR): Likewise.
8694 * hpread.c (hpread_read_struct_type)
8695 (fix_static_member_physnames, fixup_class_method_type)
8696 (hpread_type_lookup): Likewise.
8697 * mdebugread.c (parse_symbol, parse_type): Likewise.
8698 * p-lang.c (is_pascal_string_type): Likewise.
8699 * valops.c (hand_function_call): Likewise.
8700 * x86-64-tdep.c (classify_argument): Likewise.
8701
8702 * hpread.c (hpread_read_function_type)
8703 (hpread_read_doc_function_type): Call replace_type.
8704 * dstread.c (create_new_type): Delete.
8705 (decode_dst_structure, process_dst_function): Call alloc_type.
8706 Use type access macros.
8707
dff95cc7
MK
87082002-05-12 Mark Kettenis <kettenis@gnu.org>
8709
8710 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
8711 the're not supported by the current architecture.
8712 (i387_fill_fxsave): Likewise.
8713
bbcd32ad
FF
87142002-05-12 Fred Fish <fnf@redhat.com>
8715
8716 * symfile.c (default_symfile_offsets): Arrange for uninitialized
8717 sect_index_xxx members to index the first slot in section_offsets
8718 if all of the section_offsets are zero.
8719
89cf4787
MK
87202002-05-12 Mark Kettenis <kettenis@gnu.org>
8721
8722 * configure.tgt (sparc-*openbsd): Remove entry accidentially
8723 checked in with last change.
8724
1f77ffc5
MK
87252002-05-12 Mark Kettenis <kettenis@gnu.org>
8726
8727 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
8728 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
8729 config.sub.
8730
89b8b4a9
DJ
87312002-05-12 Daniel Jacobowitz <drow@mvista.com>
8732
8733 * Makefile.in: Update dependencies.
8734
14a5e767
AC
87352002-05-11 Andrew Cagney <ac131313@redhat.com>
8736
8737 * language.c (local_hex_string_custom): Simplify. Do not depend
8738 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
8739
8740 * memattr.c (mem_info_command): Replace calls to
8741 longest_local_hex_string and longest_local_hex_string_custom.
8742 * buildsym.c (make_blockvector): Ditto.
8743 * solib.c (info_sharedlibrary_command): Ditto.
8744 * tracepoint.c (tracepoints_info): Ditto.
8745 * symtab.c (print_msymbol_info): Ditto.
8746
8747 * language.c (local_hex_string): Delete.
8748 (local_hex_string_custom): Delete.
8749 (longest_local_hex_string): Rename to local_hex_string.
8750 (longest_local_hex_string_custom): Rename to
8751 local_hex_string_custom.
8752 * language.h (local_hex_string): Change parameter type to LONGEST.
8753 (local_hex_string_custom): Ditto.
8754 (longest_local_hex_string): Delete declaration.
8755 (longest_local_hex_string_custom): Ditto.
8756
8757 * solib.c: Update copyright.
8758 * memattr.c: Update copyright.
8759
13d01224
AC
87602002-05-11 Andrew Cagney <ac131313@redhat.com>
8761
8762 * arch-utils.h (legacy_register_to_value): Declare.
8763 (legacy_value_to_register): Declare.
8764 (legacy_convert_register_p): Declare.
8765 * arch-utils.c (legacy_register_to_value): New function.
8766 (legacy_value_to_register): New function.
8767 (legacy_convert_register_p): New function.
8768
8769 * gdbarch.sh (REGISTER_TO_VALUE): Define.
8770 (VALUE_TO_REGISTER): Define.
8771 (CONVERT_REGISTER_P): Define.
8772 * gdbarch.h, gdbarch.c: Regenerate.
8773
8774 * valops.c (value_assign): Use CONVERT_REGISTER_P and
8775 VALUE_TO_REGISTER.
8776 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
8777 CONVERT_REGISTER_P.
8778
4a1970e4
DJ
87792005-05-11 Daniel Jacobowitz <drow@mvista.com>
8780 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8781
8782 * Makefile.in: Update dependencies for valops.c.
8783 * valops.c: Include "gdb_assert.h".
8784 (typecmp): Skip THIS parameter to methods.
8785 (find_method_list): Remove static_memfuncp argument,
8786 update callers. Check for stub methods.
8787 (find_value_oload_method_list): Don't set *static_memfuncp.
8788 (find_overload_match): Don't check for stub methods. Assert
8789 that methods are not stubbed. Handle static methods.
8790 (value_find_oload_method_list): Remove static_memfuncp argument.
8791 * gdbtypes.c (check_stub_method): Do not add THIS pointer
8792 to the argument list for static stub methods.
8793 * value.h (value_find_oload_method_list): Update prototype.
8794
b2e75d78
AC
87952002-05-11 Andrew Cagney <ac131313@redhat.com>
8796
8797 * arch-utils.h (generic_register_size): Declare.
8798 (generic_register_raw_size, generic_register_virtual_size): Delete
8799 declarations.
8800 * arch-utils.c (generic_register_raw_size): Delete.
8801 (generic_register_size): New function.
8802 (generic_register_virtual_size): Delete.
8803
8804 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
8805 default generic_register_size.
8806 * gdbarch.h, gdbarch.c: Re-generate.
8807
8808 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
8809 register_virtual_size.
8810 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
8811 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8812
451fbdda
AC
88132002-05-11 Andrew Cagney <ac131313@redhat.com>
8814
8815 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
8816 * gdbarch.h, gdbarch.c: Regenerate.
8817 * gnu-v3-abi.c: Update copyright.
8818 (vtable_address_point_offset): Update.
8819 (gnuv3_rtti_type): Update.
8820 (gnuv3_baseclass_offset): Update.
8821 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
8822 (init_fetch_link_map_offsets): Update.
8823 * remote.c (get_remote_state): Update.
8824
6d2f5cea
DJ
88252002-05-11 Daniel Jacobowitz <drow@mvista.com>
8826
8827 * TODO: Remove value_headof/value_from_vtable_info comment.
8828 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
8829 * values.c (value_headof, value_from_vtable_info): Delete.
8830 * value.h (value_from_vtable_info): Delete prototype.
8831
d2324da4
AC
88322002-05-11 Andrew Cagney <ac131313@redhat.com>
8833
8834 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
8835 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
8836 $(gdb_regex_h).
8837 (gdb_assert_h): Define.
8838 (gdb_wait_h): Define.
8839 (gdb_regex_h): Define.
8840
5c717440
DJ
88412002-05-11 Daniel Jacobowitz <drow@mvista.com>
8842
8843 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
8844 * linespec.c (find_methods): Handle GCC 3.x template constructors.
8845
6c7861b3
JT
88462002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8847
8848 * nbsd-tdep.c: Fix comment.
8849
ea5bc2a6
JT
88502002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8851
8852 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
8853 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
8854 (nbsd-tdep.o): New dependency list.
8855 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
8856 nbsd-tdep.h.
8857 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
8858 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
8859 * nbsd-tdep.c: New file.
8860 * nbsd-tdep.h: New file.
8861 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
8862 nbsd-tdep.h.
8863 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
8864 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
8865 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
8866 * config/sh/nbsd.mt (TDEPFILES): Ditto.
8867
b28da865
JT
88682002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8869
8870 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
8871 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
8872 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
8873 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
8874 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
8875 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
8876
4b8ff1fa
JT
88772002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8878
8879 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
8880 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8881 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
8882 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
8883 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
8884 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
8885 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
8886
dfe6eb1f
JT
88872002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8888
8889 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
8890 fetch_elfcore_registers to...
8891 * i386nbsd-tdep.c: ...here.
8892 (i386nbsd_use_struct_convention): Rename to...
8893 (i386nbsd_aout_use_struct_convention): ...this.
8894 (i386nbsd_supply_reg): New function.
8895 (i386nbsd_fill_reg): New function.
8896 (fetch_core_registers): Use i386nbsd_supply_reg.
8897 (fetch_elfcore_registers): Likewise.
8898 (_initialize_i386nbsd_tdep): New function.
8899 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
8900 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8901 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
8902 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
8903 (i386nbsd_aout_use_struct_convention): ...this.
8904
20cb8cda
JT
89052002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8906
8907 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
8908 (store_inferior_registers): Use shnbsd_fill_reg.
8909 * shnbsd-tdep.c (sh_nbsd_supply_registers,
8910 sh_nbsd_supply_register): Collapse into...
8911 (shnbsd_supply_reg): ...this.
8912 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
8913 (shnbsd_fill_reg): ...this.
8914 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
8915 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
8916 (fetch_core_registers): Use shnbsd_supply_reg.
8917 (fetch_elfcore_registers): Use shnbsd_supply_reg.
8918 (sh_nbsd_core_fns): Rename to...
8919 (shnbsd_core_fns): ...this.
8920 (sh_nbsd_elfcore_fns): Rename to...
8921 (shnbsd_elfcore_fns): ...this.
8922 (sh_nbsd_init_abi): Rename to...
8923 (shnbsd_init_abi): ...this.
8924 (_initialize_sh_nbsd_tdep): Rename to...
8925 (_initialize_shnbsd_tdep): ...this.
8926 * shnbsd-tdep.h (sh_nbsd_supply_registers,
8927 sh_nbsd_supply_register, sh_nbsd_fill_registers,
8928 sh_nbsd_fill_register): Remove prototypes.
8929 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
8930
e750d25e
JT
89312002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8932
8933 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
8934 (i387-nat.o): Delete dependency list.
8935 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
8936 (x86-64-linux-nat.o): Likewise.
8937 * i387-nat.c: Delete file, moving contents to...
8938 * i387-tdep.c: ...here.
8939 * i387-nat.h: Rename...
8940 * i387-tdep.h: ...to this.
8941 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
8942 * i386-linux-nat.c: Likewise.
8943 * i386bsd-nat.c: Likewise.
8944 * i386gnu-nat.c: Likewise.
8945 * i386nbsd-nat.c: Likewise.
8946 * i386v4-nat.c: Likewise.
8947 * x86-64-linux-nat.c: Likewise.
8948 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
8949 * config/i386/go32.mh (NATDEPFILES): Likewise.
8950 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
8951 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
8952 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
8953 * config/i386/linux.mh (NATDEPFILES): Likewise.
8954 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
8955 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8956 * config/i386/obsd.mh (NATDEPFILES): Likewise.
8957 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
8958
1aee598a
JT
89592002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8960
8961 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
8962 (alphanbsd-nat.o): Remove dependency list.
8963 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
8964 * alphanbsd-nat.c: Delete. Contents moved to...
8965 * alphanbsd-tdep.c: ...here.
8966 (_initialize_alphanbsd_tdep): Register core functions.
8967 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
8968
12bcb0fe
JT
89692002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8970
8971 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
8972 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
8973 (alphanbsd-nat.o): Likewise.
8974 (alphabsd-tdep.o): New dependency list.
8975 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
8976 (fill_gregset): Use alphabsd_fill_reg.
8977 (supply_fpregset): Use alphabsd_supply_fpreg.
8978 (fill_fpregset): Use alphabsd_fill_fpreg.
8979 (fetch_inferior_registers): Use struct reg and struct fpreg
8980 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
8981 and alphabsd_supply_fpreg.
8982 (store_inferior_registers): Use struct reg and struct fpreg
8983 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
8984 and alphabsd_fill_fpreg.
8985 * alphabsd-tdep.c: New file.
8986 * alphabsd-tdep.h: New file.
8987 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
8988 (fetch_elfcore_registers): Use alphabsd_supply_reg and
8989 alphabsd_supply_fpreg.
8990 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
8991 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
8992
361d1df0
EC
89932002-05-11 Eric Christopher <echristo@redhat.com>
8994
8995 * mips-tdep.c (mips_double_register_type): Fix thinko.
8996 (mips_single_register_type): Ditto.
8997 * MAINTAINERS: Add self.
8998
92dd7cee
MK
89992002-05-11 Mark Kettenis <kettenis@gnu.org>
9000
9001 * i387-nat.c (i387_supply_register, i387_fill_fsave,
9002 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
9003 right thing on architectures with different endianness and/or
9004 integer sizes.
9005
e27da16d
JT
90062002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
9007
9008 From Christian Limpach <chris@Pin.LU>
9009 * configure.in: Change sed expression which comments out
9010 NATDEPFILES to also comment out continuation lines.
9011 * configure: Regenerate.
9012
ddde02bd
EZ
90132002-05-10 Elena Zannoni <ezannoni@redhat.com>
9014
9015 * sh-tdep.c: Clean up code erroneously reintroduced by previous
9016 big patch.
9017
1c922164
EZ
90182002-05-10 Elena Zannoni <ezannoni@redhat.com>
9019
9020 * sh-tdep.c: Include correct file.
9021
283150cd
EZ
90222002-05-10 Elena Zannoni <ezannoni@redhat.com>
9023
9024 New support for sh64-elf (sh5) target.
9025
9026 * configure.tgt: For sh64-elf target, default to sh-elf.
9027
9028 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
9029 (struct gdbarch_tdep): Add new fields for new registers and ABI
9030 info.
361d1df0 9031
283150cd
EZ
9032 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
9033 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
9034 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
9035 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
9036 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
9037 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
9038 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
9039 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
9040 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
9041 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
9042 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
9043 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
9044 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
9045 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
9046 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
9047 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
9048 sh64_get_gdb_regnum, sh64_media_reg_base_num,
9049 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
9050 sign_extend, sh64_nofp_frame_init_saved_regs,
9051 sh64_init_extra_frame_info, sh64_get_saved_register,
9052 sh64_extract_struct_value_address, sh64_pop_frame,
9053 sh64_push_arguments, sh64_extract_return_value,
9054 sh64_store_return_value, sh64_show_media_regs,
9055 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
9056 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
9057 sh_sh64_register_virtual_type,
9058 sh_sh64_register_convert_to_virtual,
9059 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
9060 sh64_register_read, sh64_pseudo_register_write,
9061 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
9062 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
9063 sh64_do_pseudo_register, sh_compact_do_registers_info,
9064 sh64_do_registers_info, sh_gdbarch_init): New functions.
9065
3117ed25
EZ
90662002-05-10 Elena Zannoni <ezannoni@redhat.com>
9067
9068 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
9069
2654e6d4
DJ
90702002-05-10 Daniel Jacobowitz <drow@mvista.com>
9071
9072 * linespec.c (decode_line_1): Check for a double quote after
9073 a filename correctly.
9074
9ab3e532
JB
90752002-05-10 Jim Blandy <jimb@redhat.com>
9076
9077 Properly track the size of the current objfile's .debug_line section.
9078 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
9079 (DWARF_LINE_SIZE): New macro.
9080 (dwarf2_build_psymtabs_hard): Record the line section's size in
9081 the partial symbol table.
9082 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
9083 symbol table.
9084
126fa72d
PS
90852002-05-10 Petr Sorfa <petrs@caldera.com>
9086
9087 * ia64-tdep.c: Handle breakpoints on L instruction type
9088 in MLX instruction bundle by moving the breakpoint to
9089 the third slot (X instruction type) as L holds only data.
9090
1f077a3e
KB
90912002-05-10 Kevin Buettner <kevinb@redhat.com>
9092
9093 * dbxread.c (discarding_local_symbols_complaint): New complaint.
9094 (process_one_symbol): Complain about discarding local symbols
9095 due to a misplaced N_LBRAC entry.
9096
8120c9d5 90972002-05-09 Elena Zannoni <ezannoni@redhat.com>
361d1df0
EC
9098
9099 From Daniel Berlin <dan@cgsoftware.com>
8120c9d5
EZ
9100 * linespec.c (find_toplevel_char): '<' and '>' also increase and
9101 decrease the depth we are at, in the case of templates.
361d1df0 9102
67b2c998
DJ
91032002-05-09 Daniel Jacobowitz <drow@mvista.com>
9104
9105 * mips-tdep.c (mips_float_register_type): New function.
9106 (mips_double_register_type): New function.
9107 (mips_print_register): Use them.
9108 (do_fp_register_row): Likewise.
9109
fd326606
DJ
91102002-05-09 Daniel Jacobowitz <drow@mvista.com>
9111
6609d9af 9112 * signals/signals.c (signals): Remove conditional compilation around
fd326606 9113 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6609d9af 9114 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
fd326606 9115
bef35864
MS
91162002-05-09 Michael Snyder <msnyder@redhat.com>
9117
9118 * remote-rdp.c (remote_rdp_can_run): Remove.
9119
c55a3f73
TT
91202002-05-09 Tom Tromey <tromey@redhat.com>
9121
9122 * jv-valprint.c (java_val_print): Handle `char' as a special case
9123 of TYPE_CODE_INT.
9124
b8d5e71d
MS
91252002-05-09 Michael Snyder <msnyder@redhat.com>
9126
9127 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
9128 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
361d1df0 9129 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
b8d5e71d 9130 str r(0123),[sp,#nn].
361d1df0 9131 (arm_skip_prologue): Ditto. Also make disassembly
b8d5e71d
MS
9132 order-independent by placing it in a loop.
9133
e2cd42dd
MS
91342002-05-06 Michael Snyder <msnyder@redhat.com>
9135
9136 * stabsread.c (read_type): Add recognition for new attribute:
9137 "@V;" means that an array type is actually a vector.
9138 This is analogous to the vector flag that's been added to dwarf2.
9139
3ce1502b
MK
91402002-05-09 Mark Kettenis <kettenis@gnu.org>
9141
9142 * i386-tdep.h (i386_abi): New enum.
9143 (struct gdbarch_tdep): Replace os_ident member with abi.
9144 (i386_gdbarch_register_os_abi): New prototype.
9145 * i386-tdep.c (i386_abi_names): New array.
9146 (process_note_abi_tag_sections): Removed.
9147 (process_note_sections): New function.
9148 (i386_elf_abi_from_note, i386_elf_abi): New functions.
9149 (struct i386_abi_handler): New struct.
9150 (i386_abi_handler_list): New variable.
9151 (i386_gdbarch_register_os_abi): New function.
9152 (i386_gdbarch_init): Adapt for the changes given above.
9153
084c156a
DJ
91542002-05-08 Daniel Jacobowitz <drow@mvista.com>
9155
9156 * gregset.h: Say "GNU/Linux".
9157
6599f021
EZ
91582002-05-08 Elena Zannoni <ezannoni@redhat.com>
9159
9160 * gdbtypes.c : Add new builtin type for 64 bit vectors.
9161 (build_gdbtypes): Build builtin_type_v2_float.
9162 (_initialize_gdbtypes): Register new builtin type.
9163
40af4b0c
AC
91642002-05-08 Andrew Cagney <ac131313@redhat.com>
9165
9166 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
9167 (clear_gdbarch_swap): New function.
9168 (initialize_non_multiarch): Call.
9169 (gdbarch_update_p): Before calling init(), swap out and clear the
9170 existing architecture.
9171 * gdbarch.c: Regenerate.
9172
4fe84f46
JT
91732002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9174
9175 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
9176 alphanbsd-tdep.c.
9177
4015edd1
JT
91782002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9179
9180 * sh-nbsd-nat.c: Rename to...
9181 * shnbsd-nat.c: ...this.
9182 * sh-nbsd-tdep.c: Rename to...
9183 * shnbsd-tdep.c: ...this.
9184 * sh-nbsd-tdep.h: Rename to...
9185 * shnbsd-tdep.h: ...this.
9186 * config/sh/nbsd.mh: Use shnbsd-nat.o.
9187 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
9188
0e2bd219
RE
91892002-05-08 Richard Earnshaw <rearnsha@arm.com>
9190
9191 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
9192 concatenation for command help messages.
9193
13a38d45
JT
91942002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9195
9196 * NEWS: Note new sh*-*-netbsdelf* configuration.
9197 * configure.host: Set gdb_host_cpu to sh for all sh*.
9198 (sh*-*-netbsdelf*): New host.
9199 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
9200 (sh*-*-netbsdelf*): New target.
9201 * sh-nbsd-nat.c: New file.
9202 * sh-nbsd-tdep.c: New file.
9203 * sh-nbsd-tdep.h: New file.
9204 * config/sh/nbsd.mh: New file.
9205 * config/sh/nbsd.mt: New file.
9206 * config/sh/nm-nbsd.h: New file.
9207 * config/sh/tm-nbsd.h: New file.
9208
d658f924
JT
92092002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9210
9211 * sh-tdep.c (sh_osabi_names): Declare.
9212 (process_note_abi_tag_sections): New function.
9213 (get_elfosabi): Ditto.
9214 (sh_gdbarch_register_os_abi): Ditto.
9215 (sh_dump_tdep): Ditto.
9216 _initialize_sh_tdep): Use gdbarch_register to register
9217 sh_gdbarch_init and sh_dump_tdep.
9218 * config/sh/tm-sh.h (sh_osabi): Declare.
9219 (gdbarch_tdep): Add sh_osabi and osabi_name members.
9220
848cfffb
AC
92212002-05-07 Andrew Cagney <ac131313@redhat.com>
9222
9223 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
9224 (thumb_scan_prologue): Ditto.
9225 (arm_find_callers_reg): Ditto.
9226 (arm_frame_chain): Ditto.
9227 (arm_init_extra_frame_info): Ditto.
9228 (arm_frame_saved_pc): Ditto.
9229 (arm_pop_frame): Ditto.
9230 (arm_push_return_address): New function.
9231 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
9232 call_dummy_location, call_dummy_breakpoint_offset_p,
9233 call_dummy_breakpoint_offset, call_dummy_p,
9234 call_dummy_stack_adjust_p, call_dummy_words,
9235 sizeof_call_dummy_words, call_dummy_start_offset,
9236 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
9237 call_dummy_address, push_return_address and push_dummy_frame for
9238 generic dummy frames.
9239
e7d717c0
JT
92402002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
9241
9242 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
9243 size computation for alloca.
9244 (sh_fp_frame_init_saved_regs): Likewise.
9245
7bbcf283
RE
92462002-05-07 Richard Earnshaw <rearnsha@arm.com>
9247
9248 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
9249 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
361d1df0 9250 * arm-tdep.c (arm_store_return_value): Use them.
7bbcf283
RE
9251 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
9252 * remote-rdp.c (remote_rdp_fetch_register): Use
9253 ARM_MAX_REGISTER_RAW_SIZE.
9254 (remote_rdp_store_register): Likewise.
9255
4657573b
ML
92562002-05-07 Michal Ludvig <mludvig@suse.cz>
9257
361d1df0 9258 * dwarf2cfi.c: Code cleanup, removed unused variables,
4657573b
ML
9259 added default labels to switch {} statements.
9260 * x86-64-tdep.c: Ditto.
9261 * x86-64-linux-nat.c: Ditto.
9262
010f3b2f
JT
92632002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
9264
9265 * solib.h: Protect against multiple inclusion.
9266
debd256d
JB
92672002-05-06 Jim Blandy <jimb@redhat.com>
9268
9ab3e532
JB
9269 Add first preprocessor macro-expansion files.
9270 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
9271 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
9272 (splay_tree_h, macroexp_h, macrotab_h): New variable.
9273 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
9274 (COMMON_OBS): Add macrotab.o, macroexp.o.
9275 (macroexp.o, macrotab.o): New rules.
9276
debd256d
JB
9277 Separate the job of reading the line number info statement program
9278 header (...expialidocious) out into its own function.
9279 * dwarf2read.c (struct line_head, struct filenames, struct
9280 directories): Replace with...
9281 (struct line_header): New structure, containing the full
9282 contents of the statement program header, including the
9283 include directory and file name tables.
9284 (read_file_scope): If we have line number info, instead of just
9285 calling dwarf_decode_lines to do all the work, call
9286 dwarf_decode_line_header first to get a `struct line_header'
9287 containing the data in the statement program header, and then
9288 pass that to dwarf_decode_lines, which will pick up where that
9289 left off. Be sure to clean up the `struct line_header' object.
9290 (dwarf_decode_line_header, free_line_header, add_include_dir,
9291 add_file_name): New functions.
9292 (dwarf_decode_lines): Move all the code to read the statement
9293 program header into dwarf_decode_line_header. Take the line
9294 header it built as the first argument, instead of the offset to
9295 the compilation unit's line number info. Use the new `struct
9296 line_header' type instead of the old structures. No need to do
9297 cleanups here now, since we don't allocate anything.
9298 (dwarf2_statement_list_fits_in_line_number_section,
9299 dwarf2_line_header_too_long): New complaints.
9300
ac3aafc7
EZ
93012002-05-06 Elena Zannoni <ezannoni@redhat.com>
9302
9303 * gdbtypes.c (init_vector_type): New function.
9304 (build_builtin_type_vec128): Simplify the representation of SIMD
9305 registers.
9306 (build_gdbtypes): Initialize new builtin vector types.
9307 (_initialize_gdbtypes): Register new vector types with gdbarch.
9308 (builtin_type_v4_float, builtin_type_v4_int32,
9309 builtin_type_v8_int16, builtin_type_v16_int8,
9310 builtin_type_v2_int32, builtin_type_v4_int16,
9311 builtin_type_v8_int8): New (renamed) SIMD types.
9312
13e49980
MK
93132002-05-06 Mark Kettenis <kettenis@gnu.org>
9314
9315 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
9316 (i387_fill_fxsave): Likewise.
9317
997b20b8
AO
93182002-05-05 Alexandre Oliva <aoliva@redhat.com>
9319
9320 * alpha-tdep.c (alpha_extract_return_value): Don't use
9321 non-constant array size in prototype.
9322
535c96ce
AC
93232002-05-04 Andrew Cagney <ac131313@redhat.com>
9324
9325 From Brian Taylor <briant at model dot com>:
9326 * ui-out.c (ui_out_field_core_addr): Use the function
9327 longest_local_hex_string_custom'to format addresses > 32 bits
9328 wide.
9329
9330 * ui-out.c (ui_out_field_core_addr): Update comment.
9331
bedfa57b
AC
93322002-05-04 Andrew Cagney <ac131313@redhat.com>
9333
9334 * stack.c (select_and_print_frame): Make static. Delete the
9335 parameter `level'.
9336 (func_command): Update call.
9337 (select_frame_command): Delete code computing the frame level.
9338 * frame.h (select_and_print_frame): Delete declaration.
9339
f621c63e
AC
93402002-05-04 Andrew Cagney <ac131313@redhat.com>
9341
9342 * sparc-tdep.c (sparc_get_saved_register): Comment why
9343 get_prev_frame call is safe.
9344
0f7d239c
AC
93452002-05-04 Andrew Cagney <ac131313@redhat.com>
9346
9347 * frame.h (select_frame): Delete level parameter.
9348 * stack.c (select_frame): Update. Use frame_relative_level to
9349 obtain the frame's level.
9350 (select_and_print_frame): Update call.
9351 (select_frame_command): Ditto.
9352 (up_silently_base): Ditto.
9353 (down_silently_base): Ditto.
9354 * ocd.c (ocd_start_remote): Ditto.
9355 * remote-rdp.c (remote_rdp_open): Ditto.
9356 * remote-mips.c (mips_initialize): Ditto.
9357 (common_open): Ditto.
9358 * remote-e7000.c (e7000_start_remote): Ditto.
9359 * m3-nat.c (select_thread): Ditto.
9360 * hppa-tdep.c (child_get_current_exception_event): Ditto.
9361 (child_get_current_exception_event): Ditto.
9362 * varobj.c (varobj_create): Ditto.
9363 (varobj_update): Ditto.
9364 (c_value_of_root): Ditto.
9365 * tracepoint.c (finish_tfind_command): Ditto.
9366 * corelow.c (core_open): Ditto.
9367 * arch-utils.c (generic_prepare_to_proceed): Ditto.
9368 * thread.c (info_threads_command): Ditto.
9369 (switch_to_thread): Ditto.
9370 * infrun.c (normal_stop): Ditto.
9371 (restore_selected_frame): Ditto.
9372 (restore_inferior_status): Ditto.
9373 * breakpoint.c (insert_breakpoints): Ditto.
9374 (watchpoint_check): Ditto.
9375 (bpstat_stop_status): Ditto.
9376 (do_enable_breakpoint): Ditto.
9377 * blockframe.c (flush_cached_frames): Ditto.
9378 (reinit_frame_cache): Ditto.
9379
71d6c7b1
AC
93802002-05-04 Andrew Cagney <ac131313@redhat.com>
9381
9382 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
9383 maintainer.
9384
cda6c68a
JB
93852002-05-04 Jim Blandy <jimb@redhat.com>
9386
9387 * gdbtypes.c (replace_type): Doc fix.
9388
5c1c87f0
AC
93892002-05-04 Andrew Cagney <ac131313@redhat.com>
9390
9391 * valprint.c (strcat_longest): Delete commented out function.
9392 Update copyright.
9393
cd9bfe15
AC
93942002-05-04 Andrew Cagney <ac131313@redhat.com>
9395
9396 * MAINTAINERS: Mark a29k as deleted.
9397 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
9398 Move new configurations to the top.
9399 * configure.tgt: Remove a29k.
9400 * config/a29k/tm-vx29k.h: Delete.
9401 * config/a29k/vx29k.mt: Delete.
9402 * config/a29k/tm-a29k.h: Delete.
9403 * config/a29k/a29k-udi.mt: Delete.
9404 * config/a29k/a29k.mt: Delete.
9405 * a29k-tdep.c: Delete.
9406 * remote-udi.c: Delete.
9407 * remote-mm.c: Delete.
9408 * remote-eb.c: Delete.
9409 * remote-adapt.c: Delete.
9410 * Makefile.in: Remove obsolete code.
cd9bfe15
AC
9411 * config/s390/s390x.mt: Ditto.
9412 * config/s390/s390.mt: Ditto.
9413 * config/sparc/sparclynx.mh: Ditto.
9414 * config/sparc/linux.mh: Ditto.
9415 * config/pa/hppaosf.mh: Ditto.
9416 * config/pa/hppabsd.mh: Ditto.
9417 * config/ns32k/nbsd.mt: Ditto.
9418 * config/mips/vr5000.mt: Ditto.
9419 * config/m68k/sun3os4.mh: Ditto.
9420 * config/m68k/nbsd.mt: Ditto.
9421 * config/m68k/m68klynx.mh: Ditto.
9422 * config/m32r/m32r.mt: Ditto.
9423 * config/i386/x86-64linux.mt: Ditto.
9424 * config/i386/nbsdelf.mt: Ditto.
9425 * config/i386/nbsd.mt: Ditto.
9426 * config/i386/i386lynx.mh: Ditto.
9427
bf0c5130
AC
94282002-05-04 Andrew Cagney <ac131313@redhat.com>
9429
9430 * target.c (debug_print_register): New function. Handle oversize
9431 registers.
9432 (debug_to_fetch_registers): Call.
9433 (debug_to_store_registers): Call.
9434
2ae1c2d2
JB
94352002-05-03 Jim Blandy <jimb@redhat.com>
9436
13a393b0
JB
9437 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
9438 (read_type): Doc fix.
9439 * gdbtypes.c (replace_type): Doc fix.
9440
2ae1c2d2
JB
9441 * stabsread.c (multiply_defined_struct): New complaint.
9442 (read_struct_type): If the type we were passed isn't empty, or
9443 incomplete, don't read the new struct type into it; complain,
9444 and return the original type unchanged. Take a new `type_code'
9445 argument, which is the type code for the new type.
9446 (read_type): Rather than storing the type's type code here, pass
9447 it as an argument to read_struct_type, and let that take care of
9448 storing it. That way, we don't overwrite the original type code,
9449 so read_struct_type can use it to decide whether we're overwriting
9450 something we shouldn't.
9451 (complain_about_struct_wipeout): New function.
9452
8de9bdc4
AC
94532002-05-03 Andrew Cagney <ac131313@redhat.com>
9454
9455 * gdbarch.sh: Assert that gdbarch is non-NULL.
9456 * gdbarch.c: Regenerate.
9457
f773fdbb
JM
94582002-05-03 Jason Merrill <jason@redhat.com>
9459
9460 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
9461 and return NULL.
9462
0e04a514
ML
94632002-05-03 Michal Ludvig <mludvig@suse.cz>
9464
9465 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
9466 (x86_64_dwarf2gdb_regno_map_length),
9467 (x86_64_dwarf2_reg_to_regnum): Added.
9468 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
9469 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
9470 (_initialize_x86_64_tdep): Synced with the change above.
9471 (x86_64_skip_prologue): Reformulated message.
9472
065432a8
PM
94732002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
9474
9475 * f-exp.y: Also use new prev_lexptr variable
9476 to improve error reporting. Based on Michael Snyder
9477 2002-04-24 dated patch to c-exp.y.
9478 * jv-exp.y: Likewise.
9479 * m2-exp.y: Likewise.
9480
a3162708
EZ
94812002-05-02 Elena Zannoni <ezannoni@redhat.com>
9482
9483 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
9484 we are dealing with vectors.
9485
03620c38
PM
94862002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9487
9488 * config/m68k/tm-nbsd.h: Obvious fix,
9489 correct machine name.
9490
6604db2e
PM
94912002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9492
9493 * p-typeprint.c (pascal_type_print_base): Add support
9494 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
9495
0906b739
PM
94962002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9497
9498 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
9499 for fondamental pascal 'char' type.
9500
e2625b33
PM
95012002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9502
9503 * p-lang.h (is_pascal_string_type): Declaration changed,
9504 new sixth argument of type char ** added.
361d1df0 9505 * p-lang.c (is_pascal_string_type): Implementation
e2625b33
PM
9506 changed. Args length_pos, length_size, string_pos, char_size
9507 can now be NULL. New argument arrayname set to the field
9508 name of the char array. Return value set to char array
9509 field index plus one.
361d1df0 9510 * p-valprint.c (pascal_val_print): Adapt to new declaration of
e2625b33
PM
9511 is_pascal_string_type function.
9512
cf17c188
AC
95132002-05-02 Andrew Cagney <cagney@redhat.com>
9514
9515 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
9516 <cagney@redhat.com> change.
9517 * gdbarch.c: Regenerate.
9518
52bca491
AC
95192002-05-02 Andrew Cagney <cagney@redhat.com>
9520
9521 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
9522 before probing for a new one. Detect errorenous gdbarch_init
9523 functions.
9524 * gdbarch.c: Regenerate.
9525
d5e72505
AC
95262002-05-01 Andrew Cagney <cagney@redhat.com>
9527
9528 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
9529 * config/mcore/tm-mcore.h: Ditto. Update copyright.
9530 * config/v850/tm-v850.h: Ditto. Update copyright.
9531
af566d9f
AC
95322002-04-30 Andrew Cagney <ac131313@redhat.com>
9533
9534 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
9535 current_gdbarch.
9536
880d85fa
MS
95372002-04-30 Michael Snyder <msnyder@redhat.com>
9538
94c30b78
MS
9539 * arm-tdep.c: Whitespace clean-ups.
9540 (arm_skip_prologue): Fix thinko; two lines
880d85fa
MS
9541 should have been removed as part of 4/24 change.
9542
6f5987a6
KB
95432002-04-30 Kevin Buettner <kevinb@redhat.com>
9544
9545 * rs6000-tdep.c: Added comment describing how fpscr register
9546 numbers were chosen.
9547
1a113c93
MS
95482002-04-30 Michael Snyder <msnyder@redhat.com>
9549
9550 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
9551
9a6f53fe
EZ
95522002-04-29 Elena Zannoni <ezannoni@redhat.com>
9553
9554 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
9555 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
9556 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
9557
11ed25ac
KB
95582002-04-29 Kevin Buettner <kevinb@redhat.com>
9559
9560 From Louis Hamilton <hamilton@redhat.com>:
9561 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
9562 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
9563 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
9564 not bfd-private xcoff data, to determine wordsize.
9565 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
9566
ae232405
AC
95672002-04-29 Andrew Cagney <ac131313@redhat.com>
9568
9569 GDB 5.2 released from 5.2 branch.
9570
91fd20f7
ML
95712002-04-29 Michal Ludvig <mludvig@suse.cz>
9572
9573 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
9574 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
9575 (x86_64_register_info_table): Added comments with register numbers.
361d1df0 9576
2dc5091b
EZ
95772002-04-29 Elena Zannoni <ezannoni@redhat.com>
9578
9579 * rs6000-tdep.c (rs6000_extract_return_value,
9580 rs6000_store_return_value): Handle returning vectors.
9581 (rs6000_gdbarch_init): Use
9582 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
9583 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
9584 New function.
9585 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
9586 vectors.
9587 (ppc_sysv_abi_push_arguments): Handle vector parameters.
9588 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
361d1df0 9589
2b9848d8
PM
95902002-04-24 Pierre Muller <ics.u-strasbg.fr>
9591
9592 * hpread.c (hpread_psymtab_to_symtab_1,
aacb1f0a 9593 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
2b9848d8
PM
9594 with fprintf_unfiltered (gdb_stderr,...).
9595
f8d17dc5
PM
95962002-04-24 Pierre Muller <ics.u-strasbg.fr>
9597
9598 * remote-array.c (printf_monitor, write_monitor,
361d1df0 9599 array_insert_breakpoint, array_remove_breakpoint ):
f8d17dc5
PM
9600 Replace fprintf (stderr,...
9601 with fprintf_unfiltered (gdb_stderr,....
9602 * remote-es.c: Likewise.
9603 * remote-os9k.c: Likewise.
9604 * remote-st.c: Likewise.
9605
2f2f1ad1
AS
96062002-04-28 Andreas Schwab <schwab@suse.de>
9607
9608 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
9609 linux-proc.o and gcore.o.
9610
b6779aa2
AC
96112002-04-26 Michal Ludvig <mludvig@suse.cz>
9612
9613 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
9614 code without frame pointers.
9615
7e57f5f4
AC
96162002-04-26 Andrew Cagney <ac131313@redhat.com>
9617
9618 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
9619 ON_STACK is needed.
9620
2ceb85d0
BE
96212002-04-26 Ben Elliston <bje@redhat.com>
9622
9623 * target.c (do_xfer_memory): Correct reference to the new option
9624 "trust-readonly-sections".
9625
f5f8a009
EZ
96262002-04-26 Elena Zannoni <ezannoni@redhat.com>
9627
9628 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
9629 * gdbtypes.c (recursive_dump_type): Output the vector flag.
9630 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
9631 vectors.
9632 (read_array_type): Record the fact that this array type is really a
9633 vector (i.e. are passed in by value).
9634
5868c862
JT
96352002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
9636
9637 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
9638 * alpha-tdep.c (alpha_sigcontext_addr): New function.
9639 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
9640 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
9641 * alpha-linux-tdep.c: Include frame.h.
9642 (alpha_linux_sigcontext_addr): New function.
9643 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
9644 alpha_linux_sigcontext_addr.
9645 * alpha-osf1-tdep.c: Include gdbcore.h.
9646 (alpha_osf1_sigcontext_addr): New function.
9647 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
9648 alpha_osf1_sigcontext_addr.
9649 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
9650 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
9651
bfb01f37
AC
96522002-04-26 Andrew Cagney <ac131313@redhat.com>
9653
361d1df0 9654 * stack.c (selected_frame_level):
bfb01f37
AC
9655 (select_frame): Do not set selected_frame_level.
9656 * frame.h (selected_frame_level): Delete declaration.
9657
15813d3f
AC
96582002-04-26 Andrew Cagney <ac131313@redhat.com>
9659
9660 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
9661 convert_from_func_ptr-addr when AIX / PowerOpen.
9662
6096c27a
AC
96632002-04-25 Andrew Cagney <ac131313@redhat.com>
9664
9665 * valops.c (hand_function_call): Call
9666 generic_save_call_dummy_addr.
9667 * frame.h (generic_save_call_dummy_addr): Declare.
9668 * blockframe.c (struct dummy_frame): Add fields call_lo and
9669 call_hi.
9670 (generic_find_dummy_frame): Check for PC in range call_lo to
9671 call_hi instead of entry_point_address.
9672 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
9673 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
9674 (generic_save_call_dummy_addr): New function.
9675
f510d44e
DM
96762002-04-24 David S. Miller <davem@redhat.com>
9677
9678 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
9679 sparc_skip_prologue.
9680 (sparc_skip_prologue): Kill frameless_p arg, and use line number
9681 information to find prologue when possible.
9682 (sparc_prologue_frameless_p): Call examine_prologue directly.
9683 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
9684 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
9685 second argument.
9686 (SKIP_PROLOGUE): Likewise.
9687
15d72a92
JT
96882002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9689
9690 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
9691 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
9692 indicate that the condition it was testing is always true.
9693 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
9694 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
9695 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
9696
accc6d1f
JT
96972002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9698
9699 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
9700 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
9701 tdep->jb_pc and tdep->jb_elt_size.
9702 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
9703 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
9704 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
9705 * alpha-nat.c (get_longjmp_target): Remove.
9706 (JB_ELEMENT_SIZE): Ditto.
9707 (JB_PC): Ditto.
9708 * alpha-tdep.c (alpha_get_longjmp_target): New function.
9709 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
9710 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
9711 to alpha_get_longjmp_target.
9712 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
9713 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
9714 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
9715
1bfdc549
AC
97162002-04-25 Andrew Cagney <ac131313@redhat.com>
9717
9718 * README: Update to GDB 5.2.
9719
1bd316f0
AC
97202002-04-25 Andrew Cagney <ac131313@redhat.com>
9721
9722 * gdbarch.sh (LC_ALL): Set to `c'.
9723
2e5ff58c
TR
97242002-04-25 Theodore A. Roth <troth@verinet.com>
9725
9726 * avr-tdep.c: Ran through gdb_indent.sh.
9727
e33ce519
TR
97282002-04-25 Theodore A. Roth <troth@verinet.com>
9729
9730 * MAINTAINERS: Add myself as AVR maintainer.
9731 * NEWS: Note new target avr.
9732
8818c391
TR
97332002-04-25 Theodore A. Roth <troth@verinet.com>
9734
9735 * Makefile.in: Add support for AVR target.
9736 * configure.tgt: Add support for AVR target.
9737 * avr-tdep.c: New file
9738 * config/avr/avr.mt: New file.
9739
79509c2d
TR
97402002-04-25 Theodore A. Roth <troth@verinet.com>
9741
9742 * MAINTAINERS: Add myself to write-after-approval.
9743
dac8068e
PM
97442002-04-24 Pierre Muller <ics.u-strasbg.fr>
9745
9746 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
9747 with fprintf_unfiltered (gdb_stderr,....
9748
25bf3106
PM
97492002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
9750
9751 Fix PR gdb/508.
9752 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
9753
24467a86
PM
97542002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
9755
9756 * p-exp.y: Also use new prev_lexptr variable
9757 to improve error reporting. Based on Michael Snyder
9758 2002-04-24 dated patch to c-exp.y.
9759
95b80706
JT
97602002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9761
9762 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
9763 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
9764 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
9765 to 0.
9766 * config/alpha/tm-alpha.h: Remove forward decls of struct type
9767 and struct value.
9768 (FUNCTION_START_OFFSET): Remove.
9769 (BREAKPOINT): Ditto.
9770
e90cc612
JT
97712002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9772
9773 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
9774 * NEWS: Ditto.
9775
6c72f9f9
JT
97762002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9777
9778 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
9779 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
9780 alpha_linux_pc_in_sigtramp.
9781 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
9782 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
9783 alpha_osf1_pc_in_sigtramp.
9784 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
9785 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
9786 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
9787 alphafbsd_pc_in_sigtramp.
9788 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
9789 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
9790 alphanbsd_pc_in_sigtramp.
9791 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
9792 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
9793
5e4f3379
JT
97942002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9795
9796 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
9797
da8ca43d
JT
97982002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9799
9800 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
9801 alphanbsd-tdep.c.
9802 (alphanbsd-nat.o): New dependency list.
9803 (alphanbsd-tdep.o): Ditto.
9804 * NEWS: Note new native NetBSD/alpha configuration.
9805 * alphanbsd-nat.c: New file.
9806 * alphanbsd-tdep.c: Ditto.
9807 * configure.host (alpha*-*-netbsd*): New host.
9808 * configure.tgt (alpha*-*-netbsd*): New target.
9809 * config/alpha/nbsd.mh: New file.
9810 * config/alpha/nbsd.mt: Ditto.
9811 * config/alpha/nm-nbsd.h: Ditto.
9812 * config/alpha/tm-nbsd.h: Ditto.
9813
36a6271d
JT
98142002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9815
9816 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
9817 (alpha-osf1-tdep.o): New dependency list.
9818 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
9819 and skip_sigtramp_frame members.
9820 * alpha-linux-tdep.c: Include gdbcore.h.
9821 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
9822 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
9823 * alpha-osf1-tdep.c: New file.
9824 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
9825 alpha-osf1-dep.c.
9826 (alpha_frame_past_sigtramp_frame): New function.
9827 (alpha_dynamic_sigtramp_offset): Ditto.
9828 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
9829 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
9830 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
9831 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
9832 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
9833 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
9834 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
9835 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
9836 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
9837 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
9838 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
9839 to find_solib_trampoline_target.
9840 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
9841 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
9842 (SKIP_TRAMPOLINE_CODE): Remove.
9843 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9844 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9845 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
9846 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
9847 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
9848 (PROC_SIGTRAMP_MAGIC): Ditto.
9849 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9850 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9851 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9852 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
9853 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
9854
2f4bc57b
JT
98552002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9856
9857 * NEWS: Note that Alpha targets are now multi-arch.
9858
665132f9
MS
98592002-04-24 Michael Snyder <msnyder@redhat.com>
9860
9861 * parser-defs.h (prev_lexptr): New external variable.
9862 * parse.c (parse_exp_1): Set prev_lexptr to null before
9863 calling the language-specific parser.
9864 * c-exp.y (yylex): Set prev_lexptr to start of current token.
9865 (yyerror): Use prev_lexptr in error reporting.
9866
32872fa7
DJ
98672002-04-24 Daniel Jacobowitz <drow@mvista.com>
9868
9869 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
9870 * gregset.h: If FILL_FPXREGSET is defined, provide
9871 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
9872 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
9873 is defined, call fill_fpxregset.
9874
57e76fac
MS
98752002-04-24 Roland McGrath <roland@frob.com>
9876
9877 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
9878 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
9879 (supply_gregset, supply_fpregset): New functions.
9880
9881 * gnu-nat.c (gnu_find_memory_regions): New function.
9882 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
9883 (gnu_xfer_memory): Add a cast.
9884
f43845b3
MS
98852002-04-24 Michael Snyder <msnyder@redhat.com>
9886
361d1df0 9887 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
f43845b3
MS
9888 loop. Add handling for "str lr, [sp, #-4]!" and for saves
9889 of argument regs ("str r(0123), [r11, #-nn"]).
361d1df0 9890 (arm_skip_prologue): Better handling for frameless functions.
f43845b3
MS
9891 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
9892 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
9893
a0abec03
AC
9894Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
9895
9896 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
9897 NUM_PSEUDO_REGS can be used.
9898
d7bd68ca
AC
98992002-04-24 Andrew Cagney <ac131313@redhat.com>
9900
9901 * arch-utils.h: Update copyright.
9902
9903 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
9904 * gdbarch.h, gdbarch.c: Re-generate.
9905
9906 * inferior.h (IN_SIGTRAMP): Delete definition.
9907 * arch-utils.c (legacy_pc_in_sigtramp): New function.
9908 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
9909
9910 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
9911 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
9912 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
9913 (find_proc_framesize): Ditto.
9914 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
9915 (alpha_init_extra_frame_info): Ditto.
9916 * infrun.c (handle_inferior_event): Ditto.
9917 (handle_inferior_event): Ditto.
9918 (check_sigtramp2): Ditto.
9919 * blockframe.c (create_new_frame): Ditto.
9920 (get_prev_frame): Ditto.
9921 * ppc-linux-tdep.c: Update comments.
9922 * i386-linux-tdep.c: Update comments.
9923 * breakpoint.c (bpstat_what): Update comment.
9924
4867e41e
DM
99252002-04-24 David S. Miller <davem@redhat.com>
9926
21d83aa5
DM
9927 * i960-tdep.c (register_in_window_p): New function.
9928 (i960_find_saved_register): Use it instead of
9929 REGISTER_IN_WINDOW_P.
9930 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
9931
4867e41e
DM
9932 * symtab.h (find_stab_function_addr): Kill extern.
9933 * minsyms.c (find_stab_function_addr): Remove from here...
9934 * dbxread.c: ... to here, and mark it static.
9935
69cdf6a2
DM
99362002-04-20 David S. Miller <davem@redhat.com>
9937
9938 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
9939 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
9940
5a595886
DM
99412002-04-21 David S. Miller <davem@redhat.com>
9942
9943 * remote-vxsparc.c (vx_read_register): Fix typo, we want
9944 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
9945 (vx_write_register): Likewise.
9946
1da1a192
JB
99472002-04-23 J. Brobecker <brobecker@gnat.com>
9948
9949 * source.c (is_regular_file): New function.
9950 (openp): Check wether file to open is a regular file
9951 to avoid opening directories.
9952
baa6f10b
JT
99532002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9954
9955 * findvar.c (extract_signed_integer): Cast printf argument
9956 to suppress format warning.
9957 (extract_unsigned_integer): Likewise.
9958 * infcmd.c (registers_info): Likewise.
9959 * top.c (get_prompt_1): Likewise.
9960 * valops.c (value_assign): Likewise.
9961 * valprint.c (print_decimal): Likewise.
9962
b2c4da81
L
99632002-04-22 H.J. Lu (hjl@gnu.org)
9964
9965 * c-exp.y (typebase): Support
361d1df0 9966
b2c4da81
L
9967 [long|long long|short] [signed|unsigned] [int|]
9968
9969 and
9970
9971 signed [long|long long|short] int
9972
f267bd6a
JT
99732002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9974
9975 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
9976 and vax-tdep.h.
9977 * vax-tdep.h: New file.
9978 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
9979 Make several routines static.
9980 (vax_get_saved_register): New function.
9981 (vax_gdbarch_init): New function.
9982 (_initialize_vax_tdep): Register vax_gdbarch_init.
9983 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
9984 Remove macros now under the control of gdbarch.
9985
da3c6d4a
MS
99862002-04-22 Michael Snyder <msnyder@redhat.com>
9987
11d3b27d
MS
9988 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
9989 Some whitespace and coding standards tweaks.
da3c6d4a 9990
a33f7558
JT
99912002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9992
9993 * vax-tdep.c: Include regcache.h.
9994 (vax_call_dummy_words): New.
9995 (sizeof_vax_call_dummy_words): New.
9996 (vax_fix_call_dummy): New function.
9997 (vax_saved_pc_after_call): Ditto.
9998 * config/vax/tm-vax.h: Don't include regcache.h.
9999 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
10000 (CALL_DUMMY): Remove.
10001 (CALL_DUMMY_WORDS): Define.
10002 (SIZEOF_CALL_DUMMY_WORDS): Define.
10003 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
10004
47a73475
MS
100052002-04-18 Michael Snyder <msnyder@redhat.com>
10006
10007 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
10008
52efde73
JT
100092002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10010
10011 * vax-tdep.c (vax_frame_chain): New function.
10012 (vax_push_dummy_frame): Ditto.
10013 (vax_pop_frame): Ditto.
10014 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
10015 (FRAMELESS_FUNCTION_INVOCATION): Use
10016 generic_frameless_function_invocation_not.
10017 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
10018 (POP_FRAME): Use vax_pop_frame.
10019
ea74468c
JT
100202002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10021
10022 * vax-tdep.c (vax_store_struct_return): New function.
10023 (vax_extract_return_value): Ditto.
10024 (vax_store_return_value): Ditto.
10025 (vax_extract_struct_value_address): Ditto.
10026 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
10027 vax_store_struct_return.
10028 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
10029 (STORE_RETURN_VALUE): Use vax_store_return_value.
10030 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
10031
5516aa92
JT
100322002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10033
10034 * vax-tdep.c (vax_frame_saved_pc): New function.
10035 (vax_frame_args_address_correct): Ditto.
10036 (vax_frame_args_address): Ditto.
10037 (vax_frame_locals_address): Ditto.
10038 (vax_frame_num_args): Move code to be in proximity to
10039 other frame-related functions.
10040 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
10041 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
10042 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
10043 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
10044 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
10045
36af0b35
L
100462002-04-22 H.J. Lu (hjl@gnu.org)
10047
10048 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
10049 includedir.
10050
ab62c900
JT
100512002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10052
10053 * vax-tdep.c (vax_frame_init_saved_regs): New function.
10054 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
10055 (FRAME_INIT_SAVED_REGS): New macro.
10056
7232b100
JT
100572002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10058
10059 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
10060
b70d2aee
JT
100612002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10062
10063 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
10064 where needed.
10065 (fetch_osf_core_registers): Likewise.
10066 (supply_gregset): Likewise.
10067
a0e8a2d1 100682002-04-22 J. Brobecker <brobecker@gnat.com>
361d1df0 10069
a0e8a2d1
JB
10070 * symfile.h (get_section_index): Define.
10071 * symfile.c (get_section_index): New function.
10072 * mdebugread.c (SC_IS_SBSS): New macro.
10073 (SC_IS_BSS): Return true for the scBss storage class only, as
10074 the scSBss storage class refers to the .sbss section.
10075 (parse_partial_symbols): Discard the symbols which associated
10076 section does not exist.
10077 Make sure to use the .sbss section index for symbols which
10078 storage class is scBss, rather than using the .bss section index.
10079
51eb8b08
JT
100802002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10081
10082 * vax-tdep.c: Update copyright years.
10083 (vax_register_name): New function.
10084 (vax_register_byte): Ditto.
10085 (vax_register_raw_size): Ditto.
10086 (vax_register_virtual_size): Ditto.
10087 (vax_register_virtual_type): Ditto.
10088 * config/vax/tm-vax.h: Update copyright years.
10089 (REGISTER_NAMES): Remove.
10090 (REGISTER_NAME): Define.
10091 (REGISTER_BYTE): Use vax_register_byte.
10092 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
10093 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
10094 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
10095
6cc1c0a8
AC
100962002-04-21 Andrew Cagney <ac131313@redhat.com>
10097
10098 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
10099 declaration
10100 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
10101
9319a2fe
DM
101022002-04-21 David S. Miller <davem@redhat.com>
10103
10104 * arch-utils.c (generic_prologue_frameless_p): Kill
10105 SKIP_PROLOGUE_FRAMELESS_P code.
10106 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
10107 references.
10108 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
10109 * arc-tdep.c (arc_prologue_frameless_p): Implement.
10110 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
10111 references.
10112 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
10113 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
10114 (sparc_gdbarch_init): Pass it to
10115 set_gdbarch_prologue_frameless_p.
a0e8a2d1 10116
e9ed6d01
JT
101172002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10118
10119 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
10120 (alphabsd-nat.o): New dependency list.
10121
36012033
JT
101222002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10123
10124 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
10125 alphafbsd-tdep.c.
10126 (alpha-linux-tdep.o): New dependency list.
10127 (alphafbsd-tdep.o): Likewise.
10128
3379287a
JT
101292002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10130
10131 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
10132 to here...
10133 * alpha-tdep.c: ...from here.
10134 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
10135
4bcbd6cb
JT
101362002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10137
10138 * config/alpha/tm-alpha.h: Move alpha_software_single_step
10139 prototype from here...
10140 * alpha-tdep.h: ...to here.
10141
b31da25e
AC
101422002-04-21 Andrew Cagney <ac131313@redhat.com>
10143
10144 * frame.h (selected_frame_level): Document as deprecated.
10145 (frame_relative_level): Declare.
10146 * stack.c (frame_relative_level): New function.
10147 (selected_frame_level): Document as deprecated.
10148 (select_frame): Do not set the selected_frame_level.
10149
10150 * stack.c (frame_info, record_selected_frame): Update.
10151 (frame_command, current_frame_command): Update.
10152 (up_silently_base, up_command, down_silently_base): Update.
10153 (down_command): Update.
10154 * inflow.c (kill_command): Update.
10155 * tracepoint.c (finish_tfind_command): Update.
10156 * corelow.c (core_open): Update.
10157 * thread.c (info_threads_command): Update.
10158 (do_captured_thread_select): Update.
10159 * infcmd.c (finish_command): Update.
10160 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
10161
9c1d6fe5
JT
101622002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10163
10164 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
10165
ab89facf
AC
101662002-04-21 Andrew Cagney <ac131313@redhat.com>
10167
10168 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
10169 type const.
10170
82a4efa1
JT
101712002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10172
10173 * alphafbsd-tdep.c: Update copyright years. Include
10174 alpha-tdep.h.
10175 (alphafbsd_use_struct_convention): Make static.
10176 (alphafbsd_init_abi): New function.
10177 (_initialize_alphafbsd_tdep): New function.
10178 * config/alpha/tm-fbsd.h: Update copyright years.
10179 (USE_STRUCT_CONVENTION): Remove.
10180
44dffaac
JT
101812002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10182
10183 * alpha-tdep.c (alpha_abi_handler): New structure to describe
10184 an Alpha ABI variant.
10185 (alpha_abi_handler_list): Declare.
10186 (alpha_gdbarch_register_os_abi): New function.
10187 (alpha_gdbarch_init): Give registered ABI variant handlers a
10188 chance to tweak the gdbarch once we have set up defaults.
10189 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
10190
65585be4
JT
101912002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10192
10193 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
10194 to standard_coerce_float_to_double.
10195 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10196
d9b023cc
JT
101972002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10198
10199 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
10200 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
10201 from gdbarch_tdep rather than a constant.
10202 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
10203 the default text address for all Alpha Unix ABIs.
10204 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
10205 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
10206
dc129d82
JT
102072002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10208
10209 * alpha-tdep.h: New file. Includes several Alpha target constants
10210 taken from...
10211 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
10212 let gdbarch deal with.
10213 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
10214 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
10215 to dependency list.
10216 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
10217 Alpha target register names.
10218 * alphabsd-nat.c: Likewise.
10219 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
10220 Alpha target register names. Make serveral routines static.
10221 (alpha_get_saved_register): New function.
10222 (alpha_abi_names): New.
10223 (process_note_abi_tag_sections): New function.
10224 (get_elfosabi): New function.
10225 (alpha_gdbarch_init): New function.
10226 (alpha_dump_tdep): New function.
10227 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
10228
d49d1e0a
AC
102292002-04-21 Andrew Cagney <ac131313@redhat.com>
10230
10231 * frame.c (find_saved_register): Delete #ifdef
10232 HAVE_REGISTER_WINDOWS code.
10233 * config/sparc/tm-sparc.h: Update comments.
10234 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
10235
92e8c9ed
AC
102362002-04-21 Andrew Cagney <ac131313@redhat.com>
10237
10238 * i960-tdep.c (i960_find_saved_register): New function.
10239 (i960_get_saved_register): New function.
10240 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
10241 (i960_get_saved_register): Declare.
10242 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
10243
e1925118
DM
102442002-04-20 David S. Miller <davem@redhat.com>
10245
10246 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
10247
29673b29
AC
102482002-04-20 Andrew Cagney <ac131313@redhat.com>
10249
10250 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
10251 instead of NUM_PSEUDO_REGS.
10252
6c86dcd5
DM
102532002-04-20 David S. Miller <davem@redhat.com>
10254
10255 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
10256 GDB_MULTI_ARCH_PARTIAL
10257 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
10258 define, let tm-sp64.h do it.
10259
aa40ec90
JT
102602002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
10261
10262 * frame.c (find_saved_register): Avoid a NULL pointer
10263 dereference and actually walk the frame list.
10264
0f79675b
AC
102652002-04-20 Andrew Cagney <ac131313@redhat.com>
10266
10267 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
10268 sorted in most most-recent-used order. Document.
10269 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 10270
f91305dd 102712002-04-19 Andrew Cagney <ac131313@redhat.com>
bf75c8c1
AC
10272
10273 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
10274 instead of ->prev.
10275 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
10276 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
10277 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
10278 instead of ->prev.
10279
73d322b1
EZ
102802002-04-19 Elena Zannoni <ezannoni@redhat.com>
10281
10282 Fix PR gdb/471.
10283 * gdbtypes.c (init_simd_type): Rewrite using new functions.
10284 (build_builtin_type_vec128): Ditto.
10285 (append_composite_type_field): Fix calculation of type length in
10286 union case.
10287
ccd9a834
EZ
102882002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
10289
10290 * config/djgpp/README: Update.
10291
10292 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
10293 compiler warnings.
10294
a57f9e49
JT
102952002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
10296
10297 * alpha-tdep.c (setup_arbitrary_frame): Rename...
10298 (alpha_setup_arbitrary_frame): ...to this.
10299 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
10300 for alpha_setup_arbitrary_frame.
10301
f4f9705a
AC
103022002-04-18 Andrew Cagney <cagney@redhat.com>
10303
10304 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
10305 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 10306
f4f9705a
AC
10307 * defs.h (breakpoint_from_pc_fn): Delete type definition.
10308 * target.h (memory_breakpoint_from_pc): Update declaration.
10309 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
10310
10311 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
10312 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
10313 * mem-break.c (memory_breakpoint_from_pc): Ditto.
10314 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
10315 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
10316 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
10317 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
10318 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
10319 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
10320 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
10321 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
10322 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
10323
10324 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
10325 const pointer.
10326 * monitor.c (monitor_insert_breakpoint): Ditto.
10327 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
10328
10329 * config/mcore/tm-mcore.h: Update copyright.
10330 * mem-break.c: Ditto.
10331 * xstormy16-tdep.c: Ditto.
10332
29f319b8
PM
103332002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
10334
10335 * p-exp.y: Add precedence rule for '^' token.
10336 This removes the shift/reduce conflicts.
10337 Remove the comment concerning these shift/reduce conflicts.
10338
ebeac11a
EZ
103392002-04-18 Elena Zannoni <ezannoni@redhat.com>
10340
10341 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
10342 (registers_powerpc_nofp): New register set for processors
10343 without floating point unit.
10344
27c31547
DM
103452002-04-18 David S. Miller <davem@redhat.com>
10346
10347 * MAINTAINERS: Add myself to write-after-approval.
10348
47a73475
MS
103492002-04-17 Michael Snyder <msnyder@redhat.com>
10350
10351 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
10352
953836b2
AC
103532002-04-17 Andrew Cagney <ac131313@redhat.com>
10354
10355 * rs6000-tdep.c (frame_initial_stack_address): Use
10356 frame_register_read to read the alloca_reg.
10357
8b0d4340
AC
103582002-04-17 Andrew Cagney <ac131313@redhat.com>
10359
10360 * frame.c (find_saved_register): Find saved registers in the next
10361 not prev frame.
10362 Fix PR gdb/365.
10363
d8864532
AC
103642002-04-17 Andrew Cagney <ac131313@redhat.com>
10365
10366 * gdbarch.sh (LANG): Set to ``c''.
10367
36cc83a3 103682002-04-15 Andrew Cagney <ac131313@redhat.com>
361d1df0 10369
36cc83a3 10370 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
361d1df0 10371
2f4150cc 103722002-04-15 Andrew Cagney <ac131313@redhat.com>
2c7ef074
AC
10373
10374 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
10375 Update copyright.
10376
628703c6 10377 * hpread.c (hpread_get_lntt): Add declaration.
2f4150cc 10378 Also fix PR gdb/391.
361d1df0 10379
56157b4a
AC
103802002-04-14 Andrew Cagney <ac131313@redhat.com>
10381
10382 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
10383 * aclocal.m4, configure: Re-generate.
10384 Fix PR gdb/391.
361d1df0 10385
6d1e3329
EZ
103862002-04-14 Elena Zannoni <ezannoni@redhat.com>
10387
10388 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
10389 instead of tm_print_insn.
10390
cb06fa07
EZ
103912002-04-14 Elena Zannoni <ezannoni@redhat.com>
10392
10393 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
10394
f208ba17
AC
103952002-04-14 Andrew Cagney <ac131313@redhat.com>
10396
10397 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
10398 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
10399 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
10400
20f01a46
DH
104012002-04-12 Don Howard <dhoward@redhat.com>
10402
10403 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
10404 max_user_call_depth.
10405 (init_cmd_lists): Initialize the new value;
10406 * cli/cli-script.c (execute_user_command): Limit the call depth of
10407 user defined commands. This avoids a core-dump when user commands
10408 are infinitly recursive.
10409
a88376a3
KB
104102002-04-12 Kevin Buettner <kevinb@redhat.com>
10411
10412 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
10413 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
10414 from tdep struct instead of DEFAULT_LR_SAVE.
10415 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
10416 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
10417 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
10418
f2172603
MS
104192002-04-12 Michael Snyder <msnyder@redhat.com>
10420
694f61fb 10421 * Remote.c: Spelling fix.
20fe79c8
MS
10422 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
10423 If no symbol found for "sbrk", try "_sbrk".
10424 (make_output_phdrs): Use bfd_section_name.
10425 (gcore_copy_callback): Use bfd_section_name.
62995fc4 10426 * eval.c: Indentation fix-ups.
169a7369
MS
10427 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
10428 in case it gets applied to an address that is already
10429 in the instruction space.
de74f71f
MS
10430 * cli/cli-decode.c (help_list): Allow long lines to wrap.
10431 * symfile.c: Fix indentation, long lines.
f2172603
MS
10432 * source.c: White space fix-up.
10433
cda5a58a
AC
104342002-04-12 Andrew Cagney <cagney@redhat.com>
10435
10436 * defs.h (read_relative_register_raw_bytes): Delete declaration.
10437 * frame.c (frame_register_read): New function. Return non-zero on
10438 success.
10439 (read_relative_register_raw_bytes_for_frame): Delete.
10440 (read_relative_register_raw_bytes): Delete.
10441 * frame.h (frame_register_read): Declare.
10442 * d30v-tdep.c: Update Copyright. Use frame_register_read.
10443 * sh-tdep.c: Ditto.
10444 * infcmd.c (do_registers_info): Ditto.
10445 * hppa-tdep.c: Ditto.
10446 * rs6000-tdep.c: Ditto.
10447 * h8500-tdep.c: Ditto.
10448 * mips-tdep.c: Ditto.
10449 * h8300-tdep.c: Ditto.
10450 * z8k-tdep.c: Ditto.
10451
2ea5f656
KB
104522002-04-12 Kevin Buettner <kevinb@redhat.com>
10453
10454 From Jimi X <jimix@watson.ibm.com>:
10455 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
10456 64-bit SysV ABI.
10457
27b15785
KB
104582002-04-12 Kevin Buettner <kevinb@redhat.com>
10459
10460 From Jimi X <jimix@watson.ibm.com>:
10461 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
10462 bfd info.
10463
5d57ee30
KB
104642002-04-12 Kevin Buettner <kevinb@redhat.com>
10465
10466 From Jimi X <jimix@watson.ibm.com>:
10467 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
10468 register sets for these processor variants.
10469
bc1e36ca
DJ
104702002-04-11 Daniel Jacobowitz <drow@mvista.com>
10471
bc1e36ca
DJ
10472 * regformats/reg-ppc.dat: Support FPSCR.
10473
e3f36dbd
KB
104742002-04-11 Kevin Buettner <kevinb@redhat.com>
10475
10476 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
10477 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
10478 Add fpscr as an invalid/unfetchable register.
10479 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
10480 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
10481 (fill_fpregset): Add support for register fpscr.
10482 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
10483 (fill_gregset): Account for the fact that register ``mq'' might
10484 not exist.
10485 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
10486 (registers_power): Add fpscr to register set at slot 71.
10487 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
10488 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
10489
943c9c25
MS
104902002-04-11 Michael Snyder <msnyder@redhat.com>
10491
10492 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
10493 * configure: Regenerate.
10494 * config.in: Regenerate.
10495 * acconfig.h: Add define for _SYSCALL32.
10496 * core-sol2.c: Remove #define _SYSCALL32.
10497 * solib-legacy.c: Remove #define _SYSCALL32.
10498
d8c0a2e7
AC
104992002-04-10 Andrew Cagney <ac131313@redhat.com>
10500
10501 * stack.c (select_frame): Cleanup internal error message, do not
10502 use %p.
10503
7cc19214
AC
105042002-04-10 Andrew Cagney <ac131313@redhat.com>
10505
10506 * stack.c (select_frame): Check that selected_frame and the
10507 specified level are as expected.
10508 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
10509 Update copyright.
10510 * frame.h (struct frame_info): Add field `level'. Update
10511 copyright.
10512 Work-in-progress PR gdb/464.
10513
67a2b77e
AC
105142002-04-10 Andrew Cagney <ac131313@redhat.com>
10515
10516 * maint.c (maint_print_section_info): Rename print_section_info.
10517 (print_bfd_section_info, print_objfile_section_info): Update.
10518 * inferior.h (struct gdbarch): Add opaque declaration.
10519 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
10520 * gdbarch.h: Regenerate.
10521
8cfda98c
ML
105222002-04-10 Michal Ludvig <mludvig@suse.cz>
10523
10524 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
10525 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
10526 (kernel_u_size): Added.
10527 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
10528 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
10529
ca439ad2 105302002-04-04 Jim Ingham <jingham@apple.com>
361d1df0 10531
ca439ad2
JI
10532 * valarith.c (find_size_for_pointer_math): New function, either returns
10533 the size for a pointer's target, returns 1 for void *, or errors for
10534 incomplete types.
10535 (value_add, value_sub): use find_size_for_pointer_math.
10536
2f2893d9
DJ
105372002-04-09 Daniel Jacobowitz <drow@mvista.com>
10538
10539 * linux-low.c (linux_look_up_symbols): New hook.
10540 (linux_target_ops): Add linux_look_up_symbols.
10541 * remote-utils.c (decode_address): New function.
10542 (look_up_one_symbol): New function.
10543 * server.c (handle_query): Call target look_up_symbols hook.
10544 * server.h (look_up_one_symbol): Add prototype.
10545 * target.h (struct target_ops): Add look_up_symbols hook.
10546
96cb11df
AC
105472002-04-09 Andrew Cagney <ac131313@redhat.com>
10548
10549 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
10550 override FP_REGNUM with frame->fp. Update copyright.
10551 * parse.c (num_std_regs, std_regs): Delete.
10552 (target_map_name_to_register): Do not search std_regs. Update
10553 function description.
10554 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
10555 declarations. Update copyright.
10556 Fix PR gdb/251.
361d1df0 10557
97658e92
DJ
105582002-04-09 Daniel Jacobowitz <drow@mvista.com>
10559
10560 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
10561 after the last symbol in a block.
10562
6044e3eb
PM
105632002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
10564
10565 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
10566 is non zero as a found symbol.
10567
0406ec40
AC
105682002-04-08 Andrew Cagney <ac131313@redhat.com>
10569
10570 * findvar.c: Include "builtin-regs.h".
10571 (value_of_register): Call value_of_builtin_reg when applicable.
10572 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
10573 (target_map_name_to_register): Call
10574 builtin_reg_map_name_to_regnum.
10575 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
10576 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
10577 (builtin_regs_h): Define.
10578 (builtin-regs.o): New target.
10579 (findvar.o): Add $(builtin_regs_h).
10580 * builtin-regs.c, builtin-regs.h: New files.
10581 * std-regs.c: New file.
10582 Partial fix for PR gdb/251.
10583
56a6dfb9
KB
105842002-04-08 Kevin Buettner <kevinb@redhat.com>
10585
10586 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
10587 it's no longer required.
10588
3a808432
AC
105892002-04-08 Andrew Cagney <ac131313@redhat.com>
10590
10591 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
10592
7c40d541
KB
105932002-04-08 Kevin Buettner <kevinb@redhat.com>
10594
10595 From Jimi X <jimix@watson.ibm.com>:
10596 * rs6000-tdep.c (rs6000_software_single_step): Use
10597 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
10598 and size. Use target_insert_breakpoint() and
10599 target_remove_breakpoint() to insert and remove breakpoints
10600 instead of explicit memory reads and writes.
10601
cc9836a8
KB
106022002-04-08 Kevin Buettner <kevinb@redhat.com>
10603
10604 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
10605 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
10606 ELF_OBJECT_FORMAT ifdef.
10607
7495d1dc
KB
106082002-04-08 Kevin Buettner <kevinb@redhat.com>
10609
10610 From Jimi X <jimix@watson.ibm.com>:
10611 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
10612
4288e836
KB
106132002-04-08 Kevin Buettner <kevinb@redhat.com>
10614
10615 From Jimi X <jimix@watson.ibm.com>:
10616 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
10617 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
10618
a4e4e501
MK
106192002-04-07 Mark Kettenis <kettenis@gnu.org>
10620
10621 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
10622 s/asprintf/xasprintf/.
10623 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
10624
006defba
AC
106252002-04-07 Andrew Cagney <ac131313@redhat.com>
10626
10627 I believe Jeff Law denies responsability for this one:
10628 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
10629 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
10630 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
10631 Work-around for PR gdb/366.
10632
7aa83cac
EZ
106332002-04-07 Elena Zannoni <ezannoni@redhat.com>
10634
10635 * remote-e7000.c (write_small, e7000_read_inferior_memory,
10636 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
10637 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
10638
cf1fcca1
EZ
106392002-04-07 Elena Zannoni <ezannoni@redhat.com>
10640
10641 * sh-tdep.c (sh_fp_frame_init_saved_regs,
10642 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
10643 information.
10644
3f289e6f
AC
106452002-04-07 Andrew Cagney <ac131313@redhat.com>
10646
10647 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
10648 maintainer.
10649
129188f6
AC
106502002-04-07 Andrew Cagney <ac131313@redhat.com>
10651
10652 * README (Reporting Bugs in GDB): Document the bug web page as the
10653 prefered way of submitting bugs.
10654 Fix PR gdb/402.
10655
1200cd6e
AC
106562002-04-06 Andrew Cagney <ac131313@redhat.com>
10657
10658 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
10659 -1. Update comment.
10660 * gdbarch.h, gdbarch.c: Re-generate.
10661
2853c33c
AS
106622002-04-07 Andreas Schwab <schwab@suse.de>
10663
10664 * m68klinux-nat.c (fill_fpregset): Properly pass address of
10665 buffer to regcache_collect.
10666
c2169756
AC
106672002-04-06 Andrew Cagney <ac131313@redhat.com>
10668
10669 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
10670 * gdbarch.c, gdbarch.h: Re-generate.
10671
25f1b008
AC
106722002-04-06 Andrew Cagney <ac131313@redhat.com>
10673
10674 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
10675 declaration. Fix -Werror.
10676
59263426
DJ
106772002-04-05 Daniel Jacobowitz <drow@mvista.com>
10678
10679 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
10680 * gdbarch.c: Regenerate.
10681
f5db4da3
MS
106822002-04-05 Michael Snyder <msnyder@redhat.com>
10683
80f8a6eb
MS
10684 * breakpoint.c (clear_command): Rewrite middle section to
10685 combine two loops with identical control conditions.
10686 Add a cleanup to eliminate a memory leak.
f5db4da3
MS
10687 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
10688
ad3dcc5c
L
106892002-04-05 H.J. Lu (hjl@gnu.org)
10690
10691 * solib-svr4.c (bkpt_names): Add "__start".
10692
f32e7a74
AC
106932002-04-04 Andrew Cagney <ac131313@redhat.com>
10694
10695 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
10696 as test for 64 bit target.
10697
8227c0ff
AC
106982002-04-05 Andrew Cagney <ac131313@redhat.com>
10699
10700 * h8500-tdep.c (h8500_write_fp): Delete function.
10701 * dwarf2cfi.c (cfi_write_fp): Document as not used.
10702 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
10703 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
10704 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
10705 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
10706 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
10707 (s390_write_fp):
10708 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
10709 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
10710 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
10711 (d10v_write_fp): Delete function.
10712 * inferior.h (write_fp, generic_target_write_fp): Delete
10713 declarations.
10714 * regcache.c (generic_target_write_fp): Delete function.
10715 (write_fp): Delete function.
10716 * gdbarch.sh (TARGET_WRITE_FP): Delete.
10717 * gdbarch.h, gdbarch.c: Regenerate.
10718 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
10719 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
10720 (sparc64_write_fp): Delete declaration.
10721 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
10722 (h8500_write_fp): Delete declaration.
10723
2757dd86
AC
107242002-04-04 Andrew Cagney <ac131313@redhat.com>
10725
10726 * sparc-tdep.c (sparc64_write_fp): Delete.
10727 (sparc_push_dummy_frame): Replace write_fp call with code to store
10728 the FP directly.
10729 (sparc_gdbarch_init): Do not initialize write_fp.
10730
c69255e1
KB
107312002-04-05 Kevin Buettner <kevinb@redhat.com>
10732
10733 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
10734 clause.
10735
ae767bfb
JB
107362002-03-29 Jim Blandy <jimb@redhat.com>
10737
10738 * stack.c (get_selected_block): Add new argument `addr_in_block',
10739 used to return the exact code address we used to select the block,
10740 not just the block.
10741 * blockframe.c (get_frame_block, get_current_block): Same.
10742 * frame.h (get_frame_block, get_current_block,
10743 get_selected_block): Update declarations.
10744 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
10745 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
10746
84d2ac95
MS
107472002-04-05 Michael Snyder <msnyder@redhat.com>
10748
10749 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
10750 warning message.
10751
596aa3bf
JB
107522002-04-05 J. Brobecker <brobecker@gnat.com>
10753
10754 * utils.c (xfullpath): New function.
10755 * defs.h (xfullpath): Add declaration.
10756 * source.c (openp): Use xfullpath in place of gdb_realpath to
10757 avoid resolving the basename part of filenames when the
10758 associated file is a symbolic link. This fixes a potential
10759 inconsistency between the filenames known to GDB and the
10760 filenames it prints in the annotations.
10761 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
10762 to be able to match a filename with either the real filename, or
10763 the name of any symbolic link to this file.
10764 (lookup_partial_symtab): Ditto.
10765
c02f5703
MS
107662002-04-04 Michael Snyder <msnyder@redhat.com>
10767
10768 * breakpoint.c: Add support for hardware breakpoints in overlays.
10769 (overlay_events_enabled): New state variable.
10770 (insert_breakpoints): Use overlay_events_enabled to decide
10771 whether to attempt to set a breakpoint at the overlay load addr.
10772 Handle bp_hardware_breakpoint as well as bp_breakpoint.
10773 (remove_breakpoint): Use overlay_events_enabled to decide
10774 whether breakpoints need to be removed from overlay load addr.
10775 Handle bp_hardware_breakpoint as well as bp_breakpoint.
10776 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
361d1df0 10777 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
c02f5703
MS
10778 disable_overlay_breakpoints): Update overlay_events_enabled.
10779
5fb290d7
DJ
107802002-04-04 Daniel Jacobowitz <drow@mvista.com>
10781
10782 * dwarf2read.c (struct function_range): New.
10783 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
10784 (check_cu_functions): New.
10785 (read_file_scope): Initialize global function lists.
10786 Call dwarf_decode_line after processing children.
10787 (read_func_scope): Add to global function list.
10788 (dwarf_decode_lines): Call check_cu_functions everywhere
10789 record_line is called. Call record_line with a linenumber
10790 of 0 to mark sequence ends.
10791
7b3fabf0
ML
107922002-04-04 Michal Ludvig <mludvig@suse.cz>
10793
361d1df0 10794 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7b3fabf0
ML
10795 change sync with glibc.
10796
bce58c09
JB
107972002-04-03 Jim Blandy <jimb@redhat.com>
10798
10799 * configure.in: Call AC_C_INLINE.
10800 * configure: Regenerated.
361d1df0 10801
2fccf04a
DJ
108022002-04-01 Daniel Jacobowitz <drow@mvista.com>
10803
10804 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
10805 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
10806
2d1bfe2e
MK
108072002-03-31 Mark Kettenis <kettenis@gnu.org>
10808
a5941fbf
MK
10809 * NEWS: Mention gcore support on FreeBSD/i386.
10810
a90cd31d
MK
10811 * fbsd-proc.c: New file.
10812 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
10813 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
10814
2d1bfe2e
MK
10815 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
10816 while statement.
10817
9eb6e5a1
JB
108182002-03-29 Jim Blandy <jimb@redhat.com>
10819
10820 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
10821 unescaped newlines in string literals, but newer ones don't. So
10822 escape them.
10823
f02df580
MS
108242002-03-26 Michael Snyder <msnyder@redhat.com>
10825 Andrew Cagney <cagney@redhat.com>
10826
361d1df0 10827 * cli/cli-dump.c: New file. Dump memory to file,
f02df580
MS
10828 restore file to memory.
10829 * cli/cli-dump.h: New file.
10830 * Makefile.in: Add rules, dependencies for cli-dump.o.
89743e04 10831 * NEWS: Mention new commands.
f02df580 10832
109f874e
MS
108332002-03-28 Michael Snyder <msnyder@redhat.com>
10834
10835 * symfile.c (symbol_file_add): Move test for null symbols to later.
10836
520f6ade
AC
108372002-03-27 Andrew Cagney <ac131313@redhat.com>
10838
10839 From veksler at il.ibm.com:
10840 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
10841 the xstrduped original path.
10842 Fix PR gdb/417.
10843
d4654627
MS
108442002-03-27 Michael Snyder <msnyder@redhat.com>
10845
10846 * breakpoint.c (_initialize_breakpoint): Clean up help string.
10847 * infcmd.c (_initialize_infcmd): Ditto.
10848 * language.c (_initialize_language): Ditto.
10849 * symfile.c (_initialize_symfile): Ditto.
10850 * top.c (_init_main): Ditto.
10851 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10852
6be8bc0c
EZ
108532002-03-27 Elena Zannoni <ezannoni@redhat.com>
10854
10855 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
10856 vector registers handling.
10857 (skip_prologue): Handle new AltiVec instructions. Fill in new
10858 fields of frame data.
10859 (frame_get_saved_regs): Fill in information for AltiVec registers.
10860
12af6855
JB
108612002-03-27 Jim Blandy <jimb@redhat.com>
10862
10863 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
10864 a function; leave this macro here to invoke that function.
10865 (symbol_init_mangled_name): Declaration for that function.
10866 * symtab.c (symbol_init_mangled_name): New function.
10867
dc672865
AC
108682002-03-27 Andrew Cagney <ac131313@redhat.com>
10869
10870 * valarith.c: Replace strerror with safe_strerror.
10871 * tracepoint.c: Ditto.
10872 * lin-lwp.c: Ditto.
10873 * go32-nat.c: Ditto.
10874 * inflow.c: Ditto.
10875 * gnu-nat.c: Ditto.
10876
d96429cd
AS
108772002-03-27 Andreas Schwab <schwab@suse.de>
10878
10879 * event-top.c (command_line_handler): Remove useless if.
10880
7e336ba1
AJ
108812002-03-27 Andreas Jaeger <aj@suse.de>
10882
10883 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
10884 comment.
10885
de220d0f
ML
108862002-03-27 Michal Ludvig <mludvig@suse.cz>
10887
10888 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
10889 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
10890 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
10891 (x86_64_linux_dr_get_status, supply_gregset),
10892 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
10893 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
10894 (x86_64_register_info_table): Add.
10895 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
10896 (x86_64_register_raw_size, x86_64_register_virtual_type),
10897 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
10898 general x86_64_register_info_table.
10899 (i386_gdbarch_init): gdbarch_register_bytes is now set
10900 dynamicaly during initialization.
10901 * regformats/reg-x86-64.dat: Synced with changes to registers above.
10902 * gdbserver/linux-x86-64-low.c: Ditto.
7e336ba1 10903
0e98d0a7
DJ
109042002-03-27 Daniel Jacobowitz <drow@mvista.com>
10905
10906 * gdbserver/server.c (main): Call target_signal_to_host_p
10907 and target_signal_to_host on signals received from the remote.
10908 * gdbserver/remote-utils.c (prepare_resume_reply): Call
10909 target_signal_from_host on signals sent to the remote.
10910 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
10911 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
10912
3130066b
DJ
109132002-03-27 Daniel Jacobowitz <drow@mvista.com>
10914
10915 * signals/signals.c: Include "server.h" in gdbserver build.
10916 (target_signal_from_name): Don't use STREQ.
10917 (_initialize_signals): Likewise. Don't include function in
10918 gdbserver build.
10919
9aedf4f4
DJ
109202002-03-27 Daniel Jacobowitz <drow@mvista.com>
10921
10922 * signals.c: Moved to...
10923 * signals/signals.c: Here.
7e336ba1 10924 * Makefile (signals.o): Update.
9aedf4f4 10925
3fa41cdb
JL
109262002-03-26 Jeff Law (law@redhat.com)
10927
10928 * somread.c (som_symtab_read): Remove some commented out code and
10929 updated related comments. Do not set the minimal symbol table to
10930 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
10931 in a dynamic executable.
10932 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
10933 where we are unable to find the minimal symbol for the given
10934 PC value.
10935
ee677e8d
MS
109362002-03-25 Jeff Law (law@redhat.com)
10937
10938 * linux-proc.c (read_mapping): Scan up to end of line for filename.
10939
e76e1718
ML
109402002-03-25 Michal Ludvig <mludvig@suse.cz>
10941
10942 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
10943
18a642a1
AC
109442002-03-23 Andrew Cagney <ac131313@redhat.com>
10945
10946 * command.h: Update copyright.
10947 (struct cmd_list_element): Replace definition with opaque
10948 declaration.
10949 (enum cmd_types): Document that it will eventually be moved to
10950 cli/cli-decode.h
10951 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
10952 (MALLOCED_REPLACEMENT): Delete macro.
10953 * Makefile.in (cli_decode_h): Add $(command_h).
10954 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7e336ba1 10955 * top.c: Include "cli/cli-decode.h".
18a642a1
AC
10956 * completer.c: Include "cli/cli-decode.h".
10957 * maint.c: Include "cli/cli-decode.h".
10958 * cli/cli-decode.h: Include "command.h".
10959 (enum command_class): Delete.
10960 (enum cmd_types): Comment out.
10961 (enum cmd_auto_boolean): Delete.
10962 (enum var_types): Delete.
10963
b2875cc0
AC
109642002-03-23 Andrew Cagney <ac131313@redhat.com>
10965
10966 * cli/cli-decode.c: Include "gdb_assert.h".
10967 (add_set_or_show_cmd): New static function.
10968 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
10969 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
10970 all fields, such as func, from the set command.
10971
3b45974e
AC
109722002-03-23 Andrew Cagney <ac131313@redhat.com>
10973
10974 * MAINTAINERS (sh-elf): Change warning flag to -w.
10975
823ca731
AC
109762002-03-23 Andrew Cagney <cagney@redhat.com>
10977
10978 * defs.h (error): Add printf format attribute.
10979 * thread-db.c (thread_from_lwp): Fix error format string.
10980 * stack.c (parse_frame_specification): Ditto.
10981 * cli/cli-decode.c (undef_cmd_error): Ditto.
10982 * scm-lang.c (scm_lookup_name): Ditto.
10983 * tracepoint.c (trace_error): Ditto.
10984 * remote-utils.c (usage): Ditto.
10985 * remote.c (compare_sections_command): Ditto.
10986 Fix PR gdb/328.
10987
0e101458
AC
109882002-03-22 Andrew Cagney <ac131313@redhat.com>
10989
10990 * gdbtypes.c (append_composite_type_field): New function.
10991 (init_composite_type): New function.
10992 * gdbtypes.h (append_composite_type_field): Declare.
10993 (init_composite_type): Ditto.
10994
8e0662df
EZ
109952002-03-22 Elena Zannoni <ezannoni@redhat.com>
10996
10997 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7e336ba1 10998 function.
8e0662df
EZ
10999 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
11000 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
11001 structure returning convention for SYSV ABI case, but not
11002 for GNU/Linux, FreeBSD, or NetBSD.
11003
3121eff0
DJ
110042002-03-22 Daniel Jacobowitz <drow@mvista.com>
11005
11006 * symtab.h (lookup_block_symbol): Add mangled_name argument
11007 to prototype.
11008
11009 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
11010 with new mangled_name argument.
11011 * linespec.c (decode_line_1): Likewise.
11012 * valops (value_of_this): Likewise.
11013 * symtab.c (lookup_transparent_type): Likewise.
11014 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
11015 (lookup_symbol): If we are given a mangled name, pass it down
11016 to lookup_symbol_aux.
11017 (lookup_block_symbol): If we are given a mangled name to check
11018 against, only return symbols which match it.
11019
349b409f
CF
110202002-03-22 Christopher Faylor <cgf@redhat.com>
11021
11022 * win32-nat.c (child_create_inferior): Check for proper shell to use
11023 here, in case the user changes it on the fly.
11024 (_initialize_inftarg): Remove shell path considerations.
11025
2a873819
EZ
110262002-03-21 Elena Zannoni <ezannoni@redhat.com>
11027
11028 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
11029 for gdbarch_max_register_raw_size and max_register_virtual_size.
11030 Adjust copyright year.
11031
a1b9830c
DJ
110322002-03-21 Daniel Jacobowitz <drow@mvista.com>
11033
11034 * dbxread.c (process_one_symbol): Extend the first N_SLINE
11035 in a function to cover the entire beginning of the function
11036 as well if it does not already.
11037
8b5790f2
TR
110382002-03-21 Tom Rix <trix@redhat.com>
11039
11040 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
11041 (rs6000_ptrace64): Renamed from ptrace64.
11042
bdbe5747
MH
110432002-03-20 Martin M. Hunt <hunt@redhat.com>
11044
11045 * gdbserver/remote-utils.c (remote_open): Don't call
11046 getprotobyname, we're all using TCP here so just use
11047 IPPROTO_TCP.
7e336ba1 11048 * gdbserver/gdbreplay.c (remote_open): Ditto.
bdbe5747
MH
11049
110502002-03-20 Martin M. Hunt <hunt@redhat.com>
7e336ba1 11051
bdbe5747
MH
11052 * regcache.c (_initialize_regcache): No need to call
11053 build_regcache() at this time; it gets called whenever
11054 the gdbarch changes.
11055
7781cd62
DB
110562002-03-20 David O'Brien <obrien@FreeBSD.org>
11057
11058 * sparc-nat.c: Include sys/param.h where possible.
11059
f65ca430
DJ
110602002-03-20 Daniel Jacobowitz <drow@mvista.com>
11061
11062 Fix PR gdb/422.
11063 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
11064 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
11065 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
11066 complex types.
11067 * stabsread.c (rs6000_builtin_type): Likewise.
11068 (read_sun_floating_type): Likewise.
11069
0c867556
PS
110702002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11071
11072 * stabsread.c (read_member_functions): Remove skip code for duplicate
11073 constructor/destructor methods. Use standard parsing for these
11074 methods and just do not chain them to the list of methods after
11075 parsing.
11076
12b9c64f
AO
110772002-03-19 Alexandre Oliva <aoliva@redhat.com>
11078
11079 * coffread.c: Remove redundant static declarations. Replace
11080 occurrences of `PTR' with `void *'.
11081 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
11082 * top.h (quit_cover): Likewise.
11083 * defs.h (catch_errors): Likewise.
11084
349c5d5f
AC
110852002-03-18 Andrew Cagney <ac131313@redhat.com>
11086
11087 * defs.h (XMALLOC): Define.
11088 * gdb-events.sh (XMALLOC): Delete macro.
11089 * gdb-events.c, gdb-events.h: Regenerate.
11090 * gdbarch.sh (XMALLOC): Delete macro.
11091 * gdbarch.c: Regenerate.
11092 * serial.c (XMALLOC): Delete macro.
11093 * ui-file.c (XMALLOC): Ditto.
11094 * ser-unix.h (XMALLOC): Ditto.
11095 * sh-tdep.c (XMALLOC): Ditto.
11096 * ui-out.c (XMALLOC): Ditto.
11097 * utils.c (XMALLOC): Ditto.
11098 * i386-tdep.c (XMALLOC): Ditto.
11099 * gdb-events.c (XMALLOC): Ditto.
11100 * d10v-tdep.c (XMALLOC): Ditto.
11101 * cli-out.c (XMALLOC): Ditto.
11102
11103 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
11104 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
11105 * ui-file.c, ui-out.c: Ditto.
11106
7d0766f3
AC
111072002-03-18 Andrew Cagney <ac131313@redhat.com>
11108
11109 * command.h (struct cmd_list_element): Add field context.
11110 (set_cmd_context, get_cmd_context): Declare.
11111 * cli/cli-decode.h: Ditto.
11112 * cli/cli-decode.c (get_cmd_context): New function.
11113 (set_cmd_context): New function.
11114 (add_cmd): Initialize context.
11115 Part of fixing PR gdb/145 and PR gdb/146.
11116
5913bcb0
AC
111172002-03-17 Andrew Cagney <ac131313@redhat.com>
11118
1868c04e
AC
11119 * cli/cli-decode.c (cmd_type): New function.
11120 * command.h (cmd_type): Declare.
11121 * infrun.c (set_schedlock_func): Call function cmd_type.
11122 * kod.c (kod_set_os): Call cmd_type.
11123 * cris-tdep.c (cris_version_update): Use function cmd_type.
11124 (cris_mode_update, cris_abi_update): Ditto.
11125
5913bcb0
AC
11126 * command.h: (execute_cmd_post_hook): Declare.
11127 (execute_cmd_pre_hook): Declare.
11128 * cli/cli-script.c (clear_hook_in_cleanup): New function.
11129 (execute_cmd_post_hook, execute_cmd_pre_hook): New
11130 functions. Execute pre/post hook while ensuring that afterwords
11131 hook_in is cleared.
11132 * top.c (execute_command): Use execute_cmd_post_hook, and
11133 execute_cmd_pre_hook to execute pre/post commands.
11134 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
11135 hook_stop_stub.
11136 (hook_stop_stub): Call execute_cmd_pre_hook.
11137
b51450c9
AC
111382002-03-17 Andrew Cagney <ac131313@redhat.com>
11139
11140 * kod.c (kod_set_os): Revert previous change. Is called by ``info
11141 set'' and this leads to a core dump. Move xstrdup of
11142 operating_system to after check that it is not NULL.
11143
f66c9f11
AC
111442002-03-17 Andrew Cagney <ac131313@redhat.com>
11145
8e694ecf
AC
11146 * kod.c (kod_set_os): Remove unnecessary check that
11147 ``command->type'' is set_cmd.
11148
f66c9f11
AC
11149 * valprint.c (set_input_radix): Use input_radix.
11150 (set_output_radix): Use output_radix.
11151 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
11152 isn't reverted.
11153
9d01611c
AC
111542002-03-16 Andrew Cagney <ac131313@redhat.com>
11155
11156 * value.h (struct value): Delete field ``substring_addr''. Change
11157 aligner fields to force_doublest_align, force_longest_align,
ee2d3b3a
AC
11158 force_core_addr_align and force_pointer_aligh.
11159
11160 * value.h (struct value): Fix typo in above change.
9d01611c 11161
4156bb53
PS
111622002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11163
11164 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
11165 to fix internal_error from ``maintenance print architecture''.
11166
0e5e3ea6
PS
111672002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11168
11169 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
11170 for gcc versions after gcc-2.8.1.
11171
9b013045
PS
111722002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11173
11174 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
11175 for method resolution. Restore adjustment of ``this'' pointer after
11176 calling value_struct_elt, which was accidentally removed during the
11177 HP merge.
11178
376c9600
AC
111792002-03-15 Andrew Cagney <ac131313@redhat.com>
11180
11181 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
11182 value_of_register.
11183 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
11184 get_saved_register.
11185 * value.h (value_of_register): Update.
11186
a4db0f07
RH
111872002-03-14 Richard Henderson <rth@redhat.com>
11188
11189 * configure.in: Detect declaration for canonicalize_file_name.
11190 * utils.c (canonicalize_file_name): Declare, if needed.
11191 (gdb_realpath): Prefer realpath if available and usable.
11192 * config.in, configure: Rebuild.
11193
96383835
RH
111942002-03-14 Richard Henderson <rth@redhat.com>
11195
11196 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
11197 a constant array bound.
11198
11199 * MAINTAINERS: Add myself to write-after-approval.
11200
75245b24
MS
112012002-03-14 Michael Snyder <msnyder@redhat.com>
11202
11203 * symfile.c (syms_from_objfile): Return immediately if no syms.
11204 (symbol_file_add): Return immediately if no syms.
11205 (find_sym_fns): Return immediately if no syms.
11206
e641a1ca
ML
112072002-03-13 Michal Ludvig <mludvig@suse.cz>
11208
11209 * gdbserver/remote-util.c (remote_open): Print remote-side's
11210 IP address when remote debugging over the network.
7e336ba1 11211
df08bfec
DB
112122002-03-12 David O'Brien <obrien@FreeBSD.org>
11213
11214 * config/sparc/fbsd.mh: Fix copyright.
11215 * config/sparc/fbsd.mt: Likewise.
11216
9a57864f
RE
112172002-03-11 Richard Earnshaw <rearnsha@arm.com>
11218
11219 * MAINTAINERS: Fix typo in name of gdb warnings option.
11220 (x86-64): Fix formating so that this can be parsed by awk.
11221
dd7bf85e
DJ
112222002-03-10 Daniel Jacobowitz <drow@mvista.com>
11223
11224 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
11225 * defs.h: Include "gdb/signals.h".
11226 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
11227
33a0a2ac
ML
112282002-03-10 Michal Ludvig <mludvig@suse.cz>
11229
11230 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7e336ba1 11231 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
33a0a2ac
ML
11232 from x86-64-tdep.h
11233
dd824b04
DJ
112342002-03-10 Daniel Jacobowitz <drow@mvista.com>
11235 Don Howard <dhoward@redhat.com>
11236
11237 * mips-tdep.c (ST0_FR): Define.
11238 (mips2_fp_compat): New function, temporarily disabled.
11239 (mips_read_fp_register_single): New function.
11240 (mips_read_fp_register_double): New function.
11241 (mips_print_register): Use them.
11242 (do_fp_register_row): Likewise.
11243
6a41ff59
AC
112442002-03-09 Andrew Cagney <ac131313@redhat.com>
11245
11246 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
11247 approval''.
11248
4ea09c10
PS
112492002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11250
11251 * stabsread.c (read_member_functions): Fix is_stub test for
11252 static member functions, improve comment.
11253
6ccc741d
RE
112542002-03-07 Richard Earnshaw <rearnsha@arm.com>
11255
11256 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
11257 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
11258 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
11259 commands that set boolean values.
11260 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
11261 (arm_rdi_resume): Always initialize PC.
11262 (arm_rdi_open): Don't use rslt as a boolean.
11263 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
11264 (arm_rdi_fetch_registers, arm_rdi_store_registers)
11265 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
11266 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
11267
438013df
AO
112682002-03-06 Alexandre Oliva <aoliva@redhat.com>
11269
11270 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
11271 * configure: Rebuilt.
11272
70ed8774
SC
112732002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11274
11275 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
11276 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
11277
5ba2abeb
AC
112782002-03-06 Andrew Cagney <ac131313@redhat.com>
11279
11280 * cli/cli-decode.c (set_cmd_completer): New function.
11281 * command.h (set_cmd_completer): Declare.
11282 * cli/cli-decode.h (set_cmd_completer): Ditto.
11283
11284 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
11285 * cli/cli-cmds.c (init_cli_cmds): Ditto.
11286 * win32-nat.c (_initialize_inftarg): Ditto.
11287 * remote-rdi.c (_initialize_remote_rdi): Ditto.
11288 * proc-api.c (_initialize_proc_api): Ditto.
11289 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
11290 * source.c (_initialize_source): Ditto.
11291 * exec.c (_initialize_exec): Ditto.
11292 * solib.c (_initialize_solib): Ditto.
11293 * top.c (init_main): Ditto.
11294 * tracepoint.c (_initialize_tracepoint): Ditto.
11295 * symfile.c (_initialize_symfile): Ditto.
11296 * printcmd.c (_initialize_printcmd): Ditto.
11297 * infcmd.c (_initialize_infcmd): Ditto.
11298 * corefile.c (_initialize_core): Ditto.
11299
f779ca99
AC
113002002-03-05 Andrew Cagney <ac131313@redhat.com>
11301
11302 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
11303
01a3934b
AC
113042002-03-05 Andrew Cagney <ac131313@redhat.com>
11305
11306 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
11307
37057839
AC
113082002-03-05 Andrew Cagney <ac131313@redhat.com>
11309
11310 * NEWS: Update headings, 5.2 has branched.
11311
c6ecbae5
DJ
113122002-03-04 Daniel Jacobowitz <drow@mvista.com>
11313
11314 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
11315 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
11316 (register_addr, REGISTER_RAW_SIZE): Likewise.
11317 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
11318 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
11319
e9f30c21
ML
113202002-03-03 Michal Ludvig <mludvig@suse.cz>
11321
11322 * MAINTAINERS (x86-64): Add myself.
11323 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
11324 changed value_ptr -> struct value *
11325
54394ac3
DB
113262002-03-01 David O'Brien <obrien@FreeBSD.org>
11327
11328 * configure.host (sparc64-*-freebsd): Add.
11329 * configure.tgt: Likewise.
11330 * config/sparc/fbsd.mh: New file.
11331 * config/sparc/fbsd.mt: Likewise.
11332 * config/sparc/nm-fbsd.h: Likewise.
11333 * config/sparc/tm-fbsd.h: Likewise.
11334
bfe95955
DJ
113352002-03-01 Daniel Jacobowitz <drow@mvista.com>
11336
11337 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
11338 regformats/reg-s390x.dat.
11339
f33c6cbf
AC
113402002-03-01 Andrew Cagney <ac131313@redhat.com>
11341
11342 * utils.c: Add FIXME explaining true/false problem.
11343
5ecaa7dd
AC
113442002-02-28 Andrew Cagney <ac131313@redhat.com>
11345
11346 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
11347
2a251cc2
MC
113482002-02-28 Michael Chastain <mec@shout.net>
11349
11350 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
11351
6a8031a3 113522002-02-28 Daniel Jacobowitz <drow@mvista.com>
265f716b
DJ
11353
11354 * gdbserver/linux-s390-low.c: New file.
11355 * regformats/reg-s390.dat: New file.
11356 * regformats/reg-s390x.dat: New file.
11357 * gdbserver/configure.srv: Add S/390.
11358 * gdbserver/Makefile.in: Add S/390.
11359 * configure.tgt: Enable gdbserver for S/390.
11360
ac469903
EZ
113612002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
11362
11363 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
11364 first line of the doc string for "info dos", except at the end of
11365 the sentence, since the short help stops at the first period.
11366
985cb1a3
JM
113672002-02-28 Jason Merrill <jason@redhat.com>
11368
11369 * dwarf2read.c (dwarf_cfi_name): Add new codes.
11370
c570663e
FF
113712002-02-27 Fred Fish <fnf@redhat.com>
11372
11373 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
11374 comment (dumy -> dummy).
11375
43630227
PS
113762002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11377
11378 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
11379
b84911e8
RB
113802002-02-27 Rodney Brown <rbrown64@csc.com.au>
11381
11382 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
11383
58caa3dc
DJ
113842002-02-27 Daniel Jacobowitz <drow@mvista.com>
11385
11386 * gdbserver/acconfig.h: New file.
11387 * gdbserver/i387-fp.c: New file.
11388 * gdbserver/i387-fp.h: New file.
11389 * gdbserver/linux-x86-64.c: New file.
11390 * regformats/reg-x86-64.dat: New file.
11391 * configure.tgt: Add x86_64-*-linux* gdbserver support.
11392 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
11393 * gdbserver/configure.in: Add support for regsets.
11394 * gdbserver/config.in: Regenerate.
11395 * gdbserver/configure: Regenerate.
11396 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
11397 * gdbserver/linux-low.h: New file.
11398 * gdbserver/linux-low.c: Include "linux-low.h". Add support
11399 for regsets.
11400 * gdbserver/linux-arm-low.c: Include "linux-low.h".
11401 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
11402 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
11403 * gdbserver/linux-mips-low.c: Include "linux-low.h".
11404 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
11405 * gdbserver/linux-sh-low.c: Include "linux-low.h".
11406 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
11407 "i387-fp.h". Add PTRACE_GETREGS and friends.
11408 * gdbserver/regcache.c (supply_register): New function.
11409 (supply_register_by_name): New function.
11410 (collect_register): New function.
11411 (collect_register_by_name): New function.
11412
93652174
DJ
114132002-02-27 Daniel Jacobowitz <drow@mvista.com>
11414
11415 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
11416 (config.status): Add configure.srv dependency.
11417 (server_h): Add config.h dependency.
11418
a02e4a61
DJ
114192002-02-27 Daniel Jacobowitz <drow@mvista.com>
11420
11421 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
11422 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
11423 * gdbserver/configure.srv: Change i386-*-linux* to use
11424 reg-i386-linux.o.
11425
ce0eebec
AC
114262002-02-26 Andrew Cagney <ac131313@redhat.com>
11427
11428 * x86-64-tdep.c: Re-indent. Update copyright date.
11429
82dbc5f7
AC
114302002-02-26 Andrew Cagney <ac131313@redhat.com>
11431
11432 From Michal Ludvig <mludvig@suse.cz>:
11433 * x86-64-tdep.c (value.h): Delete.
11434 (gdb_assert.h): Include.
11435 (x86_64_register_convert_to_virtual,
11436 x86_64_register_convert_to_raw ): Add check which lets only
11437 floating-point values to be converted.
11438 (value_push): Delete.
11439 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
11440 (i386_gdbarch_init): Number of register_bytes fixed.
11441
e4621584
AC
114422002-02-26 Andrew Cagney <ac131313@redhat.com>
11443
11444 * MAINTAINERS: Add x86-64 target.
11445
81a9a963
AC
114462002-02-26 Andrew Cagney <ac131313@redhat.com>
11447
11448 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
11449 * osfsolib.c (solib_map_sections): Ditto.
11450 * irix5-nat.c (solib_map_sections): Ditto.
11451 * corelow.c (gdb_check_format): Ditto.
11452 * symfile.c (symfile_bfd_open): Ditto.
11453 * solib.c (solib_map_sections): Ditto.
11454 Fix PR gdb/354.
7e336ba1 11455
0f017ab9
AC
114562002-02-26 Andrew Cagney <ac131313@redhat.com>
11457
11458 * remote.c (_initialize_remote): By default, disable ``e'' and
11459 ``E'' step out-of-range packets.
11460
75738c29
AS
114612002-02-26 Andreas Schwab <schwab@suse.de>
11462
11463 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
11464 m68k_linux_frame_saved_pc.
11465 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
11466 in_sigtramp.
11467 (SIGCONTEXT_PC_OFFSET): Remove.
11468 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
11469 m68k_linux_sigtramp_saved_pc): New functions.
11470 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
11471 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
11472 (UCONTEXT_PC_OFFSET): Define.
11473 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
11474 non-RT and RT signal trampolines.
11475
7e8ed687
RE
114762002-02-26 Richard Earnshaw <rearnsha@arm.com>
11477
11478 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
11479 (TARGET_NBPG, STACK_END_ADDR): Delete
11480 (VARIABLES_INSIDE_BLOCK): Delete.
11481
6972bc8b
AC
114822002-02-25 Andrew Cagney <ac131313@redhat.com>
11483
11484 * utils.c (perror_with_name): Make string parameter constant.
11485 (print_sys_errmsg): Ditto.
11486 (query): Ditto.
11487 * defs.h (perror_with_name): Update.
11488 (print_sys_errmsg): Update.
11489 (query): Update.
11490
aa32f823
DJ
114912002-02-25 Daniel Jacobowitz <drow@mvista.com>
11492
11493 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
11494 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
11495
19caaa45
PS
114962002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11497
11498 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
11499 if it already matches the current architecture from the exec file.
11500 Include arch-utils.h for gdbarch_info_init prototype.
11501 * Makefile.in (rs6000-nat.o): Update dependencies.
11502
d951901f
EZ
115032002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
11504
11505 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
11506 list of exported variables.
11507
7ea81414
DJ
115082002-02-24 Daniel Jacobowitz <drow@mvista.com>
11509
11510 * gdbserver/configure.srv: New file.
11511 * gdbserver/configure.in: Use configure.srv instead
11512 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
11513 from it.
11514 * gdbserver/configure: Regenerated.
11515 * gdbserver/terminal.h: New file.
11516 * gdbserver/Makefile.in: Update for configure changes. Remove
11517 more unneeded include paths.
11518
080fe24b
AC
115192002-02-24 Andrew Cagney <ac131313@redhat.com>
11520
11521 From wiz at danbala:
11522 * config/sparc/tm-sp64.h: Fix grammar and typos.
11523 Fix PR gdb/287.
11524
8605d56e
AC
115252002-02-24 Andrew Cagney <ac131313@redhat.com>
11526
11527 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
a4b6fc86
AC
11528 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
11529 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
11530 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
ca557f44
AC
11531 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
11532 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
11533 * s390-tdep.c: Ditto.
92362027
AC
11534 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
11535 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
11536 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
11537 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
11538 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
11539 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
11540 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
11541 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
11542 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
11543 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8605d56e 11544 Fix PR gdb/378.
7e336ba1 11545
8ed32cc0
AC
115462002-02-23 Andrew Cagney <ac131313@redhat.com>
11547
a3007b6f
AC
11548 * lin-thread.c: Delete file.
11549 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
11550 to gdb_proc_service.h.
11551 * configure: Re-generate.
11552
50a9e2f1
AC
11553 * ocd.c (ocd_open): Do not try to open the "ocd" device.
11554 * serial.c (serial_open): Delete check for "ocd".
11555 Fix PR gdb/349.
11556
8b6e7932
AC
11557 * Makefile.in (linux-thread.o): Delete target.
11558 * linux-thread.c: Delete file.
11559
d155c46b
AC
11560 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
11561 renamed SH files to be consistent.
11562
8ed32cc0
AC
11563 * symtab.c (sort_search_symbols): Use xfree.
11564
0e18d038
RE
115652002-02-23 Richard Earnshaw <rearnsha@arm.com>
11566
11567 * arm-linux-tdep.c (arm_linux_init_abi): Register
11568 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
11569 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
11570 definition with undef, since we don't want the sysvr4 definition.
11571 (SKIP_TRAMPOLINE_CODE): Likewise.
11572
27aac7ff
AC
115732002-02-23 Andrew Cagney <ac131313@redhat.com>
11574
11575 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
11576
11577 * configure.in: (AC_CHECK_FUNCS) Added test for
11578 canonicalize_file_name Regenerated.
11579 * config.in, configure: Regenerated.
11580 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
11581 defined use canonicalize_file_name.
7e336ba1 11582
65a6e0ee
MC
115832002-02-23 Michael Chastain <mec@shout.net>
11584
11585 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
11586
47b95330
AC
115872002-02-23 Andrew Cagney <ac131313@redhat.com>
11588
11589 * README: Remove references to cygnus.com.
11590 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
11591 dot com'' form. Remove references to cygnus.com and sourceware.
11592
696f451b
AC
115932002-02-23 Andrew Cagney <ac131313@redhat.com>
11594
11595 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
11596 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
11597 1003.1-2001 no longer allows "head -1".
11598 * gdb/Makefile.in (version.c): Likewise.
11599 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
11600 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
11601 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
11602
bbaca940
AC
116032002-02-23 Andrew Cagney <ac131313@redhat.com>
11604
11605 * cli/cli-decode.c (cmd_cfunc_eq): New function.
11606 * command.h (cmd_cfunc_eq): Declare.
11607 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
11608
11609 * cli/cli-cmds.h (is_complete_command): Change parameter to a
11610 ``struct cmd_list_element *''.
11611 * cli/cli-cmds.c (is_complete_command): Update. Use
11612 cmd_cfunc_eq.
11613 * top.c (execute_command): Pass the command to
11614 is_complete_command.
11615 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
11616
b8b8b047
AC
116172002-02-23 Andrew Cagney <ac131313@redhat.com>
11618
11619 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
11620 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
11621 architecture defines.
11622 * s390-tdep.c (s390_gdbarch_init): Likewise.
11623
19d3fc80
RE
116242002-02-23 Richard Earnshaw <rearnsha@arm.com>
11625
11626 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
11627 (arm_linux_push_arguments): Likewise.
11628 (arm_linux_init_abi): Register them. Also register linux-specific
11629 call_dummy_words.
11630 (find_minsym_and_objfile): Use strcmp, not STREQ.
11631 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
11632 (arm_linux_call_dummy_words): Delete declaration.
11633 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
11634 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
11635 declarations.
11636 (LOWEST_PC): Delete.
11637
3ab13650
PS
116382002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11639
11640 * maint.c (print_section_info): Do not prepend `0x' to filepos
11641 output, it will be handled by local_hex_string_custom.
11642
19d3fc80 116432002-02-23 Richard Earnshaw <rearnsha@arm.com>
85ae890c
RE
11644
11645 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
11646 (store_newfpe_double, store_newfpe_extended, store_fpregister)
11647 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
11648
d85a5daf
JB
116492002-02-22 Jim Blandy <jimb@redhat.com>
11650
11651 Indicate that the bcache functions don't change the strings
11652 they're passed.
11653 * bcache.h (bcache, hash): Add `const' keywords to declarations.
11654 * bcache.c (bcache, hash): Add `const' keywords to definitions.
11655
eeb25b8a
PM
116562002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
11657
11658 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
11659
6badb179
CF
116602002-02-21 Christopher Faylor <cgf@redhat.com>
11661
11662 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
11663 find the complete path to a loaded DLL.
11664
e8717518
FF
116652002-02-21 Fred Fish <fnf@redhat.com>
11666
11667 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
11668 that marks the end of the range of a function, enter a line number
11669 entry that has a line number of zero and a PC offset that matches
11670 the end of the function. This starts a range of PC's for which no
11671 line number information is known.
11672 * symtab.c (find_pc_sect_line): If our best fit is in a range of
11673 PC's for which no line number info is found (line number is zero)
11674 then we didn't find any valid line information.
11675 * symtab.h: Document use of zero line number entry.
11676
9abe5450
EZ
116772002-02-21 Elena Zannoni <ezannoni@redhat.com>
11678
11679 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
11680 (have_ptrace_getvrregs): Define for run time checks.
11681 (gdb_vrregset_t): New type for Altivec register handling.
11682 (fetch_register, store_register): Fetch/store altivec register
11683 when needed.
11684 (fetch_altivec_register, store_altivec_register): New functions.
11685 (supply_vrregset, fill_vrregset): New functions.
11686 (fetch_altivec_registers, store_altivec_registers): New functions.
11687 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
11688 registers as well.
11689
aaa38bb5
AJ
116902002-02-21 Jiri Smid <smid@suse.cz>
11691
11692 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
11693
b34db576
RE
116942002-02-21 Richard Earnshaw <rearnsha@arm.com>
11695
11696 * Makefile.in (armnbsd-nat.o): Update dependencies.
11697 * armnbsd-nat.c (supply_gregset): New function. Common code to
11698 supply the integer register set.
11699 (supply_fparegset): New function. Similar for FPA registers.
11700 (fetch_regs, fetch_fp_regs): Use them.
11701 (fetch_core_registers): Likewise.
11702 (fetch_elfcore_registers): New function.
11703 (arm_netbsd_elfcore_fns): New core-file type specification.
11704 (_initialize_arm_netbsd_nat): Register it.
11705
3e56fc4b
RE
117062002-02-21 Richard Earnshaw <rearnsha@arm.com>
11707
11708 * armnbsd-nat.c: Include gdbcore.h.
11709 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
11710 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
11711 'void' to declaration, to shut up ARI.
11712 (fetch_core_registers): Make static. Rewrite using supply_register.
11713 (arm_netbsd_core_fns): New core-file type specification.
11714 (_initialize_arm_netbsd_nat): New function.
11715
097f6b0b
CF
117162002-02-21 Christopher Faylor <cgf@redhat.com>
11717
11718 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
11719 value.
11720
c914e0cc
CF
117212002-02-20 Christopher Faylor <cgf@redhat.com>
11722
11723 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
11724 fails.
11725
385fa495
DJ
117262002-02-20 Daniel Jacobowitz <drow@mvista.com>
11727
11728 * jv-exp.y (parse_number): Change type of implicit longs
11729 to builtin_type_uint64.
11730
e5f1222d
DJ
117312002-02-20 Daniel Jacobowitz <drow@mvista.com>
11732
11733 * gdbserver/linux-low.c (mywait): Change argument to waitpid
11734 to be an integer instead of a `union wait'.
11735
75c9abc6
DJ
117362002-02-20 Daniel Jacobowitz <drow@mvista.com>
11737
11738 * mips-linux-nat.c: Call the operating system GNU/Linux.
11739 * mips-linux-tdep.c: Likewise.
11740 * mips-tdep.c: Likewise.
11741
551792a5
DJ
117422002-02-20 Daniel Jacobowitz <drow@mvista.com>
11743
11744 Fix PR gdb/265.
11745 * jv-exp.y (parse_number): Handle 64-bit integers.
11746
ee6e2b82
DJ
117472002-02-20 Daniel Jacobowitz <drow@mvista.com>
11748
11749 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
11750 AC_STDC_HEADERS to AC_HEADER_STDC.
11751 * gdbserver/configure: Regenerated.
11752
a48442a0
RE
117532002-02-20 Richard Earnshaw <rearnsha@arm.com>
11754
11755 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
11756 is defined.
11757 * sparc-tdep.c (get_longjmp_target): Likewise.
11758
fe419ffc
RE
117592002-02-20 Richard Earnshaw <rearnsha@arm.com>
11760
11761 * News: Add news about ARM and Multi-arch. Mention the new target
11762 arm*-*-netbsd*.
11763
5832ed7e
JB
117642002-02-19 Jim Blandy <jimb@redhat.com>
11765
11766 * stabsread.c (error_type_complaint): Improve error message.
11767
84563040
DJ
117682002-02-19 Daniel Jacobowitz <drow@mvista.com>
11769
11770 * gdbserver/README: Update documentation.
11771 * gdbserver/configure.in: Update configury to match documentation.
11772 * gdbserver/Makefile.in: Likewise.
11773 * gdbserver/configure: Regenerated.
11774 * gdbserver/aclocal.m4: New file, generated by aclocal.
11775 * gdbserver/config.in: New file, generated by autoheader.
11776
375fd65b
RE
117772002-02-19 Richard Earnshaw <rearnsha@arm.com>
11778
11779 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
11780 armnbsd-nat.c.
11781
08216dd7
RE
117822002-02-19 Richard Earnshaw <rearnsha@arm.com>
11783
11784 * arm-tdep.h (enum arm_float_model): New enum.
11785 (struct gdbarch_tdep): Add fp_model.
11786 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
11787 up floating-point conversions until we know the floating-point model
11788 in use by the inferior. Don't complain about being unable to
11789 determine the ABI of the inferior when we don't have one.
11790 (arm_extract_return_value): Support different floating-point models.
11791 (arm_store_return_value): Likewise.
aaa38bb5 11792 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
08216dd7
RE
11793 ARM_FLOAT_SOFT.
11794 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
11795
65d6d66a
PS
117962002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11797
11798 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
11799 of ``current_gdbarch''.
11800
47221191
RE
118012002-02-19 Richard Earnshaw <rearnsha@arm.com>
11802
11803 * armnbsd-nat.c : ANSIfy all function declarations.
11804 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
11805 (fetch_inferior_registers): Re-implement in terms of above.
11806 (store_register, store_regs, store_fp_register, store_fp_regs): New.
11807 (store_inferior_registers): Re-implement in terms of above.
11808
fdf39c9a
RE
118092002-02-19 Richard Earnshaw <rearnsha@arm.com>
11810
aaa38bb5 11811 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
fdf39c9a
RE
11812 kernel.
11813 * arm-linux-tdep.c: Likewise.
11814 * config/arm/tm-linux.h: Likewise.
11815
93247f88
RE
118162002-02-19 Richard Earnshaw <rearnsha@arm.com>
11817
11818 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
11819 * config/arm/nbsd.mt (TM_FILE): Delete.
11820 * config/arm/tm-nbsd.h: Delete.
11821
d7b486e7
RE
118222002-02-19 Richard Earnshaw <rearnsha@arm.com>
11823
11824 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
11825 Initialize CALL_DUMMY_LENGTH.
11826
41d39a95
RE
118272002-02-19 Richard Earnshaw <rearnsha@arm.com>
11828
11829 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
11830 function.
11831 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
aaa38bb5 11832 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
41d39a95
RE
11833 defines one thing and that is incorrect for this port.
11834 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
11835
e1195560
PM
118362002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
11837
11838 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
11839
c1748f97
PM
118402002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
11841
11842 * win32-nat.c (display_selector): New function. Displays information
11843 about the information returned by GetThreadSelectorEntry API function.
11844 (display_selectors): New function. Displays the infomation of
11845 the selector given as argument, or of CS, DS ans FS selectors
11846 if no argument is given.
11847 ( _initialize_inftarg): Add "w32" as info prefix command.
11848 Add "info w32 selector" as command calling display_selectors.
11849
e41e6bbf
PM
118502002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
11851
11852 * i386-tdep.c (get_longjmp_target): Fix compilation failure
11853 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
11854 if not defined.
11855
0d3a9f48
RE
118562002-02-18 Richard Earnshaw <rearnsha@arm.com>
11857
11858 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
11859
3fb4b924
RE
118602002-02-18 Richard Earnshaw <rearnsha@arm.com>
11861
11862 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
11863 (arm_fix_call_dummy): Call it.
11864 (arm_call_dummy_breakpoint_offset): Delete.
11865 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
11866 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
11867
7f55af32
AC
118682002-02-18 Andrew Cagney <ac131313@redhat.com>
11869
11870 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
11871 Default to func_frame_chain_valid.
11872 * gdbarch.h, gdbarch.c: Re-generate.
11873 * frame.h (FRAME_CHAIN_VALID): Delete definition.
11874
05f13b9c
EZ
118752002-02-18 Elena Zannoni <ezannoni@redhat.com>
11876
11877 * ppc-linux-nat.c: Update copyright.
11878 (fetch_register, store_register): Add tid parameter, don't compute
11879 tid here.
11880 (fetch_ppc_registers, store_ppc_registers): Add tid
11881 parameter. Pass it along to callees.
11882 (fetch_inferior_registers, store_inferior_registers): Compute tid
11883 here, and pass it to calleed functions.
11884 (fill_gregset, supply_fpregset): Clean up formatting.
11885
d7afb4c9
RE
118862002-02-18 Richard Earnshaw <rearnsha@arm.com>
11887
11888 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
11889 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
11890
9df628e0
RE
118912002-02-18 Richard Earnshaw <rearnsha@arm.com>
11892
11893 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
11894 * gdbarch.c gdbarch.h: Regenerate.
11895 * breakpoint.c (create_longjmp_breakpoint): Always compile this
11896 function.
11897 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
11898 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
11899 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
11900
11901 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
11902 * arm-tdep.c (arm_get_longjmp_target): New function.
11903 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
11904 this to a positive value register arm_get_longjmp_target as the
11905 longjmp handler.
11906 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
11907 (arm_linux_init_abi): Set up longjmp description in tdep.
11908 * armnbsd-nat.c (get_longjmp_target): Delete.
11909 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
11910 description in tdep.
11911 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
11912 (get_longjmp_target): Delete declaration.
11913 (GET_LONGJMP_TARGET): Delete.
11914 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
11915 (GET_LONGJMP_TARGET): Delete.
11916
57bc8964
KB
119172002-02-17 Kevin Buettner <kevinb@redhat.com>
11918
11919 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
11920 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
11921 of ``current_gdbarch''.
11922
83d31a92
TT
119232002-02-17 Tom Tromey <tromey@redhat.com>
11924
11925 * cli/cli-cmds.c (compare_strings): New function.
11926 (complete_command): Only print each unique item once.
11927 * completer.h (complete_line): Declare.
11928 * completer.c (complete_line): New function.
11929 (line_completion_function): Use it.
11930
17ef5d92
AC
119312002-02-16 Andrew Cagney <ac131313@redhat.com>
11932
11933 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
11934 * gdbarch.h, gdbarch.c: Re-generate.
11935
491b8946
DJ
119362002-02-16 Daniel Jacobowitz <drow@mvista.com>
11937
11938 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
11939
119402002-02-16 Daniel Jacobowitz <drow@mvista.com>
11941
11942 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
11943 * valops.c (value_arg_coerce): Don't take the address of a reference
11944 to convert an argument to a reference.
11945
dfe7f3ac
CF
119462002-02-15 Christopher Faylor <cgf@redhat.com>
11947
11948 * win32-nat.c (get_image_name): New function.
11949 (handle_load_dll): Use get_image_name function.
11950 (get_child_debug_event): Avoid registering debug events until possibly
11951 execed process is started.
11952 (child_create_inferior): Allow invocation via shell so that command
11953 line redirection, etc. works ok.
11954 (_initialize_inftarg): Add new command: "set shell" to control whether
11955 a shell is used to start a process.
11956
1d33e73a
DJ
119572002-02-15 Daniel Jacobowitz <drow@mvista.com>
11958
11959 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
11960 instead of find_register_by_number.
11961 (cannot_store_register): Likewise.
11962
48cd0caa
PM
119632002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
11964
aaa38bb5 11965 * dwarf2read.c: Replace fprintf (stderr, ...) by
48cd0caa
PM
11966 fprintf_unfiltered (gdb_stderr, ...).
11967
8656e7d8
DJ
119682002-02-15 Daniel Jacobowitz <drow@mvista.com>
11969
11970 * gdbserver/gdbserver.1: Document --attach.
11971
66e810cd
RE
119722002-02-15 Richard Earnshaw <rearnsha@arm.com>
11973
11974 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
11975 descriptions.
11976 * arm-tdep.c (arm_default_arm_le_breakpoint)
11977 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
11978 (arm_default_thumb_be_breakpoint): New. Initialize them from
11979 traditional breakpoint defines.
11980 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
11981 (arm_gdbarch_init): Initialize new breakpoint variables.
11982 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
11983 (arm_linux_init_abi): Initialize linux-specific breakpoint.
11984 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
11985 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
11986 code out to ...
11987 (arm_netbsd_init_abi_common): ... here; new function.
11988 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
11989 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
11990 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
11991 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
11992
97e03143
RE
119932002-02-15 Richard Earnshaw <rearnsha@arm.com>
11994
11995 * arm-tdep.h (enum arm_abi): New enum.
11996 (struct gdbarch_tdep): New structure.
11997 (LOWEST_PC): Provide a default.
11998 (arm_gdbarch_register_os_abi): Declare new function.
11999 * arm-tdep.c (arm_abi_names): New array.
12000 (process_note_abi_tag_sections): New function.
12001 (get_elfosabi): New function.
12002 (arm_gdbarch_register_os_abi): New function.
12003 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
12004 support for that ABI has been built in, then call the appropriate
12005 configuration routine. Use gdbarch_num_regs() to get the number
12006 of registers.
12007 (arm_dump_tdep): New function.
12008 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
12009 place-holder functions.
12010 (_initialize_arm_tdep): Register them.
12011 * config/arm/tm-arm.h (LOWEST_PC): Delete.
12012
12013 * armnbsd-tdep.c: New file.
12014 * Makefile.in (armnbsd-tdep.o): Add dependencies.
12015 * config/arm/nbsd.mt (TDEPFILES): Add it.
12016 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
12017
12018 * armnbsd-nat.c: Include regcache.h.
12019 * Makefile.in (armnbsd-nat.o): Update dependency list.
12020
12021 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
12022
ad68be46
DJ
120232002-02-14 Daniel Jacobowitz <drow@mvista.com>
12024
12025 * gdbserver/Makefile.in: Fix typos in target rules.
12026
003d6d1d
DJ
120272002-02-14 Daniel Jacobowitz <drow@mvista.com>
12028
aaa38bb5 12029 Fix part of PR gdb/267.
003d6d1d
DJ
12030 * linespec.c (find_methods): Handle constructors specially for now.
12031
6b230f1b
CV
120322002-02-14 Corinna Vinschen <vinschen@redhat.com>
12033
12034 * arm-tdep.c (arm_push_arguments): Eliminate special float type
12035 handling.
12036 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
12037 standard_coerce_float_to_double().
12038
1ea98d12
CF
120392002-02-14 Christopher Faylor <cgf@redhat.com>
12040
12041 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
12042 GDBINIT_FILENAME.
12043
dd47e6fd
EZ
120442002-02-14 Elena Zannoni <ezannoni@redhat.com>
12045
12046 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
12047 find_variant_by_name, because it confuses the multiarch
12048 framework. Return NULL if there isn't an architecture with the
12049 user supplied name, instead of forcing a different one without
12050 recording the change with the multiarch machinery.
12051 (find_variant_by_name): Delete.
12052
d7e39b9e
PS
120532002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12054
12055 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
12056 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
12057
76e42a4f
MH
120582002-02-13 Martin M. Hunt <hunt@redhat.com>
12059
aaa38bb5 12060 * stack.c (print_frame_info_base): When calling
76e42a4f
MH
12061 print_frame_info_listing_hook, set current_source_symtab.
12062
0a30fbc4
DJ
120632002-02-14 Daniel Jacobowitz <drow@mvista.com>
12064
12065 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
12066 and remove unused $(INCLUDE_DIR).
12067 Add regcache.c to OBS.
12068 Add generated register protocol files to clean target.
12069 Update dependencies for new objects, obsolete old target code.
12070
12071 * gdbserver/linux-low.c: Remove all platform-specific code to
12072 new files. Remove various dead code. Update to use regcache
12073 functionality.
12074 * gdbserver/remote-utils.c (fromhex): Add return statement
12075 to quiet warning.
12076 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
12077 constant.
12078 (input_interrupt): Add integer parameter to match prototype
12079 of a signal handler.
12080 (outreg): Use register_data ().
12081 (prepare_resume_reply): Use gdbserver_expedite_regs.
12082 * gdbserver/server.c (main): Dynamically allocate own_buf because
12083 PBUFSIZ is no longer constant. Use registers_to_string () and
12084 registers_from_string ().
12085 * gdbserver/server.h: No longer include "defs.h". Add prototypes
12086 for error (), fatal (), and warning (). Update definition of
12087 PBUFSIZ to use regcache functionality. Add include guard.
12088 * gdbserver/utils.c (fatal): Add missing ``const''.
12089 (warning): New function.
12090
12091 * regformats/regdat.sh: Include "regcache.h" in generated files.
12092 Provide init_registers () function.
12093 * regformats/regdef.h: Add prototype for set_register_cache ().
12094 Add include guard.
12095
12096 * gdbserver/linux-arm-low.c: New file.
12097 * gdbserver/linux-i386-low.c: New file.
12098 * gdbserver/linux-ia64-low.c: New file.
12099 * gdbserver/linux-m68k-low.c: New file.
12100 * gdbserver/linux-mips-low.c: New file.
12101 * gdbserver/linux-ppc-low.c: New file.
12102 * gdbserver/linux-sh-low.c: New file.
12103
12104 * gdbserver/regcache.c: New file.
12105 * gdbserver/regcache.h: New file.
12106
12107 * gdbserver/low-linux.c: Removed obsolete file.
12108
4cc841d0
DJ
121092002-02-14 Daniel Jacobowitz <drow@mvista.com>
12110
12111 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
12112 * config/i386/linux.mt: Likewise.
12113 * config/ia64/linux.mt: Likewise.
12114 * config/m68k/linux.mh: Likewise.
12115 * config/powerpc/linux.mh: Likewise.
12116 * config/mips/linux.mt: Likewise.
12117
12118 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
12119
12120 * config/i386/i386lynx.mh: Mark gdbserver variables
12121 as (currently) obsolete for this target.
12122 * config/i386/nbsd.mt: Likewise.
12123 * config/i386/nbsdelf.mt: Likewise.
12124 * config/m32r/m32r.mt: Likewise.
12125 * config/m68k/m68klynx.mh: Likewise.
12126 * config/m68k/nbsd.mt: Likewise.
12127 * config/m68k/sun3os4.mh: Likewise.
12128 * config/mips/vr5000.mt: Likewise.
12129 * config/ns32k/nbsd.mt: Likewise.
12130 * config/pa/hppabsd.mh: Likewise.
12131 * config/pa/hppaosf.mh: Likewise.
12132 * config/powerpc/nbsd.mt: Likewise.
12133 * config/rs6000/rs6000lynx.mh: Likewise.
12134 * config/s390/s390.mt: Likewise.
12135 * config/s390/s390x.mt: Likewise.
12136 * config/sparc/sparclynx.mh: Likewise.
12137 * config/sparc/sun4os4.mh: Likewise.
12138 * config/i386/x86-64linux.mt: Likewise.
12139 * config/sparc/linux.mh: Likewise.
12140
a85f51e7
DJ
121412002-02-14 Daniel Jacobowitz <drow@mvista.com>
12142
12143 * configure.tgt: Configure gdbserver only for known working
12144 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
12145 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
12146 SUBDIRS if it is configured. Update comment for ${nativefile}.
12147 * configure: Regenerated.
12148
65554fef
MS
121492002-02-13 Michael Snyder <msnyder@redhat.com>
12150
670a52db
MS
12151 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
12152
6dbdc4a3
MS
12153 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
12154 (default_gcore_mach): Just return 0, work around a problem in bfd.
12155 (default_gcore_target): OK to return NULL if exec_bfd is null.
12156 (make_mem_sec): Use a cast, avoid a warning.
12157
12158 * procfs.c (find_memory_regions_callback): Use a cast instead of
aaa38bb5 12159 calling host_pointer_to_address (which complains if
6dbdc4a3
MS
12160 sizeof (host pointer) != sizeof (target pointer)).
12161 (procfs_make_note_section): Avoid overflow in psargs string.
12162
aaa38bb5 12163 * procfs.c (procfs_make_note_section): Make the default
65554fef
MS
12164 implementation return an error.
12165
121662002-02-13 Rodney Brown <rbrown64@csc.com.au>
12167
12168 * procfs.c (procfs_make_note_section): Provide a default definition
12169 (for alpha-dec-osf4.0f). Fix typos.
12170
1e4d76e7
EZ
121712002-02-13 Elena Zannoni <ezannoni@redhat.com>
12172
12173 * linux-proc.c: Add include of regcache.h.
12174 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
12175
b6d1a1d5
AC
121762002-02-13 Andrew Cagney <ac131313@redhat.com>
12177
12178 From 2002-01-18 Greg McGary <greg@mcgary.org>:
aaa38bb5
AJ
12179 * memattr.c (create_mem_region): Disallow useless empty region.
12180 Regions are half-open intervals, so allow [A..B) [B..C) as
65554fef 12181 non-overlapping.
b6d1a1d5 12182
6c6ea35e
MC
121832002-02-13 Michael Chastain <mec@shout.net>
12184
12185 * defs.h: Kill CONST_PTR.
12186 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
12187 * c-lang.c (c_builtin_types): Likewise.
12188 * ch-lang.c (ch_builtin_types): Likewise.
12189 * f-lang.c (f_builtin_types): Likewise.
12190 * language.c (unknown_builtin_types): Likewise.
12191 * m2-lang.c (m2_builtin_types): Likewise.
12192 * p-lang.c (pascal_builtin_types): Likewise.
12193 * scm-lang.c (c_builtin_types): Likewise.
12194
3e0b0f48
KS
121952002-02-13 Keith Seitz <keiths@redhat.com>
12196
12197 * arm-tdep.h (arm_get_next_pc): Add declaration.
12198
67255d04
RE
121992002-02-13 Richard Earnshaw <rearnsha@arm.com>
12200
12201 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
12202 with other related struct-returning functions.
12203 (arm_extract_struct_value_address): New function.
12204 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
12205 initialize float_format, double_format and long_double_format as
12206 appropriate to the endianness of the target.
12207 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
12208 (arm_use_struct_convention): Delete declaration.
12209 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
12210
079777f6
KS
122112002-02-13 Keith Seitz <keiths@redhat.com>
12212
12213 * defs.h (core_addr_to_string_nz): New function.
12214
34588f23
MK
122152002-02-13 Mark Kettenis <kettenis@gnu.org>
12216
12217 Apply missing bits of 2002-01-15 patch.
12218 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
12219 (fill_fpregset): Use i387_fill_fsave.
12220
49b563f9
KS
122212002-02-12 Keith Seitz <keiths@redhat.com>
12222
49b563f9
KS
12223 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
12224 (core_addr_to_string_nz): New function.
12225
aeb98c60
RE
122262002-02-11 Richard Earnshaw <rearnsha@arm.com>
12227
12228 * arm-linux-nat.c: Really include arm-tdep.h.
12229 * config/arm/tm-linux.h (struct type, struct value): Declare.
12230
65554fef
MS
122312002-02-11 Michael Snyder <msnyder@redhat.com>
12232
12233 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
12234 (gcore section): Ifdef for Solaris and Unixware only.
12235 (procfs_do_thread_registers): Unixware needs one lwpstatus
12236 per thread (not one prstatus or pstatus).
12237 (procfs_make_note_section): Iterate only over kernel threads (lwps),
12238 not over all gdb threads. For unixware, call elfcore_write_pstatus
12239 once before iterating over threads.
12240
34e8f22d
RE
122412002-02-11 Richard Earnshaw <rearnsha@arm.com>
12242
12243 * arm-tdep.h: New file.
12244 * arm-tdep.c: Include arm-tdep.h.
12245 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
12246 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
12247 (arm_print_float_info, arm_register_type, convert_to_extended)
12248 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
12249 (arm_extract_return_value, arm_register_name): Make static.
12250 (arm_software_single_step): Similarly. Fix types in declaration.
12251 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
12252 (arm_store_return_value, arm_store_struct_return): New functions.
12253 (arm_gdbarch_init): Register the above functions. Also register
12254 call_dummy_start_offset, sizeof_call_dummy_words,
12255 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
12256 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
aaa38bb5 12257 max_register_virtual_size, register_size. Set up
34e8f22d
RE
12258 prologue_cache.saved_regs here, rather than ...
12259 (_initialize_arm_tdep): ... here.
12260 * config/arm/tm-arm.h (struct type, struct value): Delete forward
12261 declarations.
12262 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
12263 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
12264 (arm_print_float_info, arm_register_type, convert_to_extended)
12265 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
12266 (arm_extract_return_value, arm_register_name): Delete declarations.
12267 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
12268 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
12269 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
12270 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
12271 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
12272 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
12273 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
12274 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
12275 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
12276 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
12277 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
12278 (arm_get_next_pc): No-longer static -- these are needed by the RDI
12279 interface.
12280 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
12281 * remote-rdi.c remote-rdp.c: Likewise.
12282 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
12283 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
12284 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
12285 definition.
12286
12287 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
12288 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
12289 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
12290 from non-ARM_ prefixed definitions.
12291 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
12292 all uses of above.
12293 * remote-rdi.c remote-rdp.c: Likewise.
12294 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
12295
148754e5
RE
122962002-02-11 Richard Earnshaw <rearnsha@arm.com>
12297
12298 * arm-tdep.c (arm_frameless_function_invocation)
12299 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
12300 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
12301 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
12302 (arm_pop_frame, arm_get_next_pc): Make static.
12303 (arm_gdbarch_init): Register above in gdbarch structure.
12304 (arm_read_fp): Renamed from arm_target_read_fp.
12305 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
12306 * config/arm/tm-arm.h (arm_frameless_function_invocation)
12307 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
12308 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
12309 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
12310 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
12311 (arm_pc_is_thumb_dummy): Delete declarations.
fcfb8836
RE
12312 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
12313 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
12314 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
12315 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
148754e5 12316
434d2d4f
DJ
123172002-02-10 Daniel Jacobowitz <drow@mvista.com>
12318
12319 * symtab.c (compare_search_syms): New function.
12320 (sort_search_symbols): New function.
12321 (search_symbols): Sort symbols after searching rather than
12322 before.
12323
55241689
AC
123242002-02-10 Andrew Cagney <ac131313@redhat.com>
12325
12326 * NEWS: Linux -> GNU/Linux.
12327
028c194b
AC
123282002-02-10 Andrew Cagney <ac131313@redhat.com>
12329
12330 * gdbarch.sh: For for level one methods, disallow a definition
12331 when partially multi-arched. Add comments explaining rationale.
12332 * gdbarch.h: Re-generate.
12333
6acf50cd
AC
123342002-02-10 Andrew Cagney <ac131313@redhat.com>
12335
12336 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
12337 multi-arch partial.
aaa38bb5 12338
50248794
AC
123392002-02-10 Andrew Cagney <ac131313@redhat.com>
12340
12341 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
12342 field. Use diff -u.
12343 * gdbarch.c: Re-generate.
12344
c30e0066
AC
123452002-02-10 Andrew Cagney <ac131313@redhat.com>
12346
9b56c5f3 12347 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
c30e0066
AC
12348 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
12349 partial.
12350
6e6d6484
AC
123512002-02-10 Andrew Cagney <ac131313@redhat.com>
12352
12353 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
12354 multi-arch partial.
12355 (PUSH_ARGUMENTS): Switch to using predefault.
12356 * gdbarch.c: Regenerate.
12357
c203844d
AC
123582002-02-10 Andrew Cagney <ac131313@redhat.com>
12359
12360 * valops.c (PUSH_ARGUMENTS): Delete definition.
12361 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
12362 partial. Default to default_push_arguments.
12363 * gdbarch.h, gdbarch.c: Regenerate.
12364
b5a2688f
AC
123652002-02-09 Andrew Cagney <ac131313@redhat.com>
12366
12367 * defs.h (throw_exception): Rename return_to_top_level. Update
12368 comments.
12369 * utils.c (error_stream, internal_verror, quit): Ditto.
12370 * top.c (throw_exception, catcher): Ditto.
12371 * sparclet-rom.c (sparclet_load): Ditto.
12372 * remote.c (interrupt_query, minitelnet): Ditto.
12373 * remote-sds.c (interrupt_query): Ditto.
12374 * remote-mips.c (mips_error, mips_kill): Ditto.
12375 * ocd.c (interrupt_query): Ditto.
12376 * monitor.c (monitor_interrupt_query): Ditto.
12377 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
12378 * target.h: Update comment.
aaa38bb5 12379
b5a2688f 12380 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
aaa38bb5 12381
2fa5c1e0
AC
123822002-02-09 Andrew Cagney <ac131313@redhat.com>
12383
12384 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
12385 default_double_format.
12386 * gdbarch.h, gdbarch.c: Re-generate.
12387 * findvar.c (floatformat_unknown): Delete variable definition.
12388 * doublest.h (floatformat_unknown): Delete variable declaration.
12389
da966255
JB
123902002-02-09 Jim Blandy <jimb@redhat.com>
12391
12392 * stabsread.c (read_type): Add code to parse Sun's syntax for
12393 prototyped function types.
12394
123a4891
AC
123952002-02-09 Andrew Cagney <ac131313@redhat.com>
12396
12397 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
12398 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
12399
fb39c8f3
PS
124002002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12401
12402 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
12403 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
12404 now _initialize_xcoffsolib gets called again and overrides the
12405 commands from solib.c in a native configuration.
12406
0b87a11d
MK
124072002-02-09 Mark Kettenis <kettenis@gnu.org>
12408
12409 * doublest.c (store_typed_floating): Don't try to return a value.
12410 Fixes PR gdb/290.
12411
bdc2fc72
JB
124122002-02-08 Jim Blandy <jimb@redhat.com>
12413
12414 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
12415 is prototyped and has no arguments, print its argument list as
12416 `(void)'.
12417
da69bbcf
CD
124182002-02-08 Chris Demetriou <cgd@broadcom.com>
12419
12420 * MAINTAINERS (write-after-approval): Add myself.
12421 (paper-trail): I've escaped!
aaa38bb5 12422
b69571f5
CF
124232002-02-08 Christopher Faylor <cgf@redhat.com>
12424
12425 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
12426 changes.
12427 (_initialize_check_for_gdb_ini): Ditto.
12428
f6871398
MH
124292002-02-08 Martin M. Hunt <hunt@redhat.com>
12430
12431 * win32-nat.c (cygwin_pid_to_str): Fix typo.
12432 xaprintf -> xasprintf.
12433
4e52d31c
PM
124342002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
12435
12436 * win32-nat.c: Remove use of printf and sprintf functions.
12437
39bbf761
RE
124382002-02-08 Richard Earnshaw <rearnsha@arm.com>
12439
12440 * arm-tdep.c (arm_frame_chain_valid): Make static.
12441 (arm_push_arguments): Likewise.
12442 (arm_gdbarch_init): New function.
12443 (_initialize_arm_tdep): Call it.
12444 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
12445 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
12446 (FRAME_CHAIN_VALID): Delete.
12447 (arm_frame_chain_valid): Delete declaration.
12448 (PUSH_ARGUMENTS): Delete.
12449 (arm_push_arguments): Delete declaration.
12450 (CALL_DUMMY_P): Delete.
12451
9c9532c9
CV
124522002-02-08 Andrew Cagney <ac131313@redhat.com>
12453 Corinna Vinschen <vinschen@redhat.com>
12454
12455 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
12456 on builtin float types.
12457
4e8f7a8b
DJ
124582002-02-08 Daniel Jacobowitz <drow@mvista.com>
12459
12460 * utils.c: Include <curses.h> before "bfd.h".
12461 * tui/tui-hooks.c: Likewise.
12462 * tui/tui.c: Likewise.
12463 * tui/tuiCommand.c: Likewise.
12464 * tui/tuiData.c: Likewise.
12465 * tui/tuiDataWin.c: Likewise.
12466 * tui/tuiDisassem.c: Likewise.
12467 * tui/tuiGeneralWin.c: Likewise.
12468 * tui/tuiIO.c: Likewise.
12469 * tui/tuiLayout.c: Likewise.
12470 * tui/tuiRegs.c: Likewise.
12471 * tui/tuiSource.c: Likewise.
12472 * tui/tuiSourceWin.c: Likewise.
12473 * tui/tuiStack.c: Likewise.
12474 * tui/tuiWin.c: Likewise.
12475
cd4bffcf
EZ
124762002-02-07 Elena Zannoni <ezannoni@redhat.com>
12477
12478 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
12479 to include space for pseudoregs as well. Update loops accordingly.
12480 (sh_fp_frame_init_saved_regs): Ditto.
12481 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
12482
26806ce2
AC
124832002-02-07 Andrew Cagney <ac131313@redhat.com>
12484
12485 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
12486 Add Richard Earnshaw to Arm maintainers.
12487
97fdab62
AC
124882002-02-07 Andrew Cagney <ac131313@redhat.com>
12489
a6b98203
AC
12490 * defs.h (warning_begin): Delete declaration.
12491
97fdab62
AC
12492 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
12493 Delete macro.
12494
78b29b40
MS
124952002-02-07 Michael Snyder <msnyder@redhat.com>
12496
aaa38bb5 12497 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
78b29b40
MS
12498 Logic bug, remove misplaced else.
12499
d8849953
KD
125002002-02-07 Klee Dienes <klee@apple.com>
12501
12502 * fork-inferior.c (fork_inferior): Add '!' to the list of
12503 characters that need to be quoted when building a string for the
12504 shell. Quote '!' specifically with a backslash, since CSH chokes
12505 when trying to evaluate "str!str".
aaa38bb5 12506
095778a0
NC
125072002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
12508
12509 * rdi-share/host.h: Only provide a typedef for bool if it is not
12510 defined.
12511
1900040c
MS
125122002-02-04 Michael Snyder <msnyder@redhat.com>
12513
12514 * breakpoint.h (enum bptype): Add new overlay event bp type.
12515 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
aaa38bb5 12516
1900040c
MS
12517 * breakpoint.c (create_internal_breakpoint): New function.
12518 (internal_breakpoint_number): Moved into create_internal_breakpoint.
12519 (create_longjmp_breakpoint): Use create_internal_breakpoint.
12520 (create_thread_event_breakpoint): Ditto.
12521 (create_solib_event_breakpoint): Ditto.
12522 (create_overlay_event_breakpoint): New function.
12523 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
12524 (update_breakpoints_after_exec): Delete and re-initialize
12525 overlay event breakpoints after an exec. Add FIXME comment
12526 about longjmp breakpoint.
12527 (print_it_typical): Ignore overlay event breakpoints.
12528 (print_one_breakpoint): Ditto.
12529 (mention): Ditto.
12530 (bpstat_what): Do not stop for overlay event breakpoints.
12531 (delete_breakpoint): Don't delete overlay event breakpoints.
12532 (breakpoint_re_set_one): Delete the overlay event breakpoint.
12533 (breakpoint_re_set): Re-create overlay event breakpoint.
12534
12535 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
12536 (overlay_manual_command): Disable overlay breakpoints.
12537 (overlay_off_command): Disable overlay breakpoints.
12538
082fc60d
RE
125392002-02-06 Richard Earnshaw <rearnsha@arm.com>
12540
12541 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
12542 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
12543 to here from config/tm-arm.h.
12544 (coff_sym_is_thumb): Make static.
12545 (arm_elf_make_msymbol_special): New function.
12546 (arm_coff_make_msymbol_special): New function.
12547 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
12548 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
12549 (coff_sym_is_thumb): Delete declaration.
12550 (arm_elf_make_msymbol_special): Declare.
12551 (arm_coff_make_msymbol_special): Declare.
12552 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
12553 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
12554
039c5766
RE
125552002-02-06 Richard Earnshaw <rearnsha@arm.com>
12556
12557 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
12558
125592002-02-06 Richard Earnshaw <rearnsha@arm.com>
12560
12561 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
12562 * gdbarch.c gdbarch.h: Regenerate.
12563 * arch-utils.c (default_print_float_info): New function.
12564 * arch-utils.h (default_print_float_info): Prototype it.
12565 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
12566 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
12567 (PRINT_FLOAT_INFO): Document it.
12568
12569 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
12570 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
12571 (PRINT_FLOAT_INFO): Define.
12572
58fa08f0
PM
125732002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
12574
aaa38bb5 12575 * win32-nat.c (_initialize_check_for_gdb_ini):
58fa08f0
PM
12576 Add typecast to sprintf argument to suppress a warning.
12577
7393af7c
PM
125782002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
12579
58fa08f0 12580 * win32-nat.c (last_sig): Changed type of variable to target_signal,
7393af7c
PM
12581 to allow easier handling of pass state.
12582 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
12583 that gives exception name and address.
12584 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
aaa38bb5 12585 and set last_sig value to ourstatus->value.sig. Some missing
7393af7c 12586 exceptions added.
aaa38bb5
AJ
12587 (child_continue): Correctly report continue_status.
12588 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
7393af7c 12589 TARGET_SIGNAL_0 (new default value).
aaa38bb5 12590 (child_resume): consider sig argument passed to decide if
7393af7c
PM
12591 the exception should be passed to debuggee or not.
12592
6af4589c
MS
125932002-02-05 Michael Snyder <msnyder@redhat.com>
12594
12595 * regcache.c (fetch_register): Call target_fetch_register
12596 only if we don't call FETCH_PSEUDO_REGISTER.
12597 (store_register): Call target_store_register only if we
12598 don't call STORE_PSEUDO_REGISTER.
12599
a2cf933a
EZ
126002002-02-05 Elena Zannoni <ezannoni@redhat.com>
12601
12602 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
12603 ELF_MAKE_MSYMBOL_SPECIAL.
12604 * gdbarch.c, gdbarch.h: Regenerate.
12605 * arch-utils.c (default_make_msymbol_special): New function.
aaa38bb5 12606 * arch-utils.h (default_make_msymbol_special): Export.
a2cf933a
EZ
12607 * elfread.c (elf_symtab_read): Compile use of
12608 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
12609 multiarched.
12610 * coffread.c (coff_symtab_read): Ditto, for
12611 COFF_MAKE_MSYMBOL_SPECIAL.
12612
6bb7be43
JB
126132002-02-05 Jim Blandy <jimb@redhat.com>
12614
12615 * solib-svr4.c (svr4_truncate_ptr): New function.
12616 (svr4_relocate_section_addresses): Do the address arithmetic with
12617 the appropriate truncation for target addresses, even when
12618 CORE_ADDR is larger than a target address.
12619
e18651ec
DJ
126202002-02-05 Daniel Jacobowitz <drow@mvista.com>
12621
12622 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
12623 to (int *).
12624
6b2725be
DJ
126252002-02-05 Daniel Jacobowitz <drow@mvista.com>
12626
12627 * gdbserver/linux-low.c (kill_inferior): Remove commented out
12628 code.
12629
fca9e603
DJ
126302002-02-05 Daniel Jacobowitz <drow@mvista.com>
12631
12632 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
12633
6c537a52
DJ
126342002-02-05 Daniel Jacobowitz <drow@mvista.com>
12635
12636 * gdbserver/linux-low.c: Remove unused include files.
12637
d844cde6
DJ
126382002-02-05 Daniel Jacobowitz <drow@mvista.com>
12639
12640 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
12641 (read_inferior_memory): Use it.
12642 (write_inferior_memory): Likewise.
12643
d07c63e7
DJ
126442002-02-05 Daniel Jacobowitz <drow@mvista.com>
12645
12646 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
12647 grubbing through sys_errlist.
12648
da6d8c04
DJ
126492002-02-05 Daniel Jacobowitz <drow@mvista.com>
12650
12651 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
12652
5b421780
PM
126532002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
12654 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
12655
9f60d481
AC
126562002-02-04 Andrew Cagney <ac131313@redhat.com>
12657
12658 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
12659 (do_sfunc, set_cmd_sfunc): New functions.
12660
12661 * command.h (struct cmd_list_element): Add field func.
12662 * cli/cli-decode.h (struct cmd_list_element): Ditto.
12663 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
12664 * cli/cli-decode.h: Ditto.
12665
12666 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
12667 (help_all, help_cmd_list): Ditto.
12668 (find_cmd, complete_on_cmdlist): Ditto.
12669 * top.c (execute_command): Ditto.
12670
12671 * cli/cli-setshow.c (do_setshow_command): Call func instead of
12672 function.sfunc.
12673
12674 * infcmd.c (notice_args_read): Fix function signature.
12675
12676 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
12677 * cli/cli-decode.c (add_set_cmd): Ditto.
12678 * utils.c (initialize_utils): Ditto.
12679 * maint.c (_initialize_maint_cmds): Ditto.
12680 * infrun.c (_initialize_infrun): Ditto.
12681 * demangle.c (_initialize_demangler): Ditto.
12682 * remote.c (add_packet_config_cmd): Ditto.
12683 * mips-tdep.c (_initialize_mips_tdep): Ditto.
12684 * cris-tdep.c (_initialize_cris_tdep): Ditto.
12685 * proc-api.c (_initialize_proc_api): Ditto.
12686 * kod.c (_initialize_kod): Ditto.
12687 * valprint.c (_initialize_valprint): Ditto.
12688 * top.c (init_main): Ditto.
12689 * infcmd.c (_initialize_infcmd): Ditto.
12690 * corefile.c (_initialize_core): Ditto.
12691 * arm-tdep.c (_initialize_arm_tdep): Ditto.
12692 * arch-utils.c (initialize_current_architecture): Ditto.
12693 (_initialize_gdbarch_utils): Ditto.
12694 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
12695
12696 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
12697 * wince.c (_initialize_inftarg): Ditto.
12698 * symfile.c (_initialize_symfile): Ditto.
12699 * mips-tdep.c (_initialize_mips_tdep): Ditto.
12700 * language.c (_initialize_language): Ditto.
12701 * arc-tdep.c (_initialize_arc_tdep): Ditto.
12702
f9ba0717
MS
127032002-02-04 Michael Snyder <msnyder@redhat.com>
12704
12705 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
12706
0c74b2a7
DJ
127072002-02-04 Daniel Jacobowitz <drow@mvista.com>
12708
12709 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
12710 Add rules for building the register data files.
12711
c638789f
DJ
127122002-02-04 Daniel Jacobowitz <drow@mvista.com>
12713
12714 * regformats/regdat.sh: Add braces to the definition of
12715 expedite_regs_${arch}.
12716
db253027
DJ
127172002-02-04 Daniel Jacobowitz <drow@mvista.com>
12718
12719 * regformats/regdef.h (struct reg): Add comment describing the
12720 requirements for offset and size fields.
12721
206be19c
AS
127222002-02-04 Andreas Schwab <schwab@suse.de>
12723
12724 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
12725 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
12726
181c1381
RE
127272002-02-04 Richard Earnshaw <rearnsha@arm.com>
12728
12729 * gdbarch.sh (copyright): Update years in generated header.
12730 (SMASH_TEXT_ADDRESS): Add rule.
db253027 12731 * gdbarch.h, gdbarch.c: Re-generate.
181c1381
RE
12732 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
12733 * dbxread.c: Likewise.
12734 * dwarfread.c: Likewise.
12735 * elfread.c: Likewise.
12736 * somread.c: Likewise.
12737
12738 * arm-tdep.c (arm_smash_text_address): New function.
12739 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
12740
fa4ba8da
PM
127412002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
12742
12743 Add support for hardware watchpoints on win32 native.
aaa38bb5 12744 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
fa4ba8da 12745 CONTEXT_DEBUG_REGISTERS.
aaa38bb5 12746 (dr variable): New variable. Static array containing a local copy
fa4ba8da
PM
12747 of debug registers.
12748 (debug_registers_changed): New variable. Reflects when debug registers
12749 are changed and need to be written to inferior.
aaa38bb5 12750 (debug_registers_used): New variable. Reflects when any debug register
fa4ba8da
PM
12751 was set, used when new threads are created.
12752 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
12753 i386-nat code.
12754 (thread_rec): Set dr array if id is the thread of current_event .
12755 (child_continue, child_resume): Change the debug registers for all
12756 threads if debug_registers_changed.
12757 (child_add_thread): Change the debug registers if debug_registers_used.
12758 * config/i386/cygwin.mh: Add use of i386-nat.o file.
12759 Link nm.h to new nm-cygwin.h file.
12760 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
12761 of hardware registers.
12762
a73c86fb
AC
127632002-02-03 Andrew Cagney <ac131313@redhat.com>
12764
12765 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
12766 Restore behavour broken by 2002-01-20 Andrew Cagney
12767 <ac131313@redhat.com> IEEE_FLOAT removal.
12768
acf5ed49
DJ
127692002-02-03 Daniel Jacobowitz <drow@mvista.com>
12770
12771 * c-valprint.c (c_val_print): Pass a proper valaddr to
12772 cp_print_class_method.
12773 * valops.c (search_struct_method): If there is only one method
12774 and args is NULL, return that method.
12775
493d28d5
DJ
127762002-02-03 Daniel Jacobowitz <drow@mvista.com>
12777
12778 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
12779 accessing tag_name directly.
12780
7495dfdb
DJ
127812002-02-03 Daniel Jacobowitz <drow@mvista.com>
12782
12783 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
12784 of accessing tag_name directly.
12785
dd6bda65
DJ
127862002-02-03 Daniel Jacobowitz <drow@mvista.com>
12787
12788 PR gdb/280
12789 * gdbtypes.c (replace_type): New function.
12790 * gdbtypes.h (replace_type): Add prototype.
12791 * stabsread.c (read_type): Use replace_type.
12792
88fe217c
RE
127932002-02-03 Richard Earnshaw <rearnsha@arm.com>
12794
12795 * Makefile.in (memattr.o): Add missing dependencies rule.
12796
e5d66720
PS
127972002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12798
12799 * breakpoint.c (break_at_finish_command): Really export.
12800 (break_at_finish_at_depth_command): Ditto.
12801 (tbreak_at_finish_command): Ditto.
12802 * hppa-tdep.c: Include completer.h.
12803 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
12804 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
12805
fffee0be
AC
128062002-02-01 Andrew Cagney <ac131313@redhat.com>
12807
12808 * utils.c (do_write): New function.
12809 (error_stream): Rewrite combining the code from error_begin and
12810 verror.
12811 (verror): Rewrite using error_stream.
12812 (error_begin): Delete function.
12813
255e7dbf
AC
128142002-02-01 Andrew Cagney <ac131313@redhat.com>
12815
12816 * utils.c (error_begin): Make static.
12817 * defs.h (error_begin): Delete declaration.
12818
12819 * linespec.c (cplusplus_error): Replace cplusplus_hint.
12820 (decode_line_1): Use cplusplus_error instead of error_begin,
12821 cplusplus_hint and return_to_top_level.
12822 * coffread.c (coff_symfile_read): Use error instead of error_begin
12823 and return_to_top_level.
12824 * infrun.c (default_skip_permanent_breakpoint): Ditto.
12825
ddfe3c15
AC
128262002-02-01 Andrew Cagney <ac131313@redhat.com>
12827
12828 * language.h (type_error, range_error): Make string parameter
12829 constant.
12830 * language.c (warning_pre_print): Delete extern declaration.
12831 * dwarfread.c (warning_pre_print): Ditto.
12832 * language.c (type_error, range_error): Rewrite to use verror and
12833 vwarning instead of warning_begin.
12834
03ac34d5
MS
128352002-02-01 Michael Snyder <msnyder@redhat.com>
12836
261c4ca2
MS
12837 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
12838 (set_ignore_count): Move misplaced comment back where it belongs.
03ac34d5 12839
e00d1dc8
AC
128402002-02-01 Andrew Cagney <ac131313@redhat.com>
12841
12842 * command.h (NO_FUNCTION): Delete macro.
12843 * cli/cli-decode.h (NO_FUNCTION): Ditto.
12844 * top.c (execute_command): Replace NO_FUNCTION with NULL.
12845 * tracepoint.c (_initialize_tracepoint): Ditto.
12846 * cli/cli-decode.c (add_set_cmd): Ditto.
12847 * cli/cli-cmds.c (init_cli_cmds): Ditto.
aaa38bb5 12848
76b79d6e
DJ
128492002-02-01 Daniel Jacobowitz <drow@mvista.com>
12850
12851 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
12852 Update ``this'' pointer when calling virtual functions.
12853
799f9e91
MS
128542002-02-01 Michael Snyder <msnyder@redhat.com>
12855
c7bd442c 12856 * breakpoint.c (create_temp_exception_breakpoint): Delete.
799f9e91
MS
12857 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
12858
3cf384d4
DJ
128592002-02-01 Daniel Jacobowitz <drow@mvista.com>
12860
12861 * regformats/reg-arm.dat: New file.
12862 * regformats/reg-i386.dat: New file.
12863 * regformats/reg-ia64.dat: New file.
12864 * regformats/reg-m68k.dat: New file.
12865 * regformats/reg-mips.dat: New file.
12866 * regformats/reg-ppc.dat: New file.
12867 * regformats/reg-sh.dat: New file.
12868 * regformats/regdef.h: New file.
12869 * regformats/regdat.sh: New file.
12870
0defa245
RE
128712002-02-01 Richard Earnshaw <reanrsha@arm.com>
12872
12873 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
12874 (arm_frame_args_address, arm_frame_locals_address): New functions.
12875 (arm_frame_num_args): New function.
12876 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
12877 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
12878 (FRMA_NUM_ARGS): Call arm_frame_num_args.
12879
405f26e6
MS
128802002-01-31 Michael Snyder <msnyder@redhat.com>
12881
502fd408
MS
12882 * breakpoint.c (break_at_finish_command): Export.
12883 (break_at_finish_at_depth_command): Export.
12884 (tbreak_at_finish_command): Export.
d6020d45 12885 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
502fd408 12886 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
d6020d45 12887 "txbreak" commands, which are HPPA specific.
502fd408 12888
7d35e135
MS
12889 * printcmd.c (disassemble_command): Remove an ancient
12890 artifact of an old merge.
12891
aaa38bb5 12892 * symfile.h (enum overlay_debugging_state):
d874f1e2
MS
12893 Define enum constant values for overlay mode.
12894 * symfile.c (overlay_debugging): Use enums instead of literals.
aaa38bb5
AJ
12895 (overlay_is_mapped, overlay_auto_command,
12896 overlay_manual_command): Ditto.
d874f1e2 12897
aaa38bb5
AJ
12898 * breakpoint.c (insert_breakpoints, remove_breakpoint,
12899 breakpoint_here_p, breakpoint_inserted_here_p,
12900 breakpoint_thread_match, bpstat_stop_status,
9f04af04
MS
12901 describe_other_breakpoints, check_duplicates, clear_command):
12902 Coding standard fixes.
12903
8add0441 12904 * target.c (target_xfer_memory): Add spaces, coding standard.
9f04af04 12905 (do_xfer_memory): Add missing line to trust-readonly
405f26e6
MS
12906 code: check bfd SEC_READONLY flag for section.
12907
e351066e
AC
129082002-01-31 Andrew Cagney <ac131313@redhat.com>
12909
7d35e135 12910 * PROBLEMS: Fix typo, 5.1->5.1.1.
e351066e 12911
8a48e967
DJ
129122002-01-30 Daniel Jacobowitz <drow@mvista.com>
12913
12914 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
12915 data symbols, since we search based on textlow and texthigh.
12916 (find_pc_sect_symtab): Likewise.
12917
f5a96129
AC
129182002-01-30 Andrew Cagney <ac131313@redhat.com>
12919
12920 * defs.h (vwarning): Declare.
f5a96129
AC
12921 * utils.c (vwarning): New function.
12922 (warning): Call vwarning.
12923 (warning_begin): Delete function.
12924
12925 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
12926 the warning message.
12927 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
12928 warning_begin.
12929
cefd4ef5
MS
129302002-01-30 Michael Snyder <msnyder@redhat.com>
12931
1a703748
MS
12932 * NEWS: Mention "set trust-readonly-sections" command.
12933 Mention generate-core-file command.
cefd4ef5 12934
3a11626d
MS
129352002-01-15 Michael Snyder <msnyder@redhat.com>
12936
12937 * target.c: New command, "set trust-readonly-sections on".
12938 (do_xfer_memory): Honor the suggestion to trust readonly sections
12939 by reading them from the object file instead of from the target.
12940 (initialize_targets): Register command "set trust-readonly-sections".
12941
d1c7e53b
AC
129422002-01-29 Andrew Cagney <ac131313@redhat.com>
12943
12944 * parse.c (target_map_name_to_register): Simplify, search regs and
12945 pseudo-regs using a single loop.
12946
e2c9a72c
AC
129472002-01-30 Andrew Cagney <ac131313@redhat.com>
12948
12949 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
12950
69824b4e
MK
129512002-01-15 Rodney Brown <rbrown64@csc.com.au>
12952
12953 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
12954 * config/i386/i386v42mp.mh: Add i387-nat.o .
12955 * i386v4-nat.c: Include i387-nat.h.
12956 (supply_fpregset): Use i387_supply_fsave.
12957 (fill_fpregset): Use i387_fill_fsave.
12958
6eb69eab
RE
129592002-01-30 Richard Earnshaw <rearnsha@arm.com>
12960
12961 * arm-tdep.c (arm_call_dummy_words): Define.
12962 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
12963 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
12964 (CALL_DUMMY_WORDS): Define.
12965 (arm_call_dummy_words): Declare.
12966 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
12967 (arm_linux_call_dummy_words): Declare.
12968
9852326a
AS
129692002-01-30 Andreas Schwab <schwab@suse.de>
12970
12971 * m68klinux-nat.c: Fix last change to use regcache_collect
12972 instead of referencing registers[] directly.
12973
977a3030
AC
129742002-01-29 Andrew Cagney <ac131313@redhat.com>
12975
12976 * parse.c (target_map_name_to_register): Delete code wrapped in
12977 #ifdef REGISTER_NAME_ALIAS_HOOK.
12978
2076c72b
MS
129792002-01-28 Michael Snyder <msnyder@redhat.com>
12980
12981 * regcache.c (legacy_read_register_gen): Need to be able to
12982 read pseudo-register as well as real register.
12983 (legacy_write_register_gen): Ditto.
12984
8fcc723b
AC
129852002-01-28 Andrew Cagney <ac131313@redhat.com>
12986
12987 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
12988 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
12989 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
12990 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
12991 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
12992 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
12993 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
12994 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
12995 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
12996 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
12997 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
12998 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
12999 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
13000 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
13001 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
13002 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
13003 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
13004 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
13005 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
13006 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
13007
afe64c1a
AC
130082002-01-28 Andrew Cagney <ac131313@redhat.com>
13009
13010 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
13011 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
13012 (initialize_current_architecture): Update target_byte_order using
13013 information from BFD.
aaa38bb5 13014 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
afe64c1a
AC
13015 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
13016
75bc7ddf
AC
130172002-01-28 Andrew Cagney <ac131313@redhat.com>
13018
13019 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
13020 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
13021
13022 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
13023 #ifdef INVALID_FLOAT.
13024 * infcmd.c (do_registers_info): Ditto.
13025 * values.c (unpack_double): Ditto. Add comment.
13026
13027 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
13028 already commented out.
13029
0280a90a
AS
130302002-01-26 Andreas Schwab <schwab@suse.de>
13031
13032 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
13033 * m68klinux-nat.c: Update ptrace interface for fetching/storing
13034 registers and add support for PTRACE_GETREGS.
13035
7072a954
AC
130362002-01-24 Andrew Cagney <ac131313@redhat.com>
13037
13038 GDB 5.1.1 released from 5.1 branch.
13039 * NEWS: Add 5.1.1 news.
13040 * README: Sync with 5.1 branch.
13041
86f902e0
FF
130422002-01-23 Fred Fish <fnf@redhat.com>
13043
13044 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
13045 stabstring on initial malloc. Reallocing will copy it for us,
13046 if necessary.
13047
8af51c36
EZ
130482002-01-23 Elena Zannoni <ezannoni@redhat.com>
13049
aaa38bb5 13050 * Makefile.in (hpread_h): Delete.
8af51c36
EZ
13051 (HFILES_NO_SRCDIR): Remove hpread.h.
13052 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
13053 (hpread.o): Update dependencies.
13054 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
13055
13056 * hp-psymtab-read.c: Remove file.
13057 * hp-symtab-read.c: Remove file.
13058 * hpread.h: Remove file.
13059
13060 * hpread.c: Merge all contents of hp-psymtab-read.c,
13061 hp-symtab-read.c and hpread.h into this file, as it was prior to
13062 January 1999.
13063
13064 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
aaa38bb5 13065 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
8af51c36
EZ
13066 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
13067 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
13068
dc5cfeb6
EZ
130692002-01-23 Elena Zannoni <ezannoni@redhat.com>
13070
13071 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
13072 fill_gregset): Call gdbarch_tdep() just once, assign result to
13073 variable and use that, instead of calling the function several
13074 times.
13075
ea87b71b
AO
130762002-01-24 Alexandre Oliva <aoliva@redhat.com>
13077
13078 * configure.host: Accept sparcv9 as alias for sparc64.
13079 * configure.tgt: Likewise.
13080
13fc0c2f
KB
130812002-01-22 Kevin Buettner <kevinb@redhat.com>
13082
13083 * solib-aix5.c (build_so_list_from_mapfile)
13084 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
13085 arguments is not reversed.
13086 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
13087 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
aaa38bb5 13088
7bd872fe
EZ
130892002-01-22 Elena Zannoni <ezannoni@redhat.com>
13090
13091 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
13092 modified version of obsolete sh_fetch_pseudo_register.
13093 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
13094 (sh4_register_read): New function.
13095 (sh_pseudo_register_write): New function. Renamed and modified
13096 version of obsolete sh_store_pseudo_register.
13097 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
13098 (sh4_register_write): New function.
13099 (sh_gdbarch_init): Remove setting of gdbarch function
13100 fetch_pseudo_register and store_pseudo_register. Remove setting of
13101 register_convert_to_raw, register_convert_to_virtual,
13102 register_convertible.
13103 (sh_sh4_register_convertible): Delete. No longer needed. All is
13104 taken care by architecture specific functions
13105 register_read/register_write.
13106 (sh_sh4_register_convert_to_virtual): Make static.
13107 (sh_sh4_register_convert_to_raw): Ditto.
13108
069e84fd
AC
131092002-01-22 Andrew Cagney <ac131313@redhat.com>
13110
13111 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
13112 (floatformat_is_nan, floatformat_mantissa): Ditto.
13113
13114 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
13115 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
13116 builtin_type_ieee_double_little,
13117 builtin_type_ieee_double_littlebyte_bigword,
13118 builtin_type_m68881_ext, builtin_type_i960_ext,
13119 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
13120 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
13121 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
13122 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
13123
211a4f69
CV
131242002-01-22 Corinna Vinschen <vinschen@redhat.com>
13125
13126 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
13127 parameter. Set frameless flag if it exists and depended of
13128 whether the scanned function is frameless or not.
13129 (xstormy16_skip_prologue): If function is frameless, return
13130 result of xstormy16_scan_prologue().
13131 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
13132 call.
13133
f81353e4
EZ
131342002-01-21 Elena Zannoni <ezannoni@redhat.com>
13135
13136 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
13137 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
13138 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
13139 sh_sh4_register_byte, sh_sh4_register_raw_size,
13140 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
13141 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
13142 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
13143 sh_store_pseudo_register, sh_do_pseudo_register): Call
13144 gdbarch_tdep() just once, assign result to variable and use that,
13145 instead of calling the function several times.
13146
63c73a17
MK
131472002-01-20 Mark Kettenis <kettenis@gnu.org>
13148
13149 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
13150 macros instead of LAST_FPU_CTRL_REGNUM.
13151 (store_register): Likewise.
13152
39ad761d
JB
131532002-01-21 Jim Blandy <jimb@redhat.com>
13154
13155 * infcmd.c (run_command): Check that the `exec' target layer's BFD
13156 is up-to-date before running the program, not just when a program
13157 exits.
13158
3d74b771
FF
131592002-01-21 Fred Fish <fnf@redhat.com>
13160
13161 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
13162 when we have found all instructions we are looking for.
13163
966fbf70
RE
131642002-01-21 Richard Earnshaw <rearnsha@arm.com>
13165
13166 * arm-tdep.c (arm_register_name): New function.
13167 (arm_registers_names): Make static.
13168 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
13169 (arm_register_name): Declare.
13170 (REGISTER_NAME): Use it.
13171
c3b4394c
RE
131722002-01-21 Richard Earnshaw <rearnsha@arm.com>
13173 Kevin Buettner <kevinb@redhat.com>
13174
13175 Convert arm targets to new FRAME interface.
13176 * arm-tdep.c (struct frame_extra_info): Remove fsr.
13177 (arm_frame_find_save_regs): Delete.
13178 (arm_frame_init_saved_regs): New.
13179 (arm_init_extra_frame_info): Alloacte saved_regs as required.
13180 Allocate extra_info as required. Convert all uses of fsr.regs
13181 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
13182 to use extra_info.
13183 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
13184 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
13185 (check_prologue_cache, save_prologue_cache): Likewise.
13186 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
13187 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
13188 (FRAME_FIND_SAVED_REGS): Delete.
13189 (arm_frame_find_saved_regs): Delete prototype.
13190 (arm_frame_init_saved_regs): New prototype.
13191 (FRAME_INIT_SAVED_REGS): Define.
13192
61d99182
AC
131932002-01-20 Andrew Cagney <ac131313@redhat.com>
13194
13195 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
13196
6aaea291
AC
131972002-01-20 Andrew Cagney <ac131313@redhat.com>
13198
13199 From Jeff Law <law@redhat.com>:
13200 * infttrace.c: Include <sys/pstat.h>.
13201 (child_pid_to_exec_file): Revamp. Use pstat call to get the
13202 exec file if the ttrace equivalent fails.
13203
15f698d2
AC
132042002-01-20 Andrew Cagney <ac131313@redhat.com>
13205
13206 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
13207 (closeLogFile): Ditto.
13208
f86ddd7c
MC
132092002-01-20 Michael Chastain <mec@shout.net>
13210
13211 * top.c (print_gdb_version): Bump copyright year to 2002.
13212
904507ce
AC
132132002-01-20 Andrew Cagney <ac131313@redhat.com>
13214
13215 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
13216 Zannoni and Eli Zaretskii.
13217
d7f0b9ce
DJ
132182002-01-20 Daniel Jacobowitz <drow@mvista.com>
13219
13220 * buildsym.c: Update copyright years.
13221 * c-typeprint.c: Likewise.
13222 * dwarf2read.c: Likewise.
13223 * f-typeprint.c: Likewise.
13224 * gdbtypes.c: Likewise.
13225 * gdbtypes.h: Likewise.
13226 * hp-symtab-read.c: Likewise.
13227 * hpread.c: Likewise.
13228 * mdebugread.c: Likewise.
13229 * p-typeprint.c: Likewise.
13230
3fd3d7d2
AC
132312002-01-20 Andrew Cagney <ac131313@redhat.com>
13232
13233 * remote-sim.c (gdbsim_open): Simplify code testing the macro
13234 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
13235 byte-order selectable.
13236 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
13237 * arch-utils.c: Ditto.
13238 (set_endian): Ditto.
13239 (set_endian_from_file): Ditto.
13240 * gdbserver/low-sim.c (create_inferior): Ditto.
13241 * gdbarch.sh: Ditto.
13242 * gdbarch.h: Re-generate.
aaa38bb5
AJ
13243 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13244 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
13245 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
13246 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13247 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13248 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13249 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
3fd3d7d2
AC
13250 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
13251 macro definition.
13252 * config/mips/tm-wince.h: Remove #undef of macro
13253 TARGET_BYTE_ORDER_SELECTABLE.
13254 * config/sh/tm-wince.h: Ditto.
13255
b02dede2
DJ
132562002-01-20 Daniel Jacobowitz <drow@mvista.com>
13257
13258 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
13259 member function fields. Add accessor macro
13260 TYPE_FN_FIELD_ARTIFICIAL.
13261 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
13262 * c-typeprint.c (c_type_print_base): Skip artificial member
13263 functions.
13264
c3643761
DJ
132652002-01-20 Daniel Jacobowitz <drow@mvista.com>
13266
13267 * f-typeprint.c: Delete unused function f_type_print_args.
13268 * p-typeprint.c: Delete unused function pascal_type_print_args.
13269
8176bb6d
DJ
132702002-01-20 Daniel Jacobowitz <drow@mvista.com>
13271
13272 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
13273 comment. Add ``artificial'' to ``union field_location''.
13274
13275 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
13276
13277 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
13278 * mdebugread.c (parse_symbol): Likewise.
13279 * stabsread.c (define_symbol): Likewise.
13280 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
13281 initializing TYPE_FIELD_BITPOS to n (obsolete).
13282 (hpread_doc_function_type): Likewise.
13283 * hpread.c (hpread_function_type): Likewise.
13284
7fd60527
AC
132852002-01-20 Andrew Cagney <ac131313@redhat.com>
13286
13287 * configure.in (host_makefile_frag): Only require a host makefile
13288 fragment when a native build.
13289 * configure: Re-generate.
13290
c2f05ac9
AC
132912002-01-20 Andrew Cagney <ac131313@redhat.com>
13292
13293 * doublest.h (floatformat_from_type): Declare.
13294 * doublest.c (floatformat_from_type): New function.
13295 (convert_typed_floating): Use.
13296
13297 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
13298 call to function floatformat_from_type.
13299
13300 * gdbarch.sh (IEEE_FLOAT): Delete.
13301 * gdbarch.h, gdbarch.c: Re-generate.
13302 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
13303 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
13304 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
13305 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
13306 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
13307 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
13308 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
13309 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
13310 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
13311 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
13312 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
c2f05ac9
AC
13313 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
13314
13315 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
13316 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
13317 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
13318 * sh-tdep.c (sh_gdbarch_init): Ditto.
13319 * mips-tdep.c (mips_gdbarch_init): Ditto.
13320 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
13321 * cris-tdep.c (cris_gdbarch_init): Ditto.
13322
abf22e64
AJ
133232002-01-20 Jiri Smid <smid@suse.cz>
13324
13325 * configure.host, configure.tgt: Support x86-64.
13326 * NEWS: Note new target x86-64.
13327
b7c4cbf8
AJ
13328 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
13329 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
13330 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
13331 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
13332 x86-64-linux-nat.o): Fix dependencies.
13333
82600034
AC
133342002-01-19 Andrew Cagney <ac131313@redhat.com>
13335
13336 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
13337 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
13338 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
13339 * config/sparc/xm-sun4os4.h: Delete file.
13340 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
abf22e64 13341
bbe5c628
AC
133422002-01-19 Andrew Cagney <ac131313@redhat.com>
13343
13344 * config/sparc/sparclynx.mh (XM_FILE): Delete.
13345 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
13346 * config/m68k/m68klynx.mh (XM_FILE): Delete.
13347 * config/i386/i386lynx.mh (XM_FILE): Delete.
13348 * config/rs6000/xm-rs6000ly.h: Delete file.
13349 * config/sparc/xm-sparclynx.h: Delete file.
13350 * config/m68k/xm-m68klynx.h: Delete file.
13351 * config/i386/xm-i386lynx.h: Delete file.
13352 * config/xm-lynx.h: Delete file.
13353 * config/djgpp/fnchange.lst: Update.
13354
f8453e34
JT
133552002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13356
13357 * alpha-tdep.c (alpha_register_byte): New function.
13358 (alpha_register_raw_size): Ditto.
13359 (alpha_register_virtual_size): Ditto.
13360 (alpha_skip_prologue_internal): Renamed from
13361 alpha_skip_prologue.
13362 (alpha_skip_prologue): New version that calls
13363 alpha_skip_prologue_internal.
13364 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
13365 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
13366 second argument from alpha_skip_prologue.
13367 (REGISTER_BYTE): Use alpha_register_byte.
13368 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
13369 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
13370 (FRAMELESS_FUNCTION_INVOCATION): Use
13371 generic_frameless_function_invocation_not.
13372 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
13373 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
13374
52d9e613
AC
133752002-01-19 Andrew Cagney <ac131313@redhat.com>
13376
13377 * config/mips/xm-news-mips.h: Delete file.
13378 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
13379
13380 * config/m88k/xm-m88k.h: Delete file.
13381 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
13382 * config/m88k/xm-delta88v4.h: Ditto.
13383 * config/m88k/xm-delta88.h: Ditto.
13384
13385 * config/alpha/xm-fbsd.h: Delete file.
13386 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
13387
13388 * config/sparc/xm-sparc.h: Delete file.
13389 * Makefile.in (xm-sun4os4.h): Delete dependency.
13390 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
13391 * config/sparc/xm-sun4os4.h: Ditto.
13392 * config/sparc/xm-linux.h: Ditto.
13393
13394 * config/i386/xm-windows.h: Delete file.
13395
2d1b2124
AC
133962002-01-19 Andrew Cagney <ac131313@redhat.com>
13397
13398 * utils.c: Include <sys/param.h> for MAXPATHLEN.
13399 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
13400
ee1f65f0
JT
134012002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13402
13403 * alpha-tdep.c (alpha_call_dummy_words): New.
13404 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
13405 (CALL_DUMMY_P): Define.
13406 (CALL_DUMMY_WORDS): Define.
13407 (SIZEOF_CALL_DUMMY_WORDS): Define.
13408
98081e55
PB
134092002-01-19 Per Bothner <per@bothner.com>
13410
13411 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
13412 isn't NULL, which can happen with some gcj-3.x-produced code.
13413
0d056799
JT
134142002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13415
13416 * alpha-tdep.c (alpha_register_virtual_type): New function.
13417 (alpha_init_frame_pc_first): Ditto.
13418 (alpha_fix_call_dummy): Ditto.
13419 (alpha_store_struct_return): Ditto.
13420 (alpha_extract_struct_value_address): Ditto.
13421 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
13422 alpha_register_virtual_type.
13423 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
13424 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
13425 alpha_extract_struct_value_address.
13426 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
13427 (INIT_FRAME_PC): Use init_frame_pc_noop.
13428 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
13429
4604bcad
MK
134302002-01-19 Mark Kettenis <kettenis@gnu.org>
13431
13432 * i386gnu-nat.c: Include "i386-tdep.h".
13433 (fetch_fpregs): Simplify code dealing with uninitialized floating
13434 point states such that it doesn't require FP7_REGNUM.
13435
140f9984
JT
134362002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13437
abf22e64
AJ
13438 * alpha-tdep.c (frame_extra_info): New.
13439 (alpha_find_saved_regs): Make static. Use
140f9984
JT
13440 frame->extra_info.
13441 (alpha_frame_init_saved_regs): New function.
abf22e64
AJ
13442 (alpha_frame_saved_pc): Use frame->extra_info.
13443 (temp_saved_regs): Don't declare as struct frame_saved_regs.
13444 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
140f9984
JT
13445 (init_extra_frame_info): Rename to...
13446 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
abf22e64 13447 (alpha_print_extra_frame_info): New function.
140f9984
JT
13448 (alpha_frame_locals_address): Ditto.
13449 (alpha_frame_args_address): Ditto.
abf22e64 13450 (alpha_pop_frame): Use frame->extra_info.
140f9984
JT
13451 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
13452 alpha_frame_args_address.
abf22e64 13453 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
140f9984 13454 (alpha_find_saved_regs): Remove prototype.
abf22e64
AJ
13455 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
13456 (EXTRA_FRAME_INFO): Remove.
140f9984
JT
13457 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
13458 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
13459
d734c450
JT
134602002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13461
13462 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
13463 (alpha_cannot_fetch_register): Ditto.
13464 (alpha_cannot_store_register): Ditto.
13465 (alpha_register_convertible): Ditto.
13466 (alpha_use_struct_convention): Ditto.
13467 * config/alpha/tm-alpha.h: Update copyright years.
13468 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
13469 (INNER_THAN): Use core_addr_lessthan.
13470 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
13471 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
13472 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
13473 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
13474 (FRAME_CHAIN): Remove unnecessary cast.
13475
b4ceaee6
AC
134762002-01-18 Andrew Cagney <ac131313@redhat.com>
13477
13478 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
13479 obsolete.
13480
0a65a603
AC
134812002-01-18 Andrew Cagney <ac131313@redhat.com>
13482
13483 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
13484 * monitor.c, remote-array.c, remote-bug.c: Ditto.
13485 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
13486 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
13487 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
13488 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
13489 * x86-64-linux-nat.c: Ditto.
13490
636a6dfc
JT
134912002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13492
abf22e64 13493 * alpha-tdep.c (alpha_register_name): New function.
636a6dfc
JT
13494 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
13495 (REGISTER_NAME): Define.
13496
acceddb6
JT
134972002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13498
13499 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
13500
ec32e4be
JT
135012002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13502
13503 * alpha-tdep.c: Update copyright years.
13504 (alpha_next_pc): New function.
13505 (alpha_software_single_step): Ditto.
13506 * config/alpha/tm-alpha.h: Add prototype for
13507 alpha_software_single_step.
13508
e771a871
JT
135092002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13510
13511 * alphabsd-nat.c: Update copyright years.
13512 (fill_gregset): Use regcache_collect.
13513 (fill_fpregset): Likewise.
13514 (fetch_inferior_registers): Only fetch integer registers
13515 if requested to do so.
13516 (store_inferior_registers): Only store integer registers
13517 if requested to do so.
13518
7708fa01
AC
135192002-01-17 Andrew Cagney <ac131313@redhat.com>
13520
13521 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
13522 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
13523 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
13524 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
13525 * config/alpha/fbsd.mh (XDEPFILES): Delete.
13526 * config/arm/linux.mh (XDEPFILES): Delete.
13527 * config/arm/nbsd.mh (XDEPFILES): Delete.
13528 * config/i386/i386dgux.mh (XDEPFILES): Delete.
13529 * config/i386/i386sol2.mh (XDEPFILES): Delete.
13530 * config/i386/i386m3.mh (XDEPFILES): Delete.
13531 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
13532 * config/i386/i386gnu.mh (XDEPFILES): Delete.
13533 * config/i386/fbsd.mh (XDEPFILES): Delete.
13534 * config/i386/i386bsd.mh (XDEPFILES): Delete.
13535 * config/i386/i386sco5.mh (XDEPFILES): Delete.
13536 * config/i386/i386v4.mh (XDEPFILES): Delete.
13537 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
13538 * config/i386/i386sco4.mh (XDEPFILES): Delete.
13539 * config/i386/i386aix.mh (XDEPFILES): Delete.
13540 * config/i386/go32.mh (XDEPFILES): Delete.
13541 * config/i386/cygwin.mh (XDEPFILES): Delete.
13542 * config/i386/i386lynx.mh (XDEPFILES): Delete.
13543 * config/i386/i386mach.mh (XDEPFILES): Delete.
13544 * config/i386/i386v32.mh (XDEPFILES): Delete.
13545 * config/i386/linux.mh (XDEPFILES): Delete.
13546 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
13547 * config/i386/ncr3000.mh (XDEPFILES): Delete.
13548 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
13549 * config/i386/i386sco.mh (XDEPFILES): Delete.
13550 * config/i386/i386v.mh (XDEPFILES): Delete.
13551 * config/i386/nbsd.mh (XDEPFILES): Delete.
13552 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
13553 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
13554 * config/i386/symmetry.mh (XDEPFILES): Delete.
13555 * config/i386/obsd.mh (XDEPFILES): Delete.
13556 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
13557 * config/ia64/linux.mh (XDEPFILES): Delete.
13558 * config/ia64/aix.mh (XDEPFILES): Delete.
13559 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
13560 * config/m68k/dpx2.mh (XDEPFILES): Delete.
13561 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
13562 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
13563 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
13564 * config/m68k/linux.mh (XDEPFILES): Delete.
13565 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
13566 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
13567 * config/m68k/nbsd.mh (XDEPFILES): Delete.
13568 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
13569 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
13570 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
13571 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
13572 * config/m88k/delta88.mh (XDEPFILES): Delete.
13573 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
13574 * config/m88k/m88k.mh (XDEPFILES): Delete.
13575 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
13576 * config/mips/linux.mh (XDEPFILES): Delete.
13577 * config/mips/irix6.mh (XDEPFILES): Delete.
13578 * config/mips/irix5.mh (XDEPFILES): Delete.
13579 * config/mips/irix4.mh (XDEPFILES): Delete.
13580 * config/mips/irix3.mh (XDEPFILES): Delete.
13581 * config/mips/decstation.mh (XDEPFILES): Delete.
13582 * config/mips/mipsm3.mh (XDEPFILES): Delete.
13583 (NATDEPFILES): Move core-aout.o to here.
13584 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
13585 * config/pa/hpux1020.mh (XDEPFILES): Delete.
13586 * config/pa/hppabsd.mh (XDEPFILES): Delete.
13587 * config/pa/hppahpux.mh (XDEPFILES): Delete.
13588 * config/pa/hpux11w.mh (XDEPFILES): Delete.
13589 * config/pa/hppaosf.mh (XDEPFILES): Delete.
13590 * config/pa/hpux11.mh (XDEPFILES): Delete.
13591 * config/powerpc/aix.mh (XDEPFILES): Delete.
13592 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
13593 * config/powerpc/linux.mh (XDEPFILES): Delete.
13594 * config/romp/rtbsd.mh: Rename XDEPFILES.
13595 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
13596 * config/rs6000/aix4.mh (XDEPFILES): Delete.
13597 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
13598 * config/s390/s390.mh (XDEPFILES): Delete.
13599 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
13600 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
13601 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
13602 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
13603 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
13604 * config/sparc/nbsd.mh (XDEPFILES): Delete.
13605 * config/sparc/linux.mh (XDEPFILES): Delete.
13606 * config/vax/vaxult.mh (XDEPFILES): Delete.
13607 * config/vax/vaxult2.mh (XDEPFILES): Delete.
13608 * Makefile.in (DEPFILES): Remove XDEPFILES.
13609
375fc983
AC
136102002-01-17 Andrew Cagney <ac131313@redhat.com>
13611
13612 * utils.c (internal_verror): Fix comments, default is yes not no.
13613 Update queries to match. Default to quit and dump core.
13614
8926118c
AC
136152002-01-17 Andrew Cagney <ac131313@redhat.com>
13616
13617 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
13618 copyright.
13619 * defs.h, event-top.c, gdbcmd.h: Ditto.
13620 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
13621 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
13622 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
13623 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
13624 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
13625 * mi/mi-main.c:Ditto.
13626
13627 * stack.c, symfile.c: Update copyright.
13628
45b7b345
DJ
136292002-01-17 Daniel Jacobowitz <drow@mvista.com>
13630
db728ff7
DJ
13631 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
13632 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
13633 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
13634 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
45b7b345 13635
db728ff7
DJ
136362002-01-17 Daniel Jacobowitz <drow@mvista.com>
13637
13638 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
13639 * gdbserver/low-lynx.c (myattach): Likewise.
13640 * gdbserver/low-nbsd.c (myattach): Likewise.
13641 * gdbserver/low-sim.c (myattach): Likewise.
13642 * gdbserver/low-sparc.c (myattach): Likewise.
13643 * gdbserver/low-sun3.c (myattach): Likewise.
13644
13645 * gdbserver/low-linux.c (myattach): New function.
45b7b345 13646
db728ff7 13647 * gdbserver/server.c (attach_inferior): New function.
45b7b345
DJ
13648 (main): Handle "--attach".
13649
8de3c354
AC
136502002-01-16 Andrew Cagney <ac131313@redhat.com>
13651
13652 * MAINTAINERS (language support): Daniel Jacobwitz is C++
13653 maintainer.
13654
b0129042
DJ
136552002-01-15 Daniel Jacobowitz <drow@mvista.com>
13656
13657 * c-typeprint.c (is_type_conversion_operator): Add additional
13658 check for non-conversion operators.
13659
ba8679fb 136602002-01-15 Michael Snyder <msnyder@redhat.com>
2bf543a6
MS
13661
13662 * linux-proc.c: Add "info proc" command, a la procfs.c.
13663 (read_mapping): New function, abstract and re-use code.
13664 (linux_find_memory_regions): Use new func read_mapping.
13665 (linux_info_proc_cmd): New function, implement "info proc".
13666 (_initialize_linux_proc): Add new command "info proc".
13667
e4f9b4d5
MS
136682002-01-15 Michael Snyder <msnyder@redhat.com>
13669
13670 * symfile.c (generic_load): Use bfd_map_over_sections method
13671 instead of manipulating bfd structure members directly.
13672 (add_section_size_callback): New function, bfd sections callback
13673 used by generic_load.
13674 (load_sections_callback): New function, bfd sections callback
13675 used by generic_load.
13676
08cf96df
EZ
136772002-01-15 Elena Zannoni <ezannoni@redhat.com>
13678
abf22e64 13679 [Based on work by Jim Blandy]
08cf96df
EZ
13680 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
13681 (builtin_type_vec128): Export.
13682 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
13683 types.
13684 (builtin_type_vec128): New builtin type for 128 bit vector
13685 registers.
13686 (build_gdbtypes): Initialize builtin_type_v16qi and
13687 builtin_type_v8hi. Create the vec128 register builtin type
13688 structure.
13689 (build_builtin_type_vec128): New function.
abf22e64 13690 (_initialize_gdbtypes): Register builtin_type_v16qi and
08cf96df
EZ
13691 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
13692 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
13693 AltiVec register to new builtin type.
13694
d7242108
DJ
136952001-01-15 Daniel Jacobowitz <drow@mvista.com>
13696
13697 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
13698 to make_cv_type.
13699
4ee3352d
AC
137002002-01-14 Andrew Cagney <ac131313@redhat.com>
13701
13702 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
13703 CLEAN_UP_REGISTER_VALUE.
13704 * regcache.c (supply_register): Update only call.
13705
f015b2e7
AC
137062002-01-14 Andrew Cagney <ac131313@redhat.com>
13707
13708 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
13709 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
13710 a29k-*-vxworks* targets as obsolete.
13711
356ae49d
MS
137122002-01-14 Michael Snyder <msnyder@redhat.com>
13713
13714 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
13715 until we can resolve portability issues.
13716 * gregset.h: Remove references to fpxregs.
13717 * gcore.c (gcore_command): Initialize note_sec to NULL.
13718
ade8f45e
AC
137192002-01-13 Andrew Cagney <ac131313@redhat.com>
13720
13721 * signals.c (target_signal_to_name): Rewrite. Only use
13722 signals[].name when in bounds and non-NULL.
abf22e64 13723
89c49e7a
AC
137242002-01-13 Andrew Cagney <ac131313@redhat.com>
13725
13726 From Petr Ledvina <ledvinap@kae.zcu.cz>:
13727 * signals.c (target_signal_to_name): Verify that SIG is within the
13728 bounds of the signals array.
13729
4daa9f9f
AC
137302002-01-13 Andrew Cagney <ac131313@redhat.com>
13731
13732 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
13733
ba4bbdcb
KS
137342002-01-13 Keith Seitz <keiths@redhat.com>
13735
13736 * stack.c (print_frame_info_base): Print the frame's pc
13737 only if when print_frame_info_listing_hook is not defined.
13738
575bbeb6
KS
137392002-01-13 Keith Seitz <keiths@redhat.com>
13740
13741 * varobj.c (varobj_set_value): Make sure that there were no
13742 errors evaluating the object before attempting to set its
13743 value.
13744 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
13745 so this offset adjustment is no longer necessary.
13746 (create_child): Don't set the error flag if the child is
13747 a CPLUS_FAKE_CHILD.
13748 (value_of_child): If value_fetch_lazy fails, return NULL
13749 so that callers will be notified that an error occurred.
13750 (c_value_of_variable): Delay check of variable's validity
13751 until later. We actually want all structs and unions to have
13752 the value "{...}".
13753 Do not return "???" for variables which could not be evaluated.
13754 This error condition must be returned to the caller so that it
13755 can get the error condition from gdb.
13756 (cplus_name_of_child): Adjust index for vptr before figuring
13757 out the name of the child.
13758 (cplus_value_of_child): If a child's (real) parent is not valid,
13759 don't even bother trying to give a value for it. Just return
13760 an error. Change all instances in this function.
13761 (cplus_type_of_child): If our parent is one of the "fake"
13762 parents, we need to get at the type of the real parent, and
13763 derive the child's true type using this information.
13764
b76898ab
AC
137652002-01-13 Andrew Cagney <ac131313@redhat.com>
13766
13767 From 2002-01-09 John Marshall <johnm@falch.net>:
13768 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
13769 sources.redhat.com, and tweak some related URLs which had
13770 suffered from linkrot.
13771
b6649e88
AC
137722002-01-13 Andrew Cagney <ac131313@redhat.com>
13773
13774 From Jeff law:
13775 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
13776 structures passed in registers.
13777
82cc5033
EZ
137782002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
13779
13780 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
13781 white space which prevented compilation. Reported by DSK
13782 <dsk@student.unsw.edu.au>.
13783
ba5f2f8a
MS
137842002-01-11 Michael Snyder <msnyder@redhat.com>
13785
fbd35540
MS
13786 * symfile.c (build_section_addr_info_from_section_tab):
13787 Use bfd access method instead of manipulating bfd directly.
13788 (syms_from_objfile): Ditto.
13789 (simple_overlay_update_1): Ditto.
13790 (simple_overlay_update): Ditto.
13791 (generic_load): Ditto.
13792 (overlay_unmapped_address): FIXME comment, bfd access methods.
13793 (sections_overlap): FIXME comment, bfd access methods.
13794 (pc_in_mapped_range): FIXME comment, bfd access methods.
13795 (pc_in_unmapped_range): FIXME comment, bfd access methods.
13796 (section_is_mapped): FIXME comment, bfd access methods.
13797 (section_is_overlay): FIXME comment, bfd access methods.
13798
ba5f2f8a
MS
13799 * symfile.c (generic_load): Whitespace and long line cleanups.
13800 Remove duplicate variable, change several local variables to
13801 more appropriate data types.
13802 (print_transfer_performance): Use %lu instead of %ld for ulongs.
13803
17df2af6
AC
138042002-01-12 Andrew Cagney <ac131313@redhat.com>
13805
13806 From Peter Schauer:
13807 * language.c (longest_local_hex_string_custom): Use phex_nz to
13808 convert NUM to a hex string.
13809
ec920329
EZ
138102002-01-12 Elena Zannoni <ezannoni@redhat.com>
13811
13812 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
13813 the function.
538a76d6 13814 Update Copyright year.
ec920329 13815
3abd2e01
AC
138162002-01-12 Andrew Cagney <ac131313@redhat.com>
13817
13818 * language.c (longest_raw_hex_string): Delete unused function.
13819
b21b22e0
PS
138202002-01-11 Petr Sorfa <petrs@caldera.com>
13821
13822 * MAINTAINERS (write-after-approval): Add myself.
13823 * dwarf2read.c (read_tag_string_type): Handling of
13824 DW_AT_byte_size.
13825 (read_tag_string_type): FORTRAN fix to prevent propagation of
13826 first string size.
13827 (set_cu_language): Handling of DW_LANG_Fortran95
13828
747fe712
RE
138292002-01-11 Richard Earnshaw <rearnsha@arm.com>
13830
13831 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
13832 GETPID(inferior_ptid).
13833 (store_inferior_registers): Likewise.
13834
f1bea926
JM
138352002-01-10 Jason Merrill <jason@redhat.com>
13836
13837 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
13838 Fix DW_OP_minus.
13839
ae940673
AC
138402002-01-10 Andrew Cagney <ac131313@redhat.com>
13841
13842 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
13843 and bfd/elf32-sh-nbsd.c.
13844
00546b04
MS
138452002-01-10 Michael Snyder <msnyder@redhat.com>
13846
352ed7b4
MS
13847 * NEWS: Mention --pid and corefile/proc-id behavior change.
13848
c18be923
MS
13849 * Makefile.in: Add rules for gcore.o and linux-proc.o.
13850 * gcore.c: Include cli/cli-decode.h instead of command.h.
13851
00546b04
MS
13852 * main.c (captured_main): Add new command line option "--pid".
13853 If the second command line argument (following the symbol-file)
13854 begins with a digit, try to attach to it before trying to open
13855 it as a corefile.
13856 (print_gdb_help): Document the "--pid" argument.
13857
db60ec62
EZ
138582002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
13859
13860 * completer.c (command_completer): New function.
13861
13862 * completer.h <command_completer>: Add prototype.
13863
13864 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
13865 completer for the "help" command.
13866
39c22d1a
JM
138672002-01-09 Jason Merrill <jason@redhat.com>
13868
13869 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
13870
c564377f
MS
138712002-01-09 Michael Snyder <msnyder@redhat.com>
13872
975aec09
MS
13873 * i386-linux-nat.c (fill_fpxregset): Make global.
13874 (store_fpxregset): Ditto.
13875
db4a10fa
MS
13876 * gregset.h (gdb_fpxregset_t): Define.
13877 (supply_fpxregset): Prototype.
13878 (fill_fpxregset): Prototype.
13879
c564377f
MS
13880 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
13881
c3d45d70
RE
138822002-01-09 Richard Earnshaw <rearnsha@arm.com>
13883
13884 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
13885 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
13886 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
13887
fcc87af1
AC
138882002-01-09 Andrew Cagney <ac131313@redhat.com>
13889
13890 * MAINTAINERS: Update target maintainer rules so that any
13891 Maintainer can approve a tested patch for a maintenance-only
13892 target.
13893
dd96c05b
RE
138942002-01-09 Richard Earnshaw <rearnsha@arm.com>
13895
d4297db9 13896 * MAINTAINERS (write-after-approval): Add myself.
dd96c05b 13897
d4297db9 13898 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
dd96c05b
RE
13899 IN_SIGTRAMP.
13900
145fdc6e
MS
139012002-01-08 Michael Snyder <msnyder@redhat.com>
13902
13903 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
13904 real name of the executable, rather than the /proc name.
13905
be4d1333
MS
139062002-01-03 Michael Snyder <msnyder@redhat.com>
13907
13908 Implement a "generate-core-file" command in gdb, save target state.
13909 * gcore.c: New file. Implement new command 'generate-core-file'.
13910 Save a corefile image of the current state of the inferior.
13911 * linux-proc.c: Add linux-specific code for saving corefiles.
13912 * target.h (struct target_ops): Add new target vectors for saving
13913 corefiles; to_find_memory_regions and to_make_corefile_notes.
13914 (target_find_memory_regions): New macro.
13915 (target_make_corefile_notes): New macro.
13916 * target.c (update_current_target): Inherit new target methods.
13917 (dummy_find_memory_regions): New place-holder method.
13918 (dummy_make_corefile_notes): New place-holder method.
13919 (init_dummy_target): Initialize new dummy target vectors.
13920 * exec.c (exec_set_find_memory_regions): New function.
13921 Allow the exec_ops vector for memory regions to be taken over.
13922 (exec_make_note_section): New function, target vector method.
13923 * defs.h (exec_set_find_memory_regions): Export prototype.
13924 * procfs.c (proc_find_memory_regions): New function, corefile method.
13925 (procfs_make_note_section): New function, corefile method.
13926 (init_procfs_ops): Set new target vector pointers.
13927 (find_memory_regions_callback): New function.
13928 (procfs_do_thread_registers): New function.
13929 (procfs_corefile_thread_callback): New function.
13930 * sol-thread.c (sol_find_memory_regions): New function.
13931 (sol_make_note_section): New function.
13932 (init_sol_thread_ops): Initialize new target vectors.
13933 * inftarg.c (inftarg_set_find_memory_regions): New function.
13934 Allow to_find_memory_regions vector to be taken over.
13935 (inftarg_set_make_corefile_notes): New function.
13936 Allow to_make_corefile_notes vector to be taken over.
13937 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
13938 interface layer if not target_has_execution (may be a corefile).
13939 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
13940 * config/sparc/sun4sol2.mh: Ditto.
13941 * config/alpha/alpha-linux.mh: Ditto.
13942 * config/arm/linux.mh: Ditto.
13943 * config/i386/x86-64linux.mh: Ditto.
13944 * config/ia64/linux.mh: Ditto.
13945 * config/m68k/linux.mh: Ditto.
13946 * config/mips/linux.mh: Ditto.
13947 * config/powerpc/linux.mh: Ditto.
13948 * config/sparc/linux.mh: Ditto.
13949
c6b92abd
MS
139502002-01-07 Michael Snyder <msnyder@redhat.com>
13951
13952 * arm-linux-nat.c: Remove references to regcache.c internal data
13953 (registers[] and register_valid[]).
13954
4b09dc8c
MS
139552002-01-07 Michael Snyder <msnyder@redhat.com>
13956
abf22e64
AJ
13957 * linux-proc.c: New file. Implement child_pid_to_exec_file,
13958 so that attaching to a pid will automatically read the process's
4b09dc8c
MS
13959 symbol file and shlibs.
13960 * Makefile.in: Add rule for linux-proc.o.
13961 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
13962 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
13963 * config/arm/linux.mh: Ditto.
13964 * config/i386/linux.mh: Ditto.
13965 * config/i386/x86-64linux.mh: Ditto.
13966 * config/ia64/linux.mh: Ditto.
13967 * config/m68k/linux.mh: Ditto.
13968 * config/mips/linux.mh: Ditto.
13969 * config/powerpc/linux.mh: Ditto.
13970 * config/sparc/linux.mh: Ditto.
13971
c25b74ac
PM
139722002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
13973
13974 * win32-nat.c: Add i386-tdep.h dependency.
13975
94cd915f
MS
139762002-01-07 Michael Snyder <msnyder@redhat.com>
13977
c7cccb76
MS
13978 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
13979 instead of bfd_get_arch_size. Don't bail out just because
13980 there's no exec_bfd.
abf22e64 13981
34c0bd93
MS
13982 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
13983 * p-valprint.c (pascal_object_print_value): Ditto.
13984 * somread.c (som_symtab_read): Ditto.
13985 * symfile.c (simple_free_overlay_region_table): Ditto.
13986 * valops.c (value_assign): Ditto.
13987
21c1c920
MS
13988 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
13989 use tilde_expand and strerror for opening save-tracepoints file.
13990
5bbd998e
MS
13991 * thread-db.c (thread_db_new_objfile): Indendation fix.
13992
94cd915f
MS
13993 * infptrace.c (GDB_MAX_ALLOCA): New define.
13994 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
abf22e64 13995 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
94cd915f
MS
13996 can be overridden with whatever value is appropriate to the host).
13997 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
13998 alloca to allocate potentially large buffer.
13999 * rs6000-nat.c (child_xfer_memory): Ditto.
14000 * symm-nat.c (child_xfer_memory): Ditto.
14001 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
14002
494e8a93
JSC
140032002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
14004
14005 From Nick Clifton <nickc@redhat.com>
14006 * d10v-tdep.c: Set STACK_START to 0x200bffe.
14007
d0e1d48e
MS
140082002-01-07 Michael Snyder <msnyder@redhat.com>
14009
abf22e64 14010 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
d0e1d48e
MS
14011 Don't use exec_bfd if it's NULL.
14012
290b2c7a
MK
140132002-01-06 Mark Kettenis <kettenis@gnu.org>
14014
abf22e64 14015 * valops.c (value_arg_coerce): Fix formatting.
290b2c7a 14016
aef21287
AC
140172002-01-06 Andrew Cagney <ac131313@redhat.com>
14018
14019 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
14020 * gnu-nat.c: Ditto.
14021
30efa627
AC
140222002-01-06 Andrew Cagney <ac131313@redhat.com>
14023
14024 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
14025 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
14026 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
14027 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
14028 z8k-coff have not been multi-arched. Update z8k-coff build
14029 status.
14030
9b4ff276
AC
140312002-01-06 Andrew Cagney <ac131313@redhat.com>
14032
14033 * MAINTAINERS: Mark a29k target as obsolete.
14034 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
14035 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
14036 comments.
14037 * NEWS: Note that a29k targets are obsolete.
14038 * a29k-tdep.c: Mark as obsolete.
14039 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
14040 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
14041 a29k-*-vxworks* targets as obsolete.
14042 * remote-adapt.c: Obsolete.
14043 * remote-eb.c: Obsolete.
14044 * remote-mm.c: Obsolete.
14045 * remote-udi.c: Obsolete.
14046 * config/a29k/a29k-udi.mt: Obsolete.
14047 * config/a29k/a29k.mt: Obsolete.
14048 * config/a29k/tm-a29k.h: Obsolete.
14049 * config/a29k/tm-vx29k.h: Obsolete.
14050 * config/a29k/vx29k.mt: Obsolete.
14051
a9011d31
AC
140522002-01-05 Andrew Cagney <ac131313@redhat.com>
14053
14054 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
14055 with BFD_ENDIAN_BIG.
14056
9299404e
AC
140572002-01-05 Andrew Cagney <ac131313@redhat.com>
14058
14059 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
14060 * configure, config.in: Re-generate.
14061 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
14062 * defs.h: Do not include <endian.h>.
14063
7e89e357
JT
140642002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
14065
14066 * acconfig.h (HAVE_PT_GETXMMREGS): New.
14067 * config.in: Regenerate.
14068 * configure.in: Update copyright years.
14069 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
14070 * configure: Regenerate.
14071 * i386bsd-nat.c: Update copyright years.
14072 (fill_gregset): Use regcache_collect.
14073 (fetch_inferior_registers): Only fetch integer registers
14074 if requested to do so. Add support for XMM registers
14075 using PT_GETXMMREGS.
14076 (store_inferior_registers): Only store integer registers
14077 if requested to do so. Add support for XMM registers
14078 using PT_SETXMMREGS.
14079 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
14080 (store_inferior_registers): Remove.
14081 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
14082 (fetch_elfcore_registers): New function.
14083 (i386nbsd_elfcore_fns): New.
14084 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
14085 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
14086 i386bsd-nat.o.
14087 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
14088 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
14089 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
14090 * config/i386/tm-nbsd.h: Update copyright years.
14091 (HAVE_SSE_REGS): Define.
14092 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
14093 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
14094 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
14095 (SIGCONTEXT_PC_OFFSET): Remove.
14096 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
14097
a752853e
AC
140982002-01-05 Andrew Cagney <ac131313@redhat.com>
14099
14100 * configure.tgt: Remove powerpc-*-macos* target.
14101 * config/m68k/xm-mpw.h: Delete file.
14102 * config/xm-mpw.h: Delete file.
14103 * ser-mac.c: Delete file.
14104 * mpw-make.sed: Delete file.
14105 * mpw-config.in: Delete file.
14106 * mac-xdep.c: Delete file.
14107 * mac-gdb.r: Delete file.
14108 * mac-defs.h: Delete file.
14109 * mac-nat.c: Delete file.
14110 * config/powerpc/macos.mh: Delete file.
14111 * config/powerpc/macos.mt: Delete file.
14112 * config/powerpc/nm-macos.h: Delete file.
14113 * config/powerpc/tm-macos.h: Delete file.
14114 * source.c (openp, open_source_file): Remove obsolete code.
14115 * top.c (gdb_readline): Ditto.
14116 * utils.c (query): Ditto.
14117 * event-top.c (display_gdb_prompt): Ditto.
14118 * Makefile.in (ser-mac.o): Delete obsolete target.
14119 * NEWS: Update.
14120
d7449b42
AC
141212002-01-04 Andrew Cagney <ac131313@redhat.com>
14122
14123 * defs.h (BIG_ENDIAN): Delete macro definition.
14124 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
14125 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
14126 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
14127 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
14128 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
14129 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
14130 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
14131 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
14132 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
14133 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
14134 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
14135 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
14136 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
14137 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
14138 * gdbarch.c: Re-generate.
14139
356374e8
DJ
141402002-01-04 Daniel Jacobowitz <drow@mvista.com>
14141
14142 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
14143 for core files.
14144
a2b8f8f8
JT
141452002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
14146
14147 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
14148
12466af9
AC
141492002-01-04 Andrew Cagney <ac131313@redhat.com>
14150
14151 * value.h (value_ptr): Delete typedef.
14152
3549ab40
JT
141532002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
14154
14155 * i386nbsd-nat.c: Update copyright years.
14156 Include i386-tdep.h.
14157
fedbd091
EZ
141582002-01-04 Elena Zannoni <ezannoni@redhat.com>
14159
14160 * stabsread.c: Update copyright years.
14161
14162 From Debashis Mahata <debashis.mahata@wipro.com>:
14163 (read_struct_fields): Deal with Sun C compiler erroneous stab
14164 output for structs and unions.
fec8b34f 14165 Fix PR gdb/269.
fedbd091 14166
eb43544b
DJ
141672002-01-04 Daniel Jacobowitz <drow@mvista.com>
14168
14169 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
14170 prototype.
14171
1514d34e
DJ
141722002-01-04 Daniel Jacobowitz <drow@mvista.com>
14173
14174 * cp-abi.c: Fix whitespace.
14175 (baseclass_offset): New wrapper function.
14176 * cp-abi.h (baseclass_offset): Add prototype.
14177 (struct cp_abi_ops): Add baseclass_offset pointer.
14178
14179 * valops.c (vb_match): Move to...
14180 * gnu-v2-abi.c (vb_match): here.
14181 * valops.c (baseclass_offset): Move to...
14182 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
14183
14184 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
14185
14186 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
14187 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
14188 * hpacc-abi.c (init_hpacc_ops): Likewise.
14189
7f8c9282
DJ
141902002-01-04 Daniel Jacobowitz <drow@mvista.com>
14191
14192 * valops.c (find_overload_match): Accept obj as a
14193 reference parameter. Update it before returning.
14194 * value.h (find_overload_match): Update prototype.
14195 * eval.c (evaluate_subexp_standard): Pass object to
14196 find_overload_match by reference.
14197
f23631e4
AC
141982002-01-03 Andrew Cagney <ac131313@redhat.com>
14199
14200 * valarith.c: Replace value_ptr with struct value pointer. Remove
14201 register attribute from value declarations.
14202 * valops.c: Ditto.
14203 * value.h: Ditto.
14204 * scm-lang.c (scm_lookup_name): Ditto.
14205
79e10fab 142062002-01-03 Michael Snyder <msnyder@redhat.com>
abf22e64 14207
79e10fab
AC
14208 Abstract the functionality of iterating over mapped memory
14209 regions into a general purpose iterator function.
abf22e64 14210 * procfs.c (iterate_over_mappings): New function, general purpose
79e10fab
AC
14211 iterator for memory sections.
14212 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
14213 (solib_mappings_callback): New function, callback for above.
14214 (info_proc_mappings): Reimpliment using iterate_over_mappings.
14215 (info_mappings_callback): New function, callback for above.
14216
14217 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
14218
c5ad026a
MK
142192002-01-01 Mark Kettenis <kettenis@gnu.org>
14220
d2a7c97a
MK
14221 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
14222 * i386-tdep.c: Include "elf-bfd.h".
14223 (process_note_abi_tag_sections): New function.
14224 (i386_gdbarch_init): Add code to recognize various OS/ABI
14225 combinations.
14226
c5ad026a
MK
14227 * maint.c (_initialize_maint_cmds): Add missing \ in
14228 string-literal.
14229
a1a5b71e 14230For older changes see ChangeLog-2001
c906108c
SS
14231\f
14232Local Variables:
14233mode: change-log
14234left-margin: 8
14235fill-column: 74
14236version-control: never
14237End:
This page took 0.965341 seconds and 4 git commands to generate.