* configure.ac (build_warnings): Add -Wno-char-subscripts.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2007-04-11 Steve Ellcey <sje@cup.hp.com>
2
3 * configure.ac (build_warnings): Add -Wno-char-subscripts.
4 * configure: Regenerate.
5 * doc/gdbint.texinfo (warning flags): Add -Wno-char-subscripts.
6
7 2007-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8
9 * libunwind-frame.c (LIBUNWIND_SO): Use major version number for `.so'.
10
11 2007-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
12
13 * gdbtypes.h (TYPE_FLAG_STUB_SUPPORTED, TYPE_STUB_SUPPORTED): New
14 macros.
15 (TYPE_IS_OPAQUE): Empty vs. opaque structures are now
16 distinct on the TYPE_STUB_SUPPORTED debug targets.
17 * dwarf2read.c (read_structure_type): Set TYPE_FLAG_STUB_SUPPORTED.
18
19 2007-04-11 Joel Brobecker <brobecker@adacore.com>
20
21 * sparc-tdep.c (X_RS2): New macro.
22 (sparc_skip_stack_check): New function.
23 (sparc_analyze_prologue): Adjust PC past stack probing
24 sequence if necessary.
25
26 2007-04-10 Andreas Schwab <schwab@suse.de>
27
28 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Decode 64 as CR
29 register.
30
31 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
32
33 * breakpoint.c (gdb_breakpoint_query): Really return an
34 enum gdb_rc.
35 (gdb_breakpoint): Likewise.
36 * thread.c (gdb_list_thread_ids): Likewise.
37 (gdb_thread_select): Likewise.
38 * mi/mi-main.c (mi_cmd_thread_select): Expect an enum gdb_rc.
39 (mi_cmd_thread_list_ids): Remove bogus initialization.
40
41 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
42
43 * Makefile.in (SFILES): Remove hpacc-abi.c.
44 (COMMON_OBS): Remove hpacc-abi.o.
45 (ALLDEPFILES): Remove hpread.c and $(HPREAD_SOURCE).
46 (hpacc-abi.o, hpread.o): Delete rules.
47 * somread.c: Delete extern declarations from hpread.c.
48 (som_symfile_read): Do not call do_pxdb or hpread_build_psymtabs.
49 (som_symfile_finish): Do not call hpread_symfile_finish.
50 (som_symfile_init): Do not call hpread_symfile_init.
51 * config/pa/hppa64.mt (TDEPFILES): Remove hpread.o.
52 * config/pa/hppahpux.mt (TDEPFILES): Likewise.
53 * hpacc-abi.c, hpread.c: Deleted.
54
55 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
56
57 * solib-svr4.c (enable_break): Simplify return value.
58 (svr4_solib_create_inferior_hook): Do not warn if enable_break fails.
59
60 2007-04-10 Andreas Schwab <schwab@suse.de>
61
62 * solib-svr4.h (struct link_map_offsets): Remove l_addr_size,
63 l_ld_size, l_next_size, l_prev_size, l_name_size.
64
65 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Use extract_typed_address
66 to extract addresses from link map.
67 (LM_DYNAMIC_FROM_LINK_MAP): Likewise.
68 (LM_NEXT): Likewise.
69 (LM_NAME): Likewise.
70 (IGNORE_FIRST_LINK_MAP_ENTRY): Likewise.
71 (elf_locate_base): Likewise.
72 (open_symbol_file_object): Likewise.
73 (svr4_fetch_objfile_link_map): Likewise.
74 (SOLIB_EXTRACT_ADDRESS): Remove unused macro.
75 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Test l_ld_offset instead of
76 l_ld_size.
77 (svr4_ilp32_fetch_link_map_offsets): Don't set removed members.
78 (svr4_lp64_fetch_link_map_offsets): Likewise.
79
80 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Don't set
81 removed members. Set l_ld_offset to -1 if not present.
82
83 2007-04-08 Vladimir Prus <vladimir@codesourcery.com>
84
85 Pass stderr of program run with "target remote |"
86 via gdb_stderr.
87 * serial.c (serial_open): Set error_fd to -1.
88 * serial.h (struct serial): New field error_fd.
89 (struct serial_opts): New field avail.
90 * ser-pipe.c (pipe_open): Create another pair
91 of sockets. Pass stderr to gdb.
92 * ser-mingw.c (pipe_windows_open): Pass
93 PEX_STDERR_TO_PIPE to pex_run. Initialize
94 sd->error_fd.
95 (pipe_avail): New.
96 (_initialize_ser_windows): Hook pipe_avail.
97 * ser-base.c (generic_readchar): Check if there's
98 anything in stderr channel and route that to gdb_stderr.
99
100 2007-04-03 Pedro Alves <pedro_alves@portugalmail.pt>
101
102 * dbxread.c (read_ofile_symtab): Move current_objfile
103 clearing to after end_stabs.
104
105 2007-04-01 Andreas Schwab <schwab@suse.de>
106
107 * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Use parameter
108 gdbarch instead of current_gdbarch.
109
110 2007-04-01 Vladimir Prus <vladimir@codesourcery.com>
111
112 * varobj.c (varobj_create): Keep varobj value
113 NULL when evaluating the type.
114
115 2007-03-31 Pedro Alves <pedro_alves@portugalmail.pt>
116
117 * NEWS: Mention new Windows CE support.
118
119 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
120
121 * configure.tgt: Move mips*-*-pe and sh*-*-pe to
122 the obsoletion stanza.
123 * NEWS: Mention deleted targets.
124
125 * config/sh/tm-wince.h: Remove.
126 * config/sh/wince.mt: Remove.
127 * config/mips/tm-wince.h: Remove.
128 * config/mips/wince.mt: Remove.
129
130 * wince.c: Remove.
131 * wince-stub.c: Remove.
132 * wince-stub.h: Remove.
133 * Makefile.in (wince.o): Remove rule.
134 (wince-stub.o): Likewise.
135
136 * mips-tdep.c (mips_next_pc): Make static.
137 * mips-tdep.h (mips_next_pc): Remove declaration.
138 * arm-tdep.c (arm_pc_is_thumb): Make static.
139 (thumb_get_next_pc): Likewise.
140 (arm_get_next_pc): Likewise.
141 * arm-tdep.h (arm_pc_is_thumb_dummy): Remove declaration.
142 (arm_pc_is_thumb): Likewise.
143 (thumb_get_next_pc): Likewise.
144 (arm_get_next_pc): Likewise.
145
146 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
147
148 * MAINTAINERS: Remove d10v entry.
149 * Makefile.in (SFILES): Remove dwarfread.c.
150 (COMMON_OBS): Remove dwarfread.o.
151 (gdb_sim_d10v_h, abug-rom.o, cpu32bug-rom.o, d10v-tdep.o, dwarfread.o)
152 (remote-est.o, rom68k-rom.o): Delete.
153 * NEWS: Mention removal of d10v, target abug, target cpu32bug,
154 target est, target rom68k, and DWARF 1.
155 * configure.tgt: Mark d10v as removed.
156 * dwarf2read.c: Doc update.
157 * elfread.c (struct elfinfo): Remove dboffset, dbsize, lnoffset,
158 and lnsize.
159 (elf_locate_sections): Do not set them.
160 (elf_symfile_read): Do not call dwarf_build_psymtabs.
161 * symfile.h (dwarf_build_psymtabs): Delete prototype.
162 * config/m68k/monitor.mt (TDEPFILES): Prune.
163 * abug-rom.c, cpu32bug-rom.c, d10v-tdep.c, dwarfread.c,
164 remote-est.c, rom68k-rom.c, config/d10v/d10v.mt: Delete.
165
166 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
167
168 * doublest.c (convert_floatformat_to_doublest): Use
169 floatformat_classify.
170 (floatformat_is_nan): Rename to...
171 (floatformat_classify): ...this. Return more information.
172 * doublest.h (enum float_kind): New.
173 (floatformat_is_nan): Replace prototype...
174 (floatformat_classify): ...with this one.
175 * valprint.c (print_floating): Use floatformat_classify. Handle
176 infinity.
177
178 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
179
180 * README: Mention ISO C library requirement.
181
182 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
183
184 * Makefile.in (SFILES): Remove nlmread.c.
185 (COMMON_OBS): Remove nlmread.o.
186 (nlmread.o): Delete rule.
187 * README: Delete reference to remote-st.c.
188 * acinclude.m4 (CY_AC_TCL_LYNX_POSIX): Delete.
189 * defs.h (enum gdb_osabi): Delete GDB_OSABI_NETWARE and
190 GDB_OSABI_LYNXOS.
191 * i386-tdep.c (i386_nw_init_abi, i386_nlm_osabi_sniffer): Delete.
192 (_initialize_i386_tdep): Do not reference them.
193 * nlmread.c: Delete file.
194 * osabi.c (gdb_osabi_names): Remove NetWare and LynxOS.
195 * target.c: Doc update.
196 * thread.c: Delete commented include.
197 * config/alpha/tm-alpha.h: Doc update.
198
199 2007-03-30 Chris Dearman <chris@mips.com>
200
201 * utils.c (string_to_core_addr): Comment typo.
202
203 2007-03-30 Chris Dearman <chris@mips.com>
204
205 * mips-tdep.c: Comment typo.
206
207 2007-03-29 Ulrich Weigand <uweigand@de.ibm.com>
208
209 * config/alpha/nm-osf.h (PTRACE_XFER_TYPE): Remove.
210 * config/mips/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
211 * config/sparc/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
212 * config/powerpc/nm-ppc64-linux.h: Remove file.
213 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Set to nm-linux.h.
214 * inferior.h (PTRACE_ARG3_TYPE): Do not define.
215 (call_ptrace): Change type of third argument to PTRACE_TYPE_ARG3.
216 * infptrace.c (call_ptrace): Likewise.
217 * m68klinux-nat.c (PTRACE_XFER_TYPE): Do not define.
218 (fetch_register): Replace PTRACE_ARG3_TYPE by PTRACE_TYPE_ARG3
219 and PTRACE_XFER_TYPE by PTRACE_TYPE_RET.
220 (store_register): Likewise.
221
222 2007-03-29 Joel Brobecker <brobecker@adacore.com>
223
224 * Makefile.in (varobj.o): Add missing dependency.
225
226 2007-03-29 Michael Snyder <msnyder@access-company.com>
227
228 * MAINTAINERS: Update my email address.
229
230 2007-03-29 Joel Brobecker <brobecker@adacore.com>
231
232 Add support for exception handling with multiple versions of
233 the Ada runtime:
234 * ada-lang.c: Update general comments on how Ada exception catchpoints
235 are implemented.
236 (raise_sym_name, raise_unhandled_sym_name, raise_assert_sym_name)
237 (__gnat_raise_nodefer_with_msg): Delete.
238 (ada_unhandled_exception_name_addr_ftype): New type.
239 (exception_support_info): New type.
240 (ada_unhandled_exception_name_addr): Add forward declaration.
241 (ada_unhandled_exception_name_addr_from_raise): Likewise.
242 (default_exception_support_info): New constant.
243 (exception_support_info_fallback): Likewise.
244 (exception_info): New global variable.
245 (ada_exception_support_info_sniffer): New function.
246 (ada_executable_changed_observer): Likewise.
247 (ada_unhandled_exception_name_addr_from_raise): Renamed from
248 ada_unhandled_exception_name_addr.
249 (ada_unhandled_exception_name_addr): Reimplement to match the
250 latest Ada runtime implementation.
251 (error_breakpoint_runtime_sym_not_found): Delete.
252 (ada_exception_sym_name): Get the exception sym name from
253 exception_info rather than hardcoding it.
254 (ada_exception_sal): Add call to ada_exception_support_info_sniffer.
255 Update error handling.
256 * Makefile.in (ada-lang.o): Add dependency on observer.h.
257
258 2007-03-29 Daniel Jacobowitz <dan@codesourcery.com>
259
260 * Makefile.in (coff_solib_h, coff-solib.o, i386v-nat.o, lynx-nat.o)
261 (remote-st.o, uw-thread.o): Delete.
262 (HFILES_NO_SRCDIR, ALLDEPFILES): Update.
263 * configure.host: Move hppa*-*-hiux*, i[34567]86-ncr-*,
264 i[34567]86-*-dgux*, i[34567]86-*-lynxos*, i[34567]86-*-sco3.2v5*,
265 i[34567]86-*-sco3.2v4*, i[34567]86-*-sco*, i[34567]86-*-sysv4.2*,
266 i[34567]86-*-sysv4*, i[34567]86-*-sysv5*, i[34567]86-*-unixware2*,
267 i[34567]86-*-unixware*, i[34567]86-*-sysv*, i[34567]86-*-isc*, and
268 rs6000-*-lynxos* to an obsoletion stanza.
269 * configure.tgt: Move hppa*-*-hiux*, i[34567]86-ncr-*,
270 i[34567]86-*-lynxos*, m68*-cisco*-*, m68*-tandem-*, m68*-*-os68k*,
271 and rs6000-*-lynxos* to an obsoletion stanza. Do not mention
272 i[34567]86-*-netware*.
273 * NEWS: Mention deleted targets.
274
275 * coff-solib.c, coff-solib.h, i386v-nat.c, lynx-nat.c, remote-st.c,
276 uw-thread.c, config/nm-lynx.h, config/i386/i386sco.mh,
277 config/i386/i386sco4.mh, config/i386/i386sco5.mh, config/i386/i386v.mh,
278 config/i386/i386v4.mh, config/i386/i386v42mp.mh,
279 config/i386/ncr3000.mh, config/i386/ncr3000.mt,
280 config/i386/nm-i386sco.h, config/i386/nm-i386sco4.h,
281 config/i386/nm-i386sco5.h, config/i386/nm-i386v.h,
282 config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h,
283 config/m68k/cisco.mt, config/m68k/os68k.mt, config/m68k/st2000.mt,
284 config/m68k/tm-cisco.h, config/m68k/tm-os68k.h,
285 config/rs6000/rs6000lynx.mh, config/rs6000/rs6000lynx.mt,
286 config/rs6000/tm-rs6000ly.h: Delete files.
287
288 2007-03-29 Daniel Jacobowitz <dan@codesourcery.com>
289
290 * defs.h (deprecated_registers_changed_hook): Delete declaration.
291 * interps.c (clear_interpreter_hooks): Do not clear
292 deprecated_registers_changed_hook.
293 * regcache.c (registers_changed): Do not call it.
294 * top.c (deprecated_registers_changed_hook): Do not define it.
295 * mi/mi-interp.c (mi_command_loop): Do not clear it.
296 * tui/tui-hooks.c (tui_install_hooks): Do not install it.
297 (tui_remove_hooks): Do not remove it.
298 (tui_selected_frame_level_changed_hook): Check for negative level.
299 Use get_selected_frame.
300 (tui_registers_changed_hook): Deleted.
301
302 2007-03-29 Joel Brobecker <brobecker@adacore.com>
303
304 * stabsread.c (add_undefined_type): Add extra parameter.
305 Now handles nameless types separately.
306 (struct nat): New type.
307 (noname_undefs, noname_undefs_allocated, noname_undefs_length):
308 New static variables.
309 (read_type): Update calls to add_undefined_type.
310 (add_undefined_type_noname): New function.
311 (add_undefined_type_1): Renames from add_undefined_type.
312 (cleanup_undefined_types_noname): New function.
313 (cleanup_undefined_types_1): Renames cleanup_undefined_types.
314 (cleanup_undefined_types): New handles nameless types separately.
315 (_initialize_stabsread): Initialize our new static constants.
316
317 2007-03-29 Denis Pilat <denis.pilat@st.com>
318
319 * configure.ac: Test for signal.h.
320 * configure, config.in: Regenerate.
321
322 2007-03-29 Denis Pilat <denis.pilat@st.com>
323
324 * stack.c (print_stack_frame): Always use LOC_AND_ADDRESS in MI output.
325 * infrun.c (normal_stop): Remove MI specific frame printing treatment.
326
327 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
328
329 * arm-wince-tdep.c: New.
330 * config/arm/wince.mt (DEPRECATED_TM_FILE): Use tm-arm.h.
331 (MT_CFLAGS): Delete.
332 (TM_CLIBS): Delete.
333 (TDEPFILES): Add arm-wince-tdep.o, corelow.o, solib.o,
334 solib-legacy.o, solib-svr4.o, and remove wince.o.
335 * configure.tgt (arm*-*-mingw32ce*): Add.
336 * signals/signals.c [HAVE_SIGNAL_H]: Check.
337 (do_target_signal_to_host): Silence 'not used' warning.
338 * config/arm/tm-wince.h: Remove.
339
340 2007-03-28 Ulrich Weigand <uweigand@de.ibm.com>
341
342 * arch-utils.c (legacy_pc_in_sigtramp): Remove.
343 * arch-utils.h (legacy_pc_in_sigtramp): Remove.
344
345 * config/ia64/linux.mt (DEPRECATED_TM_FILE): Remove.
346 * config/ia64/tm-linux.h: Remove file.
347 * ia64-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp callback.
348 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Use it instead of
349 legacy_pc_in_sigtramp.
350 (ia64_gdbarch_init): Initialize tdep->pc_in_sigtramp.
351 * ia64-linux-tdep.c (ia64_linux_pc_in_sigtramp): Make static.
352 Remove func_name argument.
353 (ia64_linux_init_abi): Install it as tdep->pc_in_sigtramp.
354
355 * infrun.c (HAVE_STEPPABLE_WATCHPOINT): Do not redefine.
356 * target.c (update_current_target): Add to_have_steppable_watchpoint.
357 * target.h (struct target_ops): Add to_have_steppable_watchpoint.
358 (HAVE_STEPPABLE_WATCHPOINT): Define.
359
360 * config/ia64/linux.mh (NATDEPFILES): Remove core-aout.o.
361 * config/ia64/nm-linux.h (KERNEL_U_ADDR, U_REGS_OFFSET,
362 CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER,
363 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_STEPPABLE_WATCHPOINT,
364 STOPPED_BY_WATCHPOINT, target_stopped_data_address,
365 target_insert_watchpoint, target_remove_watchpoint): Remove.
366 (FETCH_INFERIOR_REGISTERS): Define.
367 * ia64-linux-nat.c (ia64_register_addr): Make static.
368 (ia64_cannot_fetch_register, ia64_cannot_store_register): Likewise.
369 (ia64_linux_insert_watchpoint): Make static. Remove ptid_p argument.
370 (ia64_linux_remove_watchpoint): Likewise. Add type argument.
371 (ia64_linux_stopped_data_address): Make static. Add target_ops.
372 (ia64_linux_stopped_by_watchpoint): Make static.
373 (ia64_linux_can_use_hw_breakpoint): New function.
374 (ia64_linux_fetch_register, ia64_linux_fetch_registers): Likewise.
375 (ia64_linux_store_register, ia64_linux_store_registers): Likewise.
376 (_initialize_ia64_linux_nat): Install register and watchpoint ops.
377
378 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
379
380 * linespec.c: Include language.h.
381 (find_methods): Add language parameter. Call
382 lookup_symbol_in_language. Pass language down.
383 (add_matching_methods): Likewise. Call
384 lookup_symbol_in_language.
385 (add_constructors): Likewise.
386 (find_method): Pass sym_class to collect_methods.
387 (collect_methods): Add sym_class parameter. Pass language
388 down.
389 * symtab.c (lookup_symbol): Rename to ...
390 (lookup_symbol_in_language): ... this. Add language
391 parameter. Use passed language instead of current_language.
392 (lookup_symbol): New as wrapper around
393 lookup_symbol_in_language.
394 (lookup_symbol_aux): Add language parameter. Use passed
395 language instead of current_language.
396 (search_symbols): Indent.
397 * symtab.h (enum language): Forward declare.
398 (lookup_symbol_in_language): Declare.
399 (lookup_symbol): Update description.
400 * ada-lang.h (lookup_symbol_in_language): Remove declaration.
401 * ada-lang.c (restore_language): Remove.
402 (lookup_symbol_in_language): Remove.
403
404 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
405
406 * breakpoint.c (bpstat_num): Add int *num parameter.
407 * breakpoint.h (bpstat_num): Likewise.
408 * infcmd.c (continue_command): Adjust to new bpstat_num
409 interface.
410 (program_info): Likewise.
411
412 2007-03-27 Ulrich Weigand <uweigand@de.ibm.com>
413
414 * config/sh/tm-sh.h: Remove file.
415 * config/sh/embed.mt (DEPRECATED_TM_FILE): Remove.
416 * config/sh/linux.mt (DEPRECATED_TM_FILE): Remove.
417 * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Remove.
418 * config/sh/tm-wince.h: Do not include "sh/tm-sh.h".
419
420 2007-03-27 Ulrich Weigand <uweigand@de.ibm.com>
421
422 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT,
423 DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Remove.
424 * remote.c: Remove code under #ifdef DEPRECATED_REMOTE_BREAKPOINT,
425 DEPRECATED_BIG_REMOTE_BREAKPOINT, DEPRECATED_LITTLE_REMOTE_BREAKPOINT.
426 * sh-tdep.c (sh_breakpoint_from_pc): Return remote breakpoint
427 sequence if target_shortname is "remote".
428
429 2007-03-27 Anton Blanchard <anton@samba.org>
430
431 * rs6000-tdep.c (rs6000_frame_cache): Use tdep->lr_frame_offset
432 instead of wordsize when looking for the LR in a stack frame.
433
434 2007-03-27 Andreas Schwab <schwab@suse.de>
435 Daniel Jacobowitz <dan@codesourcery.com>
436
437 * dwarf2-frame.c (dwarf2_frame_eh_frame_regnum): Rename to...
438 (dwarf2_frame_adjust_regnum): ...this. Make static. Add eh_frame_p
439 argument. Update all callers.
440 (struct dwarf2_frame_ops): Replace eh_frame_regnum with adjust_regnum.
441 (dwarf2_frame_set_eh_frame_regnum): Rename to...
442 (dwarf2_frame_set_adjust_regnum): ...this. Update argument type.
443 * dwarf2frame.h (dwarf2_frame_set_eh_frame_regnum): Rename to...
444 (dwarf2_frame_set_adjust_regnum): ...this.
445 (dwarf2_frame_eh_frame_regnum): Delete prototype.
446 * rs6000-tdep.c: Include "dwarf2-frame.h".
447 (rs6000_adjust_frame_regnum): Define.
448 (rs6000_gdbarch_init): Enable use of DWARF CFI frame unwinder.
449 Register rs6000_adjust_frame_regnum.
450
451 * Makefile.in (rs6000-tdep.o): Update dependencies.
452
453 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
454
455 * Makefile.in: Add support for a "pdf" target.
456
457 2007-03-27 Daniel Jacobowitz <dan@codesourcery.com>
458
459 * amd64-tdep.c (amd64_init_frame_cache): New function.
460 (amd64_alloc_frame_cache, amd64_skip_prologue): Use it.
461
462 2007-03-26 Nigel Stephens <nigel@mips.com>
463 Maciej W. Rozycki <macro@mips.com>
464
465 * ui-out.c (ui_out_field_core_addr): Truncate address to
466 TARGET_ADDR_BIT size before printing.
467
468 2007-03-22 Nigel Stephens <nigel@mips.com>
469 Maciej W. Rozycki <macro@mips.com>
470
471 * remote-mips.c (mips_xfer_memory): Update prototype.
472
473 2007-03-22 Joel Brobecker <brobecker@adacore.com>
474
475 * symfile.h: #include "symtab.h"
476
477 2007-03-22 Denis Pilat <denis.pilat@st.com>
478
479 * utils.c (pagination_on_command, pagination_off_command):
480 Remove useless prototypes.
481
482 2007-03-21 Pierre Muller <muller@ics.u-strasbg.fr>
483
484 Fix PR pascal/2232.
485 * p-valprint.c (pascal_object_print_value): Use type_name_no_tag
486 instead of TYPE_NAME for object base class name.
487
488
489 2007-03-19 Kevin Buettner <kevinb@redhat.com>
490
491 * mep-tdep.c (mep_analyze_frame_prologue, mep_frame_this_id):
492 Specify frame type in calls to frame_func_unwind().
493
494 2007-03-13 Daniel Jacobowitz <dan@codesourcery.com>
495
496 * rs6000-tdep.c (rs6000_skip_prologue): Use skip_prologue_using_sal.
497 (rs6000_in_function_epilogue_p): Use extract_unsigned_integer.
498 (refine_prologue_limit): Delete.
499 (skip_prologue): Don't call it. Use extract_unsigned_integer.
500 Assume lim_pc is set. Correct check for incomplete prologues.
501 Do not skip clobbers of the frame pointer.
502 * symtab.c (skip_prologue_using_sal): Fail if there is only one
503 sal.
504
505 2007-03-13 Nathan Froyd <froydnj@codesourcery.com>
506
507 * frame.c (frame_pop): Check to see whether there's a frame to
508 which we can pop first.
509
510 2007-03-13 Nathan Froyd <froydnj@codesourcery.com>
511
512 * MAINTAINERS (Write After Approval): Add myself.
513
514 2007-03-09 Markus Deuling <deuling@de.ibm.com>
515
516 * infrun.c (breakpoints_failed): Remove unnecessary variable.
517 (handle_inferior_event): Remove unnecessary braces.
518 * breakpoint.c (bpstat_what): Remove wrong comment.
519
520 2007-03-09 Ulrich Weigand <uweigand@de.ibm.com>
521
522 * spu-tdep.c (spu_in_function_epilogue_p): New function.
523 (spu_gdbarch_init): Install it.
524
525 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
526
527 * spu-linux-nat.c (spu_xfer_partial): Return -1 for unsupported
528 object types, not 0.
529
530 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
531
532 * spu-tdep.c (spu_frame_align): New function.
533 (spu_gdbarch_init): Install it. Set call dummy location to ON_STACK.
534
535 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
536
537 * spu-tdep.c (spu_unwind_pc): Mask off interrupt enable bit.
538 (spu_software_single_step): Likewise.
539 (spu_read_pc, spu_write_pc): New functions.
540 (spu_gdbarch_init): Install them.
541
542 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
543
544 * cli/cli-dump.c (struct callback_data): load_offset needs to
545 have signed long type.
546
547 2007-03-07 Joel Brobecker <brobecker@adacore.com>
548
549 * mips-tdep.c (mips_insn16_frame_cache, mips_insn32_frame_sniffer):
550 Revert the previous change that had some unexpected side-effects
551 on mips32.
552 (mips_insn16_frame_cache, mips_insn32_frame_cache): Use the proper
553 function to get the address of the calling instruction.
554
555 2007-03-07 Denis Pilat <denis.pilat@st.com>
556
557 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Replace
558 get_selected_frame by deprecated_safe_get_selected_frame.
559
560 2007-03-02 Mark Kettenis <kettenis@gnu.org>
561
562 * shnbsd-tdep.c: Include "regset.h", "gdb_assert.h" and
563 "gdb_string.h". Don't include "nbsd-tdep.h".
564 (SIZEOF_STRUCT_REG): Remove.
565 (SHNBSD_SIZEOF_GREGS): New.
566 (shnbsd_supply_gregset, shnbsd_collect_gregset)
567 (shnbsd_regset_from_core_section): New functions.
568 (fetch_core_registers, fetch_elfcore_registers): Remove functions.
569 (shnbsd_supply_reg, shnbsd_fill_reg): Simply call
570 shnbsd_supply_gregset, shnbsd_collect_gregset.
571 (shnbsd_gregset): New variable.
572 (shnbsd_init_abi): Set regset_from_core_section.
573 (GDB_OSABI_NETBSD_CORE): New define.
574 (shnbsd_core_osabi_sniffer): New function.
575 (_initialize_shnbsd_tdep): Register shnbsd_core_osabi_sniffer.
576 * Makefile.in (shnbsd-tdep.o): Update dependencies.
577 * config/sh/nbsd.mt (TDEPFILES): Add corelow.o, remove
578 nbsd-tdep.o.
579 * config/sh/obsd.mt (TDEPFILES): Remove nbsd-tdep.o.
580
581 2007-02-28 Joel Brobecker <brobecker@adacore.com>
582
583 * gdbtypes.c (replace_type): Fix typo that caused us to not update
584 length of the types referenced by the new type CV ring.
585
586 2007-02-28 Daniel Jacobowitz <dan@codesourcery.com>
587
588 * frame.c (frame_pop, frame_observer_target_changed): Call
589 reinit_frame_cache.
590 (flush_cached_frames): Rename to reinit_frame_cache and delete
591 old implementation.
592 * frame.h (flush_cached_frames): Delete prototype and update comment.
593
594 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Call
595 reinit_frame_cache instead of flush_cached_frames. Do not call
596 select_frame after reinit_frame_cache.
597 * corelow.c (core_open): Likewise.
598 * gdbarch.sh (deprecated_current_gdbarch_select_hack): Likewise.
599 * infrun.c (prepare_to_proceed, context_switch)
600 (handle_inferior_event): Likewise.
601 * linux-fork.c (fork_load_infrun_state): Likewise.
602 * ocd.c (ocd_start_remote): Likewise.
603 * remote-e7000.c (e7000_start_remote): Likewise.
604 * remote-mips.c (device): Likewise.
605 * thread.c (switch_to_thread): Likewise.
606 * tracepoint.c (finish_tfind_command): Likewise.
607 * gdbarch.c: Regenerated.
608
609 2007-02-28 Jerome Guitton <guitton@adacore.com>
610 Joel Brobecker <brobecker@adacore.com>
611
612 * gdbtypes.c (check_typedef): Do not replace stub type if
613 the resolved type is not defined in the same objfile.
614
615 2007-02-28 Daniel Jacobowitz <dan@codesourcery.com>
616
617 * top.c (gdb_readline_wrapper_cleanup): Remove invalid assertion.
618
619 2007-02-28 Joel Brobecker <brobecker@adacore.com>
620
621 * stabsread.c (define_symbol): Create an associated STRUCT_DOMAIN
622 symbol for Ada units when the symbol is defined using 't' rather
623 than 'Tt' as symbol descriptor.
624
625 2007-02-28 Ulrich Weigand <uweigand@de.ibm.com>
626
627 * config/mips/tm-nbsd.h: Delete file.
628 * config/mips/nbsd.mt (DEPRECATED_TM_FILE): Remove.
629 * config/sh/tm-nbsd.h: Delete file.
630 * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Set to tm-sh.h.
631
632 2007-02-28 Joel Brobecker <brobecker@adacore.com>
633
634 * mi/mi-cmd-var.c (varobj_update_one): Remove reference to
635 unused WRONG_PARAM value since it was recently deleted.
636
637 2007-02-28 Vladimir Prus <vladimir@codesourcery.com>
638
639 * varobj.c (varobj_update): Free temporary vectors.
640
641 2007-02-28 Ulrich Weigand <uweigand@de.ibm.com>
642
643 * config/powerpc/linux.mt (DEPRECATED_TM_FILE): Set to tm-ppc-eabi.h.
644 * config/powerpc/tm-linux.h: Delete file.
645 * config/powerpc/tm-ppc-eabi.h: Do not include "rs6000/tm-rs6000.h".
646 (PROCESS_LINENUMBER_HOOK): Do not undefine.
647 (TEXT_SEGMENT_BASE): Do not redefine.
648 * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Move here
649 from config/rs6000/tm-rs6000.h.
650 (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
651 * config/rs6000/tm-rs6000.h (struct frame_info): Remove declaration.
652 (TEXT_SEGMENT_BASE): Remove.
653 (IN_SOLIB_RETURN_TRAMPOLINE): Remove.
654 (rs6000_in_solib_return_trampoline): Remove.
655 (SKIP_TRAMPOLINE_CODE): Remove.
656 (rs6000_skip_trampoline_code): Remove.
657 (CHILD_SPECIAL_WAITSTATUS): Move to config/rs6000/nm-rs6000.h.
658 (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
659 (FP0_REGNUM): Remove.
660 (rs6000_find_toc_address_hook): Move to rs6000-tdep.h.
661 (rs6000_set_host_arch_hook): Remove.
662 * Makefile.in (rs6000-nat.o): Add dependency on $(rs6000_tdep_h).
663 (rs6000-aix-tdep.o): Add dependency on $(ppc_tdep_h).
664 * ppc-tdep.h (struct gdbarch_tdep): Add field text_segment_base.
665 * rs6000-aix-tdep.c: Include "ppc-tdep.h".
666 (rs6000_aix_init_osabi): Set text_segment_base tdep field.
667 * rs6000-nat.c: Include "rs6000-tdep.h".
668 (exec_one_dummy_insn): Replace TEXT_SEGMENT_BASE by tdep field.
669 (set_host_arch): Rename to ...
670 (rs6000_create_inferior): ... this. Make public.
671 (_initialize_core_rs6000): Do not set rs6000_set_host_arch_hook.
672 * rs6000-tdep.c (rs6000_set_host_arch_hook): Remove.
673 (rs6000_create_inferior): Remove.
674 (branch_dest): Replace TEXT_SEGMENT_BASE by tdep field.
675 (rs6000_gdbarch_init): Call set_gdbarch_fp0_regnum,
676 set_gdbarch_in_solib_return_trampoline, and
677 set_gdbarch_skip_trampoline_code.
678 * rs6000-tdep.h (rs6000_find_toc_address_hook): Move here
679 from config/rs6000/tm-rs6000.h.
680
681 2007-02-27 Joel Brobecker <brobecker@adacore.com>
682
683 * buildsym.c (record_producer): Do nothing if no producer is provided.
684
685 2007-02-27 Nick Roberts <nickrob@snap.net.nz>
686
687 * varobj.c (varobj_update): Remove unused local. Use gdb_assert
688 to check changelist is non-NULL. Call error if the frontend tries
689 to update a non-root variable.
690
691 * varobj.h (enum varobj_update_error): Delete WRONG_PARAM value.
692
693 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
694
695 * dwarf2-frame.c (dwarf2_frame_cache, dwarf2_frame_this_id)
696 (dwarf2_frame_sniffer): Update.
697 (dwarf2_signal_frame_this_id): New function.
698 (dwarf2_signal_frame_unwind): Use it.
699 (dwarf2_frame_base_sniffer): Use frame_unwind_address_in_block.
700 * frame.c (frame_func_unwind): Add this_type argument.
701 (get_frame_func): Update.
702 (frame_unwind_address_in_block): Add this_type argument and check it.
703 Fix a typo.
704 (get_frame_address_in_block): Update.
705 * frame.h (enum frame_type): Move higher in the file.
706 (frame_unwind_address_in_block, frame_func_unwind): Add enum frame_type
707 argument.
708
709 * alpha-mdebug-tdep.c, alpha-tdep.c, amd64-tdep.c, amd64obsd-tdep.c,
710 arm-tdep.c, avr-tdep.c, cris-tdep.c, frv-tdep.c, h8300-tdep.c,
711 hppa-tdep.c, i386-tdep.c, i386obsd-tdep.c, ia64-tdep.c,
712 libunwind-frame.c, m32c-tdep.c, m32r-linux-tdep.c, m32r-tdep.c,
713 m68hc11-tdep.c, m68k-tdep.c, m88k-tdep.c, mips-mdebug-tdep.c,
714 mips-tdep.c, mn10300-tdep.c, mt-tdep.c, rs6000-tdep.c, s390-tdep.c,
715 score-tdep.c, sh-tdep.c, sh64-tdep.c, sparc-tdep.c,
716 sparc64obsd-tdep.c, spu-tdep.c, v850-tdep.c, vax-tdep.c,
717 xstormy16-tdep.c, xtensa-tdep.c: Update calls to
718 frame_func_unwind and frame_unwind_address_in_block to specify
719 the frame type. Use frame_unwind_address_in_block instead of
720 frame_pc_unwind in sniffers.
721
722 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
723
724 * frame.c (deprecated_selected_frame): Rename to...
725 (selected_frame): ...this. Make static.
726 (get_selected_frame, select_frame): Update.
727 * frame.h (deprected_select_frame): Delete.
728 (deprecated_safe_get_selected_frame): Update comments.
729
730 * breakpoint.c, cli/cli-cmds.c, f-valprint.c, infcmd.c, inflow.c,
731 infrun.c, stack.c, tui/tui-disasm.c, tui/tui-source.c,
732 tui/tui-winsource.c, valops.c, varobj.c, findvar.c, macroscope.c,
733 parse.c, regcache.h, sh64-tdep.c, tui/tui-hooks.c, tui/tui-win.c,
734 tui/tui.c: Replace references to deprecated_selected_frame.
735
736 2007-02-27 Fred Fish <fnf@specifix.com>
737
738 * rs6000-tdep.c (skip_prologue): Recognize addi instructions that
739 directly decrement the stack pointer, accumulate their operand into
740 the stack offset, and mark the function as not being frameless.
741
742 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
743
744 * arch-utils.c (selected_byte_order): New.
745 * arch-utils.h (selected_byte_order): New prototype.
746 * remote-sim.c (gdbsim_open): Use selected_byte_order.
747
748 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
749
750 * symfile.c (place_section): Check SEC_ALLOC. Do not check VMA.
751 (default_symfile_offsets): Check VMA here. Update section VMAs.
752
753 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
754
755 * remote.c (init_remote_state): Add special handling for placeholder
756 registers.
757
758 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
759
760 * Makefile.in (XMLFILES): Include $(TDEP_XML).
761 (filenames_h): New variable.
762 (clean): Clean up xml-builtin.c and stamp-xml.
763 (arm-linux-nat.o): Update.
764 * config/arm/linux.mh (TDEP_XML): Define.
765 * arm-linux-nat.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
766 (arm_linux_has_wmmx_registers): New.
767 (GET_THREAD_ID): Fix typo.
768 (IWMMXT_REGS_SIZE): Define.
769 (fetch_wmmx_regs, store_wmmx_regs): New.
770 (arm_linux_fetch_inferior_registers): Use fetch_wmmx_regs.
771 (arm_linux_store_inferior_registers): Use store_wmmx_regs.
772 (super_xfer_partial, arm_linux_xfer_partial): New.
773 (_initialize_arm_linux_nat): Use them.
774 * xml-support.c (fetch_xml_builtin): Move outside HAVE_LIBEXPAT.
775 (xml_builtin_xfer_partial): New function.
776 * xml-support.h (xml_builtin_xfer_partial): New prototype.
777 * NEWS: Update mention of iWMMXt support.
778
779 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
780
781 * arm-tdep.c (arm_scan_prologue): Do not record FPA register saves
782 if there are no FPA registers.
783 (arm_dwarf_reg_to_regnum): New function.
784 (arm_register_type, arm_register_name): Return minimal values for
785 unsupported registers.
786 (arm_register_sim_regno): Handle iWMMXt registers.
787 (arm_gdbarch_init): Record missing FPA registers if indicated by
788 a target description. Recognize iWMMXt registers. Only register
789 "info float" for FPA. Use ARM_NUM_REGS. Register
790 arm_dwarf_reg_to_regnum.
791 * arm-tdep.h (enum gdb_regnum): Add ARM_NUM_REGS and iWMMXt
792 constants.
793 (struct gdbarch_tdep): Add have_fpa_registers.
794 * features/xscale-iwmmxt.xml: Update capitalization.
795 * regformats/arm-with-iwmmxt.dat: Regenerated.
796
797 2007-02-24 Kevin Buettner <kevinb@redhat.com>
798
799 * NEWS (New targets): Add entry for the Toshiba Media Processor.
800
801 2007-02-23 Kevin Buettner <kevinb@redhat.com>
802
803 * MAINTAINERS (mep): New target.
804
805 2007-02-23 Kevin Buettner <kevinb@redhat.com>
806
807 From Jim Blandy, Dave Brolley, Kevin Buettner, Don Howard, and
808 Richard Sandiford:
809 * Makefile.in (elf_mep_h, mep_desc_h, mep_opc_h): New variables.
810 (mep-tdep.o): New rule.
811 * configure.tgt (mep-*-*): New target.
812 * mep-tdep.c: New file.
813 * config/mep/mep.mt: New file.
814
815 2007-02-22 Markus Deuling <deuling@de.ibm.com>
816
817 * infrun.c (inferior_stop_reason, print_stop_reason): Remove
818 BREAKPOINT_HIT and STOP_UNKNOWN.
819
820 2007-02-22 Markus Deuling <deuling@de.ibm.com>
821
822 * valops.c (value_ind): Fix unary * handling of TYPE_CODE_INT.
823
824 2007-02-20 Joel Brobecker <brobecker@adacore.com>
825
826 * gdb_expat.h (XMLCALL): Define if not already defined.
827
828 2007-02-20 Andreas Schwab <schwab@suse.de>
829
830 * Makefile.in (symfile.o): Update dependencies.
831
832 2007-02-20 Daniel Jacobowitz <dan@codesourcery.com>
833
834 * MAINTAINERS: Disable -Werror for cris simulator. Build
835 sparc64-solaris2.10 instead of the broken sparc-elf.
836 * solib-frv.c: Include "solib.h".
837 * Makefile.in (solib-frv.o): Update.
838 * mt-tdep.c (mt_gdbarch_init): Correct typo in floatformats patch.
839 * xtensa-tdep.c (xtensa_regset_from_core_section): Cast size_t to int.
840 (xtensa_frame_this_id, xtensa_frame_prev_register)
841 (xtensa_push_dummy_call): Use %p.
842
843 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
844
845 * avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
846 ia64-tdep.c, m68k-tdep.c, mips-linux-tdep.c, ppcobsd-tdep.c,
847 sparc-linux-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
848 * Makefile.in (avr-tdep.o, hppabsd-tdep.o, hppa-tdep.o, i386-tdep.o)
849 (ia64-tdep.o, m68k-tdep.o, mips-linux-tdep.o, ppcobsd-tdep.o)
850 (sparc-linux-tdep.o): Update.
851
852 2007-02-15 Maxim Grigoriev <maxim2405@gmail.com>
853
854 * xtensa-tdep.h (xtensa_reg_mask_t): New.
855 (xtensa_mask_t): Change mask field to be a separate array.
856 * xtensa-tdep.c (extract_call_winsize, xtensa_pseudo_register_read)
857 (xtensa_pseudo_register_write, xtensa_unwind_pc)
858 (xtensa_unwind_dummy_id, xtensa_push_dummy_call)
859 (xtensa_breakpoint_from_pc): Remove implicit type casting.
860 * xtensa-config.c (mask0, mask1, mask2, mask3, mask4, mask5)
861 (mask6, mask7, mask8, mask9, mask10, mask11, mask12, mask13)
862 (mask14, mask15): Rename to
863 (xtensa_mask0, xtensa_mask1, xtensa_mask2, xtensa_mask3)
864 (xtensa_mask4, xtensa_mask5, xtensa_mask6, xtensa_mask7)
865 (xtensa_mask8, xtensa_mask9, xtensa_mask10, xtensa_mask11)
866 (xtensa_mask12, xtensa_mask13, xtensa_mask14, xtensa_mask15): this.
867 (xtensa_submask0, xtensa_submask1, xtensa_submask2, xtensa_submask3)
868 (xtensa_submask4, xtensa_submask5, xtensa_submask6, xtensa_submask7)
869 (xtensa_submask8, xtensa_submask9, xtensa_submask10)
870 (xtensa_submask11, xtensa_submask12, xtensa_submask13)
871 (xtensa_submask14, xtensa_submask15): New.
872 (rmap): Follow strict aliasing rules doing static initialization.
873
874 2007-02-13 Daniel Jacobowitz <dan@codesourcery.com>
875
876 * target-descriptions.c (tdesc_named_type): Move code_ptr and data_ptr
877 handling from here...
878 (tdesc_register_type): ...to here.
879 * xml-tdesc.c (tdesc_start_reg): Allow code_ptr and data_ptr.
880 * features/arm-core.xml: Use code_ptr and data_ptr.
881
882 2007-02-13 Denis Pilat <denis.pilat@st.com>
883
884 * varobj.h (enum varobj_update_error): New enum.
885 * varobj.c (struct varobj_root): Add is_valid member.
886 (varobj_get_type): Check for invalid varobj.
887 (varobj_get_attributes): Likewise.
888 (variable_editable):Likewise.
889 (varobj_update): Likewise. Use varobj_update_error.
890 (new_root_variable): Set root varobj as valid by default.
891 (varobj_invalidate): New function.
892 * symfile.c (clear_symtab_users): Use varobj_invalidate.
893 * mi/mi-cmd-var.c (varobj_update_one): Change return type to void.
894 Use varobj_update_error.
895
896 2007-02-12 Pierre Muller <muller@ics.u-strasbg.fr>
897
898 Fix PR pascal/2223.
899 * dwarfread.c (set_cu_language): Recognize DW_LANG_Pascal83 as
900 Pascal language marker.
901 * dwarf2read.c (set_cu_language): Likewise.
902
903 2007-02-12 Corinna Vinschen <vinschen@redhat.com>
904
905 * win32-nat.c (win32_wait): Reset terminal pgrp to GDB.
906 (do_initial_win32_stuff): Call terminal_init_inferior_with_pgrp
907 instead of target_terminal_init since inferior_ptid isn't set yet.
908
909 2007-02-10 Pedro Alves <pedro_alves@portugalmail.pt>
910
911 * MAINTAINERS (Write After Approval): Add myself.
912
913 2007-02-09 Fred Fish <fnf@specifix.com>
914
915 Based on work by Apple Computer, Inc.
916 * event-top.c (async_request_quit): Call quit() whenever either
917 quit_flag is set or immediate_quit is set.
918
919 2007-02-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
920
921 * ada-lang.c (remove_out_of_scope_renamings): Change third parameter's
922 type to a pointer to const struct block.
923 (ada_lookup_symbol_list): Don't cast away constness when calling
924 remove_out_of_scope_renamings.
925
926 2007-02-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
927
928 * linux-nat.c (linux_nat_find_memory_regions): Don't check the
929 address of 'filename'; it is always non null.
930
931 2007-02-09 Joel Brobecker <brobecker@adacore.com>
932
933 * exec.c (add_to_section_table): Do not discard empty sections.
934
935 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
936
937 * features/Makefile, features/arm-with-iwmmxt.xml,
938 features/gdbserver-regs.xsl, features/number-regs.xsl,
939 features/sort-regs.xsl, features/xscale-iwmmxt.xml: New files.
940 * regformats/arm-with-iwmmxt.dat: Generate.
941 * NEWS: Mention iWMMXt.
942
943 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
944
945 * Makefile.in (arm-tdep.o, eval.o, target-descriptions.o)
946 (xml-tdesc.o): Update.
947 * xml-support.c: Add a comment.
948 (gdb_xml_enums_boolean): New variable.
949 (gdb_xml_parse_attr_enum): Use strcasecmp.
950 * xml-support.h (gdb_xml_enums_boolean): Declare.
951 * xml-tdesc.c (struct tdesc_parsing_data): Record current_feature,
952 next_regnum, and current_union.
953 (tdesc_start_feature, tdesc_start_reg, tdesc_start_union)
954 (tdesc_end_union, tdesc_start_field, tdesc_start_vector)
955 (field_attributes, union_children, reg_attributes, union_attributes)
956 (vector_attributes, feature_attributes, feature_children): New.
957 (target_children): Make static. Add <feature>.
958 (tdesc_elements): Make static.
959 * target-descriptions.c (struct tdesc_reg, tdesc_reg_p, type_p)
960 (struct tdesc_feature, tdesc_feature_p): New types.
961 (struct target_desc): Add features member.
962 (struct tdesc_arch_data, tdesc_data): New.
963 (target_find_description): Clarify error message. Warn about
964 ignored register descriptions.
965 (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
966 (tdesc_named_type, tdesc_data_init, tdesc_data_alloc)
967 (tdesc_data_cleanup, tdesc_numbered_register)
968 (tdesc_numbered_register_choices, tdesc_find_register)
969 (tdesc_register_name, tdesc_register_type)
970 (tdesc_remote_register_number, tdesc_register_reggroup_p)
971 (set_tdesc_pseudo_register_name, set_tdesc_pseudo_register_type)
972 (set_tdesc_pseudo_register_reggroup_p, tdesc_use_registers)
973 (tdesc_free_reg, tdesc_create_reg, tdesc_free_feature)
974 (tdesc_create_feature, tdesc_record_type): New.
975 (free_target_description): Free features.
976 (_initialize_target_descriptions): Initialize tdesc_data.
977 * arch-utils.c (default_remote_register_number): New.
978 * arch-utils.h (default_remote_register_number): New prototype.
979 * target-descriptions.h (set_tdesc_pseudo_register_name)
980 (set_tdesc_pseudo_register_type, set_tdesc_pseudo_register_reggroup_p)
981 (tdesc_use_registers, tdesc_data_alloc, tdesc_data_cleanup)
982 (tdesc_numbered_register, tdesc_numbered_register_choices)
983 (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
984 (tdesc_named_type, tdesc_create_feature, tdesc_record_type)
985 (tdesc_create_reg): Declare.
986 * gdbarch.sh (remote_register_number): New entry.
987 * gdbarch.c, gdbarch.h: Regenerate.
988 * remote.c (init_remote_state): Use gdbarch_remote_register_number.
989 * features/gdb-target.dtd: Add feature, reg, vector, union, and field.
990
991 * arm-tdep.c (arm_register_aliases): New.
992 (arm_register_name_strings): Rename to...
993 (arm_register_names): ...this. Make const. Delete the old version.
994 (current_option, arm_register_byte): Delete.
995 (set_disassembly_style): Simplify. Do not adjust arm_register_names.
996 (value_of_arm_user_reg): New.
997 (arm_gdbarch_init): Verify any described registers. Call
998 tdesc_use_registers. Don't use arm_register_byte. Create aliases
999 for standard register names.
1000 (_initialize_arm_tdep): Do not adjust arm_register_names.
1001 * user-regs.c (struct user_reg): Add baton member.
1002 (append_user_reg, user_reg_add_builtin, user_regs_init)
1003 (user_reg_add, value_of_user_reg): Use a baton for user
1004 register functions.
1005 * std-regs.c: Update.
1006 * user-regs.h (user_reg_read_ftype, user_reg_add_builtin)
1007 (user_reg_add): Add baton argument.
1008 * NEWS: Mention target description register support.
1009 * features/arm-core.xml, features/arm-fpa.xml: New.
1010 * eval.c (evaluate_subexp_standard): Allow ptype $register
1011 when the program is not running.
1012
1013 2007-02-09 Nick Roberts <nickrob@snap.net.nz>
1014
1015 * mi/mi-cmd-var.c (mi_cmd_var_create): Add value field.
1016
1017 2007-02-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
1018
1019 * rs6000-tdep.c (gdb_print_insn_powerpc): Set
1020 info->disassembler_options to "any".
1021
1022 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
1023
1024 * varobj.c (install_new_value): Only call value_get_print_value
1025 if changeable.
1026
1027 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
1028
1029 Reported by timeless@gmail.com:
1030 * gdb/target.c (target_flash_erase): Do not return void value.
1031 (target_flash_done): Likewise.
1032 * gdb/cli/cli-cmds.c (source_command): Likewise.
1033
1034 2007-02-08 Fred Fish <fnf@specifix.com>
1035
1036 Based on work by Apple Computer, Inc.
1037 * event-top.c (handle_sigint): Set quit_flag.
1038 (async_request_quit): Don't set quit_flag. Avoid calling quit()
1039 if quit_flag has already been reset.
1040
1041 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
1042
1043 * ser-mingw.c (pipe_windows_close): Move variable initialization back
1044 up.
1045
1046 2007-02-08 Fred Fish <fnf@specifix.com>
1047
1048 * defs.h (request_quit): Remove declaration.
1049 * utils.c (request_quit): Remove definition.
1050
1051 2007-02-08 Joel Brobecker <brobecker@gnat.com>
1052 Jan Kratochvil <jan.kratochvil@redhat.com>
1053 Daniel Jacobowitz <dan@codesourcery.com>
1054
1055 * rs6000-tdep.c (bl_to_blrl_insn_p): New function.
1056 (skip_prologue): Allow bl->blrl used by PIC code.
1057
1058 2007-02-08 Mark Kettenis <kettenis@gnu.org>
1059 Daniel Jacobowitz <dan@codesourcery.com>
1060
1061 * cp-valprint.c (cp_print_value_fields, cp_print_value): Always
1062 initialize tmp_obstack.
1063 * p-valprint.c (pascal_object_print_value_fields)
1064 (pascal_object_print_value): Likewise.
1065
1066 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
1067
1068 * features/feature_to_c.sh: Use %s to avoid problems with nawk.
1069
1070 2007-02-08 Mark Kettenis <kettenis@gnu.org>
1071
1072 * sparcnbsd-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
1073 * Makefile.in (sparcnbsd-tdep.o): Update dependencies.
1074
1075 2007-02-07 Daniel Jacobowitz <dan@codesourcery.com>
1076
1077 * xml-tdesc.c (struct tdesc_xml_cache, tdesc_xml_cache_s)
1078 (xml_cache): New.
1079 (tdesc_parse_xml): Cache expanded descriptions.
1080
1081 2007-02-07 Daniel Jacobowitz <dan@codesourcery.com>
1082
1083 * Makefile.in (XMLFILES): New.
1084 (COMMON_OBS): Add xml-builtin.o.
1085 (xml-builtin.c, stamp-xml): New rules.
1086 (xml-tdesc.o): Update.
1087 * features/feature_to_c.sh: New file.
1088 * xml-support.c (MAX_XINCLUDE_DEPTH): Define.
1089 (struct gdb_xml_parser): Add dtd_name and is_xinclude.
1090 (gdb_xml_start_element): Initialize scope after possibly reallocating
1091 scopes. Move cleanup later. Handle the XInclude description
1092 specially.
1093 (gdb_xml_end_element): Only parse the body if there is a current element.
1094 Call XML_DefaultCurrent if there is no element.
1095 (gdb_xml_fetch_external_entity, gdb_xml_use_dtd): New.
1096 (struct xinclude_parsing_data, xinclude_start_include)
1097 (xinclude_end_include, xml_xinclude_default)
1098 (xml_xinclude_start_doctype, xml_xinclude_end_doctype)
1099 (xml_xinclude_xml_decl, xml_xinclude_cleanup, xinclude_attributes)
1100 (xinclude_elements, xml_process_xincludes, fetch_xml_builtin): New.
1101 * xml-support.h (xml_fetch_another, xml_process_xincludes)
1102 (fetch_xml_builtin, xml_builtin, gdb_xml_use_dtd): New declarations.
1103 * xml-tdesc.c (tdesc_parse_xml): Add fetcher_baton argument. Expand
1104 XInclude directives. Use the compiled in DTD.
1105 (fetch_xml_from_file): Add baton argument. Treat it as a containing
1106 directory name. Do not warn here.
1107 (file_read_description_xml): Update call. Warn here instead. Pass
1108 a dirname as baton.
1109 (fetch_available_features_from_target): New.
1110 (target_read_description_xml): Use it.
1111 * features/gdb-target.dtd: Add copyright notice. Use xinclude.dtd
1112 to handle XInclude.
1113 * features/xinclude.dtd: New file.
1114
1115 2007-02-05 Daniel Jacobowitz <dan@codesourcery.com>
1116
1117 * linux-thread-db.c (check_for_thread_db): Return early if we have
1118 no libthread_db support.
1119
1120 2007-02-05 Daniel Jacobowitz <dan@codesourcery.com>
1121
1122 * mi/mi-parse.h: Include <sys/time.h>.
1123
1124 2007-02-05 Nick Roberts <nickrob@snap.net.nz>
1125
1126 * mi/mi-cmd-stack.c (list_args_or_locals): Use common_val_print
1127 instead of print_variable_value to print values.
1128
1129 2007-02-03 Nick Roberts <nickrob@snap.net.nz>
1130
1131 * mi/mi-main.c: Numerous formatting changes.
1132 (mi_cmd_data_write_register_values): Replace clause inadvertantly
1133 removed in my previous change.
1134
1135 2007-02-03 Eli Zaretskii <eliz@gnu.org>
1136
1137 * mi/mi-main.c (mi_load_progress, timestamp, print_diff_now):
1138 Use 1000000L instead of 1000000.
1139
1140 2007-02-03 Nick Roberts <nickrob@snap.net.nz>
1141
1142 Based on work by Apple Computer, Inc.
1143
1144 * configure.ac: Test for sys/resource.h and getrusage.
1145 * configure, config.in: Regenerate.
1146
1147 * mi/mi-main.c: Include <sys/resource.h> if present.
1148 (rusage): Declare if HAVE_GETRUSAGE.
1149 (current_command_ts, do_timings): New static variables.
1150 (timestamp, print_diff_now, print_diff, timeval_diff):
1151 New static timing functions.
1152 (mi_cmd_enable_timings): New function for new MI command.
1153 (captured_mi_execute_command, mi_execute_async_cli_command):
1154 Call timing functions.
1155
1156 * mi/mi-cmds.c (mi_cmds): Add entry for new MI command
1157 -enable-timings.
1158
1159 * mi/mi-cmds.h (mi_cmd_enable_timings): New extern.
1160
1161 * mi/mi-parse.h: (mi_timestamp): New structure.
1162 (mi_parse): Add mi_timestamp* member.
1163
1164 2007-02-02 Denis Pilat <denis.pilat@st.com>
1165
1166 * thread.c (make_cleanup_restore_current_thread): New function.
1167 (info_threads_command): Use of make_cleanup_restore_current_thread
1168 to restore the current thread and the selected frame.
1169 (restore_selected_frame): New function.
1170 (struct current_thread_cleanup): Add frame_id field.
1171 (do_restore_current_thread_cleanup): Add restoring of the selected
1172 frame.
1173 (make_cleanup_restore_current_thread): Likewise.
1174 (thread_apply_all_command): backup the selected frame while
1175 entering the function and restore it at exit.
1176 (thread_apply_command): Likewise.
1177
1178 2007-02-02 Denis Pilat <denis.pilat@st.com>
1179
1180 * MAINTAINERS (Write After Approval): Add myself to the list.
1181
1182 2007-02-01 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
1183
1184 * gdb/remote-m32r.sdi.c (m32r_fetch_register): Change PWD mask.
1185 (m32r_store_register): Ditto.
1186
1187 2007-01-30 Vladimir Prus <vladimir@codesourcery.com>
1188
1189 * ser-mingw.c (pipe_windows_open)
1190 (pipe_windows_read, pipe_windows_write): Declare
1191 variables at the top of the function.
1192
1193 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
1194
1195 * doublest.c (floatformat_from_length): Use the right element from
1196 gdbarch floatformats.
1197 (floatformat_from_type, extract_typed_floating)
1198 (store_typed_floating): Likewise.
1199 * doublest.h: Remove declarations for undefined floatformat arrays.
1200 * gdbarch.sh (float_format, double_format, long_double_format): Change
1201 to pairs.
1202 (pformat): Update for pairs.
1203 * gdbarch.c, gdbarch.h: Regenerated.
1204 * gdbtypes.c (floatformats_ieee_single, floatformats_ieee_double)
1205 (floatformats_ieee_double_littlebyte_bigword)
1206 (floatformats_i387_ext, floatformats_m68881_ext, floatformats_arm_ext)
1207 (floatformats_ia64_spill, floatformats_ia64_quad, floatformats_vax_f)
1208 (floatformats_vax_d): New variables.
1209 (builtin_type_ieee_single, builtin_type_ieee_double)
1210 (builtin_type_arm_ext, builtin_type_ia64_spill)
1211 (builtin_type_ia64_quad): Replace arrays with individual types.
1212 (builtin_type_ieee_single_big, builtin_type_ieee_single_little)
1213 (builtin_type_ieee_double_big, builtin_type_ieee_double_little)
1214 (builtin_type_ieee_double_littlebyte_bigword, builtin_type_i960_ext)
1215 (builtin_type_m88110_ext, builtin_type_m88110_harris_ext)
1216 (builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword)
1217 (builtin_type_ia64_spill_big, builtin_type_ia64_spill_little)
1218 (builtin_type_ia64_quad_big, builtin_type_ia64_quad_little): Delete
1219 unused and endian-specific types.
1220 (recursive_dump_type): Update for floatformat pairs.
1221 (build_flt): Move higher. Handle bit == -1. Take a floatformat pair.
1222 (build_gdbtypes): Use build_flt.
1223 (_initialize_gdbtypes): Update set of initialized types.
1224 * gdbtypes.h: Update declarations to match gdbtypes.c.
1225 (struct main_type): Store a pointer to two floatformats.
1226 * arch-utils.c (default_float_format, default_double_format): Delete.
1227 * arch-utils.h (default_float_format, default_double_format): Delete.
1228
1229 * arm-tdep.c, avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
1230 ia64-tdep.c, iq2000-tdep.c, m68k-tdep.c, m88k-tdep.c,
1231 mips-linux-tdep.c, mips-tdep.c, mt-tdep.c, ppcobsd-tdep.c,
1232 sparc-linux-tdep.c, sparc-tdep.c, sparcnbsd-tdep.c, spu-tdep.c,
1233 vax-tdep.c, alpha-tdep.c, ppc-sysv-tdep.c: Update.
1234
1235 2007-01-29 Joel Brobecker <brobecker@adacore.com>
1236
1237 * target.c (maintenance_print_target_stack): New function.
1238 (initialize_targets): Add new "maintenance print target-stack"
1239 command.
1240
1241 2007-01-28 Mark Kettenis <kettenis@gnu.org>
1242
1243 * dwarf2read.c (new_symbol): Handle DW_AT_decl_file being zero.
1244
1245 2007-01-27 Daniel Jacobowitz <dan@codesourcery.com>
1246
1247 * dwarf2loc.h (struct dwarf2_locexpr_baton): Change size to a long.
1248 (struct dwarf2_loclist_baton): Likewise.
1249
1250 2007-01-27 Eli Zaretskii <eliz@gnu.org>
1251
1252 * cli/cli-script.c: Include breakpoint.h.
1253 (build_command_line): Require arguments only for if and while
1254 commands.
1255 (get_command_line, execute_user_command, execute_control_command):
1256 Fix wording of warning messages.
1257 (print_command_lines): Print breakpoint commands.
1258 (execute_control_command): Call commands_from_control_command to
1259 handle the `commands' command inside a body of a flow-control
1260 command.
1261 (read_next_line): Recognize the `commands' command and build a
1262 command line structure for it.
1263 (recurse_read_control_structure, read_command_lines): Handle
1264 `commands' similarly to `if' and `while'.
1265
1266 * breakpoint.c (get_number_trailer): Document the special meaning
1267 of NULL as the first argument PP.
1268 (commands_from_control_command): New function.
1269
1270 * breakpoint.h (commands_from_control_command): Add prototype.
1271
1272 * defs.h (commands_control): New enumerated value for enum
1273 command_control_type.
1274
1275 2007-01-26 Joel Brobecker <brobecker@adacore.com>
1276
1277 * ada-lang.c (ada_exception_breakpoint_ops): Fix typo in function name.
1278 (ada_exception_sal): Update accordingly.
1279
1280 2007-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1281
1282 * c-valprint.c (c_val_print): Require strings to be of no-signed CHARs.
1283 * NEWS: Describe CHAR array vs. string identifcation rules.
1284
1285 2007-01-25 Paul Brook <paul@codesourcery.com>
1286
1287 * arm-tdep.c (arm_get_next_pc): Fix bitfield off-by-one error.
1288
1289 2007-01-24 Jim Blandy <jimb@codesourcery.com>
1290
1291 * dwarf2loc.c (dwarf2_evaluate_loc_desc): When the location
1292 expression is empty, bother to return the 'optimized out' value we
1293 construct. (Thanks to Carl Burch.)
1294
1295 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
1296
1297 * varobj.c (c_value_of_root, c_value_of_child)
1298 (cplus_describe_child): Don't call release_value.
1299
1300 2007-01-24 Thiemo Seufer <ths@mips.com>
1301
1302 * mips-linux-tdep.c (mips_linux_n64_rt_sigframe): Fix struct
1303 initialization.
1304
1305 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
1306
1307 Refactor getting children name, value and type access
1308 for varobjs in C++.
1309 * varobj.c (get_type_deref): Remove.
1310 (adjust_value_for_child_access): New.
1311 (c_number_of_children): Use the above.
1312 (c_describe_child): Likewise.
1313 (enum accessibility): New.
1314 (match_accessibility): New function.
1315 (cplus_describe_child): New function.
1316 (cplus_name_of_child, cplus_value_of_child)
1317 (cplus_type_of_child): Reimplement in terms
1318 of cplus_describe_child.
1319 (cplus_number_of_children): Use
1320 adjust_value_for_child_access.
1321
1322 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
1323
1324 Fix computation of the 'editable' attribute and
1325 value changeability for for references.
1326 * varobj.c (get_value_type): New function.
1327 (c_variable_editable): Use get_value_type.
1328 (varobj_value_is_changeable): Likewise.
1329
1330 2007-01-24 Joel Brobecker <brobecker@adacore.com>
1331
1332 * source.c (find_and_open_source): Try rewriting the source
1333 path inside filename if dirname is NULL.
1334
1335 2007-01-24 Joel Brobecker <brobecker@adacore.com>
1336
1337 * dwarf2read.c (add_partial_symbol): Create an extra partial
1338 symbol in the VAR_DOMAIN for Ada structures, unions or enums.
1339 (new_symbol): Likewise for symbols.
1340
1341 2007-01-24 Nick Roberts <nickrob@snap.net.nz>
1342
1343 * mi/mi-main.c (mi_cmd_execute): Call free_all_values.
1344
1345 2007-01-23 Vladimir Prus <vladimir@codesourcery.com>
1346
1347 * value.c (value_primitive_field): Copy the full 'location'
1348 contents, instead of assuming that copying ADDRESS will
1349 bring over everything in the union. Remove obsolete comment.
1350
1351 2007-01-23 Masaki Muranaka <monaka@monami-software.com>
1352
1353 * m32c-tdep.c (make_regs, m32c_analyze_prologue)
1354 (m32c_skip_trampoline_code, m32c_m16c_address_to_pointer)
1355 (m32c_m16c_pointer_to_address): Separate code from declarations.
1356
1357 2007-01-23 Nick Hudson <nick.hudson@dsl.pipex.com>
1358
1359 * target.c (update_current_target): Correct typo.
1360
1361 2007-01-22 Masaki Muranaka <monaka@monami-software.com>
1362
1363 * xstormy16-tdep.c (xstormy16_skip_prologue): Separate code from a
1364 declaration.
1365
1366 2007-01-11 Andrew Cagney <cagney@redhat.com>
1367 Daniel Jacobowitz <dan@codesourcery.com>
1368 Jan Kratochvil <jan.kratochvil@redhat.com>
1369
1370 * dwarf2-frame.c (execute_cfa_program): New support of
1371 `DW_CFA_GNU_negative_offset_extended'.
1372
1373 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
1374
1375 * NEWS: Mention flash support for "load" and new remote packets.
1376
1377 2007-01-21 Markus Deuling <deuling@de.ibm.com>
1378
1379 * breakpoint.c (delete_command): Skip redundant loop iterations.
1380
1381 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
1382
1383 * gdbarch.sh (register_type): Update comment.
1384 * gdbarch.h: Regenerated.
1385 * arch-utils.c (generic_register_size): Call register_type.
1386 * ia64-tdep.c (ia64_extract_return_value): Likewise.
1387 * m32c-tdep.c (check_for_saved): Likewise.
1388 * mips-tdep.c (mips_print_register, print_gp_register_row)
1389 (mips_print_registers_info): Likewise.
1390 * sh-tdep.c (sh_pseudo_register_read, sh_pseudo_register_write):
1391 Likewise.
1392 * sh64-tdep.c (sh64_pseudo_register_read, sh64_pseudo_register_write)
1393 (sh64_do_register, sh64_print_register)
1394 (sh64_media_print_registers_info): Likewise.
1395 * tui/tui-regs.c (tui_register_format): Likewise.
1396
1397 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
1398
1399 * objfiles.h (ALL_PRIMARY_SYMTABS): Define.
1400
1401 * ada-lang.c (symtab_for_sym, ada_lookup_symbol_list)
1402 (ada_lookup_symbol): Use ALL_PRIMARY_SYMTABS.
1403 * cp-support.c (make_symbol_overload_list_qualified): Likewise.
1404 * symtab.c (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
1405 (basic_lookup_transparent_type, find_pc_sect_symtab, search_symbols)
1406 (make_symbol_completion_list): Likewise.
1407
1408 2007-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1409 Daniel Jacobowitz <dan@codesourcery.com>
1410
1411 * buildsym.c (end_symtab): Use preallocated symtab if available.
1412 Fill in SYMBOL_SYMTAB.
1413 * buildsym.h (struct subfile): Add symtab member.
1414 * dwarf2read.c (struct dwarf2_cu): Add line_header.
1415 (struct file_entry): Add symtab.
1416 (free_cu_line_header): New function.
1417 (read_file_scope): Use it. Save line_header in the cu. Process
1418 lines before DIEs.
1419 (add_file_name): Initialize new symtab member.
1420 (dwarf_decode_lines): Create symtabs for included files.
1421 (new_symbol): Set SYMBOL_SYMTAB.
1422 * symtab.c (lookup_symbol): Use SYMBOL_SYMTAB.
1423 (search_symbols): Likewise.
1424 * symtab.h (struct symbol): Add symtab member.
1425 (SYMBOL_SYMTAB): Define.
1426
1427 2007-01-20 Daniel Jacobowitz <dan@codesourcery.com>
1428
1429 * symfile.c (allocate_symtab): Remove INIT_EXTRA_SYMTAB_INFO.
1430
1431 2007-01-20 Daniel Jacobowitz <dan@codesourcery.com>
1432
1433 * arch-utils.c (show_endian): Correct reversed condition.
1434
1435 2007-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1436
1437 * MAINTAINERS (Write After Approval): Add myself.
1438
1439 2007-01-16 Daniel Jacobowitz <dan@codesourcery.com>
1440 Vladimir Prus <vladimir@codesourcery.com>
1441
1442 Fix 'selected frame' varobjs.
1443 * varobj.c (struct varobj): Remove the error field.
1444 (varobj_set_value): Don't check var->error.
1445 (install_new_value): Don't set var->error.
1446 (varobj_update): Always pass the new value
1447 of the root via install_new_value.
1448 (create_child): Don't set error field.
1449 (new_variable): Likewise.
1450 (c_value_of_root): Always reevaluate the value
1451 of selected frame varobjs in the selected frame.
1452 Don't call reinit_frame_cache.
1453
1454 2007-01-15 Joel Brobecker <brobecker@adacore.com>
1455
1456 * source.c (_initialize_source): Improve the help text of
1457 the substitute-path commands.
1458
1459 2007-01-14 Mark Kettenis <kettenis@gnu.org>
1460
1461 * frv-tdep.c (frv_gdbarch_init, frv_register_name)
1462 (frv_breakpoint_from_pc, frv_gdbarch_adjust_breakpoint_address)
1463 (frv_skip_prologue): Remove prototypes.
1464 (frv_adjust_breakpoint_address): Renamed from
1465 frv_gdbarch_adjust_breakpoint_address.
1466 (frv_gdbarch_init): Adjust.
1467
1468 2007-01-13 Mark Kettenis <kettenis@gnu.org>
1469
1470 * gdbarch.sh (deprecated_extract_return_value)
1471 (deprecated_store_return_value): Remove.
1472 (extract_return_value, store_return_value): Remove default values.
1473 * gdbarch.c, gdbarch.h: Regenerate.
1474 * arch-utils.c, arch-utils.h (legacy_extract_return_value)
1475 (legacy_store_return_value): Remove.
1476 * regcache.c, regcache.h (deprecated_grub_regcache_for_registers):
1477 Remove.
1478
1479 * mi/mi-main.c: Remove obsolete comment.
1480
1481 * regcache.c, regcache.h (deprecated_register_bytes)
1482 (deprecated_read_register_bytes)
1483 (deprecated_write_register_bytes): Remove.
1484
1485 * frame.c (get_frame_register_bytes, put_frame_register_bytes):
1486 Don't forget to move destination pointer.
1487
1488 2007-01-01 Mark Kettenis <kettenis@gnu.org>
1489
1490 * config/i386/nm-i386gnu.h (CHILD_PREPARE_TO_STORE): Remove.
1491
1492 2007-01-11 Ulrich Weigand <uweigand@de.ibm.com>
1493
1494 * spu-tdep.c (spu_analyze_prologue): Fix erroneous backtrace
1495 past entry function with recent newlib.
1496
1497 2007-01-11 Vladimir Prus <vladimir@codesourcery.com>
1498
1499 * gdb.texinfo (GDB/MI Variable Objects): Improve the
1500 introduction. Specify -var-update more exactly.
1501
1502 2007-01-11 Daniel Jacobowitz <dan@codesourcery.com>
1503
1504 * frame.c (get_prev_frame_1): Check PC_REGNUM before using it.
1505
1506 2007-01-10 Jim Blandy <jimb@codesourcery.com>
1507
1508 * MAINTAINERS (Global Maintainers): Ulrich Weigand has accepted
1509 the Global Maintainers' invitation to be a global maintainer.
1510
1511 2007-01-10 Daniel Jacobowitz <dan@codesourcery.com>
1512
1513 * infrun.c (singlestep_pc): New variable.
1514 (resume): Set singlestep_pc.
1515 (context_switch): Add a debugging message. Flush the frame cache.
1516 (handle_inferior_event): Add debugging messages. Handle thread
1517 hops when a software single step has completed. Let context_switch
1518 handle flushing the frame cache.
1519
1520 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
1521
1522 * NEWS: Mention target descriptions, "set tdesc filename",
1523 "unset tdesc filename", "show tdesc filename", and
1524 qXfer:features:read.
1525 * arch-utils.c (choose_architecture_for_target): New function.
1526 (gdbarch_info_fill): Call it.
1527 * target-descriptions.c (struct property): Make members non-const.
1528 (struct target_desc): Add arch member.
1529 (target_description_filename): New variable.
1530 (target_find_description): Try via XML first.
1531 (tdesc_architecture): New.
1532 (free_target_description, make_cleanup_free_target_description): New.
1533 (set_tdesc_property): Call xstrdup.
1534 (set_tdesc_architecture, tdesc_set_cmdlist, tdesc_show_cmdlist)
1535 (tdesc_unset_cmdlist, unset_tdesc_cmd, unset_tdesc_filename_cmd)
1536 (set_tdesc_cmd, show_tdesc_cmd, set_tdesc_filename_cmd)
1537 (show_tdesc_filename_cmd, _initialize_target_descriptions): New.
1538 * target-descriptions.h (tdesc_architecture)
1539 (make_cleanup_free_target_description, set_tdesc_architecture): New
1540 prototypes.
1541 * Makefile.in (SFILES): Add xml-tdesc.c.
1542 (COMMON_OBS): Add xml-tdesc.o.
1543 (target-descriptions.o): Update.
1544 (xml-tdesc.o): New rule.
1545 * xml-tdesc.c, xml-tdesc.h: New files.
1546 * remote.c (PACKET_qXfer_features): New enum.
1547 (remote_protocol_features): Add qXfer:features:read.
1548 (remote_xfer_partial): Handle TARGET_OBJECT_AVAILABLE_FEATURES.
1549 (_initialize_remote): Register qXfer:features:read.
1550 * target.h (enum target_object): Add TARGET_OBJECT_AVAILABLE_FEATURES.
1551 * features/gdb-target.dtd: New file.
1552
1553 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
1554
1555 * copyright.sh: Clarify error.
1556
1557 2007-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1558
1559 * symtab.c (matching_bfd_sections): Fix VMA matching for
1560 prelinked objects.
1561
1562 2007-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1563
1564 * minsyms.c (lookup_minimal_symbol_by_pc_section): Handle
1565 nested symbols.
1566
1567 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
1568
1569 Updated copyright notices for most files.
1570
1571 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
1572
1573 * copyright.sh (prunes): Add step-line.inp and step-line.c.
1574
1575 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
1576
1577 * configure.ac (DEBUGDIR_RELOCATABLE): Define for debugdir inside
1578 exec_prefix.
1579 (TARGET_SYSTEM_ROOT_RELOCATABLE): Allow for exec_prefix being
1580 '${prefix}'.
1581 * configure, config.in: Regenerate.
1582 * defs.h (debug_file_directory): Declare.
1583 * main.c (captured_main): Canonicalize gdb_sysroot. Assume
1584 TARGET_SYSTEM_ROOT is defined. Initialize debug_file_directory and
1585 relocate it if DEBUGDIR_RELOCATABLE.
1586 * symfile.c (debug_file_directory): Make non-static.
1587 (find_separate_debug_file): Look for debug info for SYSROOT/PATH
1588 in DEBUGDIR/PATH if DEBUGDIR is inside SYSROOT.
1589 (_initialize_symfile): Don't initialize debug_file_directory here.
1590
1591 2007-01-09 Jim Blandy <jimb@codesourcery.com>
1592
1593 * score-tdep.c (score_push_dummy_call): Don't mix declarations and
1594 statements.
1595
1596 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
1597
1598 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Use
1599 frame_unwind_register to recurse.
1600 * alpha-tdep.c (alpha_sigtramp_frame_prev_register): Likewise.
1601 (alpha_heuristic_frame_prev_register): Likewise.
1602 * h8300-tdep.c (h8300_frame_prev_register): Likewise.
1603 * m32c-tdep.c (m32c_prev_register): Likewise.
1604 * frame.c (frame_register_unwind_location): Remove FIXME.
1605
1606 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
1607 Eli Zaretskii <eliz@gnu.org>
1608
1609 * copyright.sh: New file.
1610
1611 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
1612
1613 * configure.ac: Check for XML_StopParser.
1614 * xml-support.c (gdb_xml_body_text): Check for an error.
1615 (gdb_xml_start_element_wrapper): Conditionalize call to XML_StopParser.
1616 (gdb_xml_end_element_wrapper): Likewise.
1617 * config.in, configure: Regenerated.
1618
1619 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
1620
1621 * varobj.c (install_new_value): Always update print_value.
1622 (value_get_print_value): Immediately return NULL for missing
1623 values.
1624
1625 2007-01-08 Jim Blandy <jimb@codesourcery.com>
1626
1627 * configure.ac: Tighten pattern for extracting value of
1628 DEPRECATED_TM_FILE from the target makefile fragment.
1629 * configure: Regenerated.
1630
1631 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
1632
1633 * linux-nat.c (struct simple_pid_list): Add status.
1634 (add_to_pid_list): Record the PID's status.
1635 (linux_record_stopped_pid): Likewise. Make static.
1636 (pull_pid_from_list): Return the saved status.
1637 (linux_nat_handle_extended): Deleted.
1638 (linux_handle_extended_wait): Combine with linux_nat_handle_extended.
1639 Make static. Handle non-SIGSTOP for a new thread's first signal.
1640 (flush_callback): Handle unexpected pending signals.
1641 (linux_nat_wait): Update calls to changed functions.
1642 * linux-nat.h (linux_record_stopped_pid, linux_handle_extended_wait):
1643 Remove prototypes for newly static functions.
1644
1645 2007-01-08 Ulrich Weigand <uweigand@de.ibm.com>
1646
1647 * gdbarch.sh (value_from_register): New gdbarch function.
1648 * gdbarch.c, gdbarch.h: Regenerate.
1649 * findvar.c (default_value_from_register): New function.
1650 (value_from_register): Use gdbarch_value_from_register.
1651 * value.h (default_value_from_register): Declare.
1652 * spu-tdep.c (spu_convert_register_p, spu_register_to_value,
1653 spu_value_to_register): Remove.
1654 (spu_value_from_register): New function.
1655 (spu_gdbarch_init): Do not call set_gdbarch_convert_register_p,
1656 set_gdbarch_register_to_value, set_gdbarch_value_to_register.
1657 Call set_gdbarch_value_from_register.
1658 * s390-tdep.c (s390_convert_register_p, s390_register_to_value,
1659 s390_value_to_register): Remove.
1660 (s390_value_from_register): New function.
1661 (s390_gdbarch_init): Do not call set_gdbarch_convert_register_p,
1662 set_gdbarch_register_to_value, set_gdbarch_value_to_register.
1663 Call set_gdbarch_value_from_register.
1664
1665 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
1666
1667 * NEWS: Add "set sysroot" and "show sysroot".
1668 * solib.c (solib_absolute_prefix): Delete. Replace
1669 all uses with gdb_sysroot.
1670 (_initialize_solib): Add "set sysroot" and "show sysroot".
1671 Make "solib-absolute-prefix" an alias to it.
1672
1673 2007-01-08 Ulrich Weigand <uweigand@de.ibm.com>
1674
1675 * frame.c (get_frame_register_bytes): New function.
1676 (put_frame_register_bytes): Likewise.
1677 * frame.h (get_frame_register_bytes): Declare.
1678 (put_frame_register_bytes): Likewise.
1679 * findvar.c (value_from_register): Always construct lval_register
1680 values. Use get_frame_register_bytes.
1681 * valops.c (value_assign): Use get_frame_register_bytes and
1682 put_frame_register_bytes.
1683
1684 2007-01-08 Jim Blandy <jimb@codesourcery.com>
1685
1686 * MAINTAINERS: Update Stan Shebs' email address.
1687
1688 2007-01-07 Joel Brobecker <brobecker@adacore.com>
1689
1690 * ada-lang.c (is_known_support_routine): Improve the implementation.
1691
1692 2007-01-06 Joel Brobecker <brobecker@adacore.com>
1693
1694 * ada-lang.c: Add include of source.h.
1695 (is_known_support_routine): Improve the check verifying that the file
1696 associated to this frame exists.
1697 * Makefile.in (ada-lang.o): Add dependency on source.h.
1698
1699 2007-01-07 Jim Blandy <jimb@codesourcery.com>
1700
1701 * ax-general.c (ax_const_l): Select proper opcode for the given
1702 value.
1703
1704 2007-01-05 Vladimir Prus <vladimir@codesourcery.com>
1705
1706 * varobj.c (c_value_of_root): Don't select frame if variable
1707 object is out of scope.
1708
1709 2007-01-05 Nick Roberts <nickrob@snap.net.nz>
1710
1711 * varobj.c (struct varobj): New member print_value.
1712 (install_new_value): Compare last printed value with current one
1713 instead of contents.
1714 (new_variable): Initialize var->print_value to NULL.
1715 (free_variable): Free var->print_value.
1716 (value_get_print_value): New function derived from
1717 c_value_of_variable.
1718 (c_value_of_variable): Use value_get_print_value.
1719
1720 2007-01-05 Joel Brobecker <brobecker@adacore.com>
1721
1722 * i386-tdep.c (i386_analyze_stack_align): Add comment.
1723
1724 2007-01-05 Joel Brobecker <brobecker@adacore.com>
1725
1726 * NEWS: Add entries for new catch commands.
1727
1728 2007-01-05 Joel Brobecker <brobecker@adacore.com>
1729
1730 * dwarf2read.c (partial_die_info): Add field has_byte_size.
1731 (add_partial_symbol): Correct identification of external references.
1732 (process_structure_scope): Likewise.
1733 (read_partial_die): Handle DW_AT_byte_size attribute.
1734
1735 2007-01-05 Daniel Jacobowitz <dan@codesourcery.com>
1736
1737 * xml-support.c (gdb_xml_end_element): Remove wrong backslashes.
1738
1739 2007-01-05 Nick Roberts <nickrob@snap.net.nz>
1740
1741 * varobj.c (get_type_deref): Fix variable objects for references to
1742 pointers.
1743
1744 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
1745
1746 * symtab.c (find_pc_sect_psymtab): Add comments. Handle psymtabs
1747 with no symbols.
1748
1749 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
1750
1751 * memory-map.c (struct_memory_map_parsing_data): Remove most
1752 members. Make property_name an array.
1753 (free_memory_map_parsing_data, memory_map_start_element)
1754 (memory_map_end_element, memory_map_character_data): Delete.
1755 (memory_map_start_memory, memory_map_end_memory)
1756 (memory_map_start_property, memory_map_end_property): New functions.
1757 (property_attributes, memory_children, memory_type_enum)
1758 (memory_attributes, memory_map_children, memory_map_elements): New.
1759 (parse_memory_map): Rewrite.
1760 * xml-support.c (debug_xml): New.
1761 (xml_get_required_attribute, xml_get_integer_attribute)
1762 (xml_get_enum_value, free_xml_parser, make_cleanup_free_xml_parser):
1763 Delete.
1764 (struct scope_level, struct gdb_xml_parser, gdb_xml_body_text)
1765 (gdb_xml_debug, gdb_xml_error, gdb_xml_values_cleanup)
1766 (gdb_xml_start_element, gdb_xml_start_element_wrapper)
1767 (gdb_xml_end_element, gdb_xml_end_element_wrapper, gdb_xml_cleanup)
1768 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse)
1769 (gdb_xml_parse_ulongest, gdb_xml_parse_attr_ulongest)
1770 (gdb_xml_parse_attr_enum, show_debug_xml, _initialize_xml_support):
1771 New.
1772 * xml-support.h (struct gdb_xml_value, gdb_xml_attribute_handler)
1773 (enum gdb_xml_attribute_flag, struct gdb_xml_attribute)
1774 (enum gdb_xml_element_flag, struct gdb_xml_element)
1775 (gdb_xml_element_start_handler, gdb_xml_element_end_handler)
1776 (struct gdb_xml_enum): New.
1777 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse, gdb_xml_debug)
1778 (gdb_xml_error, gdb_xml_parse_attr_ulongest)
1779 (gdb_xml_parse_attr_enum, gdb_xml_parse_ulongest): New prototypes.
1780 (xml_get_required_attribute, xml_get_integer_attribute)
1781 (xml_get_enum_value, make_cleanup_free_xml_parser): Delete prototypes.
1782 * Makefile.in (xml_support_h, xml-support.o): Update.
1783
1784 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
1785
1786 * Makefile.in (eval.o): Update dependencies.
1787 * eval.c: Include "ui-out.h" and "exceptions.h".
1788 (evaluate_subexp_standard): Use TRY_CATCH around value_of_variable.
1789 Use value_zero if an error occurs when avoiding side effects.
1790 * varobj.c (c_value_of_root): Initialize new_val.
1791
1792 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
1793
1794 * varobj.c (varobj_list_children): Stop if the number of children is
1795 unknown.
1796 (c_number_of_children):
1797
1798 2007-01-04 Mark Kettenis <kettenis@gnu.org>
1799
1800 * alpha-tdep.c (alpha_register_name): Use ARRAY_SIZE.
1801 (alpha_read_insn, alpha_skip_prologue, alpha_heuristic_proc_start)
1802 (alpha_heuristic_frame_unwind_cache, alpha_next_pc)
1803 (alpha_gdbarch_init): Use ALPHA_INSN_SIZE, ALPHA_REGISTER_SIZE and
1804 sizeof, instead of hardcoded constants.
1805
1806 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
1807
1808 * CONTRIBUTE: Use sourceware.org.
1809
1810 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
1811
1812 * buildsym.c (start_subfile): Handle producer.
1813 (record_producer): New function.
1814 * buildsym.h (struct subfile): Include producer.
1815 (record_producer): New prototype.
1816 * dwarf2-frame.c (struct dwarf2_cie): Add version and augmentation.
1817 (struct dwarf2_frame_state): Add armcc_cfa_offsets_sf and
1818 armcc_cfa_offsets_reversed.
1819 (execute_cfa_program): Handle armcc_cfa_offsets_sf.
1820 (dwarf2_frame_find_quirks): New function.
1821 (dwarf2_frame_cache): Call it. Handle armcc_cfa_offsets_reversed.
1822 (decode_frame_entry_1): Record the CIE version. Record the
1823 augmentation. Skip armcc augmentations.
1824 * dwarf2read.c (read_file_scope): Save the producer.
1825 * symtab.h (struct symtab): Rename unused version member to
1826 producer.
1827
1828 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
1829
1830 * configure.ac (build_warnings): Use -Wall and
1831 -Wdeclaration-after-statement.
1832 * configure: Regenerated.
1833
1834 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
1835
1836 Simplify access to variours properties of child
1837 variable objects in C.
1838 * varobj.c (value_struct_element_index): New function.
1839 (c_describe_child): New function.
1840 (c_name_of_child, c_value_of_child)
1841 (c_type_of_child): Rewrite to use c_describe_child.
1842
1843 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
1844
1845 gdb/
1846 * varobj.c: Include "vec.h".
1847 (varobj_p): New typedef, declare vector of those.
1848 (struct varobj): Use vector for the 'children' member.
1849 (child_exists): Remove.
1850 (save_child_in_parent): Remove.
1851 (remove_child_from_parent): Remove.
1852 (struct varobj_child): Remove.
1853 (struct vstack): Remove.
1854 (vpush, vpop): Remove.
1855 (varobj_list_children): Adjust to work work vector.
1856 (varobj_update): Likewise. Use vectors for
1857 working stack and result.
1858 (delete_variable_1): Likewise.
1859 * Makefile.in (varobj.o): Update dependencies.
1860
1861 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
1862
1863 Port from Apple's version.
1864 gdb/
1865 * varobj.c (type_changeable): Rename to...
1866 (varobj_value_is_changeable_p): ...this. Adjust all callers.
1867 (is_root_p): New function. Use it everywhere.
1868
1869 2007-01-04 Jim Blandy <jimb@codesourcery.com>
1870
1871 * glibc-tdep.c (glibc_skip_solib_resolver): Look for '_dl_fixup',
1872 then plain 'fixup'.
1873
1874 2007-01-04 Joel Brobecker <brobecker@adacore.com>
1875
1876 * hpread.c (hpread_start_psymtab): Remove unnecessary extern.
1877
1878 2007-01-04 Joel Brobecker <brobecker@adacore.com>
1879
1880 * hpread.c (hpread_type_lookup): Fix compilation failure.
1881
1882 2007-01-04 Qinwei <qinwei@sunnorth.com.cn>
1883
1884 * NEWS: New port to S+core.
1885 * MAINTAINERS (Write After Approval, Responsible Maintainers):
1886 Add myself.
1887
1888 * Makefile.in: Add dependencies for S+core files.
1889 * configure.tgt (score*, score-*-*): Add S+core target.
1890 * config/score/embed.mt: New file.
1891 * score-tdep.c: New file.
1892 * score-tdep.h: New file.
1893
1894 2007-01-04 Joel Brobecker <brobecker@adacore.com>
1895
1896 * ada-lang.c (ada_evaluate_subexp) [OP_TYPE]: Return a value with
1897 the appropriate type rather than a bogus void type.
1898
1899 2007-01-04 Joel Brobecker <brobecker@adacore.com>
1900
1901 * ada-lang.h (ada_find_printable_frame): Remove.
1902 (ada_exception_catchpoint_p, ada_decode_exception_location)
1903 (ada_decode_assert_location): Add declaration.
1904 * ada-lang.c: Add include of annotate.h and valprint.h.
1905 (exception_catchpoint_kind): New enum.
1906 (function_name_from_pc, is_known_support_routine)
1907 (ada_find_printable_frame, ada_unhandled_exception_name_addr)
1908 (ada_exception_name_addr_1, ada_exception_name_addr)
1909 (print_it_exception, print_one_exception, print_mention_exception)
1910 (print_it_catch_exception, print_one_catch_exception)
1911 (print_mention_catch_exception, catch_exception_breakpoint_ops)
1912 (print_it_catch_exception_unhandled)
1913 (print_one_catch_exception_unhandled)
1914 (print_mention_catch_exception_unhandled, print_it_catch_assert)
1915 (print_one_catch_assert, print_mention_catch_assert)
1916 (ada_exception_catchpoint_p, error_breakpoint_runtime_sym_not_found)
1917 (ada_get_next_arg, catch_ada_exception_command_split)
1918 (ada_exception_sym_name, ada_exception_sym_name)
1919 (ada_exception_breakption_ops, ada_exception_catchpoint_cond_string)
1920 (ada_parse_catchpoint_condition, ada_exception_sal)
1921 (ada_decode_exception_location)
1922 (ada_decode_assert_location): New function.
1923 (catch_exception_unhandled_breakpoint_ops): New global variable.
1924 (catch_assert_breakpoint_ops): New global variable.
1925 * breakpoint.c: Add include of ada-lang.h.
1926 (print_one_breakpoint): Do not print the condition for Ada
1927 exception catchpoints.
1928 (create_ada_exception_breakpoint): New function.
1929 (catch_ada_exception_command, catch_assert_command): New function.
1930 (catch_command_1): Add support for the new "catch exception" and
1931 "catch assert" commands.
1932 (_initialize_breakpoint): Add help description for the new catch
1933 commands.
1934 * Makefile.in (ada-lang.o): Add dependency on annotate.h and
1935 valprint.h.
1936 (breakpoint.o): Add dependency on ada-lang.h.
1937
1938 2007-01-03 Pedro Alves <pedro_alves@portugalmail.pt>
1939
1940 * coffread.c (cs_to_section): If bfd_section is found, always
1941 return its section index.
1942 (coff_symtab_read): Determine the minimal_symbol_type using the
1943 bfd_section flags.
1944
1945 2007-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1946 Daniel Jacobowitz <dan@codesourcery.com>
1947
1948 * Makefile.in (top.o): Update.
1949 * top.c (gdb_readline_wrapper_done, gdb_readline_wrapper_result)
1950 (saved_after_char_processing_hook, gdb_readline_wrapper_line)
1951 (struct gdb_readline_wrapper_cleanup, gdb_readline_wrapper_cleanup):
1952 New.
1953 (gdb_readline_wrapper): Rewrite to use asynchronous readline.
1954
1955 2007-01-03 Mark Kettenis <kettenis@gnu.org>
1956
1957 * arm-linux-tdep.c (arm_linux_extract_return_value): Remove.
1958 (arm_linux_init_abi): Don't set deprecated_extract_return_value.
1959
1960 2007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
1961
1962 * ada-lang.c (find_struct_field): Initialize *byte_offset_p.
1963 * breakpoint.c (do_enable_breakpoint): Ignore both mem_cnt and i.
1964 * c-typeprint.c (c_type_print_varspec_suffix): Don't test length
1965 greater than or equal to zero.
1966 * m2-typeprint.c (m2_array): Likewise.
1967 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
1968 * gdbtypes.c (copy_type_recursive): Correct == typo.
1969 * i386-tdep.c (i386_skip_prologue): Remove stray semicolon.
1970 * linux-nat.c (linux_nat_info_proc_cmd): Don't compare a pointer
1971 greater than zero.
1972 * macroscope.c (sal_macro_scope): Don't name a local variable "main".
1973 (default_macro_scope): Remove unused variable.
1974 * prologue-value.h (pv_area_find_reg): Don't name an argument
1975 "register".
1976 * remote-fileio.c (remote_fio_func_map): Add missing braces.
1977 * remote.c (sigint_remote_twice_token, sigint_remote_token): Change
1978 type.
1979 (cleanup_sigint_signal_handler): Remove casts.
1980 * valprint.c (val_print): Use a volatile local for the modified
1981 argument.
1982 * varobj.c (languages): Remove extra array dimension.
1983 (varobj_create): Correct access to languages array.
1984 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Add
1985 missing braces.
1986 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
1987 * mi/mi-cmd-env.c (mi_cmd_env_path, mi_cmd_env_dir): Likewise.
1988 * mi/mi-getopt.c (mi_valid_noargs): Likewise.
1989 * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
1990 (mi_cmd_data_write_memory): Likewise.
1991 * signals/signals.c (target_signal_to_string): Cast to int before
1992 comparing.
1993 * tui/tui-layout.c (init_and_make_win): Take and return a void *.
1994 Update all callers.
1995
1996 2007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
1997
1998 * NEWS: Mention pointer to member improvements.
1999 * Makefile.in (gnu-v3-abi.o): Delete special rule.
2000 (eval.o, gnu-v3-abi.o, ia64-tdep.o): Update.
2001 * ada-valprint.c (ada_print_scalar): Update for new type codes.
2002 * c-typeprint.c (c_print_type): Update for new type codes.
2003 (c_type_print_varspec_prefix, c_type_print_varspec_suffix)
2004 (c_type_print_base): Likewise.
2005 (c_type_print_args): Rewrite.
2006 * c-valprint.c (c_val_print): Update for new type codes. Remove
2007 support for references to members. Treat methods like functions.
2008 * cp-abi.c (cplus_print_method_ptr, cplus_method_ptr_size)
2009 (cplus_make_method_ptr, cplus_method_ptr_to_value): New.
2010 * cp-abi.h (cplus_print_method_ptr, cplus_method_ptr_size)
2011 (cplus_make_method_ptr, cplus_method_ptr_to_value): New prototypes.
2012 (struct cp_abi_ops): Add corresponding members.
2013 * cp-valprint.c (cp_print_class_method): Delete.
2014 (cp_find_class_member): New function.
2015 (cp_print_class_member): Use it. Simplify support for bogus
2016 member pointers.
2017 * dwarf2read.c (quirk_gcc_member_function_pointer): Use
2018 lookup_methodptr_type.
2019 (read_tag_ptr_to_member_type): Likewise, and lookup_memberptr_type.
2020 * eval.c (evaluate_subexp_standard): Implement EVAL_SKIP for
2021 OP_SCOPE. Update call to value_aggregate_elt. Rewrite member
2022 pointer support.
2023 (evaluate_subexp_for_address): Handle OP_SCOPE explicitly. Handle
2024 references returned by user defined operators.
2025 * f-typeprint.c (f_print_type, f_type_print_varspec_prefix)
2026 (f_type_print_varspec_suffix): Remove support for member pointers.
2027 * gdbtypes.c (lookup_memberptr_type): Renamed from lookup_member_type
2028 and adjusted.
2029 (smash_to_memberptr_type): Likewise, from smash_to_member_type.
2030 (lookup_methodptr_type): New.
2031 (rank_one_type): Adjust for TYPE_CODE_MEMBERPTR.
2032 (recursive_dump_type): Update for new types.
2033 * gdbtypes.h (enum type_code): Replace TYPE_CODE_MEMBER with
2034 TYPE_CODE_MEMBERPTR and TYPE_CODE_METHODPTR.
2035 (lookup_memberptr_type, lookup_methodptr_type)
2036 (smash_to_memberptr_type): New prototypes.
2037 (smash_to_method_type): Formatting fix.
2038 (lookup_member_type, smash_to_member_type): Delete prototypes.
2039 * gnu-v3-abi.c (gnuv3_get_vtable, gnuv3_get_virtual_fn): New.
2040 Do not rely on debug information for the vptr or the method's
2041 enclosing type. Handle function descriptors for IA64.
2042 (gnuv3_virtual_fn_field): Rewrite using the new functions.
2043 (gnuv3_find_method_in, gnuv3_print_method_ptr)
2044 (gnuv3_method_ptr_size, gnuv3_make_method_ptr)
2045 (gnuv3_method_ptr_to_value): New.
2046 (init_gnuv3_ops): Set new members of gnu_v3_abi_ops.
2047 * hpread.c (hpread_type_lookup): Update for new types.
2048 * infcall.c (value_arg_coerce): Likewise.
2049 * m2-typeprint.c (m2_print_type): Remove explicit support
2050 for member pointers.
2051 * m2-valprint.c (m2_val_print): Likewise.
2052 * p-typeprint.c (pascal_type_print_varspec_prefix)
2053 (pascal_type_print_varspec_suffix, pascal_type_print_base): Likewise.
2054 * p-valprint.c (pascal_val_print): Likewise.
2055 (pascal_object_print_class_method, pascal_object_print_class_member):
2056 Delete.
2057 * p-lang.h (pascal_object_print_class_method)
2058 (pascal_object_print_class_member): Delete prototypes.
2059 * stabsread.c (read_type): Update for new types.
2060 * typeprint.c (print_type_scalar): Likewise.
2061 * valops.c (value_struct_elt_for_reference, value_namespace_elt)
2062 (value_maybe_namespace_elt, value_aggregate_elt): Add want_address
2063 argument. Construct a pointer to member if the address of a
2064 function or data member is requested.
2065 (value_cast_pointers): Don't modify the input value.
2066 (value_cast): Adjust pointer to member handling for new types.
2067 Allow null pointer to member constants. Don't modify the input
2068 value.
2069 (value_ind): Remove pointer to member check. Handle function
2070 descriptors for function pointers.
2071 (value_struct_elt, value_find_oload_method_list, check_field):
2072 Remove pointer to member checks.
2073 * value.c (unpack_long): Allow pointers to data members.
2074 (value_from_longest): Allow member pointers.
2075 * value.h (value_aggregate_elt): Add want_address.
2076 * varobj.c (c_variable_editable): Remove check for members.
2077 * gdbarch.sh: Add vtable_function_descriptors and vbit_in_delta.
2078 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Handle descriptors
2079 in virtual tables.
2080 (ia64_gdbarch_init): Call set_gdbarch_vtable_function_descriptors.
2081 * c-lang.h (cp_print_class_method): Delete prototype.
2082 * arm-tdep.c (arm_gdbarch_init): Call set_gdbarch_vbit_in_delta.
2083 * mips-tdep.c (mips_gdbarch_init): Likewise.
2084 * gdbarch.c, gdbarch.h: Regenerated.
2085
2086 2007-01-01 Mark Kettenis <kettenis@gnu.org>
2087
2088 * rs6000-tdep.c (rs6000_use_struct_convention)
2089 (rs6000_extract_return_value, rs6000_store_return_value)
2090 (rs6000_extract_struct_value_address): Remove.
2091 (rs6000_return_value): New function.
2092 (rs6000_gdbarch_init): Don't set deprecated_extract_return_value,
2093 store_return_value, deprecated_extract_struct_value_address and
2094 deprecated_use_struct_convention. Use rs6000_return_value
2095 instead.
2096
2097 2007-01-02 Nick Roberts <nickrob@snap.net.nz>
2098
2099 * mi/mi-cmds.c (mi_cmds): Remove entries for -display-delete,
2100 -display-disable, -display-enable, -display-insert and
2101 -display-list.
2102
2103 2007-01-01 Joel Brobecker <brobecker@adacore.com>
2104
2105 * breakpoint.c (remove_breakpoint): Remove dead code.
2106
2107 2007-01-01 Nick Roberts <nickrob@snap.net.nz>
2108
2109 * varobj.c: Include block.h.
2110 (c_value_of_root): Check scope within nested statements.
2111
2112 2007-01-01 Mark Kettenis <kettenis@gnu.org>
2113
2114 * mi/mi-main.c (mi_cmd_data_write_register_values): Use
2115 regcache_cooked_write_signed instead of
2116 deprecated_write_register_bytes.
2117
2118 2007-01-01 Joel Brobecker <brobecker@adacore.com>
2119
2120 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2006.
2121
2122 2007-01-01 Joel Brobecker <brobecker@adacore.com>
2123
2124 Followed the Start of New Year Procedure:
2125 * ChangeLog-2006: New file, containing all the entries for 2006.
2126 * ChangeLog: Removed all 2006 entries, and changed the reference
2127 to the previous ChangeLog to point to ChangeLog 2006.
2128 * top.c (print_gdb_version): Update copyright year.
2129
2130 2007-01-01 Mark Kettenis <kettenis@gnu.org>
2131
2132 * Makefile.in (remote-sds.o): Remove.
2133 * remote-sds.c: Delete.
2134
2135 For older changes see ChangeLog-2006.
2136 \f
2137 Local Variables:
2138 mode: change-log
2139 left-margin: 8
2140 fill-column: 74
2141 version-control: never
2142 End:
This page took 0.07145 seconds and 5 git commands to generate.