1 2003-02-20 Kevin Buettner <kevinb@redhat.com>
3 * solib.c (reload_shared_libraries): New function.
4 (_initialize_solib): Add callbacks for ``set solib-search-path''
5 and ``set solib-absolute-prefix''.
7 2003-02-20 David Carlton <carlton@math.stanford.edu>
9 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
11 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
12 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
13 * ada-typeprint.c (ada_typedef_print): Ditto.
14 * ax-gdb.c (gen_var_ref): Ditto.
15 * breakpoint.c (print_one_breakpoint): Ditto.
16 * buildsym.c (finish_block): Ditto.
17 * c-valprint.c (c_val_print): Ditto.
18 * expprint.c (print_subexp): Ditto.
19 * findvar.c (locate_var_value): Ditto.
20 * infcmd.c (jump_command): Ditto.
21 * linespec.c (decode_line_2, decode_compound): Ditto.
22 * maint.c (maintenance_translate_address): Ditto.
23 * objc-lang.c (compare_selectors, compare_classes): Ditto.
24 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
26 * p-valprint.c (pascal_val_print): Ditto.
27 * stabsread.c (define_symbol): Ditto.
28 * stack.c (print_frame, frame_info, print_block_frame_locals)
29 (print_frame_arg_vars, return_command): Ditto.
30 * symfile.c (compare_symbols, compare_psymbols): Ditto.
31 * symmisc.c (print_symbol): Ditto.
32 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
33 (compare_search_syms, print_symbol_info, print_msymbol_info)
34 (rbreak_command): Ditto.
35 * tracepoint.c (tracepoints_info): Ditto.
36 * typeprint.c (typedef_print): Ditto.
37 * valops.c (value_of_variable, hand_function_call): Ditto.
38 * cli/cli-cmds.c (edit_command, list_command): Ditto.
39 * ada-typeprint.c: Update Copyright.
40 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
41 * tracepoint.c, cli/cli-cmds.c: Ditto.
43 2003-02-20 Kevin Buettner <kevinb@redhat.com>
45 * frame.c (generic_unwind_get_saved_register): Make non-static.
46 * frame.h (generic_unwind_get_saved_register): Declare.
47 * mips-tdep.c (read_next_frame_reg): Fetch register from
48 current regcache when frame is NULL.
49 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
51 (mips_get_saved_register): Call generic_unwind_get_saved_register()
52 instead of frame_register_unwind().
54 2003-02-20 Andrew Cagney <ac131313@redhat.com>
56 * remote-sim.c (gdbsim_insert_breakpoint)
57 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
60 2003-02-20 Andrew Cagney <ac131313@redhat.com>
62 * remote.c (_initialize_remote): Add commands "set/show remote
63 hardware-watchpoint-limit" and "set/show remote
64 hardware-breakpoint-limit".
65 (remote_hw_watchpoint_limit): Initialize to -1.
66 (remote_hw_breakpoint_limit): Ditto.
67 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
69 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
71 * coff-pe-read.c: New file - support reading of minimal symbols from a
72 portable executable using the export table.
73 * coff-pe-read.h: New file.
74 * coffread.c: Include coff-pe-read.h.
75 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
76 debugging symbols found.
77 * Makefile.in (SFILES): Add coff-pe-read.o.
78 (coff_pe_read_h): Define.
79 (COMMON_OBS): Add coff-pe-read.o.
80 (coffread.o): Add coff_pe_read_h dependency.
81 (coff-pe-read.o): New target.
83 2003-02-19 David Carlton <carlton@math.stanford.edu>
85 * Makefile.in (SFILES): Add block.c.
87 (COMMON_OBS): Add block.o.
89 (x86-64-tdep.o): Add $(block_h).
90 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
91 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
92 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
93 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
94 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
95 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
96 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
97 * value.h: Add opaque declaration for struct block.
98 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
100 * x86-64-tdep.c: #include "block.h"
101 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
102 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
103 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
104 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
105 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
106 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
107 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
108 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
109 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
110 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
111 * symtab.c (block_function): Ditto.
112 (contained_in): Ditto.
113 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
114 block.h. Add opaque declaration for struct block.
115 * symtab.h: Move block_function and contained_in declarations to
116 block.h. Add opaque declarations for struct block, struct
118 (struct block): Move to block.h.
119 (struct blockvector): Ditto.
120 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
121 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
122 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
123 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
124 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
129 2003-02-19 Theodore A. Roth <troth@openavr.org>
131 * avr-tdep.c (avr_extract_return_value): Remove function.
132 (avr_store_return_value): Remove function.
133 (avr_extract_struct_value_address): Remove function.
134 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
136 2003-02-19 Andrew Cagney <ac131313@redhat.com>
138 * rs6000-tdep.c: Include "gdb_assert.h".
139 (registers_e500): Add "acc" and "spefscr".
140 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
141 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
142 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
144 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
146 2003-02-18 Keith Seitz <keiths@redhat.com>
148 * Makefile.in: Add gdbtk-interps.c.
150 2003-02-18 Kevin Buettner <kevinb@redhat.com>
152 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
153 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
155 2003-02-18 Andrew Cagney <cagney@redhat.com>
157 * symtab.h (struct objfile): Add opaque declaration.
159 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
161 From Jim Ingham <jingham@apple.com>:
162 * dbxread.c (process_one_symbol): Use last_function_start rather
163 than function_start_offset to find the real beginning of the
164 current function. The latter is just the text section offset on
165 some systems, the former is always the real function start.
167 2003-02-17 Andrew Cagney <cagney@redhat.com>
169 * configure.in: Revert ${target} != ${host}.
171 2003-02-17 Andrew Cagney <ac131313@redhat.com>
173 * configure.in (Makefile): Use the test ${target} != ${host},
174 instead of the absence of the "nm.h" file, to determine of the
175 configuration non-native.
176 * configure: Regenerate.
178 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
180 From Brian Ford <ford@vss.fsi.com>
182 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
183 conditionalize tui_active test.
184 (lookup_cmd_1): Ditto.
186 2003-02-14 Mark Kettenis <kettenis@gnu.org>
188 * configure.in: Add check for _etext.
189 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
191 * config.in, configure: regenerated.
193 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
195 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
197 2003-02-14 Andrew Cagney <ac131313@redhat.com>
199 * main.c (tui_version): Delete variable.
200 (captured_main): When --tui, set interpreter_p to "tui" instead of
201 enabling tui_version.
202 * printcmd.c (display_command) [TUI]: Test tui_active instead of
204 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
205 * cli/cli-cmds.c (disassemble_command): Ditto.
206 * defs.h (tui_version): Delete declaration.
207 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
208 (tui-interp.o): Add rules.
209 (SUBDIR_TUI_OBS): Add "tui-interp.o".
211 2003-02-14 Christopher Faylor <cgf@redhat.com>
213 * win32-nat.cc (register_loaded_dll): Correctly set address range for
216 2003-02-12 Jason Molenda (jmolenda@apple.com)
218 * symmisc.c (print_objfile_statistics): Include information about
219 the number of psymtabs and symtabs in each object file.
221 2003-02-13 Keith R Seitz <keiths@redhat.com>
223 * main.h (struct captured_main_args): Add interpreter_p.
224 * main.c (captured_main): Initialize interpreter_p from context.
225 * gdb.c (main): Set interpreter_p argument.
226 * Makefile.in (gdb.o): Add dependency for interps.h.
228 2003-02-12 Andrew Cagney <ac131313@redhat.com>
230 * event-top.c (cli_command_loop): Delete declaration.
231 (_initialize_event_loop): Delete function setting event_loop_hook.
232 * event-top.h (cli_command_loop): Declare. Update copyright.
233 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
234 * interps.c (current_interp_command_loop): When event_loop_p, call
237 2003-02-12 Andrew Cagney <ac131313@redhat.com>
239 * interps.h (interp_command_loop_ftype): Change return type to
242 2003-02-12 Michal Ludvig <mludvig@suse.cz>
244 * x86-64-tdep.c (x86_64_extract_return_value)
245 (x86_64_store_return_value): Use regcache instead of regbuf.
246 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
247 * x86-64-linux-nat.c (fill_gregset): Use regcache.
249 2003-02-11 Andrew Cagney <ac131313@redhat.com>
251 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
252 * aclocal.m4: Regenerate.
253 * configure: Regenerate.
255 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
258 2003-02-10 Michal Ludvig <mludvig@suse.cz>
260 * dwarf2cfi.c: Reindented.
262 2003-02-09 Andrew Cagney <ac131313@redhat.com>
264 * interps.c (clear_interpreter_hooks): Convert function definition
267 2003-02-07 David Carlton <carlton@math.stanford.edu>
269 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
271 2003-02-07 Kevin Buettner <kevinb@redhat.com>
273 * gdbtypes.h (struct main_type): Move ``length'' field from here...
274 (struct type): ...to here.
275 (TYPE_LENGTH): Adjust to reflect different location of ``length''
277 * gdbtypes.c (make_qualified_type): Set length on newly created type.
278 (replace_type): Set length on all type variants for a given type.
280 2003-02-07 Andrew Cagney <ac131313@redhat.com>
282 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
284 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
286 2003-02-06 Andrew Cagney <ac131313@redhat.com>
288 * Makefile.in (symm-nat.o): Update dependencies.
289 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
290 (lynx-nat.o, ia64-linux-nat.): Ditto.
291 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
292 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
293 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
295 * Makefile.in (inflow_h): Define.
296 (procfs.o, inflow.o, procfs.o): Update dependencies.
297 * inftarg.c (child_stop): Delete extern declaration of
298 inferior_process_group. Include "inflow.h".
299 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
300 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
301 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
302 (our_process_group, inferior_process_group): Extern declarations.
304 * procfs.c: Include "gdb_assert.h".
306 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
307 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
308 * jv-typeprint.c (java_type_print_base): Ditto.
309 * typeprint.c (typedef_print): Eliminate STREQ.
310 * cli/cli-script.c (define_command, define_command): Ditto.
311 * main.c (captured_main): Ditto.
312 * values.c (lookup_internalvar): Ditto.
313 * utils.c (safe_strerror, parse_escape): Eliminate assignment
314 within `if' conditional.
315 * linespec.c (decode_line_2): Ditto.
316 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
317 (bfd_openw_with_cleanup): Ditto.
319 2003-02-07 Mark Kettenis <kettenis@gnu.org>
321 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
322 legacy_extract_return_value and store_return_value to
325 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
327 * win32-nat.c (get_relocated_section_addrs): New function. Find
328 section load addresses for symbol handling in relocated DLLs.
329 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
331 2003-02-05 Fred Fish <fnf@intrinsity.com>
333 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
335 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
337 (angel_RDI_info): Ditto.
338 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
340 (threads_continue_all_with_signals): Ditto.
342 2003-02-05 Jim Ingham <jingham@apple.com>
343 Keith Seitz <keiths@redhat.com>
344 Elena Zannoni <ezannoni@redhat.com>
345 Andrew Cagney <ac131313@redhat.com>
347 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
348 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
349 (SUBDIR_MI_OBS): Add "mi-interp.o".
350 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
351 (SFILES): Add "interps.c".
352 (COMMON_OBS): Add "interps.o".
353 (interps_h, mi_main_h): Define.
354 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
355 (mi-main.o, main.o, event-top.o): Update dependencies.
356 * cli/cli-interp.c: New file.
357 * interps.h, interps.c: New files.
358 * top.c: (gdb_init): Don't install the default interpreter, handed
360 * main.c: Include "interps.h".
361 (interpreter_p): Note that it should malloc'ed.
362 (captured_command_loop): Call current_interp_command_loop.
363 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
364 xfree and xstrdup when updating interpreter_p. Install the
365 default interpreter. Add hack to stop mi1's copyright notice
367 * event-top.h (gdb_setup_readline): Declare.
368 (gdb_disable_readline): Declare.
369 * event-top.c: Include "interps.h".
370 (display_gdb_prompt): Call current_interp_display_prompt_p.
371 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
372 gdb_stdlog, and gdb_stdtarg.
373 (_initialize_event_loop): Don't call gdb_setup_readline.
374 * cli-out.c (cli_out_set_stream): New function.
375 * cli-out.h (cli_out_set_stream): Declare.
377 2003-02-06 Mark Kettenis <kettenis@gnu.org>
379 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
380 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
381 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
382 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
383 config/i386/i386v42mp.mt: Removed.
385 2003-02-05 Mark Kettenis <kettenis@gnu.org>
387 * configure.tgt (*-*-solaris*): Set gdb_osabi to
390 2003-02-05 Michael Chastain <mec@shout.net>
392 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
393 2.12.1 and earlier versions.
395 2003-02-05 Andrew Cagney <ac131313@redhat.com>
397 Remove orphaned hosts, targets and files.
398 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
399 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
400 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
401 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
402 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
403 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
404 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
405 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
406 * config/sparc/tm-sp64sim.h: Delete.
407 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
409 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
410 mips*-dec-mach3* targets.
412 2003-02-04 Michael Chastain <mec@shout.net>
414 * NEWS: Fix typo: sepcifying -> specifying.
416 2003-02-04 Michael Chastain <mec@shout.net>
418 * dwarfread.c: Add documentation on the state of dwarf-1,
419 looking towards obsoletion.
421 2003-02-03 Michael Chastain <mec@shout.net>
423 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
424 gdb/testsuite/gdb.c++/pr-1023.exp.
426 2003-02-04 Andrew Cagney <ac131313@redhat.com>
428 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
429 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
431 * utils.c (init_page_info): Delete reference to MPW in comments.
432 * main.c (captured_main): Delete #ifdef MPW.
434 2003-02-04 Andrew Cagney <ac131313@redhat.com>
436 * NEWS: Note that the m32r-*-elf* is obsolete.
437 * monitor.c (monitor_expect): Obsolete reference to m32r.
438 * configure.tgt: Mark m32r-*-elf* as obsolete.
439 * MAINTAINERS: Mark m32k as obsolete.
440 * m32r-rom.c: Obsolete file.
441 * config/m32r/m32r.mt: Obsolete file.
442 * config/m32r/tm-m32r.h: Obsolete file.
443 * m32r-stub.c: Obsolete file.
444 * m32r-tdep.c: Obsolete file.
446 2003-02-04 Andrew Cagney <ac131313@redhat.com>
448 * NEWS: Mention that the z8k-zilog-none is obsolete.
449 * MAINTAINERS: Mark z8k as obsolete.
450 * configure.tgt: Obsolete the z8k-*-coff* target.
451 * config/z8k/z8k.mt: Obsolete file.
452 * config/z8k/tm-z8k.h: Obsolete file.
453 * z8k-tdep.c: Obsolete file.
455 2003-02-04 Andrew Cagney <ac131313@redhat.com>
457 * NEWS: Mention that the mn10200-elf is obsolete.
458 * configure.tgt: Obsolete mn10200-*-* target.
459 * breakpoint.c (update_breakpoints_after_exec): Update comment to
460 mention that the mn10200 is obsolete.
461 * breakpoint.h: Ditto.
462 * MAINTAINERS: Mark the mn10200-elf as obsolete.
463 * config/mn10200/mn10200.mt: Obsolete file.
464 * config/mn10200/tm-mn10200.h: Obsolete file.
465 * mn10200-tdep.c: Obsolete file.
467 2003-02-04 Andrew Cagney <ac131313@redhat.com>
469 * MAINTAINERS: Mark h8500 as obsolete.
470 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
471 * findvar.c (value_from_register): Ditto.
472 * h8500-tdep.c: Mark file as obsolete.
473 * config/h8500/h8500.mt: Ditto.
474 * config/h8500/tm-h8500.h: Ditto.
475 * NEWS: Mention that h8500 is obsolete.
477 2003-02-04 David Carlton <carlton@math.stanford.edu>
479 * objfiles.c (allocate_objfile): Always set name. Add comment at
481 * jv-lang.c (get_dynamics_objfile): Add comment.
483 2003-02-04 David Carlton <carlton@math.stanford.edu>
485 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
486 * printcmd.c (build_address_symbolic): Replace uses of
487 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
488 SYMBOL_NAME, and asm_demangle.
491 2003-02-04 David Carlton <carlton@math.stanford.edu>
493 * linespec.c (decode_compound): Extract code into
495 (lookup_prefix_sym): New function.
497 2003-02-04 David Carlton <carlton@math.stanford.edu>
499 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
500 FLOAT_COERCION_BADNESS.
501 * gdbtypes.c (rank_one_type): Replace all uses of
502 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
504 2003-02-04 Jim Blandy <jimb@redhat.com>
506 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
507 section, let dwarf_macinfo_section point to it, not
510 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
512 Pointed out by Anton Blanchard <anton@samba.org>.
513 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
514 (ppc_linux_at_sigtramp_return_path): Use it.
516 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
518 * defs.h (streq): Add prototype.
519 * utils.c (streq): New function.
521 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
522 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
523 * mdebugread.c (new_symbol): Likewise.
524 * stabsread.c (define_symbol): Likewise.
525 * coffread.c (process_coff_symbol): Likewise.
526 * dwarfread.c (new_symbol): Likewise.
528 * minsyms.c (prim_record_minimal_symbol_and_info): Use
529 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
531 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
532 SYMBOL_INIT_DEMANGLED_NAME.
533 * objfiles.c: Include "hashtab.h".
534 (allocate_objfile): Call htab_set_functions_ex for the
535 demangled_names_hash.
536 (free_objfile): Call htab_delete for the demangled_names_hash.
537 * objfiles.h (struct htab): Add declaration.
538 (struct objfile): Add demangled_names_hash.
539 * symfile.c: Include "hashtab.h".
540 (reread_symbols): Call htab_delete for the demangled_names_hash.
541 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
542 SYMBOL_NAME in the bcache.
543 * symtab.c: Include "hashtab.h". Update comments.
544 (create_demangled_names_hash, symbol_set_names): New functions.
545 (symbol_find_demangled_name): New function, broken out from
546 symbol_init_demangled_names.
547 (symbol_init_demangled_names): Use it.
548 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
549 (SYMBOL_SET_NAMES): New macro.
550 (symbol_set_names): Add prototype.
552 2003-02-03 Jim Blandy <jimb@redhat.com>
554 Use a single, consistent representation for an empty minimal
555 symbol table in an objfile.
556 * objfiles.c (terminate_minimal_symbol_table): New function.
557 (allocate_objfile): Call it.
558 * objfiles.h (terminate_minimal_symbol_table): New declaration.
559 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
561 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
562 objfile has minimal symbols, compare minimal_symbol_count to zero,
563 instead of comparing msymbols with NULL.
564 * objfiles.c (have_minimal_symbols): Same.
565 * solib-sunos.c (solib_add_common_symbols): Call
566 terminate_minimal_symbol_table.
567 * symfile.c (reread_symbols): Same.
569 2003-02-03 Kevin Buettner <kevinb@redhat.com>
571 * s390-tdep.c (s390_address_class_type_flags)
572 (s390_address_class_type_flags_to_name)
573 (s390_address_class_name_to_type_flags): New functions.
574 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
575 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
577 2003-02-03 Michael Snyder <msnyder@redhat.com>
579 * arm-tdep.c: Fix spell-o in comment.
581 2003-02-03 Michal Ludvig <mludvig@suse.cz>
583 * dwarf2cfi.c (pointer_encoding): Added new parameter.
584 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
585 error messages to contain BFD filename.
587 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
589 Fix PR gdb/742 gdb/743 gdb/877
590 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
591 (do_mixed_source_and_assembly): Use
592 make_cleanup_ui_out_tuple_begin_end and
593 make_cleanup_ui_out_tuple_begin_end.
594 (do_mixed_source_and_assembly): Ditto.
595 * thread.c (do_captured_list_thread_ids): Ditto.
596 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
597 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
598 ui_out_tuple_end): Delete prototypes.
599 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
600 ui_out_list_end, ui_out_tuple_end): Delete.
602 From Kevin Buettner <kevinb@redhat.com>:
603 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
604 * ui-out.c (make_cleanup_ui_out_table_begin_end)
605 (do_cleanup_table_end): New functions.
606 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
607 Use cleanups to invoke_ui_out_tuple_end().
608 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
609 * cli/cli-setshow.c (cmd_show_list): Use
610 make_cleanup_ui_out_tuple_begin_end.
612 2003-02-02 Andrew Cagney <ac131313@redhat.com>
614 * frame.c (frame_unwind_register): New function.
615 (frame_unwind_unsigned_register): Use.
616 (frame_unwind_signed_register): Use.
617 (frame_read_register): New function.
618 * frame.h (frame_unwind_register): Declare.
619 (frame_read_register): Declare.
621 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
622 and frame_unwind_register instead of read_memory, write_register
623 and deprecated_write_register_bytes.
625 2003-02-02 Andrew Cagney <ac131313@redhat.com>
627 * frame.h: Note that namelen can be negative.
628 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
631 * NEWS: Mention that the d10v's `regs' command is deprecated.
632 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
633 (d10v_print_registers_info): New function.
634 (show_regs): Call d10v_print_registers_info.
635 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
637 2003-02-02 Mark Kettenis <kettenis@gnu.org>
639 * stack.c (print_frame_info): Restore call to annotate_frame_begin
640 lost in the previous patch.
642 2003-02-01 Andrew Cagney <ac131313@redhat.com>
644 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
645 * stack.c (print_frame_info_base): Output complete FRAME tuple
646 for synthesized frames.
648 2003-02-02 Andrew Cagney <ac131313@redhat.com>
650 * mips-nat.c (zerobuf): Delete.
651 (fetch_inferior_registers): Alloc local zerobuf.
652 (fetch_core_registers): Alloc local zerobuf.
653 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
654 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
655 * thread-db.c (thread_db_store_registers): Ditto.
656 * sh-tdep.c (sh_do_register): Ditto.
657 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
658 * remote-sim.c (gdbsim_store_register): Ditto.
659 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
660 * remote-e7000.c (fetch_regs_from_dump): Ditto.
661 * monitor.c (monitor_supply_register): Ditto.
662 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
663 * mips-nat.c (fetch_inferior_registers): Ditto.
664 * m68klinux-nat.c (fetch_register): Ditto.
665 * lynx-nat.c (fetch_inferior_registers): Ditto.
666 (fetch_inferior_registers): Ditto.
667 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
668 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
669 (hpux_thread_store_registers): Ditto.
670 * hppah-nat.c (fetch_register): Ditto.
671 * hppab-nat.c (fetch_register): Ditto.
672 * hppa-tdep.c (pa_register_look_aside): Ditto.
673 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
674 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
676 2003-02-01 Andrew Cagney <ac131313@redhat.com>
678 * gdbarch.sh: Explictly specify all method levels. When a
679 variable with an empty level, provide a non-multi-arch default.
680 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
681 * gdbarch.h: Re-generate.
682 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
683 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
685 2003-02-01 Andrew Cagney <ac131313@redhat.com>
687 * defs.h (host_pointer_to_address): Delete declaration.
688 (address_to_host_pointer): Delete declaration.
689 * utils.c (host_pointer_to_address): Delete function.
690 (address_to_host_pointer): Delete function.
691 * procfs.c (procfs_address_to_host_pointer): New function.
692 * procfs.c (proc_set_watchpoint): Use.
693 (procfs_can_use_hw_breakpoint): Update comments.
694 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
695 (som_solib_add): Use.
696 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
697 * hppa-tdep.c (unwind_command): Use.
699 2003-02-01 Andrew Cagney <ac131313@redhat.com>
701 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
704 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
705 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
706 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
707 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
708 (define_symbol): Update.
709 * symfile.c (generic_load): Remove references to nindy.
710 * symtab.c: Remove references to nindy.
712 2003-02-01 Andrew Cagney <ac131313@redhat.com>
714 * infcmd.c (print_float_info): Delete code conditional on
716 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
717 * config/m68k/nm-apollo68b.h: Ditto.
718 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
719 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
720 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
722 2003-02-01 Mark Kettenis <kettenis@gnu.org>
724 * config/i386/tm-i386os9k.h: Removed.
726 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
727 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
728 they're identical to i[3456]86-*-sysv* now.
729 * config/i386/i386v32.mh: Removed.
730 * config/i386/xm-i386v32.h: Removed.
731 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
733 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
735 * config/i386/i386dgux.mh: Removed.
736 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
738 * configure.in: Fix typo.
739 * configure: Regenerated.
741 2003-01-31 David Carlton <carlton@math.stanford.edu>
743 * dwarf2read.c (dwarf2_locate_sections): Set
744 dwarf_ranges_section.
746 2003-01-31 Andrew Cagney <ac131313@redhat.com>
748 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
749 * utils.c: Update comments documenting legitimate uses of PTR.
751 * utils.c: Re-indent.
753 * config/djgpp/fnchange.lst: Delete nindy files.
754 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
755 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
756 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
757 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
758 * nindy-share/README, nindy-share/Onindy.c: Delete files.
759 * nindy-tdep.c, nindy-share/Makefile: Delete files.
760 * Makefile.in (init.c): Remove nindy references.
761 (saber_gdb): Delete rule.
762 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
763 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
765 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
766 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
767 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
768 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
770 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
771 * saber.suppress: Delete file.
773 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
775 * dbxread.c (stabs_data): New static variable.
776 (fill_symbuf): Support an in-memory buffer for stabs data.
777 (stabs_seek): New function.
778 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
779 (read_ofile_symtab): Use stabs_seek.
780 (elfstab_build_psymtabs): Take an asection* instead of
781 an offset and size. Relocate the stabs data if necessary.
782 Save the section* for dbx_psymtab_to_symtab.
783 * dwarf2read.c: Add section variables for each debug section.
784 (dwarf2_locate_sections): Fill them in.
785 (dwarf2_read_section): Take an asection* argument.
786 Relocate the section contents if necessary.
787 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
788 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
789 it to dwarf2_read_section.
790 (dwarf2_build_frame_info): Update callers.
791 * elfread.c (elf_symfile_read): Update call to
792 elfstab_build_psymtabs.
793 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
794 (DBX_STAB_SECTION): New macro.
795 * stabsread.h (elfstab_build_psymtabs): Update prototype.
796 * symfile.c (symfile_dummy_outputs): New function.
797 (symfile_relocate_debug_section): New function.
798 * symfile.h (symfile_relocate_debug_section): Add prototype.
800 2003-01-31 Richard Henderson <rth@redhat.com>
802 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
803 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
804 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
805 * alpha-tdep.c (alpha_register_name): Add "unique".
806 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
807 (ALPHA_UNIQUE_REGNUM): New.
808 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
810 2003-01-31 Andrew Cagney <ac131313@redhat.com>
812 * README: Remove reference to Ericsson 1800 monitor.
813 * Makefile.in (remote-es.o): Delete rule.
814 (ALLDEPFILES): Delete remote-es.c.
815 * remote-es.c: Delete file.
816 * config/m68k/es1800.mt: Delete file.
817 * config/djgpp/fnchange.lst: Update.
818 * configure.tgt: Delete m68*-ericsson-* target.
820 2003-01-31 Adam Fedor <fedor@gnu.org>
822 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
823 Remove duplicate/shadowing variable of same name.
825 2003-01-30 Jim Blandy <jimb@redhat.com>
827 * symfile.c (find_separate_debug_file): Assert that the objfile's
828 directory name we compute ends with a slash, and then assume that
829 that's so everywhere we use it.
831 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
833 * valops.c (value_assign): Flush frame cache after stores to memory
836 2003-01-30 Andrew Cagney <ac131313@redhat.com>
838 * Makefile.in (mon960-rom.o): Delete rule.
839 * mon960-rom.c: Delete file.
841 2003-01-30 Andrew Cagney <ac131313@redhat.com>
843 * d10v-tdep.c: Include "frame-unwind.h".
844 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
846 (next_addr, uses_frame): Delete.
847 (struct d10v_unwind_cache): Define.
848 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
849 Use info instead of next_addr and uses_frame globals.
850 (d10v_frame_init_saved_regs): Delete function.
851 (d10v_init_extra_frame_info): Delete function.
852 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
853 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
854 init_frame_pc or frame_saved_pc.
855 (d10v_pop_frame): Delete function.
856 (do_d10v_pop_frame): Delete function.
857 (d10v_frame_chain): Delete function.
858 (d10v_frame_chain_valid): Delete function.
859 (d10v_frame_pc_unwind): New function.
860 (d10v_frame_id_unwind): New function.
861 (saved_regs_unwinder): New function.
862 (d10v_frame_register_unwind): New function.
863 (d10v_frame_pop): New function.
864 (d10v_frame_unwind): New variable.
865 (d10v_frame_p): New function.
866 (d10v_frame_saved_pc): Delete function.
867 * Makefile.in (d10v-tdep.o): Update dependencies.
869 2003-01-30 J. Brobecker <brobecker@gnat.com>
871 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
872 causing some regressions due to a change in the default value
875 2003-01-29 Richard Henderson <rth@redhat.com>
876 Elena Zannoni <ezannoni@redhat.com>
877 Daniel Jacobowitz <drow@mvista.com>
880 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
882 (RANGES_SECTION): New.
883 (dwarf_ranges_buffer): New variable.
884 (struct comp_unit_head): Add member "die".
885 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
886 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
887 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
888 (dwarf2_locate_sections): Likewise.
889 (dwarf2_build_psymtabs): Read .debug_ranges.
890 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
891 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
892 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
893 Look for DW_AT_ranges and return the bounding box.
895 2003-01-29 Brian Ford <ford@vss.fsi.com>
897 * win32-nat.c (cygwin_pid): Removed as unused.
898 (child_attach): Try fall back to Cygwin pid.
900 2003-01-29 Jim Blandy <jimb@redhat.com>
902 * objfiles.h (struct objfile): Doc fix.
904 2003-01-29 Andrew Cagney <ac131313@redhat.com>
906 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
907 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
908 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
909 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
910 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
911 (FRAME_SAVED_PC): Change to a function with predicate.
912 * gdbarch.h, gdbarch.c: Re-generate.
914 2003-01-28 Andrew Cagney <ac131313@redhat.com>
916 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
918 * complaints.c (complain): Delete function.
919 * complaints.h (struct deprecated_complaint): Delete definition.
920 (complain): Delete declaration.
922 2003-01-28 Kevin Buettner <kevinb@redhat.com>
924 * mips-tdep.c (mips_init_extra_frame_info): Return early for
927 2003-01-27 Andrew Cagney <ac131313@redhat.com>
929 * sentinel-frame.h, sentinel-frame.c: New files.
930 * Makefile.in (frame.o): Update dependencies.
931 (SFILES): Add sentinel-frame.c.
932 (sentinel_frame_h): Define.
933 (COMMON_OBS): Add sentinel-frame.o.
934 (sentinel-frame.o): Specify dependencies.
935 * frame.c: Include "sentinel-frame.h".
936 (frame_register_unwind): Rewrite assuming that there is always a a
938 (frame_register, generic_unwind_get_saved_register): Ditto.
939 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
940 (create_sentinel_frame, unwind_to_current_frame): New functions.
941 (get_current_frame): Rewrite using create_sentinel_frame and
942 unwind_to_current_frame. When possible, always create a frame.
943 (create_new_frame): Set next to the sentinel frame.
944 (get_next_frame): Rewrite. Don't go below the level 0 frame.
945 (deprecated_update_frame_pc_hack): Update the next frame's PC and
946 ID cache when necessary.
947 (frame_saved_regs_id_unwind): Use frame_relative_level.
948 (deprecated_generic_get_saved_register): Use frame_relative_level,
949 get_frame_saved_regs, get_frame_pc, get_frame_base and
951 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
954 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
956 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
958 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
960 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
961 (maintenance_set_profile_cmd): Use error () instead of warning ().
963 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
965 * configure.in: Check that -pg works if using --enable-profiling.
966 Check for monstartup and _mcleanup regardless of --enable-profiling.
967 * maint.c: Check for monstartup and _mcleanup before using them.
968 * config.in: Regenerated.
969 * configure: Regenerated.
971 2003-01-24 Nick Clifton <nickc@redhat.com>
975 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
977 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
978 (sh2e_show_regs): New.
979 (sh_gdbarch_init): Handle bfd_mach_sh2e.
980 * config/sh/tm-sh.h: Added sh2e to comments.
982 2003-01-23 Jim Blandy <jimb@redhat.com>
984 * symfile.c (syms_from_objfile): Don't print the "(no debugging
985 symbols found)" message here; we haven't checked for a separate
986 debug info file yet, so we don't know yet.
987 (symbol_file_add_with_addrs_or_offsets): Print it here, after
988 we've looked everywhere. Also, there's no need to print a special
989 message when we're loading the separate debug info file: the one
990 symbol_file_add prints is fine.
992 2003-01-23 Alexander Larsson <alexl@redhat.com>
993 Jim Blandy <jimb@redhat.com>
995 Add support for executables whose debug info has been separated
996 out into a separate file, leaving only a link behind.
997 * objfiles.h (struct objfile): New fields: separate_debug_objfile
998 and separate_debug_objfile_backlink.
999 (put_objfile_before): New declaration.
1000 * symfile.c: #include "filenames.h".
1001 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
1002 debug info in a separate file, read that, too. Save the addrs
1003 argument, so we can use it again to read the separated debug info;
1004 syms_from_objfile modifies the table we pass it.
1005 (reread_symbols): After re-reading an objfile, call
1006 reread_separate_symbols to refresh its separate debug info
1007 objfile, if it has one.
1008 (reread_separate_symbols, find_separate_debug_file,
1009 get_debug_link_info, separate_debug_file_exists): New functions.
1010 (debug_file_directory): New global var.
1011 (_initialize_symfile): Initialize debug_file_directory, and
1012 provide the new `set debug-file-directory' command to let the user
1014 * objfiles.c (free_objfile): If this objfile has its debug info in
1015 a separate objfile, free that one too. If this is itself a
1016 separate debug info objfile, clear our parent's backlink.
1017 (put_objfile_before): New function.
1018 * utils.c (gnu_debuglink_crc32): New function.
1019 * defs.h (gnu_debuglink_crc32): New declaration.
1020 * Makefile.in (symfile.o): Note dependency on "filenames.h".
1021 * configure.in: Handle --with-separate-debug-dir config option.
1022 * acinclude.m4 (AC_DEFINE_DIR): New macro.
1023 * acconfig.h (DEBUGDIR): New macro.
1024 * configure, aclocal.m4, config.in: Regenerated.
1026 2003-01-22 Jim Blandy <jimb@redhat.com>
1028 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
1029 like the old symbol_file_add, but taking new arguments: you can
1030 now pass in either a `struct section_addr_info' list to say where
1031 each section is loaded, or a `struct section_offsets' table. Pass
1032 these new arguments through to syms_from_objfile as appropriate.
1033 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
1034 with the appropriate quiescent values for the new arguments.
1036 * symfile.c: #include "gdb_assert.h".
1037 (syms_from_objfile): Add the ability to pass in a section offset
1038 table directly, as an alternative to the section_addr_info table.
1039 Document arguments better.
1040 (symbol_file_add): Pass extra arguments to syms_from_objfile.
1041 * symfile.h (syms_from_objfile): Update declaration.
1042 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
1044 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
1046 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
1048 Original patch by Tom Tromey <tromey@cygnus.com> and
1049 Jason Molenda <jmolenda@apple.com>.
1050 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
1051 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
1052 * NEWS: Mention profiling.
1053 * configure.in (--enable-gdbtk): Fix typo.
1054 (--enable-profiling): New. Set PROFILE_CFLAGS.
1055 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
1057 (profiling_state): New variable.
1058 (mcleanup_wrapper): New function.
1059 (_initialize_maint): Remove NOTYET, fix call to
1060 add_setshow_boolean_cmd for "maint set profile".
1061 * configure: Regenerated.
1063 2003-01-21 Martin M. Hunt <hunt@redhat.com>
1065 * Makefile.in (install-gdbtk): Install PNG images too.
1067 2003-01-21 Andrew Cagney <ac131313@redhat.com>
1069 * exec.c (text_start): Delete global variable.
1070 (exec_file_attach): Make text_start local to the function.
1071 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
1072 * valops.c (hand_function_call): Delete code that handles
1073 BEFORE_TEXT_END and AFTER_TEXT_END.
1074 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
1075 of CALL_DUMMY_LOCATION.
1076 * gdbarch.c: Regenerate.
1077 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
1078 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
1079 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
1080 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
1081 (text_end): Delete extern declaration.
1083 2003-01-21 Andrew Cagney <ac131313@redhat.com>
1085 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
1086 * blockframe.c (backtrace_below_main): Move to "frame.c".
1087 (frame_chain_valid): Delete check for backtrace_below_main.
1088 (_initialize_blockframe): Delete initialization, move ``set
1089 backtrace-below-main'' command to "frame.c".
1090 (do_flush_frames_sfunc): Delete function.
1091 * frame.c: Include "command.h" and "gdbcmd.h".
1092 (frame_type_from_pc): New function.
1093 (create_new_frame): Use frame_type_from_pc.
1094 (legacy_get_prev_frame): New function.
1095 (get_prev_frame): Rewrite. When an old style frame, call
1096 legacy_get_prev_frame. Otherwize, unwind the PC first.
1097 (_initialize_frame): Add ``set backtrace-below-main'' command.
1098 * Makefile.in (frame.o): Update dependencies.
1100 2003-01-19 Andrew Cagney <ac131313@redhat.com>
1102 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
1103 DEPRECATED_REGISTERS_INFO.
1105 2003-01-19 Andrew Cagney <ac131313@redhat.com>
1107 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
1108 Maintainers'. Update `Various Maintainers'.
1110 2003-01-19 Andrew Cagney <ac131313@redhat.com>
1112 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
1113 * gdbarch.sh (POP_FRAME): Change to function with predicate.
1114 Suppress actual parameters when `-'.
1115 * gdbarch.h, gdbarch.c: Regenerate.
1117 2003-01-19 Andrew Cagney <ac131313@redhat.com>
1119 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
1120 code handling dummy frames.
1122 2003-01-19 Andrew Cagney <ac131313@redhat.com>
1124 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
1125 (struct frame_unwind): Add field pop.
1126 * frame.h (frame_pop): Declare.
1127 * frame.c (frame_saved_regs_pop): New function.
1128 (trad_frame_unwinder): Add frame_saved_regs_pop.
1129 (frame_pop): New function.
1130 * dummy-frame.c (dummy_frame_pop): New function.
1131 (discard_innermost_dummy): New function.
1132 (generic_pop_dummy_frame): Use discard_innermost_dummy.
1133 (dummy_frame_unwind): Add dummy_frame_pop.
1134 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
1135 * valops.c (hand_function_call): Ditto.
1136 * stack.c (return_command): Ditto.
1138 2003-01-18 Andrew Cagney <ac131313@redhat.com>
1140 * cris-tdep.c: Fix function declaration indentation.
1141 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
1142 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
1143 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
1144 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
1145 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
1146 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
1148 2003-01-18 Michael Chastain <mec@shout.net>
1150 * README (Unpacking and Installation -- quick overview):
1151 Warn against ".../gdb-5.3/gdb/configure".
1153 2003-01-18 Andrew Cagney <ac131313@redhat.com>
1155 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
1156 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
1157 (struct frame_unwind): Declare opaque.
1158 (dummy_frame_p): Declare function.
1159 * dummy-frame.c (dummy_frame_id_unwind): Make static.
1160 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
1161 * dummy-frame.c: Include "frame-unwind.h".
1162 (dummy_frame_p): New function.
1163 (dummy_frame_unwind): New variable.
1164 * frame.c: Include "frame-unwind.h".
1165 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
1166 to use the new unwind field.
1167 (set_unwind_by_pc): Delete function.
1168 (create_new_frame, get_prev_frame): Set unwind field using
1169 frame_unwind_find_by_pc.
1170 (trad_frame_unwind, trad_frame_unwinder): New variables.
1171 * frame.h (trad_frame_unwind): Declare variable.
1172 (frame_id_unwind_ftype): Delete declaration.
1173 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
1174 (struct frame_unwind): Declare opaque.
1175 (struct frame_info): Replace the fields id_unwind, pc_unwind and
1176 register_unwind with a single unwind pointer.
1177 * frame-unwind.h, frame-unwind.c: New files.
1178 * Makefile.in (SFILES): Add frame-unwind.c.
1179 (frame_unwind_h): Define.
1180 (COMMON_OBS): Add frame-unwind.o.
1181 (frame-unwind.o): Specify dependencies.
1182 (frame.o, dummy-frame.o): Update dependencies.
1184 2003-01-18 Andrew Cagney <ac131313@redhat.com>
1186 * ada-valprint.c: Eliminate PTR.
1187 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
1188 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
1189 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
1190 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
1191 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
1192 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
1193 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
1195 2003-01-17 Andrew Cagney <ac131313@redhat.com>
1197 * main.c (captured_main): Don't use PTR.
1198 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
1199 * gdbtypes.c (lookup_primitive_typename): Ditto.
1200 (lookup_struct_elt_type): Ditto.
1201 * f-valprint.c (info_common_command): Ditto.
1202 (list_all_visible_commons): Ditto.
1203 * jv-typeprint.c (java_type_print_base): Ditto.
1205 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
1206 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
1207 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
1208 i386-interix-nat.c and i386-interix-tdep.c. Rename
1209 m68klinux-nat.c and m68klinux-tdep.c. Rename
1210 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
1211 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
1212 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
1213 * main.c (captured_main): Use xfree, not free.
1215 2003-01-16 Andrew Cagney <ac131313@redhat.com>
1217 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
1218 ID back using a parameter.
1219 * frame.c (frame_id_unwind): Update call.
1220 (frame_saved_regs_id_unwind): Update.
1221 * dummy-frame.c (dummy_frame_id_unwind): Update function.
1222 * dummy-frame.h (struct frame_id): Add opaque declaration.
1223 (dummy_frame_id_unwind): Update declaration.
1225 2003-01-15 Andrew Cagney <ac131313@redhat.com>
1227 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
1229 2003-01-15 Stephen P. Smith <ischis2@cox.net>
1231 * MAINTAINERS (Stephen P. Smith): Updated email address.
1233 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
1236 * breakpoint.c (until_break_command): Add new argument. Use it to
1237 decide whether to stop only at the current frame or not.
1238 * breakpoint.h (until_break_command): Update prototype.
1239 * infcmd.c (until_command): Add new argument to until_break_command
1241 (advance_command): New function.
1242 (_initialize_infcmd): Update help string for 'until' command.
1243 Add new 'advance' command.
1245 2003-01-14 David Carlton <carlton@math.stanford.edu>
1247 * linespec.c (decode_line_1): Normalize comments.
1249 (locate_first_half): Ditto.
1250 (decode_compound): Ditto.
1251 (symtab_from_filename): Ditto.
1252 (decode_all_digits): Ditto.
1253 (decode_dollar): Ditto.
1254 (find_methods): Ditto.
1255 (find_toplevel_char): Ditto.
1257 2003-01-13 Andrew Cagney <ac131313@redhat.com>
1259 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
1260 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
1261 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
1262 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
1263 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
1264 * language.c, language.h, m32r-tdep.c: Update copyright.
1265 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
1266 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
1267 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
1268 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
1269 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
1270 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
1272 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
1274 * stabsread.h (process_later, resolve_cfront_continuation):
1276 Update copyright years.
1277 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
1278 Update copyright year.
1279 * dbxread.c(struct cont_elem): Obsolete.
1280 (process_later, process_now): Obsolete functions.
1281 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
1282 Update copyright year.
1283 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
1284 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
1285 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
1286 (parse_partial_symbols): Obsolete cfront support.
1288 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
1290 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
1291 read_cfront_baseclasses, read_cfront_member_functions,
1292 resolve_cfront_continuation,read_cfront_static_fields,
1293 copy_cfront_struct_fields): Obsolete functions.
1294 (define_symbol, read_one_struct_field): Obsolete cfront support.
1295 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
1296 Update Copyright year.
1298 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
1300 * stack.c (print_frame_info, print_stack_frame_base_stub,
1301 print_stack_frame_base, show_and_print_stack_frame_stub,
1302 show_and_print_stack_frame, print_only_stack_frame_stub,
1303 print_only_stack_frame): Delete functions.
1304 (print_stack_frame_stub): Call print_frame_info instead of
1305 print_frame_info_base.
1306 (print_frame_info_base): Rename to print_frame_info.
1307 (backtrace_command_1): Call print_frame_info, instead of
1308 print_frame_info_base.
1309 (current_frame_command): Call print_stack_frame, instead of
1310 print_only_stack_frame.
1311 (frame_command): Call print_stack_frame, instead of
1312 show_and_print_stack_frame.
1313 (up_command): Ditto.
1314 (down_command): Ditto.
1315 * frame.h (print_only_stack_frame): Delete prototype.
1316 * infrun.c (normal_stop): Call print_stack_frame, instead of
1317 show_and_print_stack_frame.
1318 * thread.c (info_threads_command): Call print_stack_frame, instead
1319 of print_only_stack_frame.
1321 2003-01-13 Andrew Cagney <ac131313@redhat.com>
1323 * README (Graphical interface to GDB): Update URL. Point at
1326 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
1329 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
1331 * symtab.c (find_pc_sect_line): Don't consider end-of-function
1334 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
1336 * thread-db.c (attach_thread): Prototype.
1337 (struct private_thread_info): Remove lwpid. Add thread handle (th),
1338 thread information (ti), and valid flags (th_valid, ti_valid).
1339 (attach_thread): Move target_pid_to_str call to after the thread
1340 is added to GDB's list. Initialize the cache.
1341 (thread_get_info_callback, thread_db_map_id2thr)
1342 (thread_db_get_info): New functions.
1343 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
1344 (thread_db_store_registers, thread_db_thread_alive)
1345 (thread_db_get_thread_local_address): Use them.
1346 (thread_db_pid_to_str): Likewise. Return "Missing" instead
1347 of calling error() for threads in unknown state.
1349 (clear_lwpid_callback): New function.
1350 (thread_db_resume): Use it to clear the cache.
1352 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
1354 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
1355 (resume_callback): Remove dead code.
1357 2003-01-13 Andrew Cagney <ac131313@redhat.com>
1359 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
1361 * gdbarch.h, gdbarch.c: Regenerate.
1362 * stack.c (frame_info): Only initialize the saved registers when
1363 FRAME_INIT_SAVED_REGS_P.
1364 * frame.c (frame_saved_regs_register_unwind): Assert
1365 FRAME_INIT_SAVED_REGS_P.
1366 (deprecated_generic_get_saved_register): Ditto.
1368 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
1370 * source.c (openp): Squelch warning about "filename".
1372 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
1374 * source.c (openp): If the file does not exist don't necessarily
1377 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
1380 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
1381 (integer_types_same_name_p): New function.
1382 (rank_one_type): Use it.
1383 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
1385 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
1387 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
1389 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
1390 * configure.in: Add --with-sysroot.
1391 * configure: Regenerated.
1392 * main.c (gdb_sysroot): New variable.
1393 (captured_main): Initialize gdb_sysroot.
1394 * defs.h (gdb_sysroot): New extern declaration.
1395 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
1397 2003-01-12 Michael Chastain <mec@shout.net>
1399 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
1401 2003-01-12 Michael Chastain <mec@shout.net>
1403 * top.c (print_gdb_version): Bump copyright year to 2003.
1405 2003-01-12 David Carlton <carlton@bactrian.org>
1407 * linespec.c (symtab_from_filename): Rename variable 's' to
1410 2003-01-12 Andrew Cagney <ac131313@redhat.com>
1412 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
1414 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
1416 2003-01-12 Andrew Cagney <ac131313@redhat.com>
1418 * d10v-tdep.c: Include "gdb_assert.h".
1419 (d10v_store_return_value): Rewrite to match current interface.
1420 (d10v_extract_struct_value_address): Ditto.
1421 (d10v_extract_return_value): Ditto.
1422 (d10v_gdbarch_init): Set store_restore_value,
1423 extract_struct_value_address and extract_return_value.
1425 2003-01-12 J. Brobecker <brobecker@gnat.com>
1427 * hpread.c (set_namestring): New procedure replacing the
1428 SET_NAMESTRING macro.
1429 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
1430 by calls to set_namestring.
1432 2003-01-11 J. Brobecker <brobecker@gnat.com>
1434 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
1435 a compilation warning.
1436 (hpread_process_one_debug_symbol): Likewise.
1438 2003-01-10 David Carlton <carlton@math.stanford.edu>
1440 * linespec.c (decode_line_1): Rename variable 's' to
1442 (decode_all_digits): Rename argument 's' to 'file_symtab'.
1443 (decode_dollar): Ditto.
1444 (decode_variable): Ditto.
1445 (symbol_found): Ditto.
1447 2003-01-09 Michael Chastain <mec@shout.net>
1449 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
1451 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
1453 * win32-nat.c (set_process_privilege): New function.
1454 (child_attach): Call set_process_privilege() to enable the
1455 SE_DEBUG_NAME user privilege if available in process token.
1457 2003-01-10 J. Brobecker <brobecker@gnat.com>
1459 * hpread.c (hpread_process_one_debug_symbol): Fix a small
1460 compilation error in the previous revision.
1462 2003-01-09 David Carlton <carlton@math.stanford.edu>
1464 * linespec.c: Update copyright.
1466 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
1468 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
1470 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
1472 2003-01-09 Andrew Cagney <ac131313@redhat.com>
1474 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
1476 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
1477 (frame_saved_regs_zalloc): Update.
1478 (frame_saved_regs_register_unwind): Update.
1479 (create_new_frame): Update.
1480 (get_prev_frame): Update.
1481 (frame_extra_info_zalloc): Update.
1482 (deprecated_get_frame_saved_regs): Update.
1483 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
1484 * cris-tdep.c: Update comment.
1486 * somsolib.h: Fix function indentation.
1487 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
1488 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
1489 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
1490 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
1491 * somsolib.c, inftarg.c: Remove assignment in if conditional.
1493 * infrun.c (follow_fork): Use ISO C definition.
1494 * expprint.c (print_subexp): Use xfree instead of free.
1495 * charset.c: Include "gdb_string.h" instead of <string.h>.
1496 (register_iconv_charsets): Use ISO C definition.
1497 (host_charset, target_charset): Ditto.
1498 * Makefile.in (charset.o): Update dependencies.
1499 (mi-cmd-env.o): Update dependencies.
1501 2003-01-08 Andrew Cagney <cagney@redhat.com>
1503 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
1506 2003-01-08 Andrew Cagney <ac131313@redhat.com>
1508 * gdb_mbuild.sh: Add --keep option. When specified, keep the
1509 build directories. Save edited gdb output in Mbuild.log. If a
1510 build fails, remove any final GDB executable.
1512 2003-01-08 Andrew Cagney <ac131313@redhat.com>
1514 * gdb_mbuild.sh: Edit the output of `maint print architecture'
1515 replacing hex constants with function names and stripping leading
1516 file name directory prefixes.
1518 2003-01-08 Andrew Cagney <cagney@redhat.com>
1520 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
1523 2003-01-08 David Carlton <carlton@math.stanford.edu>
1525 * linespec.c (decode_line_1): Move code into decode_variable.
1526 (decode_variable): New function.
1528 2003-01-08 Andrew Cagney <ac131313@redhat.com>
1530 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
1532 2003-01-08 Andrew Cagney <cagney@redhat.com>
1534 * cris-tdep.c (cris_frame_init_saved_regs): Use
1535 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
1537 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
1538 (sh64_nofp_frame_init_saved_regs): Ditto.
1539 (sh_fp_frame_init_saved_regs): Ditto.
1540 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
1541 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
1542 * mcore-tdep.c (analyze_dummy_frame): Ditto.
1543 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
1545 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
1547 * minsyms.c (lookup_minimal_symbol): Update comment.
1548 (lookup_minimal_symbol_text): Update comment. Use the hash table.
1549 (lookup_minimal_symbol_solib_trampoline): Likewise.
1551 2003-01-08 Andrew Cagney <cagney@redhat.com>
1553 * d10v-tdep.c (d10v_init_extra_frame_info): Use
1554 frame_relative_level.
1556 * alpha-tdep.c: Use get_frame_extra_info.
1557 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
1558 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
1559 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
1560 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
1562 * alpha-tdep.c: Use get_next_frame.
1563 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
1564 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
1565 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
1566 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
1567 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
1568 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
1569 * xstormy16-tdep.c: Ditto.
1571 2003-01-07 Andrew Cagney <cagney@redhat.com>
1573 * alpha-tdep.c: Use get_frame_base.
1574 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
1575 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
1576 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
1577 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
1578 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
1579 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
1580 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
1581 * config/sparc/tm-sparc.h: Ditto.
1583 2003-01-07 Andrew Cagney <cagney@redhat.com>
1585 * frame.c (deprecated_get_frame_context): New function.
1586 (deprecated_set_frame_context): New function.
1587 * frame.h (deprecated_get_frame_context): Declare.
1588 (deprecated_set_frame_context): Declare.
1589 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
1590 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
1592 2003-01-07 Andrew Cagney <cagney@redhat.com>
1594 * frame.c (deprecated_set_frame_next_hack): New function.
1595 (deprecated_set_frame_prev_hack): New function.
1596 * frame.h (deprecated_set_frame_next_hack): Declare.
1597 (deprecated_set_frame_prev_hack): Declare.
1598 * mcore-tdep.c (analyze_dummy_frame): Use
1599 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
1600 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
1602 2003-01-07 David Carlton <carlton@math.stanford.edu>
1604 * linespec.c (decode_line_1): Move code into decode_dollar.
1605 (decode_dollar): New function.
1607 2003-01-07 Andrew Cagney <cagney@redhat.com>
1609 * arm-tdep.c (arm_init_extra_frame_info): Use
1610 deprecated_update_frame_base_hack.
1611 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
1612 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
1613 (fix_frame_pointer): Ditto.
1614 (mn10300_analyze_prologue): Ditto.
1616 2003-01-07 Andrew Cagney <cagney@redhat.com>
1618 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
1619 extra_info using frame_extra_info_zalloc.
1620 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
1621 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
1622 (sh64_init_extra_frame_info): Ditto.
1623 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
1624 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
1625 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
1626 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
1627 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
1628 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
1629 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
1630 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
1631 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
1632 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
1633 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
1634 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
1636 * mn10300-tdep.c (analyze_dummy_frame): Use
1637 deprecated_set_frame_extra_info_hack.
1638 * mcore-tdep.c (analyze_dummy_frame): Ditto.
1640 2003-01-07 J. Brobecker <brobecker@gnat.com>
1642 * mdebugread.c (parse_symbol): Skip stProc entries which storage
1643 class is not scText. These do not define "real" procedures.
1644 (parse_partial_symbols): Likewise.
1646 2003-01-06 Michael Snyder <msnyder@redhat.com>
1648 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
1650 2003-01-06 Andrew Cagney <ac131313@redhat.com>
1652 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
1653 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
1654 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
1655 deprecated_frame_xmalloc_with_cleanup.
1656 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
1657 deprecated_frame_xmalloc.
1658 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
1659 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
1661 2003-01-06 Andrew Cagney <cagney@redhat.com>
1663 * x86-64-linux-tdep.c: Include "osabi.h".
1664 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
1666 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
1668 2003-01-06 Andrew Cagney <cagney@redhat.com>
1670 * MAINTAINERS (Target Instruction Set Architectures): Update
1671 arm-elf. Can be built with -Werror, has been multiarched.
1673 * value.h (unpack_long): Make buffer parameter constant.
1674 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
1675 * scm-lang.h (scm_parse): Ditto.
1676 * defs.h (extract_typed_address, extract_address): Ditto.
1677 (extract_long_unsigned_integer): Ditto.
1678 * inferior.h (unsigned_pointer_to_address): Ditto.
1679 (signed_pointer_to_address): Ditto.
1680 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
1681 * gdbarch.h, gdbarch.c: Regenerate.
1682 * findvar.c (extract_long_unsigned_integer): Update.
1683 (extract_address): Update.
1684 (extract_typed_address): Update.
1685 (unsigned_pointer_to_address): Update.
1686 * values.c (unpack_long): Update.
1687 (unpack_double): Update.
1688 (unpack_pointer): Update.
1689 (unpack_field_as_long): Update.
1690 * d10v-tdep.c (d10v_pointer_to_address): Update.
1691 * avr-tdep.c (avr_pointer_to_address): Update.
1692 * scm-lang.c (scm_unpack): Update.
1693 * findvar.c (signed_pointer_to_address): Update.
1695 2003-01-06 Michal Ludvig <mludvig@suse.cz>
1697 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
1698 since it is in i386-tdep.c.
1700 2003-01-06 J. Brobecker <brobecker@gnat.com>
1702 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
1703 failure introduced in the previous change.
1705 2003-01-05 Michael Chastain <mec@shout.net>
1707 * README: Remove references to deleted remote-*.c files:
1708 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
1709 remote-nrom.c, remote-os9k.c, remote-udi.c.
1711 2003-01-05 Mark Kettenis <kettenis@gnu.org>
1713 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
1714 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
1715 i386_get_longjmp_target.
1717 2003-01-05 Andrew Cagney <ac131313@redhat.com>
1719 * arm-tdep.c (prologue_cache): Change to a pointer.
1720 (_initialize_arm_tdep): Allocate prologue_cache.
1721 (check_prologue_cache): Update.
1722 (save_prologue_cache): Update.
1723 (arm_gdbarch_init): Update.
1725 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
1727 * stabsread.c (update_method_name_from_physname): Call complaint()
1730 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
1732 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
1733 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
1734 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
1736 * blockframe.c: Include "gdbcmd.h" and "command.h".
1737 (backtrace_below_main): New variable.
1738 (file_frame_chain_valid, func_frame_chain_valid)
1739 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
1740 (generic_func_frame_chain_valid): Remove functions.
1741 (frame_chain_valid, do_flush_frames_sfunc): New functions.
1742 (_initialize_blockframe): New function.
1743 * Makefile.in (blockframe.o): Update dependencies.
1744 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
1745 comment. Call frame_chain_valid ().
1746 * frame.h: Remove old prototypes. Add prototype for
1747 frame_chain_valid and update comments to match.
1748 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
1750 * gdbarch.h: Regenerated.
1751 * gdbarch.c: Regenerated.
1753 * alpha-tdep.c (alpha_gdbarch_init): Don't call
1754 set_gdbarch_frame_chain_valid.
1755 * avr-tdep.c (avr_gdbarch_init): Likewise.
1756 * cris-tdep.c (cris_gdbarch_init): Likewise.
1757 * frv-tdep.c (frv_gdbarch_init): Likewise.
1758 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
1759 * i386-tdep.c (i386_svr4_init_abi): Likewise.
1760 (i386_nw_init_abi): Likewise.
1761 (i386_gdbarch_init): Likewise.
1762 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
1763 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
1764 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
1765 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
1766 * mips-tdep.c (mips_gdbarch_init): Likewise.
1767 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
1768 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
1769 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
1770 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
1771 * s390-tdep.c (s390_gdbarch_init): Likewise.
1772 * sh-tdep.c (sh_gdbarch_init): Likewise.
1773 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
1774 * v850-tdep.c (v850_gdbarch_init): Likewise.
1775 * vax-tdep.c (vax_gdbarch_init): Likewise.
1776 * x86-64-tdep.c (x86_64_init_abi): Likewise.
1778 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
1779 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
1780 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
1781 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
1782 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
1783 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
1784 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
1785 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
1787 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
1789 * Makefile.in (acconfig_h): Remove incorrect macro.
1791 (osabi.o): Update dependencies.
1792 * configure.tgt: Set gdb_osabi based on target triplet.
1793 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
1794 * configure: Regenerated.
1795 * config.in: Regenerated.
1796 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
1797 (GDB_OSABI_DEFAULT): Define if not already defined.
1798 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
1799 (set_osabi_string): New variables.
1800 (gdbarch_register_osabi): Add new OS ABI to
1801 gdb_osabi_available_names.
1802 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
1803 (set_osabi, show_osabi): New functions.
1804 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
1806 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
1808 * arch-utils.c (gdbarch_info_init): Set osabi to
1809 GDB_OSABI_UNINITIALIZED.
1810 * gdbarch.sh: Add osabi to struct gdbarch and to struct
1811 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
1812 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
1813 * gdbarch.c: Regenerated.
1814 * gdbarch.h: Regenerated.
1815 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
1817 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
1818 * osabi.h (enum gdb_osabi): Move to defs.h.
1819 (gdbarch_init_osabi): Update prototype.
1820 * defs.h (enum gdb_osabi): Moved here.
1821 * Makefile.in: Update dependencies.
1823 * alpha-tdep.h: Don't include "osabi.h".
1824 (struct gdbarch_tdep): Remove osabi member.
1825 * alpha-tdep.c: Include "osabi.h".
1826 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
1827 iterate over arches. Update call to gdbarch_init_osabi.
1828 (alpha_dump_tdep): Don't dump osabi.
1829 * alpha-linux-tdep.c: Include "osabi.h".
1830 * alpha-osf1-tdep.c: Include "osabi.h".
1831 * alphafbsd-tdep.c: Include "osabi.h".
1832 * alphanbsd-tdep.c: Include "osabi.h".
1834 * arm-tdep.h: Don't include "osabi.h".
1835 (struct gdbarch_tdep): Remove osabi member.
1836 * arm-tdep.c: Include "osabi.h".
1837 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
1838 iterate over arches. Update call to gdbarch_init_osabi.
1839 (arm_dump_tdep): Don't dump osabi.
1840 * arm-linux-tdep.c: Include "osabi.h".
1841 * armnbsd-tdep.c: Include "osabi.h".
1843 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
1844 Update call to gdbarch_init_osabi.
1846 * i386-tdep.h: Don't include "osabi.h".
1847 (struct gdbarch_tdep): Remove osabi member.
1848 * i386-tdep.c: Include "osabi.h".
1849 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
1850 iterate over arches. Update call to gdbarch_init_osabi.
1851 (i386_dump_tdep): Don't dump osabi.
1852 * i386-linux-tdep.c: Include "osabi.h".
1853 * i386-sol2-tdep.c: Include "osabi.h".
1854 * i386bsd-tdep.c: Include "osabi.h".
1855 * i386gnu-tdep.c: Include "osabi.h".
1856 * i386ly-tdep.c: Include "osabi.h".
1857 * i386nbsd-tdep.c: Include "osabi.h".
1858 * i386obsd-tdep.c: Include "osabi.h".
1860 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
1861 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
1862 check osabi when iterating over arches. Update call to
1864 (mips_dump_tdep): Don't dump osabi.
1866 * ns32k-tdep.h: Don't include "osabi.h".
1867 (struct gdbarch_tdep): Remove.
1868 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
1869 gdbarch_lookup_osabi. Don't iterate over arches. Don't
1870 allocate tdep. Update call to gdbarch_init_osabi.
1871 (ns32k_dump_tdep): Remove.
1872 (_initialize_ns32k_tdep): Update call to gdbarch_register.
1873 * ns32knbsd-tdep.c: Include "osabi.h".
1875 * ppc-tdep.h: Don't include "osabi.h".
1876 (struct gdbarch_tdep): Remove osabi member.
1877 * rs6000-tdep.c: Include "osabi.h".
1878 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
1879 osabi when iterating over arches. Update call to
1881 (rs6000_dump_tdep): Don't dump osabi.
1882 * ppc-linux-tdep.c: Include "osabi.h".
1883 * ppcnbsd-tdep.c: Include "osabi.h".
1885 * sh-tdep.h: Don't include "osabi.h".
1886 (struct gdbarch_tdep): Remove osabi member.
1887 * sh-tdep.c: Include "osabi.h".
1888 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
1889 iterate over arches. Update call to gdbarch_init_osabi.
1890 (sh_dump_tdep): Don't dump osabi.
1891 * shnbsd-tdep.c: Include "osabi.h".
1893 * sparc-tdep.c: Include "osabi.h".
1894 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
1895 iterate over arches. Update call to gdbarch_init_osabi.
1896 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
1899 * vax-tdep.h: Don't include "osabi.h".
1900 (struct gdbarch_tdep): Remove.
1901 * vax-tdep.c: Include "osabi.h".
1902 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
1903 iterate over arches. Don't allocate tdep. Update call
1904 to gdbarch_init_osabi.
1905 (vax_dump_tdep): Remove.
1906 (_initialize_vax_tdep): Update call to gdbarch_register.
1908 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
1910 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
1912 (breakpoint_re_set_one): Don't fetch the value for a disabled
1915 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
1917 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
1918 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
1919 (COERCE_FLOAT_TO_DOUBLE): Remove.
1920 * gdbarch.c: Regenerate.
1921 * gdbarch.h: Regenerate.
1922 * Makefile.in: Remove value_h from gdbarch_h.
1923 * valops.c (coerce_float_to_double): New variable.
1924 (default_coerce_float_to_double): Remove.
1925 (standard_coerce_float_to_double): Remove.
1926 (value_arg_coerce): Use coerce_float_to_double.
1927 (_initialize_valops): Add "set coerce-float-to-double".
1928 * value.h (default_coerce_float_to_double): Remove prototype.
1929 (standard_coerce_float_to_double): Remove prototype.
1931 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
1933 * mdebugread.c (parse_symbol): Likewise.
1934 * stabsread.c (define_symbol): Mark all functions as prototyped.
1936 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
1937 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
1938 set_gdbarch_coerce_float_to_double.
1939 * arm-tdep.c (arm_gdbarch_init): Likewise.
1940 * frv-tdep.c (frv_gdbarch_init): Likewise.
1941 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
1942 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
1943 * mips-tdep.c (mips_gdbarch_init): Likewise.
1944 (mips_coerce_float_to_double): Remove.
1945 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
1946 (rs6000_coerce_float_to_double): Remove.
1947 * s390-tdep.c (s390_gdbarch_init): Likewise.
1948 * sh-tdep.c (sh_gdbarch_init): Likewise.
1949 (sh_coerce_float_to_double): Remove.
1950 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
1951 (sparc_coerce_float_to_double): Remove.
1952 * v850-tdep.c (v850_gdbarch_init): Likewise.
1953 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
1954 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
1955 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
1956 (hppa_coerce_float_to_double): Remove prototype.
1957 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
1959 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
1961 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
1963 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
1965 Suggested by Stewart Brown <sb24@avaya.com>:
1966 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
1967 in recursive calls. Handle TYPE_CODE_TYPEDEF.
1968 (c_type_print_varspec_suffix): Likewise.
1970 2003-01-04 Mark Kettenis <kettenis@gnu.org>
1972 * configure.in: Don't set and AC_SUBST SUBDIRS.
1973 * configure: Regenerated.
1975 * configure.in: Remove code dealing with shared libraries.
1976 * Makefile.in: Remove HLDFLAGS and HLDENV.
1977 * configure: Regenerated.
1979 2003-01-04 Andrew Cagney <ac131313@redhat.com>
1981 * frame.c (deprecated_frame_xmalloc): New function.
1982 (deprecated_set_frame_saved_regs_hack): New function.
1983 (deprecated_set_frame_extra_info_hack): New function.
1984 * frame.h (deprecated_frame_xmalloc): Declare.
1985 (deprecated_set_frame_saved_regs_hack): Declare.
1986 (deprecated_set_frame_extra_info_hack): Declare.
1988 2003-01-04 Mark Kettenis <kettenis@gnu.org>
1990 * configure.in: Move code that provides the --enable-gdbtk option
1991 right after the code that handles the --enable-tui option, and
1993 * configure: Regenerated.
1995 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
1996 AC_CHECK_FUNCS and remove the old check for pread64.
1997 * acinclude.m4 (AC_GNU_SOURCE): New macro.
1998 * acconfig.h (_GNU_SOURCE): Add.
1999 (HAVE_PREAD64): Remove.
2000 * configure, aclocal.m4, config.in: Regenerated.
2002 2003-01-03 Andrew Cagney <ac131313@redhat.com>
2004 * alpha-tdep.c: Use get_frame_saved_regs.
2005 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
2006 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
2007 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
2008 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
2009 * vax-tdep.c, xstormy16-tdep.c: Ditto.
2011 2003-01-03 Mark Kettenis <kettenis@gnu.org>
2013 * configure.in: Remove all use of the SUBDIRS variable; add
2014 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
2015 code providing the --enable-multi-ice option, and move it right in
2016 front of the code that checks whether gdbserver is supported.
2018 * configure: Regenerated.
2019 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
2022 2003-01-03 Andrew Cagney <cagney@redhat.com>
2024 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
2025 * avr-tdep.c, cris-tdep.c: Ditto.
2026 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
2027 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
2029 2003-01-03 Mark Kettenis <kettenis@gnu.org>
2031 * configure.in: Remove --enable-netrom option.
2032 * configure: Regenerated.
2034 2003-01-03 Mark Kettenis <kettenis@gnu.org>
2036 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
2037 declaration for `struct re_pattern_buffer' instead.
2038 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
2040 2003-01-03 J. Brobecker <brobecker@gnat.com>
2042 * mdebugread.c (parse_symbol): Count until the stEnd matching
2045 2003-01-02 Mark Kettenis <kettenis@gnu.org>
2047 * configure.in: Remove --with-cpu option.
2048 subscripts. Remove evil changequotes here.
2049 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
2050 * config.in, configure: Regenerated.
2052 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
2053 * configure.in: Cleanup section that sources GDB and BFD configure
2054 subscripts. Remove evil changequotes here.
2055 * config.in, configure: Regenerated.
2057 2003-01-02 Andrew Cagney <ac131313@redhat.com>
2059 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
2060 frame accessor methods.
2061 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
2062 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
2063 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
2064 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
2065 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
2066 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
2067 * z8k-tdep.c: Ditto.
2069 2003-01-02 Mark Kettenis <kettenis@gnu.org>
2071 * configure.in: Remove UI_OUT configuration code.
2072 * ada-lang.c: Update assuming UI_OUT is always true.
2073 * Makefile.in (UIOUT_CFLAGS): Remove.
2074 * configure: Regenerated.
2075 * TODO: Remove blurb about elimination of -DUI_OUT.
2077 * configure.in: Move code that provides the --enable-gdbcli,
2078 --enable-gdbmi options right before the code that handles the
2079 --enable-tui option. Polish a bit.
2080 * configure: Regenerated.
2082 * configure.in: Rewrite check for GNU regex and the
2083 --without-included regex option, and move it into the "Checks for
2084 library functions" section. This makes us use the system regex
2085 again by default on systems with version 2 of the GNU C library.
2086 This was apparently broken.
2087 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
2088 * acconfig.h (USE_INCLUDED_REGEX): Remove.
2089 * config.in, configure: Regenerated.
2091 * configure.in: Move code that provides the --enable-tui option
2092 before the "Checks for libraries" section. Polish the code
2093 somewhat and set need_curses to yes if we build the TUI. Rewrite
2094 code that looks for a library providing termcap functionality to
2095 match more closely what's done in the Readline library, and move
2096 it into to the "Checks for libraries" section.
2097 * configure: Regenerated.
2098 * Makefile.in (TERMCAP): Remove variable.
2099 * config/i386/go32.mh (TERMCAP): Remove variable.
2101 2003-01-02 Andrew Cagney <ac131313@redhat.com>
2103 * MAINTAINERS: Mention gdb_mbuild.sh.
2104 * gdb_mbuild.sh: Rewrite.
2106 2003-01-02 Mark Kettenis <kettenis@gnu.org>
2108 * configure.in: Fix typo in last change.
2109 * config.in, configure: Regenerated.
2111 2003-01-02 Andrew Cagney <ac131313@redhat.com>
2113 * valarith.c (value_binop): Delete obsolete code and comments.
2114 * configure.host: Ditto.
2115 * buildsym.h (make_blockvector): Ditto.
2116 * buildsym.c (make_blockvector): Ditto.
2117 * defs.h (enum language): Ditto.
2118 (chill_demangle): Ditto.
2119 * elfread.c (elf_symtab_read): Ditto.
2120 * dwarfread.c (CHILL_PRODUCER): Ditto.
2121 (set_cu_language): Ditto.
2122 (handle_producer): Ditto.
2123 * expprint.c (print_subexp): Ditto.
2124 * gdbtypes.c (chill_varying_type): Ditto.
2125 * gdbtypes.h (builtin_type_chill_bool): Ditto.
2126 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
2127 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
2128 (chill_varying_type): Ditto.
2129 * language.h (_LANG_chill): Ditto.
2130 * language.c (binop_result_type, integral_type): Ditto.
2131 (character_type, string_type, structured_type): Ditto.
2132 (lang_bool_type, binop_type_check): Ditto.
2133 * stabsread.h (os9k_stabs): Ditto.
2134 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
2135 (define_symbol, read_type, read_struct_fields): Ditto.
2136 (read_array_type, read_enum_type, read_huge_number): Ditto.
2137 (read_range_type, start_stabs): Ditto.
2138 * symfile.c (init_filename_language_table): Ditto.
2139 (add_psymbol_with_dem_name_to_list): Ditto.
2140 * symtab.c (symbol_init_language_specific): Ditto.
2141 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
2142 * symtab.h (struct general_symbol_info): Ditto.
2143 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
2144 * typeprint.c (typedef_print): Ditto.
2145 * utils.c (fprintf_symbol_filtered): Ditto.
2146 * valops.c (value_cast, search_struct_field, value_slice): Delete
2148 (varying_to_slice): Delete function.
2149 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
2150 (varying_to_slice): Delete declaration.
2151 * MAINTAINERS: Update.
2153 2003-01-02 Mark Kettenis <kettenis@gnu.org>
2155 * configure.in: Reorganize "Checks for library functions section"
2156 a bit. Remove check for `btowc' and `isascii' functions.
2157 * configure: Regenerated.
2159 * acconfig.h (_MSE_INT_H): Remove.
2160 * configure.in: Create "Checks for header files" section, and move
2161 appropriate tests there. Don't check for objlist.h, wchar.h,
2162 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
2163 misdetection fix. Also add "Checks for types", "Checks for
2164 compiler characteristics" and "Checks for library functions"
2166 * config.in, configure: Regenerated.
2168 * configure.in: Create "Checks for programs" section, and move
2169 appropriate tests there.
2171 2003-01-01 Mark Kettenis <kettenis@gnu.org>
2173 * configure.in: Create "Checks for libraries" section, and move
2174 appropriate tests there. Cleanup check for wctype in libw. Use
2175 AC_SEARCH_LIBS to see whether we need libsocket.
2176 * configure: Regenerated.
2178 For older changes see ChangeLog-2002
2184 version-control: never