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