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