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