]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
* varobj.c (varobj_list_children): Stop if the number of children is
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
74a44383
DJ
12007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
2
3 * varobj.c (varobj_list_children): Stop if the number of children is
4 unknown.
5 (c_number_of_children):
6
e8d2d628
MK
72007-01-04 Mark Kettenis <kettenis@gnu.org>
8
9 * alpha-tdep.c (alpha_register_name): Use ARRAY_SIZE.
10 (alpha_read_insn, alpha_skip_prologue, alpha_heuristic_proc_start)
11 (alpha_heuristic_frame_unwind_cache, alpha_next_pc)
12 (alpha_gdbarch_init): Use ALPHA_INSN_SIZE, ALPHA_REGISTER_SIZE and
13 sizeof, instead of hardcoded constants.
14
c941839d
DJ
152007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
16
17 * CONTRIBUTE: Use sourceware.org.
18
303b6f5d 192007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
2d0720d9 20
303b6f5d
DJ
21 * buildsym.c (start_subfile): Handle producer.
22 (record_producer): New function.
23 * buildsym.h (struct subfile): Include producer.
24 (record_producer): New prototype.
25 * dwarf2-frame.c (struct dwarf2_cie): Add version and augmentation.
26 (struct dwarf2_frame_state): Add armcc_cfa_offsets_sf and
27 armcc_cfa_offsets_reversed.
28 (execute_cfa_program): Handle armcc_cfa_offsets_sf.
29 (dwarf2_frame_find_quirks): New function.
30 (dwarf2_frame_cache): Call it. Handle armcc_cfa_offsets_reversed.
31 (decode_frame_entry_1): Record the CIE version. Record the
32 augmentation. Skip armcc augmentations.
33 * dwarf2read.c (read_file_scope): Save the producer.
34 * symtab.h (struct symtab): Rename unused version member to
35 producer.
2d0720d9 36
aa79a185
DJ
372007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
38
39 * configure.ac (build_warnings): Use -Wall and
40 -Wdeclaration-after-statement.
41 * configure: Regenerated.
42
bbec2603
VP
432007-01-04 Vladimir Prus <vladimir@codesourcery.com>
44
45 Simplify access to variours properties of child
46 variable objects in C.
47 * varobj.c (value_struct_element_index): New function.
48 (c_describe_child): New function.
49 (c_name_of_child, c_value_of_child)
50 (c_type_of_child): Rewrite to use c_describe_child.
51
28335dcc
VP
522007-01-04 Vladimir Prus <vladimir@codesourcery.com>
53
54 gdb/
55 * varobj.c: Include "vec.h".
56 (varobj_p): New typedef, declare vector of those.
57 (struct varobj): Use vector for the 'children' member.
58 (child_exists): Remove.
59 (save_child_in_parent): Remove.
60 (remove_child_from_parent): Remove.
61 (struct varobj_child): Remove.
62 (struct vstack): Remove.
63 (vpush, vpop): Remove.
64 (varobj_list_children): Adjust to work work vector.
65 (varobj_update): Likewise. Use vectors for
66 working stack and result.
67 (delete_variable_1): Likewise.
68 * Makefile.in (varobj.o): Update dependencies.
69
b2c2bd75
VP
702007-01-04 Vladimir Prus <vladimir@codesourcery.com>
71
72 Port from Apple's version.
73 gdb/
74 * varobj.c (type_changeable): Rename to...
75 (varobj_value_is_changeable_p): ...this. Adjust all callers.
76 (is_root_p): New function. Use it everywhere.
77
f7e97bb3
VP
782007-01-04 Vladimir Prus <vladimir@codesourcery.com>
79
80 Simplify usage of mi_continue_to.
81 * lib/mi-support.exp (mi_runto_helper): Renamed
82 from mi_runto, added new parameter 'run_or_continue'.
83 (mi_runto): Use mi_runto_helper.
84 (mi_continue_to): Accept just function name as parameter.
85 Use mi_runto_helper.
86 * gdb.mi/mi-var-cmd.exp: Adjust to changes.
87 * gdb.mi/mi2-var-cmd.exp: Likewise.
88
bdfb3870
JB
892007-01-04 Jim Blandy <jimb@codesourcery.com>
90
91 * glibc-tdep.c (glibc_skip_solib_resolver): Look for '_dl_fixup',
92 then plain 'fixup'.
93
5d15052e
JB
942007-01-04 Joel Brobecker <brobecker@adacore.com>
95
96 * hpread.c (hpread_start_psymtab): Remove unnecessary extern.
97
53103997
JB
982007-01-04 Joel Brobecker <brobecker@adacore.com>
99
100 * hpread.c (hpread_type_lookup): Fix compilation failure.
101
27fd2f50
Q
1022007-01-04 Qinwei <qinwei@sunnorth.com.cn>
103
104 * NEWS: New port to S+core.
105 * MAINTAINERS (Write After Approval, Responsible Maintainers):
106 Add myself.
107
108 * Makefile.in: Add dependencies for S+core files.
109 * configure.tgt (score*, score-*-*): Add S+core target.
110 * config/score/embed.mt: New file.
111 * score-tdep.c: New file.
112 * score-tdep.h: New file.
113
a6cfbe68
JB
1142007-01-04 Joel Brobecker <brobecker@adacore.com>
115
116 * ada-lang.c (ada_evaluate_subexp) [OP_TYPE]: Return a value with
117 the appropriate type rather than a bogus void type.
118
67cf15b7 1192007-01-04 Joel Brobecker <brobecker@adacore.com>
f7f9143b
JB
120
121 * ada-lang.h (ada_find_printable_frame): Remove.
122 (ada_exception_catchpoint_p, ada_decode_exception_location)
123 (ada_decode_assert_location): Add declaration.
124 * ada-lang.c: Add include of annotate.h and valprint.h.
125 (exception_catchpoint_kind): New enum.
126 (function_name_from_pc, is_known_support_routine)
127 (ada_find_printable_frame, ada_unhandled_exception_name_addr)
128 (ada_exception_name_addr_1, ada_exception_name_addr)
129 (print_it_exception, print_one_exception, print_mention_exception)
130 (print_it_catch_exception, print_one_catch_exception)
131 (print_mention_catch_exception, catch_exception_breakpoint_ops)
132 (print_it_catch_exception_unhandled)
133 (print_one_catch_exception_unhandled)
134 (print_mention_catch_exception_unhandled, print_it_catch_assert)
135 (print_one_catch_assert, print_mention_catch_assert)
136 (ada_exception_catchpoint_p, error_breakpoint_runtime_sym_not_found)
137 (ada_get_next_arg, catch_ada_exception_command_split)
138 (ada_exception_sym_name, ada_exception_sym_name)
139 (ada_exception_breakption_ops, ada_exception_catchpoint_cond_string)
140 (ada_parse_catchpoint_condition, ada_exception_sal)
141 (ada_decode_exception_location)
142 (ada_decode_assert_location): New function.
143 (catch_exception_unhandled_breakpoint_ops): New global variable.
144 (catch_assert_breakpoint_ops): New global variable.
145 * breakpoint.c: Add include of ada-lang.h.
146 (print_one_breakpoint): Do not print the condition for Ada
147 exception catchpoints.
148 (create_ada_exception_breakpoint): New function.
149 (catch_ada_exception_command, catch_assert_command): New function.
150 (catch_command_1): Add support for the new "catch exception" and
151 "catch assert" commands.
152 (_initialize_breakpoint): Add help description for the new catch
153 commands.
154 * Makefile.in (ada-lang.o): Add dependency on annotate.h and
155 valprint.h.
156 (breakpoint.o): Add dependency on ada-lang.h.
157
05cfdb42
DJ
1582007-01-03 Pedro Alves <pedro_alves@portugalmail.pt>
159
160 * coffread.c (cs_to_section): If bfd_section is found, always
161 return its section index.
162 (coff_symtab_read): Determine the minimal_symbol_type using the
163 bfd_section flags.
164
2e03ee74
DJ
1652007-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
166 Daniel Jacobowitz <dan@codesourcery.com>
167
168 * Makefile.in (top.o): Update.
169 * top.c (gdb_readline_wrapper_done, gdb_readline_wrapper_result)
170 (saved_after_char_processing_hook, gdb_readline_wrapper_line)
171 (struct gdb_readline_wrapper_cleanup, gdb_readline_wrapper_cleanup):
172 New.
173 (gdb_readline_wrapper): Rewrite to use asynchronous readline.
174
1c63d086
MK
1752007-01-03 Mark Kettenis <kettenis@gnu.org>
176
177 * arm-linux-tdep.c (arm_linux_extract_return_value): Remove.
178 (arm_linux_init_abi): Don't set deprecated_extract_return_value.
179
d5d6fca5
DJ
1802007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
181
182 * ada-lang.c (find_struct_field): Initialize *byte_offset_p.
183 * breakpoint.c (do_enable_breakpoint): Ignore both mem_cnt and i.
184 * c-typeprint.c (c_type_print_varspec_suffix): Don't test length
185 greater than or equal to zero.
186 * m2-typeprint.c (m2_array): Likewise.
187 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
188 * gdbtypes.c (copy_type_recursive): Correct == typo.
189 * i386-tdep.c (i386_skip_prologue): Remove stray semicolon.
190 * linux-nat.c (linux_nat_info_proc_cmd): Don't compare a pointer
191 greater than zero.
192 * macroscope.c (sal_macro_scope): Don't name a local variable "main".
193 (default_macro_scope): Remove unused variable.
194 * prologue-value.h (pv_area_find_reg): Don't name an argument
195 "register".
196 * remote-fileio.c (remote_fio_func_map): Add missing braces.
197 * remote.c (sigint_remote_twice_token, sigint_remote_token): Change
198 type.
199 (cleanup_sigint_signal_handler): Remove casts.
200 * valprint.c (val_print): Use a volatile local for the modified
201 argument.
202 * varobj.c (languages): Remove extra array dimension.
203 (varobj_create): Correct access to languages array.
204 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Add
205 missing braces.
206 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
207 * mi/mi-cmd-env.c (mi_cmd_env_path, mi_cmd_env_dir): Likewise.
208 * mi/mi-getopt.c (mi_valid_noargs): Likewise.
209 * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
210 (mi_cmd_data_write_memory): Likewise.
211 * signals/signals.c (target_signal_to_string): Cast to int before
212 comparing.
213 * tui/tui-layout.c (init_and_make_win): Take and return a void *.
214 Update all callers.
215
0d5de010
DJ
2162007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
217
218 * NEWS: Mention pointer to member improvements.
219 * Makefile.in (gnu-v3-abi.o): Delete special rule.
220 (eval.o, gnu-v3-abi.o, ia64-tdep.o): Update.
221 * ada-valprint.c (ada_print_scalar): Update for new type codes.
222 * c-typeprint.c (c_print_type): Update for new type codes.
223 (c_type_print_varspec_prefix, c_type_print_varspec_suffix)
224 (c_type_print_base): Likewise.
225 (c_type_print_args): Rewrite.
226 * c-valprint.c (c_val_print): Update for new type codes. Remove
227 support for references to members. Treat methods like functions.
228 * cp-abi.c (cplus_print_method_ptr, cplus_method_ptr_size)
229 (cplus_make_method_ptr, cplus_method_ptr_to_value): New.
230 * cp-abi.h (cplus_print_method_ptr, cplus_method_ptr_size)
231 (cplus_make_method_ptr, cplus_method_ptr_to_value): New prototypes.
232 (struct cp_abi_ops): Add corresponding members.
233 * cp-valprint.c (cp_print_class_method): Delete.
234 (cp_find_class_member): New function.
235 (cp_print_class_member): Use it. Simplify support for bogus
236 member pointers.
237 * dwarf2read.c (quirk_gcc_member_function_pointer): Use
238 lookup_methodptr_type.
239 (read_tag_ptr_to_member_type): Likewise, and lookup_memberptr_type.
240 * eval.c (evaluate_subexp_standard): Implement EVAL_SKIP for
241 OP_SCOPE. Update call to value_aggregate_elt. Rewrite member
242 pointer support.
243 (evaluate_subexp_for_address): Handle OP_SCOPE explicitly. Handle
244 references returned by user defined operators.
245 * f-typeprint.c (f_print_type, f_type_print_varspec_prefix)
246 (f_type_print_varspec_suffix): Remove support for member pointers.
247 * gdbtypes.c (lookup_memberptr_type): Renamed from lookup_member_type
248 and adjusted.
249 (smash_to_memberptr_type): Likewise, from smash_to_member_type.
250 (lookup_methodptr_type): New.
251 (rank_one_type): Adjust for TYPE_CODE_MEMBERPTR.
252 (recursive_dump_type): Update for new types.
253 * gdbtypes.h (enum type_code): Replace TYPE_CODE_MEMBER with
254 TYPE_CODE_MEMBERPTR and TYPE_CODE_METHODPTR.
255 (lookup_memberptr_type, lookup_methodptr_type)
256 (smash_to_memberptr_type): New prototypes.
257 (smash_to_method_type): Formatting fix.
258 (lookup_member_type, smash_to_member_type): Delete prototypes.
259 * gnu-v3-abi.c (gnuv3_get_vtable, gnuv3_get_virtual_fn): New.
260 Do not rely on debug information for the vptr or the method's
261 enclosing type. Handle function descriptors for IA64.
262 (gnuv3_virtual_fn_field): Rewrite using the new functions.
263 (gnuv3_find_method_in, gnuv3_print_method_ptr)
264 (gnuv3_method_ptr_size, gnuv3_make_method_ptr)
265 (gnuv3_method_ptr_to_value): New.
266 (init_gnuv3_ops): Set new members of gnu_v3_abi_ops.
267 * hpread.c (hpread_type_lookup): Update for new types.
268 * infcall.c (value_arg_coerce): Likewise.
269 * m2-typeprint.c (m2_print_type): Remove explicit support
270 for member pointers.
271 * m2-valprint.c (m2_val_print): Likewise.
272 * p-typeprint.c (pascal_type_print_varspec_prefix)
273 (pascal_type_print_varspec_suffix, pascal_type_print_base): Likewise.
274 * p-valprint.c (pascal_val_print): Likewise.
275 (pascal_object_print_class_method, pascal_object_print_class_member):
276 Delete.
277 * p-lang.h (pascal_object_print_class_method)
278 (pascal_object_print_class_member): Delete prototypes.
279 * stabsread.c (read_type): Update for new types.
280 * typeprint.c (print_type_scalar): Likewise.
281 * valops.c (value_struct_elt_for_reference, value_namespace_elt)
282 (value_maybe_namespace_elt, value_aggregate_elt): Add want_address
283 argument. Construct a pointer to member if the address of a
284 function or data member is requested.
285 (value_cast_pointers): Don't modify the input value.
286 (value_cast): Adjust pointer to member handling for new types.
287 Allow null pointer to member constants. Don't modify the input
288 value.
289 (value_ind): Remove pointer to member check. Handle function
290 descriptors for function pointers.
291 (value_struct_elt, value_find_oload_method_list, check_field):
292 Remove pointer to member checks.
293 * value.c (unpack_long): Allow pointers to data members.
294 (value_from_longest): Allow member pointers.
295 * value.h (value_aggregate_elt): Add want_address.
296 * varobj.c (c_variable_editable): Remove check for members.
297 * gdbarch.sh: Add vtable_function_descriptors and vbit_in_delta.
298 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Handle descriptors
299 in virtual tables.
300 (ia64_gdbarch_init): Call set_gdbarch_vtable_function_descriptors.
301 * c-lang.h (cp_print_class_method): Delete prototype.
302 * arm-tdep.c (arm_gdbarch_init): Call set_gdbarch_vbit_in_delta.
303 * mips-tdep.c (mips_gdbarch_init): Likewise.
304 * gdbarch.c, gdbarch.h: Regenerated.
305
d217aaed
MK
3062007-01-01 Mark Kettenis <kettenis@gnu.org>
307
308 * rs6000-tdep.c (rs6000_use_struct_convention)
309 (rs6000_extract_return_value, rs6000_store_return_value)
310 (rs6000_extract_struct_value_address): Remove.
311 (rs6000_return_value): New function.
312 (rs6000_gdbarch_init): Don't set deprecated_extract_return_value,
313 store_return_value, deprecated_extract_struct_value_address and
314 deprecated_use_struct_convention. Use rs6000_return_value
315 instead.
316
02296b29
NR
3172007-01-02 Nick Roberts <nickrob@snap.net.nz>
318
319 * mi/mi-cmds.c (mi_cmds): Remove entries for -display-delete,
320 -display-disable, -display-enable, -display-insert and
321 -display-list.
322
ce186b30
JB
3232006-01-01 Joel Brobecker <brobecker@adacore.com>
324
325 * breakpoint.c (remove_breakpoint): Remove dead code.
326
3272007-01-01 Nick Roberts <nickrob@snap.net.nz>
ab9245ed
NR
328
329 * varobj.c: Include block.h.
330 (c_value_of_root): Check scope within nested statements.
331
9f3a1602
MK
3322007-01-01 Mark Kettenis <kettenis@gnu.org>
333
334 * mi/mi-main.c (mi_cmd_data_write_register_values): Use
335 regcache_cooked_write_signed instead of
336 deprecated_write_register_bytes.
337
12349ccd
JB
3382007-01-01 Joel Brobecker <brobecker@adacore.com>
339
340 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2006.
341
8c48ebcf
JB
3422007-01-01 Joel Brobecker <brobecker@adacore.com>
343
344 Followed the Start of New Year Procedure:
345 * ChangeLog-2006: New file, containing all the entries for 2006.
346 * ChangeLog: Removed all 2006 entries, and changed the reference
347 to the previous ChangeLog to point to ChangeLog 2006.
348 * top.c (print_gdb_version): Update copyright year.
349
154927ff
MK
3502007-01-01 Mark Kettenis <kettenis@gnu.org>
351
352 * Makefile.in (remote-sds.o): Remove.
353 * remote-sds.c: Delete.
354
8c48ebcf 355For older changes see ChangeLog-2006.
c906108c
SS
356\f
357Local Variables:
358mode: change-log
359left-margin: 8
360fill-column: 74
361version-control: never
362End: