]>
Commit | Line | Data |
---|---|---|
25db0f1b UW |
1 | 2008-08-22 Ulrich Weigand <[email protected]> |
2 | ||
3 | * breakpoint.c (create_overlay_event_breakpoint): Rename to ... | |
4 | (create_overlay_event_breakpoint_1): ... this. Add OBJFILE parameter. | |
5 | (create_overlay_event_breakpoint): Loop over all objfiles to install | |
6 | multiple instances of the overlay event breakpoint if present. | |
7 | ||
0391f248 UW |
8 | 2008-08-22 Ulrich Weigand <[email protected]> |
9 | ||
10 | * spu-tdep.c (spu_overlay_new_objfile): Only consider SPU objfiles. | |
11 | (info_spu_event_command): Command only supported on SPU architecture. | |
12 | (info_spu_signal_command): Likewise. | |
13 | (info_spu_mailbox_command): Likewise. | |
14 | (info_spu_dma_command): Likewise. | |
15 | (info_spu_proxydma_command): Likewise. | |
16 | ||
24a73cce UW |
17 | 2008-08-22 Ulrich Weigand <[email protected]> |
18 | ||
19 | * infrun.c (adjust_pc_after_break): Do not call get_thread_regcache | |
20 | if the thread has already exited. | |
21 | ||
e0bb1c1c PA |
22 | 2008-08-22 Pedro Alves <[email protected]> |
23 | ||
24 | * infrun.c (proceed): Move back setting previous_inferior_ptid | |
25 | from here ... | |
26 | (wait_for_inferior): ... to here. | |
27 | (fetch_inferior_event): ... and here. | |
28 | ||
a3ecef73 UW |
29 | 2008-08-21 Ulrich Weigand <[email protected]> |
30 | ||
31 | * gdbarch.sh: Include "regcache.h" into gdbarch.c. | |
32 | (deprecated_current_gdbarch_select_hack): Call registers_changed | |
33 | instead of reinit_frame_cache. | |
34 | * gdbarch.c: Regenerate. | |
35 | ||
45148c2e UW |
36 | 2008-08-21 Ulrich Weigand <[email protected]> |
37 | ||
38 | * elfread.c (elf_symtab_read): Do not relocate thread-local symbols. | |
39 | ||
6a94242b DJ |
40 | 2008-08-21 Daniel Jacobowitz <[email protected]> |
41 | ||
42 | * xcoffread.c (SYMNAME_ALLOC): Correct syntax. | |
43 | ||
5045add0 UW |
44 | 2008-08-21 Ulrich Weigand <[email protected]> |
45 | ||
46 | * findvar.c (locate_var_value): Do not call get_frame_arch | |
47 | with a NULL frame argument. | |
48 | ||
029a67e4 UW |
49 | 2008-08-21 Ulrich Weigand <[email protected]> |
50 | ||
51 | * frame.h (frame_map_regnum_to_name): Remove prototype. | |
52 | (frame_map_name_to_regnum): Remove prototype. | |
53 | * frame.c (frame_map_regnum_to_name): Remove. | |
54 | (frame_map_name_to_regnum): Remove. | |
55 | (frame_unwind_register_value): Use user_reg_map_regnum_to_name | |
56 | instead of frame_map_regnum_to_name. | |
57 | * ax-gdb.c: Include "user-regs.h". | |
58 | (gen_expr): Use user_reg_map_name_to_regnum instead of | |
59 | frame_map_name_to_regnum. | |
60 | * eval.c: Include "user-regs.h". | |
61 | (evaluate_subexp_standard): Use user_reg_map_name_to_regnum | |
62 | instead of frame_map_name_to_regnum. | |
63 | * infcmd.c (registers_info): Likewise. | |
64 | * parse.c: Include "user-regs.h". | |
65 | (write_dollar_variable): Use user_reg_map_name_to_regnum | |
66 | instead of frame_map_name_to_regnum. | |
67 | * tracepoint.c: Include "user-regs.h". | |
68 | (encode_actions): Use user_reg_map_name_to_regnum | |
69 | instead of frame_map_name_to_regnum. | |
70 | * valops.c: Include "user-regs.h". | |
71 | (value_fetch_lazy): Use user_reg_map_regnum_to_name instead | |
72 | of frame_map_regnum_to_name. | |
73 | ||
e84ee240 UW |
74 | 2008-08-21 Ulrich Weigand <[email protected]> |
75 | ||
76 | * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Read | |
77 | and manually relocate .opd contents from BFD instead of reading | |
78 | them from target memory. | |
79 | ||
0114d602 DJ |
80 | 2008-08-21 Daniel Jacobowitz <[email protected]> |
81 | ||
82 | * dwarf2read.c (processing_current_prefix): Delete static | |
83 | variable. | |
84 | (process_full_comp_unit): Do not set processing_current_prefix. | |
85 | (dwarf2_full_name): New function. | |
86 | (read_func_scope): Do not set processing_current_prefix. Use | |
87 | determine_prefix. | |
88 | (read_structure_type): Do not set processing_current_prefix. Remove | |
89 | unused inner cleanup. | |
90 | (process_structure_scope): Do not set processing_current_prefix. | |
91 | (read_enumeration_type): Use dwarf2_full_name. | |
92 | (determine_class_name): Return a const char *. Put the result | |
93 | on the objfile obstack. Use dwarf2_full_name. | |
94 | (read_namespace_type): New function. | |
95 | (read_namespace): Do not create the type here. Use | |
96 | determine_prefix. | |
97 | (read_typedef): Use dwarf2_full_name. Do not pass the name | |
98 | to init_type. | |
99 | (read_base_type): Do not pass the name to init_type. Handle | |
100 | TYPE_FLAG_NOSIGN. | |
101 | (read_unspecified_type): Do not pass the name to init_type. | |
102 | (new_symbol): Use dwarf2_full_name instead of | |
103 | processing_current_prefix. | |
104 | (read_type_die): Do not set processing_current_prefix. Handle | |
105 | DW_TAG_namespace. | |
106 | (determine_prefix): Handle specifications. Return the result | |
107 | on the objfile obstack. Handle unions correctly. | |
108 | ||
df8a16a1 DJ |
109 | 2008-08-21 Daniel Jacobowitz <[email protected]> |
110 | ||
111 | * buildsym.c (add_symbol_to_list): Do not call | |
112 | cp_scan_for_anonymous_namespaces here. | |
113 | (finish_block): Do not call cp_set_block_scope here. | |
114 | * cp-namespace.c (processing_has_namespace_info) | |
115 | (processing_current_prefix): Delete. | |
116 | (cp_initialize_namespace): Do not initialize | |
117 | processing_has_namespace_info. | |
118 | (cp_scan_for_anonymous_namespaces): Use SYMBOL_DEMANGLED_NAME. Do | |
119 | not check processing_has_namespace_info. | |
120 | (cp_set_block_scope): Take prefix and namespace info flag as | |
121 | arguments. Honor namespaces regardless of a demangled name. | |
122 | * cp-support.h (processing_has_namespace_info) | |
123 | (processing_current_prefix): Delete declarations. | |
124 | (cp_set_block_scope): Update prototype. | |
125 | * dwarf2read.c (processing_has_namespace_info) | |
126 | (processing_current_prefix): New static variables. | |
127 | (read_file_scope): Initialize processing_has_namespace_info. | |
128 | (read_func_scope): Call cp_set_block_scope for C++. | |
129 | (new_symbol): Call cp_scan_for_anonymous_namespaces for C++. | |
130 | * symtab.c (symbol_demangled_name): Accept a const argument. | |
131 | * symtab.h (symbol_demangled_name): Update prototype. | |
132 | ||
3567439c DJ |
133 | 2008-08-21 Daniel Jacobowitz <[email protected]> |
134 | ||
135 | * ax-gdb.c (gen_var_ref): Use SYMBOL_LINKAGE_NAME. | |
136 | * blockframe.c (find_pc_partial_function): Likewise. | |
137 | * buildsym.c (find_symbol_in_list): Likewise. | |
138 | * c-valprint.c (c_val_print): Likewise. | |
139 | * coffread.c (patch_opaque_types, process_coff_symbol): Likewise. | |
140 | (coff_read_enum_type): Likewise. Use SYMBOL_SET_LINKAGE_NAME. | |
141 | * cp-support.c (cp_remove_params): Renamed from remove_params and | |
142 | made global. | |
143 | (overload_list_add_symbol): Update call to remove_params. | |
144 | * cp-support.h (cp_remove_params): Declare. | |
145 | * dwarf2read.c (process_enumeration_scope): Use SYMBOL_LINKAGE_NAME. | |
146 | (dwarf2_const_value): Use SYMBOL_PRINT_NAME. | |
147 | * expprint.c (dump_subexp_body_standard): Likewise. | |
148 | * f-valprint.c (info_common_command, there_is_a_visible_common_named): | |
149 | Use SYMBOL_LINKAGE_NAME to find symbols and SYMBOL_PRINT_NAME | |
150 | for messages. | |
151 | * findvar.c (read_var_value): Use SYMBOL_LINKAGE_NAME. | |
152 | * gnu-v2-abi.c (gnuv2_value_rtti_type): Likewise. | |
153 | * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline) | |
154 | (hppa_hpux_skip_trampoline_code): Use SYMBOL_LINKAGE_NAME to find | |
155 | symbols and SYMBOL_PRINT_NAME for messages. | |
156 | * jv-lang.c (add_class_symbol): Use SYMBOL_SET_LINKAGE_NAME. | |
157 | * linespec.c (decode_line_2): Use SYMBOL_LINKAGE_NAME. | |
158 | * mdebugread.c (parse_symbol): Use SYMBOL_LINKAGE_NAME and | |
159 | SYMBOL_SET_LINKAGE_NAME. | |
160 | (mylookup_symbol): Use SYMBOL_LINKAGE_NAME. | |
161 | * minsyms.c (add_minsym_to_demangled_hash_table): Use | |
162 | SYMBOL_SEARCH_NAME. | |
163 | (lookup_minimal_symbol): Use SYMBOL_LINKAGE_NAME or | |
164 | SYMBOL_MATCHES_SEARCH_NAME, depending on the pass. | |
165 | * objfiles.h (ALL_OBJFILE_MSYMBOLS): Use SYMBOL_LINKAGE_NAME. | |
166 | * printcmd.c (build_address_symbolic): Use SYMBOL_LINKAGE_NAME. | |
167 | (address_info): Use SYMBOL_PRINT_NAME for messages and | |
168 | SYMBOL_LINKAGE_NAME for lookups. | |
169 | * sol-thread.c (info_cb): Use SYMBOL_PRINT_NAME for messages. | |
170 | * stabsread.c (patch_block_stabs, define_symbol) | |
171 | (read_type, read_enum_type, common_block_end) | |
172 | (cleanup_undefined_types_1, scan_file_globals): Use | |
173 | SYMBOL_LINKAGE_NAME, SYMBOL_SET_LINKAGE_NAME, ALL_OBJFILE_MSYMBOLS, | |
174 | and SYMBOL_PRINT_NAME. | |
175 | * stack.c (print_frame_args): Use SYMBOL_LINKAGE_NAME. | |
176 | (print_frame, frame_info): Use SYMBOL_PRINT_NAME for output. Use | |
177 | cp_remove_params instead of cplus_demangle. | |
178 | (print_block_frame_labels, print_frame_arg_vars): Use | |
179 | SYMBOL_LINKAGE_NAME. | |
180 | * symmisc.c (dump_msymbols): Use ALL_OBJFILE_MSYMBOLS and | |
181 | SYMBOL_LINKAGE_NAME. | |
182 | (dump_symtab_1, print_symbol, print_partial_symbols) | |
183 | (maintenance_check_symtabs): Use SYMBOL_LINKAGE_NAME. | |
184 | * symtab.h (DEPRECATED_SYMBOL_NAME): Delete. | |
185 | (SYMBOL_SET_LINKAGE_NAME): New. | |
186 | (SYMBOL_SET_NAMES): Add a comment. | |
187 | * tracepoint.c (set_traceframe_context, validate_actionline) | |
188 | (collect_symbol, scope_info): Use SYMBOL_LINKAGE_NAME for | |
189 | lookups and SYMBOL_PRINT_NAME for output. | |
190 | * typeprint.c (typedef_print): Use SYMBOL_LINKAGE_NAME. | |
191 | * xcoffread.c (process_xcoff_symbol): Use SYMBOL_SET_LINKAGE_NAME. | |
192 | ||
aded6f54 PA |
193 | 2008-08-21 Pedro Alves <[email protected]> |
194 | ||
195 | * arm-tdep.c (arm_pc_is_thumb): Use obj_section_addr. | |
196 | * hppa-hpux-tdep.c (hppa_hpux_find_dummy_bpaddr): Likewise. | |
197 | * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Use | |
198 | obj_section_addr and obj_section_endaddr. | |
199 | * hppa-tdep.c (hppa64_convert_code_addr_to_fptr): Likewise. | |
200 | * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise. | |
201 | * ia64-tdep.c (ia64_find_global_pointer): Likewise. | |
202 | (find_extant_func_descr): Likewise. | |
203 | * solib-frv.c (frv_relocate_main_executable): Use | |
204 | obj_section_addr. | |
205 | * xstormy16-tdep.c (xstormy16_find_jmp_table_entry): Use | |
206 | obj_section_addr and obj_section_endaddr. | |
207 | ||
158c7665 PH |
208 | 2008-08-21 Paul N. Hilfinger <[email protected]> |
209 | ||
210 | * NEWS: Amplify last entry on boolean types in Ada. | |
211 | ||
f2f0e013 DJ |
212 | 2008-08-20 Daniel Jacobowitz <[email protected]> |
213 | ||
214 | * dwarf2read.c (die_specification, dwarf2_extension, follow_die_ref): | |
215 | Make the dwarf2_cu * parameter output as well as input. Update it if | |
216 | we follow a reference to another CU. | |
217 | (read_func_scope, determine_class_name, namespace_name, dwarf2_attr) | |
218 | (die_type, die_containing_type): Update calls to changed functions. | |
219 | Use the returned CU along with the returned DIE. | |
220 | (read_namespace): Use dwarf2_attr instead of dwarf2_extension. | |
221 | ||
03dd20cc DJ |
222 | 2008-08-20 Daniel Jacobowitz <[email protected]> |
223 | ||
224 | * dwarf2read.c (queue_comp_unit): Take an objfile argument. Read | |
225 | in the DIEs here. | |
226 | (process_queue): Do not read in the DIEs here. | |
227 | (psymtab_to_symtab_1): Update call to queue_comp_unit. | |
228 | (read_full_die): Do not call queue_comp_unit from here. | |
229 | (maybe_queue_comp_unit): New function. | |
230 | (follow_die_ref): Use it. | |
231 | ||
b60c80d6 DJ |
232 | 2008-08-20 Daniel Jacobowitz <[email protected]> |
233 | ||
234 | * dwarf2read.c (struct attribute): Move earlier. | |
235 | (struct die_info): Change attrs to a trailing array. | |
236 | (dwarf_alloc_die): Take the number of attributes. Allocate space | |
237 | for them. | |
238 | (read_full_die): Update call to dwarf_alloc_die. Do not manually | |
239 | allocate attributes. | |
240 | ||
51545339 DJ |
241 | 2008-08-20 Daniel Jacobowitz <[email protected]> |
242 | ||
243 | * dwarf2read.c (REF_HASH_SIZE): Delete. | |
244 | (struct dwarf2_cu): Replace die_ref_table with die_hash. | |
245 | (struct die_info): Remove next_ref. | |
246 | (store_in_ref_table): Remove offset argument. Rewrite to use | |
247 | htab_find_slot_with_hash. | |
248 | (die_hash, die_eq): New. | |
249 | (read_comp_unit): Allocate the die_hash. | |
250 | (read_die_and_children): Update call to store_die_ref. | |
251 | (follow_die_ref): Rewrite to use htab_find_with_hash. | |
252 | ||
7475d072 DJ |
253 | 2008-08-20 Daniel Jacobowitz <[email protected]> |
254 | ||
255 | * dwarf2read.c (free_die_list, copy_die): Delete. | |
256 | (dwarf_alloc_die): Take a CU argument. Allocate the new DIE | |
257 | on the obstack. | |
258 | (read_full_die): Update call to dwarf_alloc_die. Allocate | |
259 | attributes on the CU obstack. | |
260 | (free_one_comp_unit): Do not call free_die_list. | |
261 | ||
1d325ec1 DJ |
262 | 2008-08-20 Daniel Jacobowitz <[email protected]> |
263 | ||
264 | * dwarf2read.c (read_die_and_children): Ignore NULL DIEs. | |
265 | (read_die_and_siblings): Likewise. Do not add padding DIEs to the | |
266 | sibling list. | |
267 | (read_full_die): Do not allocate DIEs for abbrev 0. | |
268 | (follow_die_ref): Correct error message. | |
269 | ||
b96e2927 PA |
270 | 2008-08-20 Pedro Alves <[email protected]> |
271 | ||
272 | * linespec.c (symtab_from_filename): Also throw NOT_FOUND_ERROR if | |
273 | there are no symbols loaded, instead of throwing a generic error. | |
274 | (decode_variable): Likewise. | |
275 | ||
f1f6aadf PA |
276 | 2008-08-20 Pedro Alves <[email protected]> |
277 | ||
278 | * objfiles.h (struct obj_section): Remove addr and endaddr fields. | |
279 | (obj_section_offset, obj_section_addr, obj_section_endaddr): New | |
280 | macros. | |
281 | * objfiles.c (add_to_objfile_sections): Don't set addr, endaddr | |
282 | and offset. Use size_t instead of unsigned long. | |
283 | (build_objfile_section_table): Use size_t instead of unsigned | |
284 | long. | |
285 | (objfile_relocate): Don't relocate s->addr and s->endaddr, they're | |
286 | gone. | |
287 | (find_pc_sect_section): Use obj_section_addr and | |
288 | obj_section_endaddr. | |
289 | * symfile.c (symfile.c): Remove code that maps sections | |
290 | offsets in "addr" to the object's sections. | |
291 | * blockframe.c (find_pc_partial_function): Use obj_section_endaddr. | |
292 | * gcore.c (gcore_create_callback): Use obj_section_addr and | |
293 | obj_section_endaddr. | |
294 | * maint.c (print_objfile_section_info): Likewise. | |
295 | * printcmd.c (sym_info): Use obj_section_addr and | |
296 | obj_section_endaddr. | |
297 | * symtab.c (fixup_section): Likewise. | |
298 | ||
3923a2b2 MK |
299 | 2008-08-20 Mark Kettenis <[email protected]> |
300 | ||
301 | * sparc-tdep.c: Make some comments catch up with reality. | |
302 | ||
b3eb342c VP |
303 | 2008-08-20 Vladimir Prus <[email protected]> |
304 | ||
305 | * NEWS: Mention 'set target-async' | |
306 | ||
7f7efbd9 VP |
307 | 2008-08-19 Vladimir Prus <[email protected]> |
308 | ||
309 | * infrun.c (resume): If the thread is placed to the deferred step | |
310 | queue, mark it as running. | |
311 | ||
9908b566 VP |
312 | 2008-08-19 Vladimir Prus <[email protected]> |
313 | ||
314 | Make sure target supports non-stop. | |
315 | * infcmd.c (run_command_1, attach_command): If non-stop mode | |
316 | is requested, verify the target supports it. | |
317 | * linux-nat.c (linux_nat_supports_non_stop): New. | |
318 | (linux_nat_add_target): Register the above. | |
319 | * target.c (find_default_supports_non_stop) | |
320 | (target_supports_non_stop): New. | |
321 | (init_dummy_target): Register find_default_supports_non_stop. | |
322 | * target.h (struct target_ops): New field to_supports_non_stop. | |
323 | (target_supports_non_stop): New. | |
324 | ||
c6ebd6cf VP |
325 | 2008-08-19 Pedro Alves <[email protected]> |
326 | Vladimir Prus <[email protected]> | |
327 | ||
328 | * target.c (target_async_permitted, target_async_permitted_1) | |
329 | (set_maintenance_target_async_permitted) | |
330 | (show_maintenance_target_async_permitted): New. | |
331 | (initialize_targets): Register 'set target-async'. | |
332 | * target.h (target_async_permitted): Declare. | |
333 | * linux-nat.c (linux_nat_async_enabled) | |
334 | (linux_nat_async_permitted, set_maintenance_linux_async_permitted) | |
335 | (show_maintenance_linux_async_permitted): Remove. | |
336 | (sigchld_handler, linux_nat_is_async_p, linux_nat_can_async_p) | |
337 | (get_pending_events, linux_nat_async): Use target_async_permitted. | |
338 | (linux_nat_set_async_mode): Remove, moving the only used bits | |
339 | into... | |
340 | (linux_nat_setup_async): This. | |
341 | (_initialize_linux_nat): Do not register 'maint set linux-async'. | |
342 | Use linux_nat_setup_async. | |
343 | * remote.c (remote_async_permitted, remote_async_permitted_set) | |
344 | (set_maintenance_remote_async_permitted) | |
345 | (show_maintenance_remote_async_permitted): Remove. | |
346 | (remote_open_1, remote_terminal_inferior, remote_can_async_p) | |
347 | (remote_is_async_p): Use target_async_permitted. | |
348 | (_initialize_remote): Don't register 'main set remote-async'. | |
349 | * mi/mi-cmds.c (mi_cmds): Register -list-target-features. | |
350 | * mi/mi-cmds.h (mi_cmd_list_target_features): New. | |
351 | * mi/mi-main.c (mi_cmd_list_target_features): New. | |
352 | ||
073120b9 VP |
353 | 2008-08-19 Vladimir Prus <[email protected]> |
354 | ||
355 | * target.c (maybe_kill_then_attach) | |
356 | (maybe_kill_then_create_inferior): Remove. | |
357 | (update_current_target): Do not default to_attach, | |
358 | to_create_inferiour, to_is_async_p. | |
359 | ||
690cc4eb | 360 | 2008-08-19 Paul N. Hilfinger <[email protected]> |
bfb8797a PH |
361 | |
362 | Changes for supporting boolean types in debugging data. | |
690cc4eb PH |
363 | * ada-lang.c (discrete_type_high_bound,discrete_type_low_bound): Change |
364 | API to return LONGEST values rather than struct values. | |
365 | (ada_evaluate_subexp): Change to use new API of discrete_type_low_bound | |
366 | and discrete_type_high_bound. | |
367 | (to_fixed_range_type): Create a range type in cases where | |
368 | argument is base type and its limits are representable as ints. | |
369 | (ada_is_modular_type): Correct so that base type must be integral. | |
370 | * ada-lex.l (TRUEKEYWORD,FALSEKEYWORD): Make 'true' and 'false' | |
371 | keywords when they appear alone, since we are phasing out | |
bfb8797a | 372 | direct representation of these identifiers in debugging data. |
690cc4eb PH |
373 | * ada-exp.y: Define 'true' and 'false' as primaries. |
374 | (type_boolean): New function. | |
375 | (type_int,type_long,type_long_long,type_floattype_double) | |
376 | (type_long_double): Remove uses of current_gdbarch for consistency | |
377 | with type_boolean. | |
378 | (write_int): Change comment to indicate that it might write boolean | |
379 | constant as well. | |
380 | * ada-typeprint.c (ada_print_type): Print '(false, true)' for boolean | |
381 | type, since will no longer be represented as enumerated type in | |
382 | debugging data. | |
383 | * ada-valprint.c (print_optional_low_bound): Handle boolean case | |
384 | as well. | |
bfb8797a PH |
385 | * NEWS: Note support boolean types. |
386 | ||
39540081 PA |
387 | 2008-08-18 Pedro Alves <[email protected]> |
388 | ||
389 | * bsd-uthread.c (bsd_uthread_close): New. | |
390 | (bsd_uthread_deactivate): Don't cleanup here, just unpush the | |
391 | target. | |
392 | (bsd_uthread_solib_loaded): Fix typo. | |
393 | (bsd_uthread_target): Register bsd_uthread_close. | |
394 | ||
87ab71f0 PA |
395 | 2008-08-18 Pedro Alves <[email protected]> |
396 | ||
397 | * corelow.c (core_open): Assume there was no upper layer left | |
398 | behind from a previous inferior. | |
399 | * target.c (pop_all_targets): Rename to ... | |
400 | (pop_all_targets_above): ... this. Add a target stratum | |
401 | parameter. Use it instead of hardcoding the dummy_stratum. | |
402 | (pop_all_targets): New, defer to pop_all_targets_above. | |
403 | (target_preopen): Use pop_all_targets_above. | |
404 | * target.h (pop_all_targets_above): Declare. | |
405 | ||
5231c1fd PA |
406 | 2008-08-18 Pedro Alves <[email protected]> |
407 | ||
408 | * gdbthread.h (thread_change_ptid): Declare. | |
409 | * infrun.c (infrun_thread_ptid_changed): New. | |
410 | (_initialize_infrun): Attach infrun_thread_ptid_changed to the | |
411 | thread_ptid_changed observer. | |
412 | * regcache.c (regcache_thread_ptid_changed): New. | |
413 | (_initialize_regcache): Attach regcache_thread_ptid_changed to the | |
414 | thread_ptid_changed observer. | |
415 | * thread.c (thread_change_ptid): New. | |
416 | ||
f98dfd4b TT |
417 | 2008-08-18 Tom Tromey <[email protected]> |
418 | ||
419 | * symfile.c (reread_symbols): Update. | |
420 | * solib-sunos.c (allocate_rt_common_objfile): Update. | |
421 | * objfiles.c (allocate_objfile): Update. | |
422 | * objfiles.h (struct objfile) <md, mmfd, deprecated_obj_private>: | |
423 | Remove. | |
424 | ||
d87ecdfb TT |
425 | 2008-08-18 Tom Tromey <[email protected]> |
426 | ||
427 | * gdbtypes.c (copy_type_recursive): Allocate 'stored' on objfile's | |
428 | obstack. | |
429 | ||
46a9b8ed DJ |
430 | 2008-08-18 Daniel Jacobowitz <[email protected]> |
431 | ||
432 | * rs6000-tdep.c (struct rs6000_framedata): Add gpr_mask, used_bl, | |
433 | lr_register. | |
434 | (rs6000_in_function_epilogue_p): Check for bctr. | |
435 | (skip_prologue): Initialize lr_register. Set lr_reg to a register | |
436 | number. Set gpr_mask and used_bl. Continue scanning while some | |
437 | expected registers are not saved. Set lr_register if LR is not | |
438 | stored. | |
439 | (rs6000_frame_cache): Handle gpr_mask and lr_register. | |
440 | ||
44feb3ce TT |
441 | 2008-08-17 Tom Tromey <[email protected]> |
442 | ||
443 | PR gdb/1535: | |
444 | * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): New macros. | |
445 | (ep_find_event_name_end): Remove. | |
446 | (catch_fork_temporary, catch_vfork_temporary, | |
447 | catch_fork_permanent, catch_vfork_permanent): New constants. | |
448 | (catch_vfork, catch_fork): Remove. | |
449 | (catch_fork_command_1): Add 'command' argument. Remove | |
450 | 'fork_kind' and 'tempflag'. Handle NULL 'arg'. Update switch for | |
451 | all cases. | |
452 | (catch_exec_command_1): Add 'command' argument; remove | |
453 | 'tempflag'. Handle NULL 'arg'. | |
454 | (catch_load_command_1): Likewise. | |
455 | (catch_unload_command_1): Likewise. | |
456 | (catch_ada_exception_command): Likewise. | |
457 | (catch_assert_command): Likewise. | |
458 | (catch_catch_command): New function. | |
459 | (catch_throw_command): Likewise. | |
460 | (catch_command_1): Remove. | |
461 | (catch_command): Just call error. | |
462 | (tcatch_command): Likewise. | |
463 | (catch_cmdlist): New global. | |
464 | (tcatch_cmdlist): Likewise. | |
465 | (add_catch_command): New function. | |
466 | (_initialize_breakpoint): Create "catch" and "tcatch" as prefix | |
467 | commands. Create all catch sub-commands. | |
468 | ||
0d6431e2 PA |
469 | 2008-08-17 Pedro Alves <[email protected]> |
470 | ||
471 | * gdbthread.h: Add comments. | |
472 | * stack.c (get_selected_block): Return 0 on an exited thread. | |
473 | * top.c (execute_command): Check for is_stopped, not !is_running. | |
474 | * event-top.c (command_handler): Likewise. | |
475 | ||
8931f526 PA |
476 | 2008-08-16 Pedro Alves <[email protected]> |
477 | ||
478 | * mi/mi-main.c (mi_cmd_exec_next, mi_cmd_exec_next_instruction) | |
479 | (mi_cmd_exec_step, mi_cmd_exec_step_instruction) | |
480 | (mi_cmd_exec_finish): Remove "return". | |
481 | ||
aa76d38d PA |
482 | 2008-08-16 Pedro Alves <[email protected]> |
483 | ||
484 | * target.h (pop_all_targets): Declare. | |
485 | * target.c (pop_all_targets): New. | |
486 | * top.c (quit_target): Pop all targets instead of just closing the | |
487 | current. | |
488 | ||
311a4e6b TJB |
489 | 2008-08-16 Vladimir Prus <[email protected]> |
490 | Thiago Jung Bauermann <[email protected]> | |
491 | ||
492 | * cli-script.c (read_next_line): Add parse_commands argument. | |
493 | (recurse_read_control_structure): Adapt to new read_next_line | |
494 | signature. | |
495 | (read_command_lines): Add parse_commands argument. | |
496 | (define_command): Adapt to new read_command_lines signature. | |
497 | (document_command): Likewise. | |
498 | * breakpoint.c (commands_command): Likewise. | |
499 | * defs.h (read_command_lines): Adjust function prototype. | |
500 | ||
24209737 PH |
501 | 2008-08-16 Paul N. Hilfinger <[email protected]> |
502 | ||
503 | * ada-lang.c (pos_atr): Account for the possibility that the | |
504 | argument may be a reference. | |
505 | ||
9f1d5432 PH |
506 | 2008-08-16 Paul N. Hilfinger <[email protected]> |
507 | ||
508 | * xcoffread.c (scan_xcoff_symtab): Do not include global symbols | |
509 | ('F' format) for @FIX names generated by the loader, retaining only | |
510 | the minimal symbols (and no partial symbol tables) for these names. | |
511 | Fixes warning messages about symbols that are found in partial | |
512 | symbol tables, but not full symbol tables. | |
513 | ||
83c265ab PA |
514 | 2008-08-16 Pedro Alves <[email protected]> |
515 | ||
516 | * infrun.c (fetch_inferior_event): Only call normal_stop if not | |
517 | stopping quietly. | |
518 | ||
604c2f83 LM |
519 | 2008-08-15 Luis Machado <[email protected]> |
520 | ||
521 | * rs6000-tdep: Include "features/rs6000/powerpc-vsx32.c". | |
522 | Include "features/rs6000/powerpc-vsx64.c". | |
523 | (ppc_supply_vsxregset): New function. | |
524 | (ppc_collect_vsxregset): New function. | |
525 | (IS_VSX_PSEUDOREG): New macro. | |
526 | (IS_EFP_PSEUDOREG): New macro. | |
527 | (vsx_register_p): New function. | |
528 | (ppc_vsx_support_p): New function. | |
529 | (rs6000_builtin_type_vec128): New function. | |
530 | (rs6000_register_name): Hide upper halves of vs0~vs31. Return | |
531 | correct names for VSX registers and EFPR registers. | |
532 | (rs6000_pseudo_register_type): Return correct types for VSX | |
533 | and EFPR registers. | |
534 | (rs6000_pseudo_register_reggroup_p): Return correct group for | |
535 | VSX and EFPR registers. | |
536 | (ppc_pseudo_register_read): Rename to dfp_pseudo_register_read. | |
537 | (ppc_pseudo_register_write): Rename to dfp_pseudo_register_write. | |
538 | (vsx_pseudo_register_read): New function. | |
539 | (vsx_pseudo_register_write): New function. | |
540 | (efpr_pseudo_register_read): New function. | |
541 | (efpr_pseudo_register_write): New function. | |
542 | (rs6000_pseudo_register_read): Call new VSX and EFPR read functions. | |
543 | (rs6000_pseudo_register_write): Call new VSX and EFPR write functions. | |
544 | (rs6000_gdbarch_init): Declare have_vsx. | |
545 | Initialize new upper half VSX registers. | |
546 | Initialize VSX-related and EFPR-related pseudo-registers variables. | |
547 | Adjust the number of pseudo registers accordingly. | |
548 | ||
549 | * ppc-linux-nat.c: Define PTRACE_GETVSXREGS, PTRACE_SETVSXREGS | |
550 | and SIZEOF_VSRREGS. | |
551 | (gdb_vsxregset_t): New type. | |
552 | (have_ptrace_getsetvsxregs): New variable. | |
553 | (fetch_vsx_register): New function. | |
554 | (fetch_register): Handle VSX registers. | |
555 | (fetch_vsx_registers): New function. | |
556 | (fetch_ppc_registers): Handle VSX registers. | |
557 | (store_ppc_registers): Handle VSX registers. | |
558 | (store_vsx_register): New function. | |
559 | (store_register): Handle VSX registers. | |
560 | (store_vsx_registers): New function. | |
561 | (ppc_linux_read_description): Handle VSX-enabled inferiors. | |
562 | (gdb_vsxregset_t): New type. | |
563 | (supply_vsxregset): New function. | |
564 | (fill_vsxregset): New function. | |
565 | ||
566 | * ppc-tdep.h (vsx_register_p): New prototype. | |
567 | (vsx_support_p): New prototype. | |
568 | (ppc_vsr0_regnum): New variable. | |
569 | (ppc_vsr0_upper_regnum): Likewise. | |
570 | (ppc_efpr0_regnum): Likewise. | |
571 | (ppc_builtin_type_vec128): New type. | |
572 | (ppc_num_vsrs): New constant. | |
573 | (ppc_num_vshrs): New constant. | |
574 | (ppc_num_efprs): Likewise. | |
575 | Define POWERPC_VEC_VSX PPC_VSR0_UPPER_REGNUM and PPC_VSR31_UPPER_REGNUM. | |
576 | (ppc_supply_vsxregset): New prototype. | |
577 | (ppc_collect_vsxregset): New prototype. | |
578 | ||
579 | * ppc-linux-tdep.c: Include "features/rs6000/powerpc-vsx32l.c" | |
580 | Include "features/rs6000/powerpc-vsx64l.c". | |
581 | (_initialize_ppc_linux_tdep): Initialize VSX-enabled targets. | |
582 | (ppc_linux_regset_sections): Add new ".reg-ppc-vsx" field. | |
583 | (ppc32_linux_vsxregset): New 32-bit VSX-enabled regset. | |
584 | (ppc_linux_regset_from_core_section): Handle VSX core section. | |
585 | (ppc_linux_core_read_description): Support VSX-enabled core files. | |
586 | ||
587 | * ppc-linux-tdep.h: Declare *tdesc_powerpc_vsx32l | |
588 | Declare tdesc_powerpc_vsx64l | |
589 | ||
590 | * corelow.c (get_core_register_section): Support VSX-enabled | |
591 | core files. | |
592 | ||
593 | * features/rs6000/power-vsx.xml: New VSX descriptions. | |
594 | * features/rs6000/powerpc-vsx32.xml: New file. | |
595 | * features/rs6000/powerpc-vsx32l.xml: New file. | |
596 | * features/rs6000/powerpc-vsx64.xml: New file. | |
597 | * features/rs6000/powerpc-vsx64l.xml: New file. | |
598 | * features/rs6000/powerpc-vsx32.c: New file (generated). | |
599 | * features/rs6000/powerpc-vsx32l.c: New file (generated). | |
600 | * features/rs6000/powerpc-vsx64.c: New file (generated). | |
601 | * features/rs6000/powerpc-vsx64l.c: New file (generated). | |
602 | * features/Makefile: Updated with new descriptions. | |
603 | * regformats/rs6000/powerpc-vsx32l.dat: New file (generated). | |
604 | * regformats/rs6000/powerpc-vsx64l.dat: New file (generated). | |
605 | ||
dde7c0a9 VP |
606 | 2008-08-15 Vladimir Prus <[email protected]> |
607 | ||
608 | * ia64-linux.nat (_initialize_ia64_linux_nat): Don't | |
609 | call linux_target twice. | |
610 | ||
ebd67d87 AR |
611 | 2008-08-14 Aleksandar Ristovski <[email protected]> |
612 | ||
613 | * nto-tdep.c (lm_info): Updated struct lm_info definition from | |
614 | solib-svr4.c | |
615 | (LM_ADDR): Use l_addr if available; if not, use link map and set | |
616 | l_addr. | |
617 | ||
886a217c TT |
618 | 2008-08-14 Tom Tromey <[email protected]> |
619 | ||
620 | * macrocmd.c (macro_define_command): Check for NULL argument. | |
621 | (macro_undef_command): Likewise. | |
622 | ||
3d488bfc PA |
623 | 2008-08-14 Pedro Alves <[email protected]> |
624 | ||
625 | * infcmd.c (continue_1): Add an ERROR_NO_INFERIOR call. | |
626 | ||
33e5cbd6 PA |
627 | 2008-08-13 Pedro Alves <[email protected]> |
628 | ||
629 | * breakpoint.c (always_inserted_auto, always_inserted_on) | |
630 | (always_inserted_off, always_inserted_enums): New. | |
631 | (always_inserted_mode): Change type to char* and point to | |
632 | always_inserted_auto. | |
633 | (show_always_inserted_mode): In auto mode, also show the current | |
634 | effect of the option. | |
635 | (breakpoints_always_inserted_mode): Adjust for the new auto mode. | |
636 | (_initialize_breakpoint): Make the "set breakpoints | |
637 | always-inserted" command an enum command. Extend help to describe | |
638 | the auto mode. | |
639 | ||
8fbde58b UW |
640 | 2008-08-13 Ulrich Weigand <[email protected]> |
641 | ||
642 | * spu-tdep.c (info_spu_dma_command): Respect TSQV (tag status | |
643 | query valid) bit. Ignore bits outside the condition field. | |
644 | (info_spu_proxydma_command): Ignore bits outside the field. | |
645 | ||
11fa8e43 MS |
646 | 2008-08-12 Michael Snyder <[email protected]> |
647 | ||
648 | * MAINTAINERS: Update my email address. | |
649 | ||
fcb09a75 UW |
650 | 2008-08-12 Ulrich Weigand <[email protected]> |
651 | ||
652 | * ppc-linux-nat.c (ppc_linux_get_hwcap): Really get AT_HWCAP. | |
653 | ||
a6f3e723 SL |
654 | 2008-08-12 Pedro Alves <[email protected]> |
655 | ||
656 | Add no-ack mode to the remote protocol --- optionally stop ACKing | |
657 | packets and responses when we have a reliable communication | |
658 | medium. | |
659 | ||
660 | Based on Apple's GDB, by Jason Molenda <[email protected]> | |
661 | ||
662 | * remote.c (struct remote_state): Add noack_mode field. | |
663 | (PACKET_QStartNoAckMode): New. | |
664 | (remote_start_remote): Don't any outstanding packet here. | |
665 | (remote_open_1): Clear noack_mode. Ack any outstanding packet | |
666 | here. Activate noack mode if requested. | |
667 | (remote_protocol_features): Add QStartNoAckMode. | |
668 | (remote_open_1): | |
669 | (putpkt_binary): Don't send ack in noack mode. | |
670 | (read_frame): Don't recompute the checksum in noack mode. | |
671 | (getpkt_sane): Skip sending ack if in noack mode. | |
672 | (_initialize_remote): Add set/show remote noack mode. | |
673 | * NEWS: Note the new features. | |
674 | ||
8ab3d180 KB |
675 | 2008-08-11 Kevin Buettner <[email protected]> |
676 | ||
677 | * rs6000-tdep.c (BL_MASK, BL_INSTRUCTION, BL_DISPLACEMENT_MASK): | |
678 | New macros. | |
679 | (rs6000_skip_main_prologue): New function. | |
680 | (rs6000_gdb_arch_init): Register rs6000_skip_main_prologue. | |
681 | ||
63a61bf6 SL |
682 | 2008-08-11 Sandra Loosemore <[email protected]> |
683 | ||
684 | * MAINTAINERS (Write After Approval): Add self. | |
685 | ||
9d4fde75 SS |
686 | 2008-08-11 Stan Shebs <[email protected]> |
687 | ||
688 | ARM BE8 support. | |
689 | * disasm.c (gdb_disassemble_info): Set endian_code. | |
690 | * gdbarch.sh (gdbarch_info): New field byte_order_for_code. | |
691 | * gdbarch.h, gdbarch.c: Regenerate. | |
692 | * arch-utils.c (initialize_current_architecture): Set the | |
693 | default byte_order_for_code. | |
694 | (gdbarch_info_init): Ditto. | |
695 | (gdbarch_info_fill): Ditto. | |
696 | * arm-tdep.c (SWAP_INT, SWAP_SHORT): New macros. | |
697 | (thumb_analyze_prologue): Swap halfword if code endianness is | |
698 | different from general endianness. | |
699 | (arm_skip_prologue): Similarly. | |
700 | (arm_scan_prologue): Ditto. | |
701 | (thumb_get_next_pc): Ditto. | |
702 | (arm_get_next_pc): Ditto. | |
703 | (arm_gdbarch_init): Set byte_order_for_code from BE8 flag, | |
704 | choose correct endianness for breakpoints. | |
705 | ||
6c613132 PA |
706 | 2008-08-10 Pedro Alves <[email protected]> |
707 | ||
708 | * bsd-kvm.c: Include "gdbthread.h". | |
709 | (bsd_kvm_ptid): New. | |
710 | (bsd_kvm_open): Add a main thread. | |
711 | (bsd_kvm_close): Delete it. | |
712 | (bsd_kvm_thread_alive): New. | |
713 | (bsd_kvm_pid_to_str): New. | |
714 | (bsd_kvm_add_target): Register bsd_kvm_thread_alive and | |
715 | bsd_kvm_pid_to_str. | |
716 | (bsd_kvm_add_target): Initialize bsd_kvm_ptid. | |
717 | ||
6eb7ee03 PA |
718 | 2008-08-09 Pedro Alves <[email protected]> |
719 | ||
720 | * buildsym.c (start_subfile): Properly cast sentinel in concat | |
721 | call. | |
722 | * cp-name-parser.y: Include "config.h". | |
723 | * xml-tdesc.c (fetch_xml_from_file): Properly cast sentinel in | |
724 | concat call. | |
725 | * gdb_select.h: Include sys/time.h if sys/select.h is not | |
726 | available. | |
727 | ||
444c3224 PA |
728 | 2008-08-09 Pedro Alves <[email protected]> |
729 | ||
730 | * go32-nat.c: Include "gdbthread.h". | |
731 | (go32_stop, go32_kill_inferior): Delete the main thread. | |
732 | (go32_create_inferior): Add it. | |
733 | (go32_thread_alive, go32_pid_to_str): New. | |
734 | (init_go32_ops): Register go32_thread_alive and go32_pid_to_str. | |
735 | ||
9d0b3624 PA |
736 | 2008-08-09 Pedro Alves <[email protected]> |
737 | ||
738 | * go32-nat.c (fetch_register, store_register): Pass the regcache | |
739 | gdbarch to i386_fp_regnum_p and i386_fpc_regnum_p. | |
740 | (go32_xfer_memory): Change type of myaddr parameter to gdb_byte. | |
741 | (struct seg_descr, struct seg_descr): pack the whole struct | |
742 | instead of each member individually. | |
743 | ||
509238d6 AS |
744 | 2008-08-09 Andreas Schwab <[email protected]> |
745 | ||
746 | * python/python.c (_initialize_python): Use unabbreviated commands | |
747 | in prefix name. | |
748 | ||
c068b4e8 DJ |
749 | 2008-08-09 Daniel Jacobowitz <[email protected]> |
750 | ||
751 | * Makefile.in (stamp-h): Also create .deps. | |
752 | ||
21374e5f TT |
753 | 2008-08-09 Tom Tromey <[email protected]> |
754 | ||
755 | * Makefile.in (generated_files): Add GNULIB_H. | |
756 | ||
7be67755 DA |
757 | 2008-08-09 John David Anglin <[email protected]> |
758 | ||
759 | * solib-pa64.c (pa64_solib_create_inferior_hook): Don't set | |
760 | DT_HP_DEBUG_PRIVATE. Add warning if DT_HP_DEBUG_PRIVATE is not set. | |
761 | Revise comment. | |
762 | (pa64_current_sos): Remove map private warning warning. | |
763 | * solib-som.c: Include string.h and sys/utsname.h. | |
764 | (get_hpux_major_release): New function. | |
765 | (som_solib_create_inferior_hook): Read dynamic linker header. Warn | |
766 | about shared library private mapping on HP-UX 11 and later. Only force | |
767 | private mapping of shared libraries on HP-UX 10 and earlier. | |
768 | (link_map_start): Delete warning. | |
769 | ||
e0c62198 L |
770 | 2008-08-09 Xuepeng Guo <[email protected]> |
771 | H.J. Lu <[email protected]> | |
772 | Mark Kettenis <[email protected]> | |
773 | ||
774 | * amd64-tdep.c (amd64_frame_cache): Add saved_sp_reg. | |
775 | (amd64_init_frame_cache): Initialize saved_sp_reg. | |
776 | (amd64_analyze_stack_align): New. | |
777 | (amd64_analyze_prologue): Call it. | |
778 | (amd64_frame_cache): Use saved_sp_reg if it is invalid. Don't set | |
779 | %rip to 8 when halfway aligning the stack. | |
780 | ||
781 | * amd64-tdep.h (amd64_regnum): Add AMD64_R9_REGNUM to | |
782 | AMD64_R14_REGNUM. | |
783 | ||
784 | * i386-tdep.c (i386_frame_cache): Remove stack_align. Add | |
785 | saved_sp_reg. | |
786 | (i386_alloc_frame_cache): Remove stack_align. Initialize | |
787 | saved_sp_reg to -1. | |
788 | (i386_analyze_stack_align): Rewrite. | |
789 | (i386_frame_cache): Use saved_sp_reg if it is valid. | |
790 | ||
b9db4ced UW |
791 | 2008-08-09 Ulrich Weigand <[email protected]> |
792 | ||
793 | * target.c: Include "solib.h". | |
794 | (target_pre_inferior): Call no_shared_libraries. | |
795 | * infcmd.c (run_command_1): Do not call objfile_purge_solibs | |
796 | or clear_solib. | |
797 | (attach_command): Do not call clear_solib. | |
798 | ||
3979a37f MK |
799 | 2008-08-09 Mark Kettenis <[email protected]> |
800 | ||
801 | * i386obsd-nat.c (i386obsd_supply_pcb): Supply the right bytes for | |
802 | the %eip register. | |
803 | ||
2b26d9fa TT |
804 | 2008-08-08 Tom Tromey <[email protected]> |
805 | ||
806 | * Makefile.in (python.o): Remove dependencies. Use COMPILE and | |
807 | POSTCOMPILE. | |
808 | (python-utils.o): Likewise. | |
809 | ||
f1648876 AS |
810 | 2008-08-08 Andreas Schwab <[email protected]> |
811 | ||
812 | * corefile.c (_initialize_core): Remove spurious paren from set | |
813 | gnutarget doc string. | |
814 | ||
b7622095 LM |
815 | 2008-08-08 Luis Machado <[email protected]> |
816 | ||
817 | * ppc-linux-nat.c: Include "auxv.h" and "elf/common.h". | |
f1648876 | 818 | Define PPC_FEATURE_BOOKE. |
b7622095 LM |
819 | (ppc_linux_get_hwcap): New function. |
820 | (ppc_linux_region_ok_for_hw_watchpoint): Handle PowerPC 440 | |
821 | 4-bytes alignment restrictions. | |
822 | (ppc_linux_insert_watchpoint): Handle PowerPC 440-specific | |
823 | positioning of the read/write flags. | |
824 | (ppc_linux_watchpoint_addr_within_range): Handle PowerPC 440 | |
825 | 4-bytes alignment. | |
826 | ||
2dc38344 PA |
827 | 2008-08-08 Pedro Alves <[email protected]> |
828 | ||
829 | Use ptid_t.tid to store thread ids instead of ptid_t.pid. | |
830 | ||
831 | * win32-nat.c (win32_add_thread): Change thread argument type to | |
832 | ptid_t. Adjust. | |
833 | (win32_add_thread): Adjust. | |
834 | (win32_delete_thread): Change thread argument type to ptid_t. | |
835 | Adjust. | |
836 | (win32_fetch_inferior_registers, win32_store_inferior_registers) | |
837 | (win32_resume, get_win32_debug_event, get_win32_debug_event) | |
838 | (win32_wait, win32_pid_to_exec_file, win32_pid_to_str): Adjust. | |
839 | (init_win32_ops): Put to_magic last. | |
840 | (win32_win32_thread_alive): Adjust. | |
841 | ||
4d6c6261 PA |
842 | 2008-08-08 Pedro Alves <[email protected]> |
843 | ||
844 | * remote-m32r-sdi.c (m32r_thread_alive, m32r_pid_to_str): New. | |
845 | (init_m32r_ops): Register m32r_thread_alive and m32r_pid_to_str. | |
846 | ||
e5ef4d75 PA |
847 | 2008-08-08 Pedro Alves <[email protected]> |
848 | ||
849 | * remote-m32r-sdi.c: Include "gdbthread.h". | |
850 | (remote_m32r_ptid): New. | |
851 | (m32r_close): Delete the main thread. | |
852 | (m32r_resume): Set inferior_ptid toA remote_m32r_ptid. Add the | |
853 | main thread. | |
854 | (m32r_kill, m32r_load, sdireset_command): Delete the main thread. | |
855 | (_initialize_remote_m32r): Initialize remote_m32r_ptid. | |
856 | ||
a417dc56 RW |
857 | 2008-08-07 Tom Tromey <[email protected]> |
858 | Ralf Wildenhues <[email protected]> | |
859 | ||
860 | * aclocal.m4, configure: Rebuild. | |
861 | * configure.in: Call ZW_CREATE_DEPDIR, | |
862 | ZW_PROG_COMPILER_DEPENDENCIES, AC_PROG_MAKE_SET. | |
863 | (MAKE, GMAKE): New substs. | |
864 | * acinclude.m4: Include depstand.m4. | |
865 | * Makefile.in (DEPMODE, DEPDIR, COMPILE.post, COMPILE.pre, | |
866 | COMPILE, POSTCOMPILE, depcomp): New variables. | |
867 | Remove all _h variables. | |
868 | Remove many .o targets. | |
869 | ($(srcdir)/copying.c): avoid backslash-newline after comment | |
870 | sign (@maintainer_mode_true@). | |
871 | (HFILES_NO_SRCDIR): Regenerate. | |
872 | (generated_files): New variable. | |
873 | (all_gdbtk_cflags): Likewise. | |
874 | (.c.o): Rewrote. | |
875 | (init.o, version.o, copying.o): Remove. | |
876 | (distclean): Remove DEPDIR. | |
877 | (test-cp-name-parser.o, hpux-thread.o, main.o, monitor.o, | |
878 | printcmd.o, procfs.o, v850ice.o): Rewrite. | |
879 | (cli-cmds.o, cli-decode.o, cli-dump.o, cli-interp.o, cli-logging.o, | |
880 | cli-script.o, cli-setshow.o, cli-utils.o): Likewise. | |
881 | (gdbtk.o, gdbtk-bp.o, gdbtk-cmds.o, gdbtk-hooks.o, gdbtk-interp.o, | |
882 | gdbtk-main.o, gdbtk-register.o, gdbtk-stack.o, gdbtk-varobj.o, | |
883 | gdbtk-wrapper.o): Likewise. | |
884 | (mi-cmd-break.o, mi-cmd-disas.o, mi-cmd-env.o, mi-cmd-file.o, | |
885 | mi-cmds.o, mi-cmd-stack.o, mi-cmd-target.o, mi-cmd-var.o, | |
886 | mi-console.o, mi-getopt.o, mi-interp.o, mi-main.o, mi-out.o, | |
887 | mi-parse.o, mi-symbol-cmds.o, mi-common.o, signals.o, tui.o, | |
888 | tui-command.o, tui-data.o, tui-disasm.o, tui-file.o, tui-hooks.o, | |
889 | tui-interp.o, tui-io.o, tui-layout.o, tui-main.o, tui-out.o, | |
890 | tui-regs.o, tui-source.o, tui-stack.o, tui-win.o, tui-windata.o, | |
891 | tui-wingeneral.o, tui-winsource.o): Likewise. | |
892 | (all_object_files): New variable. | |
893 | ($(all_object_files)): New target. | |
894 | Include dependency files, when using GNU Make. | |
895 | ||
12ab8a60 UW |
896 | 2008-08-07 Ulrich Weigand <[email protected]> |
897 | ||
898 | * spu-tdep.c (info_spu_dma_cmdlist): Only show entries with | |
899 | the valid bit set. Ensure display order respects partial | |
900 | order defined by dependency bits. | |
901 | ||
6536cc32 DA |
902 | 2008-08-06 John David Anglin <[email protected]> |
903 | ||
904 | * solib-pa64.c (read_dld_descriptor): Return zero if load map is not | |
905 | setup. | |
906 | ||
f73a15e4 MK |
907 | 2008-08-06 Mark Kettenis <[email protected]> |
908 | ||
909 | * i386obsd-nat.c (i386obsd_supply_pcb): Adjust for changes in | |
910 | OpenBSD 4.3. | |
911 | ||
d57a3c85 TJB |
912 | 2008-08-06 Vladimir Prus <[email protected]> |
913 | Tom Tromey <[email protected]> | |
914 | Thiago Jung Bauermann <[email protected]> | |
915 | Doug Evans <[email protected]> | |
916 | ||
917 | * Makefile.in (SUBDIR_PYTHON_OBS, SUBDIR_PYTHON_SRCS, | |
918 | SUBDIR_PYTHON_DEPS, SUBDIR_PYTHON_LDFLAGS, SUBDIR_PYTHON_CFLAGS, | |
919 | PYTHON_CFLAGS): New. | |
920 | (python_h, python_internal_h): New. | |
921 | (cli-script.o): Depend on python.h | |
922 | (python.o, python-utils.o): New. | |
923 | * cli/cli-script.c (print_command_lines): Handle python_control. | |
924 | (execute_control_command): Handle python_control. | |
925 | (execute_control_command_untraced): New function. | |
926 | (while_command): Call execute_control_command_untraced. | |
927 | (if_command): Likewise. | |
928 | (get_command_line): Remove static attribute. | |
929 | (read_next_line): Handle "python". | |
930 | (recurse_read_control_structure): Handle python_control. | |
931 | (read_command_lines): Handle python_control. | |
932 | Include python.h. | |
933 | * cli/cli-script.h (get_command_line): Add prototype. | |
934 | (execute_control_command_untraced): Likewise. | |
935 | * configure.ac: Add --with-python. | |
936 | * defs.h (enum command_control_type) <python_control>: New | |
937 | constant. | |
938 | * python/python-internal.h: New file. | |
939 | * python/python.c: New file. | |
940 | * python/python.h: New file. | |
941 | * python/python-utils.c: New file. | |
942 | * NEWS: Mention Python scripting support and its new commands. | |
943 | ||
5141027d UW |
944 | 2008-08-06 Ulrich Weigand <[email protected]> |
945 | ||
946 | * spu-tdep.c (spu_gdbarch_init): Call set_gdbarch_frame_red_zone_size. | |
947 | ||
353cfe88 PM |
948 | 2008-08-06 Phil Muldoon <[email protected]> |
949 | ||
f1648876 | 950 | * MAINTAINERS (Write After Approval): Add self. |
353cfe88 | 951 | |
d6b74ac4 PM |
952 | 2008-08-06 Phil Muldoon <[email protected]> |
953 | ||
954 | * breakpoint.c (hw_breakpoint_used_count): Use breakpoint_enabled. | |
955 | (insert_breakpoint_locations): Likewise. | |
956 | ||
ef0d312a MS |
957 | 2008-08-05 Phil Muldoon <[email protected]> |
958 | ||
959 | * breakpoint.c (create_longjmp_breakpoint): Remove unused struct | |
960 | breakpoint. | |
961 | (set_longjmp_breakpoint): Likewise. | |
962 | ||
fb6d93b2 UW |
963 | 2008-08-04 John David Anglin <[email protected]> |
964 | ||
965 | PR build/2490 | |
966 | * solib-pa64.c: Only compile if both HAVE_ELF_HP_H and __LP64__ are | |
967 | defined. | |
968 | ||
e6ad058a TT |
969 | 2008-08-05 Tom Tromey <[email protected]> |
970 | ||
971 | * bcache.c (deprecated_bcache_added): Initialize obstack. | |
972 | (bcache_xmalloc): Don't initialize obstack. | |
973 | (bcache_xfree): Conditionally free obstack. | |
974 | (bcache_memory_used): Update. | |
975 | ||
11d31d94 TT |
976 | 2008-08-05 Tom Tromey <[email protected]> |
977 | ||
978 | * symfile.c (add_psymbol_to_bcache): Return a const pointer. Use | |
979 | bcache_full. | |
980 | (append_psymbol_to_list): Accept a const pointer. | |
981 | (add_psymbol_to_list): Fix const correctness. | |
982 | * bcache.h: (deprecated_bcache_added, deprecated_bcache): Remove. | |
983 | (bcache_full): Declare. | |
984 | * bcache.c (bcache_data, deprecated_bcache): Remove. | |
985 | (bcache): Use bcache_full. | |
986 | (bcache_full): Rename from deprecated_bcache_added. Change return | |
987 | type. | |
988 | ||
5be973eb SS |
989 | 2008-08-04 Stan Shebs <[email protected]> |
990 | ||
991 | * solib-svr4.c (BKPT_AT_SYMBOL): Remove, always defined. | |
992 | (bkpt_names): Remove SOLIB_BKPT_NAME, never defined. | |
993 | (enable_break): Remove test of BKPT_AT_SYMBOL. | |
994 | ||
5062cc19 KS |
995 | 2008-08-02 Keith Seitz <[email protected]> |
996 | ||
997 | * acinclude.m4: Include ../config/tcl.m4 to pick up | |
998 | standard Tcl configury bits. | |
999 | Remove all Tcl, Tk, Itcl, Itk, etc definitions. | |
1000 | * configure.ac: Don't check if ../itcl exists when building | |
1001 | gdbtk. It could be installed. | |
1002 | Rewrite gdbtk configury to allow for using system-supplied | |
f1648876 | 1003 | Tcl and Tk. Gdbtk no longer requires build-time access to |
5062cc19 KS |
1004 | itcl and itk. |
1005 | * Makefile.in: Remove everything related to itcl and itk. | |
1006 | Rewrite the Tcl bits for gdbtk to correspond to rewrite of | |
1007 | configure.ac. | |
1008 | Remove v850ice.o build rule. | |
1009 | (ALL_TCL_CFLAGS): New convenience defintion. Change all | |
1010 | gdbtk sources to use it. | |
1011 | * configure: Regenerate. | |
f1648876 | 1012 | |
6d76a53d SS |
1013 | 2008-07-31 Stan Shebs <[email protected]> |
1014 | ||
1015 | * coffread.c (coff_symtab_read): Remove FUNCTION_EPILOGUE_SIZE. | |
1016 | ||
ed7c5e43 SS |
1017 | 2008-07-30 Stan Shebs <[email protected]> |
1018 | ||
1019 | * objfiles.c (TARGET_KEEP_SECTION): Remove. | |
1020 | (add_to_objfile_sections): Remove use. | |
1021 | ||
22ad7fee TT |
1022 | 2008-07-29 Tom Tromey <[email protected]> |
1023 | ||
1024 | * cli/cli-decode.c (lookup_cmd_1): Use memcpy. | |
1025 | (lookup_cmd_composition): Likewise. | |
1026 | ||
d5529a84 TT |
1027 | 2008-07-29 Tom Tromey <[email protected]> |
1028 | ||
1029 | * cli/cli-cmds.c (edit_command): Remove unused variables. Delete | |
1030 | dead code. Fix indentation. | |
1031 | ||
938f4ca8 SS |
1032 | 2008-07-29 Stan Shebs <[email protected]> |
1033 | ||
1034 | * main.c (captured_main): Remove long-unused #if 0 blocks. | |
1035 | ||
7f4b89d1 TT |
1036 | 2008-07-28 Tom Tromey <[email protected]> |
1037 | ||
1038 | * annotate.h (deprecated_annotate_starting_hook): Remove. | |
1039 | (deprecated_annotate_stopped_hook): Remove. | |
1040 | (deprecated_annotate_exited_hook): Remove. | |
1041 | * Makefile.in (annotate.o): Depend on observer_h. | |
1042 | * top.c (deprecated_delete_breakpoint_hook): Remove. | |
1043 | (deprecated_create_breakpoint_hook): Likewise. | |
1044 | (deprecated_modify_breakpoint_hook): Likewise. | |
1045 | * interps.c (clear_interpreter_hooks): Update for removed hooks. | |
1046 | * breakpoint.c (mention): Don't call removed hook. | |
1047 | (delete_breakpoint): Likewise. | |
1048 | (disable_breakpoint): Likewise. | |
1049 | (do_enable_breakpoint): Likewise. | |
1050 | * annotate.c: Include observer.h. | |
1051 | (breakpoint_changed): Change type of argument. | |
1052 | (_initialize_annotate): Register observers. | |
1053 | (deprecated_annotate_starting_hook): Remove. | |
1054 | (deprecated_annotate_stopped_hook): Remove. | |
1055 | (deprecated_annotate_exited_hook): Remove. | |
1056 | (annotate_starting): Update for hook removal. | |
1057 | (annotate_stopped): Likewise. | |
1058 | (annotate_exited): Likewise. | |
1059 | * defs.h (deprecated_delete_breakpoint_hook): Remove. | |
1060 | (deprecated_create_breakpoint_hook): Likewise. | |
1061 | (deprecated_modify_breakpoint_hook): Likewise. | |
1062 | ||
8641e682 TT |
1063 | 2008-07-28 Tom Tromey <[email protected]> |
1064 | ||
1065 | * main.c (captured_main): Don't use BEFORE_MAIN_LOOP_HOOK. | |
1066 | ||
064ef605 DJ |
1067 | 2008-07-27 Daniel Jacobowitz <[email protected]> |
1068 | ||
1069 | * configure.ac: Check for the GNU/Linux ptrace signature. | |
1070 | * configure: Regenerated. | |
1071 | ||
57380f4e DJ |
1072 | 2008-07-27 Daniel Jacobowitz <[email protected]> |
1073 | ||
1074 | * linux-nat.c (resume_callback): Add more debugging output. | |
1075 | (linux_nat_has_pending_sigint): New function, based on | |
1076 | linux_nat_has_pending. | |
1077 | (set_ignore_sigint, maybe_clear_ignore_sigint): New functions. | |
1078 | (stop_wait_callback): Remove flush_mask handling. Honor | |
1079 | ignore_sigint. Call maybe_clear_ignore_sigint. Pass NULL | |
1080 | to recursive calls. | |
1081 | (linux_nat_has_pending, flush_callback): Remove. | |
1082 | (linux_nat_filter_event): Check for ignore_sigint. | |
1083 | (linux_nat_wait): Remove flush_mask support and call to | |
1084 | flush_callback. Use set_ignore_sigint and maybe_clear_ignore_sigint. | |
1085 | * linux-nat.h (struct lwp_info): Add ignore_sigint field. | |
1086 | ||
e09490f1 DJ |
1087 | 2008-07-27 Daniel Jacobowitz <[email protected]> |
1088 | ||
1089 | * linux-nat.c (count_events_callback, select_event_lwp_callback): Only | |
1090 | report events from resumed threads. | |
1091 | ||
e38d4e1a DJ |
1092 | 2008-07-27 Daniel Jacobowitz <[email protected]> |
1093 | ||
1094 | * mips-linux-tdep.c (mips_linux_syscall_next_pc): New function. | |
1095 | (mips_linux_init_abi): Set tdep->syscall_next_pc. | |
1096 | * mips-tdep.c (enum mips_fpu_type, struct gdbarch_tdep): Move to | |
1097 | mips-tdep.h. | |
1098 | (mips32_next_pc): Handle the syscall instruction. | |
1099 | * mips-tdep.h (enum mips_fpu_type, struct gdbarch_tdep): New, | |
1100 | from mips-tdep.c. Add syscall_next_pc to gdbarch_tdep. | |
1101 | ||
fa8de41e TT |
1102 | 2008-07-26 Tom Tromey <[email protected]> |
1103 | ||
1104 | PR gdb/1158: | |
1105 | * valops.c (value_struct_elt): Treat function-valued field as a | |
1106 | static method. | |
1107 | ||
ccb3ac8a TT |
1108 | 2008-07-26 Tom Tromey <[email protected]> |
1109 | ||
1110 | PR gdb/1136: | |
1111 | * macroexp.c (get_punctuator) <punctuators>: Rearrange to put | |
1112 | longer tokens first. | |
1113 | ||
d72314c6 VP |
1114 | 2008-07-26 Vladimir Prus <[email protected]> |
1115 | ||
1116 | Kill cmd_async_ok. | |
f1648876 AS |
1117 | * cli/cli-decode.h (CMD_ASYNC_OK, set_cmd_async_ok) |
1118 | (get_cmd_async_ok): Remove. | |
1119 | * cli/cli-decode.c (set_cmd_async_ok, get_cmd_async_ok): Remove. | |
1120 | * cli/cli-cmds.c (init_cli_cmds): Don't use set_cmd_async_ok. | |
1121 | * infcmd.c (_initialize_infcmd): Likewise. | |
1122 | * thread.c (_initialize_thread): Likewise. | |
d72314c6 | 1123 | |
5b68030f JM |
1124 | 2008-07-25 Joseph Myers <[email protected]> |
1125 | ||
1126 | * mips-tdep.c (mips_n32n64_push_dummy_call): Handle passing | |
1127 | 128-bit long doubles in even-odd pairs of FPRs. Do not | |
1128 | right-align float arguments for big-endian. | |
1129 | (mips_n32n64_return_value): Apply return value convention for | |
1130 | structs containing one or two floating-point values to soft-float | |
1131 | as well as hard-float. Handle 128-bit long doubles in such | |
1132 | structs. | |
1133 | (mips_o32_push_dummy_call): Only skip one integer register for a | |
1134 | float argument passed in an FPR. | |
1135 | ||
383f836e TT |
1136 | 2008-07-25 Tom Tromey <[email protected]> |
1137 | ||
1138 | * tui/tui-hooks.c: Include observer.h. | |
1139 | (tui_event_default, tui_old_event_hooks, tui_event_hooks): | |
1140 | Remove. | |
1141 | (tui_bp_created_observer, tui_bp_deleted_observer, | |
1142 | tui_bp_modified_observer): New globals. | |
1143 | (tui_install_hooks): Use observers, not events. | |
1144 | (tui_remove_hooks): Likewise. | |
1145 | * mi/mi-cmd-break.c: Include observer.h, not gdb-events.h. | |
1146 | (mi_breakpoint_observers_installed, mi_can_breakpoint_notify): New | |
1147 | globals. | |
1148 | (breakpoint_notify): Check mi_can_breakpoint_notify. | |
1149 | (breakpoint_hooks): Remove. | |
1150 | (mi_cmd_break_insert): Attach observers. Don't use events. | |
1151 | * tracepoint.c: Include observer.h, not gdb-events.h. | |
1152 | (tracepoint_operation, trace_pass_command): Notify observer. | |
1153 | * interps.c: Don't include gdb-events.h. | |
1154 | (clear_interpreter_hooks): Don't call clear_gdb_event_hooks. | |
1155 | * gdbarch.c: Rebuild. | |
1156 | * gdbarch.sh: Emit include for observer.h, not gdb-events.h. | |
1157 | (deprecated_current_gdbarch_select_hack): Notify observer. | |
1158 | * breakpoint.h: Don't include gdb-events.h. | |
1159 | * breakpoint.c: Don't include gdb-events.h. | |
1160 | (condition_command): Notify observer. | |
1161 | (commands_command): Likewise. | |
1162 | (commands_from_control_command): Likewise. | |
1163 | (mention, delete_breakpoint, set_ignore_count): Likewise. | |
1164 | (disable_breakpoint, do_enable_breakpoint): Likewise. | |
1165 | * Makefile.in (gdb_events_h): Remove. | |
1166 | (breakpoint_h): Update. | |
1167 | (COMMON_OBS): Remove gdb-events.o. | |
1168 | (gdb-events.o): Remove. | |
1169 | (breakpoint.o, gdbarch.o, interps.o, tracepoint.o, gdbtk-bp.o, | |
1170 | gdbtk-hooks.o, mi-cmd-break.o, tui-hooks.o): Update. | |
1171 | * gdb-events.c: Remove. | |
1172 | * gdb-events.h: Remove. | |
1173 | * gdb-events.sh: Remove. | |
1174 | ||
60e569b9 PA |
1175 | 2008-07-24 Pedro Alves <[email protected]> |
1176 | ||
1177 | * remote.c (remote_threads_extra_info): Don't query the remote | |
1178 | server about info on the internally added main thread. | |
1179 | ||
a6a7f2a5 AR |
1180 | 2008-07-24 Aleksandar Ristovski <[email protected]> |
1181 | ||
1182 | * nto-procfs.c (procfs_attach): Populate initial thread list. | |
1183 | (procfs_wait): Return new pid, built from the inferior status. | |
1184 | ||
e63e4db2 TJB |
1185 | 2008-07-23 Thiago Jung Bauermann <[email protected]> |
1186 | ||
1187 | * configure.ac (CONFIG_INITS): Delete long obsoleted variable. | |
1188 | * configure: Regenerate. | |
1189 | ||
14ef7606 AR |
1190 | 2008-07-23 Aleksandar Ristovski <[email protected]> |
1191 | ||
1192 | * nto-procfs.c (procfs_xfer_memory): Changed signature. | |
1193 | (procfs_resume): Workaround for dereferencing type-punned pointer | |
1194 | warning. | |
f1648876 | 1195 | * nto-tdep.c (nto_parse_redirection): Change signature to be const |
14ef7606 AR |
1196 | correct. |
1197 | * nto-tdep.h (nto_parse_redirection): Likewise. | |
1198 | ||
cfd8ab24 SS |
1199 | 2008-07-21 Stan Shebs <[email protected]> |
1200 | ||
1201 | Scrub remnants of IN_SOLIB_DYNSYM_RESOLVE_CODE. | |
1202 | * gdbarch.sh: Adjust comment to refer to | |
1203 | in_solib_dynsym_resolve_code(). | |
1204 | * gdbarch.h, gdbarch.c: Update. | |
1205 | * solib-osf.c: Ditto. | |
1206 | * infrun.c: Ditto. | |
1207 | (handle_inferior_event): Use in_solib_dynsym_resolve_code | |
1208 | unconditionally. | |
1209 | * config/mips/nm-irix5.h: Remove undef of | |
1210 | IN_SOLIB_DYNSYM_RESOLVE_CODE. | |
1211 | ||
781b42b0 TT |
1212 | 2008-07-21 Tom Tromey <[email protected]> |
1213 | ||
1214 | * symfile.c (reread_symbols): Don't pass argument to observer. | |
1215 | * exec.c (exec_file_attach): Don't pass argument to observer. | |
1216 | * ada-lang.c (ada_executable_changed_observer): Remove argument. | |
1217 | * symtab.c (symtab_observer_executable_changed): Remove argument. | |
1218 | * observer.sh: Handle functions with no arguments. | |
1219 | ||
a366c65a | 1220 | 2008-07-20 Sergei Poselenov <[email protected]> |
f1648876 | 1221 | Chris Demetriou <[email protected]> |
a366c65a CD |
1222 | |
1223 | * elfread.c (elf_symfile_segments): Fix the check that each loadable | |
1224 | section fits within an ELF segment to handle ELF segments that hit | |
1225 | the end of the address space. | |
1226 | ||
073d253f CD |
1227 | 2008-07-20 Chris Demetriou <[email protected]> |
1228 | ||
1229 | * MAINTAINERS (Write After Approval): Add self. | |
1230 | ||
d7d9f01e TT |
1231 | 2008-07-18 Tom Tromey <[email protected]> |
1232 | ||
1233 | PR gdb/855: | |
1234 | * NEWS: Add entry for macro commands. | |
1235 | * Makefile.in (macrocmd.o): Add gdb_string.h. | |
1236 | * macroscope.h (user_macro_scope): Declare. | |
1237 | (default_macro_scope): Update documentation. | |
1238 | (macro_user_macros): Declare. | |
1239 | * c-lang.c (c_preprocess_and_parse): Always attempt macro lookup. | |
1240 | Use user_macro_scope. | |
1241 | (null_macro_lookup): Remove. | |
1242 | * macrotab.h (macro_callback_fn): Declare. | |
1243 | (macro_for_each): Likewise. | |
1244 | (macro_allow_redefinitions): Likewise. | |
1245 | * macrotab.c (foreach_macro): New function | |
1246 | (macro_for_each): Likewise. | |
1247 | (struct macro_table) <redef_ok>: New field. | |
1248 | (macro_allow_redefinitions): New function. | |
1249 | (new_macro_table): Update. | |
1250 | (macro_define_function): Likewise. | |
1251 | (macro_define_object): Likewise. | |
1252 | * macroscope.c (user_macro_scope): New function. | |
1253 | (default_macro_scope): Use it. | |
1254 | (macro_user_macros): New global. | |
1255 | (standard_macro_lookup): Look in macro_user_macros. | |
1256 | (_initialize_macroscope): New function. | |
1257 | * macroexp.h (macro_is_whitespace, macro_is_digit, | |
1258 | macro_is_identifier_nondigit): Declare. | |
1259 | * macroexp.c (macro_is_whitespace): Rename. No longer static. | |
1260 | (macro_is_digit): Likewise. | |
1261 | (macro_is_identifier_nondigit): Likewise. | |
1262 | (get_identifier): Update. | |
1263 | (get_pp_number): Likewise. | |
1264 | (get_token): Likewise. | |
1265 | * macrocmd.c (skip_ws): New function. | |
1266 | (extract_identifier): Likewise. | |
1267 | (free_macro_definition_ptr): Likewise. | |
1268 | (user_macros): Remove. | |
1269 | (macro_define_command): Implement. | |
1270 | (_initialize_macrocmd): Update. | |
1271 | (macro_undef_command): Implement. | |
1272 | (print_one_macro): New function. | |
1273 | (macro_list_command): Implement. | |
1274 | ||
0f72fb1c JM |
1275 | 2008-07-18 Joseph Myers <[email protected]> |
1276 | ||
1277 | * configure.ac: Put old value of $LIBS after -lbfd -liberty $intl | |
1278 | in BFD ELF check. | |
1279 | * configure: Regenerate. | |
1280 | ||
7c6467a4 PP |
1281 | 2008-07-17 Paul Pluzhnikov <[email protected]> |
1282 | ||
1283 | * auxv.c (fprint_target_auxv): Stop at AT_NULL. | |
1284 | ||
680b56ce AS |
1285 | 2008-07-15 Andreas Schwab <[email protected]> |
1286 | ||
1287 | * valops.c (value_cast_pointers): Follow typedefs when checking | |
1288 | result of coercion. | |
1289 | ||
7f0df278 DJ |
1290 | 2008-07-15 Daniel Jacobowitz <[email protected]> |
1291 | ||
1292 | * block.c (block_function): Renamed to ... | |
1293 | (block_linkage_function): ... this. All callers changed. | |
1294 | * block.h (block_function): Renamed to ... | |
1295 | (block_linkage_function): ... this. | |
1296 | ||
ba2c6aec DJ |
1297 | 2008-07-15 Daniel Jacobowitz <[email protected]> |
1298 | ||
1299 | * mn10300-tdep.c (set_reg_offsets): Use get_frame_register_unsigned. | |
1300 | ||
d56907c1 DJ |
1301 | 2008-07-15 Daniel Jacobowitz <[email protected]> |
1302 | ||
1303 | * frame.c (frame_sp_unwind): Delete. | |
1304 | (get_frame_sp): Do not use it. | |
1305 | * frame.h (frame_sp_unwind): Delete prototype. | |
1306 | ||
f92aeb88 DJ |
1307 | 2008-07-15 Daniel Jacobowitz <[email protected]> |
1308 | ||
1309 | * ia64-tdep.c (ia64_dummy_id): Use get_frame_pc. | |
1310 | ||
ad1193e7 DJ |
1311 | 2008-07-15 Daniel Jacobowitz <[email protected]> |
1312 | ||
1313 | * dwarf2-frame.c (dwarf2_frame_cache): Update comment. | |
1314 | * frame.c (frame_unwind_address_in_block): Delete. | |
1315 | (get_frame_address_in_block): Do not use it. Check the type | |
1316 | of the next frame first. | |
1317 | (frame_cleanup_after_sniffer): Update comment. | |
1318 | * frame.h (frame_unwind_address_in_block): Delete prototype. | |
1319 | * hppa-tdep.c (hppa_find_unwind_entry_in_block): Update comment. | |
1320 | ||
ef02daa9 DJ |
1321 | 2008-07-15 Daniel Jacobowitz <[email protected]> |
1322 | ||
1323 | * frame.c (frame_func_unwind): Delete. | |
1324 | (get_frame_func): Do not use it. | |
1325 | * frame.h (frame_func_unwind): Delete prototype. | |
1326 | * hppa-tdep.c (hppa_frame_cache): Update comment. | |
1327 | * rs6000-tdep.c (rs6000_frame_cache): Update comment. | |
1328 | ||
96e32df8 SS |
1329 | 2008-07-14 Stan Shebs <[email protected]> |
1330 | ||
1331 | * remote-sim.c (init_gdbsim_ops): Remove | |
1332 | TARGET_REDEFINE_DEFAULT_OPS. | |
1333 | ||
ab8650a3 DJ |
1334 | 2008-07-15 Daniel Jacobowitz <[email protected]> |
1335 | ||
1336 | * findvar.c (read_var_value): Remove unused variable. | |
1337 | ||
8c90c137 LM |
1338 | 2008-07-15 Luis Machado <[email protected]> |
1339 | ||
1340 | * infrun.c (handle_inferior_event): Tag threads as stopped | |
1341 | before inserting breakpoints. | |
1342 | ||
4098af0f HZ |
1343 | 2008-07-15 Hui Zhu <[email protected]> |
1344 | ||
1345 | * MAINTAINERS: Added myself to section Write After Approval. | |
1346 | ||
7093c834 PP |
1347 | 2008-07-14 Paul Pluzhnikov <[email protected]> |
1348 | ||
1349 | PR gdb/2477 | |
1350 | * cp-abi.c (value_virtual_fn_field): Handle invalid pointers. | |
680b56ce | 1351 | |
56514771 PA |
1352 | 2008-07-14 Pedro Alves <[email protected]> |
1353 | ||
1354 | * i386-dicos-tdep.c (i386_dicos_frame_align): Delete. | |
1355 | (i386_dicos_push_dummy_code): New. | |
1356 | (i386_dicos_init_abi): Don't register i386_dicos_frame_align. | |
1357 | Register i386_dicos_push_dummy_code. | |
1358 | ||
74ed0bb4 MD |
1359 | 2008-07-14 Markus Deuling <[email protected]> |
1360 | ||
1361 | * mips-tdep.c (fp_register_arg_p): Add gdbarch as paramter. | |
1362 | (mips_n32n64_push_dummy_call, mips_o64_return_value) | |
1363 | (mips_eabi_push_dummy_call): Update call to fp_register_arg_p. | |
1364 | ||
1365 | (MIPS_FPU_TYPE): Add gdbarch as parameter and replace current_gdbarch. | |
1366 | (fp_register_arg_p, mips_dump_tdep, show_mipsfpu_command) | |
1367 | (mips_n32n64_fp_arg_chunk_p): Update caller. | |
1368 | ||
1369 | (mips_n32n64_fp_arg_chunk_p): Add gdbarch as paramter. | |
1370 | (mips_n32n64_push_dummy_call): Update caller. | |
1371 | ||
1372 | (MIPS_LAST_ARG_REGNUM): Add gdbarch as parameter and replace | |
1373 | current_gdbarch. | |
1374 | (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call) | |
1375 | (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update caller. | |
1376 | ||
1377 | ||
1378 | (MIPS_LAST_FP_ARG_REGNUM): Add gdbarch as parameter and replace | |
1379 | current_gdbarch. | |
1380 | (mips_eabi_push_dummy_call, mips_o32_push_dummy_call) | |
1381 | (mips_o64_push_dummy_call): Update caller. | |
1382 | ||
1383 | (MIPS_EABI): Add gdbarch as parameter and replace current_gdbarch. | |
1384 | (fp_register_arg_p, mips_dump_tdep): Update caller. | |
1385 | ||
1386 | (set_reg_offset): Add gdbarch as parameter and replace current_gdbarch. | |
1387 | (mips16_scan_prologue, mips32_scan_prologue): Update caller. | |
1388 | ||
1389 | (reset_saved_regs): Make static. Add gdbarch as parameter. Replace | |
1390 | current_gdbarch. | |
1391 | (mips32_scan_prologue): Update caller. | |
1392 | ||
1393 | (heuristic_proc_start): Add gdbarch as parameter. Replace | |
1394 | current_gdbarch. | |
1395 | (mips_insn16_frame_cache, mips_insn32_frame_cache): Update caller. | |
1396 | ||
1397 | * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers) | |
1398 | (mipsnbsd_store_inferior_registers): Use get_regcache_arch to get at | |
1399 | the current architecture. Update call to getregs_supplies. | |
1400 | (getregs_supplies): Add gdbarch as parameter and replace | |
1401 | current_gdbarch. | |
1402 | ||
1403 | * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use get_frame_arch to | |
1404 | get at the current architecture. Update call to NBSD_MIPS_JB_OFFSET and | |
1405 | NBSD_MIPS_JB_ELEMENT_SIZE. | |
1406 | (NBSD_MIPS_JB_ELEMENT_SIZE, NBSD_MIPS_JB_OFFSET): Add gdbarch and | |
1407 | replace current_gdbarch. | |
1408 | ||
1409 | * remote-mips.c (mips_map_regno): Add gdbarch as parameter and replace | |
1410 | current_gdbarch. | |
1411 | (mips_fetch_registers, mips_store_registers): Update call | |
1412 | to mips_map_regno. | |
1413 | (mips_load): Use get_regcache_arch to get at the current_architecture | |
1414 | and replace current_gdbarch. | |
1415 | ||
0c501536 PA |
1416 | 2008-07-13 Pedro Alves <[email protected]> |
1417 | ||
1418 | * thread.c (restore_selected_frame): On fail to restore, select | |
1419 | the innermost frame, and don't crash when warning the user. | |
1420 | ||
db009c8a JB |
1421 | 2008-07-13 Hui Zhu <[email protected]> |
1422 | ||
1423 | * symtab.c (expand_line_sal): Fix a memory leak. | |
1424 | ||
0ffe5012 PA |
1425 | 2008-07-13 Pedro Alves <[email protected]> |
1426 | ||
1427 | * utils.c (struct continuation): Define as inheriting struct | |
1428 | cleanup. | |
1429 | (add_continuation, do_all_continuations) | |
1430 | (discard_all_continuations, add_intermediate_continuation) | |
1431 | (do_all_intermediate_continuations) | |
1432 | (discard_all_intermediate_continuations): Adjust. | |
1433 | ||
dbba8251 VP |
1434 | 2008-07-13 Vladimir Prus <[email protected]> |
1435 | ||
1436 | Skip varobj in running threads. | |
680b56ce AS |
1437 | * mi/mi-cmd-var.c (mi_cmd_var_update): If varobj's |
1438 | thread is not stopped, skip the varobj. | |
1439 | * Makefile.in: Update dependencies. | |
dbba8251 | 1440 | |
e3d6cd5f VP |
1441 | 2008-07-13 Vladimir Prus <[email protected]> |
1442 | ||
1443 | Enable all commands while inferiour is running | |
680b56ce AS |
1444 | * mi/mi-main.c (mi_cmd_execute): Don't check if |
1445 | inferiour is executing. | |
e3d6cd5f | 1446 | |
b10a37b1 VP |
1447 | 2008-07-13 Vladimir Prus <[email protected]> |
1448 | ||
1449 | Allow all CLI command even if target is executing. | |
680b56ce AS |
1450 | * gdb/top.c (execute_command_1): Don't check if the inferiour |
1451 | is running. | |
b10a37b1 | 1452 | |
ea069267 VP |
1453 | 2008-07-13 Vladimir Prus <[email protected]> |
1454 | ||
1455 | * mi/mi-main.c (mi_cmd_execute): Remove unused variable. | |
1456 | Fix printing of frame, when frame is wrong. | |
1457 | ||
cdc9523a UW |
1458 | 2008-07-12 Ulrich Weigand <[email protected]> |
1459 | ||
1460 | * spu-tdep.c (spu_frame_unwind_cache): Do not error if | |
1461 | backchain is unreadable. | |
1462 | ||
d5b25491 UW |
1463 | 2008-07-12 Ulrich Weigand <[email protected]> |
1464 | ||
1465 | * spu-linux-nat.c: Include "gdbthread.h". | |
1466 | (spu_child_post_startup_inferior): Register main thread. | |
1467 | (spu_child_post_attach): Likewise. | |
1468 | * Makefile.in (spu-linux-nat.o): Update dependencies. | |
1469 | ||
604ead4a PA |
1470 | 2008-07-12 Pedro Alves <[email protected]> |
1471 | ||
1472 | Rewrite continuations internals on top of cleanups and plug | |
1473 | continuation arguments leaks. | |
1474 | ||
1475 | * defs.h (struct continuation): Make it opaque. | |
1476 | (add_continuation, add_intermediate_continuation): Drop the int | |
1477 | argument of the continuation hook argument. Add | |
1478 | continuation_free_args argument. | |
1479 | (do_all_continuations, do_all_intermediate_continuations): Drop | |
1480 | the error_p argument. | |
1481 | ||
1482 | * utils.c (add_continuation): Drop the int argument of the | |
1483 | continuation hook argument. Add continuation_free_args argument. | |
1484 | Reimplement on top of cleanups. | |
1485 | (do_all_continuations): Drop error argument. Reimplement on top | |
1486 | of cleanups. | |
1487 | (discard_all_continuations): Reimplement on top of cleanups. | |
1488 | (add_intermediate_continuation): Drop the int argument of the | |
1489 | continuation hook argument. Add continuation_free_args argument. | |
1490 | Reimplement on top of cleanups. | |
1491 | (do_all_intermediate_continuations): Drop error argument. | |
1492 | Reimplement on top of cleanups. | |
1493 | (discard_all_intermediate_continuations): Reimplement on top of | |
1494 | cleanups. | |
1495 | ||
1496 | * breakpoint.c (until_break_command_continuation): Drop error | |
1497 | argument. Add xfree as continuation argument deleter. | |
1498 | ||
1499 | * inf-loop.c (inferior_event_handler): On error, discard all | |
1500 | continuations. Adjust to new do_all_intermediate_continuations | |
1501 | and do_all_continuations interfaces. | |
1502 | ||
1503 | * infcmd.c (step_1_continuation): Drop error_p argument. Adjust. | |
1504 | Pass xfree as continuation argument deleter. | |
1505 | (finish_command_continuation): Drop error_p argument. Adjust. | |
1506 | (finish_command_continuation_free_arg): New. | |
1507 | (finish_command): Pass finish_command_continuation_free_arg as | |
1508 | continuation argument deleter. Adjust to new do_all_continuations | |
1509 | interfaces. | |
1510 | (attach_command_continuation): Drop error_p argument. | |
1511 | (attach_command_continuation_free_args): New. | |
1512 | (attach_command): Pass attach_command_continuation_free_args as | |
1513 | continuation argument deleter. | |
1514 | ||
1515 | * interps.c (interp_set): Adjust to new do_all_continuations | |
1516 | interfaces. | |
1517 | ||
1518 | * event-top.c (stdin_event_handler): In error, also discard the | |
1519 | intermediate continuations. | |
1520 | ||
bfec99b2 PA |
1521 | 2008-07-12 Pedro Alves <[email protected]> |
1522 | ||
1523 | Replace struct continuation_args by void* and per command structs. | |
1524 | ||
1525 | * top.c (execute_command): Remove unused arg1 and arg2 locals. | |
1526 | ||
1527 | * breakpoint.c (struct until_break_command_continuation_args): | |
1528 | New. | |
1529 | (until_break_command_continuation): Take a void* instead of a | |
1530 | continuations_arg. Adjust. | |
1531 | (until_break_command): Adjust to use struct | |
1532 | until_break_command_continuation_args instead of struct | |
1533 | continuation_arg. | |
1534 | ||
1535 | * infcmd.c (struct step_1_continuation_args): New. | |
1536 | (step_1_continuation): Take a void* instead of a | |
1537 | continuations_arg. Adjust to use struct step_1_continuation_args. | |
1538 | (step_once): Adjust to use struct step_1_continuation_args. | |
1539 | ||
1540 | (struct finish_command_continuation_args): New. | |
1541 | (finish_command_continuation): Take a void* instead of a | |
1542 | continuations_arg. Adjust to use struct | |
1543 | finish_command_continuation_args. | |
1544 | (finish_command): Adjust to use struct | |
1545 | finish_command_continuation_args. | |
1546 | (struct attach_command_continuation_args): New. | |
1547 | (attach_command_continuation): Take a void* instead of a | |
1548 | continuations_arg. Adjust to use struct | |
1549 | attach_command_continuation_args. | |
1550 | (attach_command): Adjust to use struct | |
1551 | attach_command_continuation_args. | |
1552 | ||
1553 | * defs.h (struct continuation_arg): Delete. | |
1554 | (struct continuation): Replace the struct continuation_arg* | |
1555 | parameter of continuation_hook by a void*. Replace "arg_list" | |
1556 | member by a new "args" member with void* type. | |
1557 | (add_continuation, add_intermediate_continuation): Replace struct | |
1558 | continuation_arg type usages by void* usages. | |
1559 | ||
1560 | * utils.c (add_continuation, do_all_continuations) | |
1561 | (add_intermediate_continuation) | |
1562 | (do_all_intermediate_continuations): Replace struct | |
1563 | continuation_arg type usages by void* usages. Pass "args" instead | |
1564 | of "arg_list". | |
1565 | ||
2afb61aa PA |
1566 | 2008-07-12 Pedro Alves <[email protected]> |
1567 | ||
1568 | * infrun.c (struct thread_stepping_state): Delete sal member. | |
1569 | (init_thread_stepping_state): Add local sal. Use it instead of | |
1570 | tss->sal. | |
1571 | (handle_inferior_event): New local stop_pc_sal. Use it instead of | |
1572 | tss->sal. | |
1573 | (step_into_function): Add local stop_func_sal. Use it instead of | |
1574 | tss->sal. | |
1575 | ||
77ebaa5a VP |
1576 | 2008-07-12 Vladimir Prus <[email protected]> |
1577 | ||
1578 | Implement -exec-continue/-exec-interrupt --all. | |
680b56ce AS |
1579 | * infcmd.c (continue_1): New, extracted from |
1580 | (continue_command): ...here. | |
1581 | (interrupt_target_1): New, extracted from | |
1582 | (interrupt_target_command): ...here. | |
1583 | * inferior.h (continue_1, interrupt_target_1): New. | |
1584 | * mi/mi-main.c (mi_cmd_exec_continue) | |
1585 | (mi_cmd_exec_interrupt): Handle --all. | |
77ebaa5a | 1586 | |
1e92afda VP |
1587 | 2008-07-12 Vladimir Prus <[email protected]> |
1588 | ||
1589 | Implement --thread and --frame. | |
1590 | * gdbthread.h (find_thread_id): Declare. | |
680b56ce AS |
1591 | * thread.c (find_thread_id): Make non-static. |
1592 | * mi/mi-main.c (mi_cmd_execute): Switch to the right | |
1593 | thread and frame, if necessary. | |
1594 | * mi/mi-parse.c (mi_parse): Handle --thread and --frame. | |
1595 | * mi/mi-parse.h (strcut mi_parse): New fields thread and frame. | |
1e92afda | 1596 | |
d56b7306 VP |
1597 | 2008-07-12 Vladimir Prus <[email protected]> |
1598 | ||
1599 | * infrun.c (resume): Discard cleanups on early exit path. | |
1600 | ||
b1a268e5 VP |
1601 | 2008-07-12 Vladimir Prus <[email protected]> |
1602 | ||
680b56ce | 1603 | * infrun.c (normal_stop): For MI, report which threads |
b1a268e5 VP |
1604 | were stopped. |
1605 | ||
90139f7d VP |
1606 | 2008-07-12 Vladimir Prus <[email protected]> |
1607 | ||
1608 | Report thread state in -thread-info output. | |
680b56ce | 1609 | * thread.c (print_thread_info): Add new field "state". |
90139f7d | 1610 | |
a0d21d28 PA |
1611 | 2008-07-11 Pedro Alves <[email protected]> |
1612 | ||
1613 | * infrun.c (handle_inferior_event): Also ignore a | |
1614 | TARGET_SIGNAL_TRAP on a STOP_QUIETLY_NO_SIGSTOP. | |
1615 | ||
14032a66 TT |
1616 | 2008-07-11 Tom Tromey <[email protected]> |
1617 | ||
1618 | * completer.c (complete_line_internal): New function, from | |
1619 | complete_line. Add 'for_help' parameter. | |
1620 | (complete_line): Use it. | |
1621 | (command_completer): Move later. Rewrite. | |
1622 | ||
65fc9b77 PA |
1623 | 2008-07-11 Pedro Alves <[email protected]> |
1624 | ||
1625 | * thread.c (thread_apply_command): Move making the cleanup out of | |
1626 | the loop. | |
1627 | ||
4f8d22e3 PA |
1628 | 2008-07-11 Pedro Alves <[email protected]> |
1629 | ||
1630 | Exited threads. | |
1631 | ||
1632 | * thread.c (enum thread_state): New. | |
1633 | (thread_state main_thread_running): Delete, in favor of... | |
1634 | (thread_state main_thread_state): ... this. Update throughout. | |
1635 | (clear_thread_inferior_resources): New, split from free_thread. | |
1636 | (free_thread): Call clear_thread_inferior_resources. | |
1637 | (init_thread_list): Set main thread to stopped state. | |
1638 | (add_thread_silent): Take care of PTID reuses. | |
1639 | (delete_thread): If deleting inferior_ptid or a thread with | |
1640 | refcount > 0, mark it as exited, but still keep it in the list. | |
1641 | Only notify of thread exits, if we haven't done so yet. | |
1642 | (iterate_over_threads): Make it safe to delete threads while | |
1643 | iterating over them. | |
1644 | (do_captured_list_thread_ids): Don't account for exited threads. | |
1645 | (thread_alive): Check for the THREAD_EXITED state, and don't set | |
1646 | ptid to -1 on exited threads. | |
1647 | (set_running): Update to account for extra possible states. | |
1648 | (is_thread_state): New. | |
1649 | (is_stopped, is_exited): New. | |
1650 | (is_running): Implement in terms of is_thread_state. | |
1651 | (any_running): Update. | |
1652 | (print_thread_info): Update. Account for exited threads. Don't | |
1653 | warn about missed frame restoring here, its done in the cleanup. | |
1654 | (switch_to_thread): Don't read from a thread that has gone. | |
1655 | (restore_current_thread): In non-stop mode, do a full context | |
1656 | switch. | |
1657 | (restore_selected_frame): Add a frame_level argument. Rewrite. | |
1658 | (struct current_thread_cleanup): Add selected_frame_level and | |
1659 | was_stopped members. | |
1660 | (do_restore_current_thread_cleanup): Check if thread was stopped | |
1661 | and still is, and if the target has registers, stack and memory | |
1662 | before restoring the selected frame. Don't delete the cleanup | |
1663 | argument here. | |
1664 | (restore_current_thread_cleanup_dtor): New. | |
1665 | (make_cleanup_restore_current_thread): Remove all arguments. | |
1666 | Rewrite. | |
1667 | (thread_apply_all_command): Update. Prune threads. | |
1668 | (thread_apply_command): Update. | |
1669 | (thread_command): Account for currently selected exited thread. | |
1670 | (do_captured_thread_select): Check for a running thread. Prune | |
1671 | threads. | |
1672 | (_initialize_thread): Make "info threads", "thread", "thread | |
1673 | apply", and "thread apply all" appliable without a selected thread. | |
1674 | * gdbthread.h (struct thread_info): Replace running_ by state_. | |
1675 | Add refcount. | |
1676 | (is_exited, is_stopped): Declare. | |
1677 | (make_cleanup_restore_current_thread): Remove all arguments. | |
1678 | * infrun.c: Include "event-top.h". | |
1679 | (fetch_inferior_event): In non-stop mode, restore selected thread | |
1680 | and frame after handling the event and running breakpoint | |
1681 | commands. Display GDB prompt if needed. | |
1682 | (normal_stop): In non-stop mode, don't print thread switching | |
1683 | notice. | |
1684 | * cli/cli-decode.c (set_cmd_no_selected_thread_ok) | |
1685 | (get_cmd_no_selected_thread_ok): New. | |
1686 | * cli/cli-decode.h (CMD_NO_SELECTED_THREAD_OK): New. | |
1687 | (set_cmd_no_selected_thread_ok, get_cmd_no_selected_thread_ok): | |
1688 | Declare. | |
1689 | * cli/cli-cmds.c: Set "pwd", "help", "info", "show" as | |
1690 | no-selected-thread ok. | |
1691 | * top.c (execute_command): Check for non no-selected-thread-ok | |
1692 | commands. | |
1693 | * linux-nat.c (struct saved_ptids, threads_to_delete) | |
1694 | (record_dead_thread, prune_lwps): Delete. | |
1695 | (exit_lwp): Unconditionally delete thread. | |
1696 | (linux_nat_resume): Remove prune_lwps call. | |
1697 | * infcmd.c (proceed_thread_callback): Check if !is_stopped instead | |
1698 | of is_running. Adjust to make_cleanup_restore_current_thread | |
1699 | interface change. | |
1700 | * mi/mi-main.c (mi_cmd_execute): Only allow a few commands if the | |
1701 | selected thread has exited. | |
1702 | * inf-loop.c (inferior_event_handler): Don't display the prompt | |
1703 | here. | |
1704 | * varobj.c (c_value_of_root): Update. | |
1705 | * defs.h (make_cleanup_dtor): Declare. | |
1706 | * utils.c (make_cleanup_dtor): New. | |
1707 | ||
1708 | * Makefile.in (infrun.o): Depend on $(event_top_h). | |
1709 | ||
8cae4b3f PA |
1710 | 2008-07-11 Pedro Alves <[email protected]> |
1711 | ||
1712 | Add "continue -a" and "interrupt -a" options for non-stop mode. | |
1713 | ||
1714 | * infcmd.c (proceed_thread_callback, do_context_switch_to): New. | |
1715 | (continue_command): Add "-a" option. | |
1716 | (interrupt_target_command): Add "-a" option. | |
1717 | (_initialize_infcmd): Add extend help of continue and interrupt | |
1718 | command to mention the new "-a" option. Mark "continue" async ok. | |
1719 | ||
bf250677 DE |
1720 | 2008-07-10 Doug Evans <[email protected]> |
1721 | ||
1722 | Add "set print symbol-loading on|off". | |
1723 | * NEWS: Document new option. | |
1724 | * symfile.h (print_symbol_loading): Declare. | |
1725 | * symfile.c (print_symbol_loading): New global. | |
1726 | (symbol_file_add_with_addrs_or_offsets): Only print "Reading symbols | |
1727 | from ..." if print_symbol_loading. | |
1728 | (_initialize_symfile): Add set/show print symbol-loading. | |
1729 | * solib.c (solib_read_symbols): Only print "Loaded symbols for ..." | |
1730 | if print_symbol_loading. | |
1731 | ||
4c28f408 PA |
1732 | 2008-07-10 Pedro Alves <[email protected]> |
1733 | ||
1734 | Non-stop linux native. | |
1735 | ||
1736 | * linux-nat.c (linux_test_for_tracefork): Block events while we're | |
1737 | here. | |
1738 | (get_pending_status): Implement non-stop mode. | |
1739 | (linux_nat_detach): Stop threads before detaching. | |
1740 | (linux_nat_resume): In non-stop mode, always resume only a single | |
1741 | PTID. | |
1742 | (linux_handle_extended_wait): On a clone event, in non-stop mode, | |
1743 | add new lwp to GDB's thread table, and mark as running, executing | |
1744 | and stopped appropriately. | |
1745 | (linux_nat_filter_event): Don't assume there are other running | |
1746 | threads when a thread exits. | |
1747 | (linux_nat_wait): Mark the main thread as running and executing. | |
1748 | In non-stop mode, don't stop all lwps. | |
1749 | (linux_nat_kill): Stop lwps before killing them. | |
1750 | (linux_nat_thread_alive): Use signal 0 to detect if a thread is | |
1751 | alive. | |
1752 | (send_sigint_callback): New. | |
1753 | (linux_nat_stop): New. | |
1754 | (linux_nat_add_target): Set to_stop to linux_nat_stop. | |
1755 | ||
1756 | * linux-nat.h (thread_db_attach_lwp): Declare. | |
1757 | ||
1758 | * linux-thread-db.c (thread_get_info_callback): Check for new | |
1759 | threads if we have none. | |
1760 | (thread_from_lwp, enable_thread_event): Set proc_handle.pid to the | |
1761 | stopped lwp. Check for new threads if we have none. | |
1762 | (thread_db_attach_lwp): New. | |
1763 | (thread_db_init): Set proc_handle.pid to inferior_ptid. | |
1764 | (check_event): Set proc_handle.pid to the stopped lwp. | |
1765 | (thread_db_find_new_threads): Set proc_handle.pid to any stopped | |
1766 | lwp available, bail out if there is none. | |
1767 | ||
1768 | * linux-fork.c (linux_fork_killall): Use SIGKILL instead of | |
1769 | PTRACE_KILL. | |
1770 | ||
0aef6ba2 KB |
1771 | 2008-07-10 Kevin Buettner <[email protected]> |
1772 | ||
a4fafde3 KB |
1773 | * rs6000-tdep.c (ppc_displaced_step_fixup): Change type of |
1774 | `current_pc' from CORE_ADDR to ULONGEST. | |
1775 | ||
0aef6ba2 KB |
1776 | * remote-sim.c (gdbsim_cntrl_c): Pass remote_sim_ptid to |
1777 | gdbsim_stop(). | |
1778 | ||
10568435 JK |
1779 | 2008-07-10 Jan Kratochvil <[email protected]> |
1780 | ||
1781 | * NEWS (New commands): Mention "set disable-randomization". | |
1782 | * configure.ac: Add check for HAVE_PERSONALITY and | |
1783 | HAVE_DECL_ADDR_NO_RANDOMIZE. | |
1784 | * configure, config.in: Regenerate. | |
1785 | * linux-nat.c [HAVE_PERSONALITY]: New include <sys/personality.h>. | |
1786 | [HAVE_PERSONALITY] [!HAVE_DECL_ADDR_NO_RANDOMIZE]: Set | |
1787 | ADDR_NO_RANDOMIZE. | |
1788 | (disable_randomization, show_disable_randomization) | |
1789 | (set_disable_randomization): New. | |
1790 | (linux_nat_create_inferior) [HAVE_PERSONALITY]: New variables | |
1791 | PERSONALITY_ORIG and PERSONALITY_SET. Disable randomization upon the | |
1792 | variable DISABLE_RANDOMIZATION. | |
1793 | (_initialize_linux_nat): Call ADD_SETSHOW_BOOLEAN_CMD for the variable | |
1794 | DISABLE_RANDOMIZATION. | |
1795 | ||
f9c72d52 PA |
1796 | 2008-07-09 Pedro Alves <[email protected]> |
1797 | ||
1798 | Adjust all targets to new target_stop interface. | |
1799 | ||
1800 | * gnu-nat.c (gnu_stop): Add ptid argument. | |
1801 | * go32-nat.c (go32_stop): Add ptid argument. | |
1802 | (go32_create_inferior): Pass inferior_ptid to go32_stop. | |
1803 | * hpux-thread.c (hpux_thread_stop): Add ptid argument. | |
1804 | * monitor.c (monitor_stop): Add ptid argument. | |
1805 | (monitor_open): Pass inferior_ptid to monitor_stop. | |
1806 | (monitor_interrupt): Pass inferior_ptid to target_stop. | |
1807 | (monitor_stop): Add ptid argument. | |
1808 | * nto-procfs.c (nto_interrupt): Pass inferior_ptid to target_stop. | |
1809 | (procfs_create_inferior): Add ptid argument. | |
1810 | * procfs.c (procfs_stop): Add ptid argument. | |
1811 | * remote-m32r-sdi.c (m32r_stop): Add ptid argument. | |
1812 | * remote-sim.c (gdbsim_stop): Add ptid argument. | |
1813 | * sol-thread.c (sol_thread_stop): Add ptid argument. | |
1814 | * win32-nat.c (win32_stop): Add ptid argument. | |
1815 | ||
94cc34af PA |
1816 | 2008-07-09 Pedro Alves <[email protected]> |
1817 | ||
1818 | Non-stop inferior control. | |
1819 | ||
1820 | * infrun.c (resume): In non-stop mode, always resume just one | |
1821 | thread. | |
1822 | (proceed): Don't call prepare_to_proceed in non-stop mode. | |
1823 | (fetch_inferior_event): In non-stop mode, switch context before | |
1824 | handling the event. | |
1825 | (error_is_running, ensure_not_running): New. | |
1826 | (handle_inferior_event): In non-stop mode: Mark only the event | |
1827 | thread as stopped. Require that the target module manages adding | |
1828 | threads to the thread list. Assert that there isn't a | |
1829 | deferred_step_ptid set. Don't switch to infwait_thread_hop_state. | |
1830 | (normal_stop): Only mark not-running if inferior hasn't exited. | |
1831 | In non-stop mode, only mark the event thread. | |
1832 | ||
1833 | * thread.c:Include "cli/cli-decode.h". | |
1834 | (print_thread_info): Don't read from a running thread. | |
1835 | Output "(running)" if thread is running. | |
1836 | (switch_to_thread): Don't read stop_pc if thread is executing. | |
1837 | (do_restore_current_thread_cleanup): Don't write to a running | |
1838 | thread. | |
1839 | (thread_apply_all_command): Don't read from a running thread. In | |
1840 | non-stop mode, do a full context-switch instead of just switching | |
1841 | threads. | |
1842 | (thread_apply_command): In non-stop mode, do a full context-switch | |
1843 | instead of just switching threads. | |
1844 | (do_captured_thread_select): Likewise. Inform user if selected | |
1845 | thread is running. | |
1846 | (_initialize_thread): Mark "info threads" and "thread" and | |
1847 | async_ok. | |
1848 | ||
1849 | * inf-loop.c (inferior_event_handler): In non-stop mode, don't | |
1850 | unregister the target from the event loop. | |
1851 | ||
1852 | * infcmd.c (continue_command, step_1, jump_command) | |
1853 | (signal_command): Ensure the selected thread isn't running. | |
1854 | (interrupt_target_command): In non-stop mode, interrupt only the | |
1855 | selected thread. | |
1856 | ||
1857 | * inferior.h (error_is_running, ensure_not_running): Declare. | |
1858 | ||
1859 | * target.h (struct target_ops): Add ptid argument to the to_stop | |
1860 | member. | |
1861 | (target_stop): Add ptid_t argument. | |
1862 | ||
1863 | * target.c (update_current_target): Add ptid argument to to_stop's | |
1864 | type. | |
1865 | (debug_to_stop): Add ptid_t argument. | |
1866 | (debug_to_rcmd): Set to_stop_ptid. | |
1867 | ||
1868 | * remote.c (remote_stop): Add ptid_t argument. | |
1869 | (async_remote_interrupt): Add inferior_ptid to target_stop. | |
1870 | * inf-ptrace.c (inf_ptrace_stop): Add ptid argument. | |
1871 | ||
1872 | * Makefile.in (thread.o): Depend on $(cli_decode_h). | |
1873 | ||
59f0d5d9 PA |
1874 | 2008-07-09 Pedro Alves <[email protected]> |
1875 | ||
1876 | Don't rely on ecs->wait_for_more. | |
1877 | ||
1878 | * infrun.c (proceed): Clear the stepping state, set | |
1879 | previous_inferior_ptid and clear infwait state. | |
1880 | (wait_for_inferior): Don't clear the stepping state, set | |
1881 | previous_inferior_ptid, or clear the infwait state here. | |
1882 | (fetch_inferior_event): Don't clear the stepping state, set | |
1883 | previous_inferior_ptid, or clear the infwait state here. Don't | |
1884 | condition on wait_for_more. | |
1885 | ||
0d1e5fa7 PA |
1886 | 2008-07-09 Pedro Alves <[email protected]> |
1887 | ||
1888 | Refactor infrun a bit. | |
1889 | ||
1890 | * infrun.c (currently_stepping): Take a struct | |
1891 | thread_stepping_state instead of an execution_control_state. | |
1892 | (struct thread_stepping_state): New, split from | |
1893 | execution_control_state. | |
1894 | (gtss, tss): New globals. | |
1895 | (proceed): Clear the stepping state, set previous_inferior_ptid | |
1896 | and clear infwait state. | |
1897 | (init_wait_for_inferior): Clear the stepping state, | |
1898 | previous_inferior_ptid and infwait state. | |
1899 | (waiton_ptid, infwait_state): New, split from | |
1900 | execution_control_state. | |
1901 | (struct execution_control_state): Members that persist through | |
1902 | events moved out to either struct thred_stepping_state or made | |
1903 | global. Deleted unneeded wp, saved_inferior_ptid, tmpstatus. | |
1904 | (wait_for_inferior, fetch_inferior_event): Use local | |
1905 | execution_control_state. Update to execution_control_state split. | |
1906 | (init_execution_control_state): Adjust. | |
1907 | (init_thread_stepping_state): New, extracted from | |
1908 | init_execution_control_state. | |
1909 | (context_switch): Take a ptid instead of an | |
1910 | execution_control_state. | |
1911 | (context_switch_to): Adjust. | |
1912 | (adjust_pc_after_break): Adjust. | |
1913 | (init_infwait_state): New. | |
1914 | (handle_inferior_event): Adjust. | |
1915 | ||
a474d7c2 PA |
1916 | 2008-07-09 Pedro Alves <[email protected]> |
1917 | Vladimir Prus <[email protected]> | |
1918 | ||
1919 | Per-thread commands. | |
1920 | ||
1921 | * gdbthread.h: Remove unneeded forward declarations. | |
1922 | Include "inferior.h". | |
1923 | (struct thread_info): Add continuations, | |
1924 | intermediate_continuations, proceed_to_finish, step_over_calls, | |
1925 | stop_step, step_multi and stop_signal members. | |
1926 | (save_infrun_state): Add continuations, | |
1927 | intermediate_continuations, proceed_to_finish, step_over_calls, | |
1928 | stop_step, step_multi, stop_signal and stop_bpstat parameters. | |
1929 | (load_infrun_state): Add continuations, | |
1930 | intermediate_continuations, proceed_to_finish, step_over_calls, | |
1931 | stop_step, step_multi, stop_signal and stop_bpstat parameters. | |
1932 | ||
1933 | * thread.c (load_infrun_state): In non-stop mode, load | |
1934 | continuations, intermediate_continuations, proceed_to_finish, | |
1935 | step_over_calls, stop_step, step_multi and stop_signal. | |
1936 | (save_infrun_state): Store continuations, | |
1937 | intermediate_continuations, proceed_to_finish, step_over_calls, | |
1938 | stop_step, step_multi, stop_signal and stop_bpstat. | |
1939 | (save_infrun_state): Store continuations, | |
1940 | intermediate_continuations, proceed_to_finish, step_over_calls, | |
1941 | stop_step, step_multi, stop_signal and stop_bpstat. | |
1942 | (free_thread): Clear The thread's stop_bpstat. | |
1943 | ||
1944 | * inferior.h (context_switch_to): Declare. | |
1945 | ||
1946 | * infrun.c (ecss): New global. | |
1947 | (context_switch): Context switch continuations, | |
1948 | intermediate_continuations, proceed_to_finish, step_over_calls, | |
1949 | stop_step, step_multi, stop_signal and stop_bpstat. | |
1950 | (wait_for_inferior): Use global ecss. | |
1951 | (async_ecss, async_ecs): Delete. | |
1952 | (fetch_inferior_event): Use global ecss. | |
1953 | (context_switch_to): New. | |
1954 | ||
1955 | * top.c (execute_command): In non-stop, only check if the current | |
1956 | thread is running, in all-stop, check if there's any thread | |
1957 | running. | |
1958 | ||
1959 | * breakpoint.c (bpstat_remove_breakpoint): New. | |
1960 | (bpstat_remove_breakpoint_callback): New. | |
1961 | (delete_breakpoint): Clear the stop_bpstats of all threads. | |
1962 | ||
1963 | * mi/mi-main.c (mi_cmd_execute): In non-stop, only check if the | |
1964 | current thread is running, in all-stop, check if there's any | |
1965 | thread running. | |
1966 | ||
1967 | * Makefile.in (gdbthread_h): Depend on $(inferior_h). | |
1968 | ||
ad52ddc6 PA |
1969 | 2008-07-09 Pedro Alves <[email protected]> |
1970 | ||
1971 | Add non_stop global. | |
1972 | ||
1973 | * inferior.h (non_stop): Declare. | |
1974 | * infrun.c (non_stop, non_stop_1): New. | |
1975 | (set_non_stop, show_non_stop): New. | |
1976 | (_initialize_infrun): Add "set/show non-stop" command. | |
1977 | ||
3a3e9ee3 PA |
1978 | 2008-07-09 Pedro Alves <[email protected]> |
1979 | ||
1980 | Adjust fork/vfork/exec to pass ptids around. | |
1981 | ||
1982 | * target.h (struct target_waitstatus): Store related_pid as a ptid. | |
1983 | (inferior_has_forked, inferior_has_vforked, inferior_has_execd): | |
1984 | Take a ptid_t. | |
1985 | * breakpoint.h (struct breakpoint): Change forked_inferior_pid | |
1986 | type to ptid. | |
1987 | * breakpoint.c (print_it_typical, bpstat_check_location) | |
1988 | (print_one_breakpoint_location, set_raw_breakpoint_without_location) | |
1989 | (create_fork_vfork_event_catchpoint): Adjust. | |
1990 | * infrun.c (fork_event): Change parent_pid and child_pid types to | |
1991 | ptid. | |
1992 | (follow_exec, inferior_has_forked, inferior_has_vforked) | |
1993 | (inferior_has_execd): Take a ptid_t and don't trim it. | |
1994 | * linux-thread-db.c (thread_db_wait): Don't trim the returned ptid. | |
1995 | * linux-nat.c (linux_child_follow_fork): Adjust. | |
1996 | * inf-ptrace.c (inf_ptrace_wait): Adjust. | |
1997 | * inf-ttrace.c (inf_ttrace_wait): Adjust. | |
1998 | * win32-nat.c (get_win32_debug_event): Don't set related_pid. | |
1999 | ||
8ea051c5 PA |
2000 | 2008-07-09 Pedro Alves <[email protected]> |
2001 | ||
2002 | Add "executing" property to threads. | |
2003 | ||
2004 | * inferior.h (target_executing): Delete. | |
2005 | * gdbthread.h (struct thread_info): Add executing_ field. | |
2006 | (set_executing, is_executing): New. | |
2007 | * thread.c (main_thread_executing): New. | |
2008 | (init_thread_list): Clear it and also main_thread_running. | |
2009 | (is_running): Return false if target has no execution. | |
2010 | (any_running, is_executing, set_executing): New. | |
2011 | ||
2012 | * top.c: Include "gdbthread.h". | |
2013 | (target_executing): Delete. | |
2014 | (execute_command): Replace target_executing check by any_running. | |
2015 | * event-top.c: Include "gdbthread.h". | |
2016 | (display_gdb_prompt, command_handler): Replace target_executing by | |
2017 | is_running. | |
2018 | * inf-loop.c: Include "gdbthread.h". Don't mark as not executing | |
2019 | here. Replace target_executing by is_running. | |
2020 | * infrun.c (handle_inferior_event): Mark all threads as | |
2021 | not-executing. | |
2022 | * linux-nat.c (linux_nat_resume): Don't mark thread as executing | |
2023 | here. | |
2024 | * stack.c (get_selected_block): Return null if inferior is | |
2025 | executing. | |
2026 | * target.c (target_resume): Mark resumed ptid as executing. | |
2027 | * breakpoint.c (until_break_command): Replace target_executing | |
2028 | check by is_executing. | |
2029 | * remote.c (remote_async_resume): Don't mark inferior as executing | |
2030 | here. | |
2031 | * mi/mi-interp.c (mi_cmd_interpreter_exec): Replace target_executing | |
2032 | by any_running. | |
680b56ce | 2033 | |
8ea051c5 PA |
2034 | * mi/mi-main.c (mi_cmd_exec_interrupt, mi_cmd_execute) |
2035 | (mi_execute_async_cli_command): Replace target_executing by | |
2036 | is_running. | |
2037 | ||
2038 | * frame.c (get_current_frame): Error out if the current thread is | |
2039 | executing. | |
2040 | (has_stack_frames): New. | |
2041 | (get_selected_frame, deprecated_safe_get_selected_frame): Check | |
2042 | has_stack_frames. | |
680b56ce | 2043 | |
8ea051c5 PA |
2044 | * Makefile.in (event-top.o, frame.o, inf-loop.o, top.o): Depend on |
2045 | $(gdbthread_h). | |
2046 | ||
4487aabf PA |
2047 | 2008-07-09 Pedro Alves <[email protected]> |
2048 | ||
2049 | * symfile.c (load_command): Reopen the exec file and reread | |
2050 | symbols before anything else. | |
2051 | ||
9de2bdd7 PA |
2052 | 2008-07-09 Pedro Alves <[email protected]> |
2053 | ||
2054 | * remote-sim.c: Include gdbthread.h. | |
2055 | (remote_sim_ptid): New global. | |
2056 | (gdbsim_create_inferior): Silently add the main task to GDB's | |
2057 | thread list. | |
2058 | (gdbsim_close, gdbsim_mourn_inferior): Silently delete the main | |
2059 | task from GDB's thread list. | |
2060 | (gdbsim_resume): Adjust to use remote_sim_ptid. | |
2061 | (gdbsim_thread_alive, gdbsim_pid_to_str): New. | |
2062 | (init_gdbsim_ops): Register gdbsim_thread_alive and | |
2063 | gdbsim_pid_to_str. | |
2064 | (_initialize_remote_sim): Initialize remote_sim_ptid. | |
2065 | * Makefile.in (remote-sim.o): Depend on $(gdbthread_h). | |
2066 | ||
5e0b29c1 PA |
2067 | 2008-07-09 Pedro Alves <[email protected]> |
2068 | ||
2069 | * monitor (monitor_ptid): New global. | |
2070 | (monitor_open): Silently add the main task to GDB's thread list. | |
2071 | (monitor_close, monitor_mourn_inferior): Silently delete the main | |
2072 | task from GDB's thread list. | |
2073 | (monitor_thread_alive, monitor_pid_to_str): New. | |
2074 | (init_base_monitor_ops): Register monitor_thread_alive and | |
2075 | monitor_pid_to_str. | |
2076 | (_initialize_remote_monitors): Initialize monitor_ptid. | |
2077 | ||
2078 | * gdbthread.h (delete_thread_silent): Declare. | |
2079 | * thread.c (delete_thread): Rename to ... | |
2080 | (delete_thread_1): ... this. Add "silent" parameter. If silent, | |
2081 | don't do exit notifications. | |
2082 | (delete_thread, delete_thread_silent): New, as wrappers to | |
2083 | delete_thread_1. | |
2084 | ||
b60e7edf PA |
2085 | 2008-07-08 Pedro Alves <[email protected]> |
2086 | ||
2087 | * breakpoint.c (update_global_location_list): Add boolean | |
2088 | "should_insert" argument. Only insert locations if caller told it | |
2089 | too. | |
2090 | (update_global_location_list_nothrow): Add boolean "should_insert" | |
2091 | argument. Pass it to update_global_location_list. | |
2092 | (insert_breakpoints, create_longjmp_breakpoint) | |
2093 | (create_overlay_event_breakpoint, enable_overlay_breakpoints) | |
2094 | (create_thread_event_breakpoint, create_solib_event_breakpoint) | |
2095 | (create_fork_vfork_event_catchpoint, create_exec_event_catchpoint) | |
2096 | (enable_watchpoints_after_interactive_call_stop) | |
2097 | (set_momentary_breakpoint, create_breakpoints) | |
2098 | (break_command_really, watch_command_1) | |
2099 | (create_ada_exception_breakpoint, update_breakpoint_locations) | |
2100 | (do_enable_breakpoint, enable_command): Pass true to | |
2101 | update_global_location_list. | |
2102 | (bpstat_stop_status, disable_overlay_breakpoints) | |
2103 | (disable_watchpoints_before_interactive_call_start) | |
2104 | (delete_breakpoint, disable_breakpoint, disable_command): Pass | |
2105 | false to update_global_location_list. | |
2106 | (update_breakpoints_after_exec): Don't temporarily disable | |
2107 | always-inserted mode. | |
2108 | ||
25b22b0a PA |
2109 | 2008-07-08 Pedro Alves <[email protected]> |
2110 | ||
2111 | * breakpoint.c (mark_breakpoints_out): Make public. | |
2112 | (update_breakpoints_after_exec): Don't call mark_breakpoints_out | |
2113 | here. Update comment. | |
2114 | * breakpoint.h (mark_breakpoints_out): Declare. | |
2115 | ||
2116 | * linux-nat.c (linux_handle_extended_wait): On | |
2117 | TARGET_WAITKIND_EXECD, call mark_breakpoints_out. | |
2118 | * inf-ttrace.c (inf_ttrace_wait): Likewise. | |
2119 | ||
cce9b6bf PA |
2120 | 2008-07-08 Pedro Alves <[email protected]> |
2121 | ||
2122 | * infrun.c (follow_exec): Reset shared libraries before adding the | |
2123 | main exec file. | |
2124 | ||
3c3185ac JK |
2125 | 2008-07-07 Jan Kratochvil <[email protected]> |
2126 | ||
2127 | * breakpoint.c (bpstat_copy): Call RELEASE_VALUE on the new OLD_VAL. | |
2128 | ||
42f0bc8e PA |
2129 | 2008-07-07 Pedro Alves <[email protected]> |
2130 | ||
2131 | * i386-dicos-tdep.c: Include "inferior.h". | |
2132 | (i386_dicos_frame_align): New. | |
2133 | (i386_dicos_init_abi): Register i386_dicos_frame_align. Set call | |
2134 | dummy location ON_STACK. | |
2135 | * Makefile.in (i386-dicos-tdep.o): Depend on $(inferior_h). | |
2136 | ||
b7292df3 JB |
2137 | 2008-07-07 Joel Brobecker <[email protected]> |
2138 | ||
2139 | * gstdint.h: New file. | |
2140 | ||
bb599c81 VP |
2141 | 2008-07-05 Vladimir Prus <[email protected]> |
2142 | ||
2143 | * mi/mi-interp.c (mi_on_resume): Don't try to report | |
2144 | resumed thread it the thread list is empty. | |
2145 | ||
7f6a6314 PM |
2146 | 2008-07-05 Pierre Muller <[email protected]> |
2147 | ||
2148 | * cli/cli-decode.c (add_setshow_optional_filename_cmd): Set | |
2149 | completer for set to filename_completer. | |
680b56ce | 2150 | |
7f6a6314 PM |
2151 | NEWS: Mention it. |
2152 | ||
711eabed VP |
2153 | 2008-07-04 Vladimir Prus <[email protected]> |
2154 | ||
2155 | Implement -target-attach. | |
680b56ce | 2156 | * mi/mi-cmds.c (mi_cmds): Forward -target-attach to CLI attach. |
711eabed | 2157 | |
db3b9a10 MS |
2158 | 2008-06-21 Hui Zhu <[email protected]> |
2159 | ||
2160 | * target-descriptions.c (maint_print_c_tdesc_cmd): Fix a memory leak. | |
2161 | ||
dc177b7a PA |
2162 | 2008-07-03 Pedro Alves <[email protected]> |
2163 | ||
2164 | * config/i386/nm-cygwin.h (ATTACH_NO_WAIT): Delete. | |
2165 | * config/i386/nm-i386gnu.h (ATTACH_NO_WAIT): Delete. | |
2166 | ||
2167 | * target.h (struct target_ops): Add to_attach_no_wait member. | |
2168 | (target_attach_no_wait): New. | |
2169 | * target.c (update_current_target): Inherit to_attach_no_wait. | |
2170 | ||
2171 | * infcmd.c: Replace ATTACH_NO_WAIT compile time check by | |
2172 | target_attach_no_wait runtime check. | |
2173 | ||
2174 | * gnu-nat.c (init_gnu_ops): Set to_attach_no_wait in gnu_ops. | |
2175 | * win32-nat.c (init_win32_ops): Set to_attach_no_wait in | |
2176 | win32_ops. | |
2177 | ||
caac8896 PA |
2178 | 2008-07-03 Pedro Alves <[email protected]> |
2179 | ||
2180 | * i386-tdep.c (i386_displaced_step_fixup): Condition log printing | |
2181 | on debug_displaced being set. | |
2182 | ||
0d254d6f DJ |
2183 | 2008-06-30 Daniel Jacobowitz <[email protected]> |
2184 | ||
2185 | * frame.c (get_prev_frame_1): Call frame_unwind_find_by_frame | |
2186 | directly instead of get_frame_id. | |
2187 | ||
f74c6cad LM |
2188 | 2008-06-30 Luis Machado <[email protected]> |
2189 | ||
2190 | * rs6000-tdep.c (ppc_displaced_step_fixup): New function. | |
2191 | (deal_with_atomic_sequence): Update BC masks. | |
2192 | (rs6000_gdbarch_init): Init displaced stepping infra-structure. | |
2193 | Define BRANCH_MASK, B_INSN, BC_INSN, BXL_INSN, BP_MASK and BP_INSN. | |
2194 | ||
395f2fc2 DJ |
2195 | 2008-06-30 Daniel Jacobowitz <[email protected]> |
2196 | ||
2197 | * cris-tdep.c (crisv32_single_step_through_delay): Get this frame's | |
2198 | register, not the previous frame's. | |
2199 | ||
8340a3fb LM |
2200 | 2008-06-30 Luis Machado <[email protected]> |
2201 | ||
2202 | * source.c (select_source_symtab): Make sure we skip namespace | |
2203 | symtabs when showing cpp source code. | |
2204 | ||
cfefc99a HPN |
2205 | 2008-06-30 Hans-Peter Nilsson <[email protected]> |
2206 | ||
2207 | * MAINTAINERS (Authorized committers): Fix my email address. | |
2208 | ||
1b98914a VP |
2209 | 2008-06-28 Vladimir Prus <[email protected]> |
2210 | ||
2211 | * mi/mi-cmds.c (mi_cmds): Route -exec-run, -exec-until, | |
2212 | -target-download and -target-select via CLI, so that | |
2213 | the quoting rules are the same as they were (unfortunately) | |
2214 | in all prior gdb releases. | |
2215 | * mi/mi-cmds.h (mi_cmd_exec_run, mi_cmd_exec_until) | |
2216 | (mi_cmd_target_download, mi_cmd_target_select): Remove. | |
2217 | * mi/mi-main.c (mi_cmd_exec_run, mi_cmd_exec_until) | |
2218 | (mi_cmd_target_download, mi_cmd_target_select): Remove. | |
2219 | (mi_cmd_execute): Set current_token even for commands | |
2220 | routed via CLI. | |
2221 | ||
94afd7a6 UW |
2222 | 2008-06-28 Ulrich Weigand <[email protected]> |
2223 | ||
2224 | * alphafbsd-tdep.c: Update for unwinder changes. | |
2225 | * alpha-linux-tdep.c: Likewise. | |
2226 | * alphanbsd-tdep.c: Likewise. | |
2227 | * alphaobsd-tdep.c: Likewise. | |
2228 | * avr-tdep.c: Likewise. | |
2229 | * cris-tdep.c: Likewise. | |
2230 | * frv-linux-tdep.c: Likewise. | |
2231 | * frv-tdep.c: Likewise. | |
2232 | * h8300-tdep.c: Likewise. | |
2233 | * hppa-linux-tdep.c: Likewise. | |
2234 | * iq2000-tdep.c: Likewise. | |
2235 | * m32c-tdep.c: Likewise. | |
2236 | * m32r-linux-tdep.c: Likewise. | |
2237 | * m32r-tdep.c: Likewise. | |
2238 | * m68hc11-tdep.c: Likewise. | |
2239 | * mep-tdep.c: Likewise. | |
2240 | * mn10300-tdep.c: Likewise. | |
2241 | * mt-tdep.c: Likewise. | |
2242 | * score-tdep.c: Likewise. | |
2243 | * sh64-tdep.c: Likewise. | |
2244 | * sh-tdep.c: Likewise. | |
2245 | * sparc64fbsd-tdep.c: Likewise. | |
2246 | * sparc64nbsd-tdep.c: Likewise. | |
2247 | * sparc64obsd-tdep.c: Likewise. | |
2248 | * v850-tdep.c: Likewise. | |
2249 | * vaxobsd-tdep.c: Likewise. | |
2250 | * vax-tdep.c: Likewise. | |
2251 | * xstormy16-tdep.c: Likewise. | |
2252 | ||
e111d6c9 VP |
2253 | 2008-06-28 Vladimir Prus <[email protected]> |
2254 | ||
2255 | * mi/mi-main.c (enum captured_mi_execute_command_actions) | |
2256 | (captured_mi_execute_command_args): Remove. | |
2257 | (captured_mi_execute_command): Cast the closure to mi_parse | |
2258 | pointer, not to captured_mi_execute_command_args, and don't | |
2259 | set the action field thereof. | |
2260 | (mi_execute_command): Pass struct mi_parse, not | |
2261 | captured_mi_execute_command_args to captured_mi_execute_command. | |
2262 | (mi_execute_command): Remove (dead) code for suppressing | |
2263 | printing prompt. | |
2264 | ||
84e46146 PA |
2265 | 2008-06-28 Pedro Alves <[email protected]> |
2266 | ||
2267 | * linux-nat.c (enum sigchld_state): New. | |
2268 | (linux_nat_async_events_state): Renamed from | |
2269 | linux_nat_async_events_enabled. | |
2270 | (linux_nat_event_pipe_push, my_waitpid): Adjust. | |
2271 | (sigchld_default_action): New. | |
2272 | (lin_lwp_attach_lwp): Adjust. Call linux_nat_async_events | |
2273 | unconditionally. | |
2274 | (linux_nat_create_inferior): Set events state to sigchld_default | |
2275 | state. | |
2276 | (linux_nat_resume): Adjust. | |
2277 | (linux_nat_wait): Call linux_nat_async_events unconditionally. | |
2278 | (sigchld_handler): Adjust. | |
2279 | (linux_nat_async_mask): Don't set SIGCHLD actions here. | |
2280 | (get_pending_events): Adjust. | |
2281 | (linux_nat_async_events): Rewrite to handle enum sigchld_state | |
2282 | instead of a boolean. | |
2283 | (linux_nat_async): Adjust. | |
2284 | (_initialize_linux_nat): Capture default SIGCHLD action into | |
2285 | sigchld_default_action. | |
2286 | ||
20874c92 VP |
2287 | 2008-06-28 Vladimir Prus <[email protected]> |
2288 | ||
680b56ce AS |
2289 | * breakpoint.c (moribund_locations): New. |
2290 | (bpstat_stop_status): Process moribund locations. | |
2291 | (update_global_location_list): Add removed | |
2292 | locations to moribund_locations. | |
2293 | (breakpoint_retire_moribund): New. | |
2294 | * breakpoint.h (struct bp_location): New field | |
2295 | events_till_retirement. | |
2296 | (breakpoint_retire_moribund): Declare. | |
2297 | * thread.c (thread_count): New. | |
2298 | * infrun.c (handle_inferior_event): Call | |
2299 | breakpoint_retire_moribund. | |
2300 | * gdbthread.h (thread_count): Declare. | |
20874c92 | 2301 | |
cd0b43b1 JM |
2302 | 2008-06-27 Joseph Myers <[email protected]> |
2303 | ||
2304 | * dfp.c (decimal_convert): Call match_endianness before and after | |
2305 | conversion. | |
2306 | ||
7c0f6dcc JL |
2307 | 2008-06-27 Jonathan Larmour <[email protected]> |
2308 | ||
2309 | * remote.c (remote_insert_breakpoint): Ensure that if Z0 | |
2310 | unsupported and we fall back to memory_insert_breakpoint, we | |
2311 | use the unmodified requested address. | |
2312 | ||
01c66ae6 JB |
2313 | 2008-06-27 Joel Brobecker <[email protected]> |
2314 | ||
2315 | * dwarf2read.c (read_attribute_value): Issue a complaint when | |
2316 | adjusting size attribute values of 0xffffffff as zero. | |
2317 | ||
7ccc1c74 JM |
2318 | 2008-06-27 Joseph Myers <[email protected]> |
2319 | ||
2320 | * i386-tdep.c (i386_16_byte_align_p): New. | |
2321 | (i386_push_dummy_call): Determine stack space required for | |
2322 | arguments going forwards allowing for 16-byte alignment, then push | |
2323 | arguments going forwards. | |
2324 | ||
c0a2216e PA |
2325 | 2008-06-27 Pedro Alves <[email protected]> |
2326 | ||
2327 | * infrun.c (start_remote): Don't clear thread list here. | |
2328 | * monitor.c (monitor_open): Include "gdbthread.h". Clear thread | |
2329 | list here. | |
2330 | * remote.c (record_currthread): Upgrade the main thread and its | |
2331 | entry in the thread list if this is the first time we hear about | |
2332 | threads. | |
2333 | (remote_thread_alive): Consider magic_null_ptid or a ptid without | |
2334 | a tid member always alive. | |
2335 | (remote_find_new_threads): Don't update the main thread here. | |
2336 | (remote_start_remote): Clear thread list here. Always add the | |
2337 | main thread. | |
2338 | (extended_remote_attach_1): Add the main thread here. | |
2339 | (extended_remote_mourn_1): Re-add the main thread here. | |
2340 | (extended_remote_create_inferior_1): Add a main thread. | |
2341 | ||
2342 | * Makefile.in (monitor.o): Depend on $(gdbthread_h). | |
2343 | ||
87b0e16e | 2344 | 2008-06-27 Pedro Alves <[email protected]> |
79d7f229 PA |
2345 | |
2346 | Use ptid_t.tid to store thread ids instead of ptid_t.pid. | |
2347 | ||
2348 | * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): New | |
2349 | globals. | |
2350 | (general_thread, continue_thread): Change type to ptid_t. | |
2351 | (record_currthread): Take a ptid_t parameter instead of an | |
2352 | integer. | |
2353 | (MAGIC_NULL_PID): Delete. | |
2354 | (set_thread): Take a ptid_t parameter and adjust. | |
2355 | (set_general_thread, set_continue_thread): New. | |
2356 | (remote_thread_alive, remote_newthread_step) | |
2357 | (remote_current_thread, remote_find_new_threads) | |
2358 | (remote_threads_info, remote_start_remote, remote_vcont_resume) | |
2359 | (remote_resume_1, remote_wait, extended_remote_create_inferior_1) | |
2360 | (threadalive_test, remote_pid_to_str) | |
2361 | (remote_get_thread_local_address): Adjust. | |
2362 | (_initialize_remote): Initialize magic_null_ptid, not_sent_ptid | |
2363 | and any_thread_ptid. | |
2364 | ||
3ca64bd3 JK |
2365 | 2008-06-26 Jan Kratochvil <[email protected]> |
2366 | ||
2367 | * configure.ac (--enable-tui): AC_MSG_ERROR for explicit --enable-tui. | |
2368 | * configure: Regenerated. | |
2369 | ||
28e94949 JB |
2370 | 2008-06-26 Joel Brobecker <[email protected]> |
2371 | ||
2372 | * dwarf2read.c (read_attribute_value): Treat size attribute | |
2373 | values of 0xffffffff as if the attribute value was zero. | |
2374 | ||
8a77dff3 VP |
2375 | 2008-06-26 Vladimir Prus <[email protected]> |
2376 | ||
2377 | * linux-nat.c: Add description of overall logic. | |
2378 | ||
d5af19ba DJ |
2379 | 2008-06-26 Daniel Jacobowitz <[email protected]> |
2380 | ||
2381 | * Makefile.in (GNULIB_H): Use GNULIB_STDINT_H. | |
2382 | (gdb_stdint_h, gdb_stdint.h, stamp-int): Delete. Remove | |
2383 | all dependencies on $(gdb_stdint_h). | |
2384 | (distclean): Do not delete gdb_stdint.h. | |
2385 | * acinclude.m4: Do not use stdint.m4. | |
2386 | * configure.ac: Set GNULIB_STDINT_H. Remove tests for stdint.h, | |
2387 | uintptr_t, and gdb_stdint.h. | |
2388 | * defs.h: Include <stdint.h>. | |
2389 | * gdb_thread_db.h: Assume stdint.h is already included. | |
2390 | * breakpoint.c, findcmd.c, hppa-tdep.c, inf-ptrace.c, proc-service.c, | |
2391 | rs6000-nat.c, spu-linux-nat.c, target.c, win32-nat.c: Do not | |
2392 | include gdb_stdint.h. | |
2393 | * configure, config.in: Regenerate. | |
2394 | ||
00fbcec4 JM |
2395 | 2008-06-26 Joseph Myers <[email protected]> |
2396 | ||
2397 | * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Handle passing | |
2398 | decimal floating-point values in GPRs for soft-float. | |
2399 | (do_ppc_sysv_return_value): Handle returning decimal | |
2400 | floating-point values in GPRs for soft-float. | |
2401 | ||
d5086790 VP |
2402 | 2008-06-26 Vladimir Prus <[email protected]> |
2403 | ||
2404 | * target.c (target_read_until_error): New. | |
680b56ce AS |
2405 | * target.h (target_read_until_error): Declare. |
2406 | * mi/mi-main.c (mi_cmd_data_read_memory): Use | |
2407 | target_read_until_error. | |
d5086790 | 2408 | |
fe9441f6 JK |
2409 | 2008-06-25 Jan Kratochvil <[email protected]> |
2410 | ||
2411 | Fix a memory leak found by Hui Zhu <[email protected]>. | |
2412 | * c-exp.y (parse_number): Move the S and SAVED_CHAR initialization | |
2413 | after the DECFLOAT detection to fix a memory leak. Remove the | |
2414 | redundant NUM initialization. Protect the DECFLOAT detection memory | |
2415 | access before the P block. Restore the P memory content for the | |
2416 | DECFLOAT detection. | |
2417 | ||
ce8f13f8 VP |
2418 | 2008-06-25 Vladimir Prus <[email protected]> |
2419 | ||
2420 | Kill the return value for all MI command functions. | |
2421 | * mi/mi-cmds.h (enum mi_cmd_result): Remove. | |
2422 | (mi_cmd_argv_ftype): Change return type to void. | |
2423 | ||
2424 | * mi/mi-main.c: Adjust all function that implement | |
2425 | MI commands to return nothing. | |
2426 | (struct captured_mi_execute_command_actions): | |
2427 | Remove the rc field. | |
2428 | (mi_cmd_execute): Return nothing. | |
2429 | (mi_execute_async_cli_command): Return nothing. | |
2430 | (mi_cmd_exec_interrupt): Don't print ^done here. | |
2431 | (mi_cmd_target_select): Don't print ^connected here. | |
2432 | (captured_mi_execute_command): Don't check for MI_CMD_DONE. | |
2433 | Special-case -target-select and output ^connected, not ^done. | |
2434 | ||
2435 | * mi/mi-cmd-break.c: Adjust. | |
2436 | * mi/mi-cmd-disas.c: Adjust. | |
2437 | * mi/mi-cmd-env.c: Adjust. | |
2438 | * mi/mi-cmd-file.c: Adjust. | |
2439 | * mi/mi-cmd-stack.c: Adjust. | |
2440 | * mi/mi-cmd-target.c: Adjust. | |
2441 | * mi/mi-cmd-var.c: Adjust. | |
2442 | * mi/mi-interp.c: Adjust. | |
2443 | * mi/mi-symbol-cmds.c: Adjust. | |
2444 | ||
a2840c35 VP |
2445 | 2008-06-25 Vladimir Prus <[email protected]> |
2446 | ||
2447 | Emit ^running via observer. | |
2448 | * mi/mi-interp.c (mi_cmd_interpreter_exec): Do no print | |
680b56ce AS |
2449 | ^running here. |
2450 | (mi_on_resume): Print ^running if not previously output. | |
2451 | * mi/mi-main.c (running_result_record_printed): New. | |
2452 | (captured_mi_execute_command): Reset | |
2453 | running_result_record_printed. Use running_result_record_printed | |
2454 | to decide if we should skip ^done. | |
2455 | (mi_execute_async_cli_command): Don't print ^running here. | |
2456 | * mi/mi-main.h (current_token, running_result_record_printed): | |
2457 | Declare. | |
a2840c35 | 2458 | |
1f41b062 MS |
2459 | 2008-06-24 Michael Snyder <[email protected]> |
2460 | ||
2461 | * infrun.c (_initialize_infrun): White space and typo fix. | |
2462 | ||
eff8332b CF |
2463 | 2008-06-23 Christopher Faylor <[email protected]> |
2464 | ||
2465 | * win32-nat.c (safe_symbol_file_add_stub): Remove unused variable. | |
2466 | (do_initial_win32_stuff): Fix problem with inability to set breakpoints | |
2467 | when first loading DLL with "dll" command. | |
2468 | ||
e50ce6de | 2469 | 2008-06-19 Pierre Muller <[email protected]> |
114374a0 PM |
2470 | |
2471 | * gnu-nat.c (proc_string): Use capital T for "Thread". | |
680b56ce | 2472 | |
e50ce6de | 2473 | 2008-06-19 Pierre Muller <[email protected]> |
17526a8c PM |
2474 | |
2475 | * win32-nat.c (win32_pid_to_str): Use capital T for "Thread". | |
680b56ce | 2476 | |
59ddf1e7 JB |
2477 | 2008-06-18 Joel Brobecker <[email protected]> |
2478 | ||
680b56ce AS |
2479 | * solib-osf.c (osf_solib_create_inferior_hook): Do nothing if |
2480 | the target cannot run. | |
59ddf1e7 JB |
2481 | |
2482 | 2008-06-18 Joel Brobecker <[email protected]> | |
ea8eedbe JB |
2483 | |
2484 | * solib-osf.c (osf_solib_create_inferior_hook): Do nothing if | |
2485 | we're attaching to a running process. | |
2486 | ||
e50ce6de | 2487 | 2008-06-18 Pierre Muller <[email protected]> |
7488902c PM |
2488 | |
2489 | * win32-nat.c (handle_load_dll): Give dll name and load address | |
2490 | if debug_events is on. | |
2491 | (handle_unload_dll): Likewise. | |
2492 | ||
8f6a8e84 VP |
2493 | 2008-06-14 Vladimir Prus <[email protected]> |
2494 | ||
2495 | Don't suppress *running when doing finish. | |
680b56ce AS |
2496 | * infcall.c (call_function_by_hand): Set both |
2497 | suppress_resume_observer and suppress_stop_observer. | |
2498 | * infcmd.c (suppress_run_stop_observers): Split into... | |
2499 | (suppress_resume_observer, suppress_stop_observer): ...those. | |
2500 | (finish_command_continuation): Clear suppress_stop_observer. | |
2501 | (finish_command): Set suppress_stop_observer. | |
2502 | * inferior.h (suppress_run_stop_observers): Split into... | |
2503 | (suppress_resume_observer, suppress_stop_observer): ...those. | |
2504 | * infrun.c (normal_stop): Check for suppress_stop_observer. | |
2505 | * thread.c (set_running): Check for suppress_resume_observer. | |
8f6a8e84 | 2506 | |
4309257c PM |
2507 | 2008-06-12 Pedro Alves <[email protected]> |
2508 | Pierre Muller <[email protected]> | |
2509 | ||
2510 | * gdbarch.sh (gdbarch_skip_main_prologue): New. | |
2511 | * gdbarch.h, gdbarch.c: Regenerate. | |
2512 | * i386-tdep.h (i386_skip_main_prologue): Declare. | |
2513 | * i386-tdep.c (i386_skip_main_prologue): New. | |
680b56ce | 2514 | * i386-cygwin-tdep.c (i386_cygwin_init_abi): Register |
4309257c PM |
2515 | i386_skip_main_prologue as gdbarch_skip_main_prologue gdbarch callback. |
2516 | * symtab.c (find_function_start_sal): When pc points at the "main" | |
2517 | function, call gdbarch_skip_main_prologue. | |
2518 | ||
a4e2ee12 DJ |
2519 | 2008-06-11 Daniel Jacobowitz <[email protected]> |
2520 | ||
2521 | * value.c (value_primitive_field): Fetch lazy register values. | |
2522 | ||
060871df PA |
2523 | 2008-06-11 Pedro Alves <[email protected]> |
2524 | ||
2525 | * NEWS: Mention support removal of undocumented S AA p PID stop | |
2526 | reply packet. | |
2527 | ||
2528 | * remote.c (remote_wait): Remove undocumented S AA p PID support. | |
2529 | ||
336de56d SS |
2530 | 2008-06-10 Stan Shebs <[email protected]> |
2531 | ||
2532 | * MAINTAINERS: Update my affiliation and address. | |
2533 | ||
7949220d AS |
2534 | 2008-06-10 Andreas Schwab <[email protected]> |
2535 | ||
2536 | * top.c (print_gdb_version): Don't print final newline. | |
2537 | ||
e1ac3328 VP |
2538 | 2008-06-10 Vladimir Prus <[email protected]> |
2539 | ||
2540 | Implement *running. | |
680b56ce AS |
2541 | * Makefile.in: Update dependencies. |
2542 | * gdbthread.h (struct thread_info): New field | |
2543 | running_. | |
2544 | (set_running, is_running): New. | |
2545 | * thread.c (set_running, is_running): New. | |
2546 | * inferior.h (suppress_normal_stop_observer): Rename to... | |
2547 | (suppress_run_stop_observers): ..this. | |
2548 | * infcmd.c (suppress_normal_stop_observer): Rename to... | |
2549 | (suppress_run_stop_observers): ..this. | |
2550 | (finish_command_continuation, finish_command): Adjust. | |
2551 | * infcall.c (call_function_by_hand): Adjust. | |
2552 | * infrun.c (normal_stop): Call set_running. | |
2553 | * target.c (target_resume): New. Call set_running. | |
2554 | * target.h (target_resume): Convert from macro to | |
2555 | a function. | |
2556 | ||
2557 | * mi/mi-interp.c (mi_on_resume): New. | |
2558 | (mi_interpreter_init): Register mi_on_resume. | |
e1ac3328 | 2559 | |
f7f9a841 VP |
2560 | 2008-06-10 Vladimir Prus <[email protected]> |
2561 | ||
2562 | Use observers to report stop events in MI. | |
680b56ce AS |
2563 | * mi/mi-interp.c (mi_on_normal_stop): New. |
2564 | (mi_interpreter_init): Register mi_on_normal_stop. | |
2565 | (mi_interpreter_exec_continuation): Remove. | |
2566 | (mi_cmd_interpreter_exec): Don't register the above. | |
2567 | * mi/mi-main.c (captured_mi_execute_command): Don't care | |
2568 | about sync_execution. | |
2569 | (mi_execute_async_cli_command): Don't install continuation. Don't | |
2570 | print *stopped. | |
2571 | (mi_exec_async_cli_cmd_continuation): Remove. | |
f7f9a841 | 2572 | |
f5871ec0 VP |
2573 | 2008-06-10 Vladimir Prus <[email protected]> |
2574 | ||
2575 | Suppress normal stop observer when it's problematic. | |
680b56ce AS |
2576 | * inferior.h (suppress_normal_stop_observer): New. |
2577 | * infcall.c (call_function_by_hand): Disable stop events when | |
2578 | doing function calls. | |
2579 | * infmcd.c (suppress_normal_stop_observer): New. | |
2580 | (finish_command_continuation): Call normal_stop observer | |
2581 | explicitly. | |
2582 | (finish_command): Disable stop events inside proceed. | |
2583 | * infrun.c (normal_stop): Don't call normal stop observer if | |
2584 | suppressed of if multi-step is in progress. | |
f5871ec0 | 2585 | |
3d3191a6 VP |
2586 | 2008-06-10 Vladimir Prus <[email protected]> |
2587 | ||
2588 | Remove stale code. | |
680b56ce AS |
2589 | * infrun.c (finish_command): Don't pass cleanup |
2590 | to continuation. | |
2591 | (finish_command_continuation): Don't grab cleanup from | |
2592 | the passed data, as we don't use, and cannot, use it anyway. | |
3d3191a6 | 2593 | |
0b080f59 VP |
2594 | 2008-06-10 Vladimir Prus <[email protected]> |
2595 | ||
2596 | Introduce common cleanup for restoring integers. | |
680b56ce AS |
2597 | * defs.h (make_cleanup_restore_integer): New declaration. |
2598 | (struct cleanup): New field free_arg. | |
2599 | (make_my_cleanup_2): New. | |
2600 | * utils.c (restore_integer_closure, restore_integer) | |
2601 | (make_cleanup_restore_integer): New. | |
2602 | (make_my_cleanup): Initialize the free_arg field and | |
2603 | renamed to make_my_cleanup_2. | |
2604 | (do_my_cleanups): Call free_arg. | |
2605 | (discard_cleanups): Call free_arg. | |
2606 | * breakpoint.c (restore_always_inserted_mode): Remove. | |
2607 | (update_breakpoints_after_exec): Use make_cleanup_restore_integer. | |
0b080f59 | 2608 | |
b4f62b57 DE |
2609 | 2008-06-09 Doug Evans <[email protected]> |
2610 | ||
2611 | * remote.c (remote_wait): Include beginning of malformed packet | |
2612 | in error output. | |
2613 | ||
37cd5d19 TT |
2614 | 2008-06-09 Tom Tromey <[email protected]> |
2615 | ||
2616 | * completer.c (complete_line): Don't special-case | |
2617 | expression_completer. | |
2618 | (expression_completer): Only pass last word to | |
2619 | location_completer. | |
2620 | * c-exp.y (yylex): Check 'token', not 'operator'. | |
2621 | ||
3526781e DJ |
2622 | 2008-06-09 Daniel Jacobowitz <[email protected]> |
2623 | ||
2624 | * configure.ac (build_warnings): Add -Wno-format for mingw. | |
2625 | * configure: Regenerated. | |
2626 | ||
d001be7a DJ |
2627 | 2008-06-07 Daniel Jacobowitz <[email protected]> |
2628 | ||
2629 | * NEWS: Make indentation consistent. Move exec tracing entry out | |
2630 | of remote packet list. | |
2631 | ||
65d12d83 TT |
2632 | 2008-06-06 Tom Tromey <[email protected]> |
2633 | ||
2634 | * value.h (evaluate_subexpression_type, extract_field_op): | |
2635 | Declare. | |
2636 | * printcmd.c (_initialize_printcmd): Use expression_completer for | |
2637 | 'p', 'inspect', 'call'. | |
2638 | * parser-defs.h (parse_field_expression): Declare. | |
2639 | * parse.c: Include exceptions.h. | |
2640 | (in_parse_field, expout_last_struct): New globals. | |
2641 | (mark_struct_expression): New function. | |
2642 | (prefixify_expression): Return int. | |
2643 | (prefixify_subexp): Return int. Use expout_last_struct. | |
2644 | (parse_exp_1): Update. | |
2645 | (parse_exp_in_context): Add 'out_subexp' argument. Handle | |
2646 | in_parse_field. | |
2647 | (parse_field_expression): New function. | |
2648 | * expression.h (parse_field_expression): Declare. | |
2649 | (in_parse_field): Likewise. | |
2650 | * eval.c (evaluate_subexpression_type): New function. | |
2651 | (extract_field_op): Likewise. | |
2652 | * completer.h (expression_completer): Declare. | |
2653 | * completer.c (expression_completer): New function. | |
2654 | (count_struct_fields, add_struct_fields): New functions. | |
2655 | * c-exp.y (yyparse): Redefine. | |
2656 | (COMPLETE): New token. | |
2657 | (exp): New productions. | |
2658 | (saw_name_at_eof, last_was_structop): New globals. | |
2659 | (yylex): Return COMPLETE when needed. Recognize in_parse_field. | |
2660 | (c_parse): New function. | |
2661 | * breakpoint.c (_initialize_breakpoint): Use expression_completer | |
2662 | for watch, awatch, and rwatch. | |
2663 | * Makefile.in (parse.o): Depend on exceptions_h. | |
2664 | ||
fed27633 PP |
2665 | 2008-06-06 Paul Pluzhnikov <[email protected]> |
2666 | ||
2667 | PR gdb/1147 | |
2668 | * gdb/valopts.c (find_overload_match): Handle references | |
2669 | to pointers. | |
2670 | ||
aced2898 PH |
2671 | 2008-06-06 Paul N. Hilfinger <[email protected]> |
2672 | ||
2673 | * ada-lang.c (ada_value_assign): Correct big-endian case to take into | |
2674 | account the bitsize of the 'from' operand. | |
2675 | ||
a2b87ed1 PA |
2676 | 2008-06-06 Pedro Alves <[email protected]> |
2677 | ||
2678 | * annotate.h (annotate_thread_changed): Declare. | |
2679 | ||
3d6d0b9d NR |
2680 | 2008-06-06 Nick Roberts <[email protected]> |
2681 | ||
2682 | * annotate.c (annotate_thread_changed): New function. | |
2683 | * thread.c (thread_command) : Use it. | |
2684 | * infrun.c (normal_stop): Use it. | |
2685 | ||
c16158bc | 2686 | 2008-06-05 Vladimir Prus <[email protected]> |
680b56ce AS |
2687 | Nathan Sidwell <[email protected]> |
2688 | Joseph Myers <[email protected]> | |
c16158bc JM |
2689 | |
2690 | * acinclude.m4: Include ../config/acx.m4. | |
2691 | * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL. | |
2692 | * configure, config.in: Regenerate. | |
2693 | * main.c (print_gdb_help): Use REPORT_BUGS_TO for bug-reporting | |
2694 | address. | |
2695 | * top.c (print_gdb_version): Use PKGVERSION and REPORT_BUGS_TO. | |
2696 | ||
75c99385 PA |
2697 | 2008-06-05 Pedro Alves <[email protected]> |
2698 | ||
2699 | Replace 'target async' by 'maintenance set remote-async' and | |
2700 | 'target remote' combination. | |
2701 | ||
2702 | * remote.c (remote_async_wait): Merge into remote_wait, and | |
2703 | remove. | |
2704 | (remote_async_permitted, remote_async_permitted_set): New | |
2705 | variables. | |
2706 | (set_maintenance_remote_async_permitted) | |
2707 | (show_maintenance_remote_async_permitted): New functions. | |
2708 | (remote_async_ops, extended_async_remote_ops): Delete. | |
2709 | (remote_async_open, extended_remote_async_open): Delete. | |
2710 | (remote_open_1): Drop async_p parameter. Update callers. Replace | |
2711 | async_p with remote_async_permitted checks. | |
2712 | (extended_async_remote_attach): Delete. | |
2713 | (remote_resume, remote_async_resume): Merge and leave remote_resume. | |
2714 | (remote_async_terminal_inferior): Rename to... | |
2715 | (remote_terminal_inferior): ... this, and add | |
2716 | remote_async_termitted check. | |
2717 | (remote_async_terminal_ours): Rename to... | |
2718 | (remote_terminal_ours): ... this, and add remote_async_termitted | |
2719 | check. | |
2720 | (remote_wait, remote_async_wait): Merge and leave remote_wait | |
2721 | only. | |
2722 | (remote_kill, remote_async_kill): Merge and leave remote_kill | |
2723 | only. | |
2724 | (remote_async_mourn, extended_async_remote_mourn): Delete. | |
2725 | (extended_remote_create_inferior_1): Drop async_p parameter. | |
2726 | Update callers. Always use extended_remote_ops. | |
2727 | (extended_remote_async_create_inferior): Delete. | |
2728 | (remote_return_zero): Delete. | |
2729 | (init_remote_ops): Register remote_can_async_p, remote_async, | |
2730 | remote_async_mask, remote_terminal_inferior and | |
2731 | remote_terminal_ours. | |
2732 | (remote_can_async_p, remote_is_async_p): Check for | |
2733 | remote_async_permitted. | |
2734 | (init_remote_async_ops, init_extended_async_remote_ops): Remove. | |
2735 | (set_remote_cmd): Don't add async and extended-async targets. | |
2736 | (_initialize_remote): Add set/show remote-async maintenance | |
2737 | commands. | |
2738 | ||
cf30943b PA |
2739 | 2008-06-05 Pedro Alves <[email protected]> |
2740 | ||
2741 | * remote.c (kill_kludge): Delete. | |
2742 | (remote_wait, remote_async_wait): Don't set it. | |
2743 | (remote_kill, remote_async_kill): Don't do anything with it. | |
2744 | ||
49fd4a42 PA |
2745 | 2008-06-05 Pedro Alves <[email protected]> |
2746 | ||
2747 | * linux-thread-db.c (thread_db_wait): Don't trim event ptid. | |
2748 | ||
2e618c13 AR |
2749 | 2008-06-05 Aleksandar Ristovski <[email protected]> |
2750 | ||
2751 | * bcache.c (bcache_data): Call deprecated_bcache_added function. | |
680b56ce AS |
2752 | (deprecated_bcache_added): New function name. Body of function |
2753 | bcache_data is used here with the addition of 'added' argument. | |
2e618c13 AR |
2754 | * bcache.h (deprecated_bcache_added): New function. |
2755 | * symfile.c (add_psymbol_to_bcache): New helper function, takes part of | |
2756 | work from add_psymbol_to_list - initialises partial symbol and stashes | |
2757 | it in objfile's cache. | |
680b56ce | 2758 | (append_psymbol_to_list): New helper function, takes other part of |
2e618c13 | 2759 | work from add_psymbol_to_list - adds partial symbol to the given list. |
680b56ce | 2760 | (add_psymbol_to_list): Call helper functions instead of doing work |
2e618c13 AR |
2761 | here. If adding to global list, do not duplicate partial symbols in the |
2762 | partial symtab. | |
2763 | ||
c0b37c48 AR |
2764 | 2008-06-05 Aleksandar Ristovski <[email protected]> |
2765 | ||
2766 | * breakpoint.c (print_exception_catchpoint): Put 'exception' back to | |
2767 | 'exception caught|thrown' message. | |
2768 | ||
1e3a102a JK |
2769 | 2008-06-05 Jan Kratochvil <[email protected]> |
2770 | ||
2771 | * Makefile.in: Update dependencies. | |
2772 | * dwarf2expr.c: New include "gdb_assert.h". | |
2773 | (new_dwarf_expr_context): Initialize MAX_RECURSION_DEPTH. | |
2774 | (dwarf_expr_eval): Sanity check the RECURSION_DEPTH count. | |
2775 | (execute_stack_op): Error out on too large RECURSION_DEPTH. | |
2776 | Increase/decrease RECURSION_DEPTH around the function. | |
2777 | ||
8d385431 DJ |
2778 | 2008-06-05 Daniel Jacobowitz <[email protected]> |
2779 | ||
2780 | * remote.c (get_offsets): Handle a single segment. | |
2781 | * symfile.c (symfile_map_offsets_to_segments): Allow more bases | |
2782 | than segments. | |
2783 | ||
93a57060 DJ |
2784 | 2008-06-03 Daniel Jacobowitz <[email protected]> |
2785 | ||
2786 | * solib-svr4.c (struct lm_info): Add lm_addr. | |
2787 | (main_lm_addr): New. | |
2788 | (svr4_default_sos): Set lm_addr. | |
2789 | (svr4_current_sos): Set lm_addr and main_lm_addr. | |
2790 | (svr4_fetch_objfile_link_map): Rewrite. | |
2791 | (svr4_clear_solib): Clear main_lm_addr. | |
2792 | ||
609ba780 | 2793 | 2008-06-03 Michael Snyder <[email protected]> |
680b56ce | 2794 | Joseph Myers <[email protected]> |
609ba780 JM |
2795 | |
2796 | * mips-tdep.c (mips_eabi_return_value): Replace stub that always | |
2797 | returned RETURN_VALUE_STRUCT_CONVENTION with a real function. | |
2798 | ||
c95f5026 JB |
2799 | 2008-06-02 Roman Zippel <[email protected]> |
2800 | ||
2801 | * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Fix incorrect test. | |
2802 | ||
e4d8bc08 JB |
2803 | 2008-06-02 Roman Zippel <[email protected]> |
2804 | ||
2805 | * m68k-tdep.c (m68k_analyze_prologue): Fix length of lea insn. | |
2806 | ||
40adab56 JB |
2807 | 2008-06-01 Joel Brobecker <[email protected]> |
2808 | ||
2809 | * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Do not | |
2810 | treat pointers in data space as function descriptors if the | |
2811 | target address is also in the data space. | |
2812 | ||
bfd66dd9 JB |
2813 | 2008-05-30 Joel Brobecker <[email protected]> |
2814 | ||
2815 | * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Set | |
2816 | the trad-frame register value for the SP register. | |
2817 | ||
7ea566be MK |
2818 | 2008-05-29 Mark Kettenis <[email protected]> |
2819 | ||
2820 | * sparcnbsd-tdep.c, sparcobsd-tdep.c: Update for unwinder changes. | |
2821 | ||
fcac911a JB |
2822 | 2008-05-28 Joel Brobecker <[email protected]> |
2823 | ||
2824 | * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Improve the heuristic | |
2825 | that identifies function descriptors outside of the .opd section. | |
2826 | ||
ade92717 AR |
2827 | 2008-05-28 Aleksandar Ristovski <[email protected]> |
2828 | ||
2829 | * breakpoint.c (print_exception_catchpoint): In CLI add 'Temporary' for | |
680b56ce | 2830 | temporary catchpoints. In MI add missing fields 'reason', 'disp', |
ade92717 AR |
2831 | 'bkptno'. |
2832 | (print_mention_exception_catchpoint): Add 'Temporary' for temporary | |
2833 | catchpoints. | |
2834 | (handle_gnu_v3_exceptions): Use tempflag. | |
2835 | ||
f7f9ae2c VP |
2836 | 2008-05-28 Vladimir Prus <[email protected]> |
2837 | ||
2838 | Refactor varobj_update interface. | |
680b56ce AS |
2839 | * varobj.c (varobj_update): Report changes as vector. Also |
2840 | return not just a list of varobj, but a list of special structures | |
2841 | that tell what exactly has changed. | |
2842 | * varobj.h (enum varobj_update_error): Rename to | |
2843 | varobj_scope_status. | |
2844 | (struct varobj_update_result_t): New. | |
2845 | (varobj_update): Adjust prototype. | |
2846 | * mi/mi-cmd-var.c: Adjust for changes. | |
f7f9ae2c | 2847 | |
ea56f9c2 VP |
2848 | 2008-05-28 Vladimir Prus <[email protected]> |
2849 | ||
2850 | * varobj.c (varobj_update): Fix comment typo. | |
2851 | Fix indentation. | |
2852 | ||
c7efd0b9 JB |
2853 | 2008-05-26 Joel Brobecker <[email protected]> |
2854 | ||
2855 | Set the symtab field of symbols read from ECOFF debugging entries. | |
2856 | * mdebugread.c (add_symbol): Add new parameter symtab. | |
2857 | (parse_symbol): Update calls to add_symbol throughout. | |
2858 | ||
2a2d4dc3 AS |
2859 | 2008-05-27 Andreas Schwab <[email protected]> |
2860 | ||
2861 | * symtab.h (enum address_class): Remove LOC_REGPARM and | |
2862 | LOC_COMPUTED_ARG. | |
2863 | (struct symbol): Add is_argument. | |
2864 | (SYMBOL_IS_ARGUMENT): Define. | |
2865 | ||
2866 | * ada-lang.c (ada_add_block_symbols): Use SYMBOL_IS_ARGUMENT. | |
2867 | * buildsym.c (finish_block): Likewise. | |
2868 | * stack.c (print_frame_args, print_block_frame_locals) | |
2869 | (print_frame_arg_vars): Likewise. | |
2870 | * symtab.c (lookup_block_symbol): Likewise. | |
2871 | * tracepoint.c (add_local_symbols): Likewise. | |
2872 | * mi/mi-cmd-stack.c (list_args_or_locals): Likewise. | |
2873 | ||
2874 | * coffread.c (process_coff_symbol): Set SYMBOL_IS_ARGUMENT. | |
2875 | * dwarf2read.c (new_symbol): Likewise. | |
2876 | * mdebugread.c (parse_symbol): Likewise. | |
2877 | * stabsread.c (define_symbol): Likewise. | |
2878 | ||
2879 | * ada-exp.y (select_possible_type_sym): Don't handle LOC_REGPARM | |
2880 | and LOC_COMPUTED_ARG. | |
2881 | * ada-lang.c (resolve_subexp, symtab_for_sym): Likewise. | |
2882 | * ax-gdb.c (gen_var_ref): Likewise. | |
2883 | * eval.c (evaluate_subexp_for_address): Likewise. | |
2884 | * findvar.c (symbol_read_needs_frame, read_var_value): Likewise. | |
2885 | * m2-exp.y (yylex): Likewise. | |
2886 | * printcmd.c (address_info): Likewise. | |
2887 | * symmisc.c (print_symbol, print_partial_symbols): Likewise. | |
2888 | * tracepoint.c (collect_symbol, scope_info): Likewise. | |
2889 | ||
17ea7499 CES |
2890 | 2008-05-24 Carlos Eduardo Seo <[email protected]> |
2891 | ||
2892 | * gdbarch.sh: Added new gdbarch struct | |
2893 | core_regset_sections. | |
2894 | * gdbarch.c: Refreshed. | |
2895 | * gdbarch.h: Refreshed. | |
2896 | * regset.h (core_regset_section): Declared. | |
2897 | * linux-nat.c (linux_nat_do_thread_registers): Added | |
2898 | support for the new gdbarch struct core_regset_sections. | |
2899 | * utils.c (host_address_to_string): New function. | |
2900 | * defs.h (host_address_to_string): New prototype. | |
2901 | * i386-linux-tdep.c (i386_regset_rections): New register | |
2902 | sections list for i386. | |
2903 | (i386_linux_init_abi): Initialized new gdbarch struct | |
2904 | core_regset_sections. | |
2905 | * Makefile.in: Updated to reflect dependency changes. | |
2906 | * ppc-linux-tdep.c (ppc_regset_sections): Register | |
2907 | sections list for ppc. | |
2908 | (ppc_linux_init_abi): Initialized new gdbarch struct | |
2909 | core_regset_sections | |
2910 | ||
c4fc331b AS |
2911 | 2008-05-24 Andreas Schwab <[email protected]> |
2912 | ||
2913 | * linespec.c (decode_objc): Save current language around call to | |
2914 | get_selected_block. | |
2915 | ||
e936309c JB |
2916 | 2008-05-23 Joel Brobecker <[email protected]> |
2917 | ||
2918 | * valprint.h (get_array_bounds): Renames get_array_low_bound. | |
2919 | * valprint.c (get_array_bounds): Renames get_array_low_bound. | |
2920 | Return the proper bound value if the array index type is an | |
2921 | enumerated type. Compute the high bound if requested. | |
2922 | (val_print_array_elements): Handle the case when the array | |
2923 | element has a null size. | |
2924 | * ada-valprint.c (print_optional_low_bound): Add handling | |
2925 | for empty arrays or arrays of zero-size elements. | |
2926 | (ada_val_print_array): New function, extracted out from | |
2927 | ada_val_print_1 case TYPE_CODE_ARRAY, and enhanced to | |
2928 | handle empty arrays and arrays of zero-size elements. | |
2929 | (ada_val_print_1)[case TYPE_CODE_ARRAY]: Replace extracted-out | |
2930 | code by call to ada_val_print_array. | |
2931 | (ada_value_print): Remove handling of null array. The handling | |
2932 | was incomplete and is now better handled by ada_val_print_array. | |
2933 | ||
50ee7535 MD |
2934 | 2008-05-23 Markus Deuling <[email protected]> |
2935 | ||
2936 | * annotate.c (annotate_source, annotate_frame_begin): Replace | |
2937 | deprecated_print_address_numeric with paddress. | |
2938 | * cli/cli-cmds.c (list_command, edit_command): Likewise. | |
2939 | * tui/tui-stack.c (tui_make_status_line): Likewise. | |
2940 | ||
2941 | * defs.h (deprecated_print_address_numeric): Remove. | |
2942 | * printcmd.c (deprecated_print_address_numeric): Remove. | |
2943 | * maint.c (maint_print_section_info): Fix comment. | |
2944 | ||
d44e8473 MD |
2945 | 2008-05-23 Markus Deuling <[email protected]> |
2946 | ||
2947 | * valprint.c (print_hex_chars, print_octal_chars, print_decimal_chars, | |
2948 | print_binary_chars, print_char_chars): Add byte_order parameter and | |
2949 | replace gdbarch_byte_order. | |
2950 | (print_decimal_chars): Replace START_P, NOT_END_P and NEXT_P by their | |
2951 | expressions and remove them. Remove unused TWO_TO_FOURTH. | |
2952 | (val_print_type_code_int): Introduce gdbarch_byte_order to get at the | |
2953 | endianness. Update call to print_hex_chars. | |
2954 | * valprint.h (print_hex_chars, print_octal_chars, print_decimal_chars, | |
2955 | print_binary_chars, print_char_chars): Add byte_order parameter. | |
2956 | * printcmd.c (print_scalar_formatted): Introduce gdbarch_byte_order to | |
2957 | get at the endianness. Update print_*_char calls to use byte_order. | |
2958 | ||
10f4ecb8 UW |
2959 | 2008-05-22 Ulrich Weigand <[email protected]> |
2960 | ||
2961 | * symtab.h (struct symbol): Make "aux_value" member a void pointer | |
2962 | instead of a union. | |
2963 | (SYMBOL_LOCATION_BATON): Update. | |
2964 | ||
c3b22bd0 UW |
2965 | 2008-05-22 Ulrich Weigand <[email protected]> |
2966 | ||
2967 | * symtab.h (enum address_class): Remove LOC_BASEREG and | |
2968 | LOC_BASEREG_ARG. | |
2969 | (struct symbol): Remove "basereg" member of "aux_value" union. | |
2970 | (SYMBOL_BASEREG): Remove. | |
2971 | ||
2972 | * ada-exp.y (select_possible_type_sym): Do not handle LOC_BASEREG | |
2973 | or LOC_BASEREG_ARG. | |
2974 | * ada-lang.c (resolve_subexp, symtab_for_sym): Likewise. | |
2975 | (ada_add_block_symbols): Likewise. | |
2976 | * ax-gdb.c (gen_var_ref): Likewise. | |
2977 | * buildsym.c (finish_block): Likewise. | |
2978 | * findvar.c (symbol_read_needs_frame, read_var_value): Likewise. | |
2979 | * m2-exp.y (yylex): Likewise. | |
2980 | * mi/mi-cmd-stack.c (list_args_or_locals): Likewise. | |
2981 | * printcmd.c (address_info): Likewise. | |
2982 | * stack.c (print_frame_args, print_block_frame_locals): Likewise. | |
2983 | (print_frame_arg_vars): Likewise. | |
2984 | * symmisc.c (print_symbol): Likewise. | |
2985 | * symtab.c (lookup_block_symbol): Likewise. | |
2986 | * tracepoint.c (collect_symbol, add_local_symbols): Likewise. | |
2987 | (scope_info): Likewise. | |
2988 | ||
aa59ba6b UW |
2989 | 2008-05-22 Ulrich Weigand <[email protected]> |
2990 | ||
2991 | * symtab.h (enum address_class): Remove LOC_LOCAL_ARG. | |
2992 | ||
2993 | * ada-exp.y (select_possible_type_sym): Do not handle LOC_LOCAL_ARG. | |
2994 | * ada-lang.c (resolve_subexp, symtab_for_sym): Likewise. | |
2995 | (ada_add_block_symbols): Likewise. | |
2996 | * ax-gdb.c (gen_var_ref): Likewise. | |
2997 | * buildsyms.c (finish_block): Likewise. | |
2998 | * findvar.c (symbol_read_needs_frame, read_var_value): Likewise. | |
2999 | * m2-exp.y (yylex): Likewise. | |
3000 | * mi/mi-cmd-stack.c (list_args_or_locals): Likewise. | |
3001 | * printcmd.c (address_info): Likewise. | |
3002 | * stack.c (print_frame_args, print_frame_arg_vars): Likewise. | |
3003 | * symmisc.c (print_symbol, print_partial_symbols): Likewise. | |
3004 | * symtab.c (lookup_block_symbol): Likewise. | |
3005 | * tracepoint.c (collect_symbol, add_local_symbols): Likewise. | |
3006 | (scope_info): Likewise. | |
3007 | ||
0bb4e8c4 UW |
3008 | 2008-05-22 Ulrich Weigand <[email protected]> |
3009 | ||
3010 | * symtab.h (enum address_class): Remove LOC_INDIRECT and | |
3011 | LOC_HP_THREAD_LOCAL_STATIC. | |
3012 | ||
3013 | * findvar.c (symbol_read_needs_frame, read_var_value): Do not | |
3014 | handle LOC_INDIRECT or LOC_HP_THREAD_LOCAL_STATIC. | |
3015 | (read_var_value): Likewise. | |
3016 | * buildsym.c (finish_block): Likewise. | |
3017 | * objfiles.c (objfile_relocate): Likewise. | |
3018 | * printcmd.c (address_info): Likewise. | |
3019 | * symmisc.c (print_symbol, print_partial_symbols): Likewise. | |
3020 | * tracepoint.c (scope_info): Likewise. | |
3021 | ||
9f61f19b MG |
3022 | 2008-05-21 Markus Deuling <[email protected]> |
3023 | Maxim Grigoriev <[email protected]> | |
3024 | ||
3025 | * xtensa-tdep.c (xtensa_read_register): Remove. | |
3026 | (xtensa_frame_cache): Get rid of xtensa_read_register. Pass extra | |
3027 | argument litbase to call0_frame_cache(). | |
3028 | (call0_track_op, call0_analyze_prologue) | |
3029 | (call0_frame_cache): Use extra argument litbase. | |
3030 | ||
0e479716 JB |
3031 | 2008-05-21 Joel Brobecker <[email protected]> |
3032 | ||
3033 | * infcmd.c (_initialize_infcmd): Add new "fin" alias for "finish". | |
3034 | ||
214be669 UW |
3035 | 2008-05-21 Ulrich Weigand <[email protected]> |
3036 | ||
3037 | * frame.h (SIZEOF_FRAME_SAVED_REGS): Remove. | |
3038 | ||
0cd9ab92 UW |
3039 | 2008-05-21 Ulrich Weigand <[email protected]> |
3040 | ||
3041 | * alpha-mdebug-tdep.c: Include "trad-frame.h". | |
3042 | (struct alpha_mdebug_unwind_cache): Change type of SAVED_REGS to | |
3043 | struct trad_frame_saved_reg *. | |
3044 | (alpha_mdebug_frame_unwind_cache): Allocate SAVED_REGS using | |
3045 | trad_frame_alloc_saved_regs. Update accesses. Record previous | |
3046 | value of SP as being vfp. | |
3047 | (alpha_mdebug_frame_prev_register): Use trad_frame_get_prev_register. | |
3048 | * Makefile.in (alpha-mdebug-tdep.o): Update dependencies. | |
3049 | ||
f52cb1b8 MD |
3050 | 2008-05-21 Markus Deuling <[email protected]> |
3051 | ||
3052 | * score-tdep.c (score_print_insn): Get the current endianess from | |
3053 | disassemble_info instead of gdbarch_byte_order. | |
3054 | ||
8fa75a5d PA |
3055 | 2008-05-21 Pedro Alves <[email protected]> |
3056 | ||
3057 | * frame.c (get_prev_frame_1): Build frame id before setting | |
3058 | this_frame->prev_p, not after. | |
3059 | ||
e8e48118 NR |
3060 | 2008-05-21 Nick Roberts <[email protected]> |
3061 | ||
3062 | * annotate.c (annotate_new_thread): New function for new-thread | |
3063 | annotation. | |
3064 | * annotate.h: (annotate_new_thread): New extern. | |
3065 | * thread.c (add_thread_with_info): Use it. | |
3066 | * Makefile.in (thread.o): Add dependency on annotate.h. | |
3067 | ||
c57918b2 JB |
3068 | 2008-05-20 Joel Brobecker <[email protected]> |
3069 | ||
3070 | * win32-nat.c (win32_wait): Block the control-c event while | |
3071 | waiting for a debug event. | |
3072 | ||
6c9353d3 PA |
3073 | 2008-05-19 Pedro Alves <[email protected]> |
3074 | ||
3075 | * symtab.h (lookup_symbol_in_language): Update comment. | |
3076 | * symtab.c (lookup_symbol_aux_block): Update comment. | |
3077 | * ada-lang.c (ada_lookup_symbol_list): Update comment. | |
3078 | ||
2570f2b7 UW |
3079 | 2008-05-19 Ulrich Weigand <[email protected]> |
3080 | ||
3081 | * symtab.h (lookup_symbol_in_language): Remove SYMTAB parameter. | |
3082 | (lookup_symbol): Likewise. | |
3083 | * symtab.c (lookup_symbol_in_language): Remove SYMTAB parameter. | |
3084 | (lookup_symbol): Likewise. | |
3085 | (search_symbols): Update. | |
3086 | ||
3087 | * linespec.c (find_methods, collect_methods): Update. | |
3088 | (add_matching_methods, add_constructors): Update. | |
3089 | (decode_compound, decode_dollar, decode_variable): Update. | |
3090 | (lookup_prefix_sym): Update. | |
3091 | ||
3092 | (symbol_found): Remove SYM_SYMTAB parameter. | |
3093 | Use SYMBOL_SYMTAB (sym) instead. | |
3094 | ||
3095 | * gdbtypes.c (lookup_typename): Update. | |
3096 | (lookup_struct, lookup_union, lookup_enum): Update. | |
3097 | (lookup_template_type): Update. | |
3098 | (check_typedef): Update. | |
3099 | * language.c (lang_bool_type): Update. | |
3100 | * mdebugread.c (parse_procedure): Update. | |
3101 | * mi/mi-cmd-stack.c (list_args_or_locals): Update. | |
3102 | * parse.c (write_dollar_variable): Update. | |
3103 | * printcmd.c (address_info): Update. | |
3104 | * source.c (select_source_symtab): Update. | |
3105 | * stack.c (print_frame_args, print_frame_arg_vars): Update. | |
3106 | * valops.c (find_function_in_inferior): Update. | |
3107 | (value_struct_elt_for_reference): Update. | |
3108 | * value.c (value_static_field, value_fn_field): Update. | |
3109 | ||
3110 | * alpha-mdebug-tdep.c (find_proc_desc): Update. | |
3111 | * arm-tdep.c (arm_skip_prologue): Update. | |
3112 | * mt-tdep.c (mt_skip_prologue): Update. | |
3113 | * xstormy16-tdep.c (xstormy16_skip_prologue): Update. | |
3114 | ||
3115 | * ada-lang.h (struct ada_symbol_info): Remove SYMTAB member. | |
3116 | * ada-lang.c (ada_add_block_symbols): Remove SYMTAB parameter. | |
3117 | (add_defn_to_vec): Likewise. | |
3118 | (ada_add_block_symbols): Likewise. | |
3119 | (lookup_cached_symbol, cache_symbol): Likewise. | |
3120 | (standard_lookup): Update. | |
3121 | (ada_lookup_symbol_list): Update. | |
3122 | ||
3123 | * c-valprint.c (c_val_print): Update. | |
3124 | * cp-support.c (cp_lookup_rtti_type): Update. | |
3125 | * jv-lang.c (java_lookup_class, get_java_object_type): Update. | |
3126 | * objc-lang.c (lookup_struct_typedef, find_imps): Update. | |
3127 | * p-valprint.c (pascal_val_print): Update. | |
3128 | * scm-lang.c (scm_lookup_name): Update. | |
3129 | ||
3130 | * c-exp.y: Update. | |
3131 | * f-exp.y: Update. | |
3132 | * jv-exp.y: Update. | |
3133 | * m2-exp.y: Update. | |
3134 | * objc-exp.y: Update. | |
3135 | * p-exp.y: Update. | |
3136 | ||
21b556f4 UW |
3137 | 2008-05-19 Ulrich Weigand <[email protected]> |
3138 | ||
3139 | * language.h (struct language_defn): Remove SYMTAB parameter from | |
3140 | la_lookup_symbol_nonlocal callback function pointer. | |
3141 | ||
3142 | * ada-lang.h (ada_lookup_encoded_symbol): Remove SYMTAB parameter. | |
3143 | (ada_lookup_encoded_symbol): Likewise. | |
3144 | * ada-lang.c (ada_lookup_encoded_symbol): Remove SYMTAB parameter. | |
3145 | Always call fixup_symbol_section. | |
3146 | (ada_lookup_symbol): Remove SYMTAB parameter. | |
3147 | (ada_lookup_symbol_nonlocal): Likewise. | |
3148 | * ada-exp.y (write_object_renaming): Update. | |
3149 | (find_primitive_type): Likewise. | |
3150 | ||
3151 | * cp-support.h (cp_lookup_symbol_nonlocal): Remove SYMTAB parameter. | |
3152 | (cp_lookup_symbol_namespace): Likewise. | |
3153 | * cp-namespace.c (lookup_namespace_scope): Remove SYMTAB parameter. | |
3154 | (lookup_symbol_file): Likewise. | |
3155 | (lookup_possible_namespace_symbol): Likewise. | |
3156 | (cp_lookup_symbol_nonlocal): Likewise. | |
3157 | (cp_lookup_symbol_namespace): Likewise. | |
3158 | (cp_lookup_nested_type): Update. | |
3159 | ||
3160 | * scm-valprint.c (scm_inferior_print): Update. | |
3161 | * valops.c (value_maybe_namespace_elt): Update. | |
3162 | ||
3163 | * solist.h (struct target_so_ops): Remove SYMTAB parameter from | |
3164 | lookup_lib_global_symbol callback function pointer. | |
3165 | (solib_global_lookup): Remove SYMTAB parameter. | |
3166 | * solib.c (solib_global_lookup): Remove SYMTAB parameter. | |
3167 | * solib-svr4.c (elf_lookup_lib_symbol): Likewise. | |
3168 | ||
3169 | * symtab.h (basic_lookup_symbol_nonlocal): Remove SYMTAB parameter. | |
3170 | (lookup_symbol_static): Likewise. | |
3171 | (lookup_symbol_global): Likewise. | |
3172 | (lookup_symbol_aux_block): Likewise. | |
3173 | (lookup_global_symbol_from_objfile): Likewise. | |
3174 | * symtab.c (lookup_symbol_aux): Remove SYMTAB parameter. | |
3175 | (lookup_symbol_aux_local): Likewise. | |
3176 | (lookup_symbol_aux_block): Likewise. | |
3177 | (lookup_symbol_aux_symtabs): Likewise. | |
3178 | (lookup_symbol_aux_psymtabs): Likewise. | |
3179 | (lookup_global_symbol_from_objfile): Likewise. | |
3180 | (basic_lookup_symbol_nonlocal): Likewise. | |
3181 | (lookup_symbol_static): Likewise. | |
3182 | (lookup_symbol_global): Likewise. | |
3183 | ||
3184 | (lookup_symbol_in_language): Do not pass SYMTAB to lookup_symbol_aux. | |
3185 | ||
39237dd1 PA |
3186 | 2008-05-17 Pedro Alves <[email protected]> |
3187 | ||
3188 | * remote.c (init_extended_remote_ops): Fix typo. | |
3189 | ||
7c0d47a5 PA |
3190 | 2008-05-16 Pedro Alves <[email protected]> |
3191 | ||
3192 | * NEWS: Mention new DICOS x86 target configuration. | |
3193 | ||
907fc202 UW |
3194 | 2008-05-16 Pedro Alves <[email protected]> |
3195 | Ulrich Weigand <[email protected]> | |
3196 | ||
3197 | * minsyms.c (lookup_minimal_symbol_by_pc_name): New function. | |
3198 | * symtab.h (lookup_minimal_symbol_by_pc_name): Add prototype. | |
3199 | ||
3200 | * symtab.c (fixup_section): Remove prototype. Add ADDR parameter; | |
3201 | use it instead of ginfo->value.address. Look up minimal symbol by | |
3202 | address and name. Assume OBJFILE is non-NULL. | |
3203 | (fixup_symbol_section): Ensure we always have an objfile to look | |
3204 | into. Extract and pass to fixup_section the symbol's address that | |
3205 | will match the minimal symbol's address. | |
3206 | (fixup_psymbol_section): Likewise. | |
3207 | ||
3208 | (find_pc_sect_psymtab): Fall back to non-addrmap case when debugging | |
3209 | overlays and the addrmap returned the wrong section. | |
3210 | ||
3211 | * dwarf2read.c (var_decode_location): Set SYMBOL_CLASS before | |
3212 | calling fixup_symbol_section. | |
3213 | ||
42848c96 UW |
3214 | 2008-05-16 Ulrich Weigand <[email protected]> |
3215 | ||
3216 | * minsyms.c: Include "target.h". | |
3217 | (find_solib_trampoline_target): Handle minimal symbols pointing | |
3218 | to function descriptors as well. | |
3219 | * Makefile.in (minsyms.o): Update dependencies. | |
3220 | ||
3221 | * ppc-linux-tdep.c (ppc64_standard_linkage): Rename to ... | |
3222 | (ppc64_standard_linkage1): ... this. Fix optional instructions. | |
3223 | (PPC64_STANDARD_LINKAGE_LEN): Rename to ... | |
3224 | (PPC64_STANDARD_LINKAGE1_LEN): ... this. | |
3225 | (ppc64_standard_linkage2, ppc64_standard_linkage3): New. | |
3226 | (PPC64_STANDARD_LINKAGE2_LEN, PPC64_STANDARD_LINKAGE3_LEN): New. | |
3227 | (ppc64_standard_linkage_target): Rename to ... | |
3228 | (ppc64_standard_linkage1_target): ... this. | |
3229 | (ppc64_standard_linkage2_target, ppc64_standard_linkage3_target): New. | |
3230 | (ppc64_skip_trampoline_code): Support three variants of standard | |
3231 | linkage stubs. Call find_solib_trampoline_target to handle | |
3232 | glink stubs. | |
3233 | ||
74d1f063 UW |
3234 | 2008-05-16 Ulrich Weigand <[email protected]> |
3235 | ||
3236 | * ppc-linux-tdep.c (ppc_linux_init_abi): Do not install | |
3237 | ppc64_sysv_abi_adjust_breakpoint_address. | |
3238 | * ppc-sysv-tdep.c (ppc64_sysv_abi_adjust_breakpoint_address): Remove. | |
3239 | * ppc-tdep.h (ppc64_sysv_abi_adjust_breakpoint_address): Remove. | |
3240 | ||
8526f328 UW |
3241 | 2008-05-16 Ulrich Weigand <[email protected]> |
3242 | ||
3243 | * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Remove. | |
3244 | (ppc_linux_init_abi): Install find_solib_trampoline_target instead | |
3245 | of ppc_linux_skip_trampoline_code. | |
3246 | ||
ba2b1c56 DJ |
3247 | 2008-05-15 Daniel Jacobowitz <[email protected]> |
3248 | ||
3249 | * gdbarch.sh: Delete dwarf_reg_to_regnum. | |
3250 | * gdbarch.c, gdbarch.h: Regenerated. | |
3251 | * amd64-tdep.c, arm-tdep.c, h8300-tdep.c, hppa-linux-tdep.c, | |
3252 | hppa-tdep.c, i386-tdep.c, m32c-tdep.c, m68k-tdep.c, mips-tdep.c, | |
3253 | s390-tdep.c, xtensa-tdep.c: Do not set dwarf_reg_to_regnum. | |
3254 | ||
4fdebdd0 PA |
3255 | 2008-05-15 Pedro Alves <[email protected]> |
3256 | ||
3257 | * linux-nat.c (trap_ptid): Delete. | |
3258 | (linux_nat_detach, linux_nat_wait, linux_nat_mourn_inferior): | |
3259 | Adjust. | |
3260 | * linux-thread-db.c (thread_db_wait): Adjust. | |
3261 | ||
bc882aa9 JB |
3262 | 2008-05-15 Joel Brobecker <[email protected]> |
3263 | ||
3264 | * linespec.c (decode_line_1): Fix a couple of comments. | |
3265 | ||
83b94be5 AM |
3266 | 2008-05-15 Alan Modra <[email protected]> |
3267 | ||
3268 | * dbxread.c: Formatting. | |
3269 | (INTERNALIZE_SYMBOL): Init n_other. | |
3270 | (set_namestring): Take pointer to nlist arg rather than struct | |
3271 | copy. Update all callers. | |
3272 | ||
87669130 AS |
3273 | 2008-05-15 Andreas Schwab <[email protected]> |
3274 | ||
3275 | * Makefile.in (dwarf2loc.o): Remove $(addrmap_h). | |
3276 | (dwarf2read.o): Add $(addrmap_h). | |
3277 | ||
00d5f93a UW |
3278 | 2008-05-14 Ulrich Weigand <[email protected]> |
3279 | ||
3280 | * ppc-linux-tdep.c (ppc_linux_convert_from_func_ptr_addr): Rename ... | |
3281 | (ppc64_linux_convert_from_func_ptr_addr): ... to this. No longer try | |
3282 | to handle ppc32 PLT entries. | |
3283 | (ppc_linux_init_abi): Install ppc64_linux_convert_from_func_ptr_addr | |
3284 | only on ppc64. | |
3285 | ||
2eaf8d2a DJ |
3286 | 2008-05-14 Daniel Jacobowitz <[email protected]> |
3287 | ||
3288 | * elfread.c (elf_symtab_read): Create trampolines for @plt symbols. | |
3289 | * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Renamed from | |
3290 | lookup_minimal_symbol_by_pc_section. Prefer trampolines if requested. | |
3291 | (lookup_minimal_symbol_by_pc_section): Use | |
3292 | lookup_minimal_symbol_by_pc_section_1. | |
3293 | (lookup_solib_trampoline_symbol_by_pc): Likewise. | |
3294 | ||
20c62566 JB |
3295 | 2008-05-13 Joel Brobecker <[email protected]> |
3296 | ||
3297 | * findcmd.c: Add #include "gdb_stdint.h". | |
3298 | * Makefile.in (findcmd.o): Update dependencies. | |
3299 | ||
87a7da84 DM |
3300 | 2008-05-11 David S. Miller <[email protected]> |
3301 | ||
de0c3d9d DM |
3302 | * sparc-linux-tdep.c (sparc32_linux_init_abi): Remove |
3303 | long double size override, Linux does use 128-bit now. | |
3304 | ||
e8467b5a DM |
3305 | * sparc-linux-tdep.c (PSR_SYSCALL): Define. |
3306 | (sparc_linux_write_pc): New function. | |
3307 | (sparc32_linux_init_abi): Register it. | |
3308 | * sparc64-linux-tdep.c (TSTATE_SYSCALL): Define. | |
3309 | (sparc64_linux_write_pc): New function. | |
3310 | (sparc64_linux_init_abi): Register it. | |
3311 | ||
87a7da84 DM |
3312 | * sparc-linux-tdep.c, sparc64-linux-tdep.c: Use |
3313 | dwarf2_append_unwinders(), not dwarf2_frame_sniffer. | |
3314 | ||
8a4c2d24 UW |
3315 | 2008-05-11 Ulrich Weigand <[email protected]> |
3316 | ||
3317 | * rs6000-tdep.c (rs6000_gdbarch_init): Set up info.target_desc | |
3318 | and info.tdep_info before calling gdbarch_init_osabi. | |
3319 | ||
003f3813 JB |
3320 | 2008-05-09 Joel Brobecker <[email protected]> |
3321 | ||
3322 | * ada-lang.c (ada_evaluate_subexp) [BINOP_ASSIGN]: Do not force | |
3323 | the type of the right hand side of the assignment to the type | |
3324 | of the left hand side if the left hand side is a convenience | |
3325 | variable. | |
3326 | ||
7ae0e2a2 UW |
3327 | 2008-05-09 Ulrich Weigand <[email protected]> |
3328 | ||
3329 | * NEWS: Mention gdbserver bi-arch capability. | |
3330 | ||
08388c79 DE |
3331 | 2008-05-09 Doug Evans <[email protected]> |
3332 | ||
3333 | New "find" command. | |
3334 | * NEWS: Document find command and qSearch:memory packet. | |
3335 | * Makefile.in (SFILES): Add findcmd.c. | |
3336 | (COMMON_OBJS): Add findcmd.o. | |
3337 | (findcmd.o): New rule. | |
3338 | * findcmd.c: New file. | |
3339 | * target.h (target_ops): New member to_search_memory. | |
3340 | (simple_search_memory): Declare. | |
3341 | (target_search_memory): Declare. | |
3342 | * target.c (simple_search_memory): New fn. | |
3343 | (target_search_memory): New fn. | |
3344 | * remote.c (PACKET_qSearch_memory): New packet kind. | |
3345 | (remote_search_memory): New fn. | |
3346 | (init_remote_ops): Init to_search_memory. | |
3347 | (init_extended_remote_ops): Ditto. | |
3348 | (_initialize_remote): Add qSearch:memory packet config command. | |
3349 | ||
11c68c47 EZ |
3350 | 2008-05-09 Eli Zaretskii <[email protected]> |
3351 | ||
3352 | * thread.c (_initialize_thread): Don't use commas and periods in | |
3353 | first line of doc string of "set/show print thread-events". | |
3354 | ||
6834c9bb JB |
3355 | 2008-05-08 Joel Brobecker <[email protected]> |
3356 | ||
3357 | * alpha-mdebug-tdep.c, alpha-osf1-tdep.c, alpha-tdep.c: | |
3358 | Update for unwinder changes. | |
3359 | ||
86c31399 JB |
3360 | 2008-05-08 Joel Brobecker <[email protected]> |
3361 | ||
3362 | * frame.c (get_frame_base_address, get_frame_locals_address) | |
3363 | (get_frame_args_address): Pass the correct frame when calling | |
3364 | frame_base_find_by_frame. | |
3365 | ||
96ef3384 UW |
3366 | 2008-05-08 Ulrich Weigand <[email protected]> |
3367 | ||
3368 | * remote.c (extended_remote_attach_1): Call target_find_description. | |
3369 | ||
45280a52 DJ |
3370 | 2008-05-08 Daniel Jacobowitz <[email protected]> |
3371 | ||
3372 | * remote.c (extended_remote_create_inferior_1): Clean up | |
3373 | before marking the target running. | |
3374 | ||
227e86ad JB |
3375 | 2008-05-08 Joel Brobecker <[email protected]> |
3376 | ||
3377 | * hppa-tdep.h, hppa-tdep.c, hppa-hpux-tdep.c: Update for unwinder | |
3378 | changes. | |
3379 | ||
236369e7 JB |
3380 | 2008-05-07 Joel Brobecker <[email protected]> |
3381 | ||
3382 | * sparc-tdep.c, sparc-tdep.h, sparc-sol2-tdep.c, sparc64-tdep.c, | |
3383 | sparc64-sol2-tdep.c: Update for unwinder changes. | |
3384 | ||
de237128 DJ |
3385 | 2008-05-07 Daniel Jacobowitz <[email protected]> |
3386 | ||
3387 | * cp-support.c (mangled_name_to_comp): Initialize storage. | |
3388 | (unqualified_name_from_comp): Likewise. | |
3389 | ||
4fff2411 JZ |
3390 | 2008-05-07 Jie Zhang <[email protected]> |
3391 | ||
3392 | * remote.c (remote_insert_breakpoint): Call get_remote_state | |
3393 | after gdbarch_breakpoint_from_pc is called. | |
3394 | (remote_insert_hw_breakpoint): Likewise. | |
3395 | ||
d8ca156b JB |
3396 | 2008-05-06 Joel Brobecker <[email protected]> |
3397 | ||
3398 | * valprint.c (val_print): Add new language parameter and use it | |
3399 | instead of using the current_language. Update calls to val_print | |
3400 | throughout. | |
3401 | (common_val_print): Add new langauge parameter and pass it to | |
3402 | val_print. | |
3403 | * value.h (struct language_defn): Add opaque declaration. | |
3404 | (val_print, common_val_print): Update declarations. | |
3405 | * stack.c (print_frame_args): Update call to common_val_print | |
3406 | using the appropriate language. | |
3407 | * mi/mi-cmd-stack.c (list_args_or_locals): Likewise. | |
3408 | * c-valprint, f-valprint.c, m2-valprint.c, mt-tdep.c, infcmd.c, | |
3409 | mi/mi-main.c, jv-valprint.c, ada-valprint.c, varobj.c, p-valprint.c, | |
3410 | scm-valprint.c, cp-valprint.c, sh64-tdep.c, printcmd.c: | |
3411 | #include "language.h" if necessary. | |
3412 | Update calls to val_print and common_val_print. | |
3413 | * Makefile.in (mt-tdep.o, sh64-tdep.o, mi-cmds.o, mi-main.o): | |
3414 | Update dependencies. | |
3415 | ||
b1e6fd19 JB |
3416 | 2008-05-06 Joel Brobecker <[email protected]> |
3417 | ||
3418 | * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Treat addresses | |
3419 | pointing inside a non-executable section as function descriptors. | |
3420 | ||
02b19d84 PA |
3421 | 2008-05-06 Pedro Alves <[email protected]> |
3422 | ||
3423 | * inf-loop.c (inferior_event_handler): Run all continuations and | |
3424 | print any language change before running the breakpoint commands. | |
3425 | ||
15c1e57f JB |
3426 | 2008-05-06 Joel Brobecker <[email protected]> |
3427 | ||
3428 | * frame-unwind.c (frame_unwind_got_bytes): New function. | |
3429 | * frame-unwind.h (frame_unwind_got_bytes): Add declaration. | |
3430 | * libunwind-frame.h, libunwind-frame.c, ia64-tdep.c: Update | |
3431 | for unwinder changes. | |
3432 | ||
d14508fe DE |
3433 | 2008-05-05 Doug Evans <[email protected]> |
3434 | ||
3435 | * NEWS: Mention new /m modifier for disassemble command. | |
3436 | * cli/cli-cmds.c (print_disassembly): New function. | |
3437 | (disassemble_current_function): New function | |
3438 | (disassemble_command): Recognize /m modifier, print mixed | |
3439 | source+assembly. | |
3440 | (init_cli_cmds): Update disassemble help text. | |
3441 | ||
5142f611 MG |
3442 | 2008-05-05 Maxim Grigoriev <[email protected]> |
3443 | ||
3444 | * xtensa-tdep.c: Update for unwinder changes. | |
3445 | ||
f36bf22c AS |
3446 | 2008-05-05 Andreas Schwab <[email protected]> |
3447 | ||
3448 | Update m68k port for unwinder changes. | |
3449 | * m68k-tdep.c (m68k_frame_cache): Expect this_frame. | |
3450 | (m68k_frame_this_id, m68k_frame_prev_register): Update signature. | |
3451 | (m68k_frame_unwind): Use default_frame_sniffer. | |
3452 | (m68k_frame_sniffer): Remove. | |
3453 | (m68k_frame_base_address): Expect this_frame. | |
3454 | (m68k_dummy_id): Renamed from m68k_unwind_dummy_id. Expect | |
3455 | this_frame. | |
3456 | (m68k_gdbarch_init): Use set_gdbarch_dummy_id, | |
3457 | dwarf2_append_unwinders, and frame_unwind_append_unwinder. | |
3458 | * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Expect frame_info | |
3459 | parameter instead of pc value. | |
3460 | (m68k_linux_get_sigtramp_info, m68k_linux_sigtramp_frame_cache): | |
3461 | Expect this_frame. | |
3462 | (m68k_linux_sigtramp_frame_this_id) | |
3463 | (m68k_linux_sigtramp_frame_prev_register) | |
3464 | (m68k_linux_sigtramp_frame_sniffer): Update signature. | |
3465 | (m68k_linux_sigtramp_frame_unwind): Use | |
3466 | m68k_linux_sigtramp_frame_sniffer. | |
3467 | (m68k_linux_init_abi): Use frame_unwind_append_unwinder. | |
3468 | ||
3469 | * m68klinux-nat.c (store_register): Fix typo. | |
3470 | ||
b3dc826b PA |
3471 | 2008-05-05 Pedro Alves <[email protected]> |
3472 | ||
3473 | * infcmd.c (step_1): Put thread id on the stack to avoid possible | |
3474 | NULL dereferencing. | |
3475 | ||
6528a9ea LM |
3476 | 2008-05-05 Luis Machado <[email protected]> |
3477 | ||
3478 | * symfile.c (reread_symbols): Update objfile's entry point. | |
3479 | ||
5eeb2539 AR |
3480 | 2008-05-05 Aleksandar Ristovski <[email protected]> |
3481 | Joel Brobecker <[email protected]> | |
1f906a60 | 3482 | |
5eeb2539 AR |
3483 | * ada-lang.c: Update throughout to use symbol_matches_domain |
3484 | instead of matching the symbol domain explictly. | |
3485 | * dwarf2read.c (add_partial_symbol): Do not add new psym for | |
f36bf22c | 3486 | STRUCT_DOMAIN. Make sure you recognize c++ struct and java and ada |
5eeb2539 | 3487 | class as typedefs. See lookup_partial_symbol function. |
f36bf22c | 3488 | (new_symbol): Similar to add_partial_symbol, do not create |
5eeb2539 AR |
3489 | symbol for the typedef. See lookup_block_symbol. |
3490 | * symtab.c (symbol_matches_domain): New function, takes care | |
3491 | of dual meaning of STRUCT_DOMAIN symbol for c++, ada and java. | |
3492 | (lookup_partial_symbol): Use symbol_matches_domain to see if the | |
3493 | found psym domain matches the given domain. | |
3494 | (lookup_block_symbol): Likewise. | |
3495 | ||
e2b7ddea VP |
3496 | 2008-05-05 Vladimir Prus <[email protected]> |
3497 | ||
680b56ce AS |
3498 | * top.c (command_line_handler_continuation): Remove. |
3499 | (execute_command): Do not install the above. | |
e2b7ddea | 3500 | |
fcfb8b02 VP |
3501 | 2008-05-05 Vladimir Prus <[email protected]> |
3502 | ||
3503 | * inf-loop.c (inferior_event_handler): Call bpstat_do_action, | |
3504 | and catch all exceptions from it. | |
3505 | * top.c (command_line_handler_continuation): Don't | |
3506 | call bpstat_do_action here. | |
3507 | ||
f792889a DJ |
3508 | 2008-05-04 Daniel Jacobowitz <[email protected]> |
3509 | ||
3510 | * dwarf2read.c (struct dwarf2_cu): Add type_hash. | |
3511 | (struct die_info): Remove type. | |
3512 | (read_type_die, read_typedef, read_base_type, read_subrange_type) | |
3513 | (read_structure_type, read_enumeration_type, read_array_type) | |
3514 | (read_tag_pointer_type, read_tag_ptr_to_member_type) | |
3515 | (read_tag_reference_type, read_tag_const_type, read_tag_volatile_type) | |
3516 | (read_tag_string_type, read_subroutine_type, read_set_type) | |
3517 | (read_unspecified_type): Delete prototypes. Remove check for | |
3518 | already-loaded type. Return the new type. | |
3519 | (set_die_type): Return the new type. | |
3520 | (reset_die_and_siblings_types): Delete. | |
3521 | (load_comp_unit, load_full_comp_unit): Set type_hash. | |
3522 | (process_queue): Remove call to reset_die_and_siblings_types. | |
3523 | (process_die): Do not read most types here. Use read_type_die | |
3524 | for others. | |
3525 | (read_func_scope, dwarf2_add_member_fn): Use read_type_die. | |
3526 | (quirk_gcc_member_function_pointer): Return the new type. | |
3527 | (process_structure_scope, process_enumeration_scope): Use | |
3528 | get_die_type and read the DIE's type. | |
3529 | (read_full_die): Do not initialize die->type. | |
3530 | (tag_type_to_type): Use read_type_die. | |
3531 | (read_type_die): Check for already defined types. Return the | |
3532 | type. | |
3533 | (determine_prefix): Use get_die_type. | |
3534 | (set_die_type): Return the type. | |
3535 | (get_die_type): Take a CU argument. Check for no type_hash. | |
3536 | ||
e7030f15 DJ |
3537 | 2008-05-04 Daniel Jacobowitz <[email protected]> |
3538 | ||
3539 | * dwarf2read.c (dwarf2_ranges_read, read_partial_die): Initialize | |
3540 | locals. | |
3541 | ||
611c83ae PA |
3542 | 2008-05-04 Pedro Alves <[email protected]> |
3543 | ||
3544 | * breakpoint.c (update_breakpoints_after_exec): Delete bp_longjmp | |
3545 | and bp_longjmp_resume breakpoints. | |
3546 | (breakpoint_address_is_meaningful): Claim bp_longjmp_resume as | |
3547 | meaningful. | |
3548 | (create_longjmp_breakpoint): Don't create bp_longjmp_resume | |
3549 | breakpoints. Create bp_longjmp breakpoints as momentary | |
3550 | breakpoints. | |
3551 | (enable_longjmp_breakpoint): Delete. | |
3552 | (set_longjmp_breakpoint): New. | |
3553 | (disable_longjmp_breakpoint): Delete. | |
3554 | (delete_longjmp_breakpoint): New. | |
3555 | (set_longjmp_resume_breakpoint): Delete. | |
3556 | (set_momentary_breakpoint_at_pc): New. | |
3557 | (breakpoint_re_set_one): Don't delete bp_longjmp and | |
3558 | bp_longjmp_resume breakpoints. | |
3559 | (breakpoint_re_set): Don't create longjmp and longjmp-resume | |
3560 | breakpoints. | |
3561 | ||
3562 | * infrun.c (step_resume_breakpoint): Add comment. | |
3563 | (struct execution_control_state): Delete handling_longjmp member. | |
3564 | (init_execution_control_state). Don't clear handling_longjmp. | |
3565 | (context_switch): Don't context switch handling_longjmp. | |
3566 | (handle_inferior_event): If handling a bp_longjmp breakpoint, | |
3567 | create a bp_longjmp_resume breakpoint, and set it as current | |
3568 | step_resume_breakpoint, then step over the longjmp breakpoint. If | |
3569 | handling a bp_longjmp_resume breakpoint, don't delete the longjmp | |
3570 | breakpoint, delete the longjmp-resume breakpoint, and stop | |
3571 | stepping. | |
3572 | (currently_stepping): Remove handling_longjmp from expression. | |
3573 | (insert_step_resume_breakpoint_at_sal): Update comment. | |
3574 | (insert_longjmp_resume_breakpoint): New. | |
3575 | ||
3576 | * breakpoint.h (set_momentary_breakpoint_at_pc): Declare. | |
3577 | (enable_longjmp_breakpoint, disable_longjmp_breakpoint): Delete | |
3578 | declarations. | |
3579 | (set_longjmp_breakpoint, delete_longjmp_breakpoint): Declare. | |
3580 | (set_longjmp_resume_breakpoint): Delete declaration. | |
3581 | ||
3582 | * gdbthread.h (save_infrun_state): Remove handling_longjmp | |
3583 | parameter. | |
3584 | (load_infrun_state): Delete *handling_longjmp parameter. | |
3585 | * thread.c (save_infrun_state): Remove handling_longjmp parameter. | |
3586 | Update body. | |
3587 | (load_infrun_state): Delete *handling_longjmp parameter. Update | |
3588 | body. | |
3589 | ||
3590 | * infcmd.c (disable_longjmp_breakpoint_cleanup): Delete. | |
3591 | (delete_longjmp_breakpoint_cleanup): New. | |
3592 | (step_1): Call set_longjmp_breakpoint instead of | |
3593 | enable_longjmp_breakpoint. Use delete_longjmp_breakpoint_cleanup | |
3594 | instead of disable_longjmp_breakpoint_cleanup when making cleanup. | |
3595 | (step_1_continuation): Pass thread id in the continuation args to | |
3596 | step_once. | |
3597 | (step_once): Add thread parameter. Pass thread id the the | |
3598 | continuation. | |
3599 | ||
85cbf3d3 JK |
3600 | 2008-05-04 Jan Kratochvil <[email protected]> |
3601 | ||
3602 | Set CU BASE_ADDRESS already from partial DIEs. | |
3603 | * dwarf2read.c (read_partial_die): New variables BASE_ADDRESS and | |
3604 | BASE_ADDRESS_TYPE. Set these variables from DW_AT_LOW_PC and | |
3605 | DW_AT_ENTRY_PC. Set CU->HEADER.BASE_KNOWN and CU->HEADER.BASE_ADDRESS | |
3606 | from these variables if it was still unset. | |
3607 | ||
ff013f42 JK |
3608 | * Makefile.in: Update dependencies. |
3609 | * dwarf2read.c: Include "addrmap.h" | |
3610 | (struct dwarf2_cu): New fields RANGES_OFFSET and HAS_RANGES_OFFSET. | |
3611 | (dwarf2_ranges_read): New prototype. | |
3612 | (dwarf2_build_psymtabs_hard): Initialize and prepare PSYMTABS_ADDRMAP. | |
3613 | Add discontiguous range to PSYMTABS_ADDRMAP by DWARF2_RANGES_READ on | |
3614 | HAS_RANGES_OFFSET, otherwise add there the contiguous range. | |
3615 | (dwarf2_ranges_read): New parameter RANGES_PST, update the function | |
3616 | comment for it. Add the found ranges to RANGES_PST. New variable | |
3617 | BASEADDR, initialize it the common way. | |
3618 | (dwarf2_get_pc_bounds): Update the caller for the new parameter. | |
3619 | (read_partial_die): `DW_AT_ranges' now only sets RANGES_OFFSET and | |
3620 | HAS_RANGES_OFFSET for the later processing. | |
3621 | * objfiles.h (struct objfile): New field PSYMTABS_ADDRMAP. | |
3622 | * symtab.c: Include "addrmap.h" | |
3623 | (find_pc_sect_psymtab): Support reading the field PSYMTABS_ADDRMAP. | |
3624 | Move the psymtab locator into ... | |
3625 | (find_pc_sect_psymtab_closer): ... a new function. | |
3626 | ||
a7f1256d UW |
3627 | 2008-05-04 Ulrich Weigand <[email protected]> |
3628 | ||
3629 | * arch-utils.c (gdbarch_update_p): Use default values for | |
3630 | info.abfd and info.target_desc if they are NULL. | |
3631 | (gdbarch_from_bfd): Remove assertion. | |
3632 | (set_gdbarch_from_file): Call gdbarch_find_by_info directly, | |
3633 | using the current target description. | |
3634 | (gdbarch_info_fill): Do not use default values for info->abfd | |
3635 | and info->target_desc. | |
3636 | ||
b2de52bb JK |
3637 | 2008-05-04 Jan Kratochvil <[email protected]> |
3638 | ||
3639 | * symfile.c (reread_symbols): Reload EXEC_BFD on its change. | |
3640 | ||
515630c5 UW |
3641 | 2008-05-04 Ulrich Weigand <[email protected]> |
3642 | ||
3643 | * inferior.h (read_pc_pid, write_pc_pid): Remove. | |
3644 | * regcache.h (regcache_read_pc, regcache_write_pc): Add prototypes. | |
3645 | ||
3646 | * regcache.c (read_pc_pid): Remove, replace by ... | |
3647 | (regcache_read_pc): ... this function. | |
3648 | (write_pc_pid): Remove, replace by ... | |
3649 | (regcache_write_pc): ... this function. | |
3650 | (read_pc, write_pc): Update. | |
3651 | ||
3652 | * infrun.c (displaced_step_prepare): Replace read_pc_pid and | |
3653 | write_pc_pid by regcache_read_pc and regcache_write_pc. | |
3654 | (displaced_step_fixup): Likewise. | |
3655 | (resume): Likewise. Use regcache arch instead of current_gdbarch. | |
3656 | (prepare_to_proceed): Likewise. | |
3657 | (proceed): Likewise. | |
3658 | (adjust_pc_after_break): Likewise. | |
3659 | (handle_inferior_event): Likewise. | |
3660 | ||
3661 | * linux-nat.c (cancel_breakpoint): Likewise. | |
3662 | * linux-thread-db.c (check_event): Likewise. | |
3663 | * aix-thread.c (aix_thread_wait): Likewise. | |
3664 | * tracepoint.c (trace_dump_command): Likewise. | |
3665 | ||
ebd3bcc1 JK |
3666 | 2008-05-04 Jan Kratochvil <[email protected]> |
3667 | ||
3668 | * dwarf2loc.c (dwarf_expr_frame_base): Error out on missing | |
3669 | SYMBOL_LOCATION_BATON. | |
3670 | ||
c47ffbe3 VP |
3671 | 2008-05-04 Vladimir Prus <[email protected]> |
3672 | ||
f78bff48 VP |
3673 | * target.h (struct target_ops): New field to_auxv_parse. |
3674 | * auxv.c (default_auxv_parse): New, renamed from previous | |
3675 | target_auxv_parse. | |
3676 | (target_auxv_parse): Try to call target method. Fallback to | |
3677 | default_auxv_parse if not found. | |
3678 | * procfs.c (procfs_auxv_parse): New. | |
3679 | (init_procfs_ops): On Solaris, in 64-bit mode, install | |
3680 | procfs_auxv_parse. | |
c47ffbe3 | 3681 | |
35076fa0 AN |
3682 | 2008-05-03 Adam Nemet <[email protected]> |
3683 | ||
3684 | * symfile.c (add_symbol_file_command): Use paddress rather than | |
3685 | hex_string to print the address. | |
3686 | ||
5b197912 UW |
3687 | 2008-05-03 Ulrich Weigand <[email protected]> |
3688 | ||
3689 | * rs6000-tdep.c (rs6000_frame_this_id): If info->base is 0, | |
3690 | return the null frame ID to terminate the backtrace. | |
3691 | ||
4a7622d1 UW |
3692 | 2008-05-03 Ulrich Weigand <[email protected]> |
3693 | ||
3694 | * rs6000-tdep.c: Do not include "rs6000-tdep.h". | |
3695 | (rs6000_find_toc_address_hook): Move to rs6000-aix-tdep.c. | |
3696 | (SIG_FRAME_PC_OFFSET): Likewise. | |
3697 | (SIG_FRAME_LR_OFFSET): Likewise. | |
3698 | (SIG_FRAME_FP_OFFSET): Likewise. | |
3699 | (rs6000_push_dummy_call): Likewise. | |
3700 | (rs6000_return_value): Likewise. | |
3701 | (rs6000_convert_from_func_ptr_addr): Likewise. | |
3702 | (branch_dest, rs6000_software_single_step): Likewise. | |
3703 | (deal_with_atomic_sequence): Rename to ... | |
3704 | (ppc_deal_with_atomic_sequence): ... this. Adapt all callers. | |
3705 | Do not call branch_dest; inline required parts of that function. | |
3706 | (rs6000_skip_trampoline_code): Replace DEPRECATED_SYMBOL_NAME | |
3707 | with SYMBOL_LINKAGE_NAME. | |
3708 | (struct reg, regsize): Delete. | |
3709 | (read_memory_addr): Delete; inline into callers. | |
3710 | (rs6000_skip_prologue): Move after skip_prologue. | |
3711 | (skip_prologue): Remove prototype. | |
3712 | (rs6000_gdbarch_init): Remove sysv_abi variable; perform all | |
3713 | initialization as if this variable were true. Do not install | |
3714 | ppc64_sysv_abi_adjust_breakpoint_address. | |
3715 | ||
3716 | * rs6000-aix-tdep.c: Include "gdb_assert.h", "gdbtypes.h", | |
3717 | "gdbcore.h", "target.h", "value.h", "infcall.h", "objfiles.h", | |
3718 | and "breakpoint.h". | |
3719 | (rs6000_find_toc_address_hook): Move here from rs6000-tdep.c. | |
3720 | (SIG_FRAME_PC_OFFSET): Likewise. | |
3721 | (SIG_FRAME_LR_OFFSET): Likewise. | |
3722 | (SIG_FRAME_FP_OFFSET): Likewise. | |
3723 | (rs6000_push_dummy_call): Likewise. | |
3724 | (rs6000_return_value): Likewise. | |
3725 | (rs6000_convert_from_func_ptr_addr): Likewise. | |
3726 | (branch_dest, rs6000_software_single_step): Likewise. Replace | |
3727 | tdep->text_segment_base by AIX_TEXT_SEGMENT_BASE. | |
3728 | (rs6000_aix_init_osabi): Install rs6000_push_dummy_call, | |
3729 | rs6000_return_value, and rs6000_convert_from_func_ptr_addr. | |
3730 | Call set_gdbarch_long_double_bit and set_gdbarch_frame_red_zone_size. | |
3731 | Set tdep->lr_frame_offset. Do not set tdep->text_segment_base. | |
3732 | ||
3733 | * rs6000-tdep.h (rs6000_software_single_step): Remove prototype. | |
3734 | (AIX_TEXT_SEGMENT_BASE): New macro. | |
3735 | * rs6000-nat.c (exec_one_dummy_insn): Replace tdep->text_segment_base | |
3736 | by AIX_TEXT_SEGMENT_BASE. | |
3737 | ||
3738 | * ppc-tdep.h (ppc_deal_with_atomic_sequence): Add prototype. | |
3739 | (struct gdbarch_tdep): Remove text_segment_base member. | |
3740 | * ppc-linux-tdep.c (ppc_linux_init_abi): On 64-bit, install | |
3741 | ppc64_sysv_abi_adjust_breakpoint_address. | |
3742 | ||
3743 | * Makefile.in (rs6000-tdep.o): Update dependencies. | |
3744 | (rs6000-aix-tdep.o): Likewise. | |
3745 | ||
938f5214 TJB |
3746 | 2008-05-03 Luis Machado <[email protected]> |
3747 | Thiago Jung Bauermann <[email protected]> | |
3748 | ||
3749 | * cli/cli-decode.c (lookup_cmd_1): Fix indentation. | |
3750 | * doublest.c (convert_typed_floating): Fix typo in comment. | |
3751 | * dwarf2-frame.c (dwarf2_frame_cache): Likewise. | |
3752 | * frame-unwind.h (frame_sniffer_ftype): Likewise. | |
3753 | * frame.c (frame_unwind_address_in_block): Likewise. | |
3754 | * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Likewise. | |
3755 | * symtab.h (struct symbol): Likewise. | |
3756 | * tramp-frame.h (struct trad_frame_cache): Likewise. | |
3757 | * value.c (allocate_repeat_value): Likewise. | |
3758 | ||
0b02b92d UW |
3759 | 2008-05-03 Ulrich Weigand <[email protected]> |
3760 | ||
3761 | * infrun.c (handle_inferior_event): Do not insert breakpoints at | |
3762 | TARGET_WAITKIND_LOADED events during startup (i.e. in the shell). | |
3763 | ||
d705c43c PA |
3764 | 2008-05-03 Pedro Alves <[email protected]> |
3765 | ||
3766 | * parse.c (parse_exp_in_context): Don't override | |
3767 | expression_context_pc if get_selected_block returned a valid | |
3768 | block. | |
3769 | ||
d6350901 DJ |
3770 | 2008-05-03 Daniel Jacobowitz <[email protected]> |
3771 | ||
3772 | * alpha-tdep.h (ALPHA_REGISTER_BYTES): Delete. | |
3773 | * arm-tdep.h (STATUS_REGISTER_SIZE): Delete. | |
3774 | * breakpoint.c (args_for_catchpoint_enable, current_exception_event): | |
3775 | Delete. | |
3776 | * c-typeprint.c (c_type_print_base): Delete handling of template | |
3777 | instantiations. | |
3778 | * cp-support.h (METHOD_PTR_IS_VIRTUAL, METHOD_PTR_FROM_VOFFSET) | |
3779 | (METHOD_PTR_TO_VOFFSET): Delete. | |
3780 | * defs.h (QUIT_FIXME): Delete. | |
3781 | * f-lang.h (DEFAULT_DOTMAIN_NAME_IN_MF77, DEFAULT_MAIN_NAME_IN_MF77) | |
3782 | (DEFAULT_DOTMAIN_NAME_IN_XLF_BUGGY, DEFAULT_DOTMAIN_NAME_IN_XLF): Delete. | |
3783 | * gdbtypes.h (struct cplus_struct_type): Delete is_inlined, | |
3784 | ninstantiations, and instantiations. | |
3785 | (TYPE_INSTANTIATIONS, TYPE_NINSTANTIATIONS, TYPE_INSTANTIATION) | |
3786 | (TYPE_FN_FIELD_INLINED): Delete. | |
3787 | * srec.h (SREC_BINARY): Delete. | |
3788 | * symtab.c (symbol_init_demangled_name): Delete. | |
3789 | * symtab.h (SYMBOL_INIT_DEMANGLED_NAME, symbol_init_demangled_name) | |
3790 | (SYMBOL_OBJFILE, struct exception_event_record, CURRENT_EXCEPTION_KIND) | |
3791 | (CURRENT_EXCEPTION_CATCH_SAL, CURRENT_EXCEPTION_CATCH_LINE) | |
3792 | (CURRENT_EXCEPTION_CATCH_FILE, CURRENT_EXCEPTION_CATCH_PC) | |
3793 | (CURRENT_EXCEPTION_THROW_SAL, CURRENT_EXCEPTION_THROW_LINE) | |
3794 | (CURRENT_EXCEPTION_THROW_FILE, CURRENT_EXCEPTION_THROW_PC): Delete. | |
3795 | * target.h (enum thread_control_capabilities): Delete tc_switch. | |
3796 | (target_can_switch_threads): Delete. | |
3797 | ||
30510692 DJ |
3798 | 2008-05-03 Daniel Jacobowitz <[email protected]> |
3799 | ||
3800 | * Makefile.in (objfiles.o): Update. | |
3801 | * exec.c (exec_set_section_address): Support p->addr != 0. | |
3802 | * objfiles.c (objfile_relocate): Update exec_ops section | |
3803 | addresses. | |
3804 | * symfile.c (place_section): Move exec_set_section_address call... | |
3805 | (default_symfile_offsets): ...to here. | |
3806 | ||
7284e1be UW |
3807 | 2008-05-03 Ulrich Weigand <[email protected]> |
3808 | ||
3809 | * Makefile.in (ppc_linux_tdep_h): New macro. | |
3810 | (powerpc_32l_c, powerpc_altivec32_c, powerpc_altivec32l_c): Likewise. | |
3811 | (powerpc_64l_c, powerpc_altivec64_c, powerpc_altivec64l_c): Likewise. | |
3812 | (powerpc_e500l_c): Likewise. | |
3813 | (ppc-linux-nat.o): Update dependencies. | |
3814 | (ppc-linux-tdep.o): Update dependencies. | |
3815 | (rs6000-tdep.o): Update dependencies. | |
3816 | ||
3817 | * ppc-tdep.h (ppc_linux_memory_remove_breakpoint): Remove. | |
3818 | (ppc_linux_svr4_fetch_link_map_offsets): Remove. | |
3819 | (ppc_linux_gregset, ppc_linux_fpregset): Move to ppc-linux-tdep.h | |
3820 | (ppc_supply_reg, ppc_collect_reg): Add prototypes. | |
3821 | (tdesc_powerpc_e500): Remove. | |
3822 | ||
3823 | * rs6000.c: Include "features/rs6000/powerpc-altivec32.c" | |
3824 | and "features/rs6000/powerpc-altivec64.c". | |
3825 | (ppc_supply_reg, ppc_collect_reg): Make global. | |
3826 | (variants): Use tdesc_powerpc_32 for "powerpc" and | |
3827 | tdesc_powerpc_altivec64 for "powerpc64". | |
3828 | (_initialize_rs6000_tdep): Initialize AltiVec descriptions. | |
3829 | ||
3830 | * ppc-linux-tdep.h: New file. | |
3831 | ||
3832 | * ppc-linux-tdep.c: Include "ppc-linux-tdep.c". | |
3833 | Include "features/rs6000/powerpc-32l.c". | |
3834 | Include "features/rs6000/powerpc-altivec32l.c". | |
3835 | Include "features/rs6000/powerpc-64l.c". | |
3836 | Include "features/rs6000/powerpc-altivec64l.c". | |
3837 | Include "features/rs6000/powerpc-e500l.c". | |
3838 | (ppc_linux_supply_gregset): New function. | |
3839 | (ppc_linux_collect_gregset): Handle orig_r3 and trap registers. | |
3840 | (ppc32_linux_gregset): Use ppc_linux_supply_gregset. | |
3841 | (ppc64_linux_gregset): Likewise. | |
3842 | (ppc_linux_sigtramp_cache): Handle orig_r3 and trap registers. | |
3843 | (ppc_linux_trap_reg_p): New function. | |
3844 | (ppc_linux_write_pc): New function. | |
3845 | (ppc_linux_core_read_description): New function. | |
3846 | (ppc_linux_init_abi): Install ppc_linux_write_pc and | |
3847 | ppc_linux_core_read_description. Install orig_r3 and trap | |
3848 | registers if present in the target description. | |
3849 | (_initialize_ppc_linux_tdep): Initialize Linux target descriptions. | |
3850 | ||
3851 | * ppc-linux-nat.c: Include "ppc-linux-tdep.h". | |
3852 | (PT_ORIG_R3, PT_TRAP): Define if necessary. | |
3853 | (ppc_register_u_addr): Handle orig_r3 and trap registers. | |
3854 | (fetch_ppc_registers): Likewise. | |
3855 | (store_ppc_registers): Likewise. | |
3856 | (store_register): Likewise. | |
3857 | (ppc_linux_read_description): Check whether AltiVec is supported. | |
3858 | Check whether inferior is 32-bit or 64-bit. Return the appropriate | |
3859 | Linux target description. | |
3860 | ||
3861 | * features/Makefile (WHICH): Use rs6000/powerpc-32l and | |
3862 | rs6000/powerpc-altivec32l instead of rs6000/powerpc-32. | |
3863 | Use rs6000/powerpc-64l and rs6000/powerpc-altivec64l instead | |
3864 | of rs6000/powerpc-64. Use rs6000/powerpc-e500l instead of | |
3865 | rs6000/powerpc-e500. Update -expedite variables accordingly. | |
3866 | ||
3867 | * features/rs6000/power-spe.xml: Use regnum 73 for "acc". | |
3868 | * features/rs6000/powerpc-32.xml: Do not include power-altivec.xml. | |
3869 | * features/rs6000/powerpc-64.xml: Do not include power-altivec.xml. | |
3870 | * features/rs6000/powerpc-e500.c: Regenerate. | |
3871 | * features/rs6000/powerpc-32.c: Regenerate. | |
3872 | * features/rs6000/powerpc-64.c: Regenerate. | |
3873 | ||
3874 | * features/rs6000/power-linux.xml: New file. | |
3875 | * features/rs6000/power64-linux.xml: New file. | |
3876 | * features/rs6000/powerpc-32l.xml: New file. | |
3877 | * features/rs6000/powerpc-altivec32l.xml: New file. | |
3878 | * features/rs6000/powerpc-64l.xml: New file. | |
3879 | * features/rs6000/powerpc-altivec64l.xml: New file. | |
3880 | * features/rs6000/powerpc-e500l.xml: New file. | |
3881 | * features/rs6000/powerpc-32l.c: New (generated) file. | |
3882 | * features/rs6000/powerpc-altivec32l.c: New (generated) file. | |
3883 | * features/rs6000/powerpc-64l.c: New (generated) file. | |
3884 | * features/rs6000/powerpc-altivec64l.c: New (generated) file. | |
3885 | * features/rs6000/powerpc-e500l.xml: New (generated) file. | |
3886 | ||
3887 | * regformats/reg-ppc.dat: Remove. | |
3888 | * regformats/reg-ppc64.dat: Remove. | |
3889 | * regformats/rs6000/powerpc-32.dat: Remove. | |
3890 | * regformats/rs6000/powerpc-64.dat: Remove. | |
3891 | * regformats/rs6000/powerpc-e500.dat: Remove. | |
3892 | * regformats/rs6000/powerpc-32l.dat: New (generated) file. | |
3893 | * regformats/rs6000/powerpc-altivec32l.dat: New (generated) file. | |
3894 | * regformats/rs6000/powerpc-64l.dat: New (generated) file. | |
3895 | * regformats/rs6000/powerpc-altivec64l.dat: New (generated) file. | |
3896 | * regformats/rs6000/powerpc-e500l.dat: New (generated) file. | |
3897 | ||
063bfe2e VP |
3898 | 2008-05-03 Pedro Alves <[email protected]> |
3899 | ||
3900 | * thread.c (delete_thread): Call observer_notify_thread_exit. | |
680b56ce AS |
3901 | * mi/mi-interp.c (mi_interpreter_init): Register mi_thread_exit as |
3902 | thread_exit observer. | |
3903 | (mi_thread_exit): New. | |
063bfe2e | 3904 | |
f132ba9d TJB |
3905 | 2008-05-03 Thiago Jung Bauermann <[email protected]> |
3906 | ||
3907 | * breakpoint.c (create_exception_catchpoint): Remove prototype | |
3908 | for already deleted function. | |
3909 | * breakpoint.h (ep_is_exception_catchpoint): Likewise. | |
3910 | * frame.h (show_stack_frame): Remove prototype. | |
3911 | * stack.c (show_stack_frame): Remove empty, unused function. | |
3912 | * source.c (symtab_to_fullname, print_source_lines): Small fix | |
3913 | in comment. | |
3914 | * value.c (show_values): Update comments to mention "show values" | |
3915 | command instead of "info history". | |
3916 | ||
bccdca4a UW |
3917 | 2008-05-02 Ulrich Weigand <[email protected]> |
3918 | ||
3919 | * linespec.c: Include "target.h". | |
3920 | (minsym_found): Handle minimal symbols pointing to function | |
3921 | descriptors. Use find_function_start_pc. | |
3922 | * minsyms.c (msymbol_objfile): New function. | |
3923 | * parse.c (write_exp_msymbol): Handle minimal symbols pointing | |
3924 | to function descriptors. | |
3925 | * symtab.c (fixup_section): Only use minimal symbol at the same | |
3926 | address to determine section of a symbol. | |
3927 | (find_function_start_pc): New function. | |
3928 | (find_function_start_sal): Use it. | |
3929 | * symtab.h (msymbol_objfile): Add prototype. | |
3930 | (find_function_start_pc): Likewise. | |
3931 | * value.c: Include "objfiles.h". | |
3932 | (value_fn_field): Handle minimal symbols pointing to function | |
680b56ce | 3933 | descriptors. |
bccdca4a UW |
3934 | * Makefile.in (linespec.o): Update dependencies. |
3935 | (value.o): Likewise. | |
3936 | ||
de4d072f JB |
3937 | 2008-05-02 Joel Brobecker <[email protected]> |
3938 | ||
3939 | * ada-lang.c (unwrap_value): Handle the case where the "F" field | |
3940 | inside a PAD type is a bitfield. | |
3941 | ||
93d4208d UW |
3942 | 2008-05-02 Ulrich Weigand <[email protected]> |
3943 | ||
3944 | * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Handle | |
3945 | TYPE_CODE_BOOL and TYPE_CODE_CHAR the same as TYPE_CODE_INT. | |
3946 | Handle TYPE_CODE_REF the same as TYPE_CODE_PTR. | |
3947 | Handle TYPE_CODE_METHOD the same as TYPE_CODE_FUNC. | |
3948 | Allow typedefs when checking for function pointer arguments. | |
3949 | Right-align small structs passed on the stack. | |
3950 | (ppc64_sysv_abi_return_value): Handle TYPE_CODE_BOOL and | |
3951 | TYPE_CODE_CHAR the same as TYPE_CODE_INT. | |
3952 | Handle TYPE_CODE_REF the same as TYPE_CODE_PTR. | |
3953 | ||
60c5725c DJ |
3954 | 2008-05-02 Daniel Jacobowitz <[email protected]> |
3955 | ||
3956 | * Makefile.in (arm-tdep.o): Update. | |
3957 | * arm-tdep.c (arm_objfile_data_key, struct arm_mapping_symbol) | |
3958 | (struct arm_per_objfile, arm_compare_mapping_symbols): New. | |
3959 | (arm_pc_is_thumb): Use mapping symbols. | |
3960 | (arm_objfile_data_cleanup, arm_record_special_symbol): New. | |
3961 | (arm_gdbarch_init): Call set_gdbarch_record_special_symbol. | |
3962 | (_initialize_arm_tdep): Initialize arm_objfile_data_key. | |
3963 | * elfread.c (elf_symtab_read): Use gdbarch_record_special_symbol. | |
3964 | * gdbarch.sh: Add record_special_symbol. | |
3965 | * gdbarch.c, gdbarch.h: Regenerated. | |
3966 | * objfiles.c (struct objfile_data): Add cleanup member. | |
3967 | (register_objfile_data_with_cleanup): New function, from | |
3968 | register_objfile_data. | |
3969 | (register_objfile_data): Use it. | |
3970 | (objfile_free_data): Call clear_objfile_data. | |
3971 | (clear_objfile_data): Call cleanup functions. | |
3972 | * objfiles.h (register_objfile_data_with_cleanup): Declare. | |
3973 | ||
574dffa2 DJ |
3974 | 2008-05-02 Daniel Jacobowitz <[email protected]> |
3975 | ||
3976 | * objfiles.c (init_entry_point_info): Handle shared libraries. | |
3977 | ||
2c404490 DJ |
3978 | 2008-05-02 Daniel Jacobowitz <[email protected]> |
3979 | ||
3980 | * arm-tdep.c (arm_prologue_this_id): Compare pc, not func, to | |
3981 | lowest_pc. | |
3982 | ||
237fc4c9 PA |
3983 | 2008-05-02 Jim Blandy <[email protected]> |
3984 | Pedro Alves <[email protected]> | |
3985 | ||
3986 | Implement displaced stepping. | |
3987 | ||
3988 | * gdbarch.sh (max_insn_length): New 'variable'. | |
3989 | (displaced_step_copy, displaced_step_fixup) | |
3990 | (displaced_step_free_closure, displaced_step_location): New | |
3991 | functions. | |
3992 | (struct displaced_step_closure): Add forward declaration. | |
3993 | * gdbarch.c, gdbarch.h: Regenerated. | |
3994 | ||
3995 | * arch-utils.c: #include "objfiles.h". | |
3996 | (simple_displaced_step_copy_insn) | |
3997 | (simple_displaced_step_free_closure) | |
3998 | (displaced_step_at_entry_point): New functions. | |
3999 | * arch-utils.h (simple_displaced_step_copy_insn) | |
4000 | (simple_displaced_step_free_closure) | |
4001 | (displaced_step_at_entry_point): New prototypes. | |
4002 | ||
4003 | * i386-tdep.c (I386_MAX_INSN_LEN): Rename to... | |
4004 | (I386_MAX_MATCHED_INSN_LEN): ... this. | |
4005 | (i386_absolute_jmp_p, i386_absolute_call_p) | |
4006 | (i386_ret_p, i386_call_p, i386_breakpoint_p, i386_syscall_p) | |
4007 | (i386_displaced_step_fixup): New functions. | |
4008 | (struct i386_insn, i386_match_insn): Update. | |
4009 | (i386_gdbarch_init): Set gdbarch_max_insn_length. | |
4010 | * i386-tdep.h (I386_MAX_INSN_LEN): New. | |
4011 | (i386_displaced_step_fixup): New prototype. | |
4012 | * i386-linux-tdep.c (i386_linux_init_abi): Include "arch-utils.h". | |
4013 | Register gdbarch_displaced_step_copy, | |
4014 | gdbarch_displaced_step_fixup, gdbarch_displaced_step_free_closure, | |
4015 | and gdbarch_displaced_step_location functions. | |
4016 | ||
4017 | * infrun.c (debug_displaced): New variable. | |
4018 | (show_debug_displaced): New function. | |
4019 | (struct displaced_step_request): New struct. | |
4020 | (displaced_step_request_queue, displaced_step_ptid) | |
4021 | (displaced_step_gdbarch, displaced_step_closure) | |
4022 | (displaced_step_original, displaced_step_copy) | |
4023 | (displaced_step_saved_copy, can_use_displaced_stepping): New | |
4024 | variables. | |
4025 | (show_can_use_displaced_stepping, use_displaced_stepping) | |
4026 | (displaced_step_clear, cleanup_displaced_step_closure) | |
4027 | (displaced_step_dump_bytes, displaced_step_prepare) | |
4028 | (displaced_step_clear_cleanup, write_memory_ptid) | |
4029 | (displaced_step_fixup): New functions. | |
4030 | (resume): Call displaced_step_prepare. | |
4031 | (proceed): Call read_pc once, and remember the value. If using | |
4032 | displaced stepping, don't remove breakpoints. | |
4033 | (handle_inferior_event): Call displaced_step_fixup. Add some | |
4034 | debugging output. When we try to step over a breakpoint, but get | |
4035 | a signal to deliver to the thread instead, ensure the step-resume | |
4036 | breakpoint is actually inserted. If a thread hop is needed, and | |
4037 | displaced stepping is enabled, don't remove breakpoints. | |
4038 | (init_wait_for_inferior): Call displaced_step_clear. | |
4039 | (_initialize_infrun): Add "set debug displaced" command. Add | |
4040 | "maint set can-use-displaced-stepping" command. Clear | |
4041 | displaced_step_ptid. | |
4042 | * inferior.h (debug_displaced): Declare variable. | |
4043 | (displaced_step_dump_bytes): Declare function. | |
4044 | ||
4045 | * Makefile.in (arch-utils.o, i386-linux-tdep.o): Update | |
4046 | dependencies. | |
4047 | ||
0428b8f5 DJ |
4048 | 2008-05-02 Daniel Jacobowitz <[email protected]> |
4049 | ||
4050 | * arm-tdep.c (arm_mode_strings, arm_fallback_mode_string) | |
4051 | (arm_force_mode_string, arm_show_fallback_mode) | |
4052 | (arm_show_force_mode): New. | |
4053 | (arm_pc_is_thumb): Honor fallback-mode and force-mode. Use | |
4054 | arm_frame_is_thumb. | |
4055 | (_initialize_arm_tdep): Add "set arm fallback-mode" | |
4056 | and "set arm force-mode". | |
4057 | * NEWS: Document new commands. | |
4058 | ||
d01a8610 AS |
4059 | 2008-05-02 Andrew Stubbs <[email protected]> |
4060 | ||
4061 | * main.h (batch_silent): Declare. | |
4062 | * event-top.c: Include main.h. | |
4063 | (gdb_setup_readline): Remove extern batch_silent declaration. | |
4064 | * infrun.c (normal_stop): Don't print source location when running in | |
4065 | --batch-silent mode. | |
4066 | * Makefile.in (event-top.o): Add main.h dependency. | |
4067 | ||
5009afc5 AS |
4068 | 2008-05-02 Andreas Schwab <[email protected]> |
4069 | ||
4070 | * target.h (struct target_ops): Add | |
4071 | to_watchpoint_addr_within_range. | |
4072 | (target_watchpoint_addr_within_range): New function. | |
4073 | * target.c (update_current_target): Inherit | |
4074 | to_watchpoint_addr_within_range, defaulting to | |
4075 | default_watchpoint_addr_within_range. | |
4076 | (default_watchpoint_addr_within_range): New function. | |
4077 | (debug_to_watchpoint_addr_within_range): New function. | |
4078 | (setup_target_debug): Set to_watchpoint_addr_within_range. | |
4079 | * ppc-linux-nat.c (ppc_linux_watchpoint_addr_within_range): | |
4080 | New function. | |
4081 | (_initialize_ppc_linux_nat): Set to_watchpoint_addr_within_range. | |
4082 | * breakpoint.c (watchpoints_triggered): Use | |
4083 | target_watchpoint_addr_within_range. | |
4084 | ||
a15c5c83 PA |
4085 | 2008-05-01 Pedro Alves <[email protected]> |
4086 | ||
4087 | * configure.tgt: Add i[34567]86-*-dicos* and x86_64-*-dicos*. | |
4088 | (i[34567]86-*-dicos*, x86_64-*-dicos*): | |
4089 | Set gdb_osabi to GDB_OSABI_DICOS. | |
4090 | ||
4091 | * defs.h (enum gdb_osabi): Add GDB_OSABI_DICOS. | |
4092 | * osabi.c (gdb_osabi_name): Add "DICOS". | |
4093 | ||
4094 | * i386-dicos-tdep.c: New file. | |
4095 | ||
4096 | * Makefile.in (ALL_TARGET_OBS): Add i386-dicos-tdep.o. | |
4097 | (ALLDEPFILES): Add i386-dicos-tdep.c. | |
4098 | (i386-dicos-tdep.o): New rule. | |
4099 | ||
728c8f58 PA |
4100 | 2008-05-01 Pedro Alves <[email protected]> |
4101 | ||
4102 | * linux-nat.c (linux_nat_switch_fork): Reinit GDB's thread list | |
4103 | and register the fork's PTID as a thread. | |
4104 | ||
604133b5 AR |
4105 | 2008-05-01 Aleksandar Ristovski <[email protected]> |
4106 | ||
4107 | PR gdb/1665 | |
4108 | * breakpoint.c (create_breakpoint): Add breakpoint_ops argument and | |
4109 | assign its value to the breakpoint created. | |
4110 | (create_breakpoints): Add breakpoint_ops argument and pass it | |
4111 | to create_breakpoint call. | |
4112 | (break_command_really): Add breakpoint_ops argument and pass/assign | |
4113 | appropriately. | |
4114 | (break_command_1): Pass NULL as ops argument. | |
4115 | (set_breakpoint): Pass NULL as ops argument. | |
4116 | (print_one_exception_catchpoint): Print <PENDING> if no loc available. | |
4117 | (handle_gnu_v3_exceptions): Call generic breakpoint code to insert | |
4118 | catch and throw catchpoints. | |
5009afc5 | 4119 | |
1f906a60 | 4120 | 2008-05-01 Aleksandar Ristovski <[email protected]> |
1cded358 AR |
4121 | |
4122 | PR gdb/2343 | |
4123 | * corelow.c (core_open): Use gdbarch_target_signal_from_host to | |
4124 | translate signal numeric value from the target to GDB's enum | |
4125 | target_signal. | |
4126 | * gdbarch.c, gdbarch.h: Regenerated. | |
4127 | * gdbarch.sh: Added two new functions target_signal_from_host and | |
4128 | target_signal_to_host. | |
680b56ce | 4129 | * target.h (default_target_signal_from_host, |
1cded358 AR |
4130 | default_target_signal_to_host): New functions - declarations. |
4131 | * signals/signals.c (struct gdbarch): New declaration. | |
4132 | (default_target_signal_to_host, default_target_signal_from_host): New | |
4133 | functions. | |
4134 | ||
ed5e9466 DJ |
4135 | 2008-05-01 Daniel Jacobowitz <[email protected]> |
4136 | Pedro Alves <[email protected]> | |
4137 | ||
4138 | Based on work by Jan Kratochvil <[email protected]> and Jeff | |
4139 | Johnston <[email protected]>. | |
4140 | ||
4141 | * NEWS: Mention attach to stopped process fix. | |
4142 | * infcmd.c (detach_command, disconnect_command): Discard the thread | |
4143 | list. | |
4144 | * infrun.c (handle_inferior_event): Do not ignore non-SIGSTOP while | |
4145 | attaching. Use signal_stop_state. | |
4146 | (signal_stop_state): Check stop_soon. | |
4147 | * linux-nat.c (kill_lwp): Declare earlier. | |
4148 | (pid_is_stopped, linux_nat_post_attach_wait): New. | |
4149 | (lin_lwp_attach_lwp): Use linux_nat_post_attach_wait. Update | |
4150 | comments. | |
4151 | (linux_nat_attach): Use linux_nat_post_attach_wait. | |
4152 | (detach_callback, linux_nat_detach): Improve handling for signalled | |
4153 | processes. | |
4154 | (linux_nat_pid_to_str): Always print out the LWP ID if it differs | |
4155 | from the process ID. | |
4156 | * Makefile.in (infcmd.o): Update. | |
4157 | ||
b39cc962 DJ |
4158 | 2008-05-01 Daniel Jacobowitz <[email protected]> |
4159 | ||
4160 | * arm-linux-tdep.h (ARM_CPSR_REGNUM): Delete definition. | |
4161 | * arm-tdep.c (arm_frame_is_thumb): New. | |
4162 | (arm_pc_is_thumb): Clarify comment. | |
4163 | (thumb_analyze_prologue): Remove PC special case. | |
4164 | (thumb_scan_prologue): Take a block_addr argument. Use it for | |
4165 | find_pc_partial_function. Remove unused variables. | |
4166 | (arm_scan_prologue): Use arm_frame_is_thumb. Use the block address | |
4167 | for find_pc_partial_function. Remove PC special case. | |
4168 | (arm_prologue_prev_register): Add special handling for PC and CPSR. | |
4169 | (arm_dwarf2_prev_register, arm_dwarf2_frame_init_reg): New. | |
4170 | (arm_get_next_pc): Use arm_frame_is_thumb. | |
4171 | (arm_write_pc): Use CPSR_T instead of 0x20. | |
4172 | (arm_gdbarch_init): Call dwarf2_frame_set_init_reg. | |
4173 | * arm-tdep.h (enum gdb_regnum): Add ARM_CPSR_REGNUM. | |
4174 | (CPSR_T): Define. | |
4175 | * dwarf2-frame.c (dwarf2_frame_prev_register): Handle | |
4176 | DWARF2_FRAME_REG_FN. | |
4177 | * dwarf2-frame.h (enum dwarf2_frame_reg_rule): Add | |
4178 | DWARF2_FRAME_REG_FN. | |
4179 | (struct dwarf2_frame_state_reg): Add FN to loc union. | |
4180 | ||
944f08ab JB |
4181 | 2008-05-01 Nick Roberts <[email protected]> |
4182 | ||
4183 | * exec.c (print_section_info): Add missing '\n'. | |
4184 | ||
cfc01461 VP |
4185 | 2008-05-01 Vladimir Prus <[email protected]> |
4186 | ||
4187 | * thread.c (add_thread): Move observer call to ... | |
680b56ce | 4188 | (add_thread_silent): ... here. |
cfc01461 | 4189 | |
1af5d7ce UW |
4190 | 2008-04-30 Ulrich Weigand <[email protected]> |
4191 | ||
4192 | * rs6000-tdep.c: Update for unwinder changes. | |
4193 | * ppcobsd-tdep.c: Likewise. | |
4194 | ||
f089c433 UW |
4195 | 2008-04-30 Ulrich Weigand <[email protected]> |
4196 | ||
4197 | * s390-tdep.c: Update for unwinder changes. | |
4198 | ||
8d998b8f UW |
4199 | 2008-04-30 Ulrich Weigand <[email protected]> |
4200 | ||
4201 | * spu-tdep.c: Update for unwinder changes. | |
4202 | ||
5366653e DJ |
4203 | 2008-04-30 Daniel Jacobowitz <[email protected]> |
4204 | ||
4205 | * hppanbsd-tdep.c, m68kbsd-tdep.c, mn10300-linux-tdep.c, | |
4206 | ppc-linux-tdep.c, ppcnbsd-tdep.c, sparc-linux-tdep.c, | |
4207 | sparc64-linux-tdep.c: Update for unwinder changes. | |
4208 | ||
b8a22b94 DJ |
4209 | 2008-04-30 Daniel Jacobowitz <[email protected]> |
4210 | ||
4211 | * mipsnbsd-tdep.c, mips64obsd-tdep.c, mips-linux-tdep.c: Update | |
4212 | for unwinder changes. | |
4213 | * mips-tdep.c: Likewise. | |
4214 | (mips_stub_frame_cache): Unwind the ABI stack pointer, not the | |
4215 | raw one. | |
4216 | ||
a262aec2 DJ |
4217 | 2008-04-30 Daniel Jacobowitz <[email protected]> |
4218 | ||
4219 | * arm-linux-tdep.c, arm-tdep.c, armobsd-tdep.c: Update for | |
4220 | unwinder changes. | |
4221 | ||
10458914 DJ |
4222 | 2008-04-30 Daniel Jacobowitz <[email protected]> |
4223 | ||
4224 | Update i386 and amd64 ports for unwinder changes. | |
4225 | ||
4226 | * amd64-tdep.c (amd64_frame_cache): Expect this_frame. | |
4227 | (amd64_frame_this_id, amd64_frame_prev_register): Update signature. | |
4228 | (amd64_frame_unwind): Use default_frame_sniffer. | |
4229 | (amd64_frame_sniffer): Delete. | |
4230 | (amd64_sigtramp_frame_cache): Expect this_frame. | |
4231 | (amd64_sigtramp_frame_this_id, amd64_sigtramp_frame_prev_register) | |
4232 | (amd64_sigtramp_frame_sniffer): Update signature. | |
4233 | (amd64_sigtramp_frame_unwind): Add amd64_sigtramp_frame_sniffer. | |
4234 | (amd64_frame_base_address): Expect this_frame. | |
4235 | (amd64_dummy_id): Renamed from amd64_unwind_dummy_id. Expect | |
4236 | this_frame. | |
4237 | (amd64_init_abi): Use set_gdbarch_dummy_id and | |
4238 | frame_unwind_append_unwinder. | |
4239 | * i386-tdep.c (i386_frame_cache): Expect this_frame. | |
4240 | (i386_frame_this_id, i386_frame_prev_register): Update signature. | |
4241 | (i386_frame_unwind): Use default_frame_sniffer. | |
4242 | (i386_frame_sniffer): Delete. | |
4243 | (i386_sigtramp_frame_cache): Expect this_frame. | |
4244 | (i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register) | |
4245 | (i386_sigtramp_frame_sniffer): Update signature. | |
4246 | (i386_sigtramp_frame_unwind): Use i386_sigtramp_frame_sniffer. | |
4247 | (i386_frame_base_address): Update signature. | |
4248 | (i386_dummy_id): Rename from i386_unwind_dummy_id. Expect this_frame. | |
4249 | (i386_push_dummy_call): Update comment. | |
4250 | (i386_sigtramp_p, i386_svr4_sigtramp_p, i386_svr4_sigcontext_addr): | |
4251 | Expect this_frame. | |
4252 | (i386_gdbarch_init): Use set_gdbarch_dummy_id, dwarf2_append_unwinders, | |
4253 | and frame_unwind_append_unwinder. | |
4254 | * amd64-linux-tdep.c, amd64-sol2-tdep.c, amd64fbsd-tdep.c, | |
4255 | amd64nbsd-tdep.c, amd64obsd-tdep.c, i386-linux-tdep.c, | |
4256 | i386-nto-tdep.c, i386bsd-tdep.c, i386-sol2-tdep.c, i386obsd-tdep.c, | |
4257 | i386nbsd-tdep.c: Update for unwinder changes. | |
4258 | ||
25492ce3 DJ |
4259 | 2008-04-30 Daniel Jacobowitz <[email protected]> |
4260 | ||
4261 | * trad-frame.c (struct trad_frame_cache): Rename next_frame to this_frame. | |
4262 | (trad_frame_cache_zalloc, trad_frame_alloc_saved_regs): Expect | |
4263 | this_frame. | |
4264 | (trad_frame_get_prev_register, trad_frame_get_register): Update signature. | |
4265 | * trad-frame.h (trad_frame_cache_zalloc, trad_frame_get_register) | |
4266 | (trad_frame_alloc_saved_regs, trad_frame_get_prev_register): Update | |
4267 | signature. | |
4268 | * tramp-frame.c (tramp_frame_cache, tramp_frame_start): Expect | |
4269 | this_frame. | |
4270 | (tramp_frame_this_id, tramp_frame_prev_register, tramp_frame_sniffer): | |
4271 | Update signature. | |
4272 | * tramp-frame.h (struct tramp_frame): Update signature of init. | |
4273 | * Makefile.in (trad-frame.o): Update. | |
4274 | ||
4a4e5149 DJ |
4275 | 2008-04-30 Daniel Jacobowitz <[email protected]> |
4276 | ||
4277 | * dwarf2-frame.c (read_reg): Expect this_frame in the baton. | |
4278 | (execute_stack_op): Put this_frame in the baton. | |
4279 | (execute_cfa_program): Take this_frame. | |
4280 | (struct dwarf2_frame_ops): Update comment for signal_frame_p. | |
4281 | (dwarf2_frame_default_init_reg, dwarf2_frame_init_reg) | |
4282 | (dwarf2_frame_signal_frame_p, dwarf2_frame_cache) | |
4283 | (dwarf2_frame_this_id): Adjust to work on this_frame. | |
4284 | (dwarf2_signal_frame_this_id): Delete. | |
4285 | (dwarf2_frame_prev_register): Update signature. Use new frame | |
4286 | unwind methods. | |
4287 | (dwarf2_frame_sniffer): Update signature. Expect this_frame. | |
4288 | (dwarf2_frame_unwind, dwarf2_signal_frame_unwind): Add | |
4289 | dwarf2_frame_sniffer. | |
4290 | (dwarf2_append_unwinders): New. | |
4291 | (dwarf2_frame_base_address, dwarf2_frame_base_sniffer): Expect | |
4292 | this_frame. | |
4293 | * sparc-tdep.c (sparc32_dwarf2_struct_return_p) | |
4294 | (sparc32_dwarf2_frame_init_reg): Expect this_frame. | |
4295 | * cris-tdep.c (cris_dwarf2_frame_init_reg): Likewise. | |
4296 | * rs6000-tdep.c (ppc_dwarf2_frame_init_reg): Likewise. | |
4297 | * s390-tdep.c (s390_dwarf2_frame_init_reg): Likewise. | |
4298 | * sh-tdep.c (sh_dwarf2_frame_init_reg): Likewise. | |
4299 | * sparc64-tdep.c (sparc64_dwarf2_frame_init_reg): Likewise. | |
4300 | * dwarf2-frame.h (dwarf2_frame_sniffer): Delete declaration. | |
4301 | (dwarf2_append_unwinders): Declare. | |
4302 | (dwarf2_frame_base_sniffer): Update declaration. | |
4303 | * i386-linux-tdep.c (i386_linux_dwarf_signal_frame_p): Expect | |
4304 | this_frame. | |
4305 | ||
669fac23 DJ |
4306 | 2008-04-30 Daniel Jacobowitz <[email protected]> |
4307 | ||
4308 | Convert frame unwinders to use the current frame and | |
4309 | "struct value". | |
4310 | ||
4311 | * frame.c (frame_debug): Make global. | |
4312 | (get_frame_id): Pass this frame to unwinder routines. | |
4313 | (frame_pc_unwind): Remove unused unwind->prev_pc support. | |
4314 | (do_frame_register_read): Do not discard the return value of | |
4315 | frame_register_read. | |
4316 | (frame_register_unwind): Remove debug messages. Use | |
4317 | frame_unwind_register_value. | |
4318 | (frame_unwind_register_value, get_frame_register_value): New | |
4319 | functions. | |
4320 | (create_new_frame, get_frame_base_address, get_frame_locals_address) | |
4321 | (get_frame_args_address, get_frame_type): Pass this frame to | |
4322 | unwinder routines. | |
4323 | (frame_cleanup_after_sniffer, frame_prepare_for_sniffer): New | |
4324 | functions. | |
4325 | * frame.h: Update comments. | |
4326 | (frame_debug, frame_unwind_register_value, get_frame_register_value) | |
4327 | (frame_prepare_for_sniffer): Declare. | |
4328 | * frame-unwind.h: Update comments and parameter names. | |
4329 | (default_frame_sniffer): Declare. | |
4330 | (frame_prev_register_ftype): Return a struct value *. | |
4331 | (struct frame_unwind): Remove prev_pc member. | |
4332 | (frame_unwind_sniffer_ftype, frame_unwind_append_sniffer): Delete. | |
4333 | (frame_unwind_append_unwinder, frame_unwind_got_optimized) | |
4334 | (frame_unwind_got_register, frame_unwind_got_memory) | |
4335 | (frame_unwind_got_constant, frame_unwind_got_address): Declare. | |
4336 | * frame-base.h: Update comments and parameter names. | |
4337 | * valops.c (value_fetch_lazy): Use get_frame_register_value. Iterate | |
4338 | if necessary. Add debugging output. | |
4339 | * sentinel-frame.c (sentinel_frame_prev_register) | |
4340 | (sentinel_frame_this_id): Update for new signature. | |
4341 | (sentinel_frame_prev_pc): Delete. | |
4342 | (sentinel_frame_unwinder): Remove prev_pc. | |
4343 | * ia64-tdep.c (ia64_libunwind_frame_unwind): Do not initialize | |
4344 | prev_pc. | |
4345 | * libunwind-frame.c (libunwind_frame_unwind): Likewise. | |
4346 | * frame-unwind.c (struct frame_unwind_table_entry): Remove sniffer. | |
4347 | (frame_unwind_append_sniffer): Delete. | |
4348 | (frame_unwind_append_unwinder): New function. | |
4349 | (frame_unwind_find_by_frame): Take this frame. Only use sniffers | |
4350 | from unwinders. Use frame_prepare_for_sniffer. | |
4351 | (default_frame_sniffer, frame_unwind_got_optimized) | |
4352 | (frame_unwind_got_register, frame_unwind_got_memory) | |
4353 | (frame_unwind_got_constant, frame_unwind_got_address): New functions. | |
4354 | * dummy-frame.c (dummy_frame_sniffer): Use gdbarch_dummy_id. | |
4355 | (dummy_frame_prev_register, dummy_frame_this_id): Update for new | |
4356 | signature. | |
4357 | * gdbarch.sh: Replace unwind_dummy_id with dummy_id. | |
4358 | * gdbarch.c, gdbarch.c: Regenerated. | |
4359 | * frame-base.c (default_frame_base_address) | |
4360 | (default_frame_locals_address, default_frame_args_address): Update | |
4361 | for new signature. | |
4362 | (frame_base_find_by_frame): Pass this frame to unwinder routines. | |
4363 | * infcall.c (call_function_by_hand): Update comments. | |
4364 | * Makefile.in (frame-unwind.o): Update dependencies. | |
4365 | ||
9214ee5f DJ |
4366 | 2008-04-30 Daniel Jacobowitz <[email protected]> |
4367 | ||
4368 | * ada-lang.c (ada_value_primitive_packed_val): Only check | |
4369 | value_lazy for memory lvals. | |
4370 | * findvar.c (value_of_register_lazy): New function. | |
4371 | (locate_var_value): Only check value_lazy for memory lvals. | |
4372 | * valarith.c (value_subscripted_rvalue): Likewise. | |
4373 | * valops.c (value_fetch_lazy): Handle both memory and register | |
4374 | lvals. | |
4375 | (search_struct_field, value_slice): Only check value_lazy for memory | |
4376 | lvals. | |
4377 | * value.c (struct value): Update comment for lazy. | |
4378 | (value_primitive_field): Only check value_lazy for memory lvals. | |
4379 | * value.h (value_lazy): Update comment. | |
4380 | (value_of_register_lazy): Declare. | |
4381 | ||
939643d7 DJ |
4382 | 2008-04-30 Daniel Jacobowitz <[email protected]> |
4383 | ||
4384 | * corefile.c (reopen_exec_file): Close any open files. | |
4385 | ||
1de34ab7 JB |
4386 | 2008-04-29 Joel Brobecker <[email protected]> |
4387 | ||
4388 | * ia64-tdep.c (ia64_memory_remove_breakpoint): Set | |
4389 | show_memory_breakpoints to 1 while reading the instruction bundle. | |
4390 | ||
ea42b34a JB |
4391 | 2008-04-29 Joel Brobecker <[email protected]> |
4392 | ||
4393 | * gdbarch.sh: Document the return_value method. Explain that | |
4394 | the FUNCTYPE parameter might be NULL. | |
4395 | * gdbarch.h: Regenerated. | |
4396 | * sparc-tdep.c (sparc32_push_dummy_code): Do not pass the function | |
4397 | type when calling using_struct_return, as this is unnecessary | |
4398 | on this target. | |
4399 | ||
a0fe373c JB |
4400 | 2008-04-28 Joel Brobecker <[email protected]> |
4401 | ||
4402 | * terminal.h (create_tty_session): Fix return type. | |
4403 | ||
c6446539 VP |
4404 | 2008-04-26 Vladimir Prus <[email protected]> |
4405 | ||
4406 | * mi/mi-interp.c (mi_new_thread): Quote the thread id. | |
4407 | ||
2f069f6f JB |
4408 | 2008-04-26 Joel Brobecker <[email protected]> |
4409 | ||
4410 | * breakpoint.c (condition_command, commands_from_control_command) | |
4411 | (break_command_really): Minor reformatting. | |
4412 | ||
93b5768b PA |
4413 | 2008-04-25 Pedro Alves <[email protected]> |
4414 | ||
4415 | * dwarf2read.c (dwarf2_const_value): Handle DW_FORM_strp. | |
4416 | ||
436675d3 PA |
4417 | 2008-04-25 Pedro Alves <[email protected]> |
4418 | ||
4419 | * amd64-tdep.c (amd64_get_longjmp_target): New. | |
4420 | (amd64_init_abi): Register amd64_get_longjmp_target as | |
4421 | gdbarch_get_longjmp_target callback. | |
4422 | * i386-tdep.c (i386_get_longjmp_target): Remove 64-bit handling. | |
4423 | ||
78b6a731 PA |
4424 | 2008-04-25 Pedro Alves <[email protected]> |
4425 | ||
4426 | * breakpoint.h (enum bpstat_what_main_action): Delete | |
4427 | BPSTAT_WHAT_CLEAR_LONGJMP_RESUME_SINGLE. | |
4428 | ||
4429 | * breakpoint.c (clrs): Delete. | |
4430 | (bpstat_what): Update table. | |
4431 | ||
4432 | * infrun.c (handle_inferior_event): Remove | |
4433 | BPSTAT_WHAT_CLEAR_LONGJMP_RESUME_SINGLE handling. | |
4434 | ||
9e22b03a VP |
4435 | 2008-04-24 Vladimir Prus <[email protected]> |
4436 | ||
4437 | * mi/mi-cmds.h (mi_cmd_args_ftype): Remove. | |
4438 | Adjust all prototypes using mi_cmd_args_ftype to use | |
4439 | mi_cmd_argv_ftype. | |
4440 | (struct mi_cmd): Remove the args_func field. | |
4441 | * mi/mi-cmds.c: Don't provide value for the args_func field. | |
4442 | * mi/mi-main.c (mi_execute_async_cli_command) | |
4443 | (mi_cmd_exec_run, mi_cmd_exec_next, mi_cmd_exec_next_instruction) | |
4444 | (mi_cmd_exec_step, mi_cmd_exec_step_instruction) | |
4445 | (mi_cmd_exec_finish, mi_cmd_exec_until, mi_cmd_exec_return) | |
4446 | (mi_cmd_exec_continue, mi_cmd_exec_interrupt) | |
4447 | (mi_cmd_target_download): Adjust. | |
4448 | (mi_cmd_target_select): Adjust. Pass 0 for from_tty parameter. | |
4449 | (mi_cmd_execute): Do not check for args_func. | |
4450 | (mi_execute_async_cli_command): Adjust. | |
4451 | * mi/mi-parse.c: Don't check for args_func. | |
4452 | ||
721c02de | 4453 | 2008-04-24 Vladimir Prus <[email protected]> |
18a18393 | 4454 | |
680b56ce AS |
4455 | * breakpoint.c (bpstat_check_location) |
4456 | (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions): | |
4457 | New, extracted from bpstat_stop_status. | |
4458 | (bpstat_stop_status): Use the above. | |
18a18393 VP |
4459 | |
4460 | 2008-04-24 Vladimir Prus <[email protected]> | |
4461 | ||
680b56ce AS |
4462 | * mi/mi-main.c (last_async_command): Rename to current_token. |
4463 | (previous_async_command): Remove. | |
4464 | (mi_cmd_gdb_exit): Adjust. | |
4465 | (mi_cmd_exec_interrupt): Don't dance with previous_async_command. | |
4466 | (mi_cmd_target_select): Adjust. | |
4467 | (mi_cmd_execute): Don't set previous_async_command. Free token | |
4468 | here even in async mode. | |
4469 | (mi_execute_async_cli_command): Adjust. | |
4470 | (mi_exec_async_cli_cmd_continuation): Adjust. Do not free the | |
4471 | token. | |
4472 | (mi_load_progress): Adjust. | |
721c02de | 4473 | |
f13468d9 VP |
4474 | 2008-04-24 Vladimir Prus <[email protected]> |
4475 | ||
680b56ce AS |
4476 | * infcmd.c (step_1_continuation): Always disable longjmp |
4477 | breakpoint if we're not going to do another step. | |
f13468d9 | 4478 | |
f107f563 VP |
4479 | 2008-04-24 Vladimir Prus <[email protected]> |
4480 | ||
4481 | exec_cleanup murder. | |
4482 | * breakpoint.c (until_break_command_continuation): Add | |
4483 | the 'error' parameter. Directly delete the breakoint as | |
4484 | opposed to running cleanups. | |
4485 | (until_break_command): Install continuation only | |
4486 | after starting the target. Don't use exec cleanups, | |
4487 | use ordinary cleanups. Discard cleanups is successfully | |
4488 | started the target in async mode. | |
4489 | (make_cleanup_delete_breakpoint): Remove. | |
4490 | * breakpoint.h (make_cleanup_delete_breakpoint): Remove | |
4491 | declaration. | |
4492 | * defs.h (do_exec_cleanups, make_exec_cleanup): Remove | |
4493 | declarations. | |
4494 | (struct continations): Add the 'error' parameter to the | |
4495 | continuation_hook field. | |
4496 | (add_continuation, do_all_continuations) | |
4497 | (add_intermediate_continuation) | |
4498 | (do_all_intermediate_continuations): Add the 'error' parameter. | |
4499 | * exceptions.c (throw_exception): Don't call do_exec_cleanups. | |
4500 | * inf-loop.c (inferior_event_handler): Instead of calling | |
4501 | discard_all_continuations, use do_all_continuations with 1 as | |
4502 | 'error' parameter. Pass 0 as 'error' parameter in existing uses | |
4503 | of discard_all_continuations. | |
4504 | * infcmd.c (step_1): Do not use exec cleanup. For async case, discard | |
4505 | cleanups. | |
4506 | (step_once): Install continuation only after resuming the target. | |
4507 | (step_1_continuation): Disable longjmp breakpoint on error. | |
4508 | (finish_command_continuation): Add the error parameter. Delete | |
4509 | the finish breakpoint directly, do not use cleanups. | |
4510 | (finish_command): Do not use exec_cleanups. Always setup | |
4511 | continuation. For sync case, immediately run them. | |
4512 | (attach_command_continuation): Add the error parameter. | |
4513 | * infrun.c (fetch_inferior_event): Do not use exec cleanups to | |
4514 | remove step_resume_breakpoint -- adjust delete it directly. | |
4515 | * interps.c (interp_set): Adjust call to do_all_continations. | |
4516 | * mi/mi-interp.c (mi_interpreter_exec_continuation): Do not | |
4517 | do exec cleanups. | |
4518 | * mi/mi-main.c (mi_cmd_target_select): Do not do exec | |
4519 | cleanups. | |
4520 | (mi_cmd_execute): Do not use exec_cleanup. | |
4521 | (mi_execute_async_cli_command): Simplify the string concatenation | |
4522 | logic. Do no use exec cleanup. | |
4523 | (mi_exec_async_cli_cmd_continuation): New parameter error. | |
4524 | Free last_async_command. | |
4525 | * top.c (command_line_handler_continuation): New parameter error. | |
4526 | * utils.c (exec_cleanup_chain, make_exec_cleanup) | |
4527 | (do_exec_cleanups): Remove. | |
4528 | (add_continuation, do_all_continations) | |
4529 | (add_intermediate_continuation) | |
4530 | (do_all_intermediate_continuations): New parameter error. | |
4531 | ||
74960c60 VP |
4532 | 2008-04-24 Vladimir Prus <[email protected]> |
4533 | ||
4534 | * breakpoint.h (bp_location_p): New typedef. | |
4535 | Register a vector of bp_location_p. | |
4536 | * breakpoint.c (always_inserted_mode) | |
4537 | (show_always_inserted_mode): New. | |
4538 | (unlink_locations_from_global_list): Remove. | |
4539 | (update_global_location_list) | |
4540 | (update_global_location_list_nothrow): New. | |
4541 | (update_watchpoint): Don't free locations. | |
4542 | (should_insert_location): New. | |
4543 | (insert_bp_location): Use should_insert_location. | |
4544 | (insert_breakpoint_locations): Copied from | |
4545 | insert_breakpoints. | |
4546 | (insert_breakpoint): Use insert_breakpoint_locations. | |
4547 | (bpstat_stop_status): Call update_global_location_list | |
4548 | when disabling breakpoint. | |
4549 | (allocate_bp_location): Don't add to bp_location_chain. | |
4550 | (set_raw_breakpoint) | |
4551 | (create_longjmp_breakpoint, enable_longjmp_breakpoint) | |
4552 | (disable_longjmp_breakpoint, create_overlay_event_breakpoint) | |
4553 | (enable_overlay_breakpoints, disable_overlay_breakpoints) | |
4554 | (set_longjmp_resume_breakpoint) | |
4555 | (enable_watchpoints_after_interactive_call_stop) | |
4556 | (disable_watchpoints_before_interactive_call_start) | |
4557 | (create_internal_breakpoint) | |
4558 | (create_fork_vfork_event_catchpoint) | |
4559 | (create_exec_event_catchpoint, set_momentary_breakpoint) | |
4560 | (create_breakpoints, break_command_1, watch_command_1) | |
4561 | (create_exception_catchpoint) | |
4562 | (handle_gnu_v3_exceptions) | |
4563 | (disable_breakpoint, breakpoint_re_set_one) | |
4564 | (create_thread_event_breakpoint, create_solib_event_breakpoint) | |
4565 | (create_ada_exception_breakpoint): : Don't call check_duplicates. | |
4566 | Call update_global_location_list. | |
4567 | (delete_breakpoint): Don't remove locations and don't | |
4568 | try to reinsert them. Call update_global_location_list. | |
4569 | (update_breakpoint_locations): Likewise. | |
4570 | (restore_always_inserted_mode): New. | |
4571 | (update_breakpoints_after_exec): Temporary disable | |
4572 | always inserted mode. | |
4573 | * Makefile.in: Update dependencies. | |
4574 | ||
4575 | * infrun.c (proceed): Remove breakpoints while stepping | |
4576 | over breakpoint. | |
4577 | (handle_inferior_event): Don't remove or insert | |
4578 | breakpoints. | |
4579 | * linux-fork.c (checkpoint_command): Remove breakpoints | |
4580 | before fork and insert after. | |
4581 | (linux_fork_context): Remove breakpoints before switch | |
4582 | and insert after. | |
4583 | * target.c (target_disconnect, target_detach): Remove | |
4584 | breakpoints from target. | |
4585 | ||
680b56ce | 4586 | |
d24317b4 VP |
4587 | 2008-04-24 Vladimir Prus <[email protected]> |
4588 | ||
4589 | * breakpoint.c (print_one_breakpoint_location): In MI | |
4590 | mode, report the location string the breakpoint was | |
4591 | originally created with. | |
4592 | ||
ee967b5f MG |
4593 | 2008-04-23 Maxim Grigoriev <[email protected]> |
4594 | ||
4595 | * Makefile.in (xtensa-tdep.o): Update dependencies. | |
4596 | * configure.tgt (xtensa*): Update dependencies. | |
4597 | * xtensa-tdep.c (arreg_number): Renamed from areg_number. | |
4598 | Local variable areg renamed to arreg. | |
4599 | (areg_number): New function. | |
4600 | (xtensa_pseudo_register_read, xtensa_pseudo_register_write) | |
4601 | (xtensa_extract_return_value, xtensa_store_return_value): areg_number | |
4602 | replaced by arreg_number. | |
4603 | (xtensa_windowed_frame_cache, struct xtensa_frame_cache): New comments. | |
4604 | (xtensa_alloc_frame_cache): Initialize cache->wd.ws. | |
4605 | (xtensa_scan_prologue): New function. | |
4606 | (xtensa_frame_cache): New local fp_regnum. Handle separately the case, | |
4607 | when ENTRY instraction hasn't been executed yet. Get the frame pointer | |
4608 | value based on prologue analysis. Fix the bugs preventing WS and | |
4609 | AR4-AR7/A11 registers from getting right values for intermediate frames, | |
4610 | whose registers have been already spilled. | |
4611 | (xtensa_frame_prev_register): Fix WS register value. Use are_number | |
4612 | and arreg_number appropriately. | |
4613 | (xtensa_gdbarch_init): Set solib_svr4_fetch_link_map_offsets to | |
4614 | svr4_ilp32_fetch_link_map_offsets. | |
4615 | ||
09d71d23 AS |
4616 | 2008-04-23 Andrew Stubbs <[email protected]> |
4617 | ||
4618 | * printcmd.c: Define USE_PRINTF_I64 and PRINTF_HAS_LONG_LONG on MinGW. | |
4619 | (printf_command): Convert %lld to %I64d when USE_PRINTF_I64 set. | |
4620 | ||
fdc59709 PB |
4621 | 2008-04-23 Paolo Bonzini <[email protected]> |
4622 | ||
680b56ce AS |
4623 | * acinclude.m4: Add override.m4. |
4624 | * configure: Regenerate. | |
fdc59709 | 4625 | |
0bcd0149 JK |
4626 | 2008-04-22 Jan Kratochvil <[email protected]> |
4627 | ||
4628 | * ada-lang.c (get_selections): Variable PROMPT made non-const and | |
4629 | initialized with a trailing space now. Use PROMPT_ARG of | |
4630 | COMMAND_LINE_INPUT instead of printing it ourselves. | |
4631 | ||
88d8a8e0 JB |
4632 | 2008-04-22 Joel Brobecker <[email protected]> |
4633 | ||
4634 | * NEWS: Document support for 64-bit core file. | |
4635 | ||
c055b101 CV |
4636 | 2008-04-22 Corinna Vinschen <[email protected]> |
4637 | ||
4638 | * NEWS: Add information on calling convention and new SH CLI options. | |
4639 | ||
4640 | * sh-tdep.c (sh_cc_gcc): New static string. | |
4641 | (sh_cc_renesas): Ditto. | |
4642 | (sh_cc_enum): New static string array. | |
4643 | (sh_active_calling_convention): New static string pointer denoting | |
4644 | active user chosen ABI. | |
4645 | (sh_is_renesas_calling_convention): New function to return function | |
4646 | specific ABI, or user choice if necessary. | |
4647 | (sh_use_struct_convention): Rename first argument and turn around its | |
4648 | meaning. Check for renesas ABI and return accordingly. | |
4649 | (sh_use_struct_convention_nofpu): New function. | |
4650 | (sh_next_flt_argreg): Get function type as third parameter. Check | |
4651 | for renesas ABI and choose floating registers accordingly. | |
4652 | (sh_push_dummy_call_fpu): Check for ABI and choose argument slot and | |
4653 | struct return slot accordingly. | |
4654 | (sh_push_dummy_call_nofpu): Ditto. | |
4655 | (sh_return_value_nofpu): Call sh_use_struct_convention_nofpu from here. | |
4656 | Evaluate ABI and give to sh_use_struct_convention_nofpu. | |
4657 | (sh_return_value_fpu): Evaluate ABI and give to | |
4658 | sh_use_struct_convention. | |
4659 | (show_sh_command): New function. | |
4660 | (set_sh_command): Ditto. | |
4661 | (_initialize_sh_tdep): Initialize `set/show sh calling-convention | |
4662 | CLI command. | |
4663 | ||
4664 | * gdbarch.sh (return_value): Add func_type argument. | |
4665 | * gdbarch.c: Regenerate. | |
4666 | * gdbarch.h: Ditto. | |
4667 | * eval.c (evaluate_subexp_standard): Rename local variable value_type to | |
4668 | val_type so as not to collide with value_type function. Call | |
4669 | using_struct_return with additional function type argument. | |
4670 | * infcall.c (call_function_by_hand): Call using_struct_return and | |
4671 | gdbarch_return_value with additional function type argument. | |
4672 | * infcmd.c (print_return_value): Take addition func_type argument. | |
4673 | Call gdbarch_return_value with additional function type argument. | |
4674 | (finish_command_continuation): Call print_return_value with additional | |
4675 | function type argument. | |
4676 | (finish_command): Ditto. | |
4677 | * sparc-tdep.c (sparc32_push_dummy_code): Call using_struct_return with | |
4678 | additional function type argument. | |
4679 | * stack.c (return_command): Call using_struct_return and | |
4680 | gdbarch_return_value with additional function type argument. | |
4681 | * value.c (using_struct_return): Take additional function type argument. | |
4682 | * value.h (using_struct_return): Accommodate declaration. | |
4683 | * alpha-tdep.c (alpha_return_value): Add func_type argument. | |
4684 | * amd64-tdep.c (amd64_return_value): Ditto. | |
4685 | * arm-tdep.c (arm_return_value): Ditto. | |
4686 | * avr-tdep.c (avr_return_value): Ditto. | |
4687 | * cris-tdep.c (cris_return_value): Ditto. | |
4688 | * frv-tdep.c (frv_return_value): Ditto. | |
4689 | * h8300-tdep.c (h8300_return_value): Ditto. | |
4690 | (h8300h_return_value): Ditto. | |
4691 | * hppa-tdep.c (hppa32_return_value): Ditto. | |
4692 | (hppa64_return_value): Ditto. | |
4693 | * i386-tdep.c (i386_return_value): Ditto. | |
4694 | * ia64-tdep.c (ia64_return_value): Ditto. | |
4695 | * iq2000-tdep.c (iq2000_return_value): Ditto. | |
4696 | * m32c-tdep.c (m32c_return_value): Ditto. | |
4697 | * m32r-tdep.c (m32r_return_value): Ditto. | |
4698 | * m68hc11-tdep.c (m68hc11_return_value): Ditto. | |
4699 | * m68k-tdep.c (m68k_return_value): Ditto. | |
4700 | (m68k_svr4_return_value): Ditto. | |
4701 | * m88k-tdep.c (m88k_return_value): Ditto. | |
4702 | * mep-tdep.c (mep_return_value): Ditto. | |
4703 | * mips-tdep.c (mips_eabi_return_value): Ditto. | |
4704 | (mips_n32n64_return_value): Ditto. | |
4705 | (mips_o32_return_value): Ditto. | |
4706 | (mips_o64_return_value): Ditto. | |
4707 | * mn10300-tdep.c (mn10300_return_value): Ditto. | |
4708 | * mt-tdep.c (mt_return_value): Ditto. | |
4709 | * ppc-linux-tdep.c (ppc_linux_return_value): Ditto. | |
4710 | * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Ditto. | |
4711 | (ppc_sysv_abi_broken_return_value): Ditto. | |
4712 | (ppc64_sysv_abi_return_value): Ditto. | |
4713 | * ppc-tdep.h (ppc_sysv_abi_return_value): Ditto. | |
4714 | (ppc_sysv_abi_broken_return_value): Ditto. | |
4715 | (ppc64_sysv_abi_return_value): Ditto. | |
4716 | * ppcnbsd-tdep.c (ppcnbsd_return_value): Ditto. | |
4717 | * rs6000-tdep.c (rs6000_return_value): Ditto. | |
4718 | * s390-tdep.c (s390_return_value): Ditto. | |
4719 | * score-tdep.c (score_return_value): Ditto. | |
4720 | * sh-tdep.c (sh_return_value_nofpu): Ditto. | |
4721 | (sh_return_value_fpu): Ditto. | |
4722 | * sh64-tdep.c (sh64_return_value): Ditto. | |
4723 | * sparc-tdep.c (sparc32_return_value): Ditto. | |
4724 | * sparc64-tdep.c (sparc64_return_value): Ditto. | |
4725 | * spu-tdep.c (spu_return_value): Ditto. | |
4726 | * v850-tdep.c (v850_return_value): Ditto. | |
4727 | * vax-tdep.c (vax_return_value): Ditto. | |
4728 | * xstormy16-tdep.c (xstormy16_return_value): Ditto. | |
4729 | * xtensa-tdep.c (xtensa_return_value): Ditto. | |
4730 | ||
4731 | * gdbtypes.h (struct type): Add calling_convention member. | |
4732 | * dwarf2read.c (read_subroutine_type): Add calling convention read | |
4733 | from DW_AT_calling_convention attribute to function type. | |
4734 | ||
9eec4d1e MD |
4735 | 2008-04-22 Markus Deuling <[email protected]> |
4736 | ||
4737 | * eval.c (evaluate_subexp_standard): Use value_subscripted_rvalue for | |
4738 | multi_f77_subscript to support values from registers. | |
4739 | * valarith.c (value_subscripted_rvalue): Remove prototype and static. | |
4740 | * value.h (value_subscripted_rvalue): Add prototype. | |
4741 | ||
4742 | * f-typeprint.c (f_type_print_base): Add support for TYPE_CODE_UNION. | |
4743 | Fix output. | |
4744 | * f-valprint.c (f_val_print): Likewise. | |
4745 | ||
ef72380d CS |
4746 | 2008-04-21 Craig Silverstein <[email protected]> |
4747 | ||
4748 | * dwarf2read.c (zlib_decompress_section): Define abfd in the | |
4749 | !HAVE_ZLIB_H case. | |
4750 | ||
ff8e85c3 PA |
4751 | 2008-04-21 Pedro Alves <[email protected]> |
4752 | ||
4753 | * symfile.c (syms_from_objfile): Don't warn if lowest loadable | |
4754 | section is not a code section. | |
4755 | ||
31fffb02 CS |
4756 | 2008-04-19 Craig Silverstein <[email protected]> |
4757 | ||
4758 | * NEWS: Add information on compressed debug sections. | |
4759 | ||
8e91f023 VP |
4760 | 2008-04-19 Vladimir Prus <[email protected]> |
4761 | ||
4762 | * mi/mi-cmd-var.c (varobj_update_one): Print new | |
4763 | value for variable objects that changed type. | |
4764 | ||
603ba1de VP |
4765 | 2008-04-19 Vladimir Prus <[email protected]> |
4766 | ||
4767 | * varobj.c (varobj_invalidate): Don't touch floating | |
4768 | varobjs. | |
4769 | ||
7fc830e2 MK |
4770 | 2008-04-19 Mark Kettenis <[email protected]> |
4771 | ||
4772 | * symtab.c: (multiple_symbols_modes, multiple_symbols_ask) | |
4773 | (multiple_symbols_cancel): Remove extra const. | |
4774 | * symtab.h: Likewise. | |
4775 | ||
bcbf8b68 NR |
4776 | 2008-04-19 Nick Roberts <[email protected]> |
4777 | ||
4778 | * interps.c (top_level_interpreter): Rename static variable... | |
4779 | (top_level_interpreter_ptr): ...to this. | |
4780 | (top_level_interpreter): New function. | |
4781 | ||
4782 | * interps.h: New extern for top_level_interpreter. | |
4783 | ||
4784 | * linespec.c: Include interps.h and mi/mi-cmds.h. | |
4785 | (decode_line_2): When using MI, always set all breakpoints in menu. | |
4786 | ||
4787 | * Makefile.in (linespec.o, mi-interp.o): Add dependencies. | |
4788 | ||
31fffb02 | 4789 | 2008-04-18 Craig Silverstein <[email protected]> |
233a11ab CS |
4790 | |
4791 | * configure.ac (AC_SEARCH_LIBS): Add check for zlib. | |
4792 | * config.in, configure: Regenerate. | |
4793 | * dwarf2read.c: Include zlib.h if present. | |
4794 | Modified *_SECTION macros. | |
4795 | (section_is_p): New. | |
4796 | (dwarf2_locate_sections): Use section_is_p instead of strcmp | |
4797 | (dwarf2_resize_section): New. | |
4798 | to determine whether a given section has a given name. | |
4799 | (zlib_decompress_section): New. | |
4800 | (dwarf2_read_section): Read the compressed section if present | |
4801 | in the binary. | |
4802 | * MAINTAINERS: Added myself to section Write After Approval. | |
bcbf8b68 | 4803 | |
a03b3a97 TJB |
4804 | 2008-04-18 Thiago Jung Bauermann <[email protected]> |
4805 | ||
4806 | * defs.h (exec_set_section_offsets): Remove prototype. | |
4807 | * exec.c (exec_set_section_offsets): Remove function. | |
4808 | ||
9e386756 JB |
4809 | 2008-04-18 Joel Brobecker <[email protected]> |
4810 | ||
4811 | * stabsread.c (cleanup_undefined_types_1): Add instance flags check | |
4812 | in the search for the matching symbol. | |
4813 | ||
2ec93238 MK |
4814 | 2008-04-17 Marc Khouzam <[email protected]> |
4815 | ||
4816 | * breakpoint.c (update_watchpoint): Always reparse | |
4817 | condition. | |
4818 | ||
e9bbd7c5 JB |
4819 | 2008-04-17 Joel Brobecker <[email protected]> |
4820 | ||
4821 | * breakpoint.c (print_one_breakpoint_location): Make sure to print | |
4822 | the breakpoint address only once. | |
4823 | ||
475bbd17 JB |
4824 | 2008-04-17 Dennis Roberts <[email protected]> |
4825 | ||
4826 | * rs6000-tdep.c (rs6000_gdbarch_init): Use the BFD architecture, | |
4827 | rather than a hard-coded architecture, for xcoff executables. | |
4828 | ||
86991504 DE |
4829 | 2008-04-17 Doug Evans <[email protected]> |
4830 | ||
4584e32e DE |
4831 | * buildsym.c (watch_main_source_file_lossage): New fn. |
4832 | (end_symtab): Call it. | |
4833 | ||
86991504 DE |
4834 | * source.c (find_and_open_source): Add some comments clarifying |
4835 | handling of FULLNAME argument. Make static. Remove pointless | |
4836 | xstrdup/xfree. | |
4837 | ||
0a320680 PA |
4838 | 2008-04-17 Pedro Alves <[email protected]> |
4839 | ||
4840 | * inf-loop.c (inferior_event_handler): Also run the intermediate | |
4841 | continuations in the INF_EXEC_COMPLETE case. | |
4842 | ||
700b53b1 TT |
4843 | 2008-04-16 Tom Tromey <[email protected]> |
4844 | ||
4845 | * cli/cli-decode.h (CMD_ASYNC_OK): New define. | |
4846 | (set_cmd_async_ok, get_cmd_async_ok): Declare. | |
4847 | * cli/cli-decode.c (set_cmd_async_ok): New function. | |
4848 | (get_cmd_async_ok): New function. | |
4849 | * cli/cli-cmds.c (init_cli_cmds): Mark "pwd", "help", "info", and | |
4850 | "show" as async-ok. | |
4851 | * top.c (execute_command): Use get_cmd_async_ok. | |
4852 | * infcmd.c: Include cli/cli-decode.h. | |
4853 | (_initialize_infcmd): Mark "interrupt" as async-ok. | |
4854 | * Makefile.in (infcmd.o): Depend on cli_decode_h. | |
4855 | ||
dacec2a8 DJ |
4856 | 2008-04-16 Daniel Jacobowitz <[email protected]> |
4857 | ||
4858 | PR gdb/2445 | |
4859 | * exec.c: Correct "arch-utils.h" include. | |
4860 | ||
1f906a60 | 4861 | 2008-04-15 Aleksandar Ristovski <[email protected]> |
2cec12e5 AR |
4862 | |
4863 | PR gdb/2424 | |
4864 | * infrun.c (normal_stop) Move breakpoint_auto_delete further down | |
4865 | to allow printing to 'see' real reason of stop. This fixes PR 2424. | |
4866 | * breakpoint.c (bpdisp_texst): New function. The function takes over | |
4867 | the role of bpstats static array in print_one_breakpoint_location. | |
4868 | (print_it_typical): Print "Temporary breakpoint" instead | |
4869 | of just "Breakpoint" when breakpoint is, well, temporary. For mi-like | |
4870 | protocols, print disp field. | |
4871 | (print_one_breakpoint_location): Removed bpdisps static definition. | |
4872 | Call new bpstat_text function to get value for 'disp' field. | |
4873 | (mention): Print "Temporary breakpoint" instead of just "Breakpoint". | |
4874 | ||
4d7b71aa DJ |
4875 | 2008-04-15 Daniel Jacobowitz <[email protected]> |
4876 | ||
4877 | * gnulib/Makefile.am, gnulib/m4/gnulib-cache.m4, | |
4878 | gnulib/aux/link-warning.h, gnulib/extra/link-warning.h: Adjust | |
4879 | by rerunning gnulib-tool with --aux-dir=gnulib/extra. | |
4880 | * gnulib/Makefile.in: Regenerate. | |
4881 | ||
aa11fd3f DJ |
4882 | 2008-04-14 Daniel Jacobowitz <[email protected]> |
4883 | ||
4884 | * Makefile.in (GNULIB_H): New. Trigger all-lib. | |
4885 | (defs_h): Use $(GNULIB_H). | |
4886 | (all-lib): Depend on gnulib/Makefile. | |
4887 | (gnulib/Makefile): Regenerate gnulib/Makefile and gnulib/.deps. | |
4888 | * config.in, gnulib/Makefile.in: Regenerated. | |
4889 | ||
e28b3332 DJ |
4890 | 2008-04-14 Daniel Jacobowitz <[email protected]> |
4891 | ||
4892 | * Makefile.in (LIBGNU, INCGNU): Define. | |
4893 | (INTERNAL_CFLAGS_BASE): Add INCGNU. | |
4894 | (INTERNAL_LIBS, CLIBS, CDEPS): Add LIBGNU. | |
4895 | (CLEANDIRS): New. | |
4896 | ($(LIBGNU), all-lib): New rules. | |
4897 | (clean, distclean, do-maintainer-clean): Use CLEANDIRS. | |
4898 | * configure.ac: Use gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE. | |
4899 | Simplify AC_CONFIG_AUX_DIR. Generate gnulib/Makefile. | |
4900 | * gnulib: New directory, from gnulib-tool. | |
4901 | * configure, aclocal.m4: Regenerated. | |
4902 | ||
e3bc4218 DJ |
4903 | 2008-04-14 Daniel Jacobowitz <[email protected]> |
4904 | ||
4905 | * linux-thread-db.c (have_threads_callback): Check thread->private. | |
4906 | ||
fcacd99f VP |
4907 | 2008-04-13 Nick Roberts <[email protected]> |
4908 | Vladimir Prus <[email protected]> | |
4909 | ||
4910 | Fix @-varobjs. | |
680b56ce AS |
4911 | * varobj.c (value_of_root): Update the expression for |
4912 | floating varobjs. | |
4913 | * mi/mi-cmd-var.c (varobj_update_one): If type has changed, | |
4914 | report that. | |
fcacd99f | 4915 | |
de051565 MK |
4916 | 2008-04-09 Marc Khouzam <[email protected]> |
4917 | ||
4918 | * mi/mi-cmd-var.c: Include "mi-getopt.h". | |
4919 | (mi_parse_format): New. Factored out from mi_cmd_var_set_format. | |
4920 | (mi_cmd_var_set_format): Use new mi_parse_format. | |
4921 | (mi_cmd_var_evaluate_expression): Support for -f option to specify | |
4922 | format. | |
4923 | * Makefile.in (mi-cmd-var.o): Update dependencies. | |
4924 | ||
4925 | * varobj.h (varobj_get_formatted_value): Declare. | |
4926 | * varobj.c (my_value_of_variable): Added format parameter. | |
4927 | (cplus_value_of_variable): Likewise. | |
4928 | (java_value_of_variable): Likewise. | |
4929 | (c_value_of_variable): Likewise. Evaluate expression based | |
4930 | on format parameter. | |
4931 | (struct language_specific): Add format parameter to function member | |
4932 | *value_of_variable. | |
4933 | (varobj_get_formatted_value): New. | |
4934 | (varobj_get_value): Added format parameter to method call. | |
680b56ce | 4935 | |
56953f80 JB |
4936 | 2008-04-08 Joel Brobecker <[email protected]> |
4937 | ||
4938 | * stabsread.c (cleanup_undefined_types_noname): Manually set the | |
4939 | instance flags of the undefined type before calling replace_type. | |
4940 | ||
e4e33b9e VP |
4941 | 2008-04-08 Vladimir Prus <[email protected]> |
4942 | ||
4943 | * target.h (enum strata): Remove the download_stratum. | |
680b56ce | 4944 | |
92b5c263 DE |
4945 | 2008-04-07 Doug Evans <[email protected]> |
4946 | ||
4947 | * buildsym.h (last_source_file): Add dwarf info to comment. | |
4948 | (last_source_start_addr): Ditto. | |
4949 | ||
effa26a9 PA |
4950 | 2008-04-07 Pedro Alves <[email protected]> |
4951 | ||
4952 | * alphanbsd-tdep.c: Include "target.h". | |
4953 | * mn10300-tdep.c: Include "target.h". | |
4954 | * Makefile.in (alphanbsd-tdep.o, mn10300-tdep.o): Update. | |
4955 | ||
2b2d9e11 VP |
4956 | 2008-04-06 Vladimir Prus <[email protected]> |
4957 | ||
4958 | Fix breakpoint condition that use member variables. | |
680b56ce AS |
4959 | * valops.c (check_field): Remove. |
4960 | (check_field_in): Rename to check_field. | |
4961 | (value_of_this): Use la_name_of_this. | |
4962 | * value.h (check_field): Adjust prototype. | |
4963 | ||
4964 | * language.h (la_value_of_this): Rename to la_name_of_this. | |
4965 | * language.c (unknown_language_defn): Specify "this" for | |
4966 | name_of_this. | |
4967 | (auto_language_defn): Likewise. | |
4968 | (local_language_defn): Likewise. | |
4969 | * ada-lang.c (ada_language_defn): Adjust comment. | |
4970 | * c-lang.c (c_language_defn): Adjust comment. | |
4971 | (cplus_language_defn): Specify "this" for name_of_this. | |
4972 | (asm_language_defn): Adjust comment. | |
4973 | (minimal_language_defn): Adjust comment. | |
4974 | * f-lang.c (f_language_defn): Specify NULL for name_of_this. | |
4975 | * jv-lang.c (java_language_defn): Specify "this" for name_of_this. | |
4976 | * m2-lang.c (m2_language_defn): Specify "this" for name_of_this. | |
4977 | * objc-lang.c (objc_language_defn): Specify "self" for | |
4978 | name_of_this. | |
4979 | * p-lang.c (pascal_language_defn): Specify "this" for | |
4980 | name_of_this. | |
4981 | * scm-lang.c (scm_language_defn): Specify NULL for name_of_this. | |
4982 | ||
4983 | * symtab.c (lookup_symbol_aux): Lookup "this" in the | |
4984 | proper scope, and check for field in type of "this", without | |
4985 | trying to create a value. | |
2b2d9e11 | 4986 | |
a13e061a PA |
4987 | 2008-04-04 Pedro Alves <[email protected]> |
4988 | ||
4989 | * mi/mi-cmds.h (enum mi_cmd_result): Delete MI_CMD_ERROR. | |
4990 | (mi_error_message): Delete declaration. | |
4991 | * mi/mi-interp.c (mi_cmd_interpreter_exec): Call error instead of | |
4992 | returning MI_CMD_ERROR. | |
4993 | * mi/mi-main.c (mi_error_message): Delete. | |
4994 | (mi_cmd_exec_interrupt): | |
4995 | (mi_cmd_thread_select, mi_cmd_thread_list_ids) | |
4996 | (mi_cmd_thread_info): Call error instead of returning | |
4997 | MI_CMD_ERROR. | |
4998 | (mi_cmd_data_list_register_values): Call error instead of | |
4999 | returning MI_CMD_ERROR. Adapt to new get_register interface. | |
5000 | (get_register): Change return typo to void. Call error instead of | |
5001 | returning MI_CMD_ERROR. | |
5002 | (mi_cmd_data_write_register_values): Call error instead of | |
5003 | returning MI_CMD_ERROR. | |
5004 | (mi_cmd_list_features): Return MI_CMD_DONE. | |
5005 | (captured_mi_execute_command): Remove MI_CMD_ERROR handling. | |
5006 | (mi_execute_command): Always print exceptions with -error. | |
5007 | ||
aad4b048 JB |
5008 | 2008-04-04 Joel Brobecker <[email protected]> |
5009 | ||
5010 | * NEWS: Mention new commands set/show multiple-symbols. | |
5011 | ||
717d2f5a JB |
5012 | 2008-04-03 Joel Brobecker <[email protected]> |
5013 | ||
5014 | * symtab.c (multiple_symbols_ask, multiple_symbols_all) | |
5015 | (multiple_symbols_cancel): New constants. | |
5016 | (multiple_symbols_modes, multiple_symbols_mode): New static globals. | |
5017 | (multiple_symbols_select_mode): New function. | |
5018 | (_initialize_symtab): Add new set/show multiple-symbols commands. | |
5019 | * symtab.h (multiple_symbols_ask, multiple_symbols_all) | |
5020 | (multiple_symbols_cancel, multiple_symbols_select_mode): Declare. | |
5021 | * ada-lang.c (user_select_syms): Add handling of new multiple-symbols | |
5022 | setting. | |
5023 | * linespec.c (decode_line_2): Likewise. | |
5024 | ||
f73634e5 DE |
5025 | 2008-04-03 Doug Evans <[email protected]> |
5026 | ||
5027 | * symtab.h (enum free_code): Delete free_contents, unused. | |
5028 | * symmisc.c (free_symtab_block): Delete. | |
5029 | (free_symtab, case free_code): Delete. | |
5030 | ||
1f906a60 | 5031 | 2008-04-01 Aleksandar Ristovski <[email protected]> |
6af87b03 AR |
5032 | |
5033 | * valops.c (value_cast_structs): New function. Cast related | |
680b56ce | 5034 | STRUCT types up/down and return cast value. The body of this |
6af87b03 AR |
5035 | function comes mostly from value_cast_pointers. |
5036 | (value_cast_pointers): Code for actual cast STRUCT-STRUCT moved | |
5037 | to value_cast_structs. Now value_cast_pointers needs only create | |
5038 | appropriate reference after using value_cast_structs for actual | |
5039 | casting. | |
5040 | (value_cast): Handle references. | |
5041 | ||
61ad90e1 MK |
5042 | 2008-04-01 Marc Khouzam <[email protected]> |
5043 | ||
5044 | * MAINTAINERS: Added myself to section Write After Approval. | |
5045 | ||
b7d038ae DJ |
5046 | 2008-03-30 Daniel Jacobowitz <[email protected]> |
5047 | ||
5048 | * ia64-tdep.c (examine_prologue): Correct array access. | |
5049 | ||
1f906a60 | 5050 | 2008-03-28 Aleksandar Ristovski <[email protected]> |
c836824f AR |
5051 | |
5052 | * cp-support.c (first_component_command): Return if no arguments. | |
5053 | ||
df3ac606 CD |
5054 | 2008-03-28 Carlos O'Donell <[email protected]> |
5055 | ||
5056 | * ser-mingw.c (ser_windows_open): Open requested name. | |
5057 | ||
ca933485 AR |
5058 | 2008-03-28 Aleksandar Ristovski <[email protected]> |
5059 | ||
5060 | * MAINTAINERS: Added myself. | |
5061 | ||
5f667f2d PA |
5062 | 2008-03-28 Pedro Alves <[email protected]> |
5063 | ||
5064 | * target.c (find_default_run_target): Allow a NULL `do_mesg' | |
5065 | parameter. If it is NULL, don't call error. | |
5066 | (find_default_can_async_p, find_default_is_async_p): Pass NULL as | |
5067 | `do_mesg' parameter to find_default_run_target. If no target was | |
5068 | found, return 0. | |
5069 | ||
e741f4d4 DJ |
5070 | 2008-03-28 Daniel Jacobowitz <[email protected]> |
5071 | ||
5072 | * mips-linux-tdep.c: Update N32/N64 signal frame comments. | |
5073 | (N64_SIGCONTEXT_LO, N64_SIGCONTEXT_PC, N64_SIGCONTEXT_FPCSR): Update. | |
5074 | (N64_SIGCONTEXT_FIR, N64_SIGCONTEXT_CAUSE, N64_SIGCONTEXT_BADVADDR): | |
5075 | Delete. | |
5076 | (mips_linux_n32n64_sigframe_init): Do not record cause or badvaddr. | |
5077 | ||
f66d8205 | 5078 | 2008-03-27 Joel Brobecker <[email protected]> |
5079 | ||
5080 | GDB 6.8 released. | |
5081 | ||
221c031f UW |
5082 | 2008-03-27 Ulrich Weigand <[email protected]> |
5083 | ||
5084 | * features/Makefile (%.dat): Set xmltarget to the base filename | |
5085 | of the XML source, without subdirectory. | |
5086 | * regformats/rs6000/powerpc-32.dat: Regenerate. | |
5087 | * regformats/rs6000/powerpc-64.dat: Regenerate. | |
5088 | * regformats/rs6000/powerpc-e500.dat: Regenerate. | |
5089 | ||
40c58d95 MD |
5090 | 2008-03-27 Markus Deuling <[email protected]> |
5091 | ||
5092 | * xcoffread.c (scan_xcoff_symtab): Replace current_gdbarch by | |
5093 | objfile arch. | |
5094 | ||
bb1ec7d2 NR |
5095 | 2008-03-27 Nick Roberts <[email protected]> |
5096 | ||
5097 | * mi/mi-main.c (enum captured_mi_execute_command_actions): | |
5098 | Spell suppress in EXECUTE_COMMAND_SUPPRESS_PROMPT correctly. | |
5099 | ||
5e2b427d UW |
5100 | 2008-03-26 Ulrich Weigand <[email protected]> |
5101 | ||
5102 | * objfiles.h (struct objfile): New GDBARCH member. | |
5103 | (get_objfile_arch): Add prototype. | |
5104 | * objfiles.c: Include "arch-utils.h". | |
5105 | (allocate_objfile): Look up gdbarch associated with bfd. | |
5106 | (get_objfile_arch): New function. | |
5107 | * Makefile (objfiles.o): Update dependencies. | |
5108 | ||
5109 | * dwarf2-frame.c (decode_frame_entry_1): Replace current_gdbarch | |
5110 | by objfile arch. | |
5111 | * dwarf2loc.c (dwarf_expr_read_reg): Replace current_gdbarch | |
5112 | by frame arch. | |
5113 | (locexpr_describe_location): Replace current_gdbarch by | |
5114 | objfile arch. | |
5115 | * dwarf2read.c (die_type): Replace current_gdbarch by objfile arch. | |
5116 | (dwarf2_add_field): Likewise. | |
5117 | (read_tag_pointer_type): Likewise. | |
5118 | (read_base_type): Likewise. | |
5119 | (new_symbol): Likewise. | |
5120 | ||
5121 | * coffread.c (decode_type): Add OBJFILE argument. Update callers. | |
5122 | (decode_base_type, decode_function_type): Likewise. | |
5123 | (coff_read_struct_type, coff_read_enum_type): Likewise. | |
5124 | (coff_symtab_read): Replace current_gdbarch by objfile arch. | |
5125 | (decode_base_type): Likewise. | |
5126 | (coff_read_enum_type): Likewise. | |
5127 | (coff_read_struct_type): Replace current_objfile by OBJFILE argument. | |
5128 | (coff_read_enum_type): Likewise. | |
5129 | ||
5130 | * dbxread.c (read_dbx_symtab): Replace current_gdbarch by objfile arch. | |
5131 | (end_psymtab): Likewise. | |
5132 | (process_one_symbol): Likewise. | |
5133 | ||
5134 | * mdebugread.c (parse_symbol): Replace current_gdbarch by objfile arch. | |
5135 | (parse_procedure): Likewise. | |
5136 | (parse_partial_symbols): Likewise. | |
5137 | ||
5138 | * somread.c (som_symtab_read): Replace current_gdbarch by objfile arch. | |
5139 | ||
5140 | * stabsread.c (define_symbol): Replace current_gdbarch by objfile arch. | |
5141 | Replace static pcc_promotion_type and pcc_unsigned_promotion_type by | |
5142 | built-in types. | |
5143 | (read_range_type): Replace current_gdbarch by objfile arch. Replace | |
5144 | static range_index_type by built-in type. | |
5145 | (read_one_struct_field): Replace current_gdbarch by objfile arch. | |
5146 | (read_enum_type): Likewise. | |
5147 | ||
5148 | * xcoffread.c (read_xcoff_symtab): Replace current_gdbarch by | |
5149 | objfile arch. | |
5150 | ||
5a413362 VP |
5151 | 2008-03-26 Vladimir Prus <[email protected]> |
5152 | ||
5153 | * varobj.h (varobj_floating_p): Declare. | |
5154 | * varobj.c (varobj_floating_p): New. | |
5155 | * mi/mi-cmd-var.c (mi_cmd_var_update): When passed | |
5156 | '@' as the name, update all floating varobjs. | |
5157 | ||
a5defcdc VP |
5158 | 2008-03-26 Vladimir Prus <[email protected]> |
5159 | ||
5160 | * varobj.c (struct varobj_root): Rename use_selected_frame to | |
5161 | floating, and clarify the meaning. | |
5162 | (varobj_create, varobj_update, new_root_variable): Adjust. | |
5163 | (value_of_root): Don't use type_changed as in variable, | |
5164 | adjust comment. | |
5165 | (c_value_of_root): Adjust. | |
5a413362 | 5166 | |
403fe197 PA |
5167 | 2008-03-25 Pedro Alves <[email protected]> |
5168 | ||
5169 | * linux-nat.c (linux_nat_attach): Add the pid we attached to, to | |
5170 | gdb's thread list. | |
5171 | (linux_nat_wait): Add main lwp to gdb's thread list. | |
5172 | * linux-thread-db.c (find_new_threads_callback): Also attach to | |
5173 | already listed threads which thread_db didn't know about yet. | |
5174 | ||
710151dd PA |
5175 | 2008-03-25 Pedro Alves <[email protected]> |
5176 | ||
5177 | * linux-nat.c (drain_queued_events): Fix comment typo. | |
5178 | (linux_nat_attach): In async mode, don't rely on storing a pending | |
5179 | status. Instead place the wait status on the pipe. | |
5180 | (linux_nat_resume): Remove unreacheable shortcut code in async | |
5181 | mode. | |
5182 | (stop_wait_callback): In async mode, don't store pending status. | |
5183 | Instead, cancel breakpoints or resend the signal appropriatelly. | |
5184 | (cancel_breakpoint): New, refactored from | |
5185 | cancel_breakpoints_callback. | |
5186 | (cancel_breakpoints_callback): Call cancel_breakpoint. | |
5187 | (pipe_to_local_event_queue): Remove special token processing. | |
5188 | (linux_nat_wait): Issue an internal error if a pending status is | |
5189 | found in async mode. | |
5190 | ||
807bddf3 DJ |
5191 | 2008-03-24 Daniel Jacobowitz <[email protected]> |
5192 | ||
5193 | * inflow.c (gdb_has_a_terminal): Guard access to our_process_group. | |
5194 | ||
c5b48eac VP |
5195 | 2008-03-24 Nick Roberts <[email protected]> |
5196 | Vladimir Prus <[email protected]> | |
5197 | ||
680b56ce AS |
5198 | * varobj.c (struct varobj_root): New component thread_id. |
5199 | (varobj_get_thread_id, check_scope): New functions. | |
5200 | (c_value_of_root): Use check_scope. Switch to the | |
c5b48eac VP |
5201 | proper thread if necessary. |
5202 | ||
680b56ce | 5203 | * varobj.h (varobj_get_thread_id): New extern. |
c5b48eac | 5204 | |
680b56ce | 5205 | * mi/mi-cmd-var.c (print_varobj): Add thread-id field. |
c5b48eac | 5206 | |
12f4afab DJ |
5207 | 2008-03-23 Daniel Jacobowitz <[email protected]> |
5208 | ||
5209 | PR gdb/544 | |
5210 | * top.c: Revert 2008-03-21 changes. | |
5211 | ||
6208b47d VP |
5212 | 2008-03-23 Vladimir Prus <[email protected]> |
5213 | ||
5214 | * thread.c (make_cleanup_restore_current_thread): Make it | |
5215 | globally visible. | |
5216 | * gdbthread.h (make_cleanup_restore_current_thread): Declare. | |
5217 | * varobj.c (varobj_update): Don't save/restore frame. | |
5218 | (c_value_of_root): Save/restore thread and frame here, | |
5219 | using make_cleanup_restore_current_thread. | |
5220 | * Makefile.in: Update dependecies. | |
5221 | ||
44a67aa7 VP |
5222 | 2008-03-23 Vladimir Prus <[email protected]> |
5223 | ||
680b56ce AS |
5224 | * varobj.c (struct varobj_root): Clarify |
5225 | comment on the frame field. | |
5226 | (varobj_create): Don't set frame if we have no | |
5227 | block. | |
44a67aa7 | 5228 | |
b562a0cb DJ |
5229 | 2008-03-21 Daniel Jacobowitz <[email protected]> |
5230 | ||
5231 | PR gdb/544 | |
5232 | Suggested by Jan Kratochvil: | |
5233 | * top.c (gdb_rl_operate_and_get_next_completion): Call | |
5234 | rl_redisplay_function. | |
5235 | (gdb_rl_redisplay): New. | |
5236 | (init_main): Set rl_redisplay_function. | |
5237 | ||
ed1bd5f5 JB |
5238 | 2008-03-21 Thomas Mittelstaedt <[email protected]> (tiny change) |
5239 | ||
5240 | * aix-thread.c (pdc_read_regs): Fix compiler warning. | |
5241 | (pdc_write_regs, aix_thread_resume, fetch_regs_kernel_thread) | |
5242 | (store_regs_kernel_thread): Likewise. | |
5243 | ||
b84876c2 PA |
5244 | 2008-03-21 Pedro Alves <[email protected]> |
5245 | ||
5246 | Linux native async support. | |
5247 | ||
5248 | * target.h (struct target_ops): Delete to_async_mask_value and add | |
5249 | to_async_mask. | |
5250 | (target_is_async_p, target_async): Formatting. | |
5251 | (target_async_mask_value): Delete. | |
5252 | (target_async_mask): Delete function declaration, and add new | |
5253 | target macro with the same name. | |
5254 | ||
5255 | * target.c (update_current_target): Replace to_async_mask_value by | |
5256 | to_async_mask. Default to_async_mask to return_one. | |
5257 | (target_async_mask): Delete. | |
5258 | (find_default_can_async_p, find_default_is_async_p): New. | |
5259 | (init_dummy_target): register find_default_can_async_p and | |
5260 | find_default_is_async_p on the dummy target. | |
5261 | ||
5262 | * linux-nat.c: Include inf-loop.h, event-loop.h and event-top.h. | |
5263 | (debug_linux_nat_async): New global. | |
5264 | (show_debug_linux_nat_async): New function. | |
5265 | (linux_nat_async_enabled, linux_nat_async_mask_value) | |
5266 | (linux_nat_event_pipe, linux_nat_num_queued_events) | |
5267 | (linux_nat_async_events_enabled): New globals. | |
5268 | (struct waitpid_result): New struct. | |
5269 | (waitpid_queue): New global. | |
5270 | (queued_waitpid, push_waitpid, drain_queued_events): New. | |
5271 | (my_waitpid): Call queued_waitpid. | |
5272 | (linux_child_follow_fork): Disable async events during the call. | |
5273 | (blocked_mask): Delete. | |
5274 | (sync_sigchld_action, async_sigchld_action): New globals. | |
5275 | (lin_lwp_attach_lwp): In sync mode, don't reblock SIGCHLD. In | |
5276 | async mode, block events during the call. | |
5277 | (linux_nat_create_inferior): New. | |
5278 | (linux_nat_attach): In sync mode, restore the mask states. In | |
5279 | async mode, wake the event loop immediatelly. | |
5280 | (detach_callback): Drain all queued events of the lwp we're | |
5281 | detaching from. | |
5282 | (linux_nat_detach): Block async mode, and drain events of the main | |
5283 | process. | |
5284 | (linux_nat_resume): If in async mode, mask async events during the | |
5285 | call. If short circuiting, force event loop to wake up. If | |
5286 | resuming, set target_executing, and register target events in the | |
5287 | event loop. | |
5288 | (pipe_to_local_event_queue, local_event_queue_to_pipe): New. | |
5289 | (linux_nat_wait): In async mode, block events during the call. | |
5290 | Only enable/disable passing SIGINT to the inferior in sync mode. | |
5291 | Get events from local waitpid queue. If no interesting events was | |
5292 | found, return to events loop. Reregister target events in the | |
5293 | event loop on exit. In sync mode, no need to reblock SIGCHLD. | |
5294 | (linux_nat_kill): Disable events on entry. | |
5295 | (linux_nat_mourn_inferior): In sync mode, don't restore the masks | |
5296 | here. Detach async mode from the event loop if there are no more | |
5297 | forks available, otherwise leave it on. | |
5298 | (sigchld_handler): Assure this is called only in sync mode. | |
5299 | (linux_async_permitted, linux_async_permitted_1): New globals. | |
5300 | (set_maintenance_linux_async_permitted) | |
5301 | (show_maintenance_linux_async_permitted): New functions. | |
5302 | (linux_nat_is_async_p, linux_nat_can_async_p) | |
5303 | (linux_nat_async_mask): New. | |
5304 | (linux_nat_event_pipe_pop, linux_nat_event_pipe_push): New. | |
5305 | (get_pending_events, async_sigchld_handler): New. | |
5306 | (linux_nat_async_events): New. | |
5307 | (async_terminal_is_ours): New global. | |
5308 | (linux_nat_terminal_inferior, linux_nat_terminal_ours): New. | |
5309 | (async_client_callback, async_client_context): New. | |
5310 | (linux_nat_async_file_handler, linux_nat_async) | |
5311 | (linux_nat_disable_async, linux_nat_enable_async): New. | |
5312 | (linux_nat_add_target): Register linux_nat_create_inferior, | |
5313 | linux_nat_can_async_p, linux_nat_is_async_p, linux_nat_async, | |
5314 | linux_nat_async_mask, linux_nat_terminal_inferior and | |
5315 | linux_nat_terminal_ours. | |
5316 | (_initialize_linux_nat): Remove local action variable, and update | |
5317 | code that used it to use sync_sigchld_action. Add new | |
5318 | "lin-lwp-async" debug set/show command. Put the "lin-lwp" debug | |
5319 | set/show command in the maintenance class. Add new "linux-async" | |
5320 | maintenance set/show command. Block SIGCHLD by default. Setup | |
5321 | async_sichld_action, and sync_sigchld_action. Install the default | |
5322 | async mode. | |
5323 | (lin_thread_get_thread_signals): Use a local sigset_t for blocking | |
5324 | the cancel signals. | |
5325 | ||
5326 | * linux-thread-db.c (re_check_for_thread_db): New. | |
5327 | (clear_lwpid_callback): Handle TARGET_WAITKIND_IGNORE. | |
5328 | (thread_db_can_async_p, thread_db_is_async_p, thread_db_async) | |
5329 | (thread_db_async_mask): New. | |
5330 | (init_thread_db_ops): Register thread_db_can_async_p, | |
5331 | thread_db_is_async_p, thread_db_async and thread_db_async_mask. | |
5332 | ||
5333 | * remote.c (remote_async_mask_value): New. | |
5334 | (remote_return_zero): New. | |
5335 | (init_remote_ops): Register remote_return_zero as callbacks of | |
5336 | to_can_async_p and to_is_async_p. | |
5337 | (remote_can_async_p, remote_is_async_p, remote_async): Update to | |
5338 | use remote_async_mask_value. | |
5339 | (remote_async_mask): New. | |
5340 | (init_remote_async_ops): Remove to_async_mask_value setting and | |
5341 | register remote_async_mask as to_async_mask callback in | |
5342 | remote_async_ops. | |
5343 | ||
5344 | * Makefile.in (linux-nat.o): Update. | |
5345 | ||
17faa917 DJ |
5346 | 2008-03-21 Daniel Jacobowitz <[email protected]> |
5347 | ||
5348 | * gdbthread.h (add_thread_with_info): New. | |
5349 | * linux-thread-db.c: Add some documentation. | |
5350 | (GET_LWP, GET_PID, GET_THREAD, is_lwp, is_thread, BUILD_LWP): Delete. | |
5351 | (struct private_thread_info): Remove th_valid and ti_valid. | |
5352 | Replace ti with tid. | |
5353 | (thread_get_info_callback): Do not add TID to the new ptid. Do | |
5354 | not cache th or ti. | |
5355 | (thread_db_map_id2thr, lwp_from_thread): Delete functions. | |
5356 | (thread_from_lwp): Assert that the LWP is set. Do not add TID to the | |
5357 | new PTID. | |
5358 | (attach_thread): Handle an already-existing thread. Use | |
5359 | add_thread_with_info. Cache the th and tid. | |
5360 | (detach_thread): Verify that private was set. Remove verbose | |
5361 | argument and printing. Update caller. | |
5362 | (thread_db_detach): Do not adjust inferior_ptid. | |
5363 | (clear_lwpid_callback, thread_db_resume, thread_db_kill): Delete. | |
5364 | (check_event, find_new_threads_callback): Do not add TID to the new PTID. | |
5365 | (thread_db_wait): Do not use lwp_from_thread. | |
5366 | (thread_db_pid_to_str): Use the cached TID. | |
5367 | (thread_db_extra_thread_info): Check that private is set. | |
5368 | (same_ptid_callback): Delete. | |
5369 | (thread_db_get_thread_local_address): Do not use it or check | |
5370 | is_thread. Check that private is set. Assume that the thread | |
5371 | handle is already cached. | |
5372 | (init_thread_db_ops): Remove to_resume and to_kill. | |
5373 | * thread.c (add_thread_with_info): New. | |
5374 | (add_thread): Use it. | |
5375 | * linux-nat.c (find_thread_from_lwp): Delete. | |
5376 | (exit_lwp): Do not use it. Check print_thread_events. Print before | |
5377 | deleting the thread. | |
5378 | (GET_PID, GET_LWP, BUILD_LWP, is_lwp): Move to... | |
5379 | * linux-nat.h (GET_PID, GET_LWP, BUILD_LWP, is_lwp): ...here. | |
5380 | * inf-ttrace.c (inf_ttrace_wait): Use print_thread_events and | |
5381 | printf_unfiltered for thread exits. | |
5382 | * procfs.c (procfs_wait): Likewise. | |
5383 | ||
6214f497 DJ |
5384 | 2008-03-21 Chris Demetriou <[email protected]> |
5385 | ||
5386 | * symtab.c (rbreak_command): Quote symbol name before passing | |
5387 | it to break_command. | |
5388 | ||
63092375 DJ |
5389 | 2008-03-21 Daniel Jacobowitz <[email protected]> |
5390 | ||
5391 | * eval.c (evaluate_subexp_for_address): Clarify error message. | |
5392 | Use value_must_coerce_to_target. | |
5393 | * infcall.c (value_arg_coerce): Call value_coerce_to_target. | |
5394 | * valops.c (value_assign): Call value_coerce_to_target when | |
5395 | assigning to anything but internalvars. Leave GDB-side arrays | |
5396 | as arrays when assigning to internalvars. | |
5397 | (value_must_coerce_to_target, value_coerce_to_target): New. | |
5398 | (value_coerce_array, value_addr): Call value_coerce_to_target. | |
5399 | (value_array): Create the array in GDB's memory instead of | |
5400 | the inferior's. | |
5401 | * value.h (value_must_coerce_to_target, value_coerce_to_target): | |
5402 | Declare. | |
5403 | ||
b21991b0 DJ |
5404 | 2008-03-21 Daniel Jacobowitz <[email protected]> |
5405 | ||
5406 | * top.c (quit_confirm): Warn that we will kill the program. | |
5407 | ||
49a834f9 PA |
5408 | 2008-03-19 Pedro Alves <[email protected]> |
5409 | ||
5410 | * inflow.c (terminal_ours_1): Guard access to | |
5411 | inferior_process_group with #ifdef PROCESS_GROUP_TYPE. | |
5412 | ||
ae0d2f24 UW |
5413 | 2008-03-18 Ulrich Weigand <[email protected]> |
5414 | Jim Blandy <[email protected]> | |
5415 | Daniel Jacobowitz <[email protected]> | |
5416 | ||
5417 | * dwarf2expr.h (struct dwarf_expr_context): Add ADDR_SIZE member. | |
5418 | (dwarf2_read_address): Update prototype. | |
5419 | ||
5420 | * dwarf2expr.c (unsigned_address_type): Add ADDR_SIZE parameter. | |
5421 | (signed_address_type): Likewise. | |
5422 | (dwarf2_read_address): Replace BYTES_READ parameter with ADDR_SIZE. | |
5423 | (execute_stack_op): Update calls to unsigned_address_type, | |
5424 | signed_address_type and dwarf2_read_address. Fix implementation | |
5425 | of DW_OP_deref_size. | |
5426 | ||
5427 | * dwarf2loc.h (dwarf2_per_cu_objfile): Add prototype. | |
5428 | (dwarf2_per_cu_addr_size): Likewise. | |
5429 | (struct dwarf2_locexpr_baton): Replace OBJFILE with PER_CU. | |
5430 | (struct dwarf2_loclist_baton): Likewise. | |
5431 | ||
5432 | * dwarf2loc.c (find_location_expression): Update calls to | |
5433 | dwarf2_read_address. Use dwarf2_per_cu_objfile and | |
5434 | dwarf2_per_cu_addr_size to retrieve PER_CU parameters. | |
5435 | (locexpr_describe_location): Likewise. | |
5436 | (dwarf2_evaluate_loc_desc): Replace OBJFILE with PER_CU parameter. | |
5437 | Set ctx->addr_size to dwarf2_per_cu_addr_size (per_cu). | |
5438 | (dwarf2_loc_desc_needs_frame): Add PER_CU parameter. Set ctx->addr_size | |
5439 | to dwarf2_per_cu_addr_size (per_cu). | |
5440 | (locexpr_read_variable): Update dwarf2_evaluate_loc_desc call. | |
5441 | (loclist_read_variable): Likewise. | |
5442 | (locexpr_read_needs_frame): Update dwarf2_loc_desc_needs_frame call. | |
5443 | ||
5444 | * dwarf2read.c (dwarf2_symbol_mark_computed): Set baton->per_cu | |
5445 | instead of baton->objfile. | |
5446 | (dwarf2_per_cu_obfile): New function. | |
5447 | (dwarf2_per_cu_addr_size): Likewise. | |
5448 | ||
5449 | * dwarf2-frame.c (struct comp_unit): Move higher. | |
5450 | (struct dwarf2_cie): Add UNIT and ADDR_SIZE members. | |
5451 | (execute_stack_op): Add ADDR_SIZE parameter; set ctx->addr_size. | |
5452 | (execute_cfa_program): Add FDE parameter. Replace EH_FRAME_P | |
5453 | parameter by using fde->eh_frame_p. Use read_encoded_value | |
5454 | to implement DW_CFA_set_loc. | |
5455 | (struct dwarf2_frame_cache): Add ADDR_SIZE member. | |
5456 | (dwarf2_frame_cache): Set cache->addr_size. Update calls to | |
5457 | execute_stack_op and execute_cfa_program. | |
5458 | (dwarf2_frame_prev_register): Update calls to execute_stack_op. | |
5459 | (size_of_encoded_value): Remove. | |
5460 | (read_encoded_value): Add PTR_LEN and FUNC_BASE parameters. | |
5461 | Remove call to size_of_encoded_value. Implement DW_EH_PE_funcrel. | |
5462 | (add_cie): Set cie->unit backlink. | |
5463 | (decode_frame_entry_1): Set cie->addr_size. Update calls to | |
5464 | read_encoded_value. | |
5465 | (dwarf2_build_frame_info): Allocate UNIT on objfile obstack. | |
5466 | ||
1c8201d1 MD |
5467 | 2008-03-17 Markus Deuling <[email protected]> |
5468 | ||
5469 | * i386-tdep.c (i386_print_insn): Remove unnecessary call to | |
5470 | gdbarch_bfd_arch_info. | |
5471 | ||
46bba1ef JB |
5472 | 2008-03-17 Joel Brobecker <[email protected]> |
5473 | ||
5474 | * aix-thread.c (pdc_read_regs): Minor reformatting. | |
5475 | ||
0bcd3e20 VP |
5476 | 2008-03-17 Vladimir Prus <[email protected]> |
5477 | ||
5478 | * thread.c (print_thread_info): Don't insist | |
5479 | on having current thread if there are no | |
5480 | threads at all. | |
5481 | ||
9356cf8d PA |
5482 | 2008-03-17 Pedro Alves <[email protected]> |
5483 | ||
5484 | * infcmd.c (attach_command_post_wait) | |
5485 | (attach_command_continuation): New. | |
5486 | (attach_command): Support background async execution, and async | |
5487 | execution in synchronous mode. | |
5488 | ||
5c3ce3f7 DJ |
5489 | 2008-03-17 Daniel Jacobowitz <[email protected]> |
5490 | ||
5491 | * stack.c (print_stack_frame, print_frame): Use RETURN_MASK_ERROR. | |
5492 | * symmisc.c (dump_symtab_1): Likewise. | |
5493 | * wrapper.c (gdb_value_struct_elt): Likewise. | |
5494 | ||
fa2c6a57 PA |
5495 | 2008-03-17 Pedro Alves <[email protected]> |
5496 | ||
5497 | * linux-nat.c (linux_nat_filter_event): Fix comment typo. | |
5498 | ||
02f3fc28 PA |
5499 | 2008-03-17 Pedro Alves <[email protected]> |
5500 | ||
5501 | * linux-nat.c (linux_nat_filter_event): New, refactored from | |
5502 | linux_nat_wait. | |
5503 | (linux_nat_wait): Call linux_nat_filter_event. | |
5504 | ||
2f77b315 UW |
5505 | 2008-03-17 Ulrich Weigand <[email protected]> |
5506 | ||
5507 | * top.c (execute_command): Fix uninitialized variable error. | |
5508 | ||
f01be29b NH |
5509 | 2008-03-16 Nick Hudson <[email protected]> |
5510 | ||
680b56ce AS |
5511 | * Makefile.in (amd64nbsd-nat.o): New dependency. |
5512 | * amd64nbsd-nat.c: Include "nbsd-nat.h". | |
5513 | (_initialize_amd64nbsd_nat): Update target vector to use | |
5514 | nbsd_pid_to_exec_file. | |
5515 | * config/i386/nbsd64.mh (NATDEPFILES): Add nbsd-nat.o. | |
f01be29b | 5516 | |
6cf32704 VP |
5517 | 2008-03-15 Vladimir Prus <[email protected]> |
5518 | ||
5519 | Remove ignoring leading exec events code. | |
680b56ce AS |
5520 | * fork-child.c (startup_inferior): Do not set |
5521 | inferior_ignoring_leading_exec_events. | |
5522 | * inf-child.c (inf_child_reported_exec_events_per_exec_call): Remove. | |
5523 | (inf_child_target): Do not set to_reported_exec_events_per_exec_call. | |
5524 | * infrun.c (inferior_ignoring_leading_exec_events): Remove. | |
5525 | (handle_inferior_event): Remove code for ignoring leading exec | |
5526 | events. | |
5527 | * target.c (update_current_target): Do not inherit, or default, | |
5528 | to_reported_exec_events_per_exec_call. | |
5529 | (debug_to_reported_exec_events_per_exec_call): Remove. | |
5530 | (setup_target_debug): Do not set to_reported_exec_events_per_exec_call. | |
5531 | * target.h (target_reported_exec_events_per_exec_call): Remove. | |
5532 | (struct target): Remove the to_reported_exec_events_per_exec_call | |
5533 | field. | |
6cf32704 | 5534 | |
8e8901c5 VP |
5535 | 2008-03-15 Vladimir Prus <[email protected]> |
5536 | ||
5537 | Implement -thread-info. | |
680b56ce | 5538 | * gdbthread.h (print_thread_info): Declare. |
8e8901c5 | 5539 | |
680b56ce AS |
5540 | * thread.c (print_thread_info): New, extracted |
5541 | from info_threads_command and adjusted to | |
5542 | work for CLI and MI. | |
5543 | (info_threads_command): Use print_thread_info. | |
8e8901c5 VP |
5544 | * Makefile.in: Update dependencies. |
5545 | ||
680b56ce AS |
5546 | * mi/mi-cmds.c (mi_cmds): Specify a handler |
5547 | for -thread-info. | |
5548 | * mi/mi-cmds.h (mi_cmd_thread_info): Declare. | |
5549 | * mi/mi-main.c (mi_cmd_thread_info): New. | |
5550 | (mi_cmd_list_features): Include 'thread-info'. | |
8e8901c5 | 5551 | |
7d1e6fb8 KB |
5552 | 2008-03-14 Kevin Buettner <[email protected]> |
5553 | ||
5554 | * mips-tdep.c (mips32_scan_prologue): Use the ABI register size | |
5555 | to decide whether to match instruction patterns using "sw" and "sd". | |
5556 | ||
89113898 PA |
5557 | 2008-03-14 Pedro Alves <[email protected]> |
5558 | ||
5559 | * infcmd.c (jump_command): Postpone disabling stdin until after | |
5560 | the possible query. | |
5561 | ||
64a0ac84 PA |
5562 | 2008-03-14 Pedro Alves <[email protected]> |
5563 | ||
5564 | * inflow.c (gdb_getpgrp): New. | |
5565 | (gdb_has_a_terminal): Use get_getpgrp. | |
5566 | (terminal_ours_1): If attach_flag is set, don't refetch | |
5567 | inferior_process_group. | |
5568 | ||
1fddbabb PA |
5569 | 2008-03-14 Pedro Alves <[email protected]> |
5570 | ||
5571 | * features/library-list.dtd: Allow "section" elements as children | |
5572 | of "library". Add "section" element and describe its attributes. | |
5573 | ||
5574 | * solib-target.c (struct lm_info): Add section_bases member. | |
5575 | (library_list_start_segment): Error out if seen a section element. | |
5576 | (library_list_start_section): New. | |
5577 | (library_list_end_library): New. | |
5578 | (solib_target_free_library_list): Free section_bases. | |
5579 | (section_attributes): New. | |
5580 | (library_children): Make "segment" optional. Add "section" child. | |
5581 | (library_list_children): Register library_list_end_library. | |
5582 | (solib_target_relocate_section_addresses): Handle section bases. | |
5583 | ||
5584 | * NEWS: Mention new qXfer:libraries:read section offsets support. | |
5585 | ||
712af3be VP |
5586 | 2008-03-14 Vladimir Prus <[email protected]> |
5587 | ||
5588 | * defs.h (do_exec_error_cleanups, discard_exec_error_cleanups) | |
5589 | (make_exec_error_cleanup): Remove declarations. | |
5590 | * utils.c (exec_error_cleanup_chain): Remove. | |
5591 | (do_exec_error_cleanups, discard_exec_error_cleanups) | |
5592 | (make_exec_error_cleanup): Remove. | |
5593 | * event-loop.c (start_event_loop): Adjust call to | |
5594 | async_enable_stdin. | |
5595 | * event-top.c (async_enable_stdin): Remove the paramater dummy. | |
5596 | (async_disable_stdin): Don't register async_enable_stdin via | |
5597 | cleanup. | |
5598 | * inf-loop.c (inferior_event_handler): Don't | |
5599 | call do_exec_error_cleanups. Call async_enable_stdin instead. | |
5600 | * event-loop.c (start_event_loop): Adjust call to | |
5601 | async_enable_stdin. | |
5602 | * tui/tui-interp.c (tui_command_loop): Adjust call to | |
5603 | async_enable_stdin. | |
5604 | ||
32c1e744 VP |
5605 | 2008-03-14 Vladimir Prus <[email protected]> |
5606 | ||
5607 | Async mode fixes. | |
680b56ce AS |
5608 | * Makefile.in (infcmd.o, inf-loop.o): Update dependencies. |
5609 | * breakpoint.c (bpstat_do_actions): In async mode, | |
5610 | don't jump to top expecting stop_bpstat to be already | |
5611 | updated. | |
5612 | * event-loop.c (start_event_loop): Call async_enable_stdin | |
5613 | on exception. | |
5614 | * event-top.c (async_enable_stdin): Do nothing if sync_execution | |
5615 | is not set. | |
5616 | (command_handler): Do not setup continuation here. | |
5617 | (command_line_handler_continuation): Move to... | |
5618 | * top.c (command_line_handler_continuation): ... here. | |
5619 | (execute_command): In async mode, register continuation. | |
5620 | Don't check frame's language in running in async mode. | |
5621 | * exceptions.c (throw_exception): Don't do exec_error_cleanups. | |
5622 | * inf-loop.c (complete_execution): Inline into... | |
5623 | (inferior_event_handler): ... here. Clear target_executing before | |
5624 | doing any cleanups. Don't try to show prompt if the target was | |
5625 | resumed. | |
5626 | * infcmd.c (signal_command): Add support for async mode. | |
5627 | (finish_command): Only add continuation if the target was | |
5628 | successfully resumed. | |
5629 | * remote.c (init_async_opts): Register to_get_thread_local_address | |
5630 | handler. | |
5631 | * mi/mi-interp.c (mi_cmd_interpreter_exec): Don't mess | |
5632 | with sync_execution. | |
5633 | * tui/tui-interp.c (tui_command_loop): Call async_enable_stdin | |
5634 | on exception. | |
32c1e744 | 5635 | |
c04ea773 DJ |
5636 | 2008-03-14 Daniel Jacobowitz <[email protected]> |
5637 | ||
5638 | * corefile.c (reopen_exec_file): Use exec_bfd_mtime. | |
5639 | * exec.c (exec_bfd_mtime): Define. | |
5640 | (exec_close): Clear it. | |
5641 | (exec_file_attach): Set it. | |
5642 | * gdbcore.h (exec_bfd_mtime): Declare. | |
5643 | * source.c (find_source_lines): Do not use bfd_get_mtime. | |
5644 | ||
952dc227 VP |
5645 | 2008-03-14 Vladimir Prus <[email protected]> |
5646 | ||
5647 | * top.c (simplified_command_loop): Remove. | |
5648 | ||
4cf46804 VP |
5649 | 2008-03-14 Vladimir Prus <[email protected]> |
5650 | ||
5651 | Remove unused remote.c hooks. | |
680b56ce AS |
5652 | * remote.c (deprecated_target_resume_hook) |
5653 | (deprecated_target_wait_loop_hook): Remove. | |
5654 | (remote_resume): Do not call deprecated_target_resume_hook. | |
5655 | (remote_wait): Do not call deprecated_target_wait_loop_hook. | |
5656 | (remote_async_wait): Likewise. | |
4cf46804 | 5657 | |
683f2885 VP |
5658 | 2008-03-14 Vladimir Prus <[email protected]> |
5659 | ||
5660 | Implement MI notification for new threads. | |
680b56ce AS |
5661 | * doc/observer.texi (new_thread): Document. |
5662 | * observer.sh: Forward declare struct thread_info. | |
5663 | * thread.c (add_thread): Notify observer. | |
5664 | ||
5665 | * interps.h (interp_init_ftype): New parameter | |
5666 | top_level. | |
5667 | (interp_set): Likewise. | |
5668 | (top_level_interpreter_data): Declare. | |
5669 | * interps.c (interp_set): New parameter top_level. | |
5670 | Pass it to interpreter's init function. Remember | |
5671 | top level interpreter. | |
5672 | (interpreter_exec_cmd): Adjust. | |
5673 | (top_level_interpreter_data): New. | |
5674 | * main.c (captured_main): Pass 1 for top_level | |
5675 | parameter of interp_set. | |
683f2885 | 5676 | * cli/cli-interp.c (cli_interpreter_init): New |
680b56ce AS |
5677 | parameter top_level. |
5678 | * tui/tui-interp.c (tui_init): New parameter top_level. | |
683f2885 | 5679 | |
680b56ce AS |
5680 | * mi/mi-interp.c (mi_new_thread): New. |
5681 | (mi_interpreter_init): If top level, register | |
5682 | observer for new threads. | |
683f2885 | 5683 | |
680b56ce | 5684 | * Makefile.in (mi-interp.o, thread.o): Update dependencies. |
683f2885 | 5685 | |
ff9b3928 PA |
5686 | 2008-03-14 Pedro Alves <[email protected]> |
5687 | ||
5688 | * top.c (execute_command): Disable break and stop | |
5689 | commands in async mode. | |
5690 | ||
b18392ef PA |
5691 | 2008-03-14 Pedro Alves <[email protected]> |
5692 | ||
5693 | revert: | |
5694 | 2008-03-14 Pedro Alves <[email protected]> | |
5695 | * inf-loop.c (inferior_event_handler): Don't include remote.h. | |
5696 | Call target_stop in the INF_QUIT_REQ case. | |
5697 | * Makefile.in (inf-loop.o): Update. | |
5698 | ||
0aca9f07 PA |
5699 | 2008-03-14 Pedro Alves <[email protected]> |
5700 | ||
5701 | * inf-loop.c (inferior_event_handler): Don't include remote.h. | |
5702 | Call target_stop in the INF_QUIT_REQ case. | |
5703 | * Makefile.in (inf-loop.o): Update. | |
5704 | ||
0b4e556c PA |
5705 | 2008-03-14 Pedro Alves <[email protected]> |
5706 | ||
5707 | * top.c (execute_command): Enable break, info and interrupt | |
5708 | commands in async mode. | |
5709 | ||
8defab1a DJ |
5710 | 2008-03-13 Vladimir Prus <[email protected]> |
5711 | Daniel Jacobowitz <[email protected]> | |
5712 | ||
5713 | * breakpoint.h (breakpoint_restore_shadows): New | |
5714 | declaration. | |
5715 | * breakpoint.c (breakpoint_restore_shadows): New. | |
5716 | (read_memory_nobpt): Delete. | |
5717 | * gdbcore.h (read_memory_nobpt): Delete declaration. | |
5718 | * target.c (memory_xfer_partial): Call | |
5719 | breakpoint_restore_shadows. | |
5720 | (restore_show_memory_breakpoints) | |
5721 | (make_show_memory_beakpoints_cleanup): New. | |
5722 | (show_memory_breakpoints): New. | |
5723 | * target.h (make_show_memory_beakpoints_cleanup): Declare. | |
5724 | * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): | |
5725 | Make sure we see memory breakpoints when checking if | |
5726 | breakpoint is still there. | |
5727 | * alpha-tdep.c, alphanbsd-tdep.c, frame.c, frv-tdep.c, | |
5728 | hppa-linux-tdep.c, hppa-tdep.c, i386-linux-nat.c, i386-tdep.c, | |
5729 | m68klinux-tdep.c, mips-tdep.c, mn10300-tdep.c, s390-tdep.c, | |
5730 | sparc-tdep.c: Use target_read_memory instead of read_memory_nobpt. | |
5731 | ||
fd532e2e PA |
5732 | 2008-03-12 Pedro Alves <[email protected]> |
5733 | ||
5734 | * thread.c (add_thread): Use printf_unfiltered to print. | |
5735 | ||
f749779f | 5736 | 2008-03-12 Joel Brobecker <[email protected]> |
965b60ee JB |
5737 | |
5738 | * sol-thread.c: Replace use of TM_I386SOL2_H by an expression | |
5739 | that is true only on x86-solaris and x86_64-solaris. | |
5740 | * procfs.c: Likewise. Move procfs_find_LDT_entry up together | |
5741 | with proc_get_LDT_entry. | |
5742 | ||
5743 | 2008-03-12 Thiago Jung Bauermann <[email protected]> | |
83116857 TJB |
5744 | |
5745 | * configure.ac (AC_CHECK_FUNCS): Add check for setsid. | |
5746 | * config.in, configure: Regenerate. | |
5747 | * fork-child.c (fork_inferior): Call create_tty_session. | |
5748 | * inflow.c (new_tty): Set controlling terminal with TIOCSCTTY. | |
5749 | (create_tty_session): New function. | |
5750 | * terminal.h: Declare create_tty_session. | |
5751 | ||
4fbb74a6 AM |
5752 | 2008-03-12 Alan Modra <[email protected]> |
5753 | ||
5754 | PR 5900 | |
5755 | * elfread.c (elf_symtab_read): Make shndx an unsigned int. | |
5756 | * mipsread.c: Include elf/internal.h. | |
5757 | (read_alphacoff_dynamic_symtab): Map external reserved sym_shndx | |
5758 | to internal range. | |
5759 | ||
20a6ec49 MD |
5760 | 2008-03-11 Markus Deuling <[email protected]> |
5761 | ||
5762 | * win32-nat.c (do_win32_fetch_inferior_registers): Use get_regcache_arch | |
5763 | to get at the current architecture and at the target specific vector. | |
5764 | Add target specific vector to I387_FISEG_REGNUM and I387_FOP_REGNUM and | |
5765 | remove define of I387_ST0_REGNUM. | |
5766 | ||
5767 | * amd64-tdep.c (I387_ST0_REGNUM): Remove define. | |
5768 | ||
5769 | (amd64_supply_fxsave, amd64_collect_fxsave): Use get_regcache_arch to | |
5770 | get at the current architecture | |
5771 | (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Add target specific vector as | |
5772 | parameter. | |
5773 | ||
5774 | * i386-tdep.c: Remove various define's and undef's of I387_ST0_REGNUM, | |
5775 | I387_NUM_XMM_REGS and I387_MM0_REGNUM. | |
5776 | ||
5777 | (I387_NUM_XMM_REGS, I387_XMM0_REGNUM, I387_MXCSR_REGNUM, | |
5778 | I387_ST0_REGNUM, I387_FCTRL_REGNUM, I387_MM0_REGNUM, | |
5779 | (I387_FSTAT_REGNUM): Add target specific vector as parameter. | |
5780 | ||
5781 | (i386_register_name, i386_dbx_reg_to_regnum): Use gdbarch_tdep to get | |
5782 | at the target specific vector. | |
5783 | ||
5784 | (i386_get_longjmp_target): Use get_frame_arch to get at the current | |
5785 | architecture. Use gdbarch_tdep to get at the target specific vector. | |
5786 | ||
5787 | (i386_fp_regnum_p, i386_fpc_regnum_p): Add gdbarch as parameter and | |
5788 | update caller. Use gdbarch_tdep to get at the target specific vector. | |
5789 | ||
5790 | (i386_register_to_value: Use get_frame_arch to get at the current | |
5791 | architecture. | |
5792 | ||
5793 | * i386-tdep.h (i386_fp_regnum_p, i386_fpc_regnum_p): Add gdbarch as | |
5794 | parameter. | |
5795 | ||
5796 | * i387-tdep.c (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM, I387_FTAG_REGNUM, | |
5797 | I387_FISEG_REGNUM, I387_FIOFF_REGNUM, I387_FOSEG_REGNUM | |
5798 | I387_FOOFF_REGNUM, I387_FOP_REGNUM, I387_ST0_REGNUM, FSAVE_ADDR, | |
5799 | FXSAVE_ADDR, I387_XMM0_REGNUM): Add target specific vector as parameter. | |
5800 | ||
5801 | (I387_ST0_REGNUM, I387_NUM_XMM_REGS): Remove various define's and | |
5802 | undef's. | |
5803 | ||
5804 | (i387_convert_register_p, i387_register_to_value, | |
5805 | i387_value_to_register): Update call for i386_fp_regnum_p. | |
5806 | ||
5807 | * i387-tdep.h: Remove comment. | |
5808 | (I387_ST0_REGNUM, I387_NUM_XMM_REGS, I387_MM0_REGNUM): Add define. | |
5809 | (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM, I387_FTAG_REGNUM, | |
5810 | I387_FISEG_REGNUM, I387_FIOFF_REGNUM, I387_FOSEG_REGNUM, | |
5811 | I387_FOOFF_REGNUM, I387_FOP_REGNUM, I387_XMM0_REGNUM, | |
5812 | I387_MXCSR_REGNUM): Add target specific vector as parameter. | |
5813 | ||
ccd213ac DJ |
5814 | 2008-03-10 Daniel Jacobowitz <[email protected]> |
5815 | ||
5816 | * Makefile.in (fork-child.o): Update. | |
5817 | * NEWS: Document "set exec-wrapper" and the gdbserver --wrapper | |
5818 | argument. Gather all gdbserver features together. | |
5819 | * fork-child.c (exec_wrapper): New variable. | |
5820 | (fork_inferior): Use it. | |
5821 | (startup_inferior): Skip an extra trap if using "set exec-wrapper". | |
5822 | (unset_exec_wrapper_command, _initialize_fork_child): New. | |
5823 | ||
5824 | 2008-03-10 Hidetaka Takano <[email protected]> | |
80618b99 MS |
5825 | |
5826 | * source.c (directory_command): Modify the determination of | |
5827 | condition of terminal "from_tty". | |
5828 | ||
22566fbd DJ |
5829 | 2008-03-10 Matt Rice <[email protected]> |
5830 | ||
5831 | * dwarf2read.c (set_cu_language): Add DW_LANG_ObjC. | |
5832 | ||
9971ac47 UW |
5833 | 2008-03-10 Hidetaka Takano <[email protected]> |
5834 | ||
5835 | * spu-tdep.c (info_spu_event_command): Insert a '\0' to the end | |
5836 | of the data passing to strtoulst function. | |
5837 | (info_spu_signal_command): Likewise. | |
5838 | ||
835670cf VP |
5839 | 2008-03-08 Vladimir Prus <[email protected]> |
5840 | ||
5841 | * mi/mi-interp.c (mi_command_loop): Remove | |
5842 | commented-out code. | |
680b56ce | 5843 | |
be86555c JB |
5844 | 2008-03-07 Joel Brobecker <[email protected]> |
5845 | ||
5846 | * remote.c (extended_remote_attach_1): Make local variable pid an int | |
5847 | instead of a pid_t. | |
5848 | ||
4d7b2d5b JB |
5849 | 2008-03-07 Joel Brobecker <[email protected]> |
5850 | ||
5851 | * solib-svr4.c (svr4_same_1): New function, originally extracted | |
5852 | from svr4_same and expanded to handle the sparc64 case. | |
5853 | (svr4_same): Move up and reimplement using svr4_same_1. | |
5854 | (enable_break): Use svr4_same_1 to do shared library name comparisons. | |
5855 | ||
61fed90e RR |
5856 | 2008-03-07 Ramana Radhakrishnan <[email protected]> |
5857 | ||
5858 | * MAINTAINERS: Move self to Paper trail. | |
5859 | ||
b803fb0f DJ |
5860 | 2008-03-05 Daniel Jacobowitz <[email protected]> |
5861 | ||
5862 | * Makefile.in (mingw-hdep.o, posix-hdep.o, remote-fileio.o): Update. | |
5863 | * event-loop.c (call_async_signal_handler): New. | |
5864 | * event-loop.h (call_async_signal_handler) | |
5865 | (gdb_call_async_signal_handler): Declare. | |
5866 | (mark_async_signal_handler): Add comments. | |
5867 | * event-top.c (handle_sigint): Use gdb_call_async_signal_handler. | |
5868 | * mingw-hdep.c (sigint_event, sigint_handler): New. | |
5869 | (gdb_select): Use them. Wait for the readline signal handler | |
5870 | to finish. | |
5871 | (gdb_call_async_signal_handler, _initialize_mingw_hdep): New functions. | |
5872 | * posix-hdep.c (gdb_call_async_signal_handler): New function. | |
5873 | * remote-fileio.c (sigint_fileio_token, async_remote_fileio_interrupt): | |
5874 | New. | |
5875 | (remote_fileio_ctrl_c_signal_handler): Use | |
5876 | gdb_call_async_signal_handler. | |
5877 | (initialize_remote_fileio): Initialize sigint_fileio_token. | |
5878 | * remote.c (initialize_sigint_signal_handler, handle_remote_sigint): Do | |
5879 | not initialize tokens here. | |
5880 | (handle_remote_sigint_twice): Likewise. Reinstall | |
5881 | handle_remote_sigint. | |
5882 | (async_remote_interrupt_twice): Just call interrupt_query. | |
5883 | (cleanup_sigint_signal_handler): Do not delete tokens. | |
5884 | (remote_interrupt, remote_interrupt_twice): Use | |
5885 | gdb_call_async_signal_handler. | |
5886 | (interrupt_query): Reinstall the default signal handler. | |
5887 | (_initialize_remote): Initialize tokens here. | |
5888 | ||
8f4d54ed JB |
5889 | 2008-03-04 Joel Brobecker <[email protected]> |
5890 | ||
5891 | * features/rs6000/power-core.xml, features/rs6000/power64-core.xml, | |
5892 | features/rs6000/powerpc-601.xml, features/rs6000/rs6000.xml: | |
5893 | Change the type of the lr register to code_ptr. | |
5894 | * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c, | |
5895 | features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c, | |
5896 | features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c, | |
5897 | features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c, | |
5898 | features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c, | |
5899 | features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c, | |
5900 | features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c: Regenerate. | |
5901 | ||
95ece428 JW |
5902 | 2008-03-03 James E. Wilson <[email protected]> |
5903 | ||
5904 | * MAINTAINERS: Update my email address. | |
5905 | ||
686a5eed KS |
5906 | 2008-03-03 Keith Seitz <[email protected]> |
5907 | ||
5908 | From Dave Murphy <[email protected]>: | |
5909 | * configure.ac: Set tcl configdir to win under mingw. | |
5910 | * configure: Regenerate. | |
5911 | ||
fa4727a6 DJ |
5912 | 2008-03-03 Daniel Jacobowitz <[email protected]> |
5913 | ||
5914 | * breakpoint.c (fetch_watchpoint_value): New function. | |
5915 | (update_watchpoint): Set and clear val_valid. Use | |
5916 | fetch_watchpoint_value. Handle unreadable values on the | |
5917 | value chain. Correct check for user-requested array watchpoints. | |
5918 | (breakpoint_init_inferior): Clear val_valid. | |
5919 | (watchpoint_value_print): New function. | |
5920 | (print_it_typical): Use it. Do not free or clear old_val. Print | |
5921 | watchpoints even if old_val == NULL. | |
5922 | (watchpoint_check): Use fetch_watchpoint_value. Check for values | |
5923 | becoming readable or unreadable. | |
5924 | (watch_command_1): Use fetch_watchpoint_value. Set val_valid. | |
5925 | (do_enable_watchpoint): Likewise. | |
5926 | * breakpoint.h (struct breakpoint): Update comment for val. Add | |
5927 | val_valid. | |
5928 | * NEWS: Mention watchpoints on inaccessible memory. | |
5929 | ||
c03374d5 DJ |
5930 | 2007-02-29 Daniel Jacobowitz <[email protected]> |
5931 | ||
5932 | * Makefile.in (i386-nat.o): Update. | |
5933 | * amd64-linux-nat.c (_initialize_amd64_linux_nat): Call | |
5934 | i386_use_watchpoints. | |
5935 | * i386-linux-nat.c (_initialize_i386_linux_nat): Call | |
5936 | i386_use_watchpoints. | |
5937 | * i386-nat.c (i386_stopped_data_address): Take two arguments. | |
5938 | (i386_stopped_by_watchpoint): Update call. | |
5939 | (i386_can_use_hw_breakpoint, i386_use_watchpoints): New. | |
5940 | * config/i386/nm-i386.h: Conditionalize definitions on | |
5941 | ! I386_WATCHPOINTS_IN_TARGET_VECTOR. | |
5942 | (i386_use_watchpoints): Declare. | |
5943 | (i386_stopped_data_address): Update. | |
5944 | * config/i386/nm-linux.h (I386_WATCHPOINTS_IN_TARGET_VECTOR): Define. | |
5945 | * config/i386/nm-linux64.h (I386_WATCHPOINTS_IN_TARGET_VECTOR): Define. | |
5946 | ||
c24d7425 | 5947 | 2008-02-29 Joel Brobecker <[email protected]> |
5948 | ||
5949 | GDB 6.8 branch created (branch timestamp: 2008-02-26 10:00 UTC) | |
5950 | * version.in: Bump version to 6.8.50.20080229-cvs. | |
5951 | ||
a7dfd010 MD |
5952 | 2008-02-28 Markus Deuling <[email protected]> |
5953 | ||
5954 | * f-typeprint.c (f_print_type): Handle NULL pointer in VARSTRING | |
5955 | properly. | |
5956 | ||
258c00cc TT |
5957 | 2008-02-28 Tom Tromey <[email protected]> |
5958 | ||
5959 | * infcmd.c (notice_args_read): Print result of get_inferior_args. | |
5960 | ||
8edfe269 DJ |
5961 | 2008-02-28 Daniel Jacobowitz <[email protected]> |
5962 | ||
5963 | * infcmd.c (kill_if_already_running): Make static. Use | |
5964 | target_require_runnable. | |
5965 | * target.c (target_require_runnable): New. | |
5966 | * target.h (target_require_runnable): Declare. | |
5967 | ||
0d6ba1b1 DJ |
5968 | 2008-02-28 Daniel Jacobowitz <[email protected]> |
5969 | ||
5970 | * frame.c (reinit_frame_cache): Only annotate if frames were | |
5971 | previously valid. | |
5972 | ||
6fe305f7 UW |
5973 | 2008-02-28 Ulrich Weigand <[email protected]> |
5974 | ||
5975 | * regformats/reg-ppc.dat: Rename "ps" to "msr". | |
5976 | * regformats/reg-ppc64.dat: Likewise. | |
5977 | ||
9b4b61c8 UW |
5978 | 2008-02-28 Ulrich Weigand <[email protected]> |
5979 | ||
5980 | * features/Makefile (%.dat): Emit xmltarget statement. | |
5981 | ||
5982 | * regformats/regdat.sh: Support xmltarget and xmlarch statments. | |
5983 | Generate code to set gdbserver_xmltarget in init_registers_${name}. | |
5984 | ||
5985 | * regformats/arm-with-iwmmxt.dat: Regenerate. | |
5986 | * regformats/mips64-linux.dat: Regenerate. | |
5987 | * regformats/mips-linux.dat: Regenerate. | |
5988 | * regformats/rs6000/powerpc-32.dat: Regenerate. | |
5989 | * regformats/rs6000/powerpc-64.dat: Regenerate. | |
5990 | * regformats/rs6000/powerpc-e500.dat: Regenerate. | |
5991 | ||
5992 | * regformats/reg-arm.dat: Add xmlarch statement. | |
5993 | * regformats/reg-i386.dat: Likewise. | |
5994 | * regformats/reg-i386-linux.dat: Likewise. | |
5995 | * regformats/reg-x86-64-linux.dat: Likewise. | |
5996 | * regformats/reg-spu.dat: Likewise. | |
5997 | ||
20b4711e DJ |
5998 | 2008-02-27 Daniel Jacobowitz <[email protected]> |
5999 | ||
6000 | * remote.c (remote_wait, remote_async_wait): Stop if we receive | |
6001 | an error. | |
6002 | ||
1843f87b DJ |
6003 | 2008-02-27 Daniel Jacobowitz <[email protected]> |
6004 | ||
6005 | * utils.c (debug_timestamp): New. | |
6006 | (vfprintf_unfiltered): Print timestamps if requested. | |
6007 | (show_debug_timestamp): New. | |
6008 | (initialize_utils): Register "set debug timestamp". | |
6009 | * NEWS: Mention "set debug timestamp". Add GDB 6.8 section. | |
6010 | ||
6a048695 JB |
6011 | 2008-02-27 Joel Brobecker <[email protected]> |
6012 | ||
6013 | * breakpoint.c (skip_prologue_sal): New function. | |
6014 | (resolve_sal_pc): Adjust SAL past prologue if the SAL was | |
6015 | computed from a line number. | |
6016 | ||
0b998f49 JB |
6017 | 2008-02-27 Joel Brobecker <[email protected]> |
6018 | ||
6019 | * features/rs6000/power-core.xml, features/rs6000/power64-core.xml | |
6020 | features/rs6000/powerpc-601.xml, features/rs6000/rs6000.xml: | |
6021 | Set PC register type to "code_ptr". | |
6022 | * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c, | |
6023 | features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c, | |
6024 | features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c, | |
6025 | features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c, | |
6026 | features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c, | |
6027 | features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c, | |
6028 | features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c: | |
6029 | Regenerate. | |
6030 | ||
d05b4ac3 UW |
6031 | 2008-02-27 Ulrich Weigand <[email protected]> |
6032 | ||
6033 | * regformats/regdat.sh: Rename init_registers function in | |
6034 | generated file to init_registers_${name}. | |
6035 | ||
6036 | * regformats/reg-crisv32.dat: Set "name" to crisv32. | |
6037 | * regformats/reg-ppc64.dat: Set "name" to ppc64. | |
6038 | * regformats/reg-s390x.dat: Set "name" to s390x. | |
6039 | ||
a5d9d57d DJ |
6040 | 2008-02-26 Greg Law <[email protected]> |
6041 | ||
6042 | * regcache.c (registers_changed): Call reinit_frame_cache. | |
6043 | ||
e25c958c DJ |
6044 | 2008-02-26 Daniel Jacobowitz <[email protected]> |
6045 | ||
6046 | * configure.tgt (sh-*-linux*): Match sh*. Add glibc-tdep.o. | |
6047 | * sh-linux-tdep.c (sh_linux_init_abi): Use glibc_skip_solib_resolver | |
6048 | and svr4_fetch_objfile_link_map. | |
6049 | * Makefile.in (sh-linux-tdep.o): Update. | |
6050 | ||
5daa78cc TJB |
6051 | 2008-02-26 Thiago Jung Bauermann <[email protected]> |
6052 | ||
6053 | * amd64-tdep.c (amd64_classify): Add support for decimal float | |
6054 | types. | |
6055 | * i386-tdep.c (i386_return_value): Make 128-bit decimal float | |
6056 | use the struct return convention. | |
6057 | ||
54e52265 VP |
6058 | 2008-02-26 Nick Roberts <[email protected]> |
6059 | ||
6060 | * breakpoint.c (print_one_breakpoint_location): Revert Enb field | |
6061 | to old format. Discard breakpoint address if shared library is | |
6062 | unloaded. | |
6063 | (breakpoint_1): Adjust formatting of table header accordingly. | |
6064 | ||
d8f2712d VP |
6065 | 2008-02-25 Vladimir Prus <[email protected]> |
6066 | ||
6067 | * remote.c (remote_get_threadlist): If the response | |
6068 | is empty, don't try to parse it. | |
6069 | ||
05ce04a4 VP |
6070 | 2008-02-23 Vladimir Prus <[email protected]> |
6071 | ||
6072 | Unbreak 'target async'. | |
680b56ce AS |
6073 | * serial.c (serial_async): Set the |
6074 | handler function before enabling async | |
6075 | mode. | |
05ce04a4 | 6076 | |
b36ec657 DJ |
6077 | 2008-02-22 Daniel Jacobowitz <[email protected]> |
6078 | ||
6079 | * solib-svr4.c (enable_break): Convert r_brk to a code address. | |
6080 | ||
df7df359 PA |
6081 | 2008-02-21 Pedro Alves <[email protected]> |
6082 | ||
6083 | * remote.c (extended_remote_attach_1): Set attach_flag. | |
6084 | (extended_remote_create_inferior_1): Clear attach_flag. | |
6085 | ||
7cd25cfc DJ |
6086 | 2008-02-20 Daniel Jacobowitz <[email protected]> |
6087 | ||
6088 | * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Set | |
6089 | r_brk_offset. | |
6090 | (mipsnbsd_lp64_fetch_link_map_offsets): Likewise. | |
6091 | * solib-svr4.c (solib_svr4_r_brk): New. | |
6092 | (open_symbol_file_object, svr4_current_sos): Always check the | |
6093 | debug base. | |
6094 | (svr4_fetch_objfile_link_map): Do not set debug_base. | |
6095 | (enable_break): Use r_brk if it is set. | |
6096 | (svr4_ilp32_fetch_link_map_offsets): Set r_brk_offset. | |
6097 | (svr4_lp64_fetch_link_map_offsets): Likewise. | |
6098 | * solib-svr4.h (struct link_map_offsets): Add r_brk_offset. | |
6099 | ||
07ea644b MD |
6100 | 2008-02-20 Markus Deuling <[email protected]> |
6101 | Mark Kettenis <[email protected]> | |
6102 | ||
6103 | * alpha-tdep.c (alpha_heuristic_unwind_cache): Replace saved_regs by | |
6104 | trad_frame_saved_reg. | |
680b56ce | 6105 | (trad-frame.h): New include. |
07ea644b MD |
6106 | |
6107 | (alpha_heuristic_frame_unwind_cache): Use trad_frame_alloc_saved_regs | |
680b56ce | 6108 | instead of frame_obstack_zalloc. |
07ea644b MD |
6109 | (alpha_heuristic_frame_prev_register): Use trad_frame_get_prev_register. |
6110 | ||
680b56ce | 6111 | * Makefile.in (alpha-tdep.o): Add dependency to trad_frame_h. |
07ea644b | 6112 | |
40887e1a MD |
6113 | 2008-02-20 Markus Deuling <[email protected]> |
6114 | ||
6115 | * rs6000-tdep.c (gdb_print_insn_powerpc): Get the current endianess | |
6116 | from disassemble_info instead of gdbarch_byte_order. | |
6117 | ||
6118 | * mips-tdep.c (gdb_print_insn_mips): Likewise. | |
6119 | * arm-tdep.c (gdb_print_insn_arm): Likewise. | |
6120 | ||
ae4b2284 MD |
6121 | 2008-02-20 Markus Deuling <[email protected]> |
6122 | ||
6123 | * gdbarch.sh (memory_insert_breakpoint, memory_remove_breakpoint): Add | |
6124 | gdbarch as parameter. | |
6125 | ||
6126 | * gdbarch.{c,h}: Regenerate. | |
6127 | ||
6128 | * ppc-tdep.h (ppc_linux_memory_remove_breakpoint): Add gdbarch as | |
6129 | parameter. | |
6130 | * mem-break.c (default_memory_insert_breakpoint) | |
6131 | (default_memory_remove_breakpoint): Likewise. | |
6132 | * target.h (default_memory_remove_breakpoint) | |
6133 | (default_memory_insert_breakpoint): Likewise. | |
6134 | ||
6135 | * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Add gdbarch as | |
6136 | parameter. Replace current_gdbarch by gdbarch. | |
6137 | * m32r-tdep.c (m32r_memory_insert_breakpoint) | |
6138 | (m32r_memory_remove_breakpoint): Likewise. | |
6139 | ||
d9bf65d5 DJ |
6140 | 2008-02-19 Daniel Jacobowitz <[email protected]> |
6141 | ||
6142 | * MAINTAINERS: Add Vladimir Prus as MI maintainer. | |
6143 | ||
b93b6ca7 JB |
6144 | 2008-02-19 Joel Brobecker <[email protected]> |
6145 | ||
6146 | * NEWS: Add entry describing Add support improvements. | |
6147 | ||
4ed226fe MD |
6148 | 2008-02-18 Markus Deuling <[email protected]> |
6149 | ||
6150 | * m68klinux-nat.c (getfpregs_supplies): Replace gdbarch_fp0_regnum by | |
6151 | M68K_FP0_REGNUM. | |
6152 | ||
caaa79ad MD |
6153 | 2008-02-18 Markus Deuling <[email protected]> |
6154 | ||
6155 | * sentinel-frame.c (sentinel_frame_prev_register): Do not call | |
6156 | register_offset_hack anymore. | |
6157 | ||
6158 | * regcache.{c,h} (register_offset_hack): Remove. | |
6159 | ||
e38c262f MD |
6160 | 2008-02-18 Markus Deuling <[email protected]> |
6161 | ||
6162 | * hppa-tdep.h (find_global_pointer): Add gdbarch as parameter. | |
6163 | ||
6164 | * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer): Likewise. Replace | |
6165 | current_gdbarch by gdbarch. | |
6166 | (hppa64_hpux_find_global_pointer): Likewise. | |
6167 | * hppa-tdep.c (hppa_find_global_pointer): Likewise. | |
6168 | (hppa32_push_dummy_call, hppa64_push_dummy_call): Update call for | |
6169 | find_global_pointer. | |
6170 | ||
6171 | * hppabsd-tdep.c (hppabsd_find_global_pointer): Add gdbarch as | |
6172 | parameter. | |
6173 | * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise. | |
6174 | ||
6175 | * hppa-linux-nat.c (hppa_linux_register_addr): Use ARRAY_SIZE instead | |
6176 | of gdbarch_num_regs. | |
6177 | ||
6178 | * hppa-hpux-tdep.c (hppa_hpux_sr_for_addr): Add gdbarch as parameter and | |
680b56ce | 6179 | replace current_gdbarch by gdbarch. |
e38c262f MD |
6180 | (hppa_hpux_push_dummy_code): Update call for hppa_hpux_sr_for_addr. |
6181 | ||
206988c4 MD |
6182 | 2008-02-18 Markus Deuling <[email protected]> |
6183 | ||
6184 | * rs6000-nat.c (exec_one_dummy_insn, regmap): Add gdbarch as parameter | |
6185 | and replace current_gdbarch by gdbarch. | |
6186 | ||
6187 | (store_register): Update call for exec_one_dummy_insn. | |
6188 | (fetch_register, store_register): Update call of regmap. | |
6189 | ||
6190 | * ppcnbsd-nat.c (getregs_supplies, getfpregs_supplies): Add gdbarch as | |
6191 | parameter and replace current_gdbarch by gdbarch. | |
680b56ce | 6192 | |
206988c4 MD |
6193 | (ppcnbsd_store_inferior_registers): Use get_regcache_arch to get at |
6194 | the current architecture. Update call for getregs_supplies and | |
6195 | getfpregs_supplies. | |
6196 | (ppcnbsd_fetch_inferior_registers): Likewise. | |
6197 | ||
680b56ce | 6198 | * ppcobsd-nat.c (getfpregs_supplies): Add gdbarch as parameter and |
206988c4 MD |
6199 | replace current_gdbarch by gdbarch. |
6200 | (ppcobsd_fetch_registers, ppcobsd_store_registers): Use | |
6201 | get_regcache_arch to get at the current architecture. Update call for | |
6202 | getfpregs_supplies. | |
6203 | ||
f642be6b MD |
6204 | 2008-02-18 Markus Deuling <[email protected]> |
6205 | ||
6206 | * arch-utils.c (gdbarch_from_bfd): Remove unnecessary {old,new}_gdbarch | |
680b56ce | 6207 | variables. |
f642be6b | 6208 | |
b1f2bf01 MD |
6209 | 2008-02-15 Markus Deuling <[email protected]> |
6210 | ||
6211 | * mips-linux-tdep.c (mips_linux_init_abi): Remove internal error. | |
6212 | ||
ee163bf5 VP |
6213 | 2008-02-14 Vladimir Prus <[email protected]> |
6214 | ||
6215 | * NEWS: Mention pending breakpints in MI. | |
680b56ce | 6216 | |
f6fbcbf9 MD |
6217 | 2008-02-14 Markus Deuling <[email protected]> |
6218 | ||
6219 | * Makefile.in (ALL_TARGET_OBS): Remove dependency to xtensa-linux-nat.o. | |
6220 | ||
36af4ef6 MD |
6221 | 2008-02-13 Markus Deuling <[email protected]> |
6222 | ||
6223 | Add script to build and test GDB using enable-targets=all. | |
6224 | ||
6225 | * gdb_buildall.sh: New file. | |
6226 | ||
94a0e877 MG |
6227 | 2008-02-11 Maxim Grigoriev <[email protected]> |
6228 | ||
6229 | * NEWS (New native configurations): Xtensa GNU/Linux. | |
6230 | (New targets): Xtensa GNU/Linux. | |
6231 | * Makefile.in (ALL_TARGET_OBS): Add xtensa-linux-nat.o and | |
6232 | xtensa-linux-tdep.o | |
6233 | (ALLDEPFILES): Add xtensa-linux-tdep.c and xtensa-linux-nat.c | |
6234 | (xtensa-linux-nat.o, xtensa-linux-tdep.o): New dependencies. | |
6235 | * configure.tgt (xtensa*-*-linux*): New entry. | |
6236 | * xtensa-config.c (xtensa_tdep): New variable. | |
6237 | (xtensa_config_byte_order, xtensa_config_tdep): Removed. | |
6238 | (rmap): Change format based on new macro XTREG. | |
6239 | (XTENSA_CONFIG_INSTANTIATE): Use new macro defined in xtensa-tdep.h. | |
6240 | * xtensa-linux-nat.c: New. | |
6241 | * xtensa-linux-tdep.c: New. | |
6242 | * xtensa-xtregs.c: New. | |
6243 | * xtensa-tdep.h (xtensa_elf_gregset_t): Update. | |
6244 | (XTENSA_ELF_NGREG, XTREG, XTREG_END, XTENSA_GDBARCH_TDEP_INSTANTIATE) | |
6245 | (XCHAL_NUM_CONTEXTS, XCHAL_HAVE_EXCEPTIONS): New macros. | |
6246 | (xtensa_register_t): New field coprocessor. | |
6247 | (XTENSA_REGISTER_FLAGS_PRIVILEGED): Name spelling corrected. | |
6248 | * xtensa-tdep.c (xtensa_config_tdep, xtensa_config_byte_order): Removed. | |
6249 | (xtensa_pseudo_register_read, xtensa_pseudo_register_write): | |
6250 | Update to handle privileged registers. | |
6251 | (xtensa_supply_gregset) Remove exccause and excvaddr registers. | |
6252 | (xtensa_push_dummy_call): Set windowstart register correctly. | |
6253 | (call0_analyze_prologue): Initialize xtensa_default_isa. | |
6254 | (xtensa_derive_tdep): New. | |
6255 | (xtensa_gdbarch_init): Get rid of xtensa_config_byte_order and | |
6256 | xtensa_config_tdep, use XCHAL_HAVE_BE and xtensa_tdep instead. | |
6257 | Call xtensa_derive_tdep(). | |
6258 | * config/xtensa/linux.mh: New. | |
6259 | * regformats/reg-xtensa.dat: New. | |
6260 | ||
b7ee1b0a | 6261 | 2008-02-09 Aleksandar Ristovski <[email protected]> (tiny change) |
f90c07ac EZ |
6262 | |
6263 | * corelow.c (core_open): Use IS_ABSOLUTE_PATH. | |
6264 | (filenames.h): New include. | |
6265 | * Makefile.in (corelow.o): Add dependency for filenames.h. | |
6266 | ||
8da2a1df DJ |
6267 | 2008-02-08 Doug Evans <[email protected]> |
6268 | ||
6269 | * source.c (find_and_open_source): Always rewrite absolute filenames. | |
6270 | ||
776592bf DE |
6271 | 2008-02-07 Doug Evans <[email protected]> |
6272 | ||
6273 | * breakpoint.c: #include "hashtab.h". | |
6274 | (ambiguous_names_p): New fn. | |
6275 | (update_breakpoint_locations): When restoring bp enable status, don't | |
6276 | compare function names if any functions have same name. | |
6277 | * Makefile.in (breakpoint.o): Add hashtab.h dependency. | |
6278 | ||
d6565258 JB |
6279 | 2008-02-07 Joel Brobecker <[email protected]> |
6280 | ||
6281 | * ada-lang.c (symbol_completion_add): Make SV parameter a VEC** | |
6282 | instead of just a VEC*. Update use of SV. | |
6283 | (ada_make_symbol_completion_list): Update symbol_completion_add calls. | |
6284 | ||
6d53d0af JB |
6285 | 2007-02-07 Joel Brobecker <[email protected]> |
6286 | ||
6287 | * NEWS: Put all new commands since gdb-6.7 together. | |
6288 | ||
2ba95b9b JB |
6289 | 2007-02-07 Joel Brobecker <[email protected]> |
6290 | ||
6291 | * ada-lang.c: #include "vec.h". | |
6292 | (struct string_vector, new_string_vector, string_vector_append): | |
6293 | Delete. | |
6294 | (char_ptr): New typedef. | |
6295 | (DEF_VEC_P (char_ptr)): New VEC type. | |
6296 | (symbol_completion_add): Update profile to take the new VEC type | |
6297 | instead of the old string_vector structure. Update code accordingly. | |
6298 | (ada_make_symbol_completion_list): Use the new VEC type instead of | |
6299 | the old string_vector structure, and update the code accordingly. | |
6300 | * Makefile.in (ada-lang.o): Add dependency on vec.h. | |
6301 | ||
4ae0885a PM |
6302 | 2008-02-06 Pierre Muller <[email protected]> |
6303 | ||
6304 | * p-exp.y: Set current_type in missing places. | |
6305 | (leftdiv_is_integer): New static variable. | |
6306 | Typecast right operand of BINOP_DIV to long_double if both operands | |
6307 | are integers. | |
6308 | ||
06b1d59c MR |
6309 | 2008-02-06 Maciej W. Rozycki <[email protected]> |
6310 | ||
6311 | * remote-mips.c (set_breakpoint): Rename to... | |
6312 | (mips_set_breakpoint): ... this. | |
6313 | (clear_breakpoint): Rename to... | |
6314 | (mips_clear_breakpoint): ... this. | |
6315 | (common_breakpoint): Rename to... | |
6316 | (mips_common_breakpoint): ... this. | |
6317 | (check_lsi_error): Rename to... | |
6318 | (mips_check_lsi_error): ... this. | |
6319 | ||
41d27058 JB |
6320 | 2007-02-05 Joel Brobecker <[email protected]> |
6321 | ||
6322 | * language.h (struct language_defn): Add new field | |
6323 | la_make_symbol_completion_list. | |
6324 | * symtab.c (default_make_symbol_completion_list): Renames | |
6325 | make_symbol_completion_list. | |
6326 | (make_symbol_completion_list): New function. | |
6327 | * symtab.h (default_make_symbol_completion_list): Add declaration. | |
6328 | * langauge.c (unknown_language): Set la_make_symbol_completion_list. | |
6329 | (auto_language, local_language): Likewise. | |
6330 | * objc-lang.c (objc_language_defn): Likewise. | |
6331 | * scm-lang.c (scm_language_defn): Likewise. | |
6332 | * m2-lang.c (m2_language_defn): Likewise. | |
6333 | * f-lang.c (f_language_defn): Likewise. | |
6334 | * jv-lang.c (java_language_defn): Likewise. | |
6335 | * p-lang.c (pascal_language_defn): Likewise. | |
6336 | * c-lang.c (c_language_defn, cplus_language_defn, asm_language_defn) | |
6337 | (minimal_language_defn): Likewise. | |
6338 | * ada-lang.c (struct string_vector): New structure. | |
6339 | (new_string_vector, string_vector_append, ada_unqualified_name) | |
6340 | (add_angle_brackets, symbol_completion_match, symbol_completion_add) | |
6341 | (ada_make_symbol_completion_list): New functions. | |
6342 | (ada_language_defn): Set la_make_symbol_completion_list. | |
6343 | * ada-lang.h (ada_make_symbol_completion_list): Remove declaration, | |
6344 | this function is static. | |
6345 | ||
ee3a2f01 KB |
6346 | 2008-02-05 Kevin Buettner <[email protected]> |
6347 | ||
6348 | * mn10300-tdep.c (mn10300_push_dummy_call): Adjust stack pointer | |
6349 | to account for call site optimizations. | |
6350 | ||
d844e34b JB |
6351 | 2008-02-05 Andrzej Zaborowski <[email protected]> |
6352 | ||
6353 | * tracepoint.c (read_actions): Handle end-of-text indicator | |
6354 | in action list properly. (Committed by Jim Blandy) | |
6355 | ||
02e4669d JB |
6356 | 2008-02-05 Jim Blandy <[email protected]> |
6357 | ||
6358 | * ax-gdb.c (gen_expr): Yield ordinary error if asked to trace a | |
6359 | pseudoregister, not an internal error. | |
85ecb32b | 6360 | Reported by: Andrzej Zaborowski |
02e4669d | 6361 | |
c39c8256 VP |
6362 | 2008-02-04 Vladimir Prus <[email protected]> |
6363 | ||
6364 | * varobj.c (c_value_of_variable): Use xstrdup. | |
6365 | ||
ae7d22a6 VP |
6366 | 2008-02-04 Vladimir Prus <[email protected]> |
6367 | ||
6368 | Update stored rendition of varobj value when format changes. | |
6369 | * varobj.c (varobj_set_display_format): Recomputed | |
680b56ce AS |
6370 | print_value. |
6371 | (c_value_of_variable): Return print_value. | |
ae7d22a6 | 6372 | |
81fe8080 DE |
6373 | 2008-02-03 Doug Evans <[email protected]> |
6374 | ||
301f0ecf DE |
6375 | * eval.c (evaluate_subexp_standard): Fix type of result of mixed |
6376 | integer/float division operations when EVAL_AVOID_SIDE_EFFECTS. | |
6377 | * valops.c (value_one): New function. | |
6378 | * value.h (value_one): Declare. | |
6379 | ||
6380 | Fix argument promotion for binary arithmetic ops for C. | |
6381 | * valarith.c (unop_result_type): New fn. | |
6382 | (binop_result_type): New fn. | |
6383 | (value_binop): Move result type computation to binop_result_type. | |
6384 | (value_pos, value_neg, value_complement): Move result type | |
6385 | computation to unop_result_type. | |
6386 | ||
81fe8080 DE |
6387 | PR 2384 |
6388 | * gdbtypes.c (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno. | |
6389 | Return basetype, fieldno if found. All callers updated. | |
6390 | Don't cache TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE if from different | |
6391 | objfile. | |
6392 | * gdbtypes.h (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno. | |
6393 | * symfile.h (fill_in_vptr_fieldno): Delete. | |
6394 | ||
41808ebe DE |
6395 | 2008-02-02 Doug Evans <[email protected]> |
6396 | ||
f8597ac3 DE |
6397 | * valarith.c (value_binop): Handle unsigned BINOP_REM division by zero. |
6398 | ||
41808ebe DE |
6399 | * typeprint.c (*): Whitespace cleanup. |
6400 | ||
f964a756 MK |
6401 | 2008-02-02 Mark Kettenis <[email protected]> |
6402 | Luis Machado <[email protected]> | |
680b56ce | 6403 | Thiago Jung Bauermann <[email protected]> |
f964a756 MK |
6404 | |
6405 | * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Pass floats that | |
6406 | don't fit into registerson the stack the way GCC does. | |
6407 | ||
b06ead72 JB |
6408 | 2008-02-01 Joel Brobecker <[email protected]> |
6409 | ||
6410 | * symtab.c (symbol_set_names): Do not add an entry in the demangling | |
6411 | hash table for Ada symbols. Just store the linkage name as is, | |
6412 | and leave the demangled_name as NULL. | |
6413 | ||
2cfa0c8d JB |
6414 | 2007-02-01 Joel Brobecker <[email protected]> |
6415 | ||
6416 | * dwarf2read.c (add_partial_symbol): Always store all Ada subprograms | |
6417 | in the global scope. | |
6418 | (new_symbol): Likewise. | |
6419 | ||
98deb0da | 6420 | 2008-02-01 Vladimir Prus <[email protected]> |
680b56ce AS |
6421 | |
6422 | * breakpoint.c (break_command_1): Return void. | |
6423 | (break_command_really): Return void. Rethrow | |
6424 | exceptions instead of returning. | |
6425 | (gdb_breakpoint): Remove the error_message parameter. | |
6426 | Return void. Rename to set_breakpoint. | |
6427 | * gdb.h (gdb_breakpoint): Rename and move to... | |
98deb0da | 6428 | * breakpoint.h (set_breakpoint): ...here. |
680b56ce AS |
6429 | * mi/mi-cmb-break.c (mi_cmd_break_insert): Restore |
6430 | event hooks even if exception is thrown. Adjust to | |
6431 | gdb_breakpoint interface changes. | |
6432 | ||
98deb0da | 6433 | |
ce0451ad TJB |
6434 | 2008-02-01 Thiago Jung Bauermann <[email protected]> |
6435 | ||
6436 | * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Write 32-bit | |
6437 | float in both first and second word in the doubleword, to support | |
6438 | old and new ABIs. | |
6439 | ||
723a2275 VP |
6440 | 2008-02-01 Vladimir Prus <[email protected]> |
6441 | ||
6442 | Properly rethrow exception. This fixes errors | |
6443 | about non-existent functions for -break-insert. | |
680b56ce AS |
6444 | * breakpoint.c (break_command_really): Use throw_exception |
6445 | for rethrowing. If rethrowing, don't print the exception. | |
723a2275 | 6446 | |
d64a946d TJB |
6447 | 2008-01-31 Thiago Jung Bauermann <[email protected]> |
6448 | ||
6449 | * NEWS: Mention Decimal Floating Point support. | |
6450 | ||
02b156f5 JB |
6451 | 2008-01-31 Joel Brobecker <[email protected]> |
6452 | ||
6453 | * std-regs.c (value_of_builtin_frame_pc_reg): Change the returned | |
6454 | value type to builtin_type_void_func_ptr. | |
6455 | ||
a16b8bcd UW |
6456 | 2008-01-31 Andreas Krebbel <[email protected]> |
6457 | ||
6458 | * s390-tdep.c (is_float_singleton, is_float_like, | |
6459 | alignment_of, s390_return_value): Make checks for | |
6460 | TYPE_CODE_FLT to match TYPE_CODE_DECFLOAT as well. | |
6461 | ||
f949c649 TJB |
6462 | 2008-01-31 Luis Machado <[email protected]> |
6463 | Thiago Jung Bauermann <[email protected]> | |
6464 | ||
6465 | * infcmd.c (default_print_registers_info): Also print hex | |
6466 | raw contents for TYPE_CODE_DECFLOAT registers. | |
6467 | * ppc-tdep.h (gdbarch_tdep): Add ppc_dl0_regnum member. | |
6468 | * rs6000-tdep.c (IS_DFP_PSEUDOREG): New macro. | |
6469 | (rs6000_register_name): Add support for DFP pseudo-registers. | |
6470 | (rs6000_pseudo_register_type): Likewise. | |
6471 | rs6000_pseudo_register_reggroup_p): Likewise. | |
6472 | (ppc_pseudo_register_read): New function. | |
6473 | (ppc_pseudo_register_write): Likewise. | |
6474 | (rs6000_pseudo_register_read): Likewise. | |
6475 | (rs6000_pseudo_register_write): Likewise. | |
6476 | (e500_pseudo_register_read): Move checks to | |
6477 | rs6000_pseudo_register_read. | |
6478 | (e500_pseudo_register_write): Move checks to | |
6479 | rs6000_pseudo_register_write. | |
6480 | (rs6000_gdbarch_init): Initialize tdep->ppc_dl0_regnum. Install | |
6481 | rs6000_pseudo_register_read and rs6000_pseudo_register_write | |
6482 | in gdbarch if SPE or DFP is available. Adjust gdbarch's | |
6483 | num_pseudo_regs to account for DFP pseudo regs. | |
6484 | ||
5a9e69ba TJB |
6485 | 2008-01-31 Thiago Jung Bauermann <[email protected]> |
6486 | ||
6487 | * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_ev31_regnum member. | |
6488 | * rs6000-tdep.c (IS_SPE_PSEUDOREG): New macro. | |
6489 | (spe_register_p, rs6000_register_name, rs6000_pseudo_register_type, | |
6490 | rs6000_pseudo_register_reggroup_p, e500_move_ev_register, | |
6491 | e500_pseudo_register_read, e500_pseudo_register_write): Use | |
6492 | IS_SPE_PSEUDOREG macro. | |
6493 | (rs6000_frame_cache): Remove use of tdep->ppc_ev31_regnum. | |
6494 | (rs6000_gdbarch_init): Remove unnecessary num_sprs local variable. | |
6495 | Remove initialization of tdep->ppc_ev31_regnum. | |
6496 | ||
4e885b20 JB |
6497 | 2008-01-08 Paul Hilfinger <[email protected]> |
6498 | ||
6499 | * printcmd.c (print_formatted): Handle references as for unformatted | |
6500 | prints. | |
6501 | ||
80f064a2 JB |
6502 | 2008-01-30 Joel Brobecker <[email protected]> |
6503 | ||
6504 | * eval.c (evaluate_subexp_standard): Add handling of user | |
6505 | registers when in EVAL_AVOID_SIDE_EFFECTS mode. | |
6506 | ||
9b3442ee PM |
6507 | 2008-01-30 Pierre Muller <[email protected]> |
6508 | ||
6509 | * eval.c (evaluate_subexp_standard): Support | |
6510 | BINOP_INTDIV opcode. | |
6511 | ||
d118ef87 PH |
6512 | 2008-01-30 Paul N. Hilfinger <[email protected]> |
6513 | ||
6514 | * valarith.c (value_binop): Add floating-point BINOP_MIN and | |
6515 | BINOP_MAX cases. | |
6516 | For BINOP_EXP, use length and signedness of left operand only for | |
6517 | result, as for shifts. | |
6518 | For integral operands to BINOP_EXP, use new integer_pow and | |
6519 | uinteger_pow functions so as to get full range of results. | |
6520 | (integer_pow): New function. | |
6521 | (uinteger_pow): New function. | |
6522 | ||
d56d46f5 VP |
6523 | 2008-01-30 Vladimir Prus <[email protected]> |
6524 | ||
6525 | Use vector for varobj_list_children interface. | |
680b56ce AS |
6526 | * gdb/varobj.c (varobj_list_children): Return vector |
6527 | of varobjs. | |
6528 | * gdb/varobj.h (varobj_list_children): Adjust | |
6529 | prototype. | |
6530 | (varobj_p): Declare. Declare vector thereof. | |
6531 | * mi/mi-cmd-var.c (mi_cmd_var_list_children): Adjust | |
6532 | for varobj_list_children change. | |
d56d46f5 VP |
6533 | * Makefile.in (varobj_h): Update dependencies. |
6534 | ||
1300a2f4 TJB |
6535 | 2008-01-30 Thiago Jung Bauermann <[email protected]> |
6536 | ||
6537 | * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Add support for | |
6538 | TYPE_CODE_DECFLOAT arguments. | |
6539 | (ppc64_sysv_abi_push_dummy_call) Likewise. | |
6540 | (get_decimal_float_return_value): New function. | |
6541 | (do_ppc_sysv_return_value): Add support for TYPE_CODE_DECFLOAT return | |
6542 | values by calling get_decimal_float_return_value. | |
6543 | (ppc64_sysv_abi_return_value): Likewise. | |
6544 | ||
95ef687d NR |
6545 | 2008-01-30 Nick Roberts <[email protected]> |
6546 | ||
6547 | * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Add field | |
6548 | for preprocessor macro information. Formatting changes. | |
6549 | ||
2d717e4f DJ |
6550 | 2008-01-29 Daniel Jacobowitz <[email protected]> |
6551 | ||
6552 | * remote.c (struct remote_state): Add cached_wait_status. | |
6553 | (remote_exec_file): New variable. | |
6554 | (PACKET_vAttach, PACKET_vRun): New constants. | |
6555 | (extended_remote_restart): Do not query for status. | |
6556 | (struct start_remote_args): New. | |
6557 | (remote_start_remote): Take it as a second argument. Check | |
6558 | whether the target is running. Issue an error for non-running | |
6559 | non-extended targets. Cache the wait status. Set inferior_ptid | |
6560 | here. | |
6561 | (remote_open_1): Prompt to disconnect non-running targets. Make | |
6562 | sure the target is marked running. Do not set inferior_ptid here. | |
6563 | Update call to remote_start_remote. Do not call remote_check_symbols | |
6564 | if the target is not running. | |
6565 | (remote_detach_1): Rename from remote_detach. Take an EXTENDED | |
6566 | argument. Handle a non-running target. | |
6567 | (remote_detach): Use it. | |
6568 | (extended_remote_detach): New. | |
6569 | (remote_disconnect): Fix typo. Use remoute_mourn_1. | |
6570 | (extended_remote_attach_1, extended_remote_attach) | |
6571 | (extended_async_remote_attach): New. | |
6572 | (remote_vcont_resume): Remove unused variable. | |
6573 | (remote_wait, remote_async_wait): Use any cached wait status. | |
6574 | (putpkt_binary, getpkt): Clear any cached wait status. | |
6575 | (extended_remoute_mourn_1): New. | |
6576 | (extended_remote_mourn): Use it. | |
6577 | (extended_async_remote_mourn, extended_remote_run): New. | |
6578 | (extended_remote_create_inferior_1): New. | |
6579 | (extended_remote_create_inferior): Use it. | |
6580 | (extended_remote_async_create_inferior): Likewise. | |
6581 | (remote_xfer_partial): Skip for non-executing targets. | |
6582 | (init_extended_remote_ops): Set to_detach and to_attach. | |
6583 | (init_extended_async_remote_ops): Likewise. Use | |
6584 | extended_async_remote_mourn. | |
6585 | (_initialize_remote): Register vAttach, vRun, and | |
6586 | set remote exec-file. | |
6587 | * NEWS: Mention vAttach, vRun, and gdbserver extended-remote support. | |
6588 | ||
e85a822c DJ |
6589 | 2008-01-29 Daniel Jacobowitz <[email protected]> |
6590 | ||
6591 | * Makefile.in (symfile.o): Update. | |
6592 | * NEWS: Mention exec tracing support. | |
6593 | * inf-ttrace.c (inf_ttrace_wait): Return TARGET_WAITKIND_EXECD for | |
6594 | exec events. | |
6595 | * infcmd.c (kill_if_already_running, detach_command) | |
6596 | (disconnect_command): Replace SOLIB_RESTART with no_shared_libraries. | |
6597 | * infrun.c (MAY_FOLLOW_EXEC, may_follow_exec): Delete. | |
6598 | (follow_exec): Do not check may_follow_exec. Do not mourn and push | |
6599 | targets. Apply the sysroot path to the loaded executable. Use | |
6600 | no_shared_libraries. | |
6601 | * linux-nat.c (linux_child_follow_fork): Print fork following | |
6602 | messages if verbose. | |
6603 | (kill_wait_callback): Kill again before waiting a second time. | |
6604 | * symfile.c (symbol_file_clear): Replace SOLIB_RESTART with | |
6605 | no_shared_libraries. | |
6606 | ||
9db13498 JB |
6607 | 2008-01-29 Joel Brobecker <[email protected]> |
6608 | ||
6609 | * amd64-tdep.c (amd64_classify): Add handling of TYPE_CODE_CHAR. | |
6610 | ||
b4d5ed91 JB |
6611 | 2008-01-29 Joel Brobecker <[email protected]> |
6612 | ||
6613 | * nto-tdep.h: Remove #include "defs.h". | |
6614 | * nto-tdep.c: Add #include "defs.h". | |
6615 | * Makefile.in (nto_tdep_h): Update dependencies. | |
6616 | (nto-tdep.o): Likewise. | |
6617 | ||
107313f7 | 6618 | 2008-01-29 Joel Brobecker <[email protected]> |
ae123ec6 JB |
6619 | |
6620 | * infrun.c (wait_for_inferior): Add treat_exec_as_sigtrap parameter | |
6621 | and use it. | |
6622 | (proceed, start_remote): Update call to wait_for_inferior. | |
6623 | * inferior.h (wait_for_inferior): Update declaration. | |
6624 | * fork-child.c, infcmd.c, solib-irix.c, solib-osf.c, solib-sunos.c, | |
6625 | solib-svr4.c, win32-nat.c: Update calls to wait_for_inferior. | |
6626 | * inf-ttrace.c (inf_ttrace_wait): Report TTEVT_EXEC events as | |
6627 | TARGET_WAITKIND_EXECD instead of TARGET_WAITKIND_STOPPED. | |
6628 | ||
3f4178d6 DJ |
6629 | 2008-01-29 Aleksandar Ristovski <[email protected]> |
6630 | ||
680b56ce | 6631 | * varobj (adjust_value_for_child_access): Added checking for |
3f4178d6 DJ |
6632 | returned value from gdb_value_ind. |
6633 | (c_describe_child): Likewise. | |
6634 | (cplus_describe_child): Fixed a typo. | |
6635 | ||
5eeba8d4 JB |
6636 | 2008-01-29 Jim Blandy <[email protected]> |
6637 | ||
6638 | * MAINTAINERS: Update my info. | |
6639 | ||
a5606eee VP |
6640 | 2008-01-29 Vladimir Prus <[email protected]> |
6641 | ||
6642 | Use multiple locations for hardware watchpoints. | |
6643 | This eliminates the need to traverse value chain, doing | |
6644 | various checks, in three different places. | |
6645 | ||
680b56ce AS |
6646 | * breakpoint.h (struct bp_location): New fields |
6647 | lengths and watchpoint_type. | |
6648 | (struct breakpoint): Remove the val_chain field. | |
6649 | * breakpoint.c (is_hardware_watchpoint): New. | |
6650 | (free_valchain): Remove. | |
6651 | (update_watchpoint): New. | |
6652 | (insert_bp_location): For hardware watchpoint, just | |
6653 | directly insert it. | |
6654 | (insert_breakpoints): Call update_watchpoint_locations | |
6655 | on all watchpoints. If we have failed to insert | |
6656 | any location of a hardware watchpoint, remove all inserted | |
6657 | locations. | |
6658 | (remove_breakpoint): For hardware watchpoints, directly | |
6659 | remove location. | |
6660 | (watchpoints_triggered): Iterate over locations. | |
6661 | (bpstat_stop_status): Use only first location of | |
6662 | a resource watchpoint. | |
6663 | (delete_breakpoint): Don't call free_valchain. | |
6664 | (print_one_breakpoint): Don't print all | |
6665 | locations for watchpoints. | |
6666 | (breakpoint_re_set_one): Use update_watchpoint for | |
6667 | watchpoints. | |
a5606eee | 6668 | |
0b3de036 VP |
6669 | 2008-01-29 Vladimir Prus <[email protected]> |
6670 | ||
6671 | Don't reset watchpoint block on solib load. | |
6672 | ||
680b56ce AS |
6673 | * breakpoint.c (insert_bp_location): For watchpoints, |
6674 | recompute condition. | |
6675 | (breakpoint_re_set_one): Instead of recomputing value | |
6676 | and condition for watchpoints, just reset value and | |
6677 | let insert_breakpoints/insert_bp_location recompute it. | |
6678 | Don't do anything about disabled watchpoint. | |
0b3de036 | 6679 | |
c3940723 PM |
6680 | 2008-01-29 Pierre Muller <[email protected]> |
6681 | ||
6682 | * valarith.c (value_binop): Handle unsigned integer | |
6683 | division by zero. | |
6684 | ||
83845630 KB |
6685 | 2008-01-28 Kevin Buettner <[email protected]> |
6686 | ||
6687 | * mn10300-tdep.c (mn10300_analyze_prologue): Check for an | |
6688 | instruction pattern that appears frequently in position | |
6689 | independent code. Fix bug in code which looks for "fmov" and | |
6690 | backtracks if no "fmov" is found. | |
6691 | ||
9ce5d3bb DE |
6692 | 2008-01-28 Doug Evans <[email protected]> |
6693 | ||
6694 | * dbxread.c (read_dbx_symtab): Fix indentation. | |
131fe1bb DE |
6695 | Reformat comments to 80 columns. |
6696 | Move local var def closer to only use. | |
9ce5d3bb | 6697 | |
c78d192c DJ |
6698 | 2008-01-28 Daniel Jacobowitz <[email protected]> |
6699 | ||
6700 | * fork-child.c (SHELL_FILE): Remove #ifndef. | |
6701 | (fork_inferior): Remove SHELL_COMMAND_CONCAT. | |
6702 | ||
e11481da PM |
6703 | 2008-01-25 Pierre Muller <[email protected]> |
6704 | ||
6705 | * i386-tdep.c (i386_skip_noop): New function. | |
6706 | (i386_analyze_prologue): Call i386_skip_noop function. | |
6707 | ||
244e85c8 MS |
6708 | 2008-01-24 Michael Snyder <[email protected]> |
6709 | ||
6710 | * procfs.c (procfs_xfer_partial): Comment, cut/paste error. | |
6711 | * win32-nat.c (win32_xfer_partial): Ditto. | |
6712 | * target.c (default_xfer_partial): Minor whitespace adjustment. | |
6713 | ||
dd6be234 PA |
6714 | 2008-01-24 Pedro Alves <[email protected]> |
6715 | ||
6716 | * arm-tdep.c (arm_addr_bits_remove): In non 26-bit mode, don't | |
6717 | strip bit 1 even if pc doesn't point to thumb code. | |
6718 | ||
9fa2223d DJ |
6719 | 2008-01-23 Daniel Jacobowitz <[email protected]> |
6720 | ||
6721 | * remote.c (remote_wait): Handle SIGINT between packets. | |
6722 | (remote_async_wait): Likewise. | |
6723 | ||
93815fbf VP |
6724 | 2008-01-23 Vladimir Prus <[email protected]> |
6725 | Chris Demetriou <[email protected]> | |
6726 | ||
680b56ce AS |
6727 | * thread.c (add_thread_silent): Renamed |
6728 | from add_thread. | |
6729 | (print_thread_events): New variable definition. | |
6730 | (show_print_thread_events): New function. | |
6731 | (_initialize_thread): Add "set print thread-events" and | |
6732 | "show print thread-events" commands. | |
6733 | (add_thread): Announce new thread. | |
6734 | * gdbthread.h (add_thread_silent): Declare. | |
6735 | (print_thread_events): New variable declaration. | |
6736 | * inf-ttrace.c (inf_ttrace_wait): Don't | |
6737 | inform about new thread, as add_thread is always | |
6738 | called too, and will take care of that. | |
6739 | * infrun.c (handle_inferior_event): Likewise. | |
6740 | * procfs.c (procfs_wait): Likewise. | |
6741 | * remote.c (remote_currthread): Likewise. | |
6742 | * sol-thread.c (sol_thread_wait): Likewise. | |
6743 | * win32-nat.c (get_win32_debug_event): Likewise. | |
6744 | * linux-thread-db.c (attach_thread): Likewise. | |
6745 | Remove the verbose parameter. | |
6746 | (check_event): Make detach_thread be verbose | |
6747 | only if print_thread_events is set. | |
6748 | * linux-nat.c (lin_lwp_attach_lwp): Don't inform | |
6749 | about new thread. This is called only from | |
6750 | linux-thread-db.c:attach_thread, which will take care. | |
6751 | Remove the verbose parameter. | |
6752 | * linux-nat.h (lin_lwp_attach_lwp): Adjust prototype. | |
93815fbf | 6753 | |
b4d7c9a6 NR |
6754 | 2008-01-23 Nick Roberts <[email protected]> |
6755 | ||
6756 | * mi/mi-cmd-var.c (mi_cmd_var_set_format): Add value field to output. | |
6757 | ||
60c46647 VP |
6758 | 2008-01-22 Vladimir Prus <[email protected]> |
6759 | ||
6760 | * breakpoint.c (break_command_really): New parameter | |
6761 | ignore_count. | |
6762 | (break_command_1): Pass 0 as | |
6763 | ignore_count to break_command_really. | |
6764 | (gdb_breakpoint): Pass ignore_count to | |
6765 | break_command_really. | |
6766 | ||
e84605cd KB |
6767 | 2008-01-21 Kevin Buettner <[email protected]> |
6768 | ||
6769 | * mn10300-linux-tdep.c (am33_linux_sigframe_cache_init): Find | |
6770 | sigcontext struct via pointer. | |
6771 | (struct sigframe comment): Update to show new field `psc'. | |
6772 | ||
9d9cd7ac VP |
6773 | 2008-01-21 Vladimir Prus <[email protected]> |
6774 | ||
6775 | * infrun.c (handle_inferior_event): If | |
6776 | we failed to remove breakpoints, error, | |
6777 | don't try to increment PC by hand. | |
6778 | ||
af5ca30d NH |
6779 | 2008-01-18 Nick Hudson <[email protected]> |
6780 | ||
6781 | Add NetBSD/hppa target and host support. | |
6782 | ||
6783 | * hppabsd-tdep.c (hppabsd_supply_gregset): Move to ... | |
6784 | (hppabsd_gregset): Move to ... | |
6785 | (hppabsd_regset_from_core_section): Rename | |
6786 | hppaobsd_regset_from_core_section and move to ... | |
6787 | (hppabsd_find_global_pointer): Update comment. | |
6788 | (hppabsd_init_abi): Make global. Do not register | |
6789 | hppabsd_regset_from_core_section. | |
6790 | (hppabsd_core_osabi_sniffer): Rename hppaobsd_core_osabi_sniffer and | |
6791 | move to ... | |
6792 | (_initialize_hppabsd_tdep): Move to ... | |
6793 | * hppaobsd-tdep.c: ... here. New file. | |
6794 | * hppnbsd-tdep.c: New file. | |
6795 | * hppnbsd-nat.c: New file. | |
680b56ce | 6796 | * Makefile.in (ALL_TARGET_OBS): Add hppanbsd-tdep.o and hppaobsd-tdep.o. |
af5ca30d | 6797 | (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c. |
680b56ce AS |
6798 | (hppabsd-nat.o, hppabsd-tdep.o): New dependencies. |
6799 | (hppabsd-tdep.o, hppaobsd-tdep.o): Update dependencies. | |
af5ca30d NH |
6800 | * configure.host (hppa*-*-netbsd*): New entry. |
6801 | * configure.tgt (hppa*-*-netbsd*): New entry. | |
6802 | (hppa*-*-openbsd*): Update. | |
6803 | * NEWS (New native configuration): Mention NetBSD/hppa. | |
6804 | (New targets): Mention NetBSD/hppa. | |
6805 | ||
32c9a795 MD |
6806 | 2008-01-18 Markus Deuling <[email protected]> |
6807 | ||
6808 | * gdbarch.sh (function_list): Add new property bits_big_endian to | |
6809 | gdbarch structure. | |
6810 | * gdbarch.{c,h}: Regenerate. | |
6811 | ||
6812 | * value.c (struct value): Replace BITS_BIG_ENDIAN by | |
6813 | gdbarch_bits_big_endian (comment). | |
6814 | (unpack_field_as_long, modify_field): Likewise. | |
6815 | * value.h: Likewise (comment). | |
6816 | * valops.c (value_slice): Likewise. | |
6817 | * valarith.c (value_subscript, value_bit_index): Likewise. | |
6818 | * gdbtypes.h (field): Likewise (comment). | |
6819 | * eval.c (evaluate_subexp_standard): Likewise. | |
6820 | * dwarf2read.c (dwarf2_add_field): Likewise. | |
6821 | * ada-lang.c (decode_packed_array, ada_value_primitive_packed_val) | |
6822 | (move_bits, ada_value_assign, value_assign_to_component): Likewise. | |
680b56ce | 6823 | |
32c9a795 MD |
6824 | * defs.h (BITS_BIG_ENDIAN): Remove. |
6825 | ||
1e5e79d0 MD |
6826 | 2008-01-18 Markus Deuling <[email protected]> |
6827 | ||
6828 | * jv-exp.y (yylex): Replace DEPRECATED_STREQN with the appropriate | |
6829 | function calls. | |
6830 | * m2-exp.y (yylex): Likewise. | |
6831 | * objc-exp.y (yylex): Likewise. | |
6832 | ||
6833 | * defs.h (DEPRECATED_STREQN): Remove. | |
6834 | ||
fabda5a7 L |
6835 | 2008-01-17 H.J. Lu <[email protected]> |
6836 | ||
6837 | * MAINTAINERS: Update my email address. | |
6838 | ||
92726479 JB |
6839 | 2008-01-17 Jim Blandy <[email protected]> |
6840 | ||
6841 | * README: Mention gdbserver/README. | |
6842 | ||
ef80d18e PM |
6843 | 2008-01-17 Pierre Muller <[email protected]> |
6844 | ||
6845 | * valarith.c (value_binop): Handle BINOP_INTDIV | |
6846 | for unsigned and signed integers. | |
6847 | ||
1de90795 UW |
6848 | 2008-01-17 Ulrich Weigand <[email protected]> |
6849 | ||
6850 | * s390-tdep.c (s390_gdbarch_init): Set default long double | |
6851 | type to 128-bit IEEE quad. | |
6852 | ||
c70bd6f3 JB |
6853 | 2008-01-17 Joel Brobecker <[email protected]> |
6854 | ||
6855 | * hpux-thread.c (hpux_thread_resume): Delete commented-out code. | |
6856 | ||
ba759613 MK |
6857 | 2008-01-16 Mark Kettenis <[email protected]> |
6858 | ||
77d49ac6 MK |
6859 | * auxv.c (fprint_target_auxv): Add support for AT_SUN_AUXFLAGS. |
6860 | ||
ba759613 MK |
6861 | * dfp.c, dfp.h: Rename decimal_to_double to decimal_to_doublest. |
6862 | * value.c: All callers changed. | |
6863 | ||
7ecb6532 MD |
6864 | 2008-01-16 Markus Deuling <[email protected]> |
6865 | ||
6866 | * rs6000-nat.c (add_vmap, vmap_ldinfo, vmap_exec): Replace | |
6867 | DEPRECATED_STREQ by its expression. | |
6868 | * coffread.c (coff_locate_sections, coff_symtab_read): Likewise. | |
6869 | * xcoffread.c (read_xcoff_symtab, read_symbol_lineno, find_linenos) | |
6870 | (scan_xcoff_symtab): Likewise. | |
6871 | * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Likewise. | |
6872 | * f-lang.c (find_common_for_function): Likewise. | |
6873 | * objc-exp.y (parse_number): Likewise. | |
6874 | ||
6875 | * defs.h (DEPRECATED_STREQ): Remove. | |
6876 | ||
d15cf01c MD |
6877 | 2008-01-16 Markus Deuling <[email protected]> |
6878 | ||
6879 | * mn10300-tdep.h (AM33_MODE): Add gdbarch as parameter. | |
6880 | * mn10300-tdep.c (set_reg_offsets, mn10300_analyze_prologue): Use | |
6881 | get_frame_arch to get at the current_architecture. Update AM33_MODE | |
6882 | call. | |
6883 | (mn10300_analyze_prologue): Add gdbarch as parameter. Update caller. | |
6884 | (mn10300_frame_unwind_cache): Use get_frame_arch to get at the current | |
6885 | architecture. | |
6886 | (set_reg_offsets, mn10300_analyze_prologue): Fix indentation. | |
6887 | ||
f8028488 MD |
6888 | 2008-01-16 Markus Deuling <[email protected]> |
6889 | ||
680b56ce | 6890 | * amd64-nat.h (amd64_native_gregset_supplies_p): Add gdbarch as |
f8028488 MD |
6891 | parameter. |
6892 | * amd64-nat.c (amd64_native_gregset_supplies_p): Likewise. | |
6893 | ||
6894 | (amd64_native_gregset_reg_offset): Add gdbarch as parameter. Replace | |
6895 | current_gdbarch by gdbarch. Update caller. | |
6896 | ||
6897 | * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers) | |
6898 | (amd64_linux_store_inferior_registers): Use get_regcache_arch to get at | |
6899 | the current architecture. Update calls of | |
6900 | amd64_native_gregset_supplies_p. | |
6901 | * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers) | |
6902 | (amd64bsd_store_inferior_registers): Likewise. | |
6903 | ||
e101270f MD |
6904 | 2008-01-16 Markus Deuling <[email protected]> |
6905 | ||
6906 | * ppc-linux-nat.c (ppc_register_u_addr): Add gdbarch as parameter. | |
6907 | Replace current_gdbarch by gdbarch. Update caller. | |
6908 | ||
063e58ba MD |
6909 | 2008-01-16 Markus Deuling <[email protected]> |
6910 | ||
6911 | * dbxread.c (repeated_header_complaint, dbx_symfile_init) | |
6912 | (read_dbx_dynamic_symtab, function_outside_compilation_unit_complaint) | |
6913 | (read_dbx_symtab, end_psymtab, dbx_psymtab_to_symtab_1) | |
6914 | (dbx_psymtab_to_symtab, read_ofile_symtab, process_one_symbol) | |
6915 | (stabsect_build_psymtabs): Fix indentation. | |
6916 | ||
662fb31b MS |
6917 | 2008-01-15 Michael Snyder <[email protected]> |
6918 | ||
6919 | * corelow.c (core_xfer_partial): Comment, cut/paste error. | |
6920 | ||
c1766e7d PM |
6921 | 2008-01-14 Pierre Muller <[email protected]> |
6922 | ||
6923 | * win32-nat.c (win32_create_inferior): Restore code calling | |
6924 | CloseHandle on ProcessInformation structure. | |
6925 | ||
5ed10e6e NH |
6926 | 2008-01-13 Nick Hudson <[email protected]> |
6927 | ||
6928 | * configure.ac: Check for void * as 3 argument of ptrace. | |
6929 | * configure: regenerate. | |
6930 | ||
be8626e0 MD |
6931 | 2008-01-11 Markus Deuling <[email protected]> |
6932 | ||
6933 | * alpha-tdep.c (alpha_heuristic_proc_start) | |
6934 | (alpha_sigtramp_register_address): Add gdbarch as parameter. Replace | |
6935 | current_gdbarch by gdbarch. | |
6936 | ||
6937 | (alpha_heuristic_frame_unwind_cache): Use get_frame_arch to get at the | |
680b56ce | 6938 | current architecture by frame_info. Update alpha_heuristic_proc_start |
be8626e0 MD |
6939 | call. |
6940 | ||
6941 | (alpha_sigtramp_frame_this_id, alpha_sigtramp_frame_prev_register): Use | |
6942 | get_frame_arch to get at the current architecture by frame_info. Update | |
6943 | alpha_sigtramp_register_address call. | |
6944 | ||
6945 | * arm-tdep.c (thumb_scan_prologue): Add gdbarch as parameter and replace | |
6946 | current_gdbarch by gdbarch. Update caller. | |
6947 | (convert_to_extended, convert_from_extended): Add endianess parameter | |
6948 | for comparison. Update caller. | |
6949 | (arm_extract_return_value, arm_store_return_value): Use | |
6950 | get_regcache_arch to get at the current architecture. | |
6951 | ||
6952 | * cris-tdep.c (cris_register_size): Add gdbarch as parameter. Replace | |
6953 | current_gdbarch by gdbarch. Update caller. | |
6954 | (cris_gdb_func, move_to_preg_op, none_reg_mode_move_from_preg_op): Add | |
6955 | gdbarch as parameter. Update caller. Replace current_gdbarch by gdbarch. | |
6956 | ||
6957 | * h8300-tdep.c (E_PSEUDO_CCR_REGNUM, E_PSEUDO_EXR_REGNUM, BINWORD): Add | |
680b56ce | 6958 | gdbarch as parameter. Update caller. |
be8626e0 MD |
6959 | (h8300_init_frame_cache): Add gdbarch as parameter. Replace |
6960 | current_gdbarch by gdbarch. Update caller. | |
6961 | ||
680b56ce | 6962 | * hppa-tdep.c (skip_prologue_hard_way): Add gdbarch as parameter and |
be8626e0 MD |
6963 | update caller. Replace current_gdbarch by gdbarch. |
6964 | ||
6965 | * m32c-tdep.c (m32c_skip_trampoline_code): Use get_frame_arch to get at | |
6966 | the current architecture. Replace current_gdbarch by gdbarch. | |
6967 | * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise. | |
6968 | (STACK_CORRECTION, USE_PAGE_REGISTER): Replace M6811_TDEP by its | |
6969 | expression. Add gdbarch as parameter and replace current_gdbarch with | |
6970 | it. Update caller. | |
6971 | (M6811_TDEP): Remove. | |
6972 | (m68hc11_frame_prev_register): Use get_frame_arch to get at the current | |
6973 | architecture. | |
680b56ce | 6974 | (m68hc11_scan_prologue): Add gdbarch as parameter. Replace |
be8626e0 MD |
6975 | current_gdbarch by gdbarch. Update caller. |
6976 | ||
6977 | * m68k-tdep.c (m68k_analyze_prologue): Add gdbarch as parameter and | |
6978 | update caller. | |
6979 | (m68k_analyze_register_saves): Likewise. Also replace current_gdbarch | |
6980 | by gdbarch. | |
6981 | ||
6982 | * rs6000-tdep.c (skip_prologue): Add gdbarch as parameter and update | |
6983 | caller. Relace current_gdbarch by gdbarch. | |
6984 | (altivec_register_p, spe_register_p): Likewise. | |
6985 | * ppc-tdep.h (altivec_register_p, spe_register_p): Add gdbarch as | |
6986 | parameter. | |
6987 | * ppc-linux-nat.c (fetch_register, store_register): Update caller of | |
6988 | altivec_register_p and spe_register_p. | |
6989 | ||
680b56ce | 6990 | * score-tdep.c (score_fetch_inst): Add gdbarch as parameter. Update |
be8626e0 MD |
6991 | caller. Replace current_gdbarch by gdbarch. |
6992 | (score_analyze_prologue): use get_frame_arch to get at the current | |
680b56ce | 6993 | architecture. |
be8626e0 MD |
6994 | |
6995 | * sparc-tdep.h (sparc_analyze_prologue): Add gdbarch as parameter. | |
6996 | * sparc-tdep.c (sparc_analyze_prologue): Likewise. Replace | |
6997 | current_gdbarch by gdbarch. Update caller. | |
6998 | (sparc_frame_cache): Use get_frame_arch to get at the current | |
6999 | architecture. | |
7000 | * sparce64-tdep.c (sparc64_skip_prologue): Update call of | |
7001 | sparc_analyze_prologue. | |
7002 | ||
7003 | * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Add gdbarch as | |
7004 | parameter. | |
7005 | ||
ed49a04f MD |
7006 | 2008-01-11 Markus Deuling <[email protected]> |
7007 | ||
7008 | * exec.c: #include "arch-utils.h" | |
7009 | (print_section_info): Use gdbarch_from_bfd to get at the | |
7010 | current architecture. Replace current_gdbarch. Fix indention. Replace | |
7011 | deprecated_print_address_numeric by paddress. | |
7012 | * Makefile.in (exec.o) Add dependency to arch-utils.h. | |
7013 | ||
680b56ce | 7014 | * valprint.c (val_print_string): Replace |
ed49a04f MD |
7015 | deprecated_print_address_numeric. |
7016 | * tracepoint.c (trace_mention, scope_info): Likewise. | |
7017 | * symmisc.c (dump_msymbols, dump_psymtab, dump_symtab_1, print_symbol) | |
7018 | (print_symbol, print_partial_symbols, maintenance_info_psymtabs) | |
7019 | (maintenance_check_symtabs): Likewise. | |
7020 | * symfile.c (list_overlays_command): Likewise. | |
7021 | * stack.c (frame_info, print_block_frame_labels): Likewise. | |
7022 | * printcmd.c (print_address, print_address_demangle) | |
7023 | (address_info): Likewise. | |
7024 | * corefile.c (memory_error): Likewise. | |
7025 | * infcmd.c (jump_command): Likewise. | |
7026 | * breakpoint.c (insert_bp_location, describe_other_breakpoints) | |
7027 | (mention, delete_breakpoint): Likewise. | |
7028 | * c-valprint.c (print_function_pointer_address, c_val_print): Likewise. | |
7029 | * dwarf2read.c (dump_die): Likewise. | |
7030 | * ada-valprint.c (ada_val_print_1): Likewise. | |
7031 | * f-valprint.c (f_val_print): Likewise. | |
680b56ce | 7032 | * linux-fork.c (info_forks_command): Likewise. |
ed49a04f MD |
7033 | * m32r-com.c (m32r_load_section, m32r_load) |
7034 | (m32r_upload_command): Likewise. | |
7035 | ||
7036 | * ui-out.c (ui_out_field_core_addr): Remove unnecessary comment. | |
7037 | ||
6093d2eb MD |
7038 | 2008-01-11 Markus Deuling <[email protected]> |
7039 | ||
7040 | * gdbarch.sh (skip_prologue): Add gdbarch | |
7041 | as parameter. | |
7042 | * gdbarch.{c,h}: Regenerate. | |
7043 | ||
7044 | * alpha-tdep.c (alpha_skip_prologue): Add gdbarch as parameter. | |
7045 | * amd64-tdep.c (amd64_skip_prologue): Likewise. | |
7046 | * avr-tdep.c (avr_skip_prologue): Likewise. | |
7047 | * cris-tdep.c (cris_skip_prologue): Likewise. | |
7048 | * frv-tdep.c (frv_skip_prologue): Likewise. | |
7049 | * h8300-tdep.c (h8300_skip_prologue): Likewise. | |
7050 | * hppa-tdep.c (hppa_skip_prologue): Likewise. | |
7051 | * i386-tdep.c (i386_skip_prologue): Likewise. | |
7052 | * ia64-tdep.c (ia64_skip_prologue): Likewise. | |
7053 | * iq2000-tdep.c (iq2000_skip_prologue): Likewise. | |
7054 | * m32r-tdep.c (m32r_skip_prologue): Likewise. | |
7055 | * m68hc11-tdep.c (m68hc11_skip_prologue): Likewise. | |
7056 | * m68k-tdep.c (m68k_skip_prologue): Likewise. | |
7057 | * m88k-tdep.c (m88k_skip_prologue): Likewise. | |
7058 | * mep-tdep.c (mep_skip_prologue): Likewise. | |
7059 | * mips-tdep.c (mips_skip_prologue): Likewise. | |
7060 | * mn10300-tdep.c (mn10300_skip_prologue): Likewise. | |
7061 | * mt-tdep.c (mt_skip_prologue): Likewise. | |
7062 | * rs6000-tdep.c (rs6000_skip_prologue): Likewise. | |
7063 | * score-tdep.c (score_skip_prologue): Likewise. | |
7064 | * sh64-tdep.c (sh64_skip_prologue): Likewise. | |
7065 | * sh-tdep.c (sh_skip_prologue): Likewise. | |
7066 | * sparc64-tdep.c (sparc64_skip_prologue): Likewise. | |
7067 | * sparc-tdep.c (sparc32_skip_prologue): Likewise. | |
7068 | * spu-tdep.c (spu_skip_prologue): Likewise. | |
7069 | * v850-tdep.c (v850_skip_prologue): Likewise. | |
7070 | * vax-tdep.c (vax_skip_prologue): Likewise. | |
7071 | * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise. | |
7072 | * xtensa-tdep.c (xtensa_skip_prologue): Likewise. | |
7073 | ||
7074 | * arm-tdep.c (arm_skip_prologue): Add gdbarch as parameter. Replace | |
7075 | current_gdbarch by gdbarch. | |
7076 | * m32c-tdep.c (m32c_skip_prologue): Likewise. | |
7077 | * s390-tdep.c (s390_skip_prologue): Likewise. | |
7078 | ||
72f5cf0e DE |
7079 | 2008-01-10 Doug Evans <[email protected]> |
7080 | ||
7081 | * defs.h (struct continuation_arg): Fix typo in comment. | |
7082 | * target.c (target_translate_tls_address): Fix comment spelling error. | |
7083 | ||
689e4e2d TJB |
7084 | 2008-01-09 Thiago Jung Bauermann <[email protected]> |
7085 | ||
7086 | * doublest.h (DOUBLEST_PRINT_FORMAT): Remove % from string. | |
7087 | (DOUBLEST_SCAN_FORMAT): Likewise. | |
7088 | * dfp.c (decimal_from_floating): Use DOUBLEST_PRINT_FORMAT. | |
7089 | * ada-lex.l (processReal): Prepend "%" to use of DOUBLEST_SCAN_FORMAT. | |
7090 | * c-exp.y (parse_number): Likewise. | |
7091 | * jv-exp.y (parse_number): Likewise. | |
7092 | * objc-exp.y (parse_number): Likewise. | |
7093 | * p-exp.y (parse_number): Likewise. | |
7094 | ||
ab0d6e0d JB |
7095 | 2008-01-09 Joel Brobecker <[email protected]> |
7096 | ||
7097 | * gdbtypes.c (create_array_type): Add handling of null Ada arrays. | |
7098 | (check_typedef): Likewise. | |
7099 | ||
0aea4bf3 LM |
7100 | 2008-01-09 Luis Machado <[email protected]> |
7101 | ||
7102 | * printcmd.c (printf_command): Add seen_big_h, seen_big_d and | |
7103 | seen_double_big_d, treat the new H, D, and DD modifiers as length | |
7104 | modifiers. | |
7105 | ||
137033e9 JB |
7106 | 2008-01-08 Joel Brobecker <[email protected]> |
7107 | ||
7108 | * dwarf2read.c (read_enumeration_type): Add comment. | |
7109 | ||
dda297ec TJB |
7110 | 2008-01-08 Thiago Jung Bauermann <[email protected]> |
7111 | ||
7112 | * config.in: Regenerate. | |
7113 | ||
a93c0eb6 JB |
7114 | 2008-01-08 Joel Brobecker <[email protected]> |
7115 | ||
7116 | * ada-lang.c (ada_convert_actual): Renames convert_actual. | |
7117 | Make non-static. | |
7118 | (ada_convert_actuals): Delete. | |
7119 | * ada-lang.h (ada_convert_actual): Add declaration. | |
7120 | (ada_convert_actuals): Remove declaration. | |
7121 | * infcall.c: #include "ada-lang.h". | |
7122 | (value_arg_coerce): Add new parameter sp. Update function | |
7123 | documetnation. Add handling of Ada function call parameters. | |
7124 | * Makefile.in (infcall.o): Update dependencies. | |
7125 | ||
a84a8a0d JB |
7126 | 2008-01-08 Paul Hilfinger <[email protected]> |
7127 | ||
7128 | * ada-lang.c (ensure_lval): Fix value lval kind. | |
7129 | (convert_actual): Add handling for arguments passed by reference. | |
7130 | ||
d7f98cce DE |
7131 | 2008-01-08 Doug Evans <[email protected]> |
7132 | ||
7133 | * dbxread.c (read_dbx_symtab): Fix indentation. | |
7134 | ||
4ef30785 TJB |
7135 | 2008-01-07 Thiago Jung Bauermann <[email protected]> |
7136 | ||
7137 | * Makefile.in (dfp.o): Depend on expression.h, gdbtypes.h and value.h. | |
7138 | (valarith.o): Depend on dfp.h. | |
7139 | (valops.o): Likewise. | |
7140 | * dfp.c: Include expression.h, gdbtypes.h, value.h and dfp.h. | |
7141 | (set_decnumber_context): New function. | |
7142 | (decimal_check_errors): Likewise. | |
7143 | (decimal_from_number): Likewise. | |
7144 | (decimal_to_number): Likewise. | |
7145 | (decimal_from_string): Use set_decnumber_context and | |
7146 | decimal_check_errors. | |
7147 | (decimal_from_integral): New function. | |
7148 | (decimal_from_floating): Likewise. | |
7149 | (decimal_to_double): Likewise. | |
7150 | (promote_decimal): Likewise. | |
7151 | (decimal_binop): Likewise. | |
7152 | (decimal_is_zero): Likewise. | |
7153 | (decimal_compare): Likewise. | |
7154 | (decimal_convert): Likewise. | |
7155 | * dfp.h (decimal_from_integral): New prototype. | |
7156 | (decimal_from_floating): Likewise. | |
7157 | (decimal_to_double): Likewise. | |
7158 | (decimal_binop): Likewise. | |
7159 | (decimal_is_zero): Likewise. | |
7160 | (decimal_compare): Likewise. | |
7161 | (decimal_convert): Likewise. | |
7162 | * eval.c (evaluate_subexp_standard): Remove expect_type argument from | |
7163 | call to value_from_decfloat. | |
7164 | * valarith.c: Include dfp.h. | |
7165 | (value_args_as_decimal): New function. | |
7166 | (value_binop): Add if block to handle TYPE_CODE_DECFLOAT values. | |
7167 | (value_logical_not): Likewise. | |
7168 | (value_equal): Likewise. | |
7169 | (value_less): Likewise. | |
7170 | (value_pos): Likewise. | |
7171 | (value_neg): Formatting fix. | |
7172 | * valops.c: Include dfp.h. | |
7173 | (value_cast): Add if block to handle TYPE_CODE_DECFLOAT values. | |
7174 | * value.c (unpack_long): Add case to handle TYPE_CODE_DECFLOAT. | |
7175 | (unpack_double): Add if block to handle TYPE_CODE_DECFLOAT. | |
7176 | (value_from_decfloat): Remove expect_type argument. | |
7177 | * value.h (value_from_decfloat): Update prototype. | |
7178 | ||
a7c02bc8 VP |
7179 | 2008-01-07 Vladimir Prus <[email protected]> |
7180 | ||
7181 | Ignore change in name of dynamic linker during | |
7182 | execution on Solaris. This also unbreaks pending breakpoints. | |
7183 | ||
7184 | * solist.h (struct target_so_ops): New field same. | |
680b56ce AS |
7185 | * solib-svr4.c (svr4_same): New. |
7186 | (_initialize_svr4_solib): Register svr4_same. | |
7187 | * solib.c (update_solib_list): Use ops->same, if available. | |
a7c02bc8 | 7188 | |
610dd7f9 CF |
7189 | 2008-01-06 Christopher Faylor <[email protected]> |
7190 | ||
7191 | * win32-nat.c (win32_make_so): Use cygwin-style path to avoid warnings | |
7192 | when using MS-DOS paths. | |
7193 | ||
7a404eba PA |
7194 | 2008-01-05 Pedro Alves <[email protected]> |
7195 | ||
7196 | * NEWS: Mention --pid and --core command line behaviour changes. | |
7197 | ||
a4d9b460 PA |
7198 | 2008-01-05 Pedro Alves <[email protected]> |
7199 | ||
7200 | * main.c (captured_main): Remove 'count' varible and the | |
7201 | ALIGN_STACK_ON_ENTRY block that used it. Error out if --core and | |
7202 | --pid options were issued simultaneously. If an explicit pid | |
7203 | option was passed, don't fallback to core file. Detect extra | |
7204 | arguments better in the presence of explicit pid or core | |
7205 | arguments. | |
7206 | ||
0c281816 JB |
7207 | 2008-01-05 Joel Brobecker <[email protected]> |
7208 | ||
7209 | * ada-lang.c (ada_which_variant_applies): Correctly compute | |
7210 | the value of the discriminant when the variant record is packed. | |
7211 | ||
babe1480 JB |
7212 | 2008-01-04 Joel Brobecker <[email protected]> |
7213 | ||
7214 | * ada-lang.c (is_name_suffix): Handle middle-name numeric suffixes | |
7215 | that are used to differentiate homonyms. | |
7216 | ||
727e3d2e JB |
7217 | 2008-01-04 Jerome Guitton <[email protected]> |
7218 | ||
7219 | * ada-lang.c (decode_packed_array_type): Avoid a seg fault | |
7220 | when the type is an anonymous pointer type. | |
7221 | (ada_check_typedef): Avoid a seg fault when the type is null. | |
7222 | * ada-typeprint.c (print_array_type): Add support for pointer | |
7223 | to packed arrays. | |
7224 | ||
bb28a9dc JB |
7225 | 2008-01-04 Paul N. Hilfinger <[email protected]> |
7226 | ||
680b56ce | 7227 | * ada-exp.y: Allow '{type} ADDRESS' notation on left of assignment. |
bb28a9dc | 7228 | |
6799def4 JB |
7229 | 2008-01-04 Joel Brobecker <[email protected]> |
7230 | ||
7231 | * ada-lang.c (ada_evaluate_subexp): Evaluate tagged types in | |
7232 | EVAL_NORMAL mode when noside is EVAL_AVOID_SIDE_EFFECTS. | |
7233 | ||
d3353bbd JB |
7234 | 2008-01-04 Joel Brobecker <[email protected]> |
7235 | ||
7236 | * ada-exp.y (chop_separator): New function. | |
7237 | (write_selectors): Rewrite to re-use chop_separator. | |
7238 | (ada_nget_field_index, get_symbol_field_type): New functions. | |
7239 | (write_var_or_type): Add support for "ptype TYPENAME.FIELD" | |
7240 | expressions. | |
7241 | ||
82cf6c60 TJB |
7242 | 2008-01-03 Thiago Jung Bauermann <[email protected]> |
7243 | ||
7244 | * symtab.c (find_pc_sect_line): Use SYMBOL_VALUE_ADDRESS instead | |
7245 | of SYMBOL_VALUE when working with function symbols. | |
7246 | ||
b3dbf008 JB |
7247 | 2008-01-03 Joel Brobecker <[email protected]> |
7248 | ||
7249 | * ada-lang.c (resolve_subexp): Add handling of OP_REGISTER | |
7250 | expressions. These expressions do not need to be rewriten. | |
7251 | ||
02eb380e JB |
7252 | 2008-01-03 Joel Brobecker <[email protected]> |
7253 | ||
7254 | * dwarf2read.c (read_enumeration_type): Flag type as stub if | |
7255 | the given die is a declaration. | |
7256 | ||
abb68b3e JB |
7257 | 2008-01-03 Joel Brobecker <[email protected]> |
7258 | ||
7259 | * ada-lang.c (ada_array_bound_from_type): Make non-static. | |
7260 | Handle properly the case when the index type is an enumerated type. | |
7261 | Do not return the subtype of the bounds type, just return the | |
7262 | bounds type directly - this is not needed and is more consistent | |
7263 | with what we do for arrays when no XA parallel type exists. | |
7264 | ||
f192137b JB |
7265 | 2008-01-03 Joel Brobecker <[email protected]> |
7266 | ||
7267 | * ada-lang.c (static_unwrap_type): Add forward declaration. | |
7268 | (template_to_static_fixed_type): Fields of dynamic types sometimes | |
7269 | also need to be unwrapped. Take this into account. | |
7270 | (ada_to_fixed_type_1): Renamed from ada_to_fixed_type. | |
7271 | (ada_to_fixed_type): New wrapper around ada_to_fixed_type_1. | |
7272 | * ada-typeprint.c (ada_print_type): Get the typename from | |
680b56ce | 7273 | the original type, not the base type. |
f192137b | 7274 | |
1ed6ede0 JB |
7275 | 2008-01-03 Jerome Guitton <[email protected]> |
7276 | ||
7277 | * ada-lang.c (ada_value_struct_elt, to_fixed_array_type) | |
680b56ce | 7278 | (to_fixed_array_type, ada_to_fixed_value_create, unwrap_value): |
1ed6ede0 JB |
7279 | Update calls to ada_to_fixed_type. |
7280 | (ada_template_to_fixed_record_type_1): Ditto, but without looking | |
7281 | for the tag. | |
7282 | (ada_to_fixed_type): Add check_tag parameter; do not look for | |
7283 | tag if null. When looking for a tag, use a fixed record type. | |
7284 | * ada-lang.h (ada_to_fixed_type): Add check_tag parameter. | |
7285 | * ada-valprint.c (printable_val_type, ada_value_print): Update | |
7286 | calls to ada_to_fixed_type. | |
7287 | ||
542a88d0 LM |
7288 | 2008-01-03 Luis Machado <[email protected]> |
7289 | ||
680b56ce | 7290 | * doublest.c (convert_floatformat_to_doublest): Call |
542a88d0 LM |
7291 | floatformat_to_doublest instead of floatformat_to_double and use |
7292 | DOUBLEST variables. | |
7293 | (convert_doublest_to_floatformat): Call floatformat_from_doublest | |
7294 | instead of floatformat_from_double and use DOUBLEST variables. | |
7295 | ||
dc2bbab2 NH |
7296 | 2008-01-03 Nick Hudson <[email protected]> |
7297 | ||
7298 | * MAINTAINERS (Write After Approval): Add self. | |
7299 | ||
8b60591b JB |
7300 | 2008-01-03 Joel Brobecker <[email protected]> |
7301 | ||
7302 | * symfile.c (set_initial_language): Make non-static. | |
7303 | * symfile.h (set_initial_language): Add declaration. | |
7304 | * language.c: #include "symfile.h". | |
7305 | (set_language): Call set_initial_language if the frame language | |
7306 | could not be determined. | |
7307 | ||
ceef53c1 JB |
7308 | 2008-01-03 Paul N. Hilfinger <[email protected]> |
7309 | ||
7310 | * eval.c (evaluate_subexp_for_address): Provide frame address to | |
7311 | locate_var_value only if it will be needed. | |
7312 | ||
ef29ce1a JK |
7313 | 2008-01-02 Jan Kratochvil <[email protected]> |
7314 | ||
7315 | * linux-nat.c (linux_child_follow_fork): Call also CHECK_FOR_THREAD_DB. | |
7316 | ||
0a07e705 JB |
7317 | 2008-01-02 Joel Brobecker <[email protected]> |
7318 | ||
7319 | * ada-lang.c (ada_evaluate_subexp): Modify the value returned | |
7320 | when noside is EVAL_AVOID_SIDE_EFFECTS to be an lval_memory. | |
7321 | This is needed to make sure that any other treatment applied | |
7322 | to the resulting value does not fail for spurious reason, | |
7323 | such as trying to take the address of this value. | |
7324 | ||
f58b38bf JB |
7325 | 2008-01-02 Joel Brobecker <[email protected]> |
7326 | ||
7327 | * ada-lang.c (ada_value_equal): Dereference reference types when | |
7328 | comparing arrays. | |
680b56ce | 7329 | |
9b254dd1 DJ |
7330 | 2008-01-01 Daniel Jacobowitz <[email protected]> |
7331 | ||
7332 | Updated copyright notices for most files. | |
7333 | ||
33605d39 CF |
7334 | 2008-01-01 Christopher Faylor <[email protected]> |
7335 | ||
7336 | * win32-nat.c (psapi_module_handle): Remove static. | |
7337 | (get_module_name): Rename from psapi_get_dll_name. Revamp slightly to | |
7338 | return first module found if base_address is zero. Don't initialize | |
7339 | psapi function pointers here. Convert to cygwin paths when | |
7340 | appropriate. | |
7341 | (win32_pid_to_exec_file): Use Cygwin's /proc interface to determine | |
7342 | executable name. Use get_module_name when that fails or when | |
7343 | !__CYGWIN__. | |
7344 | (_initialize_psapi): New function. Initialize psapi stuff before it is | |
7345 | needed or issue a warning if it is not found. Move psapi_module_handle | |
7346 | here. | |
7347 | ||
29480c32 JB |
7348 | 2008-01-01 Joel Brobecker <[email protected]> |
7349 | ||
7350 | * ada-lang.c (ada_remove_trailing_digits): New function. | |
7351 | (ada_remove_po_subprogram_suffix): New function. | |
7352 | (ada_decode): Improve. Move the description of the algorithm | |
7353 | directly inside the code, instead of in the function global | |
7354 | description. | |
7355 | ||
969a1360 JB |
7356 | 2008-01-01 Joel Brobecker <[email protected]> |
7357 | ||
7358 | * ada-valprint.c (ada_val_print_1) [TYPE_CODE_REF]: Ignore deref_ref | |
7359 | and always print the dereferenced value. | |
7360 | ||
b7789565 JB |
7361 | 2008-01-01 Joel Brobecker <[email protected]> |
7362 | ||
7363 | * ada-lang.c (ada_evaluate_subexp, case BINOP_SUB): Add handling | |
7364 | of the case where the first argument is a reference. | |
7365 | (ada_evaluate_subexp, case BINOP_ADD): Likewise. | |
7366 | ||
73fb9985 JB |
7367 | 2008-01-01 Joel Brobecker <[email protected]> |
7368 | ||
7369 | Implement support for Ada interface types. | |
7370 | ||
7371 | * ada-lang.c (ada_is_dispatch_table_ptr_type): New function. | |
7372 | (ada_is_ignored_field): Ignore fields that are a dispatch table | |
7373 | of a tagged type. | |
7374 | ||
636265b6 JB |
7375 | 2008-01-01 Joel Brobecker <[email protected]> |
7376 | ||
7377 | * top.c (print_gdb_version): Update copyright year. | |
7378 | ||
9d200a2e | 7379 | 2008-01-01 Joel Brobecker <[email protected]> |
b7589f7d | 7380 | |
9d200a2e JB |
7381 | * ChangeLog-2007: New ChangeLog rotation. |
7382 | * ChangeLog: Reset for 2008. | |
7383 | * config/djgpp/fnchange.lst: Add entries for ChangeLog-2006 and | |
7384 | ChangeLog-2007. | |
b7589f7d | 7385 | |
9d200a2e | 7386 | For older changes see ChangeLog-2007. |
c906108c SS |
7387 | \f |
7388 | Local Variables: | |
7389 | mode: change-log | |
7390 | left-margin: 8 | |
7391 | fill-column: 74 | |
7392 | version-control: never | |
57da7796 | 7393 | coding: utf-8 |
c906108c | 7394 | End: |