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