]>
Commit | Line | Data |
---|---|---|
82f73884 PA |
1 | 2008-09-22 Pedro Alves <[email protected]> |
2 | ||
3 | Implement remote multi-process extensions. | |
4 | ||
5 | * remote.c (struct remote_state): Add extended and | |
6 | multi_process_aware fields. | |
7 | (remote_multi_process_p): New. | |
8 | (PACKET_vKill): New. | |
9 | (record_currthread): Use thread_change_ptid. Notice new | |
10 | inferiors. | |
11 | (set_thread, remote_thread_alive): Use write_ptid. | |
12 | (write_ptid, read_ptid): New. | |
13 | (remote_current_thread, remote_threads_extra_info): Use them. | |
14 | (remote_threads_info): Likewise. Detect new inferiors. | |
15 | (remote_start_remote): Add inferior to inferior list. | |
16 | (remote_multi_process_feature): New. | |
17 | (remote_protocol_features): Add "multiprocess" feature. | |
18 | (remote_query_supported): Pass "multiprocess+" as supported | |
19 | features. | |
20 | (remote_open_1): Clear multi_process_aware. Set extended | |
21 | accordingly. | |
22 | (remote_detach_1): Detach current process. Use extended packet | |
23 | format for extended-remote multi-process. Detach process from the | |
24 | inferior list. Only mourn after printing output. | |
25 | (extended_remote_attach_1): Add process to the inferior list. | |
26 | (remote_vcont_resume): Use write_ptid to pass the thread ids. | |
27 | (remote_wait): Use read_ptid. Implement the extended | |
28 | multi-process extension format of the 'W' and 'X' reply packets. | |
29 | Remove exited inferiors from inferior list. | |
30 | (remote_xfer_memory): Set general thread. | |
31 | (remote_vkill): New. | |
32 | (extended_remote_kill): New. | |
33 | (remote_mourn_1): Discard all inferiors. | |
34 | (select_new_thread_callback): New. | |
35 | (extended_remote_mourn_1): If there are more processes to debug, | |
36 | switch to a thread in another process, and don't pop the target. | |
37 | (extended_remote_create_inferior_1): Add the new process to the | |
38 | inferior list. | |
39 | (remote_stopped_by_watchpoint): Indenting. | |
40 | (remote_xfer_partial): Set the general thread. | |
41 | (remote_pid_to_str): If the remote is multi-process aware, print | |
42 | the process id as well as the thread id. | |
43 | (remote_get_thread_local_address): Use write_ptid. | |
44 | (init_extended_remote_ops): Register extended_remote_kill. | |
45 | (_initialize_remote): Register new packets. Change | |
46 | magic_null_ptid's, not_sent_ptid's and any_thread_ptid's pid | |
47 | member to 42000. | |
48 | ||
49 | * thread.c (thread_change_ptid): Also account for the inferior pid | |
50 | changing. | |
51 | ||
52 | * inferior.h (discard_all_inferiors): Declare. | |
53 | * inferior.c (discard_all_inferiors): New. | |
54 | ||
7f9f62ba PA |
55 | 2008-09-22 Pedro Alves <[email protected]> |
56 | ||
57 | * gnu-nat.c (gnu_attach): Add process to inferiors table. | |
58 | (gnu_detach): Remove it. | |
59 | * go32-nat.c (go32_create_inferior): Add process to gdb's inferior | |
60 | table. | |
61 | * inf-ptrace.c (inf_ptrace_follow_fork): Delete and add inferiors | |
62 | to inferior table accordingly. | |
63 | (inf_ptrace_attach): Add new process to inferior table. | |
64 | (inf_ptrace_detach): Remove it. | |
65 | * inf-ttrace.c (inf_ttrace_follow_fork): Delete and add inferiors | |
66 | to inferior table accordingly. | |
67 | (inf_ttrace_attach): Add process to inferior table. | |
68 | (inf_ttrace_detach): Remove it. | |
69 | * linux-fork.c (init_fork_list): Delete any left over inferior. | |
70 | (linux_fork_mourn_inferior, detach_fork_command): Also delete | |
71 | processes from inferior list. | |
72 | * monitor.c (monitor_open): Add process to inferior list. | |
73 | (monitor_close): Remove it. | |
74 | * nto-procfs.c (procfs_attach): Add process to inferior list. | |
75 | Find threads after pushing the target. | |
76 | (procfs_detach): Remove process from inferior list. | |
77 | (procfs_create_inferior): Add process to inferior list. | |
78 | * procfs.c (procfs_detach): Remove process from inferior list. | |
79 | (do_attach): Add process to inferior list. | |
80 | * remote-sim.c (sim_create_inferior): Add process to inferior list. | |
81 | (gdbsim_close): Remove it. | |
82 | * target.c (generic_mourn_inferior): If inferior_ptid is not | |
83 | null_ptid, remove the corresponding inferior from inferior list. | |
84 | * win32-nat.c (do_initial_win32_stuff): Add process to inferior list. | |
85 | (win32_detach): Remove it. | |
86 | * linux-nat.c (linux_child_follow_fork): Delete and add inferiors | |
87 | to inferior list accordingly. | |
88 | * fork-child.c (fork_inferior): Add process to inferior list. | |
89 | * corelow.c (CORELOW_PID): Define. | |
90 | (core_close): Remove core from inferior list. | |
91 | (core_open): Add it. | |
92 | ||
b77209e0 PA |
93 | 2008-09-22 Pedro Alves <[email protected]> |
94 | ||
95 | * inferior.h: Forward declare struct ui_out. | |
96 | Forward declare struct private_inferior. | |
97 | (struct inferior): New. | |
98 | (init_inferior_list, add_inferior, add_inferior_silent) | |
99 | (delete_inferior, delete_inferior_silent, detach_inferior) | |
100 | (gdb_inferior_id_to_pid, pid_to_gdb_inferior_id, in_inferior_list) | |
101 | (valid_inferior_id, find_inferior_pid): New functions. | |
102 | (inferior_callback_func): New typedef. | |
103 | (iterate_over_inferiors, print_inferior, have_inferiors) | |
104 | (current_inferior): New functions. | |
105 | * inferior.c: New file. | |
106 | ||
107 | * Makefile.in (SFILES): Add inferior.c. | |
108 | (COMMON_OBS): Add inferior.o. | |
109 | ||
d8c3d48d JL |
110 | 2008-09-22 Jonathan Larmour <[email protected]> |
111 | ||
112 | * arm-tdep.c (arm_skip_prologue): Call skip_prologue_using_sal | |
113 | instead of determining symbol and line info directly. | |
114 | * MAINTAINERS: Update my email address. | |
115 | ||
d54be744 DJ |
116 | 2008-09-22 Daniel Jacobowitz <[email protected]> |
117 | ||
118 | * symtab.c (skip_prologue_using_sal): Treat two consecutive lines | |
119 | at the same address as a prologue marker. Do not skip an entire | |
120 | function. | |
121 | ||
26fae1d6 AS |
122 | 2008-09-22 Andrew Stubbs <[email protected]> |
123 | ||
124 | * frame.c (get_frame_register_bytes): Comment improvments. | |
125 | ||
1ad15515 PA |
126 | 2008-09-22 Pedro Alves <[email protected]> |
127 | ||
128 | * linux-nat.c (linux_nat_wait): Only use set_ignore_sigint in | |
129 | all-stop mode. | |
130 | ||
14fc49fb AS |
131 | 2008-09-19 Andrew Stubbs <[email protected]> |
132 | ||
133 | * MAINTAINERS: Update my email address. | |
134 | ||
3f27f2a4 AS |
135 | 2008-09-19 Andrew Stubbs <[email protected]> |
136 | ||
137 | * frame.c (get_frame_register_bytes): Detect bad debug info. | |
138 | ||
88ed393a JK |
139 | 2008-09-17 Jan Kratochvil <[email protected]> |
140 | ||
141 | Fix a crash on uninitialized ECS->EVENT_THREAD for a newly found thread. | |
142 | * infrun.c (wait_for_inferior): Move this ECS->EVENT_THREAD | |
143 | initialization ... | |
144 | (fetch_inferior_event): ... and this ECS->EVENT_THREAD initialization | |
145 | ... | |
146 | (handle_inferior_event): ... here after the add_thread call together | |
147 | with the local adjust_pc_after_break and reinit_frame_cache calls. | |
148 | ||
d832cb68 DD |
149 | 2008-09-16 David Daney <[email protected]> |
150 | ||
151 | * breakpoint.c (bpstat_stop_status): Clear breakpoint_at for | |
152 | all hardware bpstats. | |
153 | ||
b1e40a6f JB |
154 | 2008-09-16 Joel Brobecker <[email protected]> |
155 | ||
156 | * gstdint.h: Delete. | |
157 | ||
50a834af MK |
158 | 2008-09-15 Mark Kettenis <[email protected]> |
159 | ||
160 | * infcall.c (generic_push_dummy_code): Remove. | |
161 | (push_dummy_code): Unconditionally call gdbarch_push_dummy_code. | |
162 | ||
9d25dd43 DE |
163 | 2008-09-15 Doug Evans <[email protected]> |
164 | ||
165 | * dwarf2read.c (struct abbrev_info): Make members name, form 16 bits. | |
166 | (struct attribute): Ditto. | |
167 | ||
85c83e99 DA |
168 | 2008-09-14 John David Anglin <[email protected]> |
169 | ||
326e541f DA |
170 | * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind_cache): Record |
171 | HPPA_IPSW_REGNUM and HPPA_SAR_REGNUM values. | |
172 | ||
85c83e99 DA |
173 | * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum): Remove surrounding |
174 | "#if 0" "#endif". Fix mapping of DWARF DBX registers to GDB registers. | |
175 | Correct arguments and improve comments. | |
176 | (hppa_linux_init_abi): Call set_gdbarch_dwarf2_reg_to_regnum. Delete | |
177 | disabled code. | |
178 | * hppa-tdep.c (hppa64_dwarf_reg_to_regnum): Fix check for floating | |
179 | point DBX register, change error to warning, and improve comments. | |
180 | ||
76815b17 DE |
181 | 2008-09-14 Doug Evans <[email protected]> |
182 | ||
183 | * dwarf2read.c (struct die_info): Make members tag, num_attrs 16 bits. | |
184 | ||
51e753cf DA |
185 | 2008-09-14 John David Anglin <[email protected]> |
186 | ||
187 | * hppa-linux-tdep.c (hppa_linux_supply_fpregset): Correct iteration. | |
188 | ||
06e476f5 JB |
189 | 2008-09-13 Joel Brobecker <[email protected]> |
190 | ||
191 | * defs.h (GCC_GENERATED_STDINT_H): Define. | |
192 | ||
6c761d9c TT |
193 | 2008-09-13 Tom Tromey <[email protected]> |
194 | ||
195 | * varobj.c (varobj_set_display_format): Use xfree. | |
196 | * tracepoint.c (stringify_collection_list): Use xfree. | |
197 | * remote-fileio.c (remote_fileio_reset): Use xfree. | |
198 | * mipsread.c (read_alphacoff_dynamic_symtab): Use xfree. | |
199 | * dfp.c (decimal_from_floating): Use xfree, xstrprintf. Don't use | |
200 | asprintf. | |
201 | * cp-support.c (mangled_name_to_comp): Use xfree. | |
202 | ||
339c13b6 JB |
203 | 2008-09-13 Joel Brobecker <[email protected]> |
204 | ||
205 | * ada-lang.c (remove_extra_symbols): Remove stub symbols if | |
206 | the associated complete symbol is also in the list. | |
207 | (ada_add_local_symbols, ada_add_non_local_symbols): New functions, | |
208 | extracted out from ada_lookup_symbol_list. | |
209 | (ada_lookup_symbol_list): Use them. Remove the search through | |
210 | the minimal symbols. | |
211 | ||
bc30ff58 JB |
212 | 2008-09-13 Joel Brobecker <[email protected]> |
213 | ||
214 | * dwarf2read.c (add_partial_subprogram): New procedure. | |
215 | (scan_partial_symbols): Use it. | |
216 | (load_partial_dies): Read in children of subprogram and lexical | |
217 | blocks for Ada compilation units. | |
218 | ||
bb01da77 TT |
219 | 2008-09-13 Tom Tromey <[email protected]> |
220 | ||
221 | * symfile.c (build_id_verify): Free 'found'. | |
222 | (find_separate_debug_file): Use xfree, not free. | |
223 | ||
d00adf39 DE |
224 | 2008-09-12 Doug Evans <[email protected]> |
225 | ||
00630ca8 DE |
226 | * corefile.c (write_memory): Remove unnecessary copying. |
227 | ||
5d6fa950 DE |
228 | * sol-thread.c (_initialize_sol_thread): Add FIXME regarding |
229 | order of _initialize_* fns. | |
230 | ||
d00adf39 DE |
231 | * dwarf2read.c (comp_unit_head): Rename first_die_ptr to |
232 | first_die_offset. All uses updated. | |
233 | Delete unused members cu_head_ptr, next. | |
234 | Move members base_known, base_address to ... | |
235 | (dwarf2_cu) ... here. All uses updated. | |
236 | ||
3d0bb823 PA |
237 | 2008-09-12 Pedro Alves <[email protected]> |
238 | ||
239 | * Makefile.in (generated_files): Add $(NAT_GENERATED_FILES). | |
240 | * config/i386/i386gnu.mh (NAT_GENERATED_FILES): New. | |
241 | ||
3c35e65b UW |
242 | 2008-09-11 Ulrich Weigand <[email protected]> |
243 | ||
244 | * fork-child.c (startup_inferior): Use target_wait and target_resume | |
245 | directly instead of calling wait_for_inferior / resume. | |
246 | ||
247 | * infcmd.c (kill_if_already_running): Do not call no_shared_libraries | |
248 | or init_wait_for_inferior. | |
249 | (run_command_1): Call init_wait_for_inferior. | |
250 | ||
4cca3ac9 UW |
251 | 2008-09-11 Ulrich Weigand <[email protected]> |
252 | ||
253 | * gdbtypes.h (builtin_type_void_data_ptr, builtin_type_void_func_ptr, | |
254 | builtin_type_CORE_ADDR, builtin_type_char, builtin_type_short, | |
255 | builtin_type_int, builtin_type_long, builtin_type_signed_char, | |
256 | builtin_type_unsigned_char, builtin_type_unsigned_short, | |
257 | builtin_type_unsigned_int, builtin_type_unsigned_long, | |
258 | builtin_type_float, builtin_type_double, builtin_type_long_double, | |
259 | builtin_type_complex, builtin_type_double_complex, builtin_type_string, | |
260 | builtin_type_bool, builtin_type_long_long, | |
261 | builtin_type_unsigned_long_long): Remove macros. | |
262 | ||
263 | (builtin_type_f_character, builtin_type_f_integer, | |
264 | builtin_type_f_integer_s2, builtin_type_f_logical, | |
265 | builtin_type_f_logical_s1, builtin_type_f_logical_s2, | |
266 | builtin_type_f_real, builtin_type_f_real_s8, builtin_type_f_real_s16, | |
267 | builtin_type_f_complex_s8, builtin_type_f_complex_s16, | |
268 | builtin_type_f_complex_s32): Likewise. | |
269 | ||
270 | (builtin_type_m2_char, builtin_type_m2_int, builtin_type_m2_card, | |
271 | builtin_type_m2_real, builtin_type_m2_bool): Likewise. | |
272 | ||
273 | (struct builtin_f_type, builtin_f_type): Move to f-lang.h. | |
274 | (struct builtin_m2_type, builtin_m2_type): Move to m2-lang.h. | |
275 | ||
276 | * f-lang.h (struct builtin_f_type, builtin_f_type): Move here. | |
277 | * m2-lang.h (struct builtin_m2_type, builtin_m2_type): Move here. | |
278 | ||
b6da22b0 UW |
279 | 2008-09-11 Ulrich Weigand <[email protected]> |
280 | ||
281 | * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Use builtin types of | |
282 | target_gdbarch instead of builtin_type_void_data_ptr. | |
283 | (LM_DYNAMIC_FROM_LINK_MAP, LM_NEXT, LM_NAME, | |
284 | IGNORE_FIRST_LINK_MAP_ENTRY, scan_dyntag, elf_locate_base, | |
285 | solib_svr4_r_map, solib_svr4_r_brk, solib_svr4_r_ldsomap, | |
286 | open_symbol_file_object): Likewise. | |
287 | * nto-tdep.c (LM_ADDR): Likewise. | |
288 | ||
ff7da468 UW |
289 | 2008-09-11 Ulrich Weigand <[email protected]> |
290 | ||
291 | * bsd-uthread.c (bsd_uthread_read_memory_address): New function. | |
292 | (bsd_uthread_fetch_registers, bsd_uthread_store_registers, | |
293 | bsd_uthread_wait, bsd_uthread_find_new_threads): Use it. | |
294 | ||
4e906f53 UW |
295 | 2008-09-11 Ulrich Weigand <[email protected]> |
296 | ||
297 | * procfs.c (procfs_address_to_host_pointer): Use target_gdbarch | |
298 | and its associated types to perform pointer conversion. | |
299 | (procfs_can_use_hw_breakpoint): Likewise. | |
300 | (procfs_auxv_parse): Remove unused variable. | |
301 | ||
ffe5a37e UW |
302 | 2008-09-11 Ulrich Weigand <[email protected]> |
303 | ||
304 | * auxv.c (default_auxv_parse): Use gdbarch_ptr_bit (target_gdbarch) | |
305 | instead of builtin_type_void_data_ptr. | |
306 | * target.c (default_region_ok_for_hw_watchpoint): Likewise. | |
307 | ||
b806fb9a UW |
308 | 2008-09-11 Ulrich Weigand <[email protected]> |
309 | ||
310 | * expprint.c (print_subexp_standard): Compare against builtin type | |
311 | associated with exp->gdbarch instead of builtin_type_char. | |
312 | ||
313 | * f-valprint.c (f_val_print): Use extract_unsigned_integer to | |
314 | extract values of arbitrary logical type. Handle arbitrary | |
315 | complex types. | |
316 | ||
317 | * printcmd.c (float_type_from_length): New function. | |
318 | (print_scalar_formatted, printf_command): Use it. | |
319 | ||
3e3b026f UW |
320 | 2008-09-11 Ulrich Weigand <[email protected]> |
321 | ||
322 | * valops.c: Include "objfiles.h" and "symtab.h". | |
323 | (find_function_in_inferior): New argument OBJF_P. Use it to return | |
324 | objfile where function is defined. Use per-objfile arch types | |
325 | instead of builtin_type_ to define default return type. | |
326 | ||
327 | * linux-fork.c (checkpoint_command): Update calls. Use per-objfile | |
328 | architecture to define inferior call argument types. | |
329 | * gcore.c (derive_heap_segment): Likewise. | |
330 | * objc-lang.c (value_nsstring): Likewise. | |
331 | * scm-lang.c (scm_lookup_name): Likewise. | |
332 | * scm-valprint.c (scm_inferior_print): Likewise. | |
333 | * valops.c (value_allocate_space_in_inferior): Likewise. | |
334 | ||
335 | * eval.c (evaluate_subexp_standard): Update calls. | |
336 | * objc-lang.c (lookup_objc_class, print_object_command): Likewise. | |
337 | ||
338 | * linux-fork.c: Include "objfiles.h". | |
339 | * scm-lang.c: Include "objfiles.h". | |
340 | * scm-valprint.c: Include "objfiles.h". | |
341 | ||
f8dcfc0a UW |
342 | 2008-09-11 Ulrich Weigand <[email protected]> |
343 | ||
344 | * gdbarch.sh (name_of_malloc): Remove. | |
345 | * gdbarch.c, gdbarch.h: Re-generate. | |
346 | * valops.c (value_allocate_space_in_inferior): Do not call | |
347 | gdbarch_name_of_malloc. | |
348 | ||
c56324e0 UW |
349 | 2008-09-11 Ulrich Weigand <[email protected]> |
350 | ||
351 | * valarith.c (value_x_unop): Use builtin_type_int8 as type for | |
352 | UNOP_POSTINCREMENT/UNOP_POSTDECREMENT constant 0 argument. | |
353 | (value_bit_index): Use extract_unsigned_integer | |
354 | instead of unpack_long to read single byte. | |
355 | ||
7788af6d UW |
356 | 2008-09-11 Ulrich Weigand <[email protected]> |
357 | ||
358 | * infcall.c (value_arg_coerce): Add GDBARCH parameter. Use its | |
359 | associates types instead of builtin_type_ macros. | |
360 | (find_function_addr): Leave output VALUE_TYPE NULL if unknown. | |
361 | (call_function_by_hand): Use per-architecture "int" type as | |
362 | fall-back if find_function_addr returns NULL VALUE_TYPE. | |
363 | Update call to value_arg_coerce. | |
364 | ||
ad4820ab UW |
365 | 2008-09-11 Ulrich Weigand <[email protected]> |
366 | ||
367 | * cp-abi.h (cplus_method_ptr_size): Add TO_TYPE parameter. | |
368 | (cplus_make_method_ptr): Add TYPE parameter. | |
369 | * cp-abi.c (cplus_method_ptr_size): Add TO_TYPE parameter. Pass it | |
370 | on to current_cp_abi.method_ptr_size callback. | |
371 | (cplus_make_method_ptr): Add TYPE parameter. Pass it on to | |
372 | current_cp_abi.make_method_ptr callback. | |
373 | ||
374 | * gdbtypes.c (lookup_methodptr_type): Pass target type | |
375 | argument to cplus_method_ptr_size. | |
376 | * valops.c (value_cast): Pass type argument to cplus_make_method_ptr. | |
377 | (value_struct_elt_for_reference): Likewise. | |
378 | ||
379 | * gnu-v3-abi.c (get_class_arch): New function. | |
380 | (vtable_address_point_offset): Add GDBARCH parameter. Use it | |
381 | instead of current_gdbarch. Update all callers. | |
382 | (gnuv3_get_vtable): Likewise. | |
383 | (gnuv3_get_virtual_fn): Likewise. | |
384 | (gnuv3_decode_method_ptr): Likewise. | |
385 | (gnuv3_rtti_type): Call get_class_arch to determine architecture. | |
386 | Use it instead of current_gdbarch. | |
387 | (gnuv3_virtual_fn_field): Likewise. | |
388 | (gnuv3_baseclass_offset): Likewise. | |
389 | (gnuv3_print_method_ptr): Likewise. | |
390 | (gnuv3_method_ptr_to_value): Likewise. | |
391 | (gnuv3_method_ptr_size): Add TYPE parameter. Use it to determine | |
392 | class architecture. Use architecture types instead of builtin types. | |
393 | (gnuv3_make_method_ptr): Likewise. | |
394 | ||
395 | * cp-valprint.c (cp_print_class_member): Expect pointer type | |
396 | instead of class type. Use its length when extracting value. | |
397 | * c-valprint.c (c_val_print): Update call to cp_print_class_member. | |
398 | ||
5ed92fa8 UW |
399 | 2008-09-11 Ulrich Weigand <[email protected]> |
400 | ||
401 | * stack.c (return_command): Use frame architecture to determine | |
402 | default integer return type. | |
403 | ||
404 | * f-valprint.c (f77_get_dynamic_lowerbound): Use frame architecture | |
405 | to determine pointer types. | |
406 | (f77_get_dynamic_upperbound): Likewise. | |
407 | ||
408 | * objc-lang.c (OBJC_FETCH_POINTER_ARGUMENT): Remove. | |
409 | (resolve_msgsend): Use architecture of current frame to determine | |
410 | pointer types. Inline OBJC_FETCH_POINTER_ARGUMENT. | |
411 | (resolve_msgsend_stret, resolve_msgsend_super, | |
412 | resolve_msgsend_super_stret): Likewise. | |
413 | ||
0dfff4cb UW |
414 | 2008-09-11 Ulrich Weigand <[email protected]> |
415 | ||
416 | * alpha-tdep.c (alpha_register_type): Use builtin_type (gdbarch) | |
417 | instead of builtin_type_ macros. | |
418 | * amd64-tdep.c (amd64_register_type): Likewise. | |
419 | (amd64_get_longjmp_target): Likewise. | |
420 | * arm-tdep.c (arm_register_type): Likewise. | |
421 | * avr-tdep.c (avr_register_type): Likewise. | |
422 | * cris-tdep.c (cris_register_type, crisv32_register_type): Likewise. | |
423 | * frv-tdep.c (frv_register_type): Likewise. | |
424 | * h8300-tdep.c (h8300_register_type): Likewise. | |
425 | * hppa-tdep.c (hppa32_convert_from_func_ptr_addr, | |
426 | hppa_skip_trampoline_code): Likewise. | |
427 | * i386-tdep.c (i386_register_type): Likewise. | |
428 | (i386_unwind_pc, i386_sse_type): Likewise. | |
429 | * ia64-tdep.c (ia64_register_type): Likewise. | |
430 | * m32r-tdep.c (m32r_register_type): Likewise. | |
431 | * m68k-tdep.c (m68k_register_type, m68k_unwind_pc): Likewise. | |
432 | * m88k-tdep.c (m88k_register_type): Likewise. | |
433 | * mep-tdep.c (mep_register_type): Likewise. | |
434 | * mips-tdep.c (mips_pseudo_register_type): Likewise. | |
435 | * mn10300-tdep.c (mn10300_register_type): Likewise. | |
436 | * mt-tdep.c (mt_copro_register_type): Likewise. | |
437 | * rs6000-tdep.c (rs6000_builtin_type_vec64): Likewise. | |
438 | (rs6000_convert_register_p, rs6000_register_to_value, | |
439 | rs6000_value_to_register): Likewise. | |
440 | * s390-tdep.c (s390_register_type): Likewise. | |
441 | * sh64-tdep.c (sh64_register_type): Likewise. | |
442 | (sh64_build_float_register_type, sh64_do_fp_register): Likewise. | |
443 | * sh-tdep.c (sh_sh2a_register_type, sh_sh3e_register_type, | |
444 | sh_sh4_build_float_register_type, sh_sh4_register_type, | |
445 | sh_default_register_type): Likewise. | |
446 | * sparc64-tdep.c (sparc64_register_type): Likewise. | |
447 | * sparc-tdep.c (sparc32_register_type): Likewise. | |
448 | * spu-tdep.c (spu_builtin_type_vec128, spu_register_type): Likewise. | |
449 | * v850-tdep.c (v850_register_type): Likewise. | |
450 | * vax-tdep.c (vax_register_type): Likewise. | |
451 | * xtensa-tdep.c (xtensa_register_type, xtensa_unwind_pc, | |
452 | xtensa_push_dummy_call): Likewise. | |
453 | ||
454 | * std-regs.c (value_of_builtin_frame_fp_reg, | |
455 | value_of_builtin_frame_pc_reg): Likewise. | |
456 | * target-descriptions.c (tdesc_register_type): Likewise. | |
457 | ||
6d84d3d8 UW |
458 | 2008-09-11 Ulrich Weigand <[email protected]> |
459 | ||
460 | * ada-lang.c (ada_coerce_to_simple_array_type): Use builtin_type_int32 | |
461 | instead of builtin_type_int as default unspecified integral type. | |
462 | (ada_index_type, ada_array_bound_from_type, ada_variant_discrim_type, | |
463 | assign_component, to_fixed_range_type): Likewise. | |
464 | * ada-typeprint.c (print_range, print_range_bound, | |
465 | print_range_type_named): Likewise. | |
466 | * ada-valprint.c (print_optional_low_bound, ada_val_print_1): Likewise. | |
467 | * eval.c (evaluate_subexp_standard): Likewise. | |
468 | * gnu-v2-abi.c (gnuv2_virtual_fn_field): Likewise. | |
469 | * gnu-v3-abi.c (gnuv3_get_virtual_fn, gnuv3_baseclass_offset, | |
470 | build_gdb_vtable_type): Likewise. | |
471 | * jv-lang.c (java_array_type): Likewise. | |
472 | * m2-typeprint.c (m2_print_bounds, m2_is_long_set_of_type): Likewise. | |
473 | * m2-valprint.c (m2_print_long_set): Likewise. | |
474 | * parse.c (follow_types): Likewise. | |
475 | * p-typeprint.c (pascal_type_print_base): Likewise. | |
476 | * valops.c (value_one, value_array, value_string, | |
477 | value_bitstring): Likewise. | |
478 | * value.c (allocate_repeat_value, value_from_string): Likewise. | |
479 | * varobj.c (c_describe_child): Likewise. | |
480 | * mt-tdep.c (mt_register_type): Likewise. | |
481 | * sh-tdep.c (sh_sh4_build_float_register_type): Likewise. | |
482 | * sh64-tdep.c (sh64_build_float_register_type): Likewise. | |
483 | ||
180b9a0e UW |
484 | 2008-09-11 Ulrich Weigand <[email protected]> |
485 | ||
486 | * defs.h (struct gdbarch): Add forward declaration. | |
487 | (set_next_address): Add GDBARCH argument. | |
488 | * printcmd.c (set_next_address): Use it to find pointer type. | |
489 | * breakpoint.c (breakpoint_1): Update call. | |
490 | * source.c (line_info): Likewise. | |
491 | * findcmd.c (find_command): Use current_gdbarch to find pointer type. | |
492 | ||
493 | * breakpoint.c (set_breakpoint_count): Use platform-neutral | |
494 | types for internal variable values. | |
495 | * infrun.c (handle_inferior_event): Likewise. | |
496 | * source.c (forward_search_command, reverse_search_command): Likewise. | |
497 | * tracepoint.c (set_tracepoint_count, set_traceframe_num, | |
498 | set_tracepoint_num, set_traceframe_context): Likewise. | |
499 | ||
b769d911 UW |
500 | 2008-09-11 Ulrich Weigand <[email protected]> |
501 | ||
502 | * gdbtypes.h (struct builtin_type): Remove builtin_true_char | |
503 | and builtin_true_unsigned_char. | |
504 | (builtin_type_true_char): Remove macro, add extern declaration. | |
505 | (builtin_type_true_unsigned_char): Add extern declaration. | |
506 | * gdbtypes.c (builtin_type_true_char): New global variable. | |
507 | (builtin_type_true_unsigned_char): Likewise. | |
508 | (_initialize_gdbtypes): Initialize them. | |
509 | (gdbtypes_post_init): Do not initialize builtin_true_char | |
510 | and builtin_true_unsigned_char members of struct builtin_type. | |
511 | ||
512 | * printcmd.c (print_scalar_formatted): Do not use builtin_type; | |
513 | use builtin_type_true_unsigned_char instead. | |
514 | ||
515 | * ada-valprint.c (ada_val_print_1): Use builtin_type_true_char | |
516 | instead of builtin_type_char for internal string. | |
517 | ||
fde6c819 UW |
518 | 2008-09-11 Ulrich Weigand <[email protected]> |
519 | ||
520 | * gdbtypes.h (builtin_type_void): Remove macro, add declaration. | |
521 | (builtin_type_f_void): Remove macro. | |
522 | * gdbtypes.c (builtin_type_void): New global variable. | |
523 | (_initialize_gdbtypes): Initialize it. | |
524 | ||
525 | * gnu-v3-abi.c (build_gdb_vtable_type): Do not call | |
526 | lookup_pointer_type or lookup_function_type on builtin_type_void. | |
527 | * printcmd.c (set_next_address): Likewise. | |
528 | * objc-lang.c (value_nsstring): Likewise. | |
529 | * mt-tdep.c (mt_copro_register_type): Likewise. | |
530 | * xtensa-tdep.c (xtensa_register_type): Likewise. | |
531 | ||
532 | * symfile.c (syms_from_objfile): Remove special handling | |
533 | of builtin_type_void and builtin_type_char. | |
534 | ||
d4dbb9c7 UW |
535 | 2008-09-11 Ulrich Weigand <[email protected]> |
536 | ||
537 | * eval.c (evaluate_subexp_standard): Use exp->gdbarch types instead | |
538 | of builtin_type_ macros when handling OP_OBJC_ operations. | |
539 | * objc-lang.c (print_object_command): Likewise. | |
540 | ||
8ca1c40e UW |
541 | 2008-09-11 Ulrich Weigand <[email protected]> |
542 | ||
543 | * ada-valprint.c: Include "objfiles.h". | |
544 | (ada_val_print_1): Use the gdbarch associated with the objfile whether | |
545 | a System.Address type is defined to retrieve the proper pointer type | |
546 | to use to print it. | |
547 | ||
3cb382c9 UW |
548 | 2008-09-11 Ulrich Weigand <[email protected]> |
549 | ||
550 | * ada-lang.c (value_pos_atr): Add TYPE argument. Use it as | |
551 | result type instead of builtin_type_int. | |
552 | (value_subscript_packed): Use pos_atr instead of value_pos_atr. | |
553 | (ada_value_subscript): Update call to value_pos_atr. | |
554 | (ada_value_ptr_subscript): Likewise. | |
555 | (ada_evaluate_subexp): Likewise. | |
556 | ||
a53b7a21 UW |
557 | 2008-09-11 Ulrich Weigand <[email protected]> |
558 | ||
559 | * ada-lang.c (cast_to_fixed): Do not cast to builtin_type_double. | |
560 | (cast_from_fixed_to_double): Rename to ... | |
561 | (cast_from_fixed): ... this. Add TYPE parameter. Use it instead | |
562 | of builtin_type_double. | |
563 | (ada_value_cast): Use cast_from_fixed instead of casting result | |
564 | of cast_from_fixed_to_double. | |
565 | (ada_evaluate_subexp): Update calls to cast_from_fixed_to_double. | |
566 | ||
22fe0fbb UW |
567 | 2008-09-11 Ulrich Weigand <[email protected]> |
568 | ||
569 | * valops.c (value_ind): No longer allow dereferencing an | |
570 | integer type. | |
571 | * eval.c (evaluate_subexp_standard): Handle deferencing an | |
572 | integer type here. | |
573 | * ada-lang.c (ada_evaluate_subexp): Likewise. | |
574 | ||
d8631d21 UW |
575 | 2008-09-11 Ulrich Weigand <[email protected]> |
576 | ||
577 | * ada-valprint.c (ada_val_print_1): When implicitly dereferencing | |
578 | a reference type, pass the reference type directly to unpack_pointer. | |
579 | * c-valprint.c (c_val_print): Likewise. | |
580 | * f-valprint.c (f_val_print): Likewise. | |
581 | * m2-valprint.c (print_variable_at_address, m2_val_print): Likewise. | |
582 | * p-valprint.c (pascal_val_print): Likewise. | |
583 | ||
cb18ec49 UW |
584 | 2008-09-11 Ulrich Weigand <[email protected]> |
585 | ||
586 | * eval.c (evaluate_subexp_standard): Use builtin_type_int8 | |
587 | to construct the EVAL_SKIP dummy return value. | |
588 | * ada-lang.c (ada_evaluate_subexp): Likewise. | |
589 | * jv-lang.c (evaluate_subexp_java): Likewise. | |
590 | * m2-lang.c (evaluate_subexp_modula2): Likewise. | |
591 | * scm-lang.c (evaluate_exp): Likewise. | |
592 | ||
0ab7ba45 UW |
593 | 2008-09-11 Ulrich Weigand <[email protected]> |
594 | ||
595 | * value.h (coerce_enum, coerce_number): Remove prototypes. | |
596 | * value.c (coerce_enum, coerce_number): Remove. | |
597 | * valarith.c (value_x_binop): Do not call coerce_enum. | |
598 | (value_x_unop): Likewise. | |
599 | (value_logical_not): Call coerce_array instead of coerce_number. | |
600 | ||
f7c79c41 UW |
601 | 2008-09-11 Ulrich Weigand <[email protected]> |
602 | ||
603 | * ax-gdb.c: Include "language.h". | |
604 | (gen_frame_args_address): Add GDBARCH parameter; use it | |
605 | instead of current_gdbarch. | |
606 | (gen_frame_locals_address): Likewise. | |
607 | (gen_var_ref): Add GDBARCH parameter. Update calls to | |
608 | gen_frame_args_address and gen_frame_locals_address. Use | |
609 | pointer type from gdbarch. | |
610 | (gen_usual_unary): Add EXP parameter. Use integer type | |
611 | from exp->gdbarch. | |
612 | (gen_usual_arithmetic): Likewise. | |
613 | (gen_integral_promotions): Likewise. | |
614 | (gen_add, gen_sub): Remove. | |
615 | (gen_ptradd, gen_ptrsub, gen_ptrdiff): New functions. | |
616 | (gen_logical_not): Use passed-in boolean result type | |
617 | instead of builtin_type_int. | |
618 | (gen_complement): Do not call gen_usual_unary or | |
619 | gen_integral_promotions. | |
620 | (gen_struct_ref): Call require_rvalue instead of gen_usual_unary. | |
621 | (gen_repeat): Add EXP parameter. Update call to gen_expr. | |
622 | Use builtin_type_int32 as internal range type. | |
623 | (gen_sizeof): Add EXP and SIZE_TYPE parameters. Use SIZE_TYPE | |
624 | as result type. Update call to gen_expr. | |
625 | (gen_expr): Add EXP parameter. Update calls to gen_expr, | |
626 | gen_repeat, gen_var_ref, gen_usual_unary, gen_usual_arithmetic, | |
627 | and gen_integral_promotions. Call gen_ptradd, gen_ptrsub, | |
628 | gen_ptrdiff, or gen_binop instead of gen_add or gen_sub. | |
629 | Use exp->gdbarch instead of current_gdbarch. | |
630 | Call language_bool_type to determine result type of UNOP_LOGICAL_NOT. | |
631 | ||
f44316fa UW |
632 | 2008-09-11 Ulrich Weigand <[email protected]> |
633 | ||
634 | * eval.c (evaluate_subexp_standard): Add calls to binop_promote | |
635 | and unop_promote before calling value_binop et. al. | |
636 | * ada-lang.c (ada_evaluate_subexp): Add calls to binop_promote | |
637 | and unop_promote before calling value_binop et. al. | |
638 | ||
639 | * valarith.c (value_binop): Do not call binop_promote or unop_promote. | |
640 | (value_pos): Do not call unop_promote. | |
641 | (value_neg, value_complement): Likewise. | |
642 | ||
4066e646 UW |
643 | 2008-09-11 Ulrich Weigand <[email protected]> |
644 | ||
645 | * value.h (unop_promote, binop_promote): Add prototypes. | |
646 | * eval.c (unop_promote, binop_promote): New functions. | |
647 | * valarith.c (unop_result_type, binop_result_type): Remove. | |
648 | (value_binop): Call binop_promote or unop_promote. | |
649 | Inline remaining parts of binop_result_type. Remove special | |
650 | code to truncate integer values for unsigned operations. | |
651 | (value_pos): Call unop_promote. Inline remaining parts of | |
652 | unop_result_type. | |
653 | (value_neg, value_complement): Likewise. | |
654 | ||
89eef114 UW |
655 | 2008-09-11 Ulrich Weigand <[email protected]> |
656 | ||
657 | * value.h (value_add, value_sub): Remove. | |
658 | (value_ptradd, value_ptrsub, value_ptrdiff): Add prototypes. | |
659 | * valarith.c (value_add, value_sub): Remove. | |
660 | (value_ptradd, value_ptrsub, value_ptrdiff): New functions. | |
661 | (find_size_for_pointer_math): Add assertion. Update comment. | |
662 | (value_binop): Update comment. | |
663 | ||
664 | * eval.c (ptrmath_type_p): New function. | |
665 | (evaluate_subexp_standard): Replace value_add and value_sub | |
666 | by value_ptradd, value_ptrsub, value_ptrdiff or value_binop. | |
667 | Use builtin_type_uint8 instead of builtin_type_char to hold | |
668 | the increment for BINOP_{PRE,POST}{IN,DE}CREMENT operations. | |
669 | * valarith.c (value_subscript): Replace value_add by | |
670 | value_ptradd. Replace value_sub by value_binop. | |
671 | * ada-lang.c (ada_value_ptr_subscript): Likewise. | |
672 | (ada_tag_name_2): Replace value_add by value_ptradd. | |
673 | (ada_evaluate_subexp): Replace value_add and value_sub by | |
674 | value_binop. | |
675 | * m2-lang.c (evaluate_subexp_modula2): Replace value_add | |
676 | by value_ptradd. | |
677 | * gnu-v2-abi.c (gnuv2_virtual_fn_field): Likewise. | |
678 | * gnu-v3-abi.c (gnuv3_method_ptr_to_value): Likewise. | |
679 | ||
98b90dd8 UW |
680 | 2008-09-11 Ulrich Weigand <[email protected]> |
681 | ||
682 | * eval.c (evaluate_subexp_for_sizeof): Use builtin_int type of | |
683 | the expression architecture instead of builtin_type_int as the | |
684 | sizeof return type. | |
685 | ||
c806c55a UW |
686 | 2008-09-11 Ulrich Weigand <[email protected]> |
687 | ||
688 | * expression.h (enum exp_opcode): Document OP_COMPLEX to take | |
689 | a type parameter as expression element. | |
690 | * eval.c (evaluate_subexp_standard) [OP_COMPLEX]: Retrieve result | |
691 | type as expression element. | |
692 | * f-exp.y: Pass in type when buildin OP_COMPLEX expression. | |
693 | * parse.c (operator_length_standard): Update length of OP_COMPLEX. | |
694 | ||
fbb06eb1 UW |
695 | 2008-09-11 Ulrich Weigand <[email protected]> |
696 | ||
697 | * language.h (struct language_arch_info): New members | |
698 | bool_type_default and bool_type_symbol. | |
699 | (lang_bool_type): Remove prototype. | |
700 | (LA_BOOL_TYPE): Remove macro. | |
701 | (language_bool_type): Add prototype. | |
702 | * language.c (lang_bool_type): Remove. | |
703 | (language_bool_type): New function. | |
704 | ||
705 | * value.h (value_in): Change return value to int. | |
706 | * value.c (value_in): Return int instead of struct value *. | |
707 | ||
708 | * eval.c (evaluate_subexp_standard): Call language_bool_type instead | |
709 | of using LA_BOOL_TYPE. Update call to value_in. | |
710 | * ada-lang.c (ada_evaluate_subexp): Call language_bool_type instead | |
711 | of using LA_BOOL_TYPE or builtin_type_int for boolean values. | |
712 | ||
713 | * language.c (unknown_language_arch_info): Set bool_type_default member | |
714 | of struct language_arch_info. | |
715 | * ada-lang.c (ada_language_arch_info): Set bool_type_symbol and | |
716 | bool_type_default members of struct language_arch_info. | |
717 | * c-lang.c (c_language_arch_info): Set bool_type_default member | |
718 | of struct language_arch_info. | |
719 | (cplus_language_arch_info): Set bool_type_symbol and bool_type_default | |
720 | members of struct language_arch_info. | |
721 | * f-lang.c (f_language_arch_info): Set bool_type_symbol and | |
722 | bool_type_default members of struct language_arch_info. | |
723 | * jv-lang.c (java_language_arch_info): Set bool_type_symbol and | |
724 | bool_type_default members of struct language_arch_info. | |
725 | * m2-lang.c (m2_language_arch_info): Set bool_type_symbol and | |
726 | bool_type_default members of struct language_arch_info. | |
727 | * p-lang.c (p_language_arch_info): Set bool_type_symbol and | |
728 | bool_type_default members of struct language_arch_info. | |
729 | ||
de7b6b47 UW |
730 | 2008-09-11 Ulrich Weigand <[email protected]> |
731 | ||
732 | * jv-lang.c (enum java_primitive_types): New type. | |
733 | (java_language_arch_info): New function. | |
734 | (java_language): Use it instead of c_language_arch_info. | |
735 | ||
afc05acb UW |
736 | 2008-09-11 Ulrich Weigand <[email protected]> |
737 | ||
738 | * value.h (value_bitstring_subscript): New prototype. | |
739 | * valarith.h (value_bitstring_subscript): New function. | |
740 | (value_subscript): No longer handle TYPE_CODE_BITSTRING. | |
741 | * eval.c (evaluate_subexp_standard): Call value_bitstring_subscript | |
742 | instead of value_subscript to handle TYPE_CODE_BITSTRING. | |
743 | ||
3e79cecf UW |
744 | 2008-09-11 Ulrich Weigand <[email protected]> |
745 | ||
746 | * expression.h (struct expression): New member GDBARCH. | |
747 | * parse.c (parse_exp_in_context): Initialize it. | |
748 | * parser-def.h (parse_gdbarch, parse_language): New macros. | |
749 | ||
750 | * ada-exp.y (parse_type): New macro. | |
751 | Replace builtin_type_ macros by using parse_type. | |
752 | Replace current_language by parse_language. | |
753 | * ada-lex.l (processInt): Replace current_gdbarch by parse_gdbarch. | |
754 | Replace builtin_type_ macros. | |
755 | ||
756 | * c-exp.y (parse_type): New macro. | |
757 | Replace builtin_type_ macros by using parse_type. | |
758 | (parse_number): Replace current_gdbarch by parse_gdbarch. | |
759 | (yylex): Replace current_language by parse_language. | |
760 | ||
761 | * f-exp.y (parse_type, parse_f_type): New macros. | |
762 | Replace builtin_type_ macros by using parse_{f_,}type. | |
763 | (parse_number): Replace current_gdbarch by parse_gdbarch. | |
764 | (yylex): Replace current_language by parse_language. | |
765 | ||
766 | * jv-exp.y (parse_type): New macro. | |
767 | (parse_number): Replace builtin_type_ macros by using parse_type. | |
768 | ||
769 | * m2-exp.y (parse_type, parse_m2_type): New macros. | |
770 | Replace builtin_type_ macros by using parse_{m2_,}type. | |
771 | ||
772 | * objc-exp.y (parse_type): New macro. | |
773 | Replace builtin_type_ macros by using parse_type. | |
774 | (parse_number): Replace current_gdbarch by parse_gdbarch. | |
775 | (yylex): Replace current_language by parse_language. | |
776 | ||
777 | * p-exp.y (parse_type): New macro. | |
778 | Replace builtin_type_ macros by using parse_type. | |
779 | (parse_number): Replace current_gdbarch by parse_gdbarch. | |
780 | (yylex): Replace current_language by parse_language. | |
781 | ||
c841afd5 UW |
782 | 2008-09-11 Ulrich Weigand <[email protected]> |
783 | ||
784 | * parser-defs.h (write_exp_msymbol): Remove TEXT_SYMBOL_TYPE | |
785 | and DATA_SYMBOL_TYPE arguments. | |
786 | * parse.c (write_exp_msymbol): Remove TEXT_SYMBOL_TYPE and | |
787 | DATA_SYMBOL_TYPE arguments. Replace use of builtin_type_CORE_ADDR. | |
788 | (write_dollar_variable): Update call. | |
789 | ||
790 | * ada-exp.y (write_var_or_type): Update call. | |
791 | * c-exp.y: Likewise. | |
792 | * f-exp.y: Likewise. | |
793 | * jv-exp.y: Likewise. | |
794 | * m2-exp.y: Likewise. | |
795 | * objc-exp.y: Likewise. | |
796 | * p-exp.y: Likewise. | |
797 | ||
0c1f74cf JB |
798 | 2008-09-10 Joel Brobecker <[email protected]> |
799 | ||
800 | * ada-lang.c (ada_parent_type): Add handling of the case where | |
801 | the _parent field is a pointer and/or has a parallel XVS type. | |
802 | (ada_evaluate_subexp) [OP_VAR_VALUE]: When doing an | |
803 | EVAL_AVOID_SIDE_EFFECTS evaluation of a tagged type, return | |
804 | the type of the tag instead of doing forcing an EVAL_NORMAL | |
805 | expression evaluation. | |
806 | ||
5823c3ef JB |
807 | 2008-09-10 Paul N. Hilfinger <[email protected]> |
808 | Joel Brobecker <[email protected]> | |
809 | ||
810 | * ada-lang.c (is_digits_suffix): New function. | |
811 | (is_dot_digits_suffix): Remove. | |
812 | (ada_lookup_symbol_list): Remove digits suffix from minimal symbols | |
813 | before looking up in symbol table, and do not use wild matches on them. | |
814 | (wild_match): Reimplement for speed and to allow matching of operator | |
815 | symbols. | |
816 | (is_valid_name_for_wild_match): Return zero for names that do not | |
817 | follow the GNAT encoding. | |
818 | ||
819 | (is_name_suffix): Fix typo in comment. | |
820 | (to_record_with_fixed_variant_part): Ditto. | |
821 | ||
e5fa8013 PA |
822 | 2008-09-10 Pedro Alves <[email protected]> |
823 | ||
824 | * Makefile.in (gnu-nat.o): New rule. | |
825 | ||
6d2e05aa JB |
826 | 2008-09-10 Joel Brobecker <[email protected]> |
827 | ||
828 | * ada-lang.c (ada_evaluate_subexp) [OP_ATR_SIZE]: Use | |
829 | archecture-neutral builtin_type_int32 instead of builtin_type_int. | |
830 | ||
2ac8a782 JB |
831 | 2008-09-10 Joel Brobecker <[email protected]> |
832 | ||
833 | * ada-lang.c (ada_evaluate_subexp) [BINOP_ADD, BINOP_SUB]: | |
834 | Add special handling for pointer types. | |
835 | ||
b861ac81 PA |
836 | 2008-09-10 Pedro Alves <[email protected]> |
837 | ||
838 | * inf-ttrace.c (inf_ttrace_follow_fork): Declare locals at the | |
839 | right scope level. | |
840 | (inf_ttrace_resume, inf_ttrace_wait): Typos. | |
841 | ||
030b4912 UW |
842 | 2008-09-10 Ulrich Weigand <[email protected]> |
843 | ||
844 | * ada-lang.c (ada_array_length): Use builtin_type_int32 instead | |
845 | of builtin_type_int. | |
846 | (ada_evaluate_subexp) [UNOP_IN_RANGE]: Use operand range type | |
847 | instead of builtin_type_int. | |
848 | ||
d51fd4c8 PA |
849 | 2008-09-09 Pedro Alves <[email protected]> |
850 | ||
851 | * infrun.c (normal_stop): Run hook-stop last. | |
852 | ||
11cb6f65 PA |
853 | 2008-09-09 Pedro Alves <[email protected]> |
854 | ||
855 | * gnu-nat.c (gnu_pid_to_exec_file): Delete. | |
856 | (init_gnu_ops): Don't register it. | |
857 | ||
a9ab7422 PA |
858 | 2008-09-09 Pedro Alves <[email protected]> |
859 | ||
860 | * gnu-nat.c (gnu_attach): Push target before fetching the list of | |
861 | threads. | |
862 | ||
694182d2 DJ |
863 | 2008-09-08 Daniel Jacobowitz <[email protected]> |
864 | ||
865 | * valops.c (value_cast_structs): Return NULL for failure. | |
866 | (value_cast): Handle NULL from value_cast_structs. | |
867 | (value_fetch_lazy): Call check_typedef. Remove unused variable. | |
868 | ||
dcf4fbde PA |
869 | 2008-09-08 Pedro Alves <[email protected]> |
870 | ||
871 | * inferior.h (context_switch_to): Delete. | |
872 | * infrun.c (context_switch): Don't save and load infrun state. | |
873 | (context_switch_to): Delete. | |
874 | ||
875 | * infcmd.c (proceed_thread_callback): Replace context_switch_to | |
876 | calls by switch_to_thread calls. | |
877 | ||
878 | * gdbthread.h (save_infrun_state, load_infrun_state): Delete. | |
879 | * thread.c (main_thread_state, main_thread_executing): Delete. | |
880 | (inferior_thread): Delete references to them. | |
881 | (add_thread_silent): Fix case where we're adding a thread with the | |
882 | same ptid as an exited thread. Remove references to | |
883 | context-switching. | |
884 | (load_infrun_state, save_infrun_state): Delete. | |
885 | (thread_alive, is_thread_state, any_running, is_executing) | |
886 | (set_executing): Remove the special handling for targets that | |
887 | don't register any thread. | |
888 | (restore_current_thread, thread_apply_all_command) | |
889 | (do_captured_thread_select): Unconditionally call | |
890 | switch_to_thread. | |
891 | ||
892 | * mi/mi-main.c (mi_cmd_execute): Check for exited threads. | |
893 | Call switch_to_thread instead of context_switch_to. | |
894 | ||
95e54da7 PA |
895 | 2008-09-08 Pedro Alves <[email protected]> |
896 | ||
897 | Remove global continuations in favour of a per-thread | |
898 | continuations. | |
899 | ||
900 | * gdbthread.h (struct thread_info): Add comments around | |
901 | continuations and intermediate_continuations. | |
902 | (save_infrun_state, load_infrun_state): Delete continuations and | |
903 | intermediate_continuations arguments. | |
fedae5ff | 904 | * infrun.c (context_switch): Don't context-switch the continuations. |
95e54da7 PA |
905 | * thread.c (clear_thread_inferior_resources): Discard all |
906 | continuations of the thread we're clearing. | |
907 | (save_infrun_state, load_infrun_state): Delete continuations and | |
908 | intermediate_continuations arguments, and the code referencing | |
909 | them. | |
910 | * utils.c: Include "gdbthread.h". | |
911 | (cmd_continuation, intermediate_continuation): Delete. | |
912 | (add_continuation): Add thread_info* argument. Install the | |
913 | continuation on it. | |
914 | (restore_thread_cleanup): New. | |
915 | (do_all_continuations_ptid, do_all_continuations_thread_callback): | |
916 | New. | |
917 | (do_all_continuations): Reimplement. | |
918 | (discard_all_continuations_thread_callback, | |
919 | discard_all_continuations_thread): New. | |
920 | (discard_all_continuations): Reimplement. | |
921 | (add_intermediate_continuation): Add thread_info* argument. | |
922 | Install the continuation on it. | |
923 | (do_all_intermediate_continuations_thread_callback) | |
924 | (do_all_intermediate_continuations_thread): New. | |
925 | (do_all_intermediate_continuations): Reimplement. | |
926 | (discard_all_intermediate_continuations_thread_callback): New. | |
927 | (discard_all_intermediate_continuations_thread): New. | |
928 | (discard_all_intermediate_continuations): Reimplement. | |
929 | ||
930 | * breakpoint.c (until_break_command): Install the continuation on | |
931 | the current thread. | |
932 | ||
933 | * defs.h (cmd_continuation, intermediate_continuation): Delete. | |
934 | (struct thread_info): Forward declare. | |
935 | (add_continuation, add_intermediate_continuation): Add | |
936 | thread_info* argument. | |
937 | (do_all_continuations_thread, discard_all_continuations_thread) | |
938 | (do_all_intermediate_continuations_thread) | |
939 | (discard_all_intermediate_continuations_thread): Declare. | |
940 | * inf-loop.c (inferior_event_handler): In non-stop only run | |
941 | continuations on the thread that stopped. In all-stop, run | |
942 | continuations on all threads. | |
943 | * infcmd.c (step_once, finish_command): Adjust. | |
944 | ||
414c69f7 PA |
945 | 2008-09-08 Pedro Alves <[email protected]> |
946 | ||
947 | Remove the global stop_step in favour of a per-thread | |
948 | stop_step. | |
949 | ||
950 | * inferior.h (stop_step): Delete. | |
951 | ||
952 | * gdbthread.h (struct thread_info): Add comments to stop_step. | |
953 | (save_infrun_state, load_infrun_state): Remove stop_step argument. | |
954 | * thread.c (load_infrun_state, save_infrun_state): Remove | |
955 | stop_step argument, and references to it. | |
956 | ||
957 | * infrun.c (clear_proceed_status): Clear stop_step. | |
958 | (fetch_inferior_event): Adjust. | |
959 | (context_switch): Don't context-switch stop_step. | |
960 | (handle_inferior_event): Adjust. | |
961 | (normal_stop): Adjust. | |
962 | (save_inferior_status, restore_inferior_status): Adjust. | |
963 | ||
964 | * infcmd.c (stop_step): Delete. | |
965 | (step_1, step_1_continuation, step_once, until_next_command): | |
966 | Adjust. | |
967 | ||
af679fd0 PA |
968 | 2008-09-08 Pedro Alves <[email protected]> |
969 | ||
970 | Remove the global step_multi in favour of a per-thread | |
971 | step_multi. | |
972 | ||
973 | * inferior.h (step_multi): Delete. | |
974 | * gdbthread.h (struct thread_info): Add comments around | |
975 | step_multi. | |
976 | (save_infrun_state, load_infrun_state): Remove step_multi | |
977 | parameter. | |
978 | * thread.c (load_infrun_state, save_infrun_state): Remove | |
979 | step_multi argument, and references to it. | |
980 | * infcmd.c (step_multi): Delete. | |
981 | (step_1): Adjust. | |
982 | (step_1_continuation, until_next_command): Adjust. | |
983 | * infrun.c (fetch_inferior_event): Adjust. | |
984 | (context_switch): Don't context-switch step_multi. | |
985 | (print_stop_reason, normal_stop): Adjust. | |
986 | ||
2020b7ab PA |
987 | 2008-09-08 Pedro Alves <[email protected]> |
988 | ||
989 | Remove the global stop_signal in favour of a per-thread | |
990 | stop_signal. | |
991 | ||
992 | * inferior.h (stop_signal): Delete. | |
993 | * gdbthread.h (save_infrun_state, load_infrun_state): Remove | |
994 | stop_signal argument. | |
995 | * thread.c (load_infrun_state, save_infrun_state): Remove | |
996 | stop_signal argument. Don't reference it. | |
997 | ||
998 | * infcmd.c (stop_signal): Delete. | |
999 | (program_info): Adjust. | |
1000 | * infrun.c (resume): Clear stop_signal. | |
1001 | (proceed): Adjust. Pass the last stop_signal to the thread we're | |
1002 | resuming. | |
1003 | (context_switch): Don't context-switch stop_signal. | |
1004 | (handle_inferior_event, keep_going): Adjust. | |
1005 | (save_inferior_status, restore_inferior_status): Adjust. | |
1006 | ||
1007 | * fbsd-nat.c: Include "gdbthread.h". | |
1008 | (find_signalled_thread, find_stop_signal): New. | |
1009 | (fbsd_make_corefile_notes): Use it. | |
1010 | * fork-child.c (startup_inferior): Adjust. | |
1011 | ||
1012 | * linux-nat.c (get_pending_status): Adjust. | |
1013 | (linux_nat_do_thread_registers): Adjust. | |
1014 | (find_signalled_thread, find_stop_signal): New. | |
1015 | (linux_nat_do_thread_registers): Add stop_signal parameter. | |
1016 | (struct linux_nat_corefile_thread_data): Add stop_signal member. | |
1017 | (linux_nat_corefile_thread_callback): Pass stop_signal. | |
1018 | (linux_nat_do_registers): Delete. | |
1019 | (linux_nat_make_corefile_notes): Use find_stop_signal. Assume | |
1020 | there's always a thread. | |
1021 | ||
1022 | * procfs.c (find_signalled_thread, find_stop_signal): New. | |
1023 | (find_stop_signal): New. | |
1024 | (procfs_do_thread_registers): Add stop_signal parameter. | |
1025 | (struct procfs_corefile_thread_data): Add stop_signal member. | |
1026 | (procfs_corefile_thread_callback): Pass args->stop_signal. | |
1027 | (procfs_make_note_section): Find the last stop_signal. | |
1028 | ||
1029 | * solib-irix.c: Include gdbthread.h. | |
1030 | (irix_solib_create_inferior_hook): Adjust. | |
1031 | * solib-osf.c: Include gdbthread.h. | |
1032 | (osf_solib_create_inferior_hook): Adjust. | |
1033 | * solib-sunos.c: Include gdbthread.h. | |
1034 | (sunos_solib_create_inferior_hook): Adjust. | |
1035 | * solib-svr4.c: Include gdbthread.h. | |
1036 | (svr4_solib_create_inferior_hook): Adjust. | |
1037 | ||
1038 | * win32-nat.c (do_initial_win32_stuff): Adjust. | |
1039 | ||
32400beb PA |
1040 | 2008-09-08 Pedro Alves <[email protected]> |
1041 | ||
1042 | * gdbthread.h (struct thread_info): Add comments around | |
1043 | proceed_to_finish. | |
1044 | (save_infrun_state, load_infrun_state): Remove proceed_to_finish | |
1045 | argument. | |
1046 | * thread.c (load_infrun_state, save_infrun_state): Delete | |
1047 | proceed_to_finish argument and references to it. | |
1048 | ||
1049 | * infcall.c (call_function_by_hand): Adjust. | |
1050 | * infcmd.c (finish_command): Adjust. | |
1051 | * infrun.c (proceed_to_finish): Delete. | |
1052 | (clear_proceed_status): Adjust. | |
1053 | (context_switch): Don't context-switch proceed_to_finish. | |
1054 | (normal_stop, save_inferior_status, restore_inferior_status): | |
1055 | Adjust. | |
1056 | ||
347bddb7 PA |
1057 | 2008-09-08 Pedro Alves <[email protected]> |
1058 | ||
1059 | * inferior.h (stop_bpstat): Delete. | |
1060 | ||
1061 | * breakpoint.h (bpstat_do_actions): Remove bpstat* argument. | |
1062 | ||
1063 | * breakpoint.c (bpstat_do_actions): Rename to ... | |
1064 | (bpstat_do_actions_1): ... this. Make static. Change return type | |
1065 | to int. Return true if a breakpoint proceeded. | |
1066 | (bpstat_do_actions): New, as wrapper around bpstat_do_actions_1. | |
1067 | (delete_breakpoint): Don't reference the global stop_bpstat; it's | |
1068 | gone. | |
1069 | ||
1070 | * gdbthread.h (struct thread_info): Add stop_bpstat. | |
1071 | (save_infrun_state, load_infrun_state): Remove stop_bpstat | |
1072 | argument. | |
1073 | * thread.c (load_infrun_state, save_infrun_state): Remove | |
1074 | stop_bpstat argument, and the code referencing it. | |
1075 | ||
1076 | * infcall.c: Include "gdbthread.h". | |
1077 | (call_function_by_hand): Adjust. | |
1078 | * exceptions.c: Include "gdbthread.h". | |
1079 | (throw_exception): Adjust. | |
1080 | * infcmd.c (stop_bpstat): Delete. | |
1081 | (continue_command): In all-stop, set the ignore count on the | |
1082 | thread that reported the stop. In non-stop, set it on the current | |
1083 | thread. | |
1084 | (finish_command_continuation): Adjust. | |
1085 | (program_info): Adjust. | |
1086 | * infrun.c (clear_proceed_status): Adjust. | |
1087 | (context_switch): Don't context-switch stop_bpstat. | |
1088 | (handle_inferior_event): Adjust. | |
1089 | (normal_stop): Adjust. | |
1090 | (save_inferior_status, restore_inferior_status): Adjust. | |
1091 | ||
1092 | * inf-loop.c (inferior_event_handler): Remove parameter to | |
1093 | bpstat_do_actions call. | |
1094 | * top.c (command_loop): Remove parameter to bpstat_do_actions | |
1095 | call. Call it unconditionally. | |
1096 | * event-top.c (command_handler): Ditto. | |
1097 | * python/python.c (execute_gdb_command): Ditto. | |
1098 | ||
078130d0 PA |
1099 | 2008-09-08 Pedro Alves <[email protected]> |
1100 | ||
1101 | * inferior.h (step_over_calls): Delete. | |
1102 | ||
1103 | * gdbthread.h (save_infrun_state, load_infrun_state): Remove | |
1104 | step_over_calls argument. | |
1105 | * thread.c (save_infrun_state, load_infrun_state): Remove | |
1106 | step_over_calls argument. Adjust. | |
1107 | ||
1108 | * infcmd.c (step_over_calls): Delete. | |
1109 | (step_1): Adjust. | |
1110 | * infrun.c (clear_proceed_status): Adjust. | |
1111 | (context_switch): Don't context-switch step_over_calls. | |
1112 | (handle_inferior_event, save_inferior_status) | |
1113 | (restore_inferior_status): Adjust. | |
1114 | ||
4e1c45ea PA |
1115 | 2008-09-08 Pedro Alves <[email protected]> |
1116 | ||
1117 | Remove context switching in favour of accessing thread_info fields | |
1118 | directly. | |
1119 | ||
1120 | * infrun.c (stepping_over_breakpoint, step_resume_breakpoint): | |
1121 | Delete. | |
1122 | (struct thread_stepping_state): Delete. | |
1123 | (gtss, tss): Delete. | |
1124 | (follow_inferior_reset_breakpoints, follow_exec) | |
1125 | (resume, clear_proceed_status): Adjust. | |
1126 | (prev_pc): Delete. | |
1127 | (proceed, start_remote, init_wait_for_inferior): Adjust. | |
1128 | (struct execution_control_state): Add event_thread member. | |
1129 | (delete_step_resume_breakpoint_callback) | |
1130 | (delete_step_thread_step_resume_breakpoint) | |
1131 | (delete_step_thread_step_resume_breakpoint_cleanup) | |
1132 | (delete_step_thread_step_resume_breakpoint): New. | |
1133 | (wait_for_inferior, init_execution_control_state): Use | |
1134 | delete_step_thread_step_resume_breakpoint_cleanup. | |
1135 | (wait_for_inferior): Set the event_thread. | |
1136 | (fetch_inferior_event): Ditto. Delete the step-resume breakpoint | |
1137 | with delete_step_thread_step_resume_breakpoint. | |
1138 | (init_thread_stepping_state): Change parameter type to | |
1139 | thread_info. Adjust. | |
1140 | (context_switch): Don't context switch prev_pc, | |
1141 | stepping_over_breakpoint, step_resume_breakpoint, | |
1142 | step_range_start, step_range_end, step_frame_id, | |
1143 | tss->stepping_over_breakpoint, | |
1144 | tss->stepping_through_solib_after_catch, | |
1145 | tss->stepping_through_solib_catchpoints, tss->current_line, or | |
1146 | tss->current_symtab. | |
1147 | (adjust_pc_after_break, handle_inferior_event) | |
1148 | (currently_stepping, step_into_function) | |
1149 | (insert_step_resume_breakpoint_at_sal) | |
1150 | (insert_longjmp_resume_breakpoint, keep_going): Adjust. | |
1151 | (clear_stepping_state): New. | |
1152 | (normal_stop): Adjust. | |
1153 | (save_inferior_status, restore_inferior_status): Adjust. | |
1154 | ||
1155 | * gdbthread.h (struct thread_info): Comments describing the | |
1156 | members moved here. Add step_after_step_resume_breakpoint. | |
1157 | (delete_step_resume_breakpoint): Add thread_info argument. | |
1158 | (save_infrun_state, load_infrun_state): Remove prev_pc, | |
1159 | trap_expected, step_resume_breakpoint, step_range_start, | |
1160 | step_range_end, step_frame_id, another_trap, | |
1161 | stepping_through_solib_after_catch, | |
1162 | stepping_through_solib_catchpoints, current_line and | |
1163 | current_symtab function arguments. | |
1164 | (inferior_thread): Declare. | |
1165 | ||
1166 | * thread.c (inferior_thread): New. | |
1167 | (delete_step_resume_breakpoint): Add a thread_info parameter and | |
1168 | rewrite. | |
1169 | (load_infrun_state, save_infrun_state): Remove prev_pc, | |
1170 | trap_expected, step_resume_breakpoint, step_range_start, | |
1171 | step_range_end, step_frame_id, stepping_over_breakpoint, | |
1172 | stepping_through_solib_after_catch, | |
1173 | stepping_through_solib_catchpoints, current_line and | |
1174 | current_symtab args. Remove code referencing them. | |
1175 | ||
1176 | * infcmd.c (step_range_start, step_range_end, step_frame_id): | |
1177 | Delete. | |
1178 | (step_1, step_once, until_next_command): Adjust. | |
1179 | ||
1180 | * inferior.h (step_range_start, step_range_end, step_frame_id): | |
1181 | Delete. | |
1182 | ||
1183 | * linux-nat.c (linux_child_follow_fork): If following the child, | |
1184 | move the step state to it. Adjust. | |
1185 | * inf-ptrace.c (inf_ptrace_follow_fork): Ditto. | |
1186 | * inf-ttrace.c (inf_ttrace_follow_fork): Ditto. | |
1187 | ||
757f359d PA |
1188 | 2008-09-08 Pedro Alves <[email protected]> |
1189 | ||
1190 | * bsd-uthread.c (bsd_uthread_find_new_threads): Claim the main | |
1191 | thread. | |
1192 | ||
0de3b513 PA |
1193 | 2008-09-08 Pedro Alves <[email protected]> |
1194 | ||
1195 | * corelow.c (add_to_thread_list): If this is the first time we | |
1196 | hear about thread info, update inferior_ptid. | |
1197 | (core_open): Clear the thread list and set inferior_ptid before | |
1198 | acknowledging a new inferior. Find threads before fetching | |
1199 | register info. Give an upper target layer a chance to find and | |
1200 | claim new threads. Print core generation and stop signal info | |
1201 | after finding new threads. | |
1202 | (get_core_register_section): Look at the lwp member of | |
1203 | inferior_ptid for detecting if we have threads info, instead of | |
1204 | the pid member. | |
1205 | (core_pid_to_str): New. | |
1206 | (init_core_ops): Register core_pid_to_str. | |
1207 | ||
4189d2f8 PA |
1208 | 2008-09-08 Pedro Alves <[email protected]> |
1209 | ||
1210 | * spu-linux-nat.c (spu_child_post_startup_inferior) | |
1211 | (spu_child_post_attach): Don't add the main thread here. | |
1212 | ||
617fd3b5 PA |
1213 | 2008-09-08 Pedro Alves <[email protected]> |
1214 | ||
1215 | Use ptid_t.tid to store thread ids instead of ptid_t.pid. | |
1216 | ||
1217 | * gnu-nat.c (inf_validate_procs): If this is the first time we're | |
1218 | seeing a thread id, extend the main thread's ptid. If we still | |
1219 | have pending execs, don't be verbose about new threads. | |
1220 | (gnu_wait, gnu_resume, gnu_attach, gnu_thread_alive) | |
1221 | (gnu_pid_to_str, cur_thread, sig_thread_cmd): Adjust. | |
1222 | * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): | |
1223 | Adjust. | |
1224 | ||
2689673f PA |
1225 | 2008-09-08 Pedro Alves <[email protected]> |
1226 | ||
1227 | * procfs.c (to_attach): Create a procinfo for the current lwp. | |
1228 | Add it to gdb's thread list. | |
1229 | (procfs_fetch_registers, procfs_store_registers): Assume there's | |
1230 | always an lwp. | |
1231 | (procfs_wait): Don't add the main thread here. | |
1232 | (procfs_init_inferior): Create a procinfo for the main lwp here. | |
1233 | Change main thread's ptid with thread_change_ptid. | |
1234 | (procfs_notice_thread): Check for exited threads. | |
1235 | (procfs_corefile_thread_callback): Remove check for the main | |
1236 | process. | |
1237 | (procfs_make_note_section): Assume there is always a thread. | |
1238 | ||
1239 | * sol-thread.c (sol_thread_attach): Clear sol_thread_active before | |
1240 | attaching. Change the main thread ptid with thread_change_ptid. | |
1241 | (sol_thread_detach): Clear sol_thread_active. | |
1242 | (sol_thread_wait): Check for exited threads. | |
1243 | (sol_thread_create_inferior): Clear sol_thread_active before | |
1244 | creating a new inferior. Change the main thread ptid with | |
1245 | thread_change_ptid. | |
1246 | (sol_thread_mourn_inferior): Clear sol_thread_active. | |
1247 | (sol_find_new_threads_callback): Check for exited threads. | |
1248 | ||
62a93fa9 PA |
1249 | 2008-09-08 Pedro Alves <[email protected]> |
1250 | ||
1251 | * inf-ttrace.c (inf_ttrace_wait): On TTEVT_LWP_CREATE and | |
1252 | LWP_TERMINATE, resume the caller thread. On TTEVT_LWP_CREATE, | |
1253 | TTEVT_LWP_EXIT and TTEVT_LWP_TERMINATE, don't stop the whole | |
1254 | process, and return TARGET_WAITKIND_IGNORE. | |
1255 | ||
438ac09b PA |
1256 | 2008-09-08 Pedro Alves <[email protected]> |
1257 | ||
1258 | * inf-ttrace.c: Include <signal.h> | |
1259 | (inf_ttrace_delete_dead_threads_callback): New. | |
1260 | (inf_ttrace_resume_lwp): New. | |
1261 | (inf_ttrace_resume_callback, inf_ttrace_resume): Rewrite. Don't | |
1262 | delete dying threads until they are really dead. | |
1263 | (inf_ttrace_wait): After stopping the whole process, delete any | |
1264 | dying thread that is really dead by now. | |
1265 | (inf_ttrace_thread_alive): Return 1. | |
1266 | (inf_ttrace_extra_thread_info): New. | |
1267 | (inf_ttrace_target): Register inf_ttrace_extra_thread_info. | |
1268 | ||
2935f27f PA |
1269 | 2008-09-08 Pedro Alves <[email protected]> |
1270 | ||
1271 | * inf-ttrace.c (inf_ttrace_follow_fork): Register the main thread | |
1272 | of the child fork. | |
1273 | (inf_ttrace_attach): Add the main thread. | |
1274 | (inf_ttrace_resume_callback): Check for exited threads. Adjust | |
1275 | for always a thread. | |
1276 | (inf_ttrace_wait): Decorate the main thread's ptid with lwp info | |
1277 | using thread_change_ptid, and set its private data. Don't add the | |
1278 | main thread here. | |
1279 | (inf_ttrace_pid_to_str): Adjust. | |
1280 | ||
fb5e7258 PA |
1281 | 2008-09-08 Pedro Alves <[email protected]> |
1282 | ||
1283 | * bsd-uthread.c (bsd_uthread_wait): Decorate the main thread with | |
1284 | thread_change_ptid. Check for exited threads. | |
1285 | (bsd_uthread_find_new_threads): Check for exited threads. | |
1286 | ||
af990527 PA |
1287 | 2008-09-08 Pedro Alves <[email protected]> |
1288 | ||
1289 | * inf-ptrace.c: Include "gdbthread.h". | |
1290 | (inf_ptrace_attach): Add the main thread here. | |
1291 | * linux-nat.c (linux_nat_attach): Don't add the main thread here. | |
1292 | Decorate the main thread id with the lwp id. | |
1293 | ||
27c9d204 PA |
1294 | 2008-09-08 Pedro Alves <[email protected]> |
1295 | ||
1296 | * linux-nat.c (linux_nat_wait): Update inferior_ptid's ptid with | |
1297 | thread_change_ptid. Don't add or mark the main thread as running | |
1298 | and executing here. | |
1299 | * fork-child.c (fork_inferior): Add the main thread here. | |
1300 | ||
de9f48f0 JG |
1301 | 2008-09-08 Jerome Guitton <[email protected]> |
1302 | ||
1303 | * rs6000-tdep.c (rs6000_fetch_instruction) | |
1304 | (rs6000_skip_stack_check): New functions. | |
1305 | (skip_prologue): Skip stack check sequence. | |
1306 | ||
52163a60 DD |
1307 | 2008-09-08 David Daney <[email protected]> |
1308 | ||
1309 | * dummy-frame.h (frame.h): Include it. | |
1310 | (struct frame_id): Remove declaration. | |
1311 | ||
87805e63 UW |
1312 | 2008-09-05 Ulrich Weigand <[email protected]> |
1313 | ||
1314 | * spu-tdep.c (spu_push_dummy_code): New function. | |
1315 | (spu_gdbarch_init): Install it. | |
1316 | ||
0b1553bc UW |
1317 | 2008-09-05 Ulrich Weigand <[email protected]> |
1318 | ||
1319 | * gdbarch.sh (gdbarch_dump): Use core_addr_to_string_nz | |
1320 | instead of paddr_nz. | |
1321 | * gdbarch.c: Regenerate. | |
1322 | ||
1323 | * target.c (target_xfer_partial, debug_print_register): Use | |
1324 | core_addr_to_string_nz instead of paddr_nz. | |
1325 | ||
2454a024 UW |
1326 | 2008-09-05 Ulrich Weigand <[email protected]> |
1327 | ||
1328 | * rs6000-tdep.c (rs6000_gdbarch_init): Setup displaced stepping | |
1329 | *before* calling gdbarch_init_osabi. | |
1330 | (rs6000_aix_init_osabi): Disable displaced stepping. | |
1331 | ||
b52323fa UW |
1332 | 2008-09-05 Ulrich Weigand <[email protected]> |
1333 | ||
1334 | * target.c (update_current_target): Do not inherit to_open | |
1335 | or to_close. | |
1336 | (pop_target): Call target_close on target_stack instead | |
1337 | of current_target. | |
1338 | (pop_all_targets_above): Likewise. | |
1339 | ||
fead6908 UW |
1340 | 2008-09-05 Ulrich Weigand <[email protected]> |
1341 | ||
1342 | * gnu-v3-abi.c (gnuv3_decode_method_ptr): New function. | |
1343 | (gnuv3_print_method_ptr): Use it. | |
1344 | (gnuv3_method_ptr_to_value): Likewise. | |
1345 | ||
60441ab9 UW |
1346 | 2008-09-05 Ulrich Weigand <[email protected]> |
1347 | ||
1348 | * nto-tdep.h (struct nto_target_ops): Add gdbarch parameter to | |
1349 | register_area callback function. | |
1350 | * i386-nto-tdep.c (i386nto_register_area): Add gdbarch parameter. | |
1351 | Use it instead of current_gdbarch. | |
1352 | * nto-procfs.c (procfs_store_registers): Update call. | |
1353 | ||
bb486190 UW |
1354 | 2008-09-05 Ulrich Weigand <[email protected]> |
1355 | ||
1356 | * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Use | |
1357 | regcache architecture instead of current_gdbarch. | |
1358 | ||
9dacea90 UW |
1359 | 2008-09-05 Ulrich Weigand <[email protected]> |
1360 | ||
1361 | * mep-tdep.c (struct mep_prologue): Add gdbarch member. | |
1362 | (check_for_saved): Use it instead of current_gdbarch. | |
1363 | (is_arg_spill): Add gdbarch paramter. Use it instead | |
1364 | of current_gdbarch. | |
1365 | (mep_analyze_prologue): Add gdbarch parameter. Pass it | |
1366 | to is_arg_spill and check_for_saved. | |
1367 | (mep_skip_prologue, mep_analyze_frame_prologue): Update calls. | |
1368 | ||
5db8bbe5 UW |
1369 | 2008-09-05 Ulrich Weigand <[email protected]> |
1370 | ||
1371 | * hppa-tdep.c (internalize_unwinds): Use objfile architecture | |
1372 | instead of current_gdbarch. | |
1373 | ||
6ba38425 UW |
1374 | 2008-09-05 Ulrich Weigand <[email protected]> |
1375 | ||
1376 | * m68k-tdep.h (m68kbsd_fpreg_offset): Add gdbarch parameter. | |
1377 | * m68kbsd-tdep.c (m68kbsd_fpreg_offset): Add gdbarch paramter. | |
1378 | Use it instead of current_gdbarch. | |
1379 | (m68kbsd_supply_fpregset): Update call. | |
1380 | * m68kbsd-nat.c (m68kbsd_supply_fpregset): Likewise. | |
1381 | (m68kbsd_collect_fpregset): Likewise. | |
1382 | ||
35488783 UW |
1383 | 2008-09-05 Ulrich Weigand <[email protected]> |
1384 | ||
1385 | * cris-tdep.c (cris_version, cris_mode): Remove. | |
1386 | (crisv32_single_step_through_delay): Use tdep->cris_mode. | |
1387 | (cris_breakpoint_from_pc): Likewise. | |
1388 | (cris_frame_unwind_cache): Use tdep->cris_version. | |
1389 | (crisv32_scan_prologue): Likewise. | |
1390 | (cris_spec_reg_applicable): Add gdbarch argument. | |
1391 | Use tdep->cris_version. | |
1392 | (cris_register_size, cris_special_register_name): Update calls. | |
1393 | (cris_special_register_name): Add gdbarch argument. | |
1394 | (cris_register_name, crisv32_register_name): Update calls. | |
1395 | ||
9dae60cc UW |
1396 | 2008-09-05 Ulrich Weigand <[email protected]> |
1397 | ||
1398 | * m68hc11-tdep.c (gdb_print_insn_m68hc11): Use info->arch | |
1399 | instead of current_gdbarch. | |
1400 | ||
1401 | * sh64-tdep.c (gdb_print_insn_sh64): Remove. | |
1402 | (sh64_gdbarch_init): Install print_insn_sh64 directly. | |
1403 | * sh-tdep.c (gdb_print_insn_sh): Remove. | |
1404 | (sh_gdbarch_init): Install print_insn_sh directly. | |
1405 | ||
1406 | * mips-tdep.c (gdb_print_insn_mips): Do not check mips_abi | |
1407 | from current_gdbarch. | |
1408 | (gdb_print_insn_mips_n32, gdb_print_insn_mips_n64): New functions. | |
1409 | (mips_gdbarch_init): Install them instead of gdb_print_insn_mips | |
1410 | depending on mips_abi. | |
1411 | ||
24568a2c UW |
1412 | 2008-09-05 Ulrich Weigand <[email protected]> |
1413 | ||
1414 | * gdbarch.sh (addr_bits_remove): Change type to 'm'. | |
1415 | (smash_text_address): Likewise. | |
1416 | * gdbarch.c, gdbarch.h: Regenerate. | |
1417 | ||
1418 | * arch-utils.c (core_addr_identity): Add gdbarch parameter. | |
1419 | * arch-utils.h (core_addr_identity): Likewise. | |
1420 | * arm-tdep.c (arm_addr_bits_remove): Likewise. | |
1421 | (arm_smash_text_address): Likewise. | |
1422 | * hppa-tdep.c (hppa_smash_text_address): Likewise. | |
1423 | * m88k-tdep.c (m88k_addr_bits_remove): Likewise. | |
1424 | * s390-tdep.c (s390_addr_bits_remove): Likewise. | |
1425 | ||
1426 | * mips-tdep.c (mips_addr_bits_remove): Add gdbarch parameter. | |
1427 | Use it instead of current_gdbarch. | |
1428 | ||
1429 | * arm-tdep.c (arm_prologue_prev_register, arm_unwind_pc, | |
1430 | arm_dwarf2_prev_register): Update calls. | |
1431 | * m88k-tdep.c (m88k_unwind_pc): Update call. | |
1432 | ||
f7fd4728 UW |
1433 | 2008-09-05 Ulrich Weigand <[email protected]> |
1434 | ||
1435 | * dwarf2expr.h (dwarf2_read_address): Add gdbarch argument. | |
1436 | * dwarf2expr.c (dwarf2_read_address): Add gdbarch argument. | |
1437 | Call gdbarch_integer_to_address directly instead of converting | |
1438 | to value and back. Update comment. | |
1439 | (execute_stack_op): Update call site. | |
1440 | * dwarf2loc.c (find_location_expression): Likewise. | |
1441 | (locexpr_describe_location): Update | |
1442 | ||
1443 | * dwarf2expr.h (struct dwarf_expr_context): Add gdbarch member. | |
1444 | * dwarf2-frame.c (execute_stack_op): Initialize ctx->gdbarch. | |
1445 | * dwarf2loc. (dwarf2_evaluate_loc_desc): Likewise. | |
1446 | (dwarf2_loc_desc_needs_frame): Likewise. | |
1447 | ||
714835d5 UW |
1448 | 2008-09-05 Ulrich Weigand <[email protected]> |
1449 | ||
1450 | * breakpoint.h (struct bp_location): Change type of section | |
1451 | member to "struct obj_section *". | |
1452 | * tracepoint.h (struct tracepoint): Likewise. | |
1453 | * symtab.h (struct general_symbol_info): Replace bfd_section | |
1454 | member with obj_section. | |
1455 | (struct symtab_and_line): Change type of section member to | |
1456 | "struct obj_section *". | |
1457 | (SYMBOL_BFD_SECTION): Remove macro, replace by ... | |
1458 | (SYMBOL_OBJ_SECTION): ... this. | |
1459 | ||
1460 | * minsym.c (prim_record_minimal_symbol_and_info): Record symbol | |
1461 | section as obj_section instead of bfd_section. | |
1462 | ||
1463 | * ada-lang.c (ada_decode_symbol): Use gsymbol->obj_section | |
1464 | directly instead of looking of obj_section from bfd_section. | |
1465 | ||
1466 | * objfiles.h (find_pc_sect_section): Remove. | |
1467 | * objfiles.c (find_pc_sect_section): Remove. | |
1468 | (find_pc_section): Inline find_pc_sect_section code. | |
1469 | ||
1470 | * symfile.h (find_pc_overlay): Return struct obj_section *. | |
1471 | (find_pc_mapped_section): Likewise. | |
1472 | (section_is_overlay, section_is_mapped): Change type of section | |
1473 | argument to struct obj_section *. | |
1474 | (pc_in_mapped_range, pc_in_unmapped_range): Likewise. | |
1475 | (overlay_mapped_address, overlay_unmapped_address): Likewise. | |
1476 | (symbol_overlayed_address): Likewise. | |
1477 | * symtab.h (symbol_overlayed_address): Likewise. | |
1478 | * symfile.c (overlay_is_mapped): Remove. | |
1479 | (section_is_mapped): Inline overlay_is_mapped code. Update. | |
1480 | (overlay_invalidate_all): Update. | |
1481 | (section_is_overlay): Change section argument to type | |
1482 | "struct obj_section *". Use bfd_ methods. | |
1483 | (pc_in_unmapped_range): Likewise. Handle relocated sections. | |
1484 | (pc_in_mapped_range): Likewise. Handle relocated sections. | |
1485 | (sections_overlap): Likewise. | |
1486 | (overlay_unmapped_address): Likewise. | |
1487 | (overlay_mapped_address): Likewise. | |
1488 | (symbol_overlayed_address): Likewise. | |
1489 | (find_pc_overlay): Return struct obj_section *. | |
1490 | (find_pc_mapped_section): Likewise. | |
1491 | (list_overlays_command): Update. | |
1492 | (map_overlay_command, unmap_overlay_command): Update. | |
1493 | (simple_overlay_update): Update. | |
1494 | ||
1495 | * block.h (blockvector_for_pc_sect): Change section argument | |
1496 | to type "struct obj_section *". | |
1497 | (block_for_pc_sect): Likewise. | |
1498 | * block.c (blockvector_for_pc_sect): Change section argument | |
1499 | to type "struct obj_section *". | |
1500 | (block_for_pc_sect): Likewise. | |
1501 | * symtab.h (find_pc_sect_function, find_pc_sect_psymtab, | |
1502 | find_pc_sect_symtab, find_pc_sect_psymbol, find_pc_sect_line, | |
1503 | lookup_minimal_symbol_by_pc_section, find_function_start_pc): Likewise. | |
1504 | (matching_bfd_sections): Rename to ... | |
1505 | (matching_obj_sections): ... this. Update argument types. | |
1506 | * blockframe.c (find_pc_sect_function): Likewise. | |
1507 | * breakpoint.c (describe_other_breakpoints): Likewise. | |
1508 | (breakpoint_has_pc, check_duplicates_for): Likewise. | |
1509 | * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Likewise. | |
1510 | (lookup_minimal_symbol_by_pc_section): Likewise. | |
1511 | * symtab.c (find_pc_sect_psymtab_closer): Likewise. | |
1512 | (find_pc_sect_psymtab, find_pc_sect_psymbol, find_pc_sect_symtab, | |
1513 | find_pc_sect_line, find_function_start_pc): Likewise. | |
1514 | (matching_bfd_sections): Rename to ... | |
1515 | (matching_obj_sections): ... this. Update argument types. | |
1516 | ||
1517 | * blockframe.c (find_pc_partial_function): Update to section | |
1518 | type changes. No longer call find_pc_sect_section. | |
1519 | (cache_pc_function_section): Change to type "struct obj_section *". | |
1520 | * breakpoint.c (resolve_sal_pc): Update to section type changes. | |
1521 | * exec.c (xfer_memory): Likewise. | |
1522 | * findvar.c (read_var_value): Likewise. | |
1523 | * infcmd.c (jump_command): Likewise. | |
1524 | * linespec.c (minsym_found): Likewise. | |
1525 | * maint.c (maintenance_translate_address): Likewise. | |
1526 | * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Likewise. | |
1527 | (lookup_solib_trampoline_symbol_by_pc): Likewise. | |
1528 | * parse.c (write_exp_msymbol): Likewise. | |
1529 | * printcmd.c (build_address_symbolic): Likewise. | |
1530 | (address_info, sym_info): Likewise. | |
1531 | * symmisc.c (dump_msymbols, print_symbol): Likewise. | |
1532 | * symtab.c (fixup_section): Likewise. | |
1533 | (fixup_symbol_section, fixup_psymbol_section): Likewise. | |
1534 | (find_pc_line, find_function_start_sal): Likewise. | |
1535 | * target.c (memory_xfer_partial): Likewise. | |
1536 | * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline): Likewise. | |
1537 | * spu-tdep.c (spu_overlay_update): Likewise. | |
1538 | ||
623d3eb1 DE |
1539 | 2008-09-04 Doug Evans <[email protected]> |
1540 | ||
1541 | * defs.h (plongest,pulongest): Renamed from paddr_u,paddr_d. | |
1542 | Change argument of pulongest from CORE_ADDR to ULONGEST. | |
1543 | All callers updated. | |
1544 | * utils.c (plongest): Renamed from paddr_d. | |
1545 | (pulongest): Renamed from paddr_u, change arg type to ULONGEST. | |
1546 | * remote-mips.c (send_srec): Use paddr_nz instead of paddr_u in | |
1547 | `CORE_ADDR addr' arg of error message. | |
1548 | ||
8775bb90 MS |
1549 | 2008-09-03 Angela Marie Thomas <[email protected]> |
1550 | ||
1551 | * ser-tcp.c (ser_tcp_send_break): New function. | |
1552 | (_initialize_ser_tcp): Use ser_tcp_send_break. | |
1553 | * ser-tcp.h (ser_tcp_send_break): New prototype. | |
1554 | ||
9ff3afda UW |
1555 | 2008-09-03 Ulrich Weigand <[email protected]> |
1556 | ||
1557 | * spu-tdep.c (spu_push_dummy_call): Update all stack pointer slots | |
1558 | when allocating stack frame for inferior call. | |
1559 | ||
c4891da7 UW |
1560 | 2008-09-03 Ulrich Weigand <[email protected]> |
1561 | ||
1562 | * spu-tdep.c (spu_frame_unwind_cache): Do not attempt to unwind | |
1563 | SP or return address if we failed to find a valid frame. | |
1564 | ||
514f746b AR |
1565 | 2008-09-03 Aleksandar Ristovski <[email protected]> |
1566 | ||
1567 | * breakpoint.c (breakpoint_init_inferior): Mark as not inserted only | |
1568 | non-permanent breakpoints. | |
1569 | (bpstat_stop_status): Change enable_state to bp_disabled only for | |
1570 | non-permanent breakpoints. | |
1571 | (bp_loc_is_permanent): New function. | |
1572 | (create_breakpoint): Check if the location points to a permanent | |
1573 | breakpoint and if it does, make breakpoint permanent. | |
1574 | (update_breakpoint_locations): Make sure new locations of permanent | |
1575 | breakpoints are properly initialized. | |
1576 | * i386-tdep.c (i386_skip_permanent_breakpoint): New function. | |
1577 | (i386_gdbarch_init): Set gdbarch_skip_permanent_breakpoint. | |
1578 | ||
a12654ce PA |
1579 | 2008-09-02 Pedro Alves <[email protected]> |
1580 | ||
1581 | * breakpoint.c (insert_breakpoints, update_global_location_list): | |
1582 | Check breakpoints_always_inserted_mode instead of | |
1583 | always_inserted_mode directly. | |
1584 | ||
8b7a6d61 AS |
1585 | 2008-09-02 Andreas Schwab <[email protected]> |
1586 | ||
1587 | * ia64-tdep.c (ia64_get_dyn_info_list): Use obj_section_addr. | |
1588 | ||
d68209e4 JK |
1589 | 2008-09-01 Jan Kratochvil <[email protected]> |
1590 | ||
1591 | Stay compatible after the GCC PR fortran/29635 fix. | |
1592 | * dwarf2read.c (process_die <DW_TAG_imported_module>) | |
1593 | (process_die <DW_TAG_imported_module>): Do not assert anything about | |
1594 | these unsupported tags. | |
1595 | ||
ef4cb050 TT |
1596 | 2008-08-29 Tom Tromey <[email protected]> |
1597 | ||
1598 | * maint.c (_initialize_maint_cmds): Fix typo. | |
1599 | ||
a683b3c0 TT |
1600 | 2008-08-29 Tom Tromey <[email protected]> |
1601 | ||
1602 | * dwarf2read.c (dwarf2_build_psymtabs_hard): Copy dirname on | |
1603 | obstack. | |
1604 | ||
3e88cf8d UW |
1605 | 2008-08-27 Ulrich Weigand <[email protected]> |
1606 | ||
1607 | * remote.c: Include "gdb_stat.h". | |
1608 | ||
a45ae3ed UW |
1609 | 2008-08-26 Ulrich Weigand <[email protected]> |
1610 | ||
1611 | * dummy-frame.h (dummy_frame_pop): Add prototype. | |
1612 | * dummy-frame.c: Include "observer.h". | |
1613 | (dummy_frame_push): Do not check for stale frames. | |
1614 | (dummy_frame_pop): New function. | |
1615 | (cleanup_dummy_frames): New function. | |
1616 | (_initialize_dummy_frame): Install it as inferior_created observer. | |
1617 | ||
1618 | * frame.h (struct frame_id): Update comments. | |
1619 | (frame_id_inner): Remove prototype. | |
1620 | * frame.c (frame_id_inner): Make static. Add comments. | |
1621 | (frame_find_by_id): Update frame_id_inner safety net check to avoid | |
1622 | false positives for targets using non-contiguous stack ranges. | |
1623 | (get_prev_frame_1): Update frame_id_inner safety net check. | |
1624 | (frame_pop): Call dummy_frame_pop when popping a dummy frame. | |
1625 | ||
1626 | * stack.c (return_command): Directly pop the selected frame. | |
1627 | * infrun.c (handle_inferior_event): Remove dead code. | |
1628 | * i386-tdep.c (i386_push_dummy_call): Update comment. | |
1629 | ||
879d1e6b UW |
1630 | 2008-08-26 Ulrich Weigand <[email protected]> |
1631 | ||
1632 | * breakpoint.c (remove_breakpoint): Do not fail if unable to remove | |
1633 | breakpoint from shared library. | |
1634 | ||
97ec2c2f UW |
1635 | 2008-08-26 Ulrich Weigand <[email protected]> |
1636 | ||
1637 | * solib-svr4.c (read_program_header): New function. | |
1638 | (scan_dyntag_auxv): New function. | |
1639 | (elf_locate_base): Use it if scan_dyntag fails. | |
1640 | (find_program_interpreter): New function. | |
1641 | (enable_break): Use it instead of .interp section. | |
1642 | ||
f1838a98 UW |
1643 | 2008-08-26 Ulrich Weigand <[email protected]> |
1644 | ||
1645 | * remote.h (remote_filename_p, remote_bfd_open): Add prototypes. | |
1646 | * remote.c (remote_bfd_iovec_open, remote_bfd_iovec_close, | |
1647 | remote_bfd_iovec_pread, remote_bfd_iovec_stat, remote_filename_p, | |
1648 | remote_bfd_open): New functions. | |
1649 | (remote_hostio_send_command): Fail safely if remote connection | |
1650 | is not set up. | |
1651 | ||
1652 | * solist.h (solib_open): Remove prototype. | |
1653 | (solib_bfd_open): Add prototype. | |
1654 | * solib.c: Include "remote.h". | |
1655 | (solib_open): Remove, replace by ... | |
1656 | (solib_bfd_open): ... this new function. Handle remote BFDs. | |
1657 | (solib_map_sections): Replace solib_open by solib_bfd_open. | |
1658 | * solib-frv.c: Include "exceptions.h". | |
1659 | (enable_break2): Replace solib_open by solib_bfd_open. | |
1660 | * solib-svr4.c: Include "exceptions.h". | |
1661 | (enable_break): Replace solib_open by solib_bfd_open. | |
1662 | ||
1663 | * symfile.c: Include "remote.h". | |
1664 | (build_id_verify): Handle remote BFDs. | |
1665 | (separate_debug_file_exists): Use BFD to access file. Handle | |
1666 | remote BFDs. | |
1667 | (symfile_bfd_open): Handle remote BFDs. | |
1668 | (reread_symbols): Handle remote BFDs. | |
1669 | ||
1670 | * NEWS: Mention "remote:" argument prefix to "set sysroot". | |
1671 | ||
1cf3db46 UW |
1672 | 2008-08-26 Ulrich Weigand <[email protected]> |
1673 | ||
1674 | * gdbarch.sh (target_gdbarch): New global variable. | |
1675 | (deprecated_current_gdbarch_select_hack): Set it. | |
1676 | * gdbarch.c, gdbarch.h: Regenerate. | |
1677 | ||
1678 | * arch-utils.c (gdbarch_update_p): Use target_gdbarch instead | |
1679 | of current_gdbarch. | |
1680 | * target-descriptions.c (target_find_description): Likewise. | |
1681 | * arm-tdep.c (arm_update_current_architecture): Likewise. | |
1682 | (show_fp_model, arm_show_abi, arm_show_fallback_mode, | |
1683 | arm_show_force_mode): Likewise. | |
1684 | * mips-tdep.c (show_mask_address, show_mipsfpu_command, | |
1685 | show_mips_abi): Likewise. | |
1686 | * mep-tdep.c (me_module_register_set, current_me_module): Likewise. | |
1687 | ||
1688 | * target.c (target_translate_tls_address): Use target_gdbarch | |
1689 | instead of current_gdbarch. | |
1690 | * remote.c (struct packet_reg): Likewise. | |
1691 | (get_remote_arch_state, packet_reg_from_regnum, | |
1692 | packet_reg_from_pnum, remote_check_symbols, remote_wait, | |
1693 | remote_address_masked, remote_insert_breakpoint, | |
1694 | remote_insert_hw_breakpoint, remote_read_description): Likewise. | |
1695 | * remote-m32r-sdi.c (m32r_resume, m32r_wait): Likewise. | |
1696 | * remote-mips.c (mips_open, mips_common_breakpoint): Likewise. | |
1697 | * cris-tdep.c (cris_can_use_hardware_watchpoint): Likewise. | |
1698 | ||
1699 | * solib.c (solib_open, solib_map_sections, solib_read_symbols, | |
1700 | solib_add, info_sharedlibrary_command, solib_address, | |
1701 | solib_create_inferior_hook, in_solib_dynsym_resolve_code, | |
1702 | solib_global_lookup): Likewise. | |
1703 | * solib-frv.c (enable_break2, frv_relocate_main_executable): Likewise. | |
1704 | * solib-irix.c (irix_current_sos, irix_open_symbol_file_object): | |
1705 | Likewise. | |
1706 | * solib-sunos.c (sunos_solib_create_inferior_hook): Likewise. | |
1707 | * solib-svr4.c (exec_entry_point, enable_break, svr4_free_so, | |
1708 | set_solib_svr4_fetch_link_map_offsets, svr4_fetch_link_map_offsets): | |
1709 | Likewise. | |
1710 | * nto-tdep.c (nto_find_and_open_solib, nto_init_solib_absolute_prefix, | |
1711 | nto_truncate_ptr): Likewise. | |
1712 | * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Likewise. | |
1713 | ||
6207416c LM |
1714 | 2008-08-26 Luis Machado <[email protected]> |
1715 | ||
1716 | * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections) New structure. | |
1717 | (ppc_linux_vmx_regset_sections): New structure. | |
1718 | (ppc_linux_fp_regset_sections): New structure. | |
1719 | (ppc_linux_init_abi): Select core-file regset based on target | |
1720 | features. | |
1721 | ||
0ff58721 UW |
1722 | 2008-08-26 Ulrich Weigand <[email protected]> |
1723 | ||
1724 | * target.c (debug_print_register): Use regcache_raw_collect | |
1725 | instead of regcache_cooked_read. Only handle raw registers. | |
1726 | ||
6c5561f9 PA |
1727 | 2008-08-25 Pedro Alves <[email protected]> |
1728 | ||
1729 | * cp-name-parser.y: Include config.h before system headers. | |
1730 | ||
ed0c3906 UW |
1731 | 2008-08-25 Ulrich Weigand <[email protected]> |
1732 | ||
1733 | * m88k-tdep.c: Update for unwinder changes. | |
1734 | ||
119ac181 TT |
1735 | 2008-08-24 Tom Tromey <[email protected]> |
1736 | ||
1737 | * s390-tdep.c (s390_address_class_type_flags): Use | |
1738 | TYPE_INSTANCE_FLAG_ADDRESS_CLASS_1. | |
1739 | (s390_address_class_type_flags_to_name): Likewise. | |
1740 | (s390_address_class_name_to_type_flags): Likewise. | |
1741 | ||
803e1097 TT |
1742 | 2008-08-24 Tom Tromey <[email protected]> |
1743 | ||
1744 | * rs6000-tdep.c (rs6000_builtin_type_vec128): Don't use | |
1745 | TYPE_FLAGS. | |
1746 | * features/rs6000/powerpc-vsx32l.c | |
1747 | (initialize_tdesc_powerpc_vsx32l): Update. | |
1748 | * features/rs6000/powerpc-vsx32.c | |
1749 | (initialize_tdesc_powerpc_vsx32): Update. | |
1750 | * features/rs6000/powerpc-vsx64.c | |
1751 | (initialize_tdesc_powerpc_vsx64): Update. | |
1752 | * features/rs6000/powerpc-vsx64l.c | |
1753 | (initialize_tdesc_powerpc_vsx64l): Update. | |
1754 | * target-descriptions.c (maint_print_c_tdesc_cmd): Emit | |
1755 | TYPE_VECTOR, not TYPE_FLAGS. | |
1756 | ||
876cecd0 TT |
1757 | 2008-08-24 Tom Tromey <[email protected]> |
1758 | ||
1759 | * xml-tdesc.c (tdesc_end_union): Update. | |
1760 | * stabsread.c (define_symbol): Update. | |
1761 | (read_type): Update. | |
1762 | (read_struct_type): Update. | |
1763 | (read_enum_type): Update. | |
1764 | * spu-tdep.c (spu_builtin_type_vec128): Update. | |
1765 | * sh-tdep.c (sh_push_dummy_call_fpu): Update. | |
1766 | (sh_push_dummy_call_nofpu): Update. | |
1767 | * mdebugread.c (parse_symbol): Update. | |
1768 | (parse_symbol): Update. | |
1769 | (parse_symbol): Update. | |
1770 | (upgrade_type): Update. | |
1771 | * jv-lang.c (java_lookup_class): Update. | |
1772 | * iq2000-tdep.c (iq2000_pointer_to_address): Update. | |
1773 | * i386-tdep.c (i386_mmx_type): Update. | |
1774 | (i386_sse_type): Update. | |
1775 | * gdbtypes.h (enum type_flag_value): New enum. | |
1776 | (enum type_instance_flag_value): New enum. | |
1777 | (TYPE_FLAG_UNSIGNED, TYPE_FLAG_NOSIGN, TYPE_FLAG_STUB, | |
1778 | TYPE_FLAG_TARGET_STUB, TYPE_FLAG_STATIC, TYPE_FLAG_PROTOTYPED, | |
1779 | TYPE_FLAG_INCOMPLETE, TYPE_FLAG_VARARGS, TYPE_FLAG_VECTOR, | |
1780 | TYPE_FLAG_FIXED_INSTANCE, TYPE_FLAG_STUB_SUPPORTED, | |
1781 | TYPE_FLAG_NOTTEXT): Now enum constants. | |
1782 | (TYPE_FLAG_CONST, TYPE_FLAG_VOLATILE, TYPE_FLAG_CODE_SPACE, | |
1783 | TYPE_FLAG_DATA_SPACE, TYPE_FLAG_ADDRESS_CLASS_1, | |
1784 | TYPE_FLAG_ADDRESS_CLASS_2): Remove. | |
1785 | (TYPE_INSTANCE_FLAG_CONST, TYPE_INSTANCE_FLAG_VOLATILE, | |
1786 | TYPE_INSTANCE_FLAG_CODE_SPACE, TYPE_INSTANCE_FLAG_DATA_SPACE, | |
1787 | TYPE_INSTANCE_FLAG_ADDRESS_CLASS_1, | |
1788 | TYPE_INSTANCE_FLAG_ADDRESS_CLASS_2): New constants. | |
1789 | (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB, TYPE_TARGET_STUB, | |
1790 | TYPE_STATIC, TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_VARARGS, | |
1791 | TYPE_VECTOR, TYPE_FIXED_INSTANCE, TYPE_STUB_SUPPORTED, | |
1792 | TYPE_NOTTEXT): Update. | |
1793 | (TYPE_FLAG_ADDRESS_CLASS_ALL): Remove. | |
1794 | (TYPE_INSTANCE_FLAG_ADDRESS_CLASS_ALL): New define. | |
1795 | (TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE, | |
1796 | TYPE_ADDRESS_CLASS_1, TYPE_ADDRESS_CLASS_2, | |
1797 | TYPE_ADDRESS_CLASS_ALL): Update. | |
1798 | (struct main_type) <flags>: Remove. | |
1799 | <flag_unsigned, flag_nosign, flag_stub, flag_target_stub, | |
1800 | flag_static, flag_prototyped, flag_incomplete, flag_varargs, | |
1801 | flag_vector, flag_stub_supported, flag_nottext, | |
1802 | flag_fixed_instance>: New fields. | |
1803 | <nfields, vptr_fieldno>: Move earlier. | |
1804 | (TYPE_FLAGS): Remove. | |
1805 | * gdbtypes.c (make_pointer_type): Update. | |
1806 | (address_space_name_to_int): Update. | |
1807 | (address_space_int_to_name): Update. | |
1808 | (make_type_with_address_space): Update. | |
1809 | (make_cv_type): Update. | |
1810 | (create_range_type): Update. | |
1811 | (get_discrete_bounds): Update. | |
1812 | (create_set_type): Update. | |
1813 | (make_vector_type): Update. | |
1814 | (smash_to_method_type): Update. | |
1815 | (check_typedef): Update. | |
1816 | (check_stub_method): Update. | |
1817 | (init_type): Individually assign flag fields. | |
1818 | (recursive_dump_type): Don't print entire TYPE_FLAGS field. Do | |
1819 | print TYPE_FIXED_INSTANCE, TYPE_STUB_SUPPORTED, and TYPE_NOTTEXT. | |
1820 | (copy_type_recursive): Copy the entire main type. Don't use | |
1821 | TYPE_FLAGS. | |
1822 | * features/rs6000/powerpc-altivec64l.c | |
1823 | (initialize_tdesc_powerpc_altivec64l): Update. | |
1824 | * features/rs6000/powerpc-altivec64.c | |
1825 | (initialize_tdesc_powerpc_altivec64): Update. | |
1826 | * features/rs6000/powerpc-altivec32l.c | |
1827 | (initialize_tdesc_powerpc_altivec32l): Update. | |
1828 | * features/rs6000/powerpc-altivec32.c | |
1829 | (initialize_tdesc_powerpc_altivec32): Update. | |
1830 | * features/rs6000/powerpc-7400.c (initialize_tdesc_powerpc_7400): | |
1831 | Update. | |
1832 | * features/arm-with-iwmmxt.c (initialize_tdesc_arm_with_iwmmxt): | |
1833 | Update. | |
1834 | * dwarf2read.c (read_structure_type): Update. | |
1835 | (read_enumeration_type): Likewise. | |
1836 | (process_enumeration_scope): Likewise. | |
1837 | (read_tag_pointer_type): Likewise. | |
1838 | (read_subroutine_type): Likewise. | |
1839 | (read_subroutine_type): Likewise. | |
1840 | (read_base_type): Likewise. | |
1841 | * coffread.c (coff_read_enum_type): Update. | |
1842 | * ada-valprint.c (adjust_type_signedness): Update. | |
1843 | * ada-typeprint.c (print_record_field_types): Update. | |
1844 | * ada-lang.c (packed_array_type): Update. | |
1845 | (empty_record): Don't reset TYPE_FLAGS. | |
1846 | (ada_template_to_fixed_record_type_1): Update. | |
1847 | (ada_template_to_fixed_record_type_1): Likewise. | |
1848 | (template_to_static_fixed_type): Likewise. | |
1849 | (to_record_with_fixed_variant_part): Likewise. | |
1850 | (to_fixed_record_type): Likewise. | |
1851 | (to_fixed_array_type): Likewise. | |
1852 | (to_static_fixed_type): Likewise. | |
1853 | ||
d4ce0d3f TT |
1854 | 2008-08-23 Jim Blandy <[email protected]> |
1855 | ||
1856 | PR macros/607: | |
1857 | * symmisc.c (print_symbol_bcache_statistics): Include statistics | |
1858 | for the macro bcache. | |
1859 | ||
2e668a5d TT |
1860 | 2008-08-23 Tom Tromey <[email protected]> |
1861 | ||
1862 | * macrotab.h (struct macro_definition) <kind>: Shrink to one bit. | |
1863 | (argc): Now 31 bits. | |
1864 | ||
75a2d5e7 TT |
1865 | 2008-08-22 Tom Tromey <[email protected]> |
1866 | ||
1867 | * NEWS: Move macro entries back under "New commands". | |
1868 | ||
25db0f1b UW |
1869 | 2008-08-22 Ulrich Weigand <[email protected]> |
1870 | ||
1871 | * breakpoint.c (create_overlay_event_breakpoint): Rename to ... | |
1872 | (create_overlay_event_breakpoint_1): ... this. Add OBJFILE parameter. | |
1873 | (create_overlay_event_breakpoint): Loop over all objfiles to install | |
1874 | multiple instances of the overlay event breakpoint if present. | |
1875 | ||
0391f248 UW |
1876 | 2008-08-22 Ulrich Weigand <[email protected]> |
1877 | ||
1878 | * spu-tdep.c (spu_overlay_new_objfile): Only consider SPU objfiles. | |
1879 | (info_spu_event_command): Command only supported on SPU architecture. | |
1880 | (info_spu_signal_command): Likewise. | |
1881 | (info_spu_mailbox_command): Likewise. | |
1882 | (info_spu_dma_command): Likewise. | |
1883 | (info_spu_proxydma_command): Likewise. | |
1884 | ||
24a73cce UW |
1885 | 2008-08-22 Ulrich Weigand <[email protected]> |
1886 | ||
1887 | * infrun.c (adjust_pc_after_break): Do not call get_thread_regcache | |
1888 | if the thread has already exited. | |
1889 | ||
e0bb1c1c PA |
1890 | 2008-08-22 Pedro Alves <[email protected]> |
1891 | ||
1892 | * infrun.c (proceed): Move back setting previous_inferior_ptid | |
1893 | from here ... | |
1894 | (wait_for_inferior): ... to here. | |
1895 | (fetch_inferior_event): ... and here. | |
1896 | ||
a3ecef73 UW |
1897 | 2008-08-21 Ulrich Weigand <[email protected]> |
1898 | ||
1899 | * gdbarch.sh: Include "regcache.h" into gdbarch.c. | |
1900 | (deprecated_current_gdbarch_select_hack): Call registers_changed | |
1901 | instead of reinit_frame_cache. | |
1902 | * gdbarch.c: Regenerate. | |
1903 | ||
45148c2e UW |
1904 | 2008-08-21 Ulrich Weigand <[email protected]> |
1905 | ||
1906 | * elfread.c (elf_symtab_read): Do not relocate thread-local symbols. | |
1907 | ||
6a94242b DJ |
1908 | 2008-08-21 Daniel Jacobowitz <[email protected]> |
1909 | ||
1910 | * xcoffread.c (SYMNAME_ALLOC): Correct syntax. | |
1911 | ||
5045add0 UW |
1912 | 2008-08-21 Ulrich Weigand <[email protected]> |
1913 | ||
1914 | * findvar.c (locate_var_value): Do not call get_frame_arch | |
1915 | with a NULL frame argument. | |
1916 | ||
029a67e4 UW |
1917 | 2008-08-21 Ulrich Weigand <[email protected]> |
1918 | ||
1919 | * frame.h (frame_map_regnum_to_name): Remove prototype. | |
1920 | (frame_map_name_to_regnum): Remove prototype. | |
1921 | * frame.c (frame_map_regnum_to_name): Remove. | |
1922 | (frame_map_name_to_regnum): Remove. | |
1923 | (frame_unwind_register_value): Use user_reg_map_regnum_to_name | |
1924 | instead of frame_map_regnum_to_name. | |
1925 | * ax-gdb.c: Include "user-regs.h". | |
1926 | (gen_expr): Use user_reg_map_name_to_regnum instead of | |
1927 | frame_map_name_to_regnum. | |
1928 | * eval.c: Include "user-regs.h". | |
1929 | (evaluate_subexp_standard): Use user_reg_map_name_to_regnum | |
1930 | instead of frame_map_name_to_regnum. | |
1931 | * infcmd.c (registers_info): Likewise. | |
1932 | * parse.c: Include "user-regs.h". | |
1933 | (write_dollar_variable): Use user_reg_map_name_to_regnum | |
1934 | instead of frame_map_name_to_regnum. | |
1935 | * tracepoint.c: Include "user-regs.h". | |
1936 | (encode_actions): Use user_reg_map_name_to_regnum | |
1937 | instead of frame_map_name_to_regnum. | |
1938 | * valops.c: Include "user-regs.h". | |
1939 | (value_fetch_lazy): Use user_reg_map_regnum_to_name instead | |
1940 | of frame_map_regnum_to_name. | |
1941 | ||
e84ee240 UW |
1942 | 2008-08-21 Ulrich Weigand <[email protected]> |
1943 | ||
1944 | * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Read | |
1945 | and manually relocate .opd contents from BFD instead of reading | |
1946 | them from target memory. | |
1947 | ||
0114d602 DJ |
1948 | 2008-08-21 Daniel Jacobowitz <[email protected]> |
1949 | ||
1950 | * dwarf2read.c (processing_current_prefix): Delete static | |
1951 | variable. | |
1952 | (process_full_comp_unit): Do not set processing_current_prefix. | |
1953 | (dwarf2_full_name): New function. | |
1954 | (read_func_scope): Do not set processing_current_prefix. Use | |
1955 | determine_prefix. | |
1956 | (read_structure_type): Do not set processing_current_prefix. Remove | |
1957 | unused inner cleanup. | |
1958 | (process_structure_scope): Do not set processing_current_prefix. | |
1959 | (read_enumeration_type): Use dwarf2_full_name. | |
1960 | (determine_class_name): Return a const char *. Put the result | |
1961 | on the objfile obstack. Use dwarf2_full_name. | |
1962 | (read_namespace_type): New function. | |
1963 | (read_namespace): Do not create the type here. Use | |
1964 | determine_prefix. | |
1965 | (read_typedef): Use dwarf2_full_name. Do not pass the name | |
1966 | to init_type. | |
1967 | (read_base_type): Do not pass the name to init_type. Handle | |
1968 | TYPE_FLAG_NOSIGN. | |
1969 | (read_unspecified_type): Do not pass the name to init_type. | |
1970 | (new_symbol): Use dwarf2_full_name instead of | |
1971 | processing_current_prefix. | |
1972 | (read_type_die): Do not set processing_current_prefix. Handle | |
1973 | DW_TAG_namespace. | |
1974 | (determine_prefix): Handle specifications. Return the result | |
1975 | on the objfile obstack. Handle unions correctly. | |
1976 | ||
df8a16a1 DJ |
1977 | 2008-08-21 Daniel Jacobowitz <[email protected]> |
1978 | ||
1979 | * buildsym.c (add_symbol_to_list): Do not call | |
1980 | cp_scan_for_anonymous_namespaces here. | |
1981 | (finish_block): Do not call cp_set_block_scope here. | |
1982 | * cp-namespace.c (processing_has_namespace_info) | |
1983 | (processing_current_prefix): Delete. | |
1984 | (cp_initialize_namespace): Do not initialize | |
1985 | processing_has_namespace_info. | |
1986 | (cp_scan_for_anonymous_namespaces): Use SYMBOL_DEMANGLED_NAME. Do | |
1987 | not check processing_has_namespace_info. | |
1988 | (cp_set_block_scope): Take prefix and namespace info flag as | |
1989 | arguments. Honor namespaces regardless of a demangled name. | |
1990 | * cp-support.h (processing_has_namespace_info) | |
1991 | (processing_current_prefix): Delete declarations. | |
1992 | (cp_set_block_scope): Update prototype. | |
1993 | * dwarf2read.c (processing_has_namespace_info) | |
1994 | (processing_current_prefix): New static variables. | |
1995 | (read_file_scope): Initialize processing_has_namespace_info. | |
1996 | (read_func_scope): Call cp_set_block_scope for C++. | |
1997 | (new_symbol): Call cp_scan_for_anonymous_namespaces for C++. | |
1998 | * symtab.c (symbol_demangled_name): Accept a const argument. | |
1999 | * symtab.h (symbol_demangled_name): Update prototype. | |
2000 | ||
3567439c DJ |
2001 | 2008-08-21 Daniel Jacobowitz <[email protected]> |
2002 | ||
2003 | * ax-gdb.c (gen_var_ref): Use SYMBOL_LINKAGE_NAME. | |
2004 | * blockframe.c (find_pc_partial_function): Likewise. | |
2005 | * buildsym.c (find_symbol_in_list): Likewise. | |
2006 | * c-valprint.c (c_val_print): Likewise. | |
2007 | * coffread.c (patch_opaque_types, process_coff_symbol): Likewise. | |
2008 | (coff_read_enum_type): Likewise. Use SYMBOL_SET_LINKAGE_NAME. | |
2009 | * cp-support.c (cp_remove_params): Renamed from remove_params and | |
2010 | made global. | |
2011 | (overload_list_add_symbol): Update call to remove_params. | |
2012 | * cp-support.h (cp_remove_params): Declare. | |
2013 | * dwarf2read.c (process_enumeration_scope): Use SYMBOL_LINKAGE_NAME. | |
2014 | (dwarf2_const_value): Use SYMBOL_PRINT_NAME. | |
2015 | * expprint.c (dump_subexp_body_standard): Likewise. | |
2016 | * f-valprint.c (info_common_command, there_is_a_visible_common_named): | |
2017 | Use SYMBOL_LINKAGE_NAME to find symbols and SYMBOL_PRINT_NAME | |
2018 | for messages. | |
2019 | * findvar.c (read_var_value): Use SYMBOL_LINKAGE_NAME. | |
2020 | * gnu-v2-abi.c (gnuv2_value_rtti_type): Likewise. | |
2021 | * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline) | |
2022 | (hppa_hpux_skip_trampoline_code): Use SYMBOL_LINKAGE_NAME to find | |
2023 | symbols and SYMBOL_PRINT_NAME for messages. | |
2024 | * jv-lang.c (add_class_symbol): Use SYMBOL_SET_LINKAGE_NAME. | |
2025 | * linespec.c (decode_line_2): Use SYMBOL_LINKAGE_NAME. | |
2026 | * mdebugread.c (parse_symbol): Use SYMBOL_LINKAGE_NAME and | |
2027 | SYMBOL_SET_LINKAGE_NAME. | |
2028 | (mylookup_symbol): Use SYMBOL_LINKAGE_NAME. | |
2029 | * minsyms.c (add_minsym_to_demangled_hash_table): Use | |
2030 | SYMBOL_SEARCH_NAME. | |
2031 | (lookup_minimal_symbol): Use SYMBOL_LINKAGE_NAME or | |
2032 | SYMBOL_MATCHES_SEARCH_NAME, depending on the pass. | |
2033 | * objfiles.h (ALL_OBJFILE_MSYMBOLS): Use SYMBOL_LINKAGE_NAME. | |
2034 | * printcmd.c (build_address_symbolic): Use SYMBOL_LINKAGE_NAME. | |
2035 | (address_info): Use SYMBOL_PRINT_NAME for messages and | |
2036 | SYMBOL_LINKAGE_NAME for lookups. | |
2037 | * sol-thread.c (info_cb): Use SYMBOL_PRINT_NAME for messages. | |
2038 | * stabsread.c (patch_block_stabs, define_symbol) | |
2039 | (read_type, read_enum_type, common_block_end) | |
2040 | (cleanup_undefined_types_1, scan_file_globals): Use | |
2041 | SYMBOL_LINKAGE_NAME, SYMBOL_SET_LINKAGE_NAME, ALL_OBJFILE_MSYMBOLS, | |
2042 | and SYMBOL_PRINT_NAME. | |
2043 | * stack.c (print_frame_args): Use SYMBOL_LINKAGE_NAME. | |
2044 | (print_frame, frame_info): Use SYMBOL_PRINT_NAME for output. Use | |
2045 | cp_remove_params instead of cplus_demangle. | |
2046 | (print_block_frame_labels, print_frame_arg_vars): Use | |
2047 | SYMBOL_LINKAGE_NAME. | |
2048 | * symmisc.c (dump_msymbols): Use ALL_OBJFILE_MSYMBOLS and | |
2049 | SYMBOL_LINKAGE_NAME. | |
2050 | (dump_symtab_1, print_symbol, print_partial_symbols) | |
2051 | (maintenance_check_symtabs): Use SYMBOL_LINKAGE_NAME. | |
2052 | * symtab.h (DEPRECATED_SYMBOL_NAME): Delete. | |
2053 | (SYMBOL_SET_LINKAGE_NAME): New. | |
2054 | (SYMBOL_SET_NAMES): Add a comment. | |
2055 | * tracepoint.c (set_traceframe_context, validate_actionline) | |
2056 | (collect_symbol, scope_info): Use SYMBOL_LINKAGE_NAME for | |
2057 | lookups and SYMBOL_PRINT_NAME for output. | |
2058 | * typeprint.c (typedef_print): Use SYMBOL_LINKAGE_NAME. | |
2059 | * xcoffread.c (process_xcoff_symbol): Use SYMBOL_SET_LINKAGE_NAME. | |
2060 | ||
aded6f54 PA |
2061 | 2008-08-21 Pedro Alves <[email protected]> |
2062 | ||
2063 | * arm-tdep.c (arm_pc_is_thumb): Use obj_section_addr. | |
2064 | * hppa-hpux-tdep.c (hppa_hpux_find_dummy_bpaddr): Likewise. | |
2065 | * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Use | |
2066 | obj_section_addr and obj_section_endaddr. | |
2067 | * hppa-tdep.c (hppa64_convert_code_addr_to_fptr): Likewise. | |
2068 | * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise. | |
2069 | * ia64-tdep.c (ia64_find_global_pointer): Likewise. | |
2070 | (find_extant_func_descr): Likewise. | |
2071 | * solib-frv.c (frv_relocate_main_executable): Use | |
2072 | obj_section_addr. | |
2073 | * xstormy16-tdep.c (xstormy16_find_jmp_table_entry): Use | |
2074 | obj_section_addr and obj_section_endaddr. | |
2075 | ||
158c7665 PH |
2076 | 2008-08-21 Paul N. Hilfinger <[email protected]> |
2077 | ||
2078 | * NEWS: Amplify last entry on boolean types in Ada. | |
2079 | ||
f2f0e013 DJ |
2080 | 2008-08-20 Daniel Jacobowitz <[email protected]> |
2081 | ||
2082 | * dwarf2read.c (die_specification, dwarf2_extension, follow_die_ref): | |
2083 | Make the dwarf2_cu * parameter output as well as input. Update it if | |
2084 | we follow a reference to another CU. | |
2085 | (read_func_scope, determine_class_name, namespace_name, dwarf2_attr) | |
2086 | (die_type, die_containing_type): Update calls to changed functions. | |
2087 | Use the returned CU along with the returned DIE. | |
2088 | (read_namespace): Use dwarf2_attr instead of dwarf2_extension. | |
2089 | ||
03dd20cc DJ |
2090 | 2008-08-20 Daniel Jacobowitz <[email protected]> |
2091 | ||
2092 | * dwarf2read.c (queue_comp_unit): Take an objfile argument. Read | |
2093 | in the DIEs here. | |
2094 | (process_queue): Do not read in the DIEs here. | |
2095 | (psymtab_to_symtab_1): Update call to queue_comp_unit. | |
2096 | (read_full_die): Do not call queue_comp_unit from here. | |
2097 | (maybe_queue_comp_unit): New function. | |
2098 | (follow_die_ref): Use it. | |
2099 | ||
b60c80d6 DJ |
2100 | 2008-08-20 Daniel Jacobowitz <[email protected]> |
2101 | ||
2102 | * dwarf2read.c (struct attribute): Move earlier. | |
2103 | (struct die_info): Change attrs to a trailing array. | |
2104 | (dwarf_alloc_die): Take the number of attributes. Allocate space | |
2105 | for them. | |
2106 | (read_full_die): Update call to dwarf_alloc_die. Do not manually | |
2107 | allocate attributes. | |
2108 | ||
51545339 DJ |
2109 | 2008-08-20 Daniel Jacobowitz <[email protected]> |
2110 | ||
2111 | * dwarf2read.c (REF_HASH_SIZE): Delete. | |
2112 | (struct dwarf2_cu): Replace die_ref_table with die_hash. | |
2113 | (struct die_info): Remove next_ref. | |
2114 | (store_in_ref_table): Remove offset argument. Rewrite to use | |
2115 | htab_find_slot_with_hash. | |
2116 | (die_hash, die_eq): New. | |
2117 | (read_comp_unit): Allocate the die_hash. | |
2118 | (read_die_and_children): Update call to store_die_ref. | |
2119 | (follow_die_ref): Rewrite to use htab_find_with_hash. | |
2120 | ||
7475d072 DJ |
2121 | 2008-08-20 Daniel Jacobowitz <[email protected]> |
2122 | ||
2123 | * dwarf2read.c (free_die_list, copy_die): Delete. | |
2124 | (dwarf_alloc_die): Take a CU argument. Allocate the new DIE | |
2125 | on the obstack. | |
2126 | (read_full_die): Update call to dwarf_alloc_die. Allocate | |
2127 | attributes on the CU obstack. | |
2128 | (free_one_comp_unit): Do not call free_die_list. | |
2129 | ||
1d325ec1 DJ |
2130 | 2008-08-20 Daniel Jacobowitz <[email protected]> |
2131 | ||
2132 | * dwarf2read.c (read_die_and_children): Ignore NULL DIEs. | |
2133 | (read_die_and_siblings): Likewise. Do not add padding DIEs to the | |
2134 | sibling list. | |
2135 | (read_full_die): Do not allocate DIEs for abbrev 0. | |
2136 | (follow_die_ref): Correct error message. | |
2137 | ||
b96e2927 PA |
2138 | 2008-08-20 Pedro Alves <[email protected]> |
2139 | ||
2140 | * linespec.c (symtab_from_filename): Also throw NOT_FOUND_ERROR if | |
2141 | there are no symbols loaded, instead of throwing a generic error. | |
2142 | (decode_variable): Likewise. | |
2143 | ||
f1f6aadf PA |
2144 | 2008-08-20 Pedro Alves <[email protected]> |
2145 | ||
2146 | * objfiles.h (struct obj_section): Remove addr and endaddr fields. | |
2147 | (obj_section_offset, obj_section_addr, obj_section_endaddr): New | |
2148 | macros. | |
2149 | * objfiles.c (add_to_objfile_sections): Don't set addr, endaddr | |
2150 | and offset. Use size_t instead of unsigned long. | |
2151 | (build_objfile_section_table): Use size_t instead of unsigned | |
2152 | long. | |
2153 | (objfile_relocate): Don't relocate s->addr and s->endaddr, they're | |
2154 | gone. | |
2155 | (find_pc_sect_section): Use obj_section_addr and | |
2156 | obj_section_endaddr. | |
2157 | * symfile.c (symfile.c): Remove code that maps sections | |
2158 | offsets in "addr" to the object's sections. | |
2159 | * blockframe.c (find_pc_partial_function): Use obj_section_endaddr. | |
2160 | * gcore.c (gcore_create_callback): Use obj_section_addr and | |
2161 | obj_section_endaddr. | |
2162 | * maint.c (print_objfile_section_info): Likewise. | |
2163 | * printcmd.c (sym_info): Use obj_section_addr and | |
2164 | obj_section_endaddr. | |
2165 | * symtab.c (fixup_section): Likewise. | |
2166 | ||
3923a2b2 MK |
2167 | 2008-08-20 Mark Kettenis <[email protected]> |
2168 | ||
2169 | * sparc-tdep.c: Make some comments catch up with reality. | |
2170 | ||
b3eb342c VP |
2171 | 2008-08-20 Vladimir Prus <[email protected]> |
2172 | ||
2173 | * NEWS: Mention 'set target-async' | |
2174 | ||
7f7efbd9 VP |
2175 | 2008-08-19 Vladimir Prus <[email protected]> |
2176 | ||
2177 | * infrun.c (resume): If the thread is placed to the deferred step | |
2178 | queue, mark it as running. | |
2179 | ||
9908b566 VP |
2180 | 2008-08-19 Vladimir Prus <[email protected]> |
2181 | ||
2182 | Make sure target supports non-stop. | |
2183 | * infcmd.c (run_command_1, attach_command): If non-stop mode | |
2184 | is requested, verify the target supports it. | |
2185 | * linux-nat.c (linux_nat_supports_non_stop): New. | |
2186 | (linux_nat_add_target): Register the above. | |
2187 | * target.c (find_default_supports_non_stop) | |
2188 | (target_supports_non_stop): New. | |
2189 | (init_dummy_target): Register find_default_supports_non_stop. | |
2190 | * target.h (struct target_ops): New field to_supports_non_stop. | |
2191 | (target_supports_non_stop): New. | |
2192 | ||
c6ebd6cf VP |
2193 | 2008-08-19 Pedro Alves <[email protected]> |
2194 | Vladimir Prus <[email protected]> | |
2195 | ||
2196 | * target.c (target_async_permitted, target_async_permitted_1) | |
2197 | (set_maintenance_target_async_permitted) | |
2198 | (show_maintenance_target_async_permitted): New. | |
2199 | (initialize_targets): Register 'set target-async'. | |
2200 | * target.h (target_async_permitted): Declare. | |
2201 | * linux-nat.c (linux_nat_async_enabled) | |
2202 | (linux_nat_async_permitted, set_maintenance_linux_async_permitted) | |
2203 | (show_maintenance_linux_async_permitted): Remove. | |
2204 | (sigchld_handler, linux_nat_is_async_p, linux_nat_can_async_p) | |
2205 | (get_pending_events, linux_nat_async): Use target_async_permitted. | |
2206 | (linux_nat_set_async_mode): Remove, moving the only used bits | |
2207 | into... | |
2208 | (linux_nat_setup_async): This. | |
2209 | (_initialize_linux_nat): Do not register 'maint set linux-async'. | |
2210 | Use linux_nat_setup_async. | |
2211 | * remote.c (remote_async_permitted, remote_async_permitted_set) | |
2212 | (set_maintenance_remote_async_permitted) | |
2213 | (show_maintenance_remote_async_permitted): Remove. | |
2214 | (remote_open_1, remote_terminal_inferior, remote_can_async_p) | |
2215 | (remote_is_async_p): Use target_async_permitted. | |
2216 | (_initialize_remote): Don't register 'main set remote-async'. | |
2217 | * mi/mi-cmds.c (mi_cmds): Register -list-target-features. | |
2218 | * mi/mi-cmds.h (mi_cmd_list_target_features): New. | |
2219 | * mi/mi-main.c (mi_cmd_list_target_features): New. | |
2220 | ||
073120b9 VP |
2221 | 2008-08-19 Vladimir Prus <[email protected]> |
2222 | ||
2223 | * target.c (maybe_kill_then_attach) | |
2224 | (maybe_kill_then_create_inferior): Remove. | |
2225 | (update_current_target): Do not default to_attach, | |
2226 | to_create_inferiour, to_is_async_p. | |
2227 | ||
690cc4eb | 2228 | 2008-08-19 Paul N. Hilfinger <[email protected]> |
bfb8797a PH |
2229 | |
2230 | Changes for supporting boolean types in debugging data. | |
690cc4eb PH |
2231 | * ada-lang.c (discrete_type_high_bound,discrete_type_low_bound): Change |
2232 | API to return LONGEST values rather than struct values. | |
2233 | (ada_evaluate_subexp): Change to use new API of discrete_type_low_bound | |
2234 | and discrete_type_high_bound. | |
2235 | (to_fixed_range_type): Create a range type in cases where | |
2236 | argument is base type and its limits are representable as ints. | |
2237 | (ada_is_modular_type): Correct so that base type must be integral. | |
2238 | * ada-lex.l (TRUEKEYWORD,FALSEKEYWORD): Make 'true' and 'false' | |
2239 | keywords when they appear alone, since we are phasing out | |
bfb8797a | 2240 | direct representation of these identifiers in debugging data. |
690cc4eb PH |
2241 | * ada-exp.y: Define 'true' and 'false' as primaries. |
2242 | (type_boolean): New function. | |
2243 | (type_int,type_long,type_long_long,type_floattype_double) | |
2244 | (type_long_double): Remove uses of current_gdbarch for consistency | |
2245 | with type_boolean. | |
2246 | (write_int): Change comment to indicate that it might write boolean | |
2247 | constant as well. | |
2248 | * ada-typeprint.c (ada_print_type): Print '(false, true)' for boolean | |
2249 | type, since will no longer be represented as enumerated type in | |
2250 | debugging data. | |
2251 | * ada-valprint.c (print_optional_low_bound): Handle boolean case | |
2252 | as well. | |
bfb8797a PH |
2253 | * NEWS: Note support boolean types. |
2254 | ||
39540081 PA |
2255 | 2008-08-18 Pedro Alves <[email protected]> |
2256 | ||
2257 | * bsd-uthread.c (bsd_uthread_close): New. | |
2258 | (bsd_uthread_deactivate): Don't cleanup here, just unpush the | |
2259 | target. | |
2260 | (bsd_uthread_solib_loaded): Fix typo. | |
2261 | (bsd_uthread_target): Register bsd_uthread_close. | |
2262 | ||
87ab71f0 PA |
2263 | 2008-08-18 Pedro Alves <[email protected]> |
2264 | ||
2265 | * corelow.c (core_open): Assume there was no upper layer left | |
2266 | behind from a previous inferior. | |
2267 | * target.c (pop_all_targets): Rename to ... | |
2268 | (pop_all_targets_above): ... this. Add a target stratum | |
2269 | parameter. Use it instead of hardcoding the dummy_stratum. | |
2270 | (pop_all_targets): New, defer to pop_all_targets_above. | |
2271 | (target_preopen): Use pop_all_targets_above. | |
2272 | * target.h (pop_all_targets_above): Declare. | |
2273 | ||
5231c1fd PA |
2274 | 2008-08-18 Pedro Alves <[email protected]> |
2275 | ||
2276 | * gdbthread.h (thread_change_ptid): Declare. | |
2277 | * infrun.c (infrun_thread_ptid_changed): New. | |
2278 | (_initialize_infrun): Attach infrun_thread_ptid_changed to the | |
2279 | thread_ptid_changed observer. | |
2280 | * regcache.c (regcache_thread_ptid_changed): New. | |
2281 | (_initialize_regcache): Attach regcache_thread_ptid_changed to the | |
2282 | thread_ptid_changed observer. | |
2283 | * thread.c (thread_change_ptid): New. | |
2284 | ||
f98dfd4b TT |
2285 | 2008-08-18 Tom Tromey <[email protected]> |
2286 | ||
2287 | * symfile.c (reread_symbols): Update. | |
2288 | * solib-sunos.c (allocate_rt_common_objfile): Update. | |
2289 | * objfiles.c (allocate_objfile): Update. | |
2290 | * objfiles.h (struct objfile) <md, mmfd, deprecated_obj_private>: | |
2291 | Remove. | |
2292 | ||
d87ecdfb TT |
2293 | 2008-08-18 Tom Tromey <[email protected]> |
2294 | ||
2295 | * gdbtypes.c (copy_type_recursive): Allocate 'stored' on objfile's | |
2296 | obstack. | |
2297 | ||
46a9b8ed DJ |
2298 | 2008-08-18 Daniel Jacobowitz <[email protected]> |
2299 | ||
2300 | * rs6000-tdep.c (struct rs6000_framedata): Add gpr_mask, used_bl, | |
2301 | lr_register. | |
2302 | (rs6000_in_function_epilogue_p): Check for bctr. | |
2303 | (skip_prologue): Initialize lr_register. Set lr_reg to a register | |
2304 | number. Set gpr_mask and used_bl. Continue scanning while some | |
2305 | expected registers are not saved. Set lr_register if LR is not | |
2306 | stored. | |
2307 | (rs6000_frame_cache): Handle gpr_mask and lr_register. | |
2308 | ||
44feb3ce TT |
2309 | 2008-08-17 Tom Tromey <[email protected]> |
2310 | ||
2311 | PR gdb/1535: | |
2312 | * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): New macros. | |
2313 | (ep_find_event_name_end): Remove. | |
2314 | (catch_fork_temporary, catch_vfork_temporary, | |
2315 | catch_fork_permanent, catch_vfork_permanent): New constants. | |
2316 | (catch_vfork, catch_fork): Remove. | |
2317 | (catch_fork_command_1): Add 'command' argument. Remove | |
2318 | 'fork_kind' and 'tempflag'. Handle NULL 'arg'. Update switch for | |
2319 | all cases. | |
2320 | (catch_exec_command_1): Add 'command' argument; remove | |
2321 | 'tempflag'. Handle NULL 'arg'. | |
2322 | (catch_load_command_1): Likewise. | |
2323 | (catch_unload_command_1): Likewise. | |
2324 | (catch_ada_exception_command): Likewise. | |
2325 | (catch_assert_command): Likewise. | |
2326 | (catch_catch_command): New function. | |
2327 | (catch_throw_command): Likewise. | |
2328 | (catch_command_1): Remove. | |
2329 | (catch_command): Just call error. | |
2330 | (tcatch_command): Likewise. | |
2331 | (catch_cmdlist): New global. | |
2332 | (tcatch_cmdlist): Likewise. | |
2333 | (add_catch_command): New function. | |
2334 | (_initialize_breakpoint): Create "catch" and "tcatch" as prefix | |
2335 | commands. Create all catch sub-commands. | |
2336 | ||
0d6431e2 PA |
2337 | 2008-08-17 Pedro Alves <[email protected]> |
2338 | ||
2339 | * gdbthread.h: Add comments. | |
2340 | * stack.c (get_selected_block): Return 0 on an exited thread. | |
2341 | * top.c (execute_command): Check for is_stopped, not !is_running. | |
2342 | * event-top.c (command_handler): Likewise. | |
2343 | ||
8931f526 PA |
2344 | 2008-08-16 Pedro Alves <[email protected]> |
2345 | ||
2346 | * mi/mi-main.c (mi_cmd_exec_next, mi_cmd_exec_next_instruction) | |
2347 | (mi_cmd_exec_step, mi_cmd_exec_step_instruction) | |
2348 | (mi_cmd_exec_finish): Remove "return". | |
2349 | ||
aa76d38d PA |
2350 | 2008-08-16 Pedro Alves <[email protected]> |
2351 | ||
2352 | * target.h (pop_all_targets): Declare. | |
2353 | * target.c (pop_all_targets): New. | |
2354 | * top.c (quit_target): Pop all targets instead of just closing the | |
2355 | current. | |
2356 | ||
311a4e6b TJB |
2357 | 2008-08-16 Vladimir Prus <[email protected]> |
2358 | Thiago Jung Bauermann <[email protected]> | |
2359 | ||
2360 | * cli-script.c (read_next_line): Add parse_commands argument. | |
2361 | (recurse_read_control_structure): Adapt to new read_next_line | |
2362 | signature. | |
2363 | (read_command_lines): Add parse_commands argument. | |
2364 | (define_command): Adapt to new read_command_lines signature. | |
2365 | (document_command): Likewise. | |
2366 | * breakpoint.c (commands_command): Likewise. | |
2367 | * defs.h (read_command_lines): Adjust function prototype. | |
2368 | ||
24209737 PH |
2369 | 2008-08-16 Paul N. Hilfinger <[email protected]> |
2370 | ||
2371 | * ada-lang.c (pos_atr): Account for the possibility that the | |
2372 | argument may be a reference. | |
2373 | ||
9f1d5432 PH |
2374 | 2008-08-16 Paul N. Hilfinger <[email protected]> |
2375 | ||
2376 | * xcoffread.c (scan_xcoff_symtab): Do not include global symbols | |
2377 | ('F' format) for @FIX names generated by the loader, retaining only | |
2378 | the minimal symbols (and no partial symbol tables) for these names. | |
2379 | Fixes warning messages about symbols that are found in partial | |
2380 | symbol tables, but not full symbol tables. | |
2381 | ||
83c265ab PA |
2382 | 2008-08-16 Pedro Alves <[email protected]> |
2383 | ||
2384 | * infrun.c (fetch_inferior_event): Only call normal_stop if not | |
2385 | stopping quietly. | |
2386 | ||
604c2f83 LM |
2387 | 2008-08-15 Luis Machado <[email protected]> |
2388 | ||
2389 | * rs6000-tdep: Include "features/rs6000/powerpc-vsx32.c". | |
2390 | Include "features/rs6000/powerpc-vsx64.c". | |
2391 | (ppc_supply_vsxregset): New function. | |
2392 | (ppc_collect_vsxregset): New function. | |
2393 | (IS_VSX_PSEUDOREG): New macro. | |
2394 | (IS_EFP_PSEUDOREG): New macro. | |
2395 | (vsx_register_p): New function. | |
2396 | (ppc_vsx_support_p): New function. | |
2397 | (rs6000_builtin_type_vec128): New function. | |
2398 | (rs6000_register_name): Hide upper halves of vs0~vs31. Return | |
2399 | correct names for VSX registers and EFPR registers. | |
2400 | (rs6000_pseudo_register_type): Return correct types for VSX | |
2401 | and EFPR registers. | |
2402 | (rs6000_pseudo_register_reggroup_p): Return correct group for | |
2403 | VSX and EFPR registers. | |
2404 | (ppc_pseudo_register_read): Rename to dfp_pseudo_register_read. | |
2405 | (ppc_pseudo_register_write): Rename to dfp_pseudo_register_write. | |
2406 | (vsx_pseudo_register_read): New function. | |
2407 | (vsx_pseudo_register_write): New function. | |
2408 | (efpr_pseudo_register_read): New function. | |
2409 | (efpr_pseudo_register_write): New function. | |
2410 | (rs6000_pseudo_register_read): Call new VSX and EFPR read functions. | |
2411 | (rs6000_pseudo_register_write): Call new VSX and EFPR write functions. | |
2412 | (rs6000_gdbarch_init): Declare have_vsx. | |
2413 | Initialize new upper half VSX registers. | |
2414 | Initialize VSX-related and EFPR-related pseudo-registers variables. | |
2415 | Adjust the number of pseudo registers accordingly. | |
2416 | ||
2417 | * ppc-linux-nat.c: Define PTRACE_GETVSXREGS, PTRACE_SETVSXREGS | |
2418 | and SIZEOF_VSRREGS. | |
2419 | (gdb_vsxregset_t): New type. | |
2420 | (have_ptrace_getsetvsxregs): New variable. | |
2421 | (fetch_vsx_register): New function. | |
2422 | (fetch_register): Handle VSX registers. | |
2423 | (fetch_vsx_registers): New function. | |
2424 | (fetch_ppc_registers): Handle VSX registers. | |
2425 | (store_ppc_registers): Handle VSX registers. | |
2426 | (store_vsx_register): New function. | |
2427 | (store_register): Handle VSX registers. | |
2428 | (store_vsx_registers): New function. | |
2429 | (ppc_linux_read_description): Handle VSX-enabled inferiors. | |
2430 | (gdb_vsxregset_t): New type. | |
2431 | (supply_vsxregset): New function. | |
2432 | (fill_vsxregset): New function. | |
2433 | ||
2434 | * ppc-tdep.h (vsx_register_p): New prototype. | |
2435 | (vsx_support_p): New prototype. | |
2436 | (ppc_vsr0_regnum): New variable. | |
2437 | (ppc_vsr0_upper_regnum): Likewise. | |
2438 | (ppc_efpr0_regnum): Likewise. | |
2439 | (ppc_builtin_type_vec128): New type. | |
2440 | (ppc_num_vsrs): New constant. | |
2441 | (ppc_num_vshrs): New constant. | |
2442 | (ppc_num_efprs): Likewise. | |
2443 | Define POWERPC_VEC_VSX PPC_VSR0_UPPER_REGNUM and PPC_VSR31_UPPER_REGNUM. | |
2444 | (ppc_supply_vsxregset): New prototype. | |
2445 | (ppc_collect_vsxregset): New prototype. | |
2446 | ||
2447 | * ppc-linux-tdep.c: Include "features/rs6000/powerpc-vsx32l.c" | |
2448 | Include "features/rs6000/powerpc-vsx64l.c". | |
2449 | (_initialize_ppc_linux_tdep): Initialize VSX-enabled targets. | |
2450 | (ppc_linux_regset_sections): Add new ".reg-ppc-vsx" field. | |
2451 | (ppc32_linux_vsxregset): New 32-bit VSX-enabled regset. | |
2452 | (ppc_linux_regset_from_core_section): Handle VSX core section. | |
2453 | (ppc_linux_core_read_description): Support VSX-enabled core files. | |
2454 | ||
2455 | * ppc-linux-tdep.h: Declare *tdesc_powerpc_vsx32l | |
2456 | Declare tdesc_powerpc_vsx64l | |
2457 | ||
2458 | * corelow.c (get_core_register_section): Support VSX-enabled | |
2459 | core files. | |
2460 | ||
2461 | * features/rs6000/power-vsx.xml: New VSX descriptions. | |
2462 | * features/rs6000/powerpc-vsx32.xml: New file. | |
2463 | * features/rs6000/powerpc-vsx32l.xml: New file. | |
2464 | * features/rs6000/powerpc-vsx64.xml: New file. | |
2465 | * features/rs6000/powerpc-vsx64l.xml: New file. | |
2466 | * features/rs6000/powerpc-vsx32.c: New file (generated). | |
2467 | * features/rs6000/powerpc-vsx32l.c: New file (generated). | |
2468 | * features/rs6000/powerpc-vsx64.c: New file (generated). | |
2469 | * features/rs6000/powerpc-vsx64l.c: New file (generated). | |
2470 | * features/Makefile: Updated with new descriptions. | |
2471 | * regformats/rs6000/powerpc-vsx32l.dat: New file (generated). | |
2472 | * regformats/rs6000/powerpc-vsx64l.dat: New file (generated). | |
2473 | ||
dde7c0a9 VP |
2474 | 2008-08-15 Vladimir Prus <[email protected]> |
2475 | ||
2476 | * ia64-linux.nat (_initialize_ia64_linux_nat): Don't | |
2477 | call linux_target twice. | |
2478 | ||
ebd67d87 AR |
2479 | 2008-08-14 Aleksandar Ristovski <[email protected]> |
2480 | ||
2481 | * nto-tdep.c (lm_info): Updated struct lm_info definition from | |
2482 | solib-svr4.c | |
2483 | (LM_ADDR): Use l_addr if available; if not, use link map and set | |
2484 | l_addr. | |
2485 | ||
886a217c TT |
2486 | 2008-08-14 Tom Tromey <[email protected]> |
2487 | ||
2488 | * macrocmd.c (macro_define_command): Check for NULL argument. | |
2489 | (macro_undef_command): Likewise. | |
2490 | ||
3d488bfc PA |
2491 | 2008-08-14 Pedro Alves <[email protected]> |
2492 | ||
2493 | * infcmd.c (continue_1): Add an ERROR_NO_INFERIOR call. | |
2494 | ||
33e5cbd6 PA |
2495 | 2008-08-13 Pedro Alves <[email protected]> |
2496 | ||
2497 | * breakpoint.c (always_inserted_auto, always_inserted_on) | |
2498 | (always_inserted_off, always_inserted_enums): New. | |
2499 | (always_inserted_mode): Change type to char* and point to | |
2500 | always_inserted_auto. | |
2501 | (show_always_inserted_mode): In auto mode, also show the current | |
2502 | effect of the option. | |
2503 | (breakpoints_always_inserted_mode): Adjust for the new auto mode. | |
2504 | (_initialize_breakpoint): Make the "set breakpoints | |
2505 | always-inserted" command an enum command. Extend help to describe | |
2506 | the auto mode. | |
2507 | ||
8fbde58b UW |
2508 | 2008-08-13 Ulrich Weigand <[email protected]> |
2509 | ||
2510 | * spu-tdep.c (info_spu_dma_command): Respect TSQV (tag status | |
2511 | query valid) bit. Ignore bits outside the condition field. | |
2512 | (info_spu_proxydma_command): Ignore bits outside the field. | |
2513 | ||
11fa8e43 MS |
2514 | 2008-08-12 Michael Snyder <[email protected]> |
2515 | ||
2516 | * MAINTAINERS: Update my email address. | |
2517 | ||
fcb09a75 UW |
2518 | 2008-08-12 Ulrich Weigand <[email protected]> |
2519 | ||
2520 | * ppc-linux-nat.c (ppc_linux_get_hwcap): Really get AT_HWCAP. | |
2521 | ||
a6f3e723 SL |
2522 | 2008-08-12 Pedro Alves <[email protected]> |
2523 | ||
2524 | Add no-ack mode to the remote protocol --- optionally stop ACKing | |
2525 | packets and responses when we have a reliable communication | |
2526 | medium. | |
2527 | ||
2528 | Based on Apple's GDB, by Jason Molenda <[email protected]> | |
2529 | ||
2530 | * remote.c (struct remote_state): Add noack_mode field. | |
2531 | (PACKET_QStartNoAckMode): New. | |
2532 | (remote_start_remote): Don't any outstanding packet here. | |
2533 | (remote_open_1): Clear noack_mode. Ack any outstanding packet | |
2534 | here. Activate noack mode if requested. | |
2535 | (remote_protocol_features): Add QStartNoAckMode. | |
2536 | (remote_open_1): | |
2537 | (putpkt_binary): Don't send ack in noack mode. | |
2538 | (read_frame): Don't recompute the checksum in noack mode. | |
2539 | (getpkt_sane): Skip sending ack if in noack mode. | |
2540 | (_initialize_remote): Add set/show remote noack mode. | |
2541 | * NEWS: Note the new features. | |
2542 | ||
8ab3d180 KB |
2543 | 2008-08-11 Kevin Buettner <[email protected]> |
2544 | ||
2545 | * rs6000-tdep.c (BL_MASK, BL_INSTRUCTION, BL_DISPLACEMENT_MASK): | |
2546 | New macros. | |
2547 | (rs6000_skip_main_prologue): New function. | |
2548 | (rs6000_gdb_arch_init): Register rs6000_skip_main_prologue. | |
2549 | ||
63a61bf6 SL |
2550 | 2008-08-11 Sandra Loosemore <[email protected]> |
2551 | ||
2552 | * MAINTAINERS (Write After Approval): Add self. | |
2553 | ||
9d4fde75 SS |
2554 | 2008-08-11 Stan Shebs <[email protected]> |
2555 | ||
2556 | ARM BE8 support. | |
2557 | * disasm.c (gdb_disassemble_info): Set endian_code. | |
2558 | * gdbarch.sh (gdbarch_info): New field byte_order_for_code. | |
2559 | * gdbarch.h, gdbarch.c: Regenerate. | |
2560 | * arch-utils.c (initialize_current_architecture): Set the | |
2561 | default byte_order_for_code. | |
2562 | (gdbarch_info_init): Ditto. | |
2563 | (gdbarch_info_fill): Ditto. | |
2564 | * arm-tdep.c (SWAP_INT, SWAP_SHORT): New macros. | |
2565 | (thumb_analyze_prologue): Swap halfword if code endianness is | |
2566 | different from general endianness. | |
2567 | (arm_skip_prologue): Similarly. | |
2568 | (arm_scan_prologue): Ditto. | |
2569 | (thumb_get_next_pc): Ditto. | |
2570 | (arm_get_next_pc): Ditto. | |
2571 | (arm_gdbarch_init): Set byte_order_for_code from BE8 flag, | |
2572 | choose correct endianness for breakpoints. | |
2573 | ||
6c613132 PA |
2574 | 2008-08-10 Pedro Alves <[email protected]> |
2575 | ||
2576 | * bsd-kvm.c: Include "gdbthread.h". | |
2577 | (bsd_kvm_ptid): New. | |
2578 | (bsd_kvm_open): Add a main thread. | |
2579 | (bsd_kvm_close): Delete it. | |
2580 | (bsd_kvm_thread_alive): New. | |
2581 | (bsd_kvm_pid_to_str): New. | |
2582 | (bsd_kvm_add_target): Register bsd_kvm_thread_alive and | |
2583 | bsd_kvm_pid_to_str. | |
2584 | (bsd_kvm_add_target): Initialize bsd_kvm_ptid. | |
2585 | ||
6eb7ee03 PA |
2586 | 2008-08-09 Pedro Alves <[email protected]> |
2587 | ||
2588 | * buildsym.c (start_subfile): Properly cast sentinel in concat | |
2589 | call. | |
2590 | * cp-name-parser.y: Include "config.h". | |
2591 | * xml-tdesc.c (fetch_xml_from_file): Properly cast sentinel in | |
2592 | concat call. | |
2593 | * gdb_select.h: Include sys/time.h if sys/select.h is not | |
2594 | available. | |
2595 | ||
444c3224 PA |
2596 | 2008-08-09 Pedro Alves <[email protected]> |
2597 | ||
2598 | * go32-nat.c: Include "gdbthread.h". | |
2599 | (go32_stop, go32_kill_inferior): Delete the main thread. | |
2600 | (go32_create_inferior): Add it. | |
2601 | (go32_thread_alive, go32_pid_to_str): New. | |
2602 | (init_go32_ops): Register go32_thread_alive and go32_pid_to_str. | |
2603 | ||
9d0b3624 PA |
2604 | 2008-08-09 Pedro Alves <[email protected]> |
2605 | ||
2606 | * go32-nat.c (fetch_register, store_register): Pass the regcache | |
2607 | gdbarch to i386_fp_regnum_p and i386_fpc_regnum_p. | |
2608 | (go32_xfer_memory): Change type of myaddr parameter to gdb_byte. | |
2609 | (struct seg_descr, struct seg_descr): pack the whole struct | |
2610 | instead of each member individually. | |
2611 | ||
509238d6 AS |
2612 | 2008-08-09 Andreas Schwab <[email protected]> |
2613 | ||
2614 | * python/python.c (_initialize_python): Use unabbreviated commands | |
2615 | in prefix name. | |
2616 | ||
c068b4e8 DJ |
2617 | 2008-08-09 Daniel Jacobowitz <[email protected]> |
2618 | ||
2619 | * Makefile.in (stamp-h): Also create .deps. | |
2620 | ||
21374e5f TT |
2621 | 2008-08-09 Tom Tromey <[email protected]> |
2622 | ||
2623 | * Makefile.in (generated_files): Add GNULIB_H. | |
2624 | ||
7be67755 DA |
2625 | 2008-08-09 John David Anglin <[email protected]> |
2626 | ||
2627 | * solib-pa64.c (pa64_solib_create_inferior_hook): Don't set | |
2628 | DT_HP_DEBUG_PRIVATE. Add warning if DT_HP_DEBUG_PRIVATE is not set. | |
2629 | Revise comment. | |
2630 | (pa64_current_sos): Remove map private warning warning. | |
2631 | * solib-som.c: Include string.h and sys/utsname.h. | |
2632 | (get_hpux_major_release): New function. | |
2633 | (som_solib_create_inferior_hook): Read dynamic linker header. Warn | |
2634 | about shared library private mapping on HP-UX 11 and later. Only force | |
2635 | private mapping of shared libraries on HP-UX 10 and earlier. | |
2636 | (link_map_start): Delete warning. | |
2637 | ||
e0c62198 L |
2638 | 2008-08-09 Xuepeng Guo <[email protected]> |
2639 | H.J. Lu <[email protected]> | |
2640 | Mark Kettenis <[email protected]> | |
2641 | ||
2642 | * amd64-tdep.c (amd64_frame_cache): Add saved_sp_reg. | |
2643 | (amd64_init_frame_cache): Initialize saved_sp_reg. | |
2644 | (amd64_analyze_stack_align): New. | |
2645 | (amd64_analyze_prologue): Call it. | |
2646 | (amd64_frame_cache): Use saved_sp_reg if it is invalid. Don't set | |
2647 | %rip to 8 when halfway aligning the stack. | |
2648 | ||
2649 | * amd64-tdep.h (amd64_regnum): Add AMD64_R9_REGNUM to | |
2650 | AMD64_R14_REGNUM. | |
2651 | ||
2652 | * i386-tdep.c (i386_frame_cache): Remove stack_align. Add | |
2653 | saved_sp_reg. | |
2654 | (i386_alloc_frame_cache): Remove stack_align. Initialize | |
2655 | saved_sp_reg to -1. | |
2656 | (i386_analyze_stack_align): Rewrite. | |
2657 | (i386_frame_cache): Use saved_sp_reg if it is valid. | |
2658 | ||
b9db4ced UW |
2659 | 2008-08-09 Ulrich Weigand <[email protected]> |
2660 | ||
2661 | * target.c: Include "solib.h". | |
2662 | (target_pre_inferior): Call no_shared_libraries. | |
2663 | * infcmd.c (run_command_1): Do not call objfile_purge_solibs | |
2664 | or clear_solib. | |
2665 | (attach_command): Do not call clear_solib. | |
2666 | ||
3979a37f MK |
2667 | 2008-08-09 Mark Kettenis <[email protected]> |
2668 | ||
2669 | * i386obsd-nat.c (i386obsd_supply_pcb): Supply the right bytes for | |
2670 | the %eip register. | |
2671 | ||
2b26d9fa TT |
2672 | 2008-08-08 Tom Tromey <[email protected]> |
2673 | ||
2674 | * Makefile.in (python.o): Remove dependencies. Use COMPILE and | |
2675 | POSTCOMPILE. | |
2676 | (python-utils.o): Likewise. | |
2677 | ||
f1648876 AS |
2678 | 2008-08-08 Andreas Schwab <[email protected]> |
2679 | ||
2680 | * corefile.c (_initialize_core): Remove spurious paren from set | |
2681 | gnutarget doc string. | |
2682 | ||
b7622095 LM |
2683 | 2008-08-08 Luis Machado <[email protected]> |
2684 | ||
2685 | * ppc-linux-nat.c: Include "auxv.h" and "elf/common.h". | |
f1648876 | 2686 | Define PPC_FEATURE_BOOKE. |
b7622095 LM |
2687 | (ppc_linux_get_hwcap): New function. |
2688 | (ppc_linux_region_ok_for_hw_watchpoint): Handle PowerPC 440 | |
2689 | 4-bytes alignment restrictions. | |
2690 | (ppc_linux_insert_watchpoint): Handle PowerPC 440-specific | |
2691 | positioning of the read/write flags. | |
2692 | (ppc_linux_watchpoint_addr_within_range): Handle PowerPC 440 | |
2693 | 4-bytes alignment. | |
2694 | ||
2dc38344 PA |
2695 | 2008-08-08 Pedro Alves <[email protected]> |
2696 | ||
2697 | Use ptid_t.tid to store thread ids instead of ptid_t.pid. | |
2698 | ||
2699 | * win32-nat.c (win32_add_thread): Change thread argument type to | |
2700 | ptid_t. Adjust. | |
2701 | (win32_add_thread): Adjust. | |
2702 | (win32_delete_thread): Change thread argument type to ptid_t. | |
2703 | Adjust. | |
2704 | (win32_fetch_inferior_registers, win32_store_inferior_registers) | |
2705 | (win32_resume, get_win32_debug_event, get_win32_debug_event) | |
2706 | (win32_wait, win32_pid_to_exec_file, win32_pid_to_str): Adjust. | |
2707 | (init_win32_ops): Put to_magic last. | |
2708 | (win32_win32_thread_alive): Adjust. | |
2709 | ||
4d6c6261 PA |
2710 | 2008-08-08 Pedro Alves <[email protected]> |
2711 | ||
2712 | * remote-m32r-sdi.c (m32r_thread_alive, m32r_pid_to_str): New. | |
2713 | (init_m32r_ops): Register m32r_thread_alive and m32r_pid_to_str. | |
2714 | ||
e5ef4d75 PA |
2715 | 2008-08-08 Pedro Alves <[email protected]> |
2716 | ||
2717 | * remote-m32r-sdi.c: Include "gdbthread.h". | |
2718 | (remote_m32r_ptid): New. | |
2719 | (m32r_close): Delete the main thread. | |
2720 | (m32r_resume): Set inferior_ptid toA remote_m32r_ptid. Add the | |
2721 | main thread. | |
2722 | (m32r_kill, m32r_load, sdireset_command): Delete the main thread. | |
2723 | (_initialize_remote_m32r): Initialize remote_m32r_ptid. | |
2724 | ||
a417dc56 RW |
2725 | 2008-08-07 Tom Tromey <[email protected]> |
2726 | Ralf Wildenhues <[email protected]> | |
2727 | ||
2728 | * aclocal.m4, configure: Rebuild. | |
2729 | * configure.in: Call ZW_CREATE_DEPDIR, | |
2730 | ZW_PROG_COMPILER_DEPENDENCIES, AC_PROG_MAKE_SET. | |
2731 | (MAKE, GMAKE): New substs. | |
2732 | * acinclude.m4: Include depstand.m4. | |
2733 | * Makefile.in (DEPMODE, DEPDIR, COMPILE.post, COMPILE.pre, | |
2734 | COMPILE, POSTCOMPILE, depcomp): New variables. | |
2735 | Remove all _h variables. | |
2736 | Remove many .o targets. | |
2737 | ($(srcdir)/copying.c): avoid backslash-newline after comment | |
2738 | sign (@maintainer_mode_true@). | |
2739 | (HFILES_NO_SRCDIR): Regenerate. | |
2740 | (generated_files): New variable. | |
2741 | (all_gdbtk_cflags): Likewise. | |
2742 | (.c.o): Rewrote. | |
2743 | (init.o, version.o, copying.o): Remove. | |
2744 | (distclean): Remove DEPDIR. | |
2745 | (test-cp-name-parser.o, hpux-thread.o, main.o, monitor.o, | |
2746 | printcmd.o, procfs.o, v850ice.o): Rewrite. | |
2747 | (cli-cmds.o, cli-decode.o, cli-dump.o, cli-interp.o, cli-logging.o, | |
2748 | cli-script.o, cli-setshow.o, cli-utils.o): Likewise. | |
2749 | (gdbtk.o, gdbtk-bp.o, gdbtk-cmds.o, gdbtk-hooks.o, gdbtk-interp.o, | |
2750 | gdbtk-main.o, gdbtk-register.o, gdbtk-stack.o, gdbtk-varobj.o, | |
2751 | gdbtk-wrapper.o): Likewise. | |
2752 | (mi-cmd-break.o, mi-cmd-disas.o, mi-cmd-env.o, mi-cmd-file.o, | |
2753 | mi-cmds.o, mi-cmd-stack.o, mi-cmd-target.o, mi-cmd-var.o, | |
2754 | mi-console.o, mi-getopt.o, mi-interp.o, mi-main.o, mi-out.o, | |
2755 | mi-parse.o, mi-symbol-cmds.o, mi-common.o, signals.o, tui.o, | |
2756 | tui-command.o, tui-data.o, tui-disasm.o, tui-file.o, tui-hooks.o, | |
2757 | tui-interp.o, tui-io.o, tui-layout.o, tui-main.o, tui-out.o, | |
2758 | tui-regs.o, tui-source.o, tui-stack.o, tui-win.o, tui-windata.o, | |
2759 | tui-wingeneral.o, tui-winsource.o): Likewise. | |
2760 | (all_object_files): New variable. | |
2761 | ($(all_object_files)): New target. | |
2762 | Include dependency files, when using GNU Make. | |
2763 | ||
12ab8a60 UW |
2764 | 2008-08-07 Ulrich Weigand <[email protected]> |
2765 | ||
2766 | * spu-tdep.c (info_spu_dma_cmdlist): Only show entries with | |
2767 | the valid bit set. Ensure display order respects partial | |
2768 | order defined by dependency bits. | |
2769 | ||
6536cc32 DA |
2770 | 2008-08-06 John David Anglin <[email protected]> |
2771 | ||
2772 | * solib-pa64.c (read_dld_descriptor): Return zero if load map is not | |
2773 | setup. | |
2774 | ||
f73a15e4 MK |
2775 | 2008-08-06 Mark Kettenis <[email protected]> |
2776 | ||
2777 | * i386obsd-nat.c (i386obsd_supply_pcb): Adjust for changes in | |
2778 | OpenBSD 4.3. | |
2779 | ||
d57a3c85 TJB |
2780 | 2008-08-06 Vladimir Prus <[email protected]> |
2781 | Tom Tromey <[email protected]> | |
2782 | Thiago Jung Bauermann <[email protected]> | |
2783 | Doug Evans <[email protected]> | |
2784 | ||
2785 | * Makefile.in (SUBDIR_PYTHON_OBS, SUBDIR_PYTHON_SRCS, | |
2786 | SUBDIR_PYTHON_DEPS, SUBDIR_PYTHON_LDFLAGS, SUBDIR_PYTHON_CFLAGS, | |
2787 | PYTHON_CFLAGS): New. | |
2788 | (python_h, python_internal_h): New. | |
2789 | (cli-script.o): Depend on python.h | |
2790 | (python.o, python-utils.o): New. | |
2791 | * cli/cli-script.c (print_command_lines): Handle python_control. | |
2792 | (execute_control_command): Handle python_control. | |
2793 | (execute_control_command_untraced): New function. | |
2794 | (while_command): Call execute_control_command_untraced. | |
2795 | (if_command): Likewise. | |
2796 | (get_command_line): Remove static attribute. | |
2797 | (read_next_line): Handle "python". | |
2798 | (recurse_read_control_structure): Handle python_control. | |
2799 | (read_command_lines): Handle python_control. | |
2800 | Include python.h. | |
2801 | * cli/cli-script.h (get_command_line): Add prototype. | |
2802 | (execute_control_command_untraced): Likewise. | |
2803 | * configure.ac: Add --with-python. | |
2804 | * defs.h (enum command_control_type) <python_control>: New | |
2805 | constant. | |
2806 | * python/python-internal.h: New file. | |
2807 | * python/python.c: New file. | |
2808 | * python/python.h: New file. | |
2809 | * python/python-utils.c: New file. | |
2810 | * NEWS: Mention Python scripting support and its new commands. | |
2811 | ||
5141027d UW |
2812 | 2008-08-06 Ulrich Weigand <[email protected]> |
2813 | ||
2814 | * spu-tdep.c (spu_gdbarch_init): Call set_gdbarch_frame_red_zone_size. | |
2815 | ||
353cfe88 PM |
2816 | 2008-08-06 Phil Muldoon <[email protected]> |
2817 | ||
f1648876 | 2818 | * MAINTAINERS (Write After Approval): Add self. |
353cfe88 | 2819 | |
d6b74ac4 PM |
2820 | 2008-08-06 Phil Muldoon <[email protected]> |
2821 | ||
2822 | * breakpoint.c (hw_breakpoint_used_count): Use breakpoint_enabled. | |
2823 | (insert_breakpoint_locations): Likewise. | |
2824 | ||
ef0d312a MS |
2825 | 2008-08-05 Phil Muldoon <[email protected]> |
2826 | ||
2827 | * breakpoint.c (create_longjmp_breakpoint): Remove unused struct | |
2828 | breakpoint. | |
2829 | (set_longjmp_breakpoint): Likewise. | |
2830 | ||
fb6d93b2 UW |
2831 | 2008-08-04 John David Anglin <[email protected]> |
2832 | ||
2833 | PR build/2490 | |
2834 | * solib-pa64.c: Only compile if both HAVE_ELF_HP_H and __LP64__ are | |
2835 | defined. | |
2836 | ||
e6ad058a TT |
2837 | 2008-08-05 Tom Tromey <[email protected]> |
2838 | ||
2839 | * bcache.c (deprecated_bcache_added): Initialize obstack. | |
2840 | (bcache_xmalloc): Don't initialize obstack. | |
2841 | (bcache_xfree): Conditionally free obstack. | |
2842 | (bcache_memory_used): Update. | |
2843 | ||
11d31d94 TT |
2844 | 2008-08-05 Tom Tromey <[email protected]> |
2845 | ||
2846 | * symfile.c (add_psymbol_to_bcache): Return a const pointer. Use | |
2847 | bcache_full. | |
2848 | (append_psymbol_to_list): Accept a const pointer. | |
2849 | (add_psymbol_to_list): Fix const correctness. | |
2850 | * bcache.h: (deprecated_bcache_added, deprecated_bcache): Remove. | |
2851 | (bcache_full): Declare. | |
2852 | * bcache.c (bcache_data, deprecated_bcache): Remove. | |
2853 | (bcache): Use bcache_full. | |
2854 | (bcache_full): Rename from deprecated_bcache_added. Change return | |
2855 | type. | |
2856 | ||
5be973eb SS |
2857 | 2008-08-04 Stan Shebs <[email protected]> |
2858 | ||
2859 | * solib-svr4.c (BKPT_AT_SYMBOL): Remove, always defined. | |
2860 | (bkpt_names): Remove SOLIB_BKPT_NAME, never defined. | |
2861 | (enable_break): Remove test of BKPT_AT_SYMBOL. | |
2862 | ||
5062cc19 KS |
2863 | 2008-08-02 Keith Seitz <[email protected]> |
2864 | ||
2865 | * acinclude.m4: Include ../config/tcl.m4 to pick up | |
2866 | standard Tcl configury bits. | |
2867 | Remove all Tcl, Tk, Itcl, Itk, etc definitions. | |
2868 | * configure.ac: Don't check if ../itcl exists when building | |
2869 | gdbtk. It could be installed. | |
2870 | Rewrite gdbtk configury to allow for using system-supplied | |
f1648876 | 2871 | Tcl and Tk. Gdbtk no longer requires build-time access to |
5062cc19 KS |
2872 | itcl and itk. |
2873 | * Makefile.in: Remove everything related to itcl and itk. | |
2874 | Rewrite the Tcl bits for gdbtk to correspond to rewrite of | |
2875 | configure.ac. | |
2876 | Remove v850ice.o build rule. | |
2877 | (ALL_TCL_CFLAGS): New convenience defintion. Change all | |
2878 | gdbtk sources to use it. | |
2879 | * configure: Regenerate. | |
f1648876 | 2880 | |
6d76a53d SS |
2881 | 2008-07-31 Stan Shebs <[email protected]> |
2882 | ||
2883 | * coffread.c (coff_symtab_read): Remove FUNCTION_EPILOGUE_SIZE. | |
2884 | ||
ed7c5e43 SS |
2885 | 2008-07-30 Stan Shebs <[email protected]> |
2886 | ||
2887 | * objfiles.c (TARGET_KEEP_SECTION): Remove. | |
2888 | (add_to_objfile_sections): Remove use. | |
2889 | ||
22ad7fee TT |
2890 | 2008-07-29 Tom Tromey <[email protected]> |
2891 | ||
2892 | * cli/cli-decode.c (lookup_cmd_1): Use memcpy. | |
2893 | (lookup_cmd_composition): Likewise. | |
2894 | ||
d5529a84 TT |
2895 | 2008-07-29 Tom Tromey <[email protected]> |
2896 | ||
2897 | * cli/cli-cmds.c (edit_command): Remove unused variables. Delete | |
2898 | dead code. Fix indentation. | |
2899 | ||
938f4ca8 SS |
2900 | 2008-07-29 Stan Shebs <[email protected]> |
2901 | ||
2902 | * main.c (captured_main): Remove long-unused #if 0 blocks. | |
2903 | ||
7f4b89d1 TT |
2904 | 2008-07-28 Tom Tromey <[email protected]> |
2905 | ||
2906 | * annotate.h (deprecated_annotate_starting_hook): Remove. | |
2907 | (deprecated_annotate_stopped_hook): Remove. | |
2908 | (deprecated_annotate_exited_hook): Remove. | |
2909 | * Makefile.in (annotate.o): Depend on observer_h. | |
2910 | * top.c (deprecated_delete_breakpoint_hook): Remove. | |
2911 | (deprecated_create_breakpoint_hook): Likewise. | |
2912 | (deprecated_modify_breakpoint_hook): Likewise. | |
2913 | * interps.c (clear_interpreter_hooks): Update for removed hooks. | |
2914 | * breakpoint.c (mention): Don't call removed hook. | |
2915 | (delete_breakpoint): Likewise. | |
2916 | (disable_breakpoint): Likewise. | |
2917 | (do_enable_breakpoint): Likewise. | |
2918 | * annotate.c: Include observer.h. | |
2919 | (breakpoint_changed): Change type of argument. | |
2920 | (_initialize_annotate): Register observers. | |
2921 | (deprecated_annotate_starting_hook): Remove. | |
2922 | (deprecated_annotate_stopped_hook): Remove. | |
2923 | (deprecated_annotate_exited_hook): Remove. | |
2924 | (annotate_starting): Update for hook removal. | |
2925 | (annotate_stopped): Likewise. | |
2926 | (annotate_exited): Likewise. | |
2927 | * defs.h (deprecated_delete_breakpoint_hook): Remove. | |
2928 | (deprecated_create_breakpoint_hook): Likewise. | |
2929 | (deprecated_modify_breakpoint_hook): Likewise. | |
2930 | ||
8641e682 TT |
2931 | 2008-07-28 Tom Tromey <[email protected]> |
2932 | ||
2933 | * main.c (captured_main): Don't use BEFORE_MAIN_LOOP_HOOK. | |
2934 | ||
064ef605 DJ |
2935 | 2008-07-27 Daniel Jacobowitz <[email protected]> |
2936 | ||
2937 | * configure.ac: Check for the GNU/Linux ptrace signature. | |
2938 | * configure: Regenerated. | |
2939 | ||
57380f4e DJ |
2940 | 2008-07-27 Daniel Jacobowitz <[email protected]> |
2941 | ||
2942 | * linux-nat.c (resume_callback): Add more debugging output. | |
2943 | (linux_nat_has_pending_sigint): New function, based on | |
2944 | linux_nat_has_pending. | |
2945 | (set_ignore_sigint, maybe_clear_ignore_sigint): New functions. | |
2946 | (stop_wait_callback): Remove flush_mask handling. Honor | |
2947 | ignore_sigint. Call maybe_clear_ignore_sigint. Pass NULL | |
2948 | to recursive calls. | |
2949 | (linux_nat_has_pending, flush_callback): Remove. | |
2950 | (linux_nat_filter_event): Check for ignore_sigint. | |
2951 | (linux_nat_wait): Remove flush_mask support and call to | |
2952 | flush_callback. Use set_ignore_sigint and maybe_clear_ignore_sigint. | |
2953 | * linux-nat.h (struct lwp_info): Add ignore_sigint field. | |
2954 | ||
e09490f1 DJ |
2955 | 2008-07-27 Daniel Jacobowitz <[email protected]> |
2956 | ||
2957 | * linux-nat.c (count_events_callback, select_event_lwp_callback): Only | |
2958 | report events from resumed threads. | |
2959 | ||
e38d4e1a DJ |
2960 | 2008-07-27 Daniel Jacobowitz <[email protected]> |
2961 | ||
2962 | * mips-linux-tdep.c (mips_linux_syscall_next_pc): New function. | |
2963 | (mips_linux_init_abi): Set tdep->syscall_next_pc. | |
2964 | * mips-tdep.c (enum mips_fpu_type, struct gdbarch_tdep): Move to | |
2965 | mips-tdep.h. | |
2966 | (mips32_next_pc): Handle the syscall instruction. | |
2967 | * mips-tdep.h (enum mips_fpu_type, struct gdbarch_tdep): New, | |
2968 | from mips-tdep.c. Add syscall_next_pc to gdbarch_tdep. | |
2969 | ||
fa8de41e TT |
2970 | 2008-07-26 Tom Tromey <[email protected]> |
2971 | ||
2972 | PR gdb/1158: | |
2973 | * valops.c (value_struct_elt): Treat function-valued field as a | |
2974 | static method. | |
2975 | ||
ccb3ac8a TT |
2976 | 2008-07-26 Tom Tromey <[email protected]> |
2977 | ||
2978 | PR gdb/1136: | |
2979 | * macroexp.c (get_punctuator) <punctuators>: Rearrange to put | |
2980 | longer tokens first. | |
2981 | ||
d72314c6 VP |
2982 | 2008-07-26 Vladimir Prus <[email protected]> |
2983 | ||
2984 | Kill cmd_async_ok. | |
f1648876 AS |
2985 | * cli/cli-decode.h (CMD_ASYNC_OK, set_cmd_async_ok) |
2986 | (get_cmd_async_ok): Remove. | |
2987 | * cli/cli-decode.c (set_cmd_async_ok, get_cmd_async_ok): Remove. | |
2988 | * cli/cli-cmds.c (init_cli_cmds): Don't use set_cmd_async_ok. | |
2989 | * infcmd.c (_initialize_infcmd): Likewise. | |
2990 | * thread.c (_initialize_thread): Likewise. | |
d72314c6 | 2991 | |
5b68030f JM |
2992 | 2008-07-25 Joseph Myers <[email protected]> |
2993 | ||
2994 | * mips-tdep.c (mips_n32n64_push_dummy_call): Handle passing | |
2995 | 128-bit long doubles in even-odd pairs of FPRs. Do not | |
2996 | right-align float arguments for big-endian. | |
2997 | (mips_n32n64_return_value): Apply return value convention for | |
2998 | structs containing one or two floating-point values to soft-float | |
2999 | as well as hard-float. Handle 128-bit long doubles in such | |
3000 | structs. | |
3001 | (mips_o32_push_dummy_call): Only skip one integer register for a | |
3002 | float argument passed in an FPR. | |
3003 | ||
383f836e TT |
3004 | 2008-07-25 Tom Tromey <[email protected]> |
3005 | ||
3006 | * tui/tui-hooks.c: Include observer.h. | |
3007 | (tui_event_default, tui_old_event_hooks, tui_event_hooks): | |
3008 | Remove. | |
3009 | (tui_bp_created_observer, tui_bp_deleted_observer, | |
3010 | tui_bp_modified_observer): New globals. | |
3011 | (tui_install_hooks): Use observers, not events. | |
3012 | (tui_remove_hooks): Likewise. | |
3013 | * mi/mi-cmd-break.c: Include observer.h, not gdb-events.h. | |
3014 | (mi_breakpoint_observers_installed, mi_can_breakpoint_notify): New | |
3015 | globals. | |
3016 | (breakpoint_notify): Check mi_can_breakpoint_notify. | |
3017 | (breakpoint_hooks): Remove. | |
3018 | (mi_cmd_break_insert): Attach observers. Don't use events. | |
3019 | * tracepoint.c: Include observer.h, not gdb-events.h. | |
3020 | (tracepoint_operation, trace_pass_command): Notify observer. | |
3021 | * interps.c: Don't include gdb-events.h. | |
3022 | (clear_interpreter_hooks): Don't call clear_gdb_event_hooks. | |
3023 | * gdbarch.c: Rebuild. | |
3024 | * gdbarch.sh: Emit include for observer.h, not gdb-events.h. | |
3025 | (deprecated_current_gdbarch_select_hack): Notify observer. | |
3026 | * breakpoint.h: Don't include gdb-events.h. | |
3027 | * breakpoint.c: Don't include gdb-events.h. | |
3028 | (condition_command): Notify observer. | |
3029 | (commands_command): Likewise. | |
3030 | (commands_from_control_command): Likewise. | |
3031 | (mention, delete_breakpoint, set_ignore_count): Likewise. | |
3032 | (disable_breakpoint, do_enable_breakpoint): Likewise. | |
3033 | * Makefile.in (gdb_events_h): Remove. | |
3034 | (breakpoint_h): Update. | |
3035 | (COMMON_OBS): Remove gdb-events.o. | |
3036 | (gdb-events.o): Remove. | |
3037 | (breakpoint.o, gdbarch.o, interps.o, tracepoint.o, gdbtk-bp.o, | |
3038 | gdbtk-hooks.o, mi-cmd-break.o, tui-hooks.o): Update. | |
3039 | * gdb-events.c: Remove. | |
3040 | * gdb-events.h: Remove. | |
3041 | * gdb-events.sh: Remove. | |
3042 | ||
60e569b9 PA |
3043 | 2008-07-24 Pedro Alves <[email protected]> |
3044 | ||
3045 | * remote.c (remote_threads_extra_info): Don't query the remote | |
3046 | server about info on the internally added main thread. | |
3047 | ||
a6a7f2a5 AR |
3048 | 2008-07-24 Aleksandar Ristovski <[email protected]> |
3049 | ||
3050 | * nto-procfs.c (procfs_attach): Populate initial thread list. | |
3051 | (procfs_wait): Return new pid, built from the inferior status. | |
3052 | ||
e63e4db2 TJB |
3053 | 2008-07-23 Thiago Jung Bauermann <[email protected]> |
3054 | ||
3055 | * configure.ac (CONFIG_INITS): Delete long obsoleted variable. | |
3056 | * configure: Regenerate. | |
3057 | ||
14ef7606 AR |
3058 | 2008-07-23 Aleksandar Ristovski <[email protected]> |
3059 | ||
3060 | * nto-procfs.c (procfs_xfer_memory): Changed signature. | |
3061 | (procfs_resume): Workaround for dereferencing type-punned pointer | |
3062 | warning. | |
f1648876 | 3063 | * nto-tdep.c (nto_parse_redirection): Change signature to be const |
14ef7606 AR |
3064 | correct. |
3065 | * nto-tdep.h (nto_parse_redirection): Likewise. | |
3066 | ||
cfd8ab24 SS |
3067 | 2008-07-21 Stan Shebs <[email protected]> |
3068 | ||
3069 | Scrub remnants of IN_SOLIB_DYNSYM_RESOLVE_CODE. | |
3070 | * gdbarch.sh: Adjust comment to refer to | |
3071 | in_solib_dynsym_resolve_code(). | |
3072 | * gdbarch.h, gdbarch.c: Update. | |
3073 | * solib-osf.c: Ditto. | |
3074 | * infrun.c: Ditto. | |
3075 | (handle_inferior_event): Use in_solib_dynsym_resolve_code | |
3076 | unconditionally. | |
3077 | * config/mips/nm-irix5.h: Remove undef of | |
3078 | IN_SOLIB_DYNSYM_RESOLVE_CODE. | |
3079 | ||
781b42b0 TT |
3080 | 2008-07-21 Tom Tromey <[email protected]> |
3081 | ||
3082 | * symfile.c (reread_symbols): Don't pass argument to observer. | |
3083 | * exec.c (exec_file_attach): Don't pass argument to observer. | |
3084 | * ada-lang.c (ada_executable_changed_observer): Remove argument. | |
3085 | * symtab.c (symtab_observer_executable_changed): Remove argument. | |
3086 | * observer.sh: Handle functions with no arguments. | |
3087 | ||
a366c65a | 3088 | 2008-07-20 Sergei Poselenov <[email protected]> |
f1648876 | 3089 | Chris Demetriou <[email protected]> |
a366c65a CD |
3090 | |
3091 | * elfread.c (elf_symfile_segments): Fix the check that each loadable | |
3092 | section fits within an ELF segment to handle ELF segments that hit | |
3093 | the end of the address space. | |
3094 | ||
073d253f CD |
3095 | 2008-07-20 Chris Demetriou <[email protected]> |
3096 | ||
3097 | * MAINTAINERS (Write After Approval): Add self. | |
3098 | ||
d7d9f01e TT |
3099 | 2008-07-18 Tom Tromey <[email protected]> |
3100 | ||
3101 | PR gdb/855: | |
3102 | * NEWS: Add entry for macro commands. | |
3103 | * Makefile.in (macrocmd.o): Add gdb_string.h. | |
3104 | * macroscope.h (user_macro_scope): Declare. | |
3105 | (default_macro_scope): Update documentation. | |
3106 | (macro_user_macros): Declare. | |
3107 | * c-lang.c (c_preprocess_and_parse): Always attempt macro lookup. | |
3108 | Use user_macro_scope. | |
3109 | (null_macro_lookup): Remove. | |
3110 | * macrotab.h (macro_callback_fn): Declare. | |
3111 | (macro_for_each): Likewise. | |
3112 | (macro_allow_redefinitions): Likewise. | |
3113 | * macrotab.c (foreach_macro): New function | |
3114 | (macro_for_each): Likewise. | |
3115 | (struct macro_table) <redef_ok>: New field. | |
3116 | (macro_allow_redefinitions): New function. | |
3117 | (new_macro_table): Update. | |
3118 | (macro_define_function): Likewise. | |
3119 | (macro_define_object): Likewise. | |
3120 | * macroscope.c (user_macro_scope): New function. | |
3121 | (default_macro_scope): Use it. | |
3122 | (macro_user_macros): New global. | |
3123 | (standard_macro_lookup): Look in macro_user_macros. | |
3124 | (_initialize_macroscope): New function. | |
3125 | * macroexp.h (macro_is_whitespace, macro_is_digit, | |
3126 | macro_is_identifier_nondigit): Declare. | |
3127 | * macroexp.c (macro_is_whitespace): Rename. No longer static. | |
3128 | (macro_is_digit): Likewise. | |
3129 | (macro_is_identifier_nondigit): Likewise. | |
3130 | (get_identifier): Update. | |
3131 | (get_pp_number): Likewise. | |
3132 | (get_token): Likewise. | |
3133 | * macrocmd.c (skip_ws): New function. | |
3134 | (extract_identifier): Likewise. | |
3135 | (free_macro_definition_ptr): Likewise. | |
3136 | (user_macros): Remove. | |
3137 | (macro_define_command): Implement. | |
3138 | (_initialize_macrocmd): Update. | |
3139 | (macro_undef_command): Implement. | |
3140 | (print_one_macro): New function. | |
3141 | (macro_list_command): Implement. | |
3142 | ||
0f72fb1c JM |
3143 | 2008-07-18 Joseph Myers <[email protected]> |
3144 | ||
3145 | * configure.ac: Put old value of $LIBS after -lbfd -liberty $intl | |
3146 | in BFD ELF check. | |
3147 | * configure: Regenerate. | |
3148 | ||
7c6467a4 PP |
3149 | 2008-07-17 Paul Pluzhnikov <[email protected]> |
3150 | ||
3151 | * auxv.c (fprint_target_auxv): Stop at AT_NULL. | |
3152 | ||
680b56ce AS |
3153 | 2008-07-15 Andreas Schwab <[email protected]> |
3154 | ||
3155 | * valops.c (value_cast_pointers): Follow typedefs when checking | |
3156 | result of coercion. | |
3157 | ||
7f0df278 DJ |
3158 | 2008-07-15 Daniel Jacobowitz <[email protected]> |
3159 | ||
3160 | * block.c (block_function): Renamed to ... | |
3161 | (block_linkage_function): ... this. All callers changed. | |
3162 | * block.h (block_function): Renamed to ... | |
3163 | (block_linkage_function): ... this. | |
3164 | ||
ba2c6aec DJ |
3165 | 2008-07-15 Daniel Jacobowitz <[email protected]> |
3166 | ||
3167 | * mn10300-tdep.c (set_reg_offsets): Use get_frame_register_unsigned. | |
3168 | ||
d56907c1 DJ |
3169 | 2008-07-15 Daniel Jacobowitz <[email protected]> |
3170 | ||
3171 | * frame.c (frame_sp_unwind): Delete. | |
3172 | (get_frame_sp): Do not use it. | |
3173 | * frame.h (frame_sp_unwind): Delete prototype. | |
3174 | ||
f92aeb88 DJ |
3175 | 2008-07-15 Daniel Jacobowitz <[email protected]> |
3176 | ||
3177 | * ia64-tdep.c (ia64_dummy_id): Use get_frame_pc. | |
3178 | ||
ad1193e7 DJ |
3179 | 2008-07-15 Daniel Jacobowitz <[email protected]> |
3180 | ||
3181 | * dwarf2-frame.c (dwarf2_frame_cache): Update comment. | |
3182 | * frame.c (frame_unwind_address_in_block): Delete. | |
3183 | (get_frame_address_in_block): Do not use it. Check the type | |
3184 | of the next frame first. | |
3185 | (frame_cleanup_after_sniffer): Update comment. | |
3186 | * frame.h (frame_unwind_address_in_block): Delete prototype. | |
3187 | * hppa-tdep.c (hppa_find_unwind_entry_in_block): Update comment. | |
3188 | ||
ef02daa9 DJ |
3189 | 2008-07-15 Daniel Jacobowitz <[email protected]> |
3190 | ||
3191 | * frame.c (frame_func_unwind): Delete. | |
3192 | (get_frame_func): Do not use it. | |
3193 | * frame.h (frame_func_unwind): Delete prototype. | |
3194 | * hppa-tdep.c (hppa_frame_cache): Update comment. | |
3195 | * rs6000-tdep.c (rs6000_frame_cache): Update comment. | |
3196 | ||
96e32df8 SS |
3197 | 2008-07-14 Stan Shebs <[email protected]> |
3198 | ||
3199 | * remote-sim.c (init_gdbsim_ops): Remove | |
3200 | TARGET_REDEFINE_DEFAULT_OPS. | |
3201 | ||
ab8650a3 DJ |
3202 | 2008-07-15 Daniel Jacobowitz <[email protected]> |
3203 | ||
3204 | * findvar.c (read_var_value): Remove unused variable. | |
3205 | ||
8c90c137 LM |
3206 | 2008-07-15 Luis Machado <[email protected]> |
3207 | ||
3208 | * infrun.c (handle_inferior_event): Tag threads as stopped | |
3209 | before inserting breakpoints. | |
3210 | ||
4098af0f HZ |
3211 | 2008-07-15 Hui Zhu <[email protected]> |
3212 | ||
3213 | * MAINTAINERS: Added myself to section Write After Approval. | |
3214 | ||
7093c834 PP |
3215 | 2008-07-14 Paul Pluzhnikov <[email protected]> |
3216 | ||
3217 | PR gdb/2477 | |
3218 | * cp-abi.c (value_virtual_fn_field): Handle invalid pointers. | |
680b56ce | 3219 | |
56514771 PA |
3220 | 2008-07-14 Pedro Alves <[email protected]> |
3221 | ||
3222 | * i386-dicos-tdep.c (i386_dicos_frame_align): Delete. | |
3223 | (i386_dicos_push_dummy_code): New. | |
3224 | (i386_dicos_init_abi): Don't register i386_dicos_frame_align. | |
3225 | Register i386_dicos_push_dummy_code. | |
3226 | ||
74ed0bb4 MD |
3227 | 2008-07-14 Markus Deuling <[email protected]> |
3228 | ||
3229 | * mips-tdep.c (fp_register_arg_p): Add gdbarch as paramter. | |
3230 | (mips_n32n64_push_dummy_call, mips_o64_return_value) | |
3231 | (mips_eabi_push_dummy_call): Update call to fp_register_arg_p. | |
3232 | ||
3233 | (MIPS_FPU_TYPE): Add gdbarch as parameter and replace current_gdbarch. | |
3234 | (fp_register_arg_p, mips_dump_tdep, show_mipsfpu_command) | |
3235 | (mips_n32n64_fp_arg_chunk_p): Update caller. | |
3236 | ||
3237 | (mips_n32n64_fp_arg_chunk_p): Add gdbarch as paramter. | |
3238 | (mips_n32n64_push_dummy_call): Update caller. | |
3239 | ||
3240 | (MIPS_LAST_ARG_REGNUM): Add gdbarch as parameter and replace | |
3241 | current_gdbarch. | |
3242 | (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call) | |
3243 | (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update caller. | |
3244 | ||
3245 | ||
3246 | (MIPS_LAST_FP_ARG_REGNUM): Add gdbarch as parameter and replace | |
3247 | current_gdbarch. | |
3248 | (mips_eabi_push_dummy_call, mips_o32_push_dummy_call) | |
3249 | (mips_o64_push_dummy_call): Update caller. | |
3250 | ||
3251 | (MIPS_EABI): Add gdbarch as parameter and replace current_gdbarch. | |
3252 | (fp_register_arg_p, mips_dump_tdep): Update caller. | |
3253 | ||
3254 | (set_reg_offset): Add gdbarch as parameter and replace current_gdbarch. | |
3255 | (mips16_scan_prologue, mips32_scan_prologue): Update caller. | |
3256 | ||
3257 | (reset_saved_regs): Make static. Add gdbarch as parameter. Replace | |
3258 | current_gdbarch. | |
3259 | (mips32_scan_prologue): Update caller. | |
3260 | ||
3261 | (heuristic_proc_start): Add gdbarch as parameter. Replace | |
3262 | current_gdbarch. | |
3263 | (mips_insn16_frame_cache, mips_insn32_frame_cache): Update caller. | |
3264 | ||
3265 | * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers) | |
3266 | (mipsnbsd_store_inferior_registers): Use get_regcache_arch to get at | |
3267 | the current architecture. Update call to getregs_supplies. | |
3268 | (getregs_supplies): Add gdbarch as parameter and replace | |
3269 | current_gdbarch. | |
3270 | ||
3271 | * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use get_frame_arch to | |
3272 | get at the current architecture. Update call to NBSD_MIPS_JB_OFFSET and | |
3273 | NBSD_MIPS_JB_ELEMENT_SIZE. | |
3274 | (NBSD_MIPS_JB_ELEMENT_SIZE, NBSD_MIPS_JB_OFFSET): Add gdbarch and | |
3275 | replace current_gdbarch. | |
3276 | ||
3277 | * remote-mips.c (mips_map_regno): Add gdbarch as parameter and replace | |
3278 | current_gdbarch. | |
3279 | (mips_fetch_registers, mips_store_registers): Update call | |
3280 | to mips_map_regno. | |
3281 | (mips_load): Use get_regcache_arch to get at the current_architecture | |
3282 | and replace current_gdbarch. | |
3283 | ||
0c501536 PA |
3284 | 2008-07-13 Pedro Alves <[email protected]> |
3285 | ||
3286 | * thread.c (restore_selected_frame): On fail to restore, select | |
3287 | the innermost frame, and don't crash when warning the user. | |
3288 | ||
db009c8a JB |
3289 | 2008-07-13 Hui Zhu <[email protected]> |
3290 | ||
3291 | * symtab.c (expand_line_sal): Fix a memory leak. | |
3292 | ||
0ffe5012 PA |
3293 | 2008-07-13 Pedro Alves <[email protected]> |
3294 | ||
3295 | * utils.c (struct continuation): Define as inheriting struct | |
3296 | cleanup. | |
3297 | (add_continuation, do_all_continuations) | |
3298 | (discard_all_continuations, add_intermediate_continuation) | |
3299 | (do_all_intermediate_continuations) | |
3300 | (discard_all_intermediate_continuations): Adjust. | |
3301 | ||
dbba8251 VP |
3302 | 2008-07-13 Vladimir Prus <[email protected]> |
3303 | ||
3304 | Skip varobj in running threads. | |
680b56ce AS |
3305 | * mi/mi-cmd-var.c (mi_cmd_var_update): If varobj's |
3306 | thread is not stopped, skip the varobj. | |
3307 | * Makefile.in: Update dependencies. | |
dbba8251 | 3308 | |
e3d6cd5f VP |
3309 | 2008-07-13 Vladimir Prus <[email protected]> |
3310 | ||
3311 | Enable all commands while inferiour is running | |
680b56ce AS |
3312 | * mi/mi-main.c (mi_cmd_execute): Don't check if |
3313 | inferiour is executing. | |
e3d6cd5f | 3314 | |
b10a37b1 VP |
3315 | 2008-07-13 Vladimir Prus <[email protected]> |
3316 | ||
3317 | Allow all CLI command even if target is executing. | |
680b56ce AS |
3318 | * gdb/top.c (execute_command_1): Don't check if the inferiour |
3319 | is running. | |
b10a37b1 | 3320 | |
ea069267 VP |
3321 | 2008-07-13 Vladimir Prus <[email protected]> |
3322 | ||
3323 | * mi/mi-main.c (mi_cmd_execute): Remove unused variable. | |
3324 | Fix printing of frame, when frame is wrong. | |
3325 | ||
cdc9523a UW |
3326 | 2008-07-12 Ulrich Weigand <[email protected]> |
3327 | ||
3328 | * spu-tdep.c (spu_frame_unwind_cache): Do not error if | |
3329 | backchain is unreadable. | |
3330 | ||
d5b25491 UW |
3331 | 2008-07-12 Ulrich Weigand <[email protected]> |
3332 | ||
3333 | * spu-linux-nat.c: Include "gdbthread.h". | |
3334 | (spu_child_post_startup_inferior): Register main thread. | |
3335 | (spu_child_post_attach): Likewise. | |
3336 | * Makefile.in (spu-linux-nat.o): Update dependencies. | |
3337 | ||
604ead4a PA |
3338 | 2008-07-12 Pedro Alves <[email protected]> |
3339 | ||
3340 | Rewrite continuations internals on top of cleanups and plug | |
3341 | continuation arguments leaks. | |
3342 | ||
3343 | * defs.h (struct continuation): Make it opaque. | |
3344 | (add_continuation, add_intermediate_continuation): Drop the int | |
3345 | argument of the continuation hook argument. Add | |
3346 | continuation_free_args argument. | |
3347 | (do_all_continuations, do_all_intermediate_continuations): Drop | |
3348 | the error_p argument. | |
3349 | ||
3350 | * utils.c (add_continuation): Drop the int argument of the | |
3351 | continuation hook argument. Add continuation_free_args argument. | |
3352 | Reimplement on top of cleanups. | |
3353 | (do_all_continuations): Drop error argument. Reimplement on top | |
3354 | of cleanups. | |
3355 | (discard_all_continuations): Reimplement on top of cleanups. | |
3356 | (add_intermediate_continuation): Drop the int argument of the | |
3357 | continuation hook argument. Add continuation_free_args argument. | |
3358 | Reimplement on top of cleanups. | |
3359 | (do_all_intermediate_continuations): Drop error argument. | |
3360 | Reimplement on top of cleanups. | |
3361 | (discard_all_intermediate_continuations): Reimplement on top of | |
3362 | cleanups. | |
3363 | ||
3364 | * breakpoint.c (until_break_command_continuation): Drop error | |
3365 | argument. Add xfree as continuation argument deleter. | |
3366 | ||
3367 | * inf-loop.c (inferior_event_handler): On error, discard all | |
3368 | continuations. Adjust to new do_all_intermediate_continuations | |
3369 | and do_all_continuations interfaces. | |
3370 | ||
3371 | * infcmd.c (step_1_continuation): Drop error_p argument. Adjust. | |
3372 | Pass xfree as continuation argument deleter. | |
3373 | (finish_command_continuation): Drop error_p argument. Adjust. | |
3374 | (finish_command_continuation_free_arg): New. | |
3375 | (finish_command): Pass finish_command_continuation_free_arg as | |
3376 | continuation argument deleter. Adjust to new do_all_continuations | |
3377 | interfaces. | |
3378 | (attach_command_continuation): Drop error_p argument. | |
3379 | (attach_command_continuation_free_args): New. | |
3380 | (attach_command): Pass attach_command_continuation_free_args as | |
3381 | continuation argument deleter. | |
3382 | ||
3383 | * interps.c (interp_set): Adjust to new do_all_continuations | |
3384 | interfaces. | |
3385 | ||
3386 | * event-top.c (stdin_event_handler): In error, also discard the | |
3387 | intermediate continuations. | |
3388 | ||
bfec99b2 PA |
3389 | 2008-07-12 Pedro Alves <[email protected]> |
3390 | ||
3391 | Replace struct continuation_args by void* and per command structs. | |
3392 | ||
3393 | * top.c (execute_command): Remove unused arg1 and arg2 locals. | |
3394 | ||
3395 | * breakpoint.c (struct until_break_command_continuation_args): | |
3396 | New. | |
3397 | (until_break_command_continuation): Take a void* instead of a | |
3398 | continuations_arg. Adjust. | |
3399 | (until_break_command): Adjust to use struct | |
3400 | until_break_command_continuation_args instead of struct | |
3401 | continuation_arg. | |
3402 | ||
3403 | * infcmd.c (struct step_1_continuation_args): New. | |
3404 | (step_1_continuation): Take a void* instead of a | |
3405 | continuations_arg. Adjust to use struct step_1_continuation_args. | |
3406 | (step_once): Adjust to use struct step_1_continuation_args. | |
3407 | ||
3408 | (struct finish_command_continuation_args): New. | |
3409 | (finish_command_continuation): Take a void* instead of a | |
3410 | continuations_arg. Adjust to use struct | |
3411 | finish_command_continuation_args. | |
3412 | (finish_command): Adjust to use struct | |
3413 | finish_command_continuation_args. | |
3414 | (struct attach_command_continuation_args): New. | |
3415 | (attach_command_continuation): Take a void* instead of a | |
3416 | continuations_arg. Adjust to use struct | |
3417 | attach_command_continuation_args. | |
3418 | (attach_command): Adjust to use struct | |
3419 | attach_command_continuation_args. | |
3420 | ||
3421 | * defs.h (struct continuation_arg): Delete. | |
3422 | (struct continuation): Replace the struct continuation_arg* | |
3423 | parameter of continuation_hook by a void*. Replace "arg_list" | |
3424 | member by a new "args" member with void* type. | |
3425 | (add_continuation, add_intermediate_continuation): Replace struct | |
3426 | continuation_arg type usages by void* usages. | |
3427 | ||
3428 | * utils.c (add_continuation, do_all_continuations) | |
3429 | (add_intermediate_continuation) | |
3430 | (do_all_intermediate_continuations): Replace struct | |
3431 | continuation_arg type usages by void* usages. Pass "args" instead | |
3432 | of "arg_list". | |
3433 | ||
2afb61aa PA |
3434 | 2008-07-12 Pedro Alves <[email protected]> |
3435 | ||
3436 | * infrun.c (struct thread_stepping_state): Delete sal member. | |
3437 | (init_thread_stepping_state): Add local sal. Use it instead of | |
3438 | tss->sal. | |
3439 | (handle_inferior_event): New local stop_pc_sal. Use it instead of | |
3440 | tss->sal. | |
3441 | (step_into_function): Add local stop_func_sal. Use it instead of | |
3442 | tss->sal. | |
3443 | ||
77ebaa5a VP |
3444 | 2008-07-12 Vladimir Prus <[email protected]> |
3445 | ||
3446 | Implement -exec-continue/-exec-interrupt --all. | |
680b56ce AS |
3447 | * infcmd.c (continue_1): New, extracted from |
3448 | (continue_command): ...here. | |
3449 | (interrupt_target_1): New, extracted from | |
3450 | (interrupt_target_command): ...here. | |
3451 | * inferior.h (continue_1, interrupt_target_1): New. | |
3452 | * mi/mi-main.c (mi_cmd_exec_continue) | |
3453 | (mi_cmd_exec_interrupt): Handle --all. | |
77ebaa5a | 3454 | |
1e92afda VP |
3455 | 2008-07-12 Vladimir Prus <[email protected]> |
3456 | ||
3457 | Implement --thread and --frame. | |
3458 | * gdbthread.h (find_thread_id): Declare. | |
680b56ce AS |
3459 | * thread.c (find_thread_id): Make non-static. |
3460 | * mi/mi-main.c (mi_cmd_execute): Switch to the right | |
3461 | thread and frame, if necessary. | |
3462 | * mi/mi-parse.c (mi_parse): Handle --thread and --frame. | |
3463 | * mi/mi-parse.h (strcut mi_parse): New fields thread and frame. | |
1e92afda | 3464 | |
d56b7306 VP |
3465 | 2008-07-12 Vladimir Prus <[email protected]> |
3466 | ||
3467 | * infrun.c (resume): Discard cleanups on early exit path. | |
3468 | ||
b1a268e5 VP |
3469 | 2008-07-12 Vladimir Prus <[email protected]> |
3470 | ||
680b56ce | 3471 | * infrun.c (normal_stop): For MI, report which threads |
b1a268e5 VP |
3472 | were stopped. |
3473 | ||
90139f7d VP |
3474 | 2008-07-12 Vladimir Prus <[email protected]> |
3475 | ||
3476 | Report thread state in -thread-info output. | |
680b56ce | 3477 | * thread.c (print_thread_info): Add new field "state". |
90139f7d | 3478 | |
a0d21d28 PA |
3479 | 2008-07-11 Pedro Alves <[email protected]> |
3480 | ||
3481 | * infrun.c (handle_inferior_event): Also ignore a | |
3482 | TARGET_SIGNAL_TRAP on a STOP_QUIETLY_NO_SIGSTOP. | |
3483 | ||
14032a66 TT |
3484 | 2008-07-11 Tom Tromey <[email protected]> |
3485 | ||
3486 | * completer.c (complete_line_internal): New function, from | |
3487 | complete_line. Add 'for_help' parameter. | |
3488 | (complete_line): Use it. | |
3489 | (command_completer): Move later. Rewrite. | |
3490 | ||
65fc9b77 PA |
3491 | 2008-07-11 Pedro Alves <[email protected]> |
3492 | ||
3493 | * thread.c (thread_apply_command): Move making the cleanup out of | |
3494 | the loop. | |
3495 | ||
4f8d22e3 PA |
3496 | 2008-07-11 Pedro Alves <[email protected]> |
3497 | ||
3498 | Exited threads. | |
3499 | ||
3500 | * thread.c (enum thread_state): New. | |
3501 | (thread_state main_thread_running): Delete, in favor of... | |
3502 | (thread_state main_thread_state): ... this. Update throughout. | |
3503 | (clear_thread_inferior_resources): New, split from free_thread. | |
3504 | (free_thread): Call clear_thread_inferior_resources. | |
3505 | (init_thread_list): Set main thread to stopped state. | |
3506 | (add_thread_silent): Take care of PTID reuses. | |
3507 | (delete_thread): If deleting inferior_ptid or a thread with | |
3508 | refcount > 0, mark it as exited, but still keep it in the list. | |
3509 | Only notify of thread exits, if we haven't done so yet. | |
3510 | (iterate_over_threads): Make it safe to delete threads while | |
3511 | iterating over them. | |
3512 | (do_captured_list_thread_ids): Don't account for exited threads. | |
3513 | (thread_alive): Check for the THREAD_EXITED state, and don't set | |
3514 | ptid to -1 on exited threads. | |
3515 | (set_running): Update to account for extra possible states. | |
3516 | (is_thread_state): New. | |
3517 | (is_stopped, is_exited): New. | |
3518 | (is_running): Implement in terms of is_thread_state. | |
3519 | (any_running): Update. | |
3520 | (print_thread_info): Update. Account for exited threads. Don't | |
3521 | warn about missed frame restoring here, its done in the cleanup. | |
3522 | (switch_to_thread): Don't read from a thread that has gone. | |
3523 | (restore_current_thread): In non-stop mode, do a full context | |
3524 | switch. | |
3525 | (restore_selected_frame): Add a frame_level argument. Rewrite. | |
3526 | (struct current_thread_cleanup): Add selected_frame_level and | |
3527 | was_stopped members. | |
3528 | (do_restore_current_thread_cleanup): Check if thread was stopped | |
3529 | and still is, and if the target has registers, stack and memory | |
3530 | before restoring the selected frame. Don't delete the cleanup | |
3531 | argument here. | |
3532 | (restore_current_thread_cleanup_dtor): New. | |
3533 | (make_cleanup_restore_current_thread): Remove all arguments. | |
3534 | Rewrite. | |
3535 | (thread_apply_all_command): Update. Prune threads. | |
3536 | (thread_apply_command): Update. | |
3537 | (thread_command): Account for currently selected exited thread. | |
3538 | (do_captured_thread_select): Check for a running thread. Prune | |
3539 | threads. | |
3540 | (_initialize_thread): Make "info threads", "thread", "thread | |
3541 | apply", and "thread apply all" appliable without a selected thread. | |
3542 | * gdbthread.h (struct thread_info): Replace running_ by state_. | |
3543 | Add refcount. | |
3544 | (is_exited, is_stopped): Declare. | |
3545 | (make_cleanup_restore_current_thread): Remove all arguments. | |
3546 | * infrun.c: Include "event-top.h". | |
3547 | (fetch_inferior_event): In non-stop mode, restore selected thread | |
3548 | and frame after handling the event and running breakpoint | |
3549 | commands. Display GDB prompt if needed. | |
3550 | (normal_stop): In non-stop mode, don't print thread switching | |
3551 | notice. | |
3552 | * cli/cli-decode.c (set_cmd_no_selected_thread_ok) | |
3553 | (get_cmd_no_selected_thread_ok): New. | |
3554 | * cli/cli-decode.h (CMD_NO_SELECTED_THREAD_OK): New. | |
3555 | (set_cmd_no_selected_thread_ok, get_cmd_no_selected_thread_ok): | |
3556 | Declare. | |
3557 | * cli/cli-cmds.c: Set "pwd", "help", "info", "show" as | |
3558 | no-selected-thread ok. | |
3559 | * top.c (execute_command): Check for non no-selected-thread-ok | |
3560 | commands. | |
3561 | * linux-nat.c (struct saved_ptids, threads_to_delete) | |
3562 | (record_dead_thread, prune_lwps): Delete. | |
3563 | (exit_lwp): Unconditionally delete thread. | |
3564 | (linux_nat_resume): Remove prune_lwps call. | |
3565 | * infcmd.c (proceed_thread_callback): Check if !is_stopped instead | |
3566 | of is_running. Adjust to make_cleanup_restore_current_thread | |
3567 | interface change. | |
3568 | * mi/mi-main.c (mi_cmd_execute): Only allow a few commands if the | |
3569 | selected thread has exited. | |
3570 | * inf-loop.c (inferior_event_handler): Don't display the prompt | |
3571 | here. | |
3572 | * varobj.c (c_value_of_root): Update. | |
3573 | * defs.h (make_cleanup_dtor): Declare. | |
3574 | * utils.c (make_cleanup_dtor): New. | |
3575 | ||
3576 | * Makefile.in (infrun.o): Depend on $(event_top_h). | |
3577 | ||
8cae4b3f PA |
3578 | 2008-07-11 Pedro Alves <[email protected]> |
3579 | ||
3580 | Add "continue -a" and "interrupt -a" options for non-stop mode. | |
3581 | ||
3582 | * infcmd.c (proceed_thread_callback, do_context_switch_to): New. | |
3583 | (continue_command): Add "-a" option. | |
3584 | (interrupt_target_command): Add "-a" option. | |
3585 | (_initialize_infcmd): Add extend help of continue and interrupt | |
3586 | command to mention the new "-a" option. Mark "continue" async ok. | |
3587 | ||
bf250677 DE |
3588 | 2008-07-10 Doug Evans <[email protected]> |
3589 | ||
3590 | Add "set print symbol-loading on|off". | |
3591 | * NEWS: Document new option. | |
3592 | * symfile.h (print_symbol_loading): Declare. | |
3593 | * symfile.c (print_symbol_loading): New global. | |
3594 | (symbol_file_add_with_addrs_or_offsets): Only print "Reading symbols | |
3595 | from ..." if print_symbol_loading. | |
3596 | (_initialize_symfile): Add set/show print symbol-loading. | |
3597 | * solib.c (solib_read_symbols): Only print "Loaded symbols for ..." | |
3598 | if print_symbol_loading. | |
3599 | ||
4c28f408 PA |
3600 | 2008-07-10 Pedro Alves <[email protected]> |
3601 | ||
3602 | Non-stop linux native. | |
3603 | ||
3604 | * linux-nat.c (linux_test_for_tracefork): Block events while we're | |
3605 | here. | |
3606 | (get_pending_status): Implement non-stop mode. | |
3607 | (linux_nat_detach): Stop threads before detaching. | |
3608 | (linux_nat_resume): In non-stop mode, always resume only a single | |
3609 | PTID. | |
3610 | (linux_handle_extended_wait): On a clone event, in non-stop mode, | |
3611 | add new lwp to GDB's thread table, and mark as running, executing | |
3612 | and stopped appropriately. | |
3613 | (linux_nat_filter_event): Don't assume there are other running | |
3614 | threads when a thread exits. | |
3615 | (linux_nat_wait): Mark the main thread as running and executing. | |
3616 | In non-stop mode, don't stop all lwps. | |
3617 | (linux_nat_kill): Stop lwps before killing them. | |
3618 | (linux_nat_thread_alive): Use signal 0 to detect if a thread is | |
3619 | alive. | |
3620 | (send_sigint_callback): New. | |
3621 | (linux_nat_stop): New. | |
3622 | (linux_nat_add_target): Set to_stop to linux_nat_stop. | |
3623 | ||
3624 | * linux-nat.h (thread_db_attach_lwp): Declare. | |
3625 | ||
3626 | * linux-thread-db.c (thread_get_info_callback): Check for new | |
3627 | threads if we have none. | |
3628 | (thread_from_lwp, enable_thread_event): Set proc_handle.pid to the | |
3629 | stopped lwp. Check for new threads if we have none. | |
3630 | (thread_db_attach_lwp): New. | |
3631 | (thread_db_init): Set proc_handle.pid to inferior_ptid. | |
3632 | (check_event): Set proc_handle.pid to the stopped lwp. | |
3633 | (thread_db_find_new_threads): Set proc_handle.pid to any stopped | |
3634 | lwp available, bail out if there is none. | |
3635 | ||
3636 | * linux-fork.c (linux_fork_killall): Use SIGKILL instead of | |
3637 | PTRACE_KILL. | |
3638 | ||
0aef6ba2 KB |
3639 | 2008-07-10 Kevin Buettner <[email protected]> |
3640 | ||
a4fafde3 KB |
3641 | * rs6000-tdep.c (ppc_displaced_step_fixup): Change type of |
3642 | `current_pc' from CORE_ADDR to ULONGEST. | |
3643 | ||
0aef6ba2 KB |
3644 | * remote-sim.c (gdbsim_cntrl_c): Pass remote_sim_ptid to |
3645 | gdbsim_stop(). | |
3646 | ||
10568435 JK |
3647 | 2008-07-10 Jan Kratochvil <[email protected]> |
3648 | ||
3649 | * NEWS (New commands): Mention "set disable-randomization". | |
3650 | * configure.ac: Add check for HAVE_PERSONALITY and | |
3651 | HAVE_DECL_ADDR_NO_RANDOMIZE. | |
3652 | * configure, config.in: Regenerate. | |
3653 | * linux-nat.c [HAVE_PERSONALITY]: New include <sys/personality.h>. | |
3654 | [HAVE_PERSONALITY] [!HAVE_DECL_ADDR_NO_RANDOMIZE]: Set | |
3655 | ADDR_NO_RANDOMIZE. | |
3656 | (disable_randomization, show_disable_randomization) | |
3657 | (set_disable_randomization): New. | |
3658 | (linux_nat_create_inferior) [HAVE_PERSONALITY]: New variables | |
3659 | PERSONALITY_ORIG and PERSONALITY_SET. Disable randomization upon the | |
3660 | variable DISABLE_RANDOMIZATION. | |
3661 | (_initialize_linux_nat): Call ADD_SETSHOW_BOOLEAN_CMD for the variable | |
3662 | DISABLE_RANDOMIZATION. | |
3663 | ||
f9c72d52 PA |
3664 | 2008-07-09 Pedro Alves <[email protected]> |
3665 | ||
3666 | Adjust all targets to new target_stop interface. | |
3667 | ||
3668 | * gnu-nat.c (gnu_stop): Add ptid argument. | |
3669 | * go32-nat.c (go32_stop): Add ptid argument. | |
3670 | (go32_create_inferior): Pass inferior_ptid to go32_stop. | |
3671 | * hpux-thread.c (hpux_thread_stop): Add ptid argument. | |
3672 | * monitor.c (monitor_stop): Add ptid argument. | |
3673 | (monitor_open): Pass inferior_ptid to monitor_stop. | |
3674 | (monitor_interrupt): Pass inferior_ptid to target_stop. | |
3675 | (monitor_stop): Add ptid argument. | |
3676 | * nto-procfs.c (nto_interrupt): Pass inferior_ptid to target_stop. | |
3677 | (procfs_create_inferior): Add ptid argument. | |
3678 | * procfs.c (procfs_stop): Add ptid argument. | |
3679 | * remote-m32r-sdi.c (m32r_stop): Add ptid argument. | |
3680 | * remote-sim.c (gdbsim_stop): Add ptid argument. | |
3681 | * sol-thread.c (sol_thread_stop): Add ptid argument. | |
3682 | * win32-nat.c (win32_stop): Add ptid argument. | |
3683 | ||
94cc34af PA |
3684 | 2008-07-09 Pedro Alves <[email protected]> |
3685 | ||
3686 | Non-stop inferior control. | |
3687 | ||
3688 | * infrun.c (resume): In non-stop mode, always resume just one | |
3689 | thread. | |
3690 | (proceed): Don't call prepare_to_proceed in non-stop mode. | |
3691 | (fetch_inferior_event): In non-stop mode, switch context before | |
3692 | handling the event. | |
3693 | (error_is_running, ensure_not_running): New. | |
3694 | (handle_inferior_event): In non-stop mode: Mark only the event | |
3695 | thread as stopped. Require that the target module manages adding | |
3696 | threads to the thread list. Assert that there isn't a | |
3697 | deferred_step_ptid set. Don't switch to infwait_thread_hop_state. | |
3698 | (normal_stop): Only mark not-running if inferior hasn't exited. | |
3699 | In non-stop mode, only mark the event thread. | |
3700 | ||
3701 | * thread.c:Include "cli/cli-decode.h". | |
3702 | (print_thread_info): Don't read from a running thread. | |
3703 | Output "(running)" if thread is running. | |
3704 | (switch_to_thread): Don't read stop_pc if thread is executing. | |
3705 | (do_restore_current_thread_cleanup): Don't write to a running | |
3706 | thread. | |
3707 | (thread_apply_all_command): Don't read from a running thread. In | |
3708 | non-stop mode, do a full context-switch instead of just switching | |
3709 | threads. | |
3710 | (thread_apply_command): In non-stop mode, do a full context-switch | |
3711 | instead of just switching threads. | |
3712 | (do_captured_thread_select): Likewise. Inform user if selected | |
3713 | thread is running. | |
3714 | (_initialize_thread): Mark "info threads" and "thread" and | |
3715 | async_ok. | |
3716 | ||
3717 | * inf-loop.c (inferior_event_handler): In non-stop mode, don't | |
3718 | unregister the target from the event loop. | |
3719 | ||
3720 | * infcmd.c (continue_command, step_1, jump_command) | |
3721 | (signal_command): Ensure the selected thread isn't running. | |
3722 | (interrupt_target_command): In non-stop mode, interrupt only the | |
3723 | selected thread. | |
3724 | ||
3725 | * inferior.h (error_is_running, ensure_not_running): Declare. | |
3726 | ||
3727 | * target.h (struct target_ops): Add ptid argument to the to_stop | |
3728 | member. | |
3729 | (target_stop): Add ptid_t argument. | |
3730 | ||
3731 | * target.c (update_current_target): Add ptid argument to to_stop's | |
3732 | type. | |
3733 | (debug_to_stop): Add ptid_t argument. | |
3734 | (debug_to_rcmd): Set to_stop_ptid. | |
3735 | ||
3736 | * remote.c (remote_stop): Add ptid_t argument. | |
3737 | (async_remote_interrupt): Add inferior_ptid to target_stop. | |
3738 | * inf-ptrace.c (inf_ptrace_stop): Add ptid argument. | |
3739 | ||
3740 | * Makefile.in (thread.o): Depend on $(cli_decode_h). | |
3741 | ||
59f0d5d9 PA |
3742 | 2008-07-09 Pedro Alves <[email protected]> |
3743 | ||
3744 | Don't rely on ecs->wait_for_more. | |
3745 | ||
3746 | * infrun.c (proceed): Clear the stepping state, set | |
3747 | previous_inferior_ptid and clear infwait state. | |
3748 | (wait_for_inferior): Don't clear the stepping state, set | |
3749 | previous_inferior_ptid, or clear the infwait state here. | |
3750 | (fetch_inferior_event): Don't clear the stepping state, set | |
3751 | previous_inferior_ptid, or clear the infwait state here. Don't | |
3752 | condition on wait_for_more. | |
3753 | ||
0d1e5fa7 PA |
3754 | 2008-07-09 Pedro Alves <[email protected]> |
3755 | ||
3756 | Refactor infrun a bit. | |
3757 | ||
3758 | * infrun.c (currently_stepping): Take a struct | |
3759 | thread_stepping_state instead of an execution_control_state. | |
3760 | (struct thread_stepping_state): New, split from | |
3761 | execution_control_state. | |
3762 | (gtss, tss): New globals. | |
3763 | (proceed): Clear the stepping state, set previous_inferior_ptid | |
3764 | and clear infwait state. | |
3765 | (init_wait_for_inferior): Clear the stepping state, | |
3766 | previous_inferior_ptid and infwait state. | |
3767 | (waiton_ptid, infwait_state): New, split from | |
3768 | execution_control_state. | |
3769 | (struct execution_control_state): Members that persist through | |
3770 | events moved out to either struct thred_stepping_state or made | |
3771 | global. Deleted unneeded wp, saved_inferior_ptid, tmpstatus. | |
3772 | (wait_for_inferior, fetch_inferior_event): Use local | |
3773 | execution_control_state. Update to execution_control_state split. | |
3774 | (init_execution_control_state): Adjust. | |
3775 | (init_thread_stepping_state): New, extracted from | |
3776 | init_execution_control_state. | |
3777 | (context_switch): Take a ptid instead of an | |
3778 | execution_control_state. | |
3779 | (context_switch_to): Adjust. | |
3780 | (adjust_pc_after_break): Adjust. | |
3781 | (init_infwait_state): New. | |
3782 | (handle_inferior_event): Adjust. | |
3783 | ||
a474d7c2 PA |
3784 | 2008-07-09 Pedro Alves <[email protected]> |
3785 | Vladimir Prus <[email protected]> | |
3786 | ||
3787 | Per-thread commands. | |
3788 | ||
3789 | * gdbthread.h: Remove unneeded forward declarations. | |
3790 | Include "inferior.h". | |
3791 | (struct thread_info): Add continuations, | |
3792 | intermediate_continuations, proceed_to_finish, step_over_calls, | |
3793 | stop_step, step_multi and stop_signal members. | |
3794 | (save_infrun_state): Add continuations, | |
3795 | intermediate_continuations, proceed_to_finish, step_over_calls, | |
3796 | stop_step, step_multi, stop_signal and stop_bpstat parameters. | |
3797 | (load_infrun_state): Add continuations, | |
3798 | intermediate_continuations, proceed_to_finish, step_over_calls, | |
3799 | stop_step, step_multi, stop_signal and stop_bpstat parameters. | |
3800 | ||
3801 | * thread.c (load_infrun_state): In non-stop mode, load | |
3802 | continuations, intermediate_continuations, proceed_to_finish, | |
3803 | step_over_calls, stop_step, step_multi and stop_signal. | |
3804 | (save_infrun_state): Store continuations, | |
3805 | intermediate_continuations, proceed_to_finish, step_over_calls, | |
3806 | stop_step, step_multi, stop_signal and stop_bpstat. | |
3807 | (save_infrun_state): Store continuations, | |
3808 | intermediate_continuations, proceed_to_finish, step_over_calls, | |
3809 | stop_step, step_multi, stop_signal and stop_bpstat. | |
3810 | (free_thread): Clear The thread's stop_bpstat. | |
3811 | ||
3812 | * inferior.h (context_switch_to): Declare. | |
3813 | ||
3814 | * infrun.c (ecss): New global. | |
3815 | (context_switch): Context switch continuations, | |
3816 | intermediate_continuations, proceed_to_finish, step_over_calls, | |
3817 | stop_step, step_multi, stop_signal and stop_bpstat. | |
3818 | (wait_for_inferior): Use global ecss. | |
3819 | (async_ecss, async_ecs): Delete. | |
3820 | (fetch_inferior_event): Use global ecss. | |
3821 | (context_switch_to): New. | |
3822 | ||
3823 | * top.c (execute_command): In non-stop, only check if the current | |
3824 | thread is running, in all-stop, check if there's any thread | |
3825 | running. | |
3826 | ||
3827 | * breakpoint.c (bpstat_remove_breakpoint): New. | |
3828 | (bpstat_remove_breakpoint_callback): New. | |
3829 | (delete_breakpoint): Clear the stop_bpstats of all threads. | |
3830 | ||
3831 | * mi/mi-main.c (mi_cmd_execute): In non-stop, only check if the | |
3832 | current thread is running, in all-stop, check if there's any | |
3833 | thread running. | |
3834 | ||
3835 | * Makefile.in (gdbthread_h): Depend on $(inferior_h). | |
3836 | ||
ad52ddc6 PA |
3837 | 2008-07-09 Pedro Alves <[email protected]> |
3838 | ||
3839 | Add non_stop global. | |
3840 | ||
3841 | * inferior.h (non_stop): Declare. | |
3842 | * infrun.c (non_stop, non_stop_1): New. | |
3843 | (set_non_stop, show_non_stop): New. | |
3844 | (_initialize_infrun): Add "set/show non-stop" command. | |
3845 | ||
3a3e9ee3 PA |
3846 | 2008-07-09 Pedro Alves <[email protected]> |
3847 | ||
3848 | Adjust fork/vfork/exec to pass ptids around. | |
3849 | ||
3850 | * target.h (struct target_waitstatus): Store related_pid as a ptid. | |
3851 | (inferior_has_forked, inferior_has_vforked, inferior_has_execd): | |
3852 | Take a ptid_t. | |
3853 | * breakpoint.h (struct breakpoint): Change forked_inferior_pid | |
3854 | type to ptid. | |
3855 | * breakpoint.c (print_it_typical, bpstat_check_location) | |
3856 | (print_one_breakpoint_location, set_raw_breakpoint_without_location) | |
3857 | (create_fork_vfork_event_catchpoint): Adjust. | |
3858 | * infrun.c (fork_event): Change parent_pid and child_pid types to | |
3859 | ptid. | |
3860 | (follow_exec, inferior_has_forked, inferior_has_vforked) | |
3861 | (inferior_has_execd): Take a ptid_t and don't trim it. | |
3862 | * linux-thread-db.c (thread_db_wait): Don't trim the returned ptid. | |
3863 | * linux-nat.c (linux_child_follow_fork): Adjust. | |
3864 | * inf-ptrace.c (inf_ptrace_wait): Adjust. | |
3865 | * inf-ttrace.c (inf_ttrace_wait): Adjust. | |
3866 | * win32-nat.c (get_win32_debug_event): Don't set related_pid. | |
3867 | ||
8ea051c5 PA |
3868 | 2008-07-09 Pedro Alves <[email protected]> |
3869 | ||
3870 | Add "executing" property to threads. | |
3871 | ||
3872 | * inferior.h (target_executing): Delete. | |
3873 | * gdbthread.h (struct thread_info): Add executing_ field. | |
3874 | (set_executing, is_executing): New. | |
3875 | * thread.c (main_thread_executing): New. | |
3876 | (init_thread_list): Clear it and also main_thread_running. | |
3877 | (is_running): Return false if target has no execution. | |
3878 | (any_running, is_executing, set_executing): New. | |
3879 | ||
3880 | * top.c: Include "gdbthread.h". | |
3881 | (target_executing): Delete. | |
3882 | (execute_command): Replace target_executing check by any_running. | |
3883 | * event-top.c: Include "gdbthread.h". | |
3884 | (display_gdb_prompt, command_handler): Replace target_executing by | |
3885 | is_running. | |
3886 | * inf-loop.c: Include "gdbthread.h". Don't mark as not executing | |
3887 | here. Replace target_executing by is_running. | |
3888 | * infrun.c (handle_inferior_event): Mark all threads as | |
3889 | not-executing. | |
3890 | * linux-nat.c (linux_nat_resume): Don't mark thread as executing | |
3891 | here. | |
3892 | * stack.c (get_selected_block): Return null if inferior is | |
3893 | executing. | |
3894 | * target.c (target_resume): Mark resumed ptid as executing. | |
3895 | * breakpoint.c (until_break_command): Replace target_executing | |
3896 | check by is_executing. | |
3897 | * remote.c (remote_async_resume): Don't mark inferior as executing | |
3898 | here. | |
3899 | * mi/mi-interp.c (mi_cmd_interpreter_exec): Replace target_executing | |
3900 | by any_running. | |
680b56ce | 3901 | |
8ea051c5 PA |
3902 | * mi/mi-main.c (mi_cmd_exec_interrupt, mi_cmd_execute) |
3903 | (mi_execute_async_cli_command): Replace target_executing by | |
3904 | is_running. | |
3905 | ||
3906 | * frame.c (get_current_frame): Error out if the current thread is | |
3907 | executing. | |
3908 | (has_stack_frames): New. | |
3909 | (get_selected_frame, deprecated_safe_get_selected_frame): Check | |
3910 | has_stack_frames. | |
680b56ce | 3911 | |
8ea051c5 PA |
3912 | * Makefile.in (event-top.o, frame.o, inf-loop.o, top.o): Depend on |
3913 | $(gdbthread_h). | |
3914 | ||
4487aabf PA |
3915 | 2008-07-09 Pedro Alves <[email protected]> |
3916 | ||
3917 | * symfile.c (load_command): Reopen the exec file and reread | |
3918 | symbols before anything else. | |
3919 | ||
9de2bdd7 PA |
3920 | 2008-07-09 Pedro Alves <[email protected]> |
3921 | ||
3922 | * remote-sim.c: Include gdbthread.h. | |
3923 | (remote_sim_ptid): New global. | |
3924 | (gdbsim_create_inferior): Silently add the main task to GDB's | |
3925 | thread list. | |
3926 | (gdbsim_close, gdbsim_mourn_inferior): Silently delete the main | |
3927 | task from GDB's thread list. | |
3928 | (gdbsim_resume): Adjust to use remote_sim_ptid. | |
3929 | (gdbsim_thread_alive, gdbsim_pid_to_str): New. | |
3930 | (init_gdbsim_ops): Register gdbsim_thread_alive and | |
3931 | gdbsim_pid_to_str. | |
3932 | (_initialize_remote_sim): Initialize remote_sim_ptid. | |
3933 | * Makefile.in (remote-sim.o): Depend on $(gdbthread_h). | |
3934 | ||
5e0b29c1 PA |
3935 | 2008-07-09 Pedro Alves <[email protected]> |
3936 | ||
3937 | * monitor (monitor_ptid): New global. | |
3938 | (monitor_open): Silently add the main task to GDB's thread list. | |
3939 | (monitor_close, monitor_mourn_inferior): Silently delete the main | |
3940 | task from GDB's thread list. | |
3941 | (monitor_thread_alive, monitor_pid_to_str): New. | |
3942 | (init_base_monitor_ops): Register monitor_thread_alive and | |
3943 | monitor_pid_to_str. | |
3944 | (_initialize_remote_monitors): Initialize monitor_ptid. | |
3945 | ||
3946 | * gdbthread.h (delete_thread_silent): Declare. | |
3947 | * thread.c (delete_thread): Rename to ... | |
3948 | (delete_thread_1): ... this. Add "silent" parameter. If silent, | |
3949 | don't do exit notifications. | |
3950 | (delete_thread, delete_thread_silent): New, as wrappers to | |
3951 | delete_thread_1. | |
3952 | ||
b60e7edf PA |
3953 | 2008-07-08 Pedro Alves <[email protected]> |
3954 | ||
3955 | * breakpoint.c (update_global_location_list): Add boolean | |
3956 | "should_insert" argument. Only insert locations if caller told it | |
3957 | too. | |
3958 | (update_global_location_list_nothrow): Add boolean "should_insert" | |
3959 | argument. Pass it to update_global_location_list. | |
3960 | (insert_breakpoints, create_longjmp_breakpoint) | |
3961 | (create_overlay_event_breakpoint, enable_overlay_breakpoints) | |
3962 | (create_thread_event_breakpoint, create_solib_event_breakpoint) | |
3963 | (create_fork_vfork_event_catchpoint, create_exec_event_catchpoint) | |
3964 | (enable_watchpoints_after_interactive_call_stop) | |
3965 | (set_momentary_breakpoint, create_breakpoints) | |
3966 | (break_command_really, watch_command_1) | |
3967 | (create_ada_exception_breakpoint, update_breakpoint_locations) | |
3968 | (do_enable_breakpoint, enable_command): Pass true to | |
3969 | update_global_location_list. | |
3970 | (bpstat_stop_status, disable_overlay_breakpoints) | |
3971 | (disable_watchpoints_before_interactive_call_start) | |
3972 | (delete_breakpoint, disable_breakpoint, disable_command): Pass | |
3973 | false to update_global_location_list. | |
3974 | (update_breakpoints_after_exec): Don't temporarily disable | |
3975 | always-inserted mode. | |
3976 | ||
25b22b0a PA |
3977 | 2008-07-08 Pedro Alves <[email protected]> |
3978 | ||
3979 | * breakpoint.c (mark_breakpoints_out): Make public. | |
3980 | (update_breakpoints_after_exec): Don't call mark_breakpoints_out | |
3981 | here. Update comment. | |
3982 | * breakpoint.h (mark_breakpoints_out): Declare. | |
3983 | ||
3984 | * linux-nat.c (linux_handle_extended_wait): On | |
3985 | TARGET_WAITKIND_EXECD, call mark_breakpoints_out. | |
3986 | * inf-ttrace.c (inf_ttrace_wait): Likewise. | |
3987 | ||
cce9b6bf PA |
3988 | 2008-07-08 Pedro Alves <[email protected]> |
3989 | ||
3990 | * infrun.c (follow_exec): Reset shared libraries before adding the | |
3991 | main exec file. | |
3992 | ||
3c3185ac JK |
3993 | 2008-07-07 Jan Kratochvil <[email protected]> |
3994 | ||
3995 | * breakpoint.c (bpstat_copy): Call RELEASE_VALUE on the new OLD_VAL. | |
3996 | ||
42f0bc8e PA |
3997 | 2008-07-07 Pedro Alves <[email protected]> |
3998 | ||
3999 | * i386-dicos-tdep.c: Include "inferior.h". | |
4000 | (i386_dicos_frame_align): New. | |
4001 | (i386_dicos_init_abi): Register i386_dicos_frame_align. Set call | |
4002 | dummy location ON_STACK. | |
4003 | * Makefile.in (i386-dicos-tdep.o): Depend on $(inferior_h). | |
4004 | ||
b7292df3 JB |
4005 | 2008-07-07 Joel Brobecker <[email protected]> |
4006 | ||
4007 | * gstdint.h: New file. | |
4008 | ||
bb599c81 VP |
4009 | 2008-07-05 Vladimir Prus <[email protected]> |
4010 | ||
4011 | * mi/mi-interp.c (mi_on_resume): Don't try to report | |
4012 | resumed thread it the thread list is empty. | |
4013 | ||
7f6a6314 PM |
4014 | 2008-07-05 Pierre Muller <[email protected]> |
4015 | ||
4016 | * cli/cli-decode.c (add_setshow_optional_filename_cmd): Set | |
4017 | completer for set to filename_completer. | |
680b56ce | 4018 | |
7f6a6314 PM |
4019 | NEWS: Mention it. |
4020 | ||
711eabed VP |
4021 | 2008-07-04 Vladimir Prus <[email protected]> |
4022 | ||
4023 | Implement -target-attach. | |
680b56ce | 4024 | * mi/mi-cmds.c (mi_cmds): Forward -target-attach to CLI attach. |
711eabed | 4025 | |
db3b9a10 MS |
4026 | 2008-06-21 Hui Zhu <[email protected]> |
4027 | ||
4028 | * target-descriptions.c (maint_print_c_tdesc_cmd): Fix a memory leak. | |
4029 | ||
dc177b7a PA |
4030 | 2008-07-03 Pedro Alves <[email protected]> |
4031 | ||
4032 | * config/i386/nm-cygwin.h (ATTACH_NO_WAIT): Delete. | |
4033 | * config/i386/nm-i386gnu.h (ATTACH_NO_WAIT): Delete. | |
4034 | ||
4035 | * target.h (struct target_ops): Add to_attach_no_wait member. | |
4036 | (target_attach_no_wait): New. | |
4037 | * target.c (update_current_target): Inherit to_attach_no_wait. | |
4038 | ||
4039 | * infcmd.c: Replace ATTACH_NO_WAIT compile time check by | |
4040 | target_attach_no_wait runtime check. | |
4041 | ||
4042 | * gnu-nat.c (init_gnu_ops): Set to_attach_no_wait in gnu_ops. | |
4043 | * win32-nat.c (init_win32_ops): Set to_attach_no_wait in | |
4044 | win32_ops. | |
4045 | ||
caac8896 PA |
4046 | 2008-07-03 Pedro Alves <[email protected]> |
4047 | ||
4048 | * i386-tdep.c (i386_displaced_step_fixup): Condition log printing | |
4049 | on debug_displaced being set. | |
4050 | ||
0d254d6f DJ |
4051 | 2008-06-30 Daniel Jacobowitz <[email protected]> |
4052 | ||
4053 | * frame.c (get_prev_frame_1): Call frame_unwind_find_by_frame | |
4054 | directly instead of get_frame_id. | |
4055 | ||
f74c6cad LM |
4056 | 2008-06-30 Luis Machado <[email protected]> |
4057 | ||
4058 | * rs6000-tdep.c (ppc_displaced_step_fixup): New function. | |
4059 | (deal_with_atomic_sequence): Update BC masks. | |
4060 | (rs6000_gdbarch_init): Init displaced stepping infra-structure. | |
4061 | Define BRANCH_MASK, B_INSN, BC_INSN, BXL_INSN, BP_MASK and BP_INSN. | |
4062 | ||
395f2fc2 DJ |
4063 | 2008-06-30 Daniel Jacobowitz <[email protected]> |
4064 | ||
4065 | * cris-tdep.c (crisv32_single_step_through_delay): Get this frame's | |
4066 | register, not the previous frame's. | |
4067 | ||
8340a3fb LM |
4068 | 2008-06-30 Luis Machado <[email protected]> |
4069 | ||
4070 | * source.c (select_source_symtab): Make sure we skip namespace | |
4071 | symtabs when showing cpp source code. | |
4072 | ||
cfefc99a HPN |
4073 | 2008-06-30 Hans-Peter Nilsson <[email protected]> |
4074 | ||
4075 | * MAINTAINERS (Authorized committers): Fix my email address. | |
4076 | ||
1b98914a VP |
4077 | 2008-06-28 Vladimir Prus <[email protected]> |
4078 | ||
4079 | * mi/mi-cmds.c (mi_cmds): Route -exec-run, -exec-until, | |
4080 | -target-download and -target-select via CLI, so that | |
4081 | the quoting rules are the same as they were (unfortunately) | |
4082 | in all prior gdb releases. | |
4083 | * mi/mi-cmds.h (mi_cmd_exec_run, mi_cmd_exec_until) | |
4084 | (mi_cmd_target_download, mi_cmd_target_select): Remove. | |
4085 | * mi/mi-main.c (mi_cmd_exec_run, mi_cmd_exec_until) | |
4086 | (mi_cmd_target_download, mi_cmd_target_select): Remove. | |
4087 | (mi_cmd_execute): Set current_token even for commands | |
4088 | routed via CLI. | |
4089 | ||
94afd7a6 UW |
4090 | 2008-06-28 Ulrich Weigand <[email protected]> |
4091 | ||
4092 | * alphafbsd-tdep.c: Update for unwinder changes. | |
4093 | * alpha-linux-tdep.c: Likewise. | |
4094 | * alphanbsd-tdep.c: Likewise. | |
4095 | * alphaobsd-tdep.c: Likewise. | |
4096 | * avr-tdep.c: Likewise. | |
4097 | * cris-tdep.c: Likewise. | |
4098 | * frv-linux-tdep.c: Likewise. | |
4099 | * frv-tdep.c: Likewise. | |
4100 | * h8300-tdep.c: Likewise. | |
4101 | * hppa-linux-tdep.c: Likewise. | |
4102 | * iq2000-tdep.c: Likewise. | |
4103 | * m32c-tdep.c: Likewise. | |
4104 | * m32r-linux-tdep.c: Likewise. | |
4105 | * m32r-tdep.c: Likewise. | |
4106 | * m68hc11-tdep.c: Likewise. | |
4107 | * mep-tdep.c: Likewise. | |
4108 | * mn10300-tdep.c: Likewise. | |
4109 | * mt-tdep.c: Likewise. | |
4110 | * score-tdep.c: Likewise. | |
4111 | * sh64-tdep.c: Likewise. | |
4112 | * sh-tdep.c: Likewise. | |
4113 | * sparc64fbsd-tdep.c: Likewise. | |
4114 | * sparc64nbsd-tdep.c: Likewise. | |
4115 | * sparc64obsd-tdep.c: Likewise. | |
4116 | * v850-tdep.c: Likewise. | |
4117 | * vaxobsd-tdep.c: Likewise. | |
4118 | * vax-tdep.c: Likewise. | |
4119 | * xstormy16-tdep.c: Likewise. | |
4120 | ||
e111d6c9 VP |
4121 | 2008-06-28 Vladimir Prus <[email protected]> |
4122 | ||
4123 | * mi/mi-main.c (enum captured_mi_execute_command_actions) | |
4124 | (captured_mi_execute_command_args): Remove. | |
4125 | (captured_mi_execute_command): Cast the closure to mi_parse | |
4126 | pointer, not to captured_mi_execute_command_args, and don't | |
4127 | set the action field thereof. | |
4128 | (mi_execute_command): Pass struct mi_parse, not | |
4129 | captured_mi_execute_command_args to captured_mi_execute_command. | |
4130 | (mi_execute_command): Remove (dead) code for suppressing | |
4131 | printing prompt. | |
4132 | ||
84e46146 PA |
4133 | 2008-06-28 Pedro Alves <[email protected]> |
4134 | ||
4135 | * linux-nat.c (enum sigchld_state): New. | |
4136 | (linux_nat_async_events_state): Renamed from | |
4137 | linux_nat_async_events_enabled. | |
4138 | (linux_nat_event_pipe_push, my_waitpid): Adjust. | |
4139 | (sigchld_default_action): New. | |
4140 | (lin_lwp_attach_lwp): Adjust. Call linux_nat_async_events | |
4141 | unconditionally. | |
4142 | (linux_nat_create_inferior): Set events state to sigchld_default | |
4143 | state. | |
4144 | (linux_nat_resume): Adjust. | |
4145 | (linux_nat_wait): Call linux_nat_async_events unconditionally. | |
4146 | (sigchld_handler): Adjust. | |
4147 | (linux_nat_async_mask): Don't set SIGCHLD actions here. | |
4148 | (get_pending_events): Adjust. | |
4149 | (linux_nat_async_events): Rewrite to handle enum sigchld_state | |
4150 | instead of a boolean. | |
4151 | (linux_nat_async): Adjust. | |
4152 | (_initialize_linux_nat): Capture default SIGCHLD action into | |
4153 | sigchld_default_action. | |
4154 | ||
20874c92 VP |
4155 | 2008-06-28 Vladimir Prus <[email protected]> |
4156 | ||
680b56ce AS |
4157 | * breakpoint.c (moribund_locations): New. |
4158 | (bpstat_stop_status): Process moribund locations. | |
4159 | (update_global_location_list): Add removed | |
4160 | locations to moribund_locations. | |
4161 | (breakpoint_retire_moribund): New. | |
4162 | * breakpoint.h (struct bp_location): New field | |
4163 | events_till_retirement. | |
4164 | (breakpoint_retire_moribund): Declare. | |
4165 | * thread.c (thread_count): New. | |
4166 | * infrun.c (handle_inferior_event): Call | |
4167 | breakpoint_retire_moribund. | |
4168 | * gdbthread.h (thread_count): Declare. | |
20874c92 | 4169 | |
cd0b43b1 JM |
4170 | 2008-06-27 Joseph Myers <[email protected]> |
4171 | ||
4172 | * dfp.c (decimal_convert): Call match_endianness before and after | |
4173 | conversion. | |
4174 | ||
7c0f6dcc JL |
4175 | 2008-06-27 Jonathan Larmour <[email protected]> |
4176 | ||
4177 | * remote.c (remote_insert_breakpoint): Ensure that if Z0 | |
4178 | unsupported and we fall back to memory_insert_breakpoint, we | |
4179 | use the unmodified requested address. | |
4180 | ||
01c66ae6 JB |
4181 | 2008-06-27 Joel Brobecker <[email protected]> |
4182 | ||
4183 | * dwarf2read.c (read_attribute_value): Issue a complaint when | |
4184 | adjusting size attribute values of 0xffffffff as zero. | |
4185 | ||
7ccc1c74 JM |
4186 | 2008-06-27 Joseph Myers <[email protected]> |
4187 | ||
4188 | * i386-tdep.c (i386_16_byte_align_p): New. | |
4189 | (i386_push_dummy_call): Determine stack space required for | |
4190 | arguments going forwards allowing for 16-byte alignment, then push | |
4191 | arguments going forwards. | |
4192 | ||
c0a2216e PA |
4193 | 2008-06-27 Pedro Alves <[email protected]> |
4194 | ||
4195 | * infrun.c (start_remote): Don't clear thread list here. | |
4196 | * monitor.c (monitor_open): Include "gdbthread.h". Clear thread | |
4197 | list here. | |
4198 | * remote.c (record_currthread): Upgrade the main thread and its | |
4199 | entry in the thread list if this is the first time we hear about | |
4200 | threads. | |
4201 | (remote_thread_alive): Consider magic_null_ptid or a ptid without | |
4202 | a tid member always alive. | |
4203 | (remote_find_new_threads): Don't update the main thread here. | |
4204 | (remote_start_remote): Clear thread list here. Always add the | |
4205 | main thread. | |
4206 | (extended_remote_attach_1): Add the main thread here. | |
4207 | (extended_remote_mourn_1): Re-add the main thread here. | |
4208 | (extended_remote_create_inferior_1): Add a main thread. | |
4209 | ||
4210 | * Makefile.in (monitor.o): Depend on $(gdbthread_h). | |
4211 | ||
87b0e16e | 4212 | 2008-06-27 Pedro Alves <[email protected]> |
79d7f229 PA |
4213 | |
4214 | Use ptid_t.tid to store thread ids instead of ptid_t.pid. | |
4215 | ||
4216 | * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): New | |
4217 | globals. | |
4218 | (general_thread, continue_thread): Change type to ptid_t. | |
4219 | (record_currthread): Take a ptid_t parameter instead of an | |
4220 | integer. | |
4221 | (MAGIC_NULL_PID): Delete. | |
4222 | (set_thread): Take a ptid_t parameter and adjust. | |
4223 | (set_general_thread, set_continue_thread): New. | |
4224 | (remote_thread_alive, remote_newthread_step) | |
4225 | (remote_current_thread, remote_find_new_threads) | |
4226 | (remote_threads_info, remote_start_remote, remote_vcont_resume) | |
4227 | (remote_resume_1, remote_wait, extended_remote_create_inferior_1) | |
4228 | (threadalive_test, remote_pid_to_str) | |
4229 | (remote_get_thread_local_address): Adjust. | |
4230 | (_initialize_remote): Initialize magic_null_ptid, not_sent_ptid | |
4231 | and any_thread_ptid. | |
4232 | ||
3ca64bd3 JK |
4233 | 2008-06-26 Jan Kratochvil <[email protected]> |
4234 | ||
4235 | * configure.ac (--enable-tui): AC_MSG_ERROR for explicit --enable-tui. | |
4236 | * configure: Regenerated. | |
4237 | ||
28e94949 JB |
4238 | 2008-06-26 Joel Brobecker <[email protected]> |
4239 | ||
4240 | * dwarf2read.c (read_attribute_value): Treat size attribute | |
4241 | values of 0xffffffff as if the attribute value was zero. | |
4242 | ||
8a77dff3 VP |
4243 | 2008-06-26 Vladimir Prus <[email protected]> |
4244 | ||
4245 | * linux-nat.c: Add description of overall logic. | |
4246 | ||
d5af19ba DJ |
4247 | 2008-06-26 Daniel Jacobowitz <[email protected]> |
4248 | ||
4249 | * Makefile.in (GNULIB_H): Use GNULIB_STDINT_H. | |
4250 | (gdb_stdint_h, gdb_stdint.h, stamp-int): Delete. Remove | |
4251 | all dependencies on $(gdb_stdint_h). | |
4252 | (distclean): Do not delete gdb_stdint.h. | |
4253 | * acinclude.m4: Do not use stdint.m4. | |
4254 | * configure.ac: Set GNULIB_STDINT_H. Remove tests for stdint.h, | |
4255 | uintptr_t, and gdb_stdint.h. | |
4256 | * defs.h: Include <stdint.h>. | |
4257 | * gdb_thread_db.h: Assume stdint.h is already included. | |
4258 | * breakpoint.c, findcmd.c, hppa-tdep.c, inf-ptrace.c, proc-service.c, | |
4259 | rs6000-nat.c, spu-linux-nat.c, target.c, win32-nat.c: Do not | |
4260 | include gdb_stdint.h. | |
4261 | * configure, config.in: Regenerate. | |
4262 | ||
00fbcec4 JM |
4263 | 2008-06-26 Joseph Myers <[email protected]> |
4264 | ||
4265 | * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Handle passing | |
4266 | decimal floating-point values in GPRs for soft-float. | |
4267 | (do_ppc_sysv_return_value): Handle returning decimal | |
4268 | floating-point values in GPRs for soft-float. | |
4269 | ||
d5086790 VP |
4270 | 2008-06-26 Vladimir Prus <[email protected]> |
4271 | ||
4272 | * target.c (target_read_until_error): New. | |
680b56ce AS |
4273 | * target.h (target_read_until_error): Declare. |
4274 | * mi/mi-main.c (mi_cmd_data_read_memory): Use | |
4275 | target_read_until_error. | |
d5086790 | 4276 | |
fe9441f6 JK |
4277 | 2008-06-25 Jan Kratochvil <[email protected]> |
4278 | ||
4279 | Fix a memory leak found by Hui Zhu <[email protected]>. | |
4280 | * c-exp.y (parse_number): Move the S and SAVED_CHAR initialization | |
4281 | after the DECFLOAT detection to fix a memory leak. Remove the | |
4282 | redundant NUM initialization. Protect the DECFLOAT detection memory | |
4283 | access before the P block. Restore the P memory content for the | |
4284 | DECFLOAT detection. | |
4285 | ||
ce8f13f8 VP |
4286 | 2008-06-25 Vladimir Prus <[email protected]> |
4287 | ||
4288 | Kill the return value for all MI command functions. | |
4289 | * mi/mi-cmds.h (enum mi_cmd_result): Remove. | |
4290 | (mi_cmd_argv_ftype): Change return type to void. | |
4291 | ||
4292 | * mi/mi-main.c: Adjust all function that implement | |
4293 | MI commands to return nothing. | |
4294 | (struct captured_mi_execute_command_actions): | |
4295 | Remove the rc field. | |
4296 | (mi_cmd_execute): Return nothing. | |
4297 | (mi_execute_async_cli_command): Return nothing. | |
4298 | (mi_cmd_exec_interrupt): Don't print ^done here. | |
4299 | (mi_cmd_target_select): Don't print ^connected here. | |
4300 | (captured_mi_execute_command): Don't check for MI_CMD_DONE. | |
4301 | Special-case -target-select and output ^connected, not ^done. | |
4302 | ||
4303 | * mi/mi-cmd-break.c: Adjust. | |
4304 | * mi/mi-cmd-disas.c: Adjust. | |
4305 | * mi/mi-cmd-env.c: Adjust. | |
4306 | * mi/mi-cmd-file.c: Adjust. | |
4307 | * mi/mi-cmd-stack.c: Adjust. | |
4308 | * mi/mi-cmd-target.c: Adjust. | |
4309 | * mi/mi-cmd-var.c: Adjust. | |
4310 | * mi/mi-interp.c: Adjust. | |
4311 | * mi/mi-symbol-cmds.c: Adjust. | |
4312 | ||
a2840c35 VP |
4313 | 2008-06-25 Vladimir Prus <[email protected]> |
4314 | ||
4315 | Emit ^running via observer. | |
4316 | * mi/mi-interp.c (mi_cmd_interpreter_exec): Do no print | |
680b56ce AS |
4317 | ^running here. |
4318 | (mi_on_resume): Print ^running if not previously output. | |
4319 | * mi/mi-main.c (running_result_record_printed): New. | |
4320 | (captured_mi_execute_command): Reset | |
4321 | running_result_record_printed. Use running_result_record_printed | |
4322 | to decide if we should skip ^done. | |
4323 | (mi_execute_async_cli_command): Don't print ^running here. | |
4324 | * mi/mi-main.h (current_token, running_result_record_printed): | |
4325 | Declare. | |
a2840c35 | 4326 | |
1f41b062 MS |
4327 | 2008-06-24 Michael Snyder <[email protected]> |
4328 | ||
4329 | * infrun.c (_initialize_infrun): White space and typo fix. | |
4330 | ||
eff8332b CF |
4331 | 2008-06-23 Christopher Faylor <[email protected]> |
4332 | ||
4333 | * win32-nat.c (safe_symbol_file_add_stub): Remove unused variable. | |
4334 | (do_initial_win32_stuff): Fix problem with inability to set breakpoints | |
4335 | when first loading DLL with "dll" command. | |
4336 | ||
e50ce6de | 4337 | 2008-06-19 Pierre Muller <[email protected]> |
114374a0 PM |
4338 | |
4339 | * gnu-nat.c (proc_string): Use capital T for "Thread". | |
680b56ce | 4340 | |
e50ce6de | 4341 | 2008-06-19 Pierre Muller <[email protected]> |
17526a8c PM |
4342 | |
4343 | * win32-nat.c (win32_pid_to_str): Use capital T for "Thread". | |
680b56ce | 4344 | |
59ddf1e7 JB |
4345 | 2008-06-18 Joel Brobecker <[email protected]> |
4346 | ||
680b56ce AS |
4347 | * solib-osf.c (osf_solib_create_inferior_hook): Do nothing if |
4348 | the target cannot run. | |
59ddf1e7 JB |
4349 | |
4350 | 2008-06-18 Joel Brobecker <[email protected]> | |
ea8eedbe JB |
4351 | |
4352 | * solib-osf.c (osf_solib_create_inferior_hook): Do nothing if | |
4353 | we're attaching to a running process. | |
4354 | ||
e50ce6de | 4355 | 2008-06-18 Pierre Muller <[email protected]> |
7488902c PM |
4356 | |
4357 | * win32-nat.c (handle_load_dll): Give dll name and load address | |
4358 | if debug_events is on. | |
4359 | (handle_unload_dll): Likewise. | |
4360 | ||
8f6a8e84 VP |
4361 | 2008-06-14 Vladimir Prus <[email protected]> |
4362 | ||
4363 | Don't suppress *running when doing finish. | |
680b56ce AS |
4364 | * infcall.c (call_function_by_hand): Set both |
4365 | suppress_resume_observer and suppress_stop_observer. | |
4366 | * infcmd.c (suppress_run_stop_observers): Split into... | |
4367 | (suppress_resume_observer, suppress_stop_observer): ...those. | |
4368 | (finish_command_continuation): Clear suppress_stop_observer. | |
4369 | (finish_command): Set suppress_stop_observer. | |
4370 | * inferior.h (suppress_run_stop_observers): Split into... | |
4371 | (suppress_resume_observer, suppress_stop_observer): ...those. | |
4372 | * infrun.c (normal_stop): Check for suppress_stop_observer. | |
4373 | * thread.c (set_running): Check for suppress_resume_observer. | |
8f6a8e84 | 4374 | |
4309257c PM |
4375 | 2008-06-12 Pedro Alves <[email protected]> |
4376 | Pierre Muller <[email protected]> | |
4377 | ||
4378 | * gdbarch.sh (gdbarch_skip_main_prologue): New. | |
4379 | * gdbarch.h, gdbarch.c: Regenerate. | |
4380 | * i386-tdep.h (i386_skip_main_prologue): Declare. | |
4381 | * i386-tdep.c (i386_skip_main_prologue): New. | |
680b56ce | 4382 | * i386-cygwin-tdep.c (i386_cygwin_init_abi): Register |
4309257c PM |
4383 | i386_skip_main_prologue as gdbarch_skip_main_prologue gdbarch callback. |
4384 | * symtab.c (find_function_start_sal): When pc points at the "main" | |
4385 | function, call gdbarch_skip_main_prologue. | |
4386 | ||
a4e2ee12 DJ |
4387 | 2008-06-11 Daniel Jacobowitz <[email protected]> |
4388 | ||
4389 | * value.c (value_primitive_field): Fetch lazy register values. | |
4390 | ||
060871df PA |
4391 | 2008-06-11 Pedro Alves <[email protected]> |
4392 | ||
4393 | * NEWS: Mention support removal of undocumented S AA p PID stop | |
4394 | reply packet. | |
4395 | ||
4396 | * remote.c (remote_wait): Remove undocumented S AA p PID support. | |
4397 | ||
336de56d SS |
4398 | 2008-06-10 Stan Shebs <[email protected]> |
4399 | ||
4400 | * MAINTAINERS: Update my affiliation and address. | |
4401 | ||
7949220d AS |
4402 | 2008-06-10 Andreas Schwab <[email protected]> |
4403 | ||
4404 | * top.c (print_gdb_version): Don't print final newline. | |
4405 | ||
e1ac3328 VP |
4406 | 2008-06-10 Vladimir Prus <[email protected]> |
4407 | ||
4408 | Implement *running. | |
680b56ce AS |
4409 | * Makefile.in: Update dependencies. |
4410 | * gdbthread.h (struct thread_info): New field | |
4411 | running_. | |
4412 | (set_running, is_running): New. | |
4413 | * thread.c (set_running, is_running): New. | |
4414 | * inferior.h (suppress_normal_stop_observer): Rename to... | |
4415 | (suppress_run_stop_observers): ..this. | |
4416 | * infcmd.c (suppress_normal_stop_observer): Rename to... | |
4417 | (suppress_run_stop_observers): ..this. | |
4418 | (finish_command_continuation, finish_command): Adjust. | |
4419 | * infcall.c (call_function_by_hand): Adjust. | |
4420 | * infrun.c (normal_stop): Call set_running. | |
4421 | * target.c (target_resume): New. Call set_running. | |
4422 | * target.h (target_resume): Convert from macro to | |
4423 | a function. | |
4424 | ||
4425 | * mi/mi-interp.c (mi_on_resume): New. | |
4426 | (mi_interpreter_init): Register mi_on_resume. | |
e1ac3328 | 4427 | |
f7f9a841 VP |
4428 | 2008-06-10 Vladimir Prus <[email protected]> |
4429 | ||
4430 | Use observers to report stop events in MI. | |
680b56ce AS |
4431 | * mi/mi-interp.c (mi_on_normal_stop): New. |
4432 | (mi_interpreter_init): Register mi_on_normal_stop. | |
4433 | (mi_interpreter_exec_continuation): Remove. | |
4434 | (mi_cmd_interpreter_exec): Don't register the above. | |
4435 | * mi/mi-main.c (captured_mi_execute_command): Don't care | |
4436 | about sync_execution. | |
4437 | (mi_execute_async_cli_command): Don't install continuation. Don't | |
4438 | print *stopped. | |
4439 | (mi_exec_async_cli_cmd_continuation): Remove. | |
f7f9a841 | 4440 | |
f5871ec0 VP |
4441 | 2008-06-10 Vladimir Prus <[email protected]> |
4442 | ||
4443 | Suppress normal stop observer when it's problematic. | |
680b56ce AS |
4444 | * inferior.h (suppress_normal_stop_observer): New. |
4445 | * infcall.c (call_function_by_hand): Disable stop events when | |
4446 | doing function calls. | |
4447 | * infmcd.c (suppress_normal_stop_observer): New. | |
4448 | (finish_command_continuation): Call normal_stop observer | |
4449 | explicitly. | |
4450 | (finish_command): Disable stop events inside proceed. | |
4451 | * infrun.c (normal_stop): Don't call normal stop observer if | |
4452 | suppressed of if multi-step is in progress. | |
f5871ec0 | 4453 | |
3d3191a6 VP |
4454 | 2008-06-10 Vladimir Prus <[email protected]> |
4455 | ||
4456 | Remove stale code. | |
680b56ce AS |
4457 | * infrun.c (finish_command): Don't pass cleanup |
4458 | to continuation. | |
4459 | (finish_command_continuation): Don't grab cleanup from | |
4460 | the passed data, as we don't use, and cannot, use it anyway. | |
3d3191a6 | 4461 | |
0b080f59 VP |
4462 | 2008-06-10 Vladimir Prus <[email protected]> |
4463 | ||
4464 | Introduce common cleanup for restoring integers. | |
680b56ce AS |
4465 | * defs.h (make_cleanup_restore_integer): New declaration. |
4466 | (struct cleanup): New field free_arg. | |
4467 | (make_my_cleanup_2): New. | |
4468 | * utils.c (restore_integer_closure, restore_integer) | |
4469 | (make_cleanup_restore_integer): New. | |
4470 | (make_my_cleanup): Initialize the free_arg field and | |
4471 | renamed to make_my_cleanup_2. | |
4472 | (do_my_cleanups): Call free_arg. | |
4473 | (discard_cleanups): Call free_arg. | |
4474 | * breakpoint.c (restore_always_inserted_mode): Remove. | |
4475 | (update_breakpoints_after_exec): Use make_cleanup_restore_integer. | |
0b080f59 | 4476 | |
b4f62b57 DE |
4477 | 2008-06-09 Doug Evans <[email protected]> |
4478 | ||
4479 | * remote.c (remote_wait): Include beginning of malformed packet | |
4480 | in error output. | |
4481 | ||
37cd5d19 TT |
4482 | 2008-06-09 Tom Tromey <[email protected]> |
4483 | ||
4484 | * completer.c (complete_line): Don't special-case | |
4485 | expression_completer. | |
4486 | (expression_completer): Only pass last word to | |
4487 | location_completer. | |
4488 | * c-exp.y (yylex): Check 'token', not 'operator'. | |
4489 | ||
3526781e DJ |
4490 | 2008-06-09 Daniel Jacobowitz <[email protected]> |
4491 | ||
4492 | * configure.ac (build_warnings): Add -Wno-format for mingw. | |
4493 | * configure: Regenerated. | |
4494 | ||
d001be7a DJ |
4495 | 2008-06-07 Daniel Jacobowitz <[email protected]> |
4496 | ||
4497 | * NEWS: Make indentation consistent. Move exec tracing entry out | |
4498 | of remote packet list. | |
4499 | ||
65d12d83 TT |
4500 | 2008-06-06 Tom Tromey <[email protected]> |
4501 | ||
4502 | * value.h (evaluate_subexpression_type, extract_field_op): | |
4503 | Declare. | |
4504 | * printcmd.c (_initialize_printcmd): Use expression_completer for | |
4505 | 'p', 'inspect', 'call'. | |
4506 | * parser-defs.h (parse_field_expression): Declare. | |
4507 | * parse.c: Include exceptions.h. | |
4508 | (in_parse_field, expout_last_struct): New globals. | |
4509 | (mark_struct_expression): New function. | |
4510 | (prefixify_expression): Return int. | |
4511 | (prefixify_subexp): Return int. Use expout_last_struct. | |
4512 | (parse_exp_1): Update. | |
4513 | (parse_exp_in_context): Add 'out_subexp' argument. Handle | |
4514 | in_parse_field. | |
4515 | (parse_field_expression): New function. | |
4516 | * expression.h (parse_field_expression): Declare. | |
4517 | (in_parse_field): Likewise. | |
4518 | * eval.c (evaluate_subexpression_type): New function. | |
4519 | (extract_field_op): Likewise. | |
4520 | * completer.h (expression_completer): Declare. | |
4521 | * completer.c (expression_completer): New function. | |
4522 | (count_struct_fields, add_struct_fields): New functions. | |
4523 | * c-exp.y (yyparse): Redefine. | |
4524 | (COMPLETE): New token. | |
4525 | (exp): New productions. | |
4526 | (saw_name_at_eof, last_was_structop): New globals. | |
4527 | (yylex): Return COMPLETE when needed. Recognize in_parse_field. | |
4528 | (c_parse): New function. | |
4529 | * breakpoint.c (_initialize_breakpoint): Use expression_completer | |
4530 | for watch, awatch, and rwatch. | |
4531 | * Makefile.in (parse.o): Depend on exceptions_h. | |
4532 | ||
fed27633 PP |
4533 | 2008-06-06 Paul Pluzhnikov <[email protected]> |
4534 | ||
4535 | PR gdb/1147 | |
4536 | * gdb/valopts.c (find_overload_match): Handle references | |
4537 | to pointers. | |
4538 | ||
aced2898 PH |
4539 | 2008-06-06 Paul N. Hilfinger <[email protected]> |
4540 | ||
4541 | * ada-lang.c (ada_value_assign): Correct big-endian case to take into | |
4542 | account the bitsize of the 'from' operand. | |
4543 | ||
a2b87ed1 PA |
4544 | 2008-06-06 Pedro Alves <[email protected]> |
4545 | ||
4546 | * annotate.h (annotate_thread_changed): Declare. | |
4547 | ||
3d6d0b9d NR |
4548 | 2008-06-06 Nick Roberts <[email protected]> |
4549 | ||
4550 | * annotate.c (annotate_thread_changed): New function. | |
4551 | * thread.c (thread_command) : Use it. | |
4552 | * infrun.c (normal_stop): Use it. | |
4553 | ||
c16158bc | 4554 | 2008-06-05 Vladimir Prus <[email protected]> |
680b56ce AS |
4555 | Nathan Sidwell <[email protected]> |
4556 | Joseph Myers <[email protected]> | |
c16158bc JM |
4557 | |
4558 | * acinclude.m4: Include ../config/acx.m4. | |
4559 | * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL. | |
4560 | * configure, config.in: Regenerate. | |
4561 | * main.c (print_gdb_help): Use REPORT_BUGS_TO for bug-reporting | |
4562 | address. | |
4563 | * top.c (print_gdb_version): Use PKGVERSION and REPORT_BUGS_TO. | |
4564 | ||
75c99385 PA |
4565 | 2008-06-05 Pedro Alves <[email protected]> |
4566 | ||
4567 | Replace 'target async' by 'maintenance set remote-async' and | |
4568 | 'target remote' combination. | |
4569 | ||
4570 | * remote.c (remote_async_wait): Merge into remote_wait, and | |
4571 | remove. | |
4572 | (remote_async_permitted, remote_async_permitted_set): New | |
4573 | variables. | |
4574 | (set_maintenance_remote_async_permitted) | |
4575 | (show_maintenance_remote_async_permitted): New functions. | |
4576 | (remote_async_ops, extended_async_remote_ops): Delete. | |
4577 | (remote_async_open, extended_remote_async_open): Delete. | |
4578 | (remote_open_1): Drop async_p parameter. Update callers. Replace | |
4579 | async_p with remote_async_permitted checks. | |
4580 | (extended_async_remote_attach): Delete. | |
4581 | (remote_resume, remote_async_resume): Merge and leave remote_resume. | |
4582 | (remote_async_terminal_inferior): Rename to... | |
4583 | (remote_terminal_inferior): ... this, and add | |
4584 | remote_async_termitted check. | |
4585 | (remote_async_terminal_ours): Rename to... | |
4586 | (remote_terminal_ours): ... this, and add remote_async_termitted | |
4587 | check. | |
4588 | (remote_wait, remote_async_wait): Merge and leave remote_wait | |
4589 | only. | |
4590 | (remote_kill, remote_async_kill): Merge and leave remote_kill | |
4591 | only. | |
4592 | (remote_async_mourn, extended_async_remote_mourn): Delete. | |
4593 | (extended_remote_create_inferior_1): Drop async_p parameter. | |
4594 | Update callers. Always use extended_remote_ops. | |
4595 | (extended_remote_async_create_inferior): Delete. | |
4596 | (remote_return_zero): Delete. | |
4597 | (init_remote_ops): Register remote_can_async_p, remote_async, | |
4598 | remote_async_mask, remote_terminal_inferior and | |
4599 | remote_terminal_ours. | |
4600 | (remote_can_async_p, remote_is_async_p): Check for | |
4601 | remote_async_permitted. | |
4602 | (init_remote_async_ops, init_extended_async_remote_ops): Remove. | |
4603 | (set_remote_cmd): Don't add async and extended-async targets. | |
4604 | (_initialize_remote): Add set/show remote-async maintenance | |
4605 | commands. | |
4606 | ||
cf30943b PA |
4607 | 2008-06-05 Pedro Alves <[email protected]> |
4608 | ||
4609 | * remote.c (kill_kludge): Delete. | |
4610 | (remote_wait, remote_async_wait): Don't set it. | |
4611 | (remote_kill, remote_async_kill): Don't do anything with it. | |
4612 | ||
49fd4a42 PA |
4613 | 2008-06-05 Pedro Alves <[email protected]> |
4614 | ||
4615 | * linux-thread-db.c (thread_db_wait): Don't trim event ptid. | |
4616 | ||
2e618c13 AR |
4617 | 2008-06-05 Aleksandar Ristovski <[email protected]> |
4618 | ||
4619 | * bcache.c (bcache_data): Call deprecated_bcache_added function. | |
680b56ce AS |
4620 | (deprecated_bcache_added): New function name. Body of function |
4621 | bcache_data is used here with the addition of 'added' argument. | |
2e618c13 AR |
4622 | * bcache.h (deprecated_bcache_added): New function. |
4623 | * symfile.c (add_psymbol_to_bcache): New helper function, takes part of | |
4624 | work from add_psymbol_to_list - initialises partial symbol and stashes | |
4625 | it in objfile's cache. | |
680b56ce | 4626 | (append_psymbol_to_list): New helper function, takes other part of |
2e618c13 | 4627 | work from add_psymbol_to_list - adds partial symbol to the given list. |
680b56ce | 4628 | (add_psymbol_to_list): Call helper functions instead of doing work |
2e618c13 AR |
4629 | here. If adding to global list, do not duplicate partial symbols in the |
4630 | partial symtab. | |
4631 | ||
c0b37c48 AR |
4632 | 2008-06-05 Aleksandar Ristovski <[email protected]> |
4633 | ||
4634 | * breakpoint.c (print_exception_catchpoint): Put 'exception' back to | |
4635 | 'exception caught|thrown' message. | |
4636 | ||
1e3a102a JK |
4637 | 2008-06-05 Jan Kratochvil <[email protected]> |
4638 | ||
4639 | * Makefile.in: Update dependencies. | |
4640 | * dwarf2expr.c: New include "gdb_assert.h". | |
4641 | (new_dwarf_expr_context): Initialize MAX_RECURSION_DEPTH. | |
4642 | (dwarf_expr_eval): Sanity check the RECURSION_DEPTH count. | |
4643 | (execute_stack_op): Error out on too large RECURSION_DEPTH. | |
4644 | Increase/decrease RECURSION_DEPTH around the function. | |
4645 | ||
8d385431 DJ |
4646 | 2008-06-05 Daniel Jacobowitz <[email protected]> |
4647 | ||
4648 | * remote.c (get_offsets): Handle a single segment. | |
4649 | * symfile.c (symfile_map_offsets_to_segments): Allow more bases | |
4650 | than segments. | |
4651 | ||
93a57060 DJ |
4652 | 2008-06-03 Daniel Jacobowitz <[email protected]> |
4653 | ||
4654 | * solib-svr4.c (struct lm_info): Add lm_addr. | |
4655 | (main_lm_addr): New. | |
4656 | (svr4_default_sos): Set lm_addr. | |
4657 | (svr4_current_sos): Set lm_addr and main_lm_addr. | |
4658 | (svr4_fetch_objfile_link_map): Rewrite. | |
4659 | (svr4_clear_solib): Clear main_lm_addr. | |
4660 | ||
609ba780 | 4661 | 2008-06-03 Michael Snyder <[email protected]> |
680b56ce | 4662 | Joseph Myers <[email protected]> |
609ba780 JM |
4663 | |
4664 | * mips-tdep.c (mips_eabi_return_value): Replace stub that always | |
4665 | returned RETURN_VALUE_STRUCT_CONVENTION with a real function. | |
4666 | ||
c95f5026 JB |
4667 | 2008-06-02 Roman Zippel <[email protected]> |
4668 | ||
4669 | * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Fix incorrect test. | |
4670 | ||
e4d8bc08 JB |
4671 | 2008-06-02 Roman Zippel <[email protected]> |
4672 | ||
4673 | * m68k-tdep.c (m68k_analyze_prologue): Fix length of lea insn. | |
4674 | ||
40adab56 JB |
4675 | 2008-06-01 Joel Brobecker <[email protected]> |
4676 | ||
4677 | * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Do not | |
4678 | treat pointers in data space as function descriptors if the | |
4679 | target address is also in the data space. | |
4680 | ||
bfd66dd9 JB |
4681 | 2008-05-30 Joel Brobecker <[email protected]> |
4682 | ||
4683 | * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Set | |
4684 | the trad-frame register value for the SP register. | |
4685 | ||
7ea566be MK |
4686 | 2008-05-29 Mark Kettenis <[email protected]> |
4687 | ||
4688 | * sparcnbsd-tdep.c, sparcobsd-tdep.c: Update for unwinder changes. | |
4689 | ||
fcac911a JB |
4690 | 2008-05-28 Joel Brobecker <[email protected]> |
4691 | ||
4692 | * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Improve the heuristic | |
4693 | that identifies function descriptors outside of the .opd section. | |
4694 | ||
ade92717 AR |
4695 | 2008-05-28 Aleksandar Ristovski <[email protected]> |
4696 | ||
4697 | * breakpoint.c (print_exception_catchpoint): In CLI add 'Temporary' for | |
680b56ce | 4698 | temporary catchpoints. In MI add missing fields 'reason', 'disp', |
ade92717 AR |
4699 | 'bkptno'. |
4700 | (print_mention_exception_catchpoint): Add 'Temporary' for temporary | |
4701 | catchpoints. | |
4702 | (handle_gnu_v3_exceptions): Use tempflag. | |
4703 | ||
f7f9ae2c VP |
4704 | 2008-05-28 Vladimir Prus <[email protected]> |
4705 | ||
4706 | Refactor varobj_update interface. | |
680b56ce AS |
4707 | * varobj.c (varobj_update): Report changes as vector. Also |
4708 | return not just a list of varobj, but a list of special structures | |
4709 | that tell what exactly has changed. | |
4710 | * varobj.h (enum varobj_update_error): Rename to | |
4711 | varobj_scope_status. | |
4712 | (struct varobj_update_result_t): New. | |
4713 | (varobj_update): Adjust prototype. | |
4714 | * mi/mi-cmd-var.c: Adjust for changes. | |
f7f9ae2c | 4715 | |
ea56f9c2 VP |
4716 | 2008-05-28 Vladimir Prus <[email protected]> |
4717 | ||
4718 | * varobj.c (varobj_update): Fix comment typo. | |
4719 | Fix indentation. | |
4720 | ||
c7efd0b9 JB |
4721 | 2008-05-26 Joel Brobecker <[email protected]> |
4722 | ||
4723 | Set the symtab field of symbols read from ECOFF debugging entries. | |
4724 | * mdebugread.c (add_symbol): Add new parameter symtab. | |
4725 | (parse_symbol): Update calls to add_symbol throughout. | |
4726 | ||
2a2d4dc3 AS |
4727 | 2008-05-27 Andreas Schwab <[email protected]> |
4728 | ||
4729 | * symtab.h (enum address_class): Remove LOC_REGPARM and | |
4730 | LOC_COMPUTED_ARG. | |
4731 | (struct symbol): Add is_argument. | |
4732 | (SYMBOL_IS_ARGUMENT): Define. | |
4733 | ||
4734 | * ada-lang.c (ada_add_block_symbols): Use SYMBOL_IS_ARGUMENT. | |
4735 | * buildsym.c (finish_block): Likewise. | |
4736 | * stack.c (print_frame_args, print_block_frame_locals) | |
4737 | (print_frame_arg_vars): Likewise. | |
4738 | * symtab.c (lookup_block_symbol): Likewise. | |
4739 | * tracepoint.c (add_local_symbols): Likewise. | |
4740 | * mi/mi-cmd-stack.c (list_args_or_locals): Likewise. | |
4741 | ||
4742 | * coffread.c (process_coff_symbol): Set SYMBOL_IS_ARGUMENT. | |
4743 | * dwarf2read.c (new_symbol): Likewise. | |
4744 | * mdebugread.c (parse_symbol): Likewise. | |
4745 | * stabsread.c (define_symbol): Likewise. | |
4746 | ||
4747 | * ada-exp.y (select_possible_type_sym): Don't handle LOC_REGPARM | |
4748 | and LOC_COMPUTED_ARG. | |
4749 | * ada-lang.c (resolve_subexp, symtab_for_sym): Likewise. | |
4750 | * ax-gdb.c (gen_var_ref): Likewise. | |
4751 | * eval.c (evaluate_subexp_for_address): Likewise. | |
4752 | * findvar.c (symbol_read_needs_frame, read_var_value): Likewise. | |
4753 | * m2-exp.y (yylex): Likewise. | |
4754 | * printcmd.c (address_info): Likewise. | |
4755 | * symmisc.c (print_symbol, print_partial_symbols): Likewise. | |
4756 | * tracepoint.c (collect_symbol, scope_info): Likewise. | |
4757 | ||
17ea7499 CES |
4758 | 2008-05-24 Carlos Eduardo Seo <[email protected]> |
4759 | ||
4760 | * gdbarch.sh: Added new gdbarch struct | |
4761 | core_regset_sections. | |
4762 | * gdbarch.c: Refreshed. | |
4763 | * gdbarch.h: Refreshed. | |
4764 | * regset.h (core_regset_section): Declared. | |
4765 | * linux-nat.c (linux_nat_do_thread_registers): Added | |
4766 | support for the new gdbarch struct core_regset_sections. | |
4767 | * utils.c (host_address_to_string): New function. | |
4768 | * defs.h (host_address_to_string): New prototype. | |
4769 | * i386-linux-tdep.c (i386_regset_rections): New register | |
4770 | sections list for i386. | |
4771 | (i386_linux_init_abi): Initialized new gdbarch struct | |
4772 | core_regset_sections. | |
4773 | * Makefile.in: Updated to reflect dependency changes. | |
4774 | * ppc-linux-tdep.c (ppc_regset_sections): Register | |
4775 | sections list for ppc. | |
4776 | (ppc_linux_init_abi): Initialized new gdbarch struct | |
4777 | core_regset_sections | |
4778 | ||
c4fc331b AS |
4779 | 2008-05-24 Andreas Schwab <[email protected]> |
4780 | ||
4781 | * linespec.c (decode_objc): Save current language around call to | |
4782 | get_selected_block. | |
4783 | ||
e936309c JB |
4784 | 2008-05-23 Joel Brobecker <[email protected]> |
4785 | ||
4786 | * valprint.h (get_array_bounds): Renames get_array_low_bound. | |
4787 | * valprint.c (get_array_bounds): Renames get_array_low_bound. | |
4788 | Return the proper bound value if the array index type is an | |
4789 | enumerated type. Compute the high bound if requested. | |
4790 | (val_print_array_elements): Handle the case when the array | |
4791 | element has a null size. | |
4792 | * ada-valprint.c (print_optional_low_bound): Add handling | |
4793 | for empty arrays or arrays of zero-size elements. | |
4794 | (ada_val_print_array): New function, extracted out from | |
4795 | ada_val_print_1 case TYPE_CODE_ARRAY, and enhanced to | |
4796 | handle empty arrays and arrays of zero-size elements. | |
4797 | (ada_val_print_1)[case TYPE_CODE_ARRAY]: Replace extracted-out | |
4798 | code by call to ada_val_print_array. | |
4799 | (ada_value_print): Remove handling of null array. The handling | |
4800 | was incomplete and is now better handled by ada_val_print_array. | |
4801 | ||
50ee7535 MD |
4802 | 2008-05-23 Markus Deuling <[email protected]> |
4803 | ||
4804 | * annotate.c (annotate_source, annotate_frame_begin): Replace | |
4805 | deprecated_print_address_numeric with paddress. | |
4806 | * cli/cli-cmds.c (list_command, edit_command): Likewise. | |
4807 | * tui/tui-stack.c (tui_make_status_line): Likewise. | |
4808 | ||
4809 | * defs.h (deprecated_print_address_numeric): Remove. | |
4810 | * printcmd.c (deprecated_print_address_numeric): Remove. | |
4811 | * maint.c (maint_print_section_info): Fix comment. | |
4812 | ||
d44e8473 MD |
4813 | 2008-05-23 Markus Deuling <[email protected]> |
4814 | ||
4815 | * valprint.c (print_hex_chars, print_octal_chars, print_decimal_chars, | |
4816 | print_binary_chars, print_char_chars): Add byte_order parameter and | |
4817 | replace gdbarch_byte_order. | |
4818 | (print_decimal_chars): Replace START_P, NOT_END_P and NEXT_P by their | |
4819 | expressions and remove them. Remove unused TWO_TO_FOURTH. | |
4820 | (val_print_type_code_int): Introduce gdbarch_byte_order to get at the | |
4821 | endianness. Update call to print_hex_chars. | |
4822 | * valprint.h (print_hex_chars, print_octal_chars, print_decimal_chars, | |
4823 | print_binary_chars, print_char_chars): Add byte_order parameter. | |
4824 | * printcmd.c (print_scalar_formatted): Introduce gdbarch_byte_order to | |
4825 | get at the endianness. Update print_*_char calls to use byte_order. | |
4826 | ||
10f4ecb8 UW |
4827 | 2008-05-22 Ulrich Weigand <[email protected]> |
4828 | ||
4829 | * symtab.h (struct symbol): Make "aux_value" member a void pointer | |
4830 | instead of a union. | |
4831 | (SYMBOL_LOCATION_BATON): Update. | |
4832 | ||
c3b22bd0 UW |
4833 | 2008-05-22 Ulrich Weigand <[email protected]> |
4834 | ||
4835 | * symtab.h (enum address_class): Remove LOC_BASEREG and | |
4836 | LOC_BASEREG_ARG. | |
4837 | (struct symbol): Remove "basereg" member of "aux_value" union. | |
4838 | (SYMBOL_BASEREG): Remove. | |
4839 | ||
4840 | * ada-exp.y (select_possible_type_sym): Do not handle LOC_BASEREG | |
4841 | or LOC_BASEREG_ARG. | |
4842 | * ada-lang.c (resolve_subexp, symtab_for_sym): Likewise. | |
4843 | (ada_add_block_symbols): Likewise. | |
4844 | * ax-gdb.c (gen_var_ref): Likewise. | |
4845 | * buildsym.c (finish_block): Likewise. | |
4846 | * findvar.c (symbol_read_needs_frame, read_var_value): Likewise. | |
4847 | * m2-exp.y (yylex): Likewise. | |
4848 | * mi/mi-cmd-stack.c (list_args_or_locals): Likewise. | |
4849 | * printcmd.c (address_info): Likewise. | |
4850 | * stack.c (print_frame_args, print_block_frame_locals): Likewise. | |
4851 | (print_frame_arg_vars): Likewise. | |
4852 | * symmisc.c (print_symbol): Likewise. | |
4853 | * symtab.c (lookup_block_symbol): Likewise. | |
4854 | * tracepoint.c (collect_symbol, add_local_symbols): Likewise. | |
4855 | (scope_info): Likewise. | |
4856 | ||
aa59ba6b UW |
4857 | 2008-05-22 Ulrich Weigand <[email protected]> |
4858 | ||
4859 | * symtab.h (enum address_class): Remove LOC_LOCAL_ARG. | |
4860 | ||
4861 | * ada-exp.y (select_possible_type_sym): Do not handle LOC_LOCAL_ARG. | |
4862 | * ada-lang.c (resolve_subexp, symtab_for_sym): Likewise. | |
4863 | (ada_add_block_symbols): Likewise. | |
4864 | * ax-gdb.c (gen_var_ref): Likewise. | |
4865 | * buildsyms.c (finish_block): Likewise. | |
4866 | * findvar.c (symbol_read_needs_frame, read_var_value): Likewise. | |
4867 | * m2-exp.y (yylex): Likewise. | |
4868 | * mi/mi-cmd-stack.c (list_args_or_locals): Likewise. | |
4869 | * printcmd.c (address_info): Likewise. | |
4870 | * stack.c (print_frame_args, print_frame_arg_vars): Likewise. | |
4871 | * symmisc.c (print_symbol, print_partial_symbols): Likewise. | |
4872 | * symtab.c (lookup_block_symbol): Likewise. | |
4873 | * tracepoint.c (collect_symbol, add_local_symbols): Likewise. | |
4874 | (scope_info): Likewise. | |
4875 | ||
0bb4e8c4 UW |
4876 | 2008-05-22 Ulrich Weigand <[email protected]> |
4877 | ||
4878 | * symtab.h (enum address_class): Remove LOC_INDIRECT and | |
4879 | LOC_HP_THREAD_LOCAL_STATIC. | |
4880 | ||
4881 | * findvar.c (symbol_read_needs_frame, read_var_value): Do not | |
4882 | handle LOC_INDIRECT or LOC_HP_THREAD_LOCAL_STATIC. | |
4883 | (read_var_value): Likewise. | |
4884 | * buildsym.c (finish_block): Likewise. | |
4885 | * objfiles.c (objfile_relocate): Likewise. | |
4886 | * printcmd.c (address_info): Likewise. | |
4887 | * symmisc.c (print_symbol, print_partial_symbols): Likewise. | |
4888 | * tracepoint.c (scope_info): Likewise. | |
4889 | ||
9f61f19b MG |
4890 | 2008-05-21 Markus Deuling <[email protected]> |
4891 | Maxim Grigoriev <[email protected]> | |
4892 | ||
4893 | * xtensa-tdep.c (xtensa_read_register): Remove. | |
4894 | (xtensa_frame_cache): Get rid of xtensa_read_register. Pass extra | |
4895 | argument litbase to call0_frame_cache(). | |
4896 | (call0_track_op, call0_analyze_prologue) | |
4897 | (call0_frame_cache): Use extra argument litbase. | |
4898 | ||
0e479716 JB |
4899 | 2008-05-21 Joel Brobecker <[email protected]> |
4900 | ||
4901 | * infcmd.c (_initialize_infcmd): Add new "fin" alias for "finish". | |
4902 | ||
214be669 UW |
4903 | 2008-05-21 Ulrich Weigand <[email protected]> |
4904 | ||
4905 | * frame.h (SIZEOF_FRAME_SAVED_REGS): Remove. | |
4906 | ||
0cd9ab92 UW |
4907 | 2008-05-21 Ulrich Weigand <[email protected]> |
4908 | ||
4909 | * alpha-mdebug-tdep.c: Include "trad-frame.h". | |
4910 | (struct alpha_mdebug_unwind_cache): Change type of SAVED_REGS to | |
4911 | struct trad_frame_saved_reg *. | |
4912 | (alpha_mdebug_frame_unwind_cache): Allocate SAVED_REGS using | |
4913 | trad_frame_alloc_saved_regs. Update accesses. Record previous | |
4914 | value of SP as being vfp. | |
4915 | (alpha_mdebug_frame_prev_register): Use trad_frame_get_prev_register. | |
4916 | * Makefile.in (alpha-mdebug-tdep.o): Update dependencies. | |
4917 | ||
f52cb1b8 MD |
4918 | 2008-05-21 Markus Deuling <[email protected]> |
4919 | ||
4920 | * score-tdep.c (score_print_insn): Get the current endianess from | |
4921 | disassemble_info instead of gdbarch_byte_order. | |
4922 | ||
8fa75a5d PA |
4923 | 2008-05-21 Pedro Alves <[email protected]> |
4924 | ||
4925 | * frame.c (get_prev_frame_1): Build frame id before setting | |
4926 | this_frame->prev_p, not after. | |
4927 | ||
e8e48118 NR |
4928 | 2008-05-21 Nick Roberts <[email protected]> |
4929 | ||
4930 | * annotate.c (annotate_new_thread): New function for new-thread | |
4931 | annotation. | |
4932 | * annotate.h: (annotate_new_thread): New extern. | |
4933 | * thread.c (add_thread_with_info): Use it. | |
4934 | * Makefile.in (thread.o): Add dependency on annotate.h. | |
4935 | ||
c57918b2 JB |
4936 | 2008-05-20 Joel Brobecker <[email protected]> |
4937 | ||
4938 | * win32-nat.c (win32_wait): Block the control-c event while | |
4939 | waiting for a debug event. | |
4940 | ||
6c9353d3 PA |
4941 | 2008-05-19 Pedro Alves <[email protected]> |
4942 | ||
4943 | * symtab.h (lookup_symbol_in_language): Update comment. | |
4944 | * symtab.c (lookup_symbol_aux_block): Update comment. | |
4945 | * ada-lang.c (ada_lookup_symbol_list): Update comment. | |
4946 | ||
2570f2b7 UW |
4947 | 2008-05-19 Ulrich Weigand <[email protected]> |
4948 | ||
4949 | * symtab.h (lookup_symbol_in_language): Remove SYMTAB parameter. | |
4950 | (lookup_symbol): Likewise. | |
4951 | * symtab.c (lookup_symbol_in_language): Remove SYMTAB parameter. | |
4952 | (lookup_symbol): Likewise. | |
4953 | (search_symbols): Update. | |
4954 | ||
4955 | * linespec.c (find_methods, collect_methods): Update. | |
4956 | (add_matching_methods, add_constructors): Update. | |
4957 | (decode_compound, decode_dollar, decode_variable): Update. | |
4958 | (lookup_prefix_sym): Update. | |
4959 | ||
4960 | (symbol_found): Remove SYM_SYMTAB parameter. | |
4961 | Use SYMBOL_SYMTAB (sym) instead. | |
4962 | ||
4963 | * gdbtypes.c (lookup_typename): Update. | |
4964 | (lookup_struct, lookup_union, lookup_enum): Update. | |
4965 | (lookup_template_type): Update. | |
4966 | (check_typedef): Update. | |
4967 | * language.c (lang_bool_type): Update. | |
4968 | * mdebugread.c (parse_procedure): Update. | |
4969 | * mi/mi-cmd-stack.c (list_args_or_locals): Update. | |
4970 | * parse.c (write_dollar_variable): Update. | |
4971 | * printcmd.c (address_info): Update. | |
4972 | * source.c (select_source_symtab): Update. | |
4973 | * stack.c (print_frame_args, print_frame_arg_vars): Update. | |
4974 | * valops.c (find_function_in_inferior): Update. | |
4975 | (value_struct_elt_for_reference): Update. | |
4976 | * value.c (value_static_field, value_fn_field): Update. | |
4977 | ||
4978 | * alpha-mdebug-tdep.c (find_proc_desc): Update. | |
4979 | * arm-tdep.c (arm_skip_prologue): Update. | |
4980 | * mt-tdep.c (mt_skip_prologue): Update. | |
4981 | * xstormy16-tdep.c (xstormy16_skip_prologue): Update. | |
4982 | ||
4983 | * ada-lang.h (struct ada_symbol_info): Remove SYMTAB member. | |
4984 | * ada-lang.c (ada_add_block_symbols): Remove SYMTAB parameter. | |
4985 | (add_defn_to_vec): Likewise. | |
4986 | (ada_add_block_symbols): Likewise. | |
4987 | (lookup_cached_symbol, cache_symbol): Likewise. | |
4988 | (standard_lookup): Update. | |
4989 | (ada_lookup_symbol_list): Update. | |
4990 | ||
4991 | * c-valprint.c (c_val_print): Update. | |
4992 | * cp-support.c (cp_lookup_rtti_type): Update. | |
4993 | * jv-lang.c (java_lookup_class, get_java_object_type): Update. | |
4994 | * objc-lang.c (lookup_struct_typedef, find_imps): Update. | |
4995 | * p-valprint.c (pascal_val_print): Update. | |
4996 | * scm-lang.c (scm_lookup_name): Update. | |
4997 | ||
4998 | * c-exp.y: Update. | |
4999 | * f-exp.y: Update. | |
5000 | * jv-exp.y: Update. | |
5001 | * m2-exp.y: Update. | |
5002 | * objc-exp.y: Update. | |
5003 | * p-exp.y: Update. | |
5004 | ||
21b556f4 UW |
5005 | 2008-05-19 Ulrich Weigand <[email protected]> |
5006 | ||
5007 | * language.h (struct language_defn): Remove SYMTAB parameter from | |
5008 | la_lookup_symbol_nonlocal callback function pointer. | |
5009 | ||
5010 | * ada-lang.h (ada_lookup_encoded_symbol): Remove SYMTAB parameter. | |
5011 | (ada_lookup_encoded_symbol): Likewise. | |
5012 | * ada-lang.c (ada_lookup_encoded_symbol): Remove SYMTAB parameter. | |
5013 | Always call fixup_symbol_section. | |
5014 | (ada_lookup_symbol): Remove SYMTAB parameter. | |
5015 | (ada_lookup_symbol_nonlocal): Likewise. | |
5016 | * ada-exp.y (write_object_renaming): Update. | |
5017 | (find_primitive_type): Likewise. | |
5018 | ||
5019 | * cp-support.h (cp_lookup_symbol_nonlocal): Remove SYMTAB parameter. | |
5020 | (cp_lookup_symbol_namespace): Likewise. | |
5021 | * cp-namespace.c (lookup_namespace_scope): Remove SYMTAB parameter. | |
5022 | (lookup_symbol_file): Likewise. | |
5023 | (lookup_possible_namespace_symbol): Likewise. | |
5024 | (cp_lookup_symbol_nonlocal): Likewise. | |
5025 | (cp_lookup_symbol_namespace): Likewise. | |
5026 | (cp_lookup_nested_type): Update. | |
5027 | ||
5028 | * scm-valprint.c (scm_inferior_print): Update. | |
5029 | * valops.c (value_maybe_namespace_elt): Update. | |
5030 | ||
5031 | * solist.h (struct target_so_ops): Remove SYMTAB parameter from | |
5032 | lookup_lib_global_symbol callback function pointer. | |
5033 | (solib_global_lookup): Remove SYMTAB parameter. | |
5034 | * solib.c (solib_global_lookup): Remove SYMTAB parameter. | |
5035 | * solib-svr4.c (elf_lookup_lib_symbol): Likewise. | |
5036 | ||
5037 | * symtab.h (basic_lookup_symbol_nonlocal): Remove SYMTAB parameter. | |
5038 | (lookup_symbol_static): Likewise. | |
5039 | (lookup_symbol_global): Likewise. | |
5040 | (lookup_symbol_aux_block): Likewise. | |
5041 | (lookup_global_symbol_from_objfile): Likewise. | |
5042 | * symtab.c (lookup_symbol_aux): Remove SYMTAB parameter. | |
5043 | (lookup_symbol_aux_local): Likewise. | |
5044 | (lookup_symbol_aux_block): Likewise. | |
5045 | (lookup_symbol_aux_symtabs): Likewise. | |
5046 | (lookup_symbol_aux_psymtabs): Likewise. | |
5047 | (lookup_global_symbol_from_objfile): Likewise. | |
5048 | (basic_lookup_symbol_nonlocal): Likewise. | |
5049 | (lookup_symbol_static): Likewise. | |
5050 | (lookup_symbol_global): Likewise. | |
5051 | ||
5052 | (lookup_symbol_in_language): Do not pass SYMTAB to lookup_symbol_aux. | |
5053 | ||
39237dd1 PA |
5054 | 2008-05-17 Pedro Alves <[email protected]> |
5055 | ||
5056 | * remote.c (init_extended_remote_ops): Fix typo. | |
5057 | ||
7c0d47a5 PA |
5058 | 2008-05-16 Pedro Alves <[email protected]> |
5059 | ||
5060 | * NEWS: Mention new DICOS x86 target configuration. | |
5061 | ||
907fc202 UW |
5062 | 2008-05-16 Pedro Alves <[email protected]> |
5063 | Ulrich Weigand <[email protected]> | |
5064 | ||
5065 | * minsyms.c (lookup_minimal_symbol_by_pc_name): New function. | |
5066 | * symtab.h (lookup_minimal_symbol_by_pc_name): Add prototype. | |
5067 | ||
5068 | * symtab.c (fixup_section): Remove prototype. Add ADDR parameter; | |
5069 | use it instead of ginfo->value.address. Look up minimal symbol by | |
5070 | address and name. Assume OBJFILE is non-NULL. | |
5071 | (fixup_symbol_section): Ensure we always have an objfile to look | |
5072 | into. Extract and pass to fixup_section the symbol's address that | |
5073 | will match the minimal symbol's address. | |
5074 | (fixup_psymbol_section): Likewise. | |
5075 | ||
5076 | (find_pc_sect_psymtab): Fall back to non-addrmap case when debugging | |
5077 | overlays and the addrmap returned the wrong section. | |
5078 | ||
5079 | * dwarf2read.c (var_decode_location): Set SYMBOL_CLASS before | |
5080 | calling fixup_symbol_section. | |
5081 | ||
42848c96 UW |
5082 | 2008-05-16 Ulrich Weigand <[email protected]> |
5083 | ||
5084 | * minsyms.c: Include "target.h". | |
5085 | (find_solib_trampoline_target): Handle minimal symbols pointing | |
5086 | to function descriptors as well. | |
5087 | * Makefile.in (minsyms.o): Update dependencies. | |
5088 | ||
5089 | * ppc-linux-tdep.c (ppc64_standard_linkage): Rename to ... | |
5090 | (ppc64_standard_linkage1): ... this. Fix optional instructions. | |
5091 | (PPC64_STANDARD_LINKAGE_LEN): Rename to ... | |
5092 | (PPC64_STANDARD_LINKAGE1_LEN): ... this. | |
5093 | (ppc64_standard_linkage2, ppc64_standard_linkage3): New. | |
5094 | (PPC64_STANDARD_LINKAGE2_LEN, PPC64_STANDARD_LINKAGE3_LEN): New. | |
5095 | (ppc64_standard_linkage_target): Rename to ... | |
5096 | (ppc64_standard_linkage1_target): ... this. | |
5097 | (ppc64_standard_linkage2_target, ppc64_standard_linkage3_target): New. | |
5098 | (ppc64_skip_trampoline_code): Support three variants of standard | |
5099 | linkage stubs. Call find_solib_trampoline_target to handle | |
5100 | glink stubs. | |
5101 | ||
74d1f063 UW |
5102 | 2008-05-16 Ulrich Weigand <[email protected]> |
5103 | ||
5104 | * ppc-linux-tdep.c (ppc_linux_init_abi): Do not install | |
5105 | ppc64_sysv_abi_adjust_breakpoint_address. | |
5106 | * ppc-sysv-tdep.c (ppc64_sysv_abi_adjust_breakpoint_address): Remove. | |
5107 | * ppc-tdep.h (ppc64_sysv_abi_adjust_breakpoint_address): Remove. | |
5108 | ||
8526f328 UW |
5109 | 2008-05-16 Ulrich Weigand <[email protected]> |
5110 | ||
5111 | * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Remove. | |
5112 | (ppc_linux_init_abi): Install find_solib_trampoline_target instead | |
5113 | of ppc_linux_skip_trampoline_code. | |
5114 | ||
ba2b1c56 DJ |
5115 | 2008-05-15 Daniel Jacobowitz <[email protected]> |
5116 | ||
5117 | * gdbarch.sh: Delete dwarf_reg_to_regnum. | |
5118 | * gdbarch.c, gdbarch.h: Regenerated. | |
5119 | * amd64-tdep.c, arm-tdep.c, h8300-tdep.c, hppa-linux-tdep.c, | |
5120 | hppa-tdep.c, i386-tdep.c, m32c-tdep.c, m68k-tdep.c, mips-tdep.c, | |
5121 | s390-tdep.c, xtensa-tdep.c: Do not set dwarf_reg_to_regnum. | |
5122 | ||
4fdebdd0 PA |
5123 | 2008-05-15 Pedro Alves <[email protected]> |
5124 | ||
5125 | * linux-nat.c (trap_ptid): Delete. | |
5126 | (linux_nat_detach, linux_nat_wait, linux_nat_mourn_inferior): | |
5127 | Adjust. | |
5128 | * linux-thread-db.c (thread_db_wait): Adjust. | |
5129 | ||
bc882aa9 JB |
5130 | 2008-05-15 Joel Brobecker <[email protected]> |
5131 | ||
5132 | * linespec.c (decode_line_1): Fix a couple of comments. | |
5133 | ||
83b94be5 AM |
5134 | 2008-05-15 Alan Modra <[email protected]> |
5135 | ||
5136 | * dbxread.c: Formatting. | |
5137 | (INTERNALIZE_SYMBOL): Init n_other. | |
5138 | (set_namestring): Take pointer to nlist arg rather than struct | |
5139 | copy. Update all callers. | |
5140 | ||
87669130 AS |
5141 | 2008-05-15 Andreas Schwab <[email protected]> |
5142 | ||
5143 | * Makefile.in (dwarf2loc.o): Remove $(addrmap_h). | |
5144 | (dwarf2read.o): Add $(addrmap_h). | |
5145 | ||
00d5f93a UW |
5146 | 2008-05-14 Ulrich Weigand <[email protected]> |
5147 | ||
5148 | * ppc-linux-tdep.c (ppc_linux_convert_from_func_ptr_addr): Rename ... | |
5149 | (ppc64_linux_convert_from_func_ptr_addr): ... to this. No longer try | |
5150 | to handle ppc32 PLT entries. | |
5151 | (ppc_linux_init_abi): Install ppc64_linux_convert_from_func_ptr_addr | |
5152 | only on ppc64. | |
5153 | ||
2eaf8d2a DJ |
5154 | 2008-05-14 Daniel Jacobowitz <[email protected]> |
5155 | ||
5156 | * elfread.c (elf_symtab_read): Create trampolines for @plt symbols. | |
5157 | * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Renamed from | |
5158 | lookup_minimal_symbol_by_pc_section. Prefer trampolines if requested. | |
5159 | (lookup_minimal_symbol_by_pc_section): Use | |
5160 | lookup_minimal_symbol_by_pc_section_1. | |
5161 | (lookup_solib_trampoline_symbol_by_pc): Likewise. | |
5162 | ||
20c62566 JB |
5163 | 2008-05-13 Joel Brobecker <[email protected]> |
5164 | ||
5165 | * findcmd.c: Add #include "gdb_stdint.h". | |
5166 | * Makefile.in (findcmd.o): Update dependencies. | |
5167 | ||
87a7da84 DM |
5168 | 2008-05-11 David S. Miller <[email protected]> |
5169 | ||
de0c3d9d DM |
5170 | * sparc-linux-tdep.c (sparc32_linux_init_abi): Remove |
5171 | long double size override, Linux does use 128-bit now. | |
5172 | ||
e8467b5a DM |
5173 | * sparc-linux-tdep.c (PSR_SYSCALL): Define. |
5174 | (sparc_linux_write_pc): New function. | |
5175 | (sparc32_linux_init_abi): Register it. | |
5176 | * sparc64-linux-tdep.c (TSTATE_SYSCALL): Define. | |
5177 | (sparc64_linux_write_pc): New function. | |
5178 | (sparc64_linux_init_abi): Register it. | |
5179 | ||
87a7da84 DM |
5180 | * sparc-linux-tdep.c, sparc64-linux-tdep.c: Use |
5181 | dwarf2_append_unwinders(), not dwarf2_frame_sniffer. | |
5182 | ||
8a4c2d24 UW |
5183 | 2008-05-11 Ulrich Weigand <[email protected]> |
5184 | ||
5185 | * rs6000-tdep.c (rs6000_gdbarch_init): Set up info.target_desc | |
5186 | and info.tdep_info before calling gdbarch_init_osabi. | |
5187 | ||
003f3813 JB |
5188 | 2008-05-09 Joel Brobecker <[email protected]> |
5189 | ||
5190 | * ada-lang.c (ada_evaluate_subexp) [BINOP_ASSIGN]: Do not force | |
5191 | the type of the right hand side of the assignment to the type | |
5192 | of the left hand side if the left hand side is a convenience | |
5193 | variable. | |
5194 | ||
7ae0e2a2 UW |
5195 | 2008-05-09 Ulrich Weigand <[email protected]> |
5196 | ||
5197 | * NEWS: Mention gdbserver bi-arch capability. | |
5198 | ||
08388c79 DE |
5199 | 2008-05-09 Doug Evans <[email protected]> |
5200 | ||
5201 | New "find" command. | |
5202 | * NEWS: Document find command and qSearch:memory packet. | |
5203 | * Makefile.in (SFILES): Add findcmd.c. | |
5204 | (COMMON_OBJS): Add findcmd.o. | |
5205 | (findcmd.o): New rule. | |
5206 | * findcmd.c: New file. | |
5207 | * target.h (target_ops): New member to_search_memory. | |
5208 | (simple_search_memory): Declare. | |
5209 | (target_search_memory): Declare. | |
5210 | * target.c (simple_search_memory): New fn. | |
5211 | (target_search_memory): New fn. | |
5212 | * remote.c (PACKET_qSearch_memory): New packet kind. | |
5213 | (remote_search_memory): New fn. | |
5214 | (init_remote_ops): Init to_search_memory. | |
5215 | (init_extended_remote_ops): Ditto. | |
5216 | (_initialize_remote): Add qSearch:memory packet config command. | |
5217 | ||
11c68c47 EZ |
5218 | 2008-05-09 Eli Zaretskii <[email protected]> |
5219 | ||
5220 | * thread.c (_initialize_thread): Don't use commas and periods in | |
5221 | first line of doc string of "set/show print thread-events". | |
5222 | ||
6834c9bb JB |
5223 | 2008-05-08 Joel Brobecker <[email protected]> |
5224 | ||
5225 | * alpha-mdebug-tdep.c, alpha-osf1-tdep.c, alpha-tdep.c: | |
5226 | Update for unwinder changes. | |
5227 | ||
86c31399 JB |
5228 | 2008-05-08 Joel Brobecker <[email protected]> |
5229 | ||
5230 | * frame.c (get_frame_base_address, get_frame_locals_address) | |
5231 | (get_frame_args_address): Pass the correct frame when calling | |
5232 | frame_base_find_by_frame. | |
5233 | ||
96ef3384 UW |
5234 | 2008-05-08 Ulrich Weigand <[email protected]> |
5235 | ||
5236 | * remote.c (extended_remote_attach_1): Call target_find_description. | |
5237 | ||
45280a52 DJ |
5238 | 2008-05-08 Daniel Jacobowitz <[email protected]> |
5239 | ||
5240 | * remote.c (extended_remote_create_inferior_1): Clean up | |
5241 | before marking the target running. | |
5242 | ||
227e86ad JB |
5243 | 2008-05-08 Joel Brobecker <[email protected]> |
5244 | ||
5245 | * hppa-tdep.h, hppa-tdep.c, hppa-hpux-tdep.c: Update for unwinder | |
5246 | changes. | |
5247 | ||
236369e7 JB |
5248 | 2008-05-07 Joel Brobecker <[email protected]> |
5249 | ||
5250 | * sparc-tdep.c, sparc-tdep.h, sparc-sol2-tdep.c, sparc64-tdep.c, | |
5251 | sparc64-sol2-tdep.c: Update for unwinder changes. | |
5252 | ||
de237128 DJ |
5253 | 2008-05-07 Daniel Jacobowitz <[email protected]> |
5254 | ||
5255 | * cp-support.c (mangled_name_to_comp): Initialize storage. | |
5256 | (unqualified_name_from_comp): Likewise. | |
5257 | ||
4fff2411 JZ |
5258 | 2008-05-07 Jie Zhang <[email protected]> |
5259 | ||
5260 | * remote.c (remote_insert_breakpoint): Call get_remote_state | |
5261 | after gdbarch_breakpoint_from_pc is called. | |
5262 | (remote_insert_hw_breakpoint): Likewise. | |
5263 | ||
d8ca156b JB |
5264 | 2008-05-06 Joel Brobecker <[email protected]> |
5265 | ||
5266 | * valprint.c (val_print): Add new language parameter and use it | |
5267 | instead of using the current_language. Update calls to val_print | |
5268 | throughout. | |
5269 | (common_val_print): Add new langauge parameter and pass it to | |
5270 | val_print. | |
5271 | * value.h (struct language_defn): Add opaque declaration. | |
5272 | (val_print, common_val_print): Update declarations. | |
5273 | * stack.c (print_frame_args): Update call to common_val_print | |
5274 | using the appropriate language. | |
5275 | * mi/mi-cmd-stack.c (list_args_or_locals): Likewise. | |
5276 | * c-valprint, f-valprint.c, m2-valprint.c, mt-tdep.c, infcmd.c, | |
5277 | mi/mi-main.c, jv-valprint.c, ada-valprint.c, varobj.c, p-valprint.c, | |
5278 | scm-valprint.c, cp-valprint.c, sh64-tdep.c, printcmd.c: | |
5279 | #include "language.h" if necessary. | |
5280 | Update calls to val_print and common_val_print. | |
5281 | * Makefile.in (mt-tdep.o, sh64-tdep.o, mi-cmds.o, mi-main.o): | |
5282 | Update dependencies. | |
5283 | ||
b1e6fd19 JB |
5284 | 2008-05-06 Joel Brobecker <[email protected]> |
5285 | ||
5286 | * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Treat addresses | |
5287 | pointing inside a non-executable section as function descriptors. | |
5288 | ||
02b19d84 PA |
5289 | 2008-05-06 Pedro Alves <[email protected]> |
5290 | ||
5291 | * inf-loop.c (inferior_event_handler): Run all continuations and | |
5292 | print any language change before running the breakpoint commands. | |
5293 | ||
15c1e57f JB |
5294 | 2008-05-06 Joel Brobecker <[email protected]> |
5295 | ||
5296 | * frame-unwind.c (frame_unwind_got_bytes): New function. | |
5297 | * frame-unwind.h (frame_unwind_got_bytes): Add declaration. | |
5298 | * libunwind-frame.h, libunwind-frame.c, ia64-tdep.c: Update | |
5299 | for unwinder changes. | |
5300 | ||
d14508fe DE |
5301 | 2008-05-05 Doug Evans <[email protected]> |
5302 | ||
5303 | * NEWS: Mention new /m modifier for disassemble command. | |
5304 | * cli/cli-cmds.c (print_disassembly): New function. | |
5305 | (disassemble_current_function): New function | |
5306 | (disassemble_command): Recognize /m modifier, print mixed | |
5307 | source+assembly. | |
5308 | (init_cli_cmds): Update disassemble help text. | |
5309 | ||
5142f611 MG |
5310 | 2008-05-05 Maxim Grigoriev <[email protected]> |
5311 | ||
5312 | * xtensa-tdep.c: Update for unwinder changes. | |
5313 | ||
f36bf22c AS |
5314 | 2008-05-05 Andreas Schwab <[email protected]> |
5315 | ||
5316 | Update m68k port for unwinder changes. | |
5317 | * m68k-tdep.c (m68k_frame_cache): Expect this_frame. | |
5318 | (m68k_frame_this_id, m68k_frame_prev_register): Update signature. | |
5319 | (m68k_frame_unwind): Use default_frame_sniffer. | |
5320 | (m68k_frame_sniffer): Remove. | |
5321 | (m68k_frame_base_address): Expect this_frame. | |
5322 | (m68k_dummy_id): Renamed from m68k_unwind_dummy_id. Expect | |
5323 | this_frame. | |
5324 | (m68k_gdbarch_init): Use set_gdbarch_dummy_id, | |
5325 | dwarf2_append_unwinders, and frame_unwind_append_unwinder. | |
5326 | * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Expect frame_info | |
5327 | parameter instead of pc value. | |
5328 | (m68k_linux_get_sigtramp_info, m68k_linux_sigtramp_frame_cache): | |
5329 | Expect this_frame. | |
5330 | (m68k_linux_sigtramp_frame_this_id) | |
5331 | (m68k_linux_sigtramp_frame_prev_register) | |
5332 | (m68k_linux_sigtramp_frame_sniffer): Update signature. | |
5333 | (m68k_linux_sigtramp_frame_unwind): Use | |
5334 | m68k_linux_sigtramp_frame_sniffer. | |
5335 | (m68k_linux_init_abi): Use frame_unwind_append_unwinder. | |
5336 | ||
5337 | * m68klinux-nat.c (store_register): Fix typo. | |
5338 | ||
b3dc826b PA |
5339 | 2008-05-05 Pedro Alves <[email protected]> |
5340 | ||
5341 | * infcmd.c (step_1): Put thread id on the stack to avoid possible | |
5342 | NULL dereferencing. | |
5343 | ||
6528a9ea LM |
5344 | 2008-05-05 Luis Machado <[email protected]> |
5345 | ||
5346 | * symfile.c (reread_symbols): Update objfile's entry point. | |
5347 | ||
5eeb2539 AR |
5348 | 2008-05-05 Aleksandar Ristovski <[email protected]> |
5349 | Joel Brobecker <[email protected]> | |
1f906a60 | 5350 | |
5eeb2539 AR |
5351 | * ada-lang.c: Update throughout to use symbol_matches_domain |
5352 | instead of matching the symbol domain explictly. | |
5353 | * dwarf2read.c (add_partial_symbol): Do not add new psym for | |
f36bf22c | 5354 | STRUCT_DOMAIN. Make sure you recognize c++ struct and java and ada |
5eeb2539 | 5355 | class as typedefs. See lookup_partial_symbol function. |
f36bf22c | 5356 | (new_symbol): Similar to add_partial_symbol, do not create |
5eeb2539 AR |
5357 | symbol for the typedef. See lookup_block_symbol. |
5358 | * symtab.c (symbol_matches_domain): New function, takes care | |
5359 | of dual meaning of STRUCT_DOMAIN symbol for c++, ada and java. | |
5360 | (lookup_partial_symbol): Use symbol_matches_domain to see if the | |
5361 | found psym domain matches the given domain. | |
5362 | (lookup_block_symbol): Likewise. | |
5363 | ||
e2b7ddea VP |
5364 | 2008-05-05 Vladimir Prus <[email protected]> |
5365 | ||
680b56ce AS |
5366 | * top.c (command_line_handler_continuation): Remove. |
5367 | (execute_command): Do not install the above. | |
e2b7ddea | 5368 | |
fcfb8b02 VP |
5369 | 2008-05-05 Vladimir Prus <[email protected]> |
5370 | ||
5371 | * inf-loop.c (inferior_event_handler): Call bpstat_do_action, | |
5372 | and catch all exceptions from it. | |
5373 | * top.c (command_line_handler_continuation): Don't | |
5374 | call bpstat_do_action here. | |
5375 | ||
f792889a DJ |
5376 | 2008-05-04 Daniel Jacobowitz <[email protected]> |
5377 | ||
5378 | * dwarf2read.c (struct dwarf2_cu): Add type_hash. | |
5379 | (struct die_info): Remove type. | |
5380 | (read_type_die, read_typedef, read_base_type, read_subrange_type) | |
5381 | (read_structure_type, read_enumeration_type, read_array_type) | |
5382 | (read_tag_pointer_type, read_tag_ptr_to_member_type) | |
5383 | (read_tag_reference_type, read_tag_const_type, read_tag_volatile_type) | |
5384 | (read_tag_string_type, read_subroutine_type, read_set_type) | |
5385 | (read_unspecified_type): Delete prototypes. Remove check for | |
5386 | already-loaded type. Return the new type. | |
5387 | (set_die_type): Return the new type. | |
5388 | (reset_die_and_siblings_types): Delete. | |
5389 | (load_comp_unit, load_full_comp_unit): Set type_hash. | |
5390 | (process_queue): Remove call to reset_die_and_siblings_types. | |
5391 | (process_die): Do not read most types here. Use read_type_die | |
5392 | for others. | |
5393 | (read_func_scope, dwarf2_add_member_fn): Use read_type_die. | |
5394 | (quirk_gcc_member_function_pointer): Return the new type. | |
5395 | (process_structure_scope, process_enumeration_scope): Use | |
5396 | get_die_type and read the DIE's type. | |
5397 | (read_full_die): Do not initialize die->type. | |
5398 | (tag_type_to_type): Use read_type_die. | |
5399 | (read_type_die): Check for already defined types. Return the | |
5400 | type. | |
5401 | (determine_prefix): Use get_die_type. | |
5402 | (set_die_type): Return the type. | |
5403 | (get_die_type): Take a CU argument. Check for no type_hash. | |
5404 | ||
e7030f15 DJ |
5405 | 2008-05-04 Daniel Jacobowitz <[email protected]> |
5406 | ||
5407 | * dwarf2read.c (dwarf2_ranges_read, read_partial_die): Initialize | |
5408 | locals. | |
5409 | ||
611c83ae PA |
5410 | 2008-05-04 Pedro Alves <[email protected]> |
5411 | ||
5412 | * breakpoint.c (update_breakpoints_after_exec): Delete bp_longjmp | |
5413 | and bp_longjmp_resume breakpoints. | |
5414 | (breakpoint_address_is_meaningful): Claim bp_longjmp_resume as | |
5415 | meaningful. | |
5416 | (create_longjmp_breakpoint): Don't create bp_longjmp_resume | |
5417 | breakpoints. Create bp_longjmp breakpoints as momentary | |
5418 | breakpoints. | |
5419 | (enable_longjmp_breakpoint): Delete. | |
5420 | (set_longjmp_breakpoint): New. | |
5421 | (disable_longjmp_breakpoint): Delete. | |
5422 | (delete_longjmp_breakpoint): New. | |
5423 | (set_longjmp_resume_breakpoint): Delete. | |
5424 | (set_momentary_breakpoint_at_pc): New. | |
5425 | (breakpoint_re_set_one): Don't delete bp_longjmp and | |
5426 | bp_longjmp_resume breakpoints. | |
5427 | (breakpoint_re_set): Don't create longjmp and longjmp-resume | |
5428 | breakpoints. | |
5429 | ||
5430 | * infrun.c (step_resume_breakpoint): Add comment. | |
5431 | (struct execution_control_state): Delete handling_longjmp member. | |
5432 | (init_execution_control_state). Don't clear handling_longjmp. | |
5433 | (context_switch): Don't context switch handling_longjmp. | |
5434 | (handle_inferior_event): If handling a bp_longjmp breakpoint, | |
5435 | create a bp_longjmp_resume breakpoint, and set it as current | |
5436 | step_resume_breakpoint, then step over the longjmp breakpoint. If | |
5437 | handling a bp_longjmp_resume breakpoint, don't delete the longjmp | |
5438 | breakpoint, delete the longjmp-resume breakpoint, and stop | |
5439 | stepping. | |
5440 | (currently_stepping): Remove handling_longjmp from expression. | |
5441 | (insert_step_resume_breakpoint_at_sal): Update comment. | |
5442 | (insert_longjmp_resume_breakpoint): New. | |
5443 | ||
5444 | * breakpoint.h (set_momentary_breakpoint_at_pc): Declare. | |
5445 | (enable_longjmp_breakpoint, disable_longjmp_breakpoint): Delete | |
5446 | declarations. | |
5447 | (set_longjmp_breakpoint, delete_longjmp_breakpoint): Declare. | |
5448 | (set_longjmp_resume_breakpoint): Delete declaration. | |
5449 | ||
5450 | * gdbthread.h (save_infrun_state): Remove handling_longjmp | |
5451 | parameter. | |
5452 | (load_infrun_state): Delete *handling_longjmp parameter. | |
5453 | * thread.c (save_infrun_state): Remove handling_longjmp parameter. | |
5454 | Update body. | |
5455 | (load_infrun_state): Delete *handling_longjmp parameter. Update | |
5456 | body. | |
5457 | ||
5458 | * infcmd.c (disable_longjmp_breakpoint_cleanup): Delete. | |
5459 | (delete_longjmp_breakpoint_cleanup): New. | |
5460 | (step_1): Call set_longjmp_breakpoint instead of | |
5461 | enable_longjmp_breakpoint. Use delete_longjmp_breakpoint_cleanup | |
5462 | instead of disable_longjmp_breakpoint_cleanup when making cleanup. | |
5463 | (step_1_continuation): Pass thread id in the continuation args to | |
5464 | step_once. | |
5465 | (step_once): Add thread parameter. Pass thread id the the | |
5466 | continuation. | |
5467 | ||
85cbf3d3 JK |
5468 | 2008-05-04 Jan Kratochvil <[email protected]> |
5469 | ||
5470 | Set CU BASE_ADDRESS already from partial DIEs. | |
5471 | * dwarf2read.c (read_partial_die): New variables BASE_ADDRESS and | |
5472 | BASE_ADDRESS_TYPE. Set these variables from DW_AT_LOW_PC and | |
5473 | DW_AT_ENTRY_PC. Set CU->HEADER.BASE_KNOWN and CU->HEADER.BASE_ADDRESS | |
5474 | from these variables if it was still unset. | |
5475 | ||
ff013f42 JK |
5476 | * Makefile.in: Update dependencies. |
5477 | * dwarf2read.c: Include "addrmap.h" | |
5478 | (struct dwarf2_cu): New fields RANGES_OFFSET and HAS_RANGES_OFFSET. | |
5479 | (dwarf2_ranges_read): New prototype. | |
5480 | (dwarf2_build_psymtabs_hard): Initialize and prepare PSYMTABS_ADDRMAP. | |
5481 | Add discontiguous range to PSYMTABS_ADDRMAP by DWARF2_RANGES_READ on | |
5482 | HAS_RANGES_OFFSET, otherwise add there the contiguous range. | |
5483 | (dwarf2_ranges_read): New parameter RANGES_PST, update the function | |
5484 | comment for it. Add the found ranges to RANGES_PST. New variable | |
5485 | BASEADDR, initialize it the common way. | |
5486 | (dwarf2_get_pc_bounds): Update the caller for the new parameter. | |
5487 | (read_partial_die): `DW_AT_ranges' now only sets RANGES_OFFSET and | |
5488 | HAS_RANGES_OFFSET for the later processing. | |
5489 | * objfiles.h (struct objfile): New field PSYMTABS_ADDRMAP. | |
5490 | * symtab.c: Include "addrmap.h" | |
5491 | (find_pc_sect_psymtab): Support reading the field PSYMTABS_ADDRMAP. | |
5492 | Move the psymtab locator into ... | |
5493 | (find_pc_sect_psymtab_closer): ... a new function. | |
5494 | ||
a7f1256d UW |
5495 | 2008-05-04 Ulrich Weigand <[email protected]> |
5496 | ||
5497 | * arch-utils.c (gdbarch_update_p): Use default values for | |
5498 | info.abfd and info.target_desc if they are NULL. | |
5499 | (gdbarch_from_bfd): Remove assertion. | |
5500 | (set_gdbarch_from_file): Call gdbarch_find_by_info directly, | |
5501 | using the current target description. | |
5502 | (gdbarch_info_fill): Do not use default values for info->abfd | |
5503 | and info->target_desc. | |
5504 | ||
b2de52bb JK |
5505 | 2008-05-04 Jan Kratochvil <[email protected]> |
5506 | ||
5507 | * symfile.c (reread_symbols): Reload EXEC_BFD on its change. | |
5508 | ||
515630c5 UW |
5509 | 2008-05-04 Ulrich Weigand <[email protected]> |
5510 | ||
5511 | * inferior.h (read_pc_pid, write_pc_pid): Remove. | |
5512 | * regcache.h (regcache_read_pc, regcache_write_pc): Add prototypes. | |
5513 | ||
5514 | * regcache.c (read_pc_pid): Remove, replace by ... | |
5515 | (regcache_read_pc): ... this function. | |
5516 | (write_pc_pid): Remove, replace by ... | |
5517 | (regcache_write_pc): ... this function. | |
5518 | (read_pc, write_pc): Update. | |
5519 | ||
5520 | * infrun.c (displaced_step_prepare): Replace read_pc_pid and | |
5521 | write_pc_pid by regcache_read_pc and regcache_write_pc. | |
5522 | (displaced_step_fixup): Likewise. | |
5523 | (resume): Likewise. Use regcache arch instead of current_gdbarch. | |
5524 | (prepare_to_proceed): Likewise. | |
5525 | (proceed): Likewise. | |
5526 | (adjust_pc_after_break): Likewise. | |
5527 | (handle_inferior_event): Likewise. | |
5528 | ||
5529 | * linux-nat.c (cancel_breakpoint): Likewise. | |
5530 | * linux-thread-db.c (check_event): Likewise. | |
5531 | * aix-thread.c (aix_thread_wait): Likewise. | |
5532 | * tracepoint.c (trace_dump_command): Likewise. | |
5533 | ||
ebd3bcc1 JK |
5534 | 2008-05-04 Jan Kratochvil <[email protected]> |
5535 | ||
5536 | * dwarf2loc.c (dwarf_expr_frame_base): Error out on missing | |
5537 | SYMBOL_LOCATION_BATON. | |
5538 | ||
c47ffbe3 VP |
5539 | 2008-05-04 Vladimir Prus <[email protected]> |
5540 | ||
f78bff48 VP |
5541 | * target.h (struct target_ops): New field to_auxv_parse. |
5542 | * auxv.c (default_auxv_parse): New, renamed from previous | |
5543 | target_auxv_parse. | |
5544 | (target_auxv_parse): Try to call target method. Fallback to | |
5545 | default_auxv_parse if not found. | |
5546 | * procfs.c (procfs_auxv_parse): New. | |
5547 | (init_procfs_ops): On Solaris, in 64-bit mode, install | |
5548 | procfs_auxv_parse. | |
c47ffbe3 | 5549 | |
35076fa0 AN |
5550 | 2008-05-03 Adam Nemet <[email protected]> |
5551 | ||
5552 | * symfile.c (add_symbol_file_command): Use paddress rather than | |
5553 | hex_string to print the address. | |
5554 | ||
5b197912 UW |
5555 | 2008-05-03 Ulrich Weigand <[email protected]> |
5556 | ||
5557 | * rs6000-tdep.c (rs6000_frame_this_id): If info->base is 0, | |
5558 | return the null frame ID to terminate the backtrace. | |
5559 | ||
4a7622d1 UW |
5560 | 2008-05-03 Ulrich Weigand <[email protected]> |
5561 | ||
5562 | * rs6000-tdep.c: Do not include "rs6000-tdep.h". | |
5563 | (rs6000_find_toc_address_hook): Move to rs6000-aix-tdep.c. | |
5564 | (SIG_FRAME_PC_OFFSET): Likewise. | |
5565 | (SIG_FRAME_LR_OFFSET): Likewise. | |
5566 | (SIG_FRAME_FP_OFFSET): Likewise. | |
5567 | (rs6000_push_dummy_call): Likewise. | |
5568 | (rs6000_return_value): Likewise. | |
5569 | (rs6000_convert_from_func_ptr_addr): Likewise. | |
5570 | (branch_dest, rs6000_software_single_step): Likewise. | |
5571 | (deal_with_atomic_sequence): Rename to ... | |
5572 | (ppc_deal_with_atomic_sequence): ... this. Adapt all callers. | |
5573 | Do not call branch_dest; inline required parts of that function. | |
5574 | (rs6000_skip_trampoline_code): Replace DEPRECATED_SYMBOL_NAME | |
5575 | with SYMBOL_LINKAGE_NAME. | |
5576 | (struct reg, regsize): Delete. | |
5577 | (read_memory_addr): Delete; inline into callers. | |
5578 | (rs6000_skip_prologue): Move after skip_prologue. | |
5579 | (skip_prologue): Remove prototype. | |
5580 | (rs6000_gdbarch_init): Remove sysv_abi variable; perform all | |
5581 | initialization as if this variable were true. Do not install | |
5582 | ppc64_sysv_abi_adjust_breakpoint_address. | |
5583 | ||
5584 | * rs6000-aix-tdep.c: Include "gdb_assert.h", "gdbtypes.h", | |
5585 | "gdbcore.h", "target.h", "value.h", "infcall.h", "objfiles.h", | |
5586 | and "breakpoint.h". | |
5587 | (rs6000_find_toc_address_hook): Move here from rs6000-tdep.c. | |
5588 | (SIG_FRAME_PC_OFFSET): Likewise. | |
5589 | (SIG_FRAME_LR_OFFSET): Likewise. | |
5590 | (SIG_FRAME_FP_OFFSET): Likewise. | |
5591 | (rs6000_push_dummy_call): Likewise. | |
5592 | (rs6000_return_value): Likewise. | |
5593 | (rs6000_convert_from_func_ptr_addr): Likewise. | |
5594 | (branch_dest, rs6000_software_single_step): Likewise. Replace | |
5595 | tdep->text_segment_base by AIX_TEXT_SEGMENT_BASE. | |
5596 | (rs6000_aix_init_osabi): Install rs6000_push_dummy_call, | |
5597 | rs6000_return_value, and rs6000_convert_from_func_ptr_addr. | |
5598 | Call set_gdbarch_long_double_bit and set_gdbarch_frame_red_zone_size. | |
5599 | Set tdep->lr_frame_offset. Do not set tdep->text_segment_base. | |
5600 | ||
5601 | * rs6000-tdep.h (rs6000_software_single_step): Remove prototype. | |
5602 | (AIX_TEXT_SEGMENT_BASE): New macro. | |
5603 | * rs6000-nat.c (exec_one_dummy_insn): Replace tdep->text_segment_base | |
5604 | by AIX_TEXT_SEGMENT_BASE. | |
5605 | ||
5606 | * ppc-tdep.h (ppc_deal_with_atomic_sequence): Add prototype. | |
5607 | (struct gdbarch_tdep): Remove text_segment_base member. | |
5608 | * ppc-linux-tdep.c (ppc_linux_init_abi): On 64-bit, install | |
5609 | ppc64_sysv_abi_adjust_breakpoint_address. | |
5610 | ||
5611 | * Makefile.in (rs6000-tdep.o): Update dependencies. | |
5612 | (rs6000-aix-tdep.o): Likewise. | |
5613 | ||
938f5214 TJB |
5614 | 2008-05-03 Luis Machado <[email protected]> |
5615 | Thiago Jung Bauermann <[email protected]> | |
5616 | ||
5617 | * cli/cli-decode.c (lookup_cmd_1): Fix indentation. | |
5618 | * doublest.c (convert_typed_floating): Fix typo in comment. | |
5619 | * dwarf2-frame.c (dwarf2_frame_cache): Likewise. | |
5620 | * frame-unwind.h (frame_sniffer_ftype): Likewise. | |
5621 | * frame.c (frame_unwind_address_in_block): Likewise. | |
5622 | * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Likewise. | |
5623 | * symtab.h (struct symbol): Likewise. | |
5624 | * tramp-frame.h (struct trad_frame_cache): Likewise. | |
5625 | * value.c (allocate_repeat_value): Likewise. | |
5626 | ||
0b02b92d UW |
5627 | 2008-05-03 Ulrich Weigand <[email protected]> |
5628 | ||
5629 | * infrun.c (handle_inferior_event): Do not insert breakpoints at | |
5630 | TARGET_WAITKIND_LOADED events during startup (i.e. in the shell). | |
5631 | ||
d705c43c PA |
5632 | 2008-05-03 Pedro Alves <[email protected]> |
5633 | ||
5634 | * parse.c (parse_exp_in_context): Don't override | |
5635 | expression_context_pc if get_selected_block returned a valid | |
5636 | block. | |
5637 | ||
d6350901 DJ |
5638 | 2008-05-03 Daniel Jacobowitz <[email protected]> |
5639 | ||
5640 | * alpha-tdep.h (ALPHA_REGISTER_BYTES): Delete. | |
5641 | * arm-tdep.h (STATUS_REGISTER_SIZE): Delete. | |
5642 | * breakpoint.c (args_for_catchpoint_enable, current_exception_event): | |
5643 | Delete. | |
5644 | * c-typeprint.c (c_type_print_base): Delete handling of template | |
5645 | instantiations. | |
5646 | * cp-support.h (METHOD_PTR_IS_VIRTUAL, METHOD_PTR_FROM_VOFFSET) | |
5647 | (METHOD_PTR_TO_VOFFSET): Delete. | |
5648 | * defs.h (QUIT_FIXME): Delete. | |
5649 | * f-lang.h (DEFAULT_DOTMAIN_NAME_IN_MF77, DEFAULT_MAIN_NAME_IN_MF77) | |
5650 | (DEFAULT_DOTMAIN_NAME_IN_XLF_BUGGY, DEFAULT_DOTMAIN_NAME_IN_XLF): Delete. | |
5651 | * gdbtypes.h (struct cplus_struct_type): Delete is_inlined, | |
5652 | ninstantiations, and instantiations. | |
5653 | (TYPE_INSTANTIATIONS, TYPE_NINSTANTIATIONS, TYPE_INSTANTIATION) | |
5654 | (TYPE_FN_FIELD_INLINED): Delete. | |
5655 | * srec.h (SREC_BINARY): Delete. | |
5656 | * symtab.c (symbol_init_demangled_name): Delete. | |
5657 | * symtab.h (SYMBOL_INIT_DEMANGLED_NAME, symbol_init_demangled_name) | |
5658 | (SYMBOL_OBJFILE, struct exception_event_record, CURRENT_EXCEPTION_KIND) | |
5659 | (CURRENT_EXCEPTION_CATCH_SAL, CURRENT_EXCEPTION_CATCH_LINE) | |
5660 | (CURRENT_EXCEPTION_CATCH_FILE, CURRENT_EXCEPTION_CATCH_PC) | |
5661 | (CURRENT_EXCEPTION_THROW_SAL, CURRENT_EXCEPTION_THROW_LINE) | |
5662 | (CURRENT_EXCEPTION_THROW_FILE, CURRENT_EXCEPTION_THROW_PC): Delete. | |
5663 | * target.h (enum thread_control_capabilities): Delete tc_switch. | |
5664 | (target_can_switch_threads): Delete. | |
5665 | ||
30510692 DJ |
5666 | 2008-05-03 Daniel Jacobowitz <[email protected]> |
5667 | ||
5668 | * Makefile.in (objfiles.o): Update. | |
5669 | * exec.c (exec_set_section_address): Support p->addr != 0. | |
5670 | * objfiles.c (objfile_relocate): Update exec_ops section | |
5671 | addresses. | |
5672 | * symfile.c (place_section): Move exec_set_section_address call... | |
5673 | (default_symfile_offsets): ...to here. | |
5674 | ||
7284e1be UW |
5675 | 2008-05-03 Ulrich Weigand <[email protected]> |
5676 | ||
5677 | * Makefile.in (ppc_linux_tdep_h): New macro. | |
5678 | (powerpc_32l_c, powerpc_altivec32_c, powerpc_altivec32l_c): Likewise. | |
5679 | (powerpc_64l_c, powerpc_altivec64_c, powerpc_altivec64l_c): Likewise. | |
5680 | (powerpc_e500l_c): Likewise. | |
5681 | (ppc-linux-nat.o): Update dependencies. | |
5682 | (ppc-linux-tdep.o): Update dependencies. | |
5683 | (rs6000-tdep.o): Update dependencies. | |
5684 | ||
5685 | * ppc-tdep.h (ppc_linux_memory_remove_breakpoint): Remove. | |
5686 | (ppc_linux_svr4_fetch_link_map_offsets): Remove. | |
5687 | (ppc_linux_gregset, ppc_linux_fpregset): Move to ppc-linux-tdep.h | |
5688 | (ppc_supply_reg, ppc_collect_reg): Add prototypes. | |
5689 | (tdesc_powerpc_e500): Remove. | |
5690 | ||
5691 | * rs6000.c: Include "features/rs6000/powerpc-altivec32.c" | |
5692 | and "features/rs6000/powerpc-altivec64.c". | |
5693 | (ppc_supply_reg, ppc_collect_reg): Make global. | |
5694 | (variants): Use tdesc_powerpc_32 for "powerpc" and | |
5695 | tdesc_powerpc_altivec64 for "powerpc64". | |
5696 | (_initialize_rs6000_tdep): Initialize AltiVec descriptions. | |
5697 | ||
5698 | * ppc-linux-tdep.h: New file. | |
5699 | ||
5700 | * ppc-linux-tdep.c: Include "ppc-linux-tdep.c". | |
5701 | Include "features/rs6000/powerpc-32l.c". | |
5702 | Include "features/rs6000/powerpc-altivec32l.c". | |
5703 | Include "features/rs6000/powerpc-64l.c". | |
5704 | Include "features/rs6000/powerpc-altivec64l.c". | |
5705 | Include "features/rs6000/powerpc-e500l.c". | |
5706 | (ppc_linux_supply_gregset): New function. | |
5707 | (ppc_linux_collect_gregset): Handle orig_r3 and trap registers. | |
5708 | (ppc32_linux_gregset): Use ppc_linux_supply_gregset. | |
5709 | (ppc64_linux_gregset): Likewise. | |
5710 | (ppc_linux_sigtramp_cache): Handle orig_r3 and trap registers. | |
5711 | (ppc_linux_trap_reg_p): New function. | |
5712 | (ppc_linux_write_pc): New function. | |
5713 | (ppc_linux_core_read_description): New function. | |
5714 | (ppc_linux_init_abi): Install ppc_linux_write_pc and | |
5715 | ppc_linux_core_read_description. Install orig_r3 and trap | |
5716 | registers if present in the target description. | |
5717 | (_initialize_ppc_linux_tdep): Initialize Linux target descriptions. | |
5718 | ||
5719 | * ppc-linux-nat.c: Include "ppc-linux-tdep.h". | |
5720 | (PT_ORIG_R3, PT_TRAP): Define if necessary. | |
5721 | (ppc_register_u_addr): Handle orig_r3 and trap registers. | |
5722 | (fetch_ppc_registers): Likewise. | |
5723 | (store_ppc_registers): Likewise. | |
5724 | (store_register): Likewise. | |
5725 | (ppc_linux_read_description): Check whether AltiVec is supported. | |
5726 | Check whether inferior is 32-bit or 64-bit. Return the appropriate | |
5727 | Linux target description. | |
5728 | ||
5729 | * features/Makefile (WHICH): Use rs6000/powerpc-32l and | |
5730 | rs6000/powerpc-altivec32l instead of rs6000/powerpc-32. | |
5731 | Use rs6000/powerpc-64l and rs6000/powerpc-altivec64l instead | |
5732 | of rs6000/powerpc-64. Use rs6000/powerpc-e500l instead of | |
5733 | rs6000/powerpc-e500. Update -expedite variables accordingly. | |
5734 | ||
5735 | * features/rs6000/power-spe.xml: Use regnum 73 for "acc". | |
5736 | * features/rs6000/powerpc-32.xml: Do not include power-altivec.xml. | |
5737 | * features/rs6000/powerpc-64.xml: Do not include power-altivec.xml. | |
5738 | * features/rs6000/powerpc-e500.c: Regenerate. | |
5739 | * features/rs6000/powerpc-32.c: Regenerate. | |
5740 | * features/rs6000/powerpc-64.c: Regenerate. | |
5741 | ||
5742 | * features/rs6000/power-linux.xml: New file. | |
5743 | * features/rs6000/power64-linux.xml: New file. | |
5744 | * features/rs6000/powerpc-32l.xml: New file. | |
5745 | * features/rs6000/powerpc-altivec32l.xml: New file. | |
5746 | * features/rs6000/powerpc-64l.xml: New file. | |
5747 | * features/rs6000/powerpc-altivec64l.xml: New file. | |
5748 | * features/rs6000/powerpc-e500l.xml: New file. | |
5749 | * features/rs6000/powerpc-32l.c: New (generated) file. | |
5750 | * features/rs6000/powerpc-altivec32l.c: New (generated) file. | |
5751 | * features/rs6000/powerpc-64l.c: New (generated) file. | |
5752 | * features/rs6000/powerpc-altivec64l.c: New (generated) file. | |
5753 | * features/rs6000/powerpc-e500l.xml: New (generated) file. | |
5754 | ||
5755 | * regformats/reg-ppc.dat: Remove. | |
5756 | * regformats/reg-ppc64.dat: Remove. | |
5757 | * regformats/rs6000/powerpc-32.dat: Remove. | |
5758 | * regformats/rs6000/powerpc-64.dat: Remove. | |
5759 | * regformats/rs6000/powerpc-e500.dat: Remove. | |
5760 | * regformats/rs6000/powerpc-32l.dat: New (generated) file. | |
5761 | * regformats/rs6000/powerpc-altivec32l.dat: New (generated) file. | |
5762 | * regformats/rs6000/powerpc-64l.dat: New (generated) file. | |
5763 | * regformats/rs6000/powerpc-altivec64l.dat: New (generated) file. | |
5764 | * regformats/rs6000/powerpc-e500l.dat: New (generated) file. | |
5765 | ||
063bfe2e VP |
5766 | 2008-05-03 Pedro Alves <[email protected]> |
5767 | ||
5768 | * thread.c (delete_thread): Call observer_notify_thread_exit. | |
680b56ce AS |
5769 | * mi/mi-interp.c (mi_interpreter_init): Register mi_thread_exit as |
5770 | thread_exit observer. | |
5771 | (mi_thread_exit): New. | |
063bfe2e | 5772 | |
f132ba9d TJB |
5773 | 2008-05-03 Thiago Jung Bauermann <[email protected]> |
5774 | ||
5775 | * breakpoint.c (create_exception_catchpoint): Remove prototype | |
5776 | for already deleted function. | |
5777 | * breakpoint.h (ep_is_exception_catchpoint): Likewise. | |
5778 | * frame.h (show_stack_frame): Remove prototype. | |
5779 | * stack.c (show_stack_frame): Remove empty, unused function. | |
5780 | * source.c (symtab_to_fullname, print_source_lines): Small fix | |
5781 | in comment. | |
5782 | * value.c (show_values): Update comments to mention "show values" | |
5783 | command instead of "info history". | |
5784 | ||
bccdca4a UW |
5785 | 2008-05-02 Ulrich Weigand <[email protected]> |
5786 | ||
5787 | * linespec.c: Include "target.h". | |
5788 | (minsym_found): Handle minimal symbols pointing to function | |
5789 | descriptors. Use find_function_start_pc. | |
5790 | * minsyms.c (msymbol_objfile): New function. | |
5791 | * parse.c (write_exp_msymbol): Handle minimal symbols pointing | |
5792 | to function descriptors. | |
5793 | * symtab.c (fixup_section): Only use minimal symbol at the same | |
5794 | address to determine section of a symbol. | |
5795 | (find_function_start_pc): New function. | |
5796 | (find_function_start_sal): Use it. | |
5797 | * symtab.h (msymbol_objfile): Add prototype. | |
5798 | (find_function_start_pc): Likewise. | |
5799 | * value.c: Include "objfiles.h". | |
5800 | (value_fn_field): Handle minimal symbols pointing to function | |
680b56ce | 5801 | descriptors. |
bccdca4a UW |
5802 | * Makefile.in (linespec.o): Update dependencies. |
5803 | (value.o): Likewise. | |
5804 | ||
de4d072f JB |
5805 | 2008-05-02 Joel Brobecker <[email protected]> |
5806 | ||
5807 | * ada-lang.c (unwrap_value): Handle the case where the "F" field | |
5808 | inside a PAD type is a bitfield. | |
5809 | ||
93d4208d UW |
5810 | 2008-05-02 Ulrich Weigand <[email protected]> |
5811 | ||
5812 | * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Handle | |
5813 | TYPE_CODE_BOOL and TYPE_CODE_CHAR the same as TYPE_CODE_INT. | |
5814 | Handle TYPE_CODE_REF the same as TYPE_CODE_PTR. | |
5815 | Handle TYPE_CODE_METHOD the same as TYPE_CODE_FUNC. | |
5816 | Allow typedefs when checking for function pointer arguments. | |
5817 | Right-align small structs passed on the stack. | |
5818 | (ppc64_sysv_abi_return_value): Handle TYPE_CODE_BOOL and | |
5819 | TYPE_CODE_CHAR the same as TYPE_CODE_INT. | |
5820 | Handle TYPE_CODE_REF the same as TYPE_CODE_PTR. | |
5821 | ||
60c5725c DJ |
5822 | 2008-05-02 Daniel Jacobowitz <[email protected]> |
5823 | ||
5824 | * Makefile.in (arm-tdep.o): Update. | |
5825 | * arm-tdep.c (arm_objfile_data_key, struct arm_mapping_symbol) | |
5826 | (struct arm_per_objfile, arm_compare_mapping_symbols): New. | |
5827 | (arm_pc_is_thumb): Use mapping symbols. | |
5828 | (arm_objfile_data_cleanup, arm_record_special_symbol): New. | |
5829 | (arm_gdbarch_init): Call set_gdbarch_record_special_symbol. | |
5830 | (_initialize_arm_tdep): Initialize arm_objfile_data_key. | |
5831 | * elfread.c (elf_symtab_read): Use gdbarch_record_special_symbol. | |
5832 | * gdbarch.sh: Add record_special_symbol. | |
5833 | * gdbarch.c, gdbarch.h: Regenerated. | |
5834 | * objfiles.c (struct objfile_data): Add cleanup member. | |
5835 | (register_objfile_data_with_cleanup): New function, from | |
5836 | register_objfile_data. | |
5837 | (register_objfile_data): Use it. | |
5838 | (objfile_free_data): Call clear_objfile_data. | |
5839 | (clear_objfile_data): Call cleanup functions. | |
5840 | * objfiles.h (register_objfile_data_with_cleanup): Declare. | |
5841 | ||
574dffa2 DJ |
5842 | 2008-05-02 Daniel Jacobowitz <[email protected]> |
5843 | ||
5844 | * objfiles.c (init_entry_point_info): Handle shared libraries. | |
5845 | ||
2c404490 DJ |
5846 | 2008-05-02 Daniel Jacobowitz <[email protected]> |
5847 | ||
5848 | * arm-tdep.c (arm_prologue_this_id): Compare pc, not func, to | |
5849 | lowest_pc. | |
5850 | ||
237fc4c9 PA |
5851 | 2008-05-02 Jim Blandy <[email protected]> |
5852 | Pedro Alves <[email protected]> | |
5853 | ||
5854 | Implement displaced stepping. | |
5855 | ||
5856 | * gdbarch.sh (max_insn_length): New 'variable'. | |
5857 | (displaced_step_copy, displaced_step_fixup) | |
5858 | (displaced_step_free_closure, displaced_step_location): New | |
5859 | functions. | |
5860 | (struct displaced_step_closure): Add forward declaration. | |
5861 | * gdbarch.c, gdbarch.h: Regenerated. | |
5862 | ||
5863 | * arch-utils.c: #include "objfiles.h". | |
5864 | (simple_displaced_step_copy_insn) | |
5865 | (simple_displaced_step_free_closure) | |
5866 | (displaced_step_at_entry_point): New functions. | |
5867 | * arch-utils.h (simple_displaced_step_copy_insn) | |
5868 | (simple_displaced_step_free_closure) | |
5869 | (displaced_step_at_entry_point): New prototypes. | |
5870 | ||
5871 | * i386-tdep.c (I386_MAX_INSN_LEN): Rename to... | |
5872 | (I386_MAX_MATCHED_INSN_LEN): ... this. | |
5873 | (i386_absolute_jmp_p, i386_absolute_call_p) | |
5874 | (i386_ret_p, i386_call_p, i386_breakpoint_p, i386_syscall_p) | |
5875 | (i386_displaced_step_fixup): New functions. | |
5876 | (struct i386_insn, i386_match_insn): Update. | |
5877 | (i386_gdbarch_init): Set gdbarch_max_insn_length. | |
5878 | * i386-tdep.h (I386_MAX_INSN_LEN): New. | |
5879 | (i386_displaced_step_fixup): New prototype. | |
5880 | * i386-linux-tdep.c (i386_linux_init_abi): Include "arch-utils.h". | |
5881 | Register gdbarch_displaced_step_copy, | |
5882 | gdbarch_displaced_step_fixup, gdbarch_displaced_step_free_closure, | |
5883 | and gdbarch_displaced_step_location functions. | |
5884 | ||
5885 | * infrun.c (debug_displaced): New variable. | |
5886 | (show_debug_displaced): New function. | |
5887 | (struct displaced_step_request): New struct. | |
5888 | (displaced_step_request_queue, displaced_step_ptid) | |
5889 | (displaced_step_gdbarch, displaced_step_closure) | |
5890 | (displaced_step_original, displaced_step_copy) | |
5891 | (displaced_step_saved_copy, can_use_displaced_stepping): New | |
5892 | variables. | |
5893 | (show_can_use_displaced_stepping, use_displaced_stepping) | |
5894 | (displaced_step_clear, cleanup_displaced_step_closure) | |
5895 | (displaced_step_dump_bytes, displaced_step_prepare) | |
5896 | (displaced_step_clear_cleanup, write_memory_ptid) | |
5897 | (displaced_step_fixup): New functions. | |
5898 | (resume): Call displaced_step_prepare. | |
5899 | (proceed): Call read_pc once, and remember the value. If using | |
5900 | displaced stepping, don't remove breakpoints. | |
5901 | (handle_inferior_event): Call displaced_step_fixup. Add some | |
5902 | debugging output. When we try to step over a breakpoint, but get | |
5903 | a signal to deliver to the thread instead, ensure the step-resume | |
5904 | breakpoint is actually inserted. If a thread hop is needed, and | |
5905 | displaced stepping is enabled, don't remove breakpoints. | |
5906 | (init_wait_for_inferior): Call displaced_step_clear. | |
5907 | (_initialize_infrun): Add "set debug displaced" command. Add | |
5908 | "maint set can-use-displaced-stepping" command. Clear | |
5909 | displaced_step_ptid. | |
5910 | * inferior.h (debug_displaced): Declare variable. | |
5911 | (displaced_step_dump_bytes): Declare function. | |
5912 | ||
5913 | * Makefile.in (arch-utils.o, i386-linux-tdep.o): Update | |
5914 | dependencies. | |
5915 | ||
0428b8f5 DJ |
5916 | 2008-05-02 Daniel Jacobowitz <[email protected]> |
5917 | ||
5918 | * arm-tdep.c (arm_mode_strings, arm_fallback_mode_string) | |
5919 | (arm_force_mode_string, arm_show_fallback_mode) | |
5920 | (arm_show_force_mode): New. | |
5921 | (arm_pc_is_thumb): Honor fallback-mode and force-mode. Use | |
5922 | arm_frame_is_thumb. | |
5923 | (_initialize_arm_tdep): Add "set arm fallback-mode" | |
5924 | and "set arm force-mode". | |
5925 | * NEWS: Document new commands. | |
5926 | ||
d01a8610 AS |
5927 | 2008-05-02 Andrew Stubbs <[email protected]> |
5928 | ||
5929 | * main.h (batch_silent): Declare. | |
5930 | * event-top.c: Include main.h. | |
5931 | (gdb_setup_readline): Remove extern batch_silent declaration. | |
5932 | * infrun.c (normal_stop): Don't print source location when running in | |
5933 | --batch-silent mode. | |
5934 | * Makefile.in (event-top.o): Add main.h dependency. | |
5935 | ||
5009afc5 AS |
5936 | 2008-05-02 Andreas Schwab <[email protected]> |
5937 | ||
5938 | * target.h (struct target_ops): Add | |
5939 | to_watchpoint_addr_within_range. | |
5940 | (target_watchpoint_addr_within_range): New function. | |
5941 | * target.c (update_current_target): Inherit | |
5942 | to_watchpoint_addr_within_range, defaulting to | |
5943 | default_watchpoint_addr_within_range. | |
5944 | (default_watchpoint_addr_within_range): New function. | |
5945 | (debug_to_watchpoint_addr_within_range): New function. | |
5946 | (setup_target_debug): Set to_watchpoint_addr_within_range. | |
5947 | * ppc-linux-nat.c (ppc_linux_watchpoint_addr_within_range): | |
5948 | New function. | |
5949 | (_initialize_ppc_linux_nat): Set to_watchpoint_addr_within_range. | |
5950 | * breakpoint.c (watchpoints_triggered): Use | |
5951 | target_watchpoint_addr_within_range. | |
5952 | ||
a15c5c83 PA |
5953 | 2008-05-01 Pedro Alves <[email protected]> |
5954 | ||
5955 | * configure.tgt: Add i[34567]86-*-dicos* and x86_64-*-dicos*. | |
5956 | (i[34567]86-*-dicos*, x86_64-*-dicos*): | |
5957 | Set gdb_osabi to GDB_OSABI_DICOS. | |
5958 | ||
5959 | * defs.h (enum gdb_osabi): Add GDB_OSABI_DICOS. | |
5960 | * osabi.c (gdb_osabi_name): Add "DICOS". | |
5961 | ||
5962 | * i386-dicos-tdep.c: New file. | |
5963 | ||
5964 | * Makefile.in (ALL_TARGET_OBS): Add i386-dicos-tdep.o. | |
5965 | (ALLDEPFILES): Add i386-dicos-tdep.c. | |
5966 | (i386-dicos-tdep.o): New rule. | |
5967 | ||
728c8f58 PA |
5968 | 2008-05-01 Pedro Alves <[email protected]> |
5969 | ||
5970 | * linux-nat.c (linux_nat_switch_fork): Reinit GDB's thread list | |
5971 | and register the fork's PTID as a thread. | |
5972 | ||
604133b5 AR |
5973 | 2008-05-01 Aleksandar Ristovski <[email protected]> |
5974 | ||
5975 | PR gdb/1665 | |
5976 | * breakpoint.c (create_breakpoint): Add breakpoint_ops argument and | |
5977 | assign its value to the breakpoint created. | |
5978 | (create_breakpoints): Add breakpoint_ops argument and pass it | |
5979 | to create_breakpoint call. | |
5980 | (break_command_really): Add breakpoint_ops argument and pass/assign | |
5981 | appropriately. | |
5982 | (break_command_1): Pass NULL as ops argument. | |
5983 | (set_breakpoint): Pass NULL as ops argument. | |
5984 | (print_one_exception_catchpoint): Print <PENDING> if no loc available. | |
5985 | (handle_gnu_v3_exceptions): Call generic breakpoint code to insert | |
5986 | catch and throw catchpoints. | |
5009afc5 | 5987 | |
1f906a60 | 5988 | 2008-05-01 Aleksandar Ristovski <[email protected]> |
1cded358 AR |
5989 | |
5990 | PR gdb/2343 | |
5991 | * corelow.c (core_open): Use gdbarch_target_signal_from_host to | |
5992 | translate signal numeric value from the target to GDB's enum | |
5993 | target_signal. | |
5994 | * gdbarch.c, gdbarch.h: Regenerated. | |
5995 | * gdbarch.sh: Added two new functions target_signal_from_host and | |
5996 | target_signal_to_host. | |
680b56ce | 5997 | * target.h (default_target_signal_from_host, |
1cded358 AR |
5998 | default_target_signal_to_host): New functions - declarations. |
5999 | * signals/signals.c (struct gdbarch): New declaration. | |
6000 | (default_target_signal_to_host, default_target_signal_from_host): New | |
6001 | functions. | |
6002 | ||
ed5e9466 DJ |
6003 | 2008-05-01 Daniel Jacobowitz <[email protected]> |
6004 | Pedro Alves <[email protected]> | |
6005 | ||
6006 | Based on work by Jan Kratochvil <[email protected]> and Jeff | |
6007 | Johnston <[email protected]>. | |
6008 | ||
6009 | * NEWS: Mention attach to stopped process fix. | |
6010 | * infcmd.c (detach_command, disconnect_command): Discard the thread | |
6011 | list. | |
6012 | * infrun.c (handle_inferior_event): Do not ignore non-SIGSTOP while | |
6013 | attaching. Use signal_stop_state. | |
6014 | (signal_stop_state): Check stop_soon. | |
6015 | * linux-nat.c (kill_lwp): Declare earlier. | |
6016 | (pid_is_stopped, linux_nat_post_attach_wait): New. | |
6017 | (lin_lwp_attach_lwp): Use linux_nat_post_attach_wait. Update | |
6018 | comments. | |
6019 | (linux_nat_attach): Use linux_nat_post_attach_wait. | |
6020 | (detach_callback, linux_nat_detach): Improve handling for signalled | |
6021 | processes. | |
6022 | (linux_nat_pid_to_str): Always print out the LWP ID if it differs | |
6023 | from the process ID. | |
6024 | * Makefile.in (infcmd.o): Update. | |
6025 | ||
b39cc962 DJ |
6026 | 2008-05-01 Daniel Jacobowitz <[email protected]> |
6027 | ||
6028 | * arm-linux-tdep.h (ARM_CPSR_REGNUM): Delete definition. | |
6029 | * arm-tdep.c (arm_frame_is_thumb): New. | |
6030 | (arm_pc_is_thumb): Clarify comment. | |
6031 | (thumb_analyze_prologue): Remove PC special case. | |
6032 | (thumb_scan_prologue): Take a block_addr argument. Use it for | |
6033 | find_pc_partial_function. Remove unused variables. | |
6034 | (arm_scan_prologue): Use arm_frame_is_thumb. Use the block address | |
6035 | for find_pc_partial_function. Remove PC special case. | |
6036 | (arm_prologue_prev_register): Add special handling for PC and CPSR. | |
6037 | (arm_dwarf2_prev_register, arm_dwarf2_frame_init_reg): New. | |
6038 | (arm_get_next_pc): Use arm_frame_is_thumb. | |
6039 | (arm_write_pc): Use CPSR_T instead of 0x20. | |
6040 | (arm_gdbarch_init): Call dwarf2_frame_set_init_reg. | |
6041 | * arm-tdep.h (enum gdb_regnum): Add ARM_CPSR_REGNUM. | |
6042 | (CPSR_T): Define. | |
6043 | * dwarf2-frame.c (dwarf2_frame_prev_register): Handle | |
6044 | DWARF2_FRAME_REG_FN. | |
6045 | * dwarf2-frame.h (enum dwarf2_frame_reg_rule): Add | |
6046 | DWARF2_FRAME_REG_FN. | |
6047 | (struct dwarf2_frame_state_reg): Add FN to loc union. | |
6048 | ||
944f08ab JB |
6049 | 2008-05-01 Nick Roberts <[email protected]> |
6050 | ||
6051 | * exec.c (print_section_info): Add missing '\n'. | |
6052 | ||
cfc01461 VP |
6053 | 2008-05-01 Vladimir Prus <[email protected]> |
6054 | ||
6055 | * thread.c (add_thread): Move observer call to ... | |
680b56ce | 6056 | (add_thread_silent): ... here. |
cfc01461 | 6057 | |
1af5d7ce UW |
6058 | 2008-04-30 Ulrich Weigand <[email protected]> |
6059 | ||
6060 | * rs6000-tdep.c: Update for unwinder changes. | |
6061 | * ppcobsd-tdep.c: Likewise. | |
6062 | ||
f089c433 UW |
6063 | 2008-04-30 Ulrich Weigand <[email protected]> |
6064 | ||
6065 | * s390-tdep.c: Update for unwinder changes. | |
6066 | ||
8d998b8f UW |
6067 | 2008-04-30 Ulrich Weigand <[email protected]> |
6068 | ||
6069 | * spu-tdep.c: Update for unwinder changes. | |
6070 | ||
5366653e DJ |
6071 | 2008-04-30 Daniel Jacobowitz <[email protected]> |
6072 | ||
6073 | * hppanbsd-tdep.c, m68kbsd-tdep.c, mn10300-linux-tdep.c, | |
6074 | ppc-linux-tdep.c, ppcnbsd-tdep.c, sparc-linux-tdep.c, | |
6075 | sparc64-linux-tdep.c: Update for unwinder changes. | |
6076 | ||
b8a22b94 DJ |
6077 | 2008-04-30 Daniel Jacobowitz <[email protected]> |
6078 | ||
6079 | * mipsnbsd-tdep.c, mips64obsd-tdep.c, mips-linux-tdep.c: Update | |
6080 | for unwinder changes. | |
6081 | * mips-tdep.c: Likewise. | |
6082 | (mips_stub_frame_cache): Unwind the ABI stack pointer, not the | |
6083 | raw one. | |
6084 | ||
a262aec2 DJ |
6085 | 2008-04-30 Daniel Jacobowitz <[email protected]> |
6086 | ||
6087 | * arm-linux-tdep.c, arm-tdep.c, armobsd-tdep.c: Update for | |
6088 | unwinder changes. | |
6089 | ||
10458914 DJ |
6090 | 2008-04-30 Daniel Jacobowitz <[email protected]> |
6091 | ||
6092 | Update i386 and amd64 ports for unwinder changes. | |
6093 | ||
6094 | * amd64-tdep.c (amd64_frame_cache): Expect this_frame. | |
6095 | (amd64_frame_this_id, amd64_frame_prev_register): Update signature. | |
6096 | (amd64_frame_unwind): Use default_frame_sniffer. | |
6097 | (amd64_frame_sniffer): Delete. | |
6098 | (amd64_sigtramp_frame_cache): Expect this_frame. | |
6099 | (amd64_sigtramp_frame_this_id, amd64_sigtramp_frame_prev_register) | |
6100 | (amd64_sigtramp_frame_sniffer): Update signature. | |
6101 | (amd64_sigtramp_frame_unwind): Add amd64_sigtramp_frame_sniffer. | |
6102 | (amd64_frame_base_address): Expect this_frame. | |
6103 | (amd64_dummy_id): Renamed from amd64_unwind_dummy_id. Expect | |
6104 | this_frame. | |
6105 | (amd64_init_abi): Use set_gdbarch_dummy_id and | |
6106 | frame_unwind_append_unwinder. | |
6107 | * i386-tdep.c (i386_frame_cache): Expect this_frame. | |
6108 | (i386_frame_this_id, i386_frame_prev_register): Update signature. | |
6109 | (i386_frame_unwind): Use default_frame_sniffer. | |
6110 | (i386_frame_sniffer): Delete. | |
6111 | (i386_sigtramp_frame_cache): Expect this_frame. | |
6112 | (i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register) | |
6113 | (i386_sigtramp_frame_sniffer): Update signature. | |
6114 | (i386_sigtramp_frame_unwind): Use i386_sigtramp_frame_sniffer. | |
6115 | (i386_frame_base_address): Update signature. | |
6116 | (i386_dummy_id): Rename from i386_unwind_dummy_id. Expect this_frame. | |
6117 | (i386_push_dummy_call): Update comment. | |
6118 | (i386_sigtramp_p, i386_svr4_sigtramp_p, i386_svr4_sigcontext_addr): | |
6119 | Expect this_frame. | |
6120 | (i386_gdbarch_init): Use set_gdbarch_dummy_id, dwarf2_append_unwinders, | |
6121 | and frame_unwind_append_unwinder. | |
6122 | * amd64-linux-tdep.c, amd64-sol2-tdep.c, amd64fbsd-tdep.c, | |
6123 | amd64nbsd-tdep.c, amd64obsd-tdep.c, i386-linux-tdep.c, | |
6124 | i386-nto-tdep.c, i386bsd-tdep.c, i386-sol2-tdep.c, i386obsd-tdep.c, | |
6125 | i386nbsd-tdep.c: Update for unwinder changes. | |
6126 | ||
25492ce3 DJ |
6127 | 2008-04-30 Daniel Jacobowitz <[email protected]> |
6128 | ||
6129 | * trad-frame.c (struct trad_frame_cache): Rename next_frame to this_frame. | |
6130 | (trad_frame_cache_zalloc, trad_frame_alloc_saved_regs): Expect | |
6131 | this_frame. | |
6132 | (trad_frame_get_prev_register, trad_frame_get_register): Update signature. | |
6133 | * trad-frame.h (trad_frame_cache_zalloc, trad_frame_get_register) | |
6134 | (trad_frame_alloc_saved_regs, trad_frame_get_prev_register): Update | |
6135 | signature. | |
6136 | * tramp-frame.c (tramp_frame_cache, tramp_frame_start): Expect | |
6137 | this_frame. | |
6138 | (tramp_frame_this_id, tramp_frame_prev_register, tramp_frame_sniffer): | |
6139 | Update signature. | |
6140 | * tramp-frame.h (struct tramp_frame): Update signature of init. | |
6141 | * Makefile.in (trad-frame.o): Update. | |
6142 | ||
4a4e5149 DJ |
6143 | 2008-04-30 Daniel Jacobowitz <[email protected]> |
6144 | ||
6145 | * dwarf2-frame.c (read_reg): Expect this_frame in the baton. | |
6146 | (execute_stack_op): Put this_frame in the baton. | |
6147 | (execute_cfa_program): Take this_frame. | |
6148 | (struct dwarf2_frame_ops): Update comment for signal_frame_p. | |
6149 | (dwarf2_frame_default_init_reg, dwarf2_frame_init_reg) | |
6150 | (dwarf2_frame_signal_frame_p, dwarf2_frame_cache) | |
6151 | (dwarf2_frame_this_id): Adjust to work on this_frame. | |
6152 | (dwarf2_signal_frame_this_id): Delete. | |
6153 | (dwarf2_frame_prev_register): Update signature. Use new frame | |
6154 | unwind methods. | |
6155 | (dwarf2_frame_sniffer): Update signature. Expect this_frame. | |
6156 | (dwarf2_frame_unwind, dwarf2_signal_frame_unwind): Add | |
6157 | dwarf2_frame_sniffer. | |
6158 | (dwarf2_append_unwinders): New. | |
6159 | (dwarf2_frame_base_address, dwarf2_frame_base_sniffer): Expect | |
6160 | this_frame. | |
6161 | * sparc-tdep.c (sparc32_dwarf2_struct_return_p) | |
6162 | (sparc32_dwarf2_frame_init_reg): Expect this_frame. | |
6163 | * cris-tdep.c (cris_dwarf2_frame_init_reg): Likewise. | |
6164 | * rs6000-tdep.c (ppc_dwarf2_frame_init_reg): Likewise. | |
6165 | * s390-tdep.c (s390_dwarf2_frame_init_reg): Likewise. | |
6166 | * sh-tdep.c (sh_dwarf2_frame_init_reg): Likewise. | |
6167 | * sparc64-tdep.c (sparc64_dwarf2_frame_init_reg): Likewise. | |
6168 | * dwarf2-frame.h (dwarf2_frame_sniffer): Delete declaration. | |
6169 | (dwarf2_append_unwinders): Declare. | |
6170 | (dwarf2_frame_base_sniffer): Update declaration. | |
6171 | * i386-linux-tdep.c (i386_linux_dwarf_signal_frame_p): Expect | |
6172 | this_frame. | |
6173 | ||
669fac23 DJ |
6174 | 2008-04-30 Daniel Jacobowitz <[email protected]> |
6175 | ||
6176 | Convert frame unwinders to use the current frame and | |
6177 | "struct value". | |
6178 | ||
6179 | * frame.c (frame_debug): Make global. | |
6180 | (get_frame_id): Pass this frame to unwinder routines. | |
6181 | (frame_pc_unwind): Remove unused unwind->prev_pc support. | |
6182 | (do_frame_register_read): Do not discard the return value of | |
6183 | frame_register_read. | |
6184 | (frame_register_unwind): Remove debug messages. Use | |
6185 | frame_unwind_register_value. | |
6186 | (frame_unwind_register_value, get_frame_register_value): New | |
6187 | functions. | |
6188 | (create_new_frame, get_frame_base_address, get_frame_locals_address) | |
6189 | (get_frame_args_address, get_frame_type): Pass this frame to | |
6190 | unwinder routines. | |
6191 | (frame_cleanup_after_sniffer, frame_prepare_for_sniffer): New | |
6192 | functions. | |
6193 | * frame.h: Update comments. | |
6194 | (frame_debug, frame_unwind_register_value, get_frame_register_value) | |
6195 | (frame_prepare_for_sniffer): Declare. | |
6196 | * frame-unwind.h: Update comments and parameter names. | |
6197 | (default_frame_sniffer): Declare. | |
6198 | (frame_prev_register_ftype): Return a struct value *. | |
6199 | (struct frame_unwind): Remove prev_pc member. | |
6200 | (frame_unwind_sniffer_ftype, frame_unwind_append_sniffer): Delete. | |
6201 | (frame_unwind_append_unwinder, frame_unwind_got_optimized) | |
6202 | (frame_unwind_got_register, frame_unwind_got_memory) | |
6203 | (frame_unwind_got_constant, frame_unwind_got_address): Declare. | |
6204 | * frame-base.h: Update comments and parameter names. | |
6205 | * valops.c (value_fetch_lazy): Use get_frame_register_value. Iterate | |
6206 | if necessary. Add debugging output. | |
6207 | * sentinel-frame.c (sentinel_frame_prev_register) | |
6208 | (sentinel_frame_this_id): Update for new signature. | |
6209 | (sentinel_frame_prev_pc): Delete. | |
6210 | (sentinel_frame_unwinder): Remove prev_pc. | |
6211 | * ia64-tdep.c (ia64_libunwind_frame_unwind): Do not initialize | |
6212 | prev_pc. | |
6213 | * libunwind-frame.c (libunwind_frame_unwind): Likewise. | |
6214 | * frame-unwind.c (struct frame_unwind_table_entry): Remove sniffer. | |
6215 | (frame_unwind_append_sniffer): Delete. | |
6216 | (frame_unwind_append_unwinder): New function. | |
6217 | (frame_unwind_find_by_frame): Take this frame. Only use sniffers | |
6218 | from unwinders. Use frame_prepare_for_sniffer. | |
6219 | (default_frame_sniffer, frame_unwind_got_optimized) | |
6220 | (frame_unwind_got_register, frame_unwind_got_memory) | |
6221 | (frame_unwind_got_constant, frame_unwind_got_address): New functions. | |
6222 | * dummy-frame.c (dummy_frame_sniffer): Use gdbarch_dummy_id. | |
6223 | (dummy_frame_prev_register, dummy_frame_this_id): Update for new | |
6224 | signature. | |
6225 | * gdbarch.sh: Replace unwind_dummy_id with dummy_id. | |
6226 | * gdbarch.c, gdbarch.c: Regenerated. | |
6227 | * frame-base.c (default_frame_base_address) | |
6228 | (default_frame_locals_address, default_frame_args_address): Update | |
6229 | for new signature. | |
6230 | (frame_base_find_by_frame): Pass this frame to unwinder routines. | |
6231 | * infcall.c (call_function_by_hand): Update comments. | |
6232 | * Makefile.in (frame-unwind.o): Update dependencies. | |
6233 | ||
9214ee5f DJ |
6234 | 2008-04-30 Daniel Jacobowitz <[email protected]> |
6235 | ||
6236 | * ada-lang.c (ada_value_primitive_packed_val): Only check | |
6237 | value_lazy for memory lvals. | |
6238 | * findvar.c (value_of_register_lazy): New function. | |
6239 | (locate_var_value): Only check value_lazy for memory lvals. | |
6240 | * valarith.c (value_subscripted_rvalue): Likewise. | |
6241 | * valops.c (value_fetch_lazy): Handle both memory and register | |
6242 | lvals. | |
6243 | (search_struct_field, value_slice): Only check value_lazy for memory | |
6244 | lvals. | |
6245 | * value.c (struct value): Update comment for lazy. | |
6246 | (value_primitive_field): Only check value_lazy for memory lvals. | |
6247 | * value.h (value_lazy): Update comment. | |
6248 | (value_of_register_lazy): Declare. | |
6249 | ||
939643d7 DJ |
6250 | 2008-04-30 Daniel Jacobowitz <[email protected]> |
6251 | ||
6252 | * corefile.c (reopen_exec_file): Close any open files. | |
6253 | ||
1de34ab7 JB |
6254 | 2008-04-29 Joel Brobecker <[email protected]> |
6255 | ||
6256 | * ia64-tdep.c (ia64_memory_remove_breakpoint): Set | |
6257 | show_memory_breakpoints to 1 while reading the instruction bundle. | |
6258 | ||
ea42b34a JB |
6259 | 2008-04-29 Joel Brobecker <[email protected]> |
6260 | ||
6261 | * gdbarch.sh: Document the return_value method. Explain that | |
6262 | the FUNCTYPE parameter might be NULL. | |
6263 | * gdbarch.h: Regenerated. | |
6264 | * sparc-tdep.c (sparc32_push_dummy_code): Do not pass the function | |
6265 | type when calling using_struct_return, as this is unnecessary | |
6266 | on this target. | |
6267 | ||
a0fe373c JB |
6268 | 2008-04-28 Joel Brobecker <[email protected]> |
6269 | ||
6270 | * terminal.h (create_tty_session): Fix return type. | |
6271 | ||
c6446539 VP |
6272 | 2008-04-26 Vladimir Prus <[email protected]> |
6273 | ||
6274 | * mi/mi-interp.c (mi_new_thread): Quote the thread id. | |
6275 | ||
2f069f6f JB |
6276 | 2008-04-26 Joel Brobecker <[email protected]> |
6277 | ||
6278 | * breakpoint.c (condition_command, commands_from_control_command) | |
6279 | (break_command_really): Minor reformatting. | |
6280 | ||
93b5768b PA |
6281 | 2008-04-25 Pedro Alves <[email protected]> |
6282 | ||
6283 | * dwarf2read.c (dwarf2_const_value): Handle DW_FORM_strp. | |
6284 | ||
436675d3 PA |
6285 | 2008-04-25 Pedro Alves <[email protected]> |
6286 | ||
6287 | * amd64-tdep.c (amd64_get_longjmp_target): New. | |
6288 | (amd64_init_abi): Register amd64_get_longjmp_target as | |
6289 | gdbarch_get_longjmp_target callback. | |
6290 | * i386-tdep.c (i386_get_longjmp_target): Remove 64-bit handling. | |
6291 | ||
78b6a731 PA |
6292 | 2008-04-25 Pedro Alves <[email protected]> |
6293 | ||
6294 | * breakpoint.h (enum bpstat_what_main_action): Delete | |
6295 | BPSTAT_WHAT_CLEAR_LONGJMP_RESUME_SINGLE. | |
6296 | ||
6297 | * breakpoint.c (clrs): Delete. | |
6298 | (bpstat_what): Update table. | |
6299 | ||
6300 | * infrun.c (handle_inferior_event): Remove | |
6301 | BPSTAT_WHAT_CLEAR_LONGJMP_RESUME_SINGLE handling. | |
6302 | ||
9e22b03a VP |
6303 | 2008-04-24 Vladimir Prus <[email protected]> |
6304 | ||
6305 | * mi/mi-cmds.h (mi_cmd_args_ftype): Remove. | |
6306 | Adjust all prototypes using mi_cmd_args_ftype to use | |
6307 | mi_cmd_argv_ftype. | |
6308 | (struct mi_cmd): Remove the args_func field. | |
6309 | * mi/mi-cmds.c: Don't provide value for the args_func field. | |
6310 | * mi/mi-main.c (mi_execute_async_cli_command) | |
6311 | (mi_cmd_exec_run, mi_cmd_exec_next, mi_cmd_exec_next_instruction) | |
6312 | (mi_cmd_exec_step, mi_cmd_exec_step_instruction) | |
6313 | (mi_cmd_exec_finish, mi_cmd_exec_until, mi_cmd_exec_return) | |
6314 | (mi_cmd_exec_continue, mi_cmd_exec_interrupt) | |
6315 | (mi_cmd_target_download): Adjust. | |
6316 | (mi_cmd_target_select): Adjust. Pass 0 for from_tty parameter. | |
6317 | (mi_cmd_execute): Do not check for args_func. | |
6318 | (mi_execute_async_cli_command): Adjust. | |
6319 | * mi/mi-parse.c: Don't check for args_func. | |
6320 | ||
721c02de | 6321 | 2008-04-24 Vladimir Prus <[email protected]> |
18a18393 | 6322 | |
680b56ce AS |
6323 | * breakpoint.c (bpstat_check_location) |
6324 | (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions): | |
6325 | New, extracted from bpstat_stop_status. | |
6326 | (bpstat_stop_status): Use the above. | |
18a18393 VP |
6327 | |
6328 | 2008-04-24 Vladimir Prus <[email protected]> | |
6329 | ||
680b56ce AS |
6330 | * mi/mi-main.c (last_async_command): Rename to current_token. |
6331 | (previous_async_command): Remove. | |
6332 | (mi_cmd_gdb_exit): Adjust. | |
6333 | (mi_cmd_exec_interrupt): Don't dance with previous_async_command. | |
6334 | (mi_cmd_target_select): Adjust. | |
6335 | (mi_cmd_execute): Don't set previous_async_command. Free token | |
6336 | here even in async mode. | |
6337 | (mi_execute_async_cli_command): Adjust. | |
6338 | (mi_exec_async_cli_cmd_continuation): Adjust. Do not free the | |
6339 | token. | |
6340 | (mi_load_progress): Adjust. | |
721c02de | 6341 | |
f13468d9 VP |
6342 | 2008-04-24 Vladimir Prus <[email protected]> |
6343 | ||
680b56ce AS |
6344 | * infcmd.c (step_1_continuation): Always disable longjmp |
6345 | breakpoint if we're not going to do another step. | |
f13468d9 | 6346 | |
f107f563 VP |
6347 | 2008-04-24 Vladimir Prus <[email protected]> |
6348 | ||
6349 | exec_cleanup murder. | |
6350 | * breakpoint.c (until_break_command_continuation): Add | |
6351 | the 'error' parameter. Directly delete the breakoint as | |
6352 | opposed to running cleanups. | |
6353 | (until_break_command): Install continuation only | |
6354 | after starting the target. Don't use exec cleanups, | |
6355 | use ordinary cleanups. Discard cleanups is successfully | |
6356 | started the target in async mode. | |
6357 | (make_cleanup_delete_breakpoint): Remove. | |
6358 | * breakpoint.h (make_cleanup_delete_breakpoint): Remove | |
6359 | declaration. | |
6360 | * defs.h (do_exec_cleanups, make_exec_cleanup): Remove | |
6361 | declarations. | |
6362 | (struct continations): Add the 'error' parameter to the | |
6363 | continuation_hook field. | |
6364 | (add_continuation, do_all_continuations) | |
6365 | (add_intermediate_continuation) | |
6366 | (do_all_intermediate_continuations): Add the 'error' parameter. | |
6367 | * exceptions.c (throw_exception): Don't call do_exec_cleanups. | |
6368 | * inf-loop.c (inferior_event_handler): Instead of calling | |
6369 | discard_all_continuations, use do_all_continuations with 1 as | |
6370 | 'error' parameter. Pass 0 as 'error' parameter in existing uses | |
6371 | of discard_all_continuations. | |
6372 | * infcmd.c (step_1): Do not use exec cleanup. For async case, discard | |
6373 | cleanups. | |
6374 | (step_once): Install continuation only after resuming the target. | |
6375 | (step_1_continuation): Disable longjmp breakpoint on error. | |
6376 | (finish_command_continuation): Add the error parameter. Delete | |
6377 | the finish breakpoint directly, do not use cleanups. | |
6378 | (finish_command): Do not use exec_cleanups. Always setup | |
6379 | continuation. For sync case, immediately run them. | |
6380 | (attach_command_continuation): Add the error parameter. | |
6381 | * infrun.c (fetch_inferior_event): Do not use exec cleanups to | |
6382 | remove step_resume_breakpoint -- adjust delete it directly. | |
6383 | * interps.c (interp_set): Adjust call to do_all_continations. | |
6384 | * mi/mi-interp.c (mi_interpreter_exec_continuation): Do not | |
6385 | do exec cleanups. | |
6386 | * mi/mi-main.c (mi_cmd_target_select): Do not do exec | |
6387 | cleanups. | |
6388 | (mi_cmd_execute): Do not use exec_cleanup. | |
6389 | (mi_execute_async_cli_command): Simplify the string concatenation | |
6390 | logic. Do no use exec cleanup. | |
6391 | (mi_exec_async_cli_cmd_continuation): New parameter error. | |
6392 | Free last_async_command. | |
6393 | * top.c (command_line_handler_continuation): New parameter error. | |
6394 | * utils.c (exec_cleanup_chain, make_exec_cleanup) | |
6395 | (do_exec_cleanups): Remove. | |
6396 | (add_continuation, do_all_continations) | |
6397 | (add_intermediate_continuation) | |
6398 | (do_all_intermediate_continuations): New parameter error. | |
6399 | ||
74960c60 VP |
6400 | 2008-04-24 Vladimir Prus <[email protected]> |
6401 | ||
6402 | * breakpoint.h (bp_location_p): New typedef. | |
6403 | Register a vector of bp_location_p. | |
6404 | * breakpoint.c (always_inserted_mode) | |
6405 | (show_always_inserted_mode): New. | |
6406 | (unlink_locations_from_global_list): Remove. | |
6407 | (update_global_location_list) | |
6408 | (update_global_location_list_nothrow): New. | |
6409 | (update_watchpoint): Don't free locations. | |
6410 | (should_insert_location): New. | |
6411 | (insert_bp_location): Use should_insert_location. | |
6412 | (insert_breakpoint_locations): Copied from | |
6413 | insert_breakpoints. | |
6414 | (insert_breakpoint): Use insert_breakpoint_locations. | |
6415 | (bpstat_stop_status): Call update_global_location_list | |
6416 | when disabling breakpoint. | |
6417 | (allocate_bp_location): Don't add to bp_location_chain. | |
6418 | (set_raw_breakpoint) | |
6419 | (create_longjmp_breakpoint, enable_longjmp_breakpoint) | |
6420 | (disable_longjmp_breakpoint, create_overlay_event_breakpoint) | |
6421 | (enable_overlay_breakpoints, disable_overlay_breakpoints) | |
6422 | (set_longjmp_resume_breakpoint) | |
6423 | (enable_watchpoints_after_interactive_call_stop) | |
6424 | (disable_watchpoints_before_interactive_call_start) | |
6425 | (create_internal_breakpoint) | |
6426 | (create_fork_vfork_event_catchpoint) | |
6427 | (create_exec_event_catchpoint, set_momentary_breakpoint) | |
6428 | (create_breakpoints, break_command_1, watch_command_1) | |
6429 | (create_exception_catchpoint) | |
6430 | (handle_gnu_v3_exceptions) | |
6431 | (disable_breakpoint, breakpoint_re_set_one) | |
6432 | (create_thread_event_breakpoint, create_solib_event_breakpoint) | |
6433 | (create_ada_exception_breakpoint): : Don't call check_duplicates. | |
6434 | Call update_global_location_list. | |
6435 | (delete_breakpoint): Don't remove locations and don't | |
6436 | try to reinsert them. Call update_global_location_list. | |
6437 | (update_breakpoint_locations): Likewise. | |
6438 | (restore_always_inserted_mode): New. | |
6439 | (update_breakpoints_after_exec): Temporary disable | |
6440 | always inserted mode. | |
6441 | * Makefile.in: Update dependencies. | |
6442 | ||
6443 | * infrun.c (proceed): Remove breakpoints while stepping | |
6444 | over breakpoint. | |
6445 | (handle_inferior_event): Don't remove or insert | |
6446 | breakpoints. | |
6447 | * linux-fork.c (checkpoint_command): Remove breakpoints | |
6448 | before fork and insert after. | |
6449 | (linux_fork_context): Remove breakpoints before switch | |
6450 | and insert after. | |
6451 | * target.c (target_disconnect, target_detach): Remove | |
6452 | breakpoints from target. | |
6453 | ||
680b56ce | 6454 | |
d24317b4 VP |
6455 | 2008-04-24 Vladimir Prus <[email protected]> |
6456 | ||
6457 | * breakpoint.c (print_one_breakpoint_location): In MI | |
6458 | mode, report the location string the breakpoint was | |
6459 | originally created with. | |
6460 | ||
ee967b5f MG |
6461 | 2008-04-23 Maxim Grigoriev <[email protected]> |
6462 | ||
6463 | * Makefile.in (xtensa-tdep.o): Update dependencies. | |
6464 | * configure.tgt (xtensa*): Update dependencies. | |
6465 | * xtensa-tdep.c (arreg_number): Renamed from areg_number. | |
6466 | Local variable areg renamed to arreg. | |
6467 | (areg_number): New function. | |
6468 | (xtensa_pseudo_register_read, xtensa_pseudo_register_write) | |
6469 | (xtensa_extract_return_value, xtensa_store_return_value): areg_number | |
6470 | replaced by arreg_number. | |
6471 | (xtensa_windowed_frame_cache, struct xtensa_frame_cache): New comments. | |
6472 | (xtensa_alloc_frame_cache): Initialize cache->wd.ws. | |
6473 | (xtensa_scan_prologue): New function. | |
6474 | (xtensa_frame_cache): New local fp_regnum. Handle separately the case, | |
6475 | when ENTRY instraction hasn't been executed yet. Get the frame pointer | |
6476 | value based on prologue analysis. Fix the bugs preventing WS and | |
6477 | AR4-AR7/A11 registers from getting right values for intermediate frames, | |
6478 | whose registers have been already spilled. | |
6479 | (xtensa_frame_prev_register): Fix WS register value. Use are_number | |
6480 | and arreg_number appropriately. | |
6481 | (xtensa_gdbarch_init): Set solib_svr4_fetch_link_map_offsets to | |
6482 | svr4_ilp32_fetch_link_map_offsets. | |
6483 | ||
09d71d23 AS |
6484 | 2008-04-23 Andrew Stubbs <[email protected]> |
6485 | ||
6486 | * printcmd.c: Define USE_PRINTF_I64 and PRINTF_HAS_LONG_LONG on MinGW. | |
6487 | (printf_command): Convert %lld to %I64d when USE_PRINTF_I64 set. | |
6488 | ||
fdc59709 PB |
6489 | 2008-04-23 Paolo Bonzini <[email protected]> |
6490 | ||
680b56ce AS |
6491 | * acinclude.m4: Add override.m4. |
6492 | * configure: Regenerate. | |
fdc59709 | 6493 | |
0bcd0149 JK |
6494 | 2008-04-22 Jan Kratochvil <[email protected]> |
6495 | ||
6496 | * ada-lang.c (get_selections): Variable PROMPT made non-const and | |
6497 | initialized with a trailing space now. Use PROMPT_ARG of | |
6498 | COMMAND_LINE_INPUT instead of printing it ourselves. | |
6499 | ||
88d8a8e0 JB |
6500 | 2008-04-22 Joel Brobecker <[email protected]> |
6501 | ||
6502 | * NEWS: Document support for 64-bit core file. | |
6503 | ||
c055b101 CV |
6504 | 2008-04-22 Corinna Vinschen <[email protected]> |
6505 | ||
6506 | * NEWS: Add information on calling convention and new SH CLI options. | |
6507 | ||
6508 | * sh-tdep.c (sh_cc_gcc): New static string. | |
6509 | (sh_cc_renesas): Ditto. | |
6510 | (sh_cc_enum): New static string array. | |
6511 | (sh_active_calling_convention): New static string pointer denoting | |
6512 | active user chosen ABI. | |
6513 | (sh_is_renesas_calling_convention): New function to return function | |
6514 | specific ABI, or user choice if necessary. | |
6515 | (sh_use_struct_convention): Rename first argument and turn around its | |
6516 | meaning. Check for renesas ABI and return accordingly. | |
6517 | (sh_use_struct_convention_nofpu): New function. | |
6518 | (sh_next_flt_argreg): Get function type as third parameter. Check | |
6519 | for renesas ABI and choose floating registers accordingly. | |
6520 | (sh_push_dummy_call_fpu): Check for ABI and choose argument slot and | |
6521 | struct return slot accordingly. | |
6522 | (sh_push_dummy_call_nofpu): Ditto. | |
6523 | (sh_return_value_nofpu): Call sh_use_struct_convention_nofpu from here. | |
6524 | Evaluate ABI and give to sh_use_struct_convention_nofpu. | |
6525 | (sh_return_value_fpu): Evaluate ABI and give to | |
6526 | sh_use_struct_convention. | |
6527 | (show_sh_command): New function. | |
6528 | (set_sh_command): Ditto. | |
6529 | (_initialize_sh_tdep): Initialize `set/show sh calling-convention | |
6530 | CLI command. | |
6531 | ||
6532 | * gdbarch.sh (return_value): Add func_type argument. | |
6533 | * gdbarch.c: Regenerate. | |
6534 | * gdbarch.h: Ditto. | |
6535 | * eval.c (evaluate_subexp_standard): Rename local variable value_type to | |
6536 | val_type so as not to collide with value_type function. Call | |
6537 | using_struct_return with additional function type argument. | |
6538 | * infcall.c (call_function_by_hand): Call using_struct_return and | |
6539 | gdbarch_return_value with additional function type argument. | |
6540 | * infcmd.c (print_return_value): Take addition func_type argument. | |
6541 | Call gdbarch_return_value with additional function type argument. | |
6542 | (finish_command_continuation): Call print_return_value with additional | |
6543 | function type argument. | |
6544 | (finish_command): Ditto. | |
6545 | * sparc-tdep.c (sparc32_push_dummy_code): Call using_struct_return with | |
6546 | additional function type argument. | |
6547 | * stack.c (return_command): Call using_struct_return and | |
6548 | gdbarch_return_value with additional function type argument. | |
6549 | * value.c (using_struct_return): Take additional function type argument. | |
6550 | * value.h (using_struct_return): Accommodate declaration. | |
6551 | * alpha-tdep.c (alpha_return_value): Add func_type argument. | |
6552 | * amd64-tdep.c (amd64_return_value): Ditto. | |
6553 | * arm-tdep.c (arm_return_value): Ditto. | |
6554 | * avr-tdep.c (avr_return_value): Ditto. | |
6555 | * cris-tdep.c (cris_return_value): Ditto. | |
6556 | * frv-tdep.c (frv_return_value): Ditto. | |
6557 | * h8300-tdep.c (h8300_return_value): Ditto. | |
6558 | (h8300h_return_value): Ditto. | |
6559 | * hppa-tdep.c (hppa32_return_value): Ditto. | |
6560 | (hppa64_return_value): Ditto. | |
6561 | * i386-tdep.c (i386_return_value): Ditto. | |
6562 | * ia64-tdep.c (ia64_return_value): Ditto. | |
6563 | * iq2000-tdep.c (iq2000_return_value): Ditto. | |
6564 | * m32c-tdep.c (m32c_return_value): Ditto. | |
6565 | * m32r-tdep.c (m32r_return_value): Ditto. | |
6566 | * m68hc11-tdep.c (m68hc11_return_value): Ditto. | |
6567 | * m68k-tdep.c (m68k_return_value): Ditto. | |
6568 | (m68k_svr4_return_value): Ditto. | |
6569 | * m88k-tdep.c (m88k_return_value): Ditto. | |
6570 | * mep-tdep.c (mep_return_value): Ditto. | |
6571 | * mips-tdep.c (mips_eabi_return_value): Ditto. | |
6572 | (mips_n32n64_return_value): Ditto. | |
6573 | (mips_o32_return_value): Ditto. | |
6574 | (mips_o64_return_value): Ditto. | |
6575 | * mn10300-tdep.c (mn10300_return_value): Ditto. | |
6576 | * mt-tdep.c (mt_return_value): Ditto. | |
6577 | * ppc-linux-tdep.c (ppc_linux_return_value): Ditto. | |
6578 | * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Ditto. | |
6579 | (ppc_sysv_abi_broken_return_value): Ditto. | |
6580 | (ppc64_sysv_abi_return_value): Ditto. | |
6581 | * ppc-tdep.h (ppc_sysv_abi_return_value): Ditto. | |
6582 | (ppc_sysv_abi_broken_return_value): Ditto. | |
6583 | (ppc64_sysv_abi_return_value): Ditto. | |
6584 | * ppcnbsd-tdep.c (ppcnbsd_return_value): Ditto. | |
6585 | * rs6000-tdep.c (rs6000_return_value): Ditto. | |
6586 | * s390-tdep.c (s390_return_value): Ditto. | |
6587 | * score-tdep.c (score_return_value): Ditto. | |
6588 | * sh-tdep.c (sh_return_value_nofpu): Ditto. | |
6589 | (sh_return_value_fpu): Ditto. | |
6590 | * sh64-tdep.c (sh64_return_value): Ditto. | |
6591 | * sparc-tdep.c (sparc32_return_value): Ditto. | |
6592 | * sparc64-tdep.c (sparc64_return_value): Ditto. | |
6593 | * spu-tdep.c (spu_return_value): Ditto. | |
6594 | * v850-tdep.c (v850_return_value): Ditto. | |
6595 | * vax-tdep.c (vax_return_value): Ditto. | |
6596 | * xstormy16-tdep.c (xstormy16_return_value): Ditto. | |
6597 | * xtensa-tdep.c (xtensa_return_value): Ditto. | |
6598 | ||
6599 | * gdbtypes.h (struct type): Add calling_convention member. | |
6600 | * dwarf2read.c (read_subroutine_type): Add calling convention read | |
6601 | from DW_AT_calling_convention attribute to function type. | |
6602 | ||
9eec4d1e MD |
6603 | 2008-04-22 Markus Deuling <[email protected]> |
6604 | ||
6605 | * eval.c (evaluate_subexp_standard): Use value_subscripted_rvalue for | |
6606 | multi_f77_subscript to support values from registers. | |
6607 | * valarith.c (value_subscripted_rvalue): Remove prototype and static. | |
6608 | * value.h (value_subscripted_rvalue): Add prototype. | |
6609 | ||
6610 | * f-typeprint.c (f_type_print_base): Add support for TYPE_CODE_UNION. | |
6611 | Fix output. | |
6612 | * f-valprint.c (f_val_print): Likewise. | |
6613 | ||
ef72380d CS |
6614 | 2008-04-21 Craig Silverstein <[email protected]> |
6615 | ||
6616 | * dwarf2read.c (zlib_decompress_section): Define abfd in the | |
6617 | !HAVE_ZLIB_H case. | |
6618 | ||
ff8e85c3 PA |
6619 | 2008-04-21 Pedro Alves <[email protected]> |
6620 | ||
6621 | * symfile.c (syms_from_objfile): Don't warn if lowest loadable | |
6622 | section is not a code section. | |
6623 | ||
31fffb02 CS |
6624 | 2008-04-19 Craig Silverstein <[email protected]> |
6625 | ||
6626 | * NEWS: Add information on compressed debug sections. | |
6627 | ||
8e91f023 VP |
6628 | 2008-04-19 Vladimir Prus <[email protected]> |
6629 | ||
6630 | * mi/mi-cmd-var.c (varobj_update_one): Print new | |
6631 | value for variable objects that changed type. | |
6632 | ||
603ba1de VP |
6633 | 2008-04-19 Vladimir Prus <[email protected]> |
6634 | ||
6635 | * varobj.c (varobj_invalidate): Don't touch floating | |
6636 | varobjs. | |
6637 | ||
7fc830e2 MK |
6638 | 2008-04-19 Mark Kettenis <[email protected]> |
6639 | ||
6640 | * symtab.c: (multiple_symbols_modes, multiple_symbols_ask) | |
6641 | (multiple_symbols_cancel): Remove extra const. | |
6642 | * symtab.h: Likewise. | |
6643 | ||
bcbf8b68 NR |
6644 | 2008-04-19 Nick Roberts <[email protected]> |
6645 | ||
6646 | * interps.c (top_level_interpreter): Rename static variable... | |
6647 | (top_level_interpreter_ptr): ...to this. | |
6648 | (top_level_interpreter): New function. | |
6649 | ||
6650 | * interps.h: New extern for top_level_interpreter. | |
6651 | ||
6652 | * linespec.c: Include interps.h and mi/mi-cmds.h. | |
6653 | (decode_line_2): When using MI, always set all breakpoints in menu. | |
6654 | ||
6655 | * Makefile.in (linespec.o, mi-interp.o): Add dependencies. | |
6656 | ||
31fffb02 | 6657 | 2008-04-18 Craig Silverstein <[email protected]> |
233a11ab CS |
6658 | |
6659 | * configure.ac (AC_SEARCH_LIBS): Add check for zlib. | |
6660 | * config.in, configure: Regenerate. | |
6661 | * dwarf2read.c: Include zlib.h if present. | |
6662 | Modified *_SECTION macros. | |
6663 | (section_is_p): New. | |
6664 | (dwarf2_locate_sections): Use section_is_p instead of strcmp | |
6665 | (dwarf2_resize_section): New. | |
6666 | to determine whether a given section has a given name. | |
6667 | (zlib_decompress_section): New. | |
6668 | (dwarf2_read_section): Read the compressed section if present | |
6669 | in the binary. | |
6670 | * MAINTAINERS: Added myself to section Write After Approval. | |
bcbf8b68 | 6671 | |
a03b3a97 TJB |
6672 | 2008-04-18 Thiago Jung Bauermann <[email protected]> |
6673 | ||
6674 | * defs.h (exec_set_section_offsets): Remove prototype. | |
6675 | * exec.c (exec_set_section_offsets): Remove function. | |
6676 | ||
9e386756 JB |
6677 | 2008-04-18 Joel Brobecker <[email protected]> |
6678 | ||
6679 | * stabsread.c (cleanup_undefined_types_1): Add instance flags check | |
6680 | in the search for the matching symbol. | |
6681 | ||
2ec93238 MK |
6682 | 2008-04-17 Marc Khouzam <[email protected]> |
6683 | ||
6684 | * breakpoint.c (update_watchpoint): Always reparse | |
6685 | condition. | |
6686 | ||
e9bbd7c5 JB |
6687 | 2008-04-17 Joel Brobecker <[email protected]> |
6688 | ||
6689 | * breakpoint.c (print_one_breakpoint_location): Make sure to print | |
6690 | the breakpoint address only once. | |
6691 | ||
475bbd17 JB |
6692 | 2008-04-17 Dennis Roberts <[email protected]> |
6693 | ||
6694 | * rs6000-tdep.c (rs6000_gdbarch_init): Use the BFD architecture, | |
6695 | rather than a hard-coded architecture, for xcoff executables. | |
6696 | ||
86991504 DE |
6697 | 2008-04-17 Doug Evans <[email protected]> |
6698 | ||
4584e32e DE |
6699 | * buildsym.c (watch_main_source_file_lossage): New fn. |
6700 | (end_symtab): Call it. | |
6701 | ||
86991504 DE |
6702 | * source.c (find_and_open_source): Add some comments clarifying |
6703 | handling of FULLNAME argument. Make static. Remove pointless | |
6704 | xstrdup/xfree. | |
6705 | ||
0a320680 PA |
6706 | 2008-04-17 Pedro Alves <[email protected]> |
6707 | ||
6708 | * inf-loop.c (inferior_event_handler): Also run the intermediate | |
6709 | continuations in the INF_EXEC_COMPLETE case. | |
6710 | ||
700b53b1 TT |
6711 | 2008-04-16 Tom Tromey <[email protected]> |
6712 | ||
6713 | * cli/cli-decode.h (CMD_ASYNC_OK): New define. | |
6714 | (set_cmd_async_ok, get_cmd_async_ok): Declare. | |
6715 | * cli/cli-decode.c (set_cmd_async_ok): New function. | |
6716 | (get_cmd_async_ok): New function. | |
6717 | * cli/cli-cmds.c (init_cli_cmds): Mark "pwd", "help", "info", and | |
6718 | "show" as async-ok. | |
6719 | * top.c (execute_command): Use get_cmd_async_ok. | |
6720 | * infcmd.c: Include cli/cli-decode.h. | |
6721 | (_initialize_infcmd): Mark "interrupt" as async-ok. | |
6722 | * Makefile.in (infcmd.o): Depend on cli_decode_h. | |
6723 | ||
dacec2a8 DJ |
6724 | 2008-04-16 Daniel Jacobowitz <[email protected]> |
6725 | ||
6726 | PR gdb/2445 | |
6727 | * exec.c: Correct "arch-utils.h" include. | |
6728 | ||
1f906a60 | 6729 | 2008-04-15 Aleksandar Ristovski <[email protected]> |
2cec12e5 AR |
6730 | |
6731 | PR gdb/2424 | |
6732 | * infrun.c (normal_stop) Move breakpoint_auto_delete further down | |
6733 | to allow printing to 'see' real reason of stop. This fixes PR 2424. | |
6734 | * breakpoint.c (bpdisp_texst): New function. The function takes over | |
6735 | the role of bpstats static array in print_one_breakpoint_location. | |
6736 | (print_it_typical): Print "Temporary breakpoint" instead | |
6737 | of just "Breakpoint" when breakpoint is, well, temporary. For mi-like | |
6738 | protocols, print disp field. | |
6739 | (print_one_breakpoint_location): Removed bpdisps static definition. | |
6740 | Call new bpstat_text function to get value for 'disp' field. | |
6741 | (mention): Print "Temporary breakpoint" instead of just "Breakpoint". | |
6742 | ||
4d7b71aa DJ |
6743 | 2008-04-15 Daniel Jacobowitz <[email protected]> |
6744 | ||
6745 | * gnulib/Makefile.am, gnulib/m4/gnulib-cache.m4, | |
6746 | gnulib/aux/link-warning.h, gnulib/extra/link-warning.h: Adjust | |
6747 | by rerunning gnulib-tool with --aux-dir=gnulib/extra. | |
6748 | * gnulib/Makefile.in: Regenerate. | |
6749 | ||
aa11fd3f DJ |
6750 | 2008-04-14 Daniel Jacobowitz <[email protected]> |
6751 | ||
6752 | * Makefile.in (GNULIB_H): New. Trigger all-lib. | |
6753 | (defs_h): Use $(GNULIB_H). | |
6754 | (all-lib): Depend on gnulib/Makefile. | |
6755 | (gnulib/Makefile): Regenerate gnulib/Makefile and gnulib/.deps. | |
6756 | * config.in, gnulib/Makefile.in: Regenerated. | |
6757 | ||
e28b3332 DJ |
6758 | 2008-04-14 Daniel Jacobowitz <[email protected]> |
6759 | ||
6760 | * Makefile.in (LIBGNU, INCGNU): Define. | |
6761 | (INTERNAL_CFLAGS_BASE): Add INCGNU. | |
6762 | (INTERNAL_LIBS, CLIBS, CDEPS): Add LIBGNU. | |
6763 | (CLEANDIRS): New. | |
6764 | ($(LIBGNU), all-lib): New rules. | |
6765 | (clean, distclean, do-maintainer-clean): Use CLEANDIRS. | |
6766 | * configure.ac: Use gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE. | |
6767 | Simplify AC_CONFIG_AUX_DIR. Generate gnulib/Makefile. | |
6768 | * gnulib: New directory, from gnulib-tool. | |
6769 | * configure, aclocal.m4: Regenerated. | |
6770 | ||
e3bc4218 DJ |
6771 | 2008-04-14 Daniel Jacobowitz <[email protected]> |
6772 | ||
6773 | * linux-thread-db.c (have_threads_callback): Check thread->private. | |
6774 | ||
fcacd99f VP |
6775 | 2008-04-13 Nick Roberts <[email protected]> |
6776 | Vladimir Prus <[email protected]> | |
6777 | ||
6778 | Fix @-varobjs. | |
680b56ce AS |
6779 | * varobj.c (value_of_root): Update the expression for |
6780 | floating varobjs. | |
6781 | * mi/mi-cmd-var.c (varobj_update_one): If type has changed, | |
6782 | report that. | |
fcacd99f | 6783 | |
de051565 MK |
6784 | 2008-04-09 Marc Khouzam <[email protected]> |
6785 | ||
6786 | * mi/mi-cmd-var.c: Include "mi-getopt.h". | |
6787 | (mi_parse_format): New. Factored out from mi_cmd_var_set_format. | |
6788 | (mi_cmd_var_set_format): Use new mi_parse_format. | |
6789 | (mi_cmd_var_evaluate_expression): Support for -f option to specify | |
6790 | format. | |
6791 | * Makefile.in (mi-cmd-var.o): Update dependencies. | |
6792 | ||
6793 | * varobj.h (varobj_get_formatted_value): Declare. | |
6794 | * varobj.c (my_value_of_variable): Added format parameter. | |
6795 | (cplus_value_of_variable): Likewise. | |
6796 | (java_value_of_variable): Likewise. | |
6797 | (c_value_of_variable): Likewise. Evaluate expression based | |
6798 | on format parameter. | |
6799 | (struct language_specific): Add format parameter to function member | |
6800 | *value_of_variable. | |
6801 | (varobj_get_formatted_value): New. | |
6802 | (varobj_get_value): Added format parameter to method call. | |
680b56ce | 6803 | |
56953f80 JB |
6804 | 2008-04-08 Joel Brobecker <[email protected]> |
6805 | ||
6806 | * stabsread.c (cleanup_undefined_types_noname): Manually set the | |
6807 | instance flags of the undefined type before calling replace_type. | |
6808 | ||
e4e33b9e VP |
6809 | 2008-04-08 Vladimir Prus <[email protected]> |
6810 | ||
6811 | * target.h (enum strata): Remove the download_stratum. | |
680b56ce | 6812 | |
92b5c263 DE |
6813 | 2008-04-07 Doug Evans <[email protected]> |
6814 | ||
6815 | * buildsym.h (last_source_file): Add dwarf info to comment. | |
6816 | (last_source_start_addr): Ditto. | |
6817 | ||
effa26a9 PA |
6818 | 2008-04-07 Pedro Alves <[email protected]> |
6819 | ||
6820 | * alphanbsd-tdep.c: Include "target.h". | |
6821 | * mn10300-tdep.c: Include "target.h". | |
6822 | * Makefile.in (alphanbsd-tdep.o, mn10300-tdep.o): Update. | |
6823 | ||
2b2d9e11 VP |
6824 | 2008-04-06 Vladimir Prus <[email protected]> |
6825 | ||
6826 | Fix breakpoint condition that use member variables. | |
680b56ce AS |
6827 | * valops.c (check_field): Remove. |
6828 | (check_field_in): Rename to check_field. | |
6829 | (value_of_this): Use la_name_of_this. | |
6830 | * value.h (check_field): Adjust prototype. | |
6831 | ||
6832 | * language.h (la_value_of_this): Rename to la_name_of_this. | |
6833 | * language.c (unknown_language_defn): Specify "this" for | |
6834 | name_of_this. | |
6835 | (auto_language_defn): Likewise. | |
6836 | (local_language_defn): Likewise. | |
6837 | * ada-lang.c (ada_language_defn): Adjust comment. | |
6838 | * c-lang.c (c_language_defn): Adjust comment. | |
6839 | (cplus_language_defn): Specify "this" for name_of_this. | |
6840 | (asm_language_defn): Adjust comment. | |
6841 | (minimal_language_defn): Adjust comment. | |
6842 | * f-lang.c (f_language_defn): Specify NULL for name_of_this. | |
6843 | * jv-lang.c (java_language_defn): Specify "this" for name_of_this. | |
6844 | * m2-lang.c (m2_language_defn): Specify "this" for name_of_this. | |
6845 | * objc-lang.c (objc_language_defn): Specify "self" for | |
6846 | name_of_this. | |
6847 | * p-lang.c (pascal_language_defn): Specify "this" for | |
6848 | name_of_this. | |
6849 | * scm-lang.c (scm_language_defn): Specify NULL for name_of_this. | |
6850 | ||
6851 | * symtab.c (lookup_symbol_aux): Lookup "this" in the | |
6852 | proper scope, and check for field in type of "this", without | |
6853 | trying to create a value. | |
2b2d9e11 | 6854 | |
a13e061a PA |
6855 | 2008-04-04 Pedro Alves <[email protected]> |
6856 | ||
6857 | * mi/mi-cmds.h (enum mi_cmd_result): Delete MI_CMD_ERROR. | |
6858 | (mi_error_message): Delete declaration. | |
6859 | * mi/mi-interp.c (mi_cmd_interpreter_exec): Call error instead of | |
6860 | returning MI_CMD_ERROR. | |
6861 | * mi/mi-main.c (mi_error_message): Delete. | |
6862 | (mi_cmd_exec_interrupt): | |
6863 | (mi_cmd_thread_select, mi_cmd_thread_list_ids) | |
6864 | (mi_cmd_thread_info): Call error instead of returning | |
6865 | MI_CMD_ERROR. | |
6866 | (mi_cmd_data_list_register_values): Call error instead of | |
6867 | returning MI_CMD_ERROR. Adapt to new get_register interface. | |
6868 | (get_register): Change return typo to void. Call error instead of | |
6869 | returning MI_CMD_ERROR. | |
6870 | (mi_cmd_data_write_register_values): Call error instead of | |
6871 | returning MI_CMD_ERROR. | |
6872 | (mi_cmd_list_features): Return MI_CMD_DONE. | |
6873 | (captured_mi_execute_command): Remove MI_CMD_ERROR handling. | |
6874 | (mi_execute_command): Always print exceptions with -error. | |
6875 | ||
aad4b048 JB |
6876 | 2008-04-04 Joel Brobecker <[email protected]> |
6877 | ||
6878 | * NEWS: Mention new commands set/show multiple-symbols. | |
6879 | ||
717d2f5a JB |
6880 | 2008-04-03 Joel Brobecker <[email protected]> |
6881 | ||
6882 | * symtab.c (multiple_symbols_ask, multiple_symbols_all) | |
6883 | (multiple_symbols_cancel): New constants. | |
6884 | (multiple_symbols_modes, multiple_symbols_mode): New static globals. | |
6885 | (multiple_symbols_select_mode): New function. | |
6886 | (_initialize_symtab): Add new set/show multiple-symbols commands. | |
6887 | * symtab.h (multiple_symbols_ask, multiple_symbols_all) | |
6888 | (multiple_symbols_cancel, multiple_symbols_select_mode): Declare. | |
6889 | * ada-lang.c (user_select_syms): Add handling of new multiple-symbols | |
6890 | setting. | |
6891 | * linespec.c (decode_line_2): Likewise. | |
6892 | ||
f73634e5 DE |
6893 | 2008-04-03 Doug Evans <[email protected]> |
6894 | ||
6895 | * symtab.h (enum free_code): Delete free_contents, unused. | |
6896 | * symmisc.c (free_symtab_block): Delete. | |
6897 | (free_symtab, case free_code): Delete. | |
6898 | ||
1f906a60 | 6899 | 2008-04-01 Aleksandar Ristovski <[email protected]> |
6af87b03 AR |
6900 | |
6901 | * valops.c (value_cast_structs): New function. Cast related | |
680b56ce | 6902 | STRUCT types up/down and return cast value. The body of this |
6af87b03 AR |
6903 | function comes mostly from value_cast_pointers. |
6904 | (value_cast_pointers): Code for actual cast STRUCT-STRUCT moved | |
6905 | to value_cast_structs. Now value_cast_pointers needs only create | |
6906 | appropriate reference after using value_cast_structs for actual | |
6907 | casting. | |
6908 | (value_cast): Handle references. | |
6909 | ||
61ad90e1 MK |
6910 | 2008-04-01 Marc Khouzam <[email protected]> |
6911 | ||
6912 | * MAINTAINERS: Added myself to section Write After Approval. | |
6913 | ||
b7d038ae DJ |
6914 | 2008-03-30 Daniel Jacobowitz <[email protected]> |
6915 | ||
6916 | * ia64-tdep.c (examine_prologue): Correct array access. | |
6917 | ||
1f906a60 | 6918 | 2008-03-28 Aleksandar Ristovski <[email protected]> |
c836824f AR |
6919 | |
6920 | * cp-support.c (first_component_command): Return if no arguments. | |
6921 | ||
df3ac606 CD |
6922 | 2008-03-28 Carlos O'Donell <[email protected]> |
6923 | ||
6924 | * ser-mingw.c (ser_windows_open): Open requested name. | |
6925 | ||
ca933485 AR |
6926 | 2008-03-28 Aleksandar Ristovski <[email protected]> |
6927 | ||
6928 | * MAINTAINERS: Added myself. | |
6929 | ||
5f667f2d PA |
6930 | 2008-03-28 Pedro Alves <[email protected]> |
6931 | ||
6932 | * target.c (find_default_run_target): Allow a NULL `do_mesg' | |
6933 | parameter. If it is NULL, don't call error. | |
6934 | (find_default_can_async_p, find_default_is_async_p): Pass NULL as | |
6935 | `do_mesg' parameter to find_default_run_target. If no target was | |
6936 | found, return 0. | |
6937 | ||
e741f4d4 DJ |
6938 | 2008-03-28 Daniel Jacobowitz <[email protected]> |
6939 | ||
6940 | * mips-linux-tdep.c: Update N32/N64 signal frame comments. | |
6941 | (N64_SIGCONTEXT_LO, N64_SIGCONTEXT_PC, N64_SIGCONTEXT_FPCSR): Update. | |
6942 | (N64_SIGCONTEXT_FIR, N64_SIGCONTEXT_CAUSE, N64_SIGCONTEXT_BADVADDR): | |
6943 | Delete. | |
6944 | (mips_linux_n32n64_sigframe_init): Do not record cause or badvaddr. | |
6945 | ||
f66d8205 | 6946 | 2008-03-27 Joel Brobecker <[email protected]> |
6947 | ||
6948 | GDB 6.8 released. | |
6949 | ||
221c031f UW |
6950 | 2008-03-27 Ulrich Weigand <[email protected]> |
6951 | ||
6952 | * features/Makefile (%.dat): Set xmltarget to the base filename | |
6953 | of the XML source, without subdirectory. | |
6954 | * regformats/rs6000/powerpc-32.dat: Regenerate. | |
6955 | * regformats/rs6000/powerpc-64.dat: Regenerate. | |
6956 | * regformats/rs6000/powerpc-e500.dat: Regenerate. | |
6957 | ||
40c58d95 MD |
6958 | 2008-03-27 Markus Deuling <[email protected]> |
6959 | ||
6960 | * xcoffread.c (scan_xcoff_symtab): Replace current_gdbarch by | |
6961 | objfile arch. | |
6962 | ||
bb1ec7d2 NR |
6963 | 2008-03-27 Nick Roberts <[email protected]> |
6964 | ||
6965 | * mi/mi-main.c (enum captured_mi_execute_command_actions): | |
6966 | Spell suppress in EXECUTE_COMMAND_SUPPRESS_PROMPT correctly. | |
6967 | ||
5e2b427d UW |
6968 | 2008-03-26 Ulrich Weigand <[email protected]> |
6969 | ||
6970 | * objfiles.h (struct objfile): New GDBARCH member. | |
6971 | (get_objfile_arch): Add prototype. | |
6972 | * objfiles.c: Include "arch-utils.h". | |
6973 | (allocate_objfile): Look up gdbarch associated with bfd. | |
6974 | (get_objfile_arch): New function. | |
6975 | * Makefile (objfiles.o): Update dependencies. | |
6976 | ||
6977 | * dwarf2-frame.c (decode_frame_entry_1): Replace current_gdbarch | |
6978 | by objfile arch. | |
6979 | * dwarf2loc.c (dwarf_expr_read_reg): Replace current_gdbarch | |
6980 | by frame arch. | |
6981 | (locexpr_describe_location): Replace current_gdbarch by | |
6982 | objfile arch. | |
6983 | * dwarf2read.c (die_type): Replace current_gdbarch by objfile arch. | |
6984 | (dwarf2_add_field): Likewise. | |
6985 | (read_tag_pointer_type): Likewise. | |
6986 | (read_base_type): Likewise. | |
6987 | (new_symbol): Likewise. | |
6988 | ||
6989 | * coffread.c (decode_type): Add OBJFILE argument. Update callers. | |
6990 | (decode_base_type, decode_function_type): Likewise. | |
6991 | (coff_read_struct_type, coff_read_enum_type): Likewise. | |
6992 | (coff_symtab_read): Replace current_gdbarch by objfile arch. | |
6993 | (decode_base_type): Likewise. | |
6994 | (coff_read_enum_type): Likewise. | |
6995 | (coff_read_struct_type): Replace current_objfile by OBJFILE argument. | |
6996 | (coff_read_enum_type): Likewise. | |
6997 | ||
6998 | * dbxread.c (read_dbx_symtab): Replace current_gdbarch by objfile arch. | |
6999 | (end_psymtab): Likewise. | |
7000 | (process_one_symbol): Likewise. | |
7001 | ||
7002 | * mdebugread.c (parse_symbol): Replace current_gdbarch by objfile arch. | |
7003 | (parse_procedure): Likewise. | |
7004 | (parse_partial_symbols): Likewise. | |
7005 | ||
7006 | * somread.c (som_symtab_read): Replace current_gdbarch by objfile arch. | |
7007 | ||
7008 | * stabsread.c (define_symbol): Replace current_gdbarch by objfile arch. | |
7009 | Replace static pcc_promotion_type and pcc_unsigned_promotion_type by | |
7010 | built-in types. | |
7011 | (read_range_type): Replace current_gdbarch by objfile arch. Replace | |
7012 | static range_index_type by built-in type. | |
7013 | (read_one_struct_field): Replace current_gdbarch by objfile arch. | |
7014 | (read_enum_type): Likewise. | |
7015 | ||
7016 | * xcoffread.c (read_xcoff_symtab): Replace current_gdbarch by | |
7017 | objfile arch. | |
7018 | ||
5a413362 VP |
7019 | 2008-03-26 Vladimir Prus <[email protected]> |
7020 | ||
7021 | * varobj.h (varobj_floating_p): Declare. | |
7022 | * varobj.c (varobj_floating_p): New. | |
7023 | * mi/mi-cmd-var.c (mi_cmd_var_update): When passed | |
7024 | '@' as the name, update all floating varobjs. | |
7025 | ||
a5defcdc VP |
7026 | 2008-03-26 Vladimir Prus <[email protected]> |
7027 | ||
7028 | * varobj.c (struct varobj_root): Rename use_selected_frame to | |
7029 | floating, and clarify the meaning. | |
7030 | (varobj_create, varobj_update, new_root_variable): Adjust. | |
7031 | (value_of_root): Don't use type_changed as in variable, | |
7032 | adjust comment. | |
7033 | (c_value_of_root): Adjust. | |
5a413362 | 7034 | |
403fe197 PA |
7035 | 2008-03-25 Pedro Alves <[email protected]> |
7036 | ||
7037 | * linux-nat.c (linux_nat_attach): Add the pid we attached to, to | |
7038 | gdb's thread list. | |
7039 | (linux_nat_wait): Add main lwp to gdb's thread list. | |
7040 | * linux-thread-db.c (find_new_threads_callback): Also attach to | |
7041 | already listed threads which thread_db didn't know about yet. | |
7042 | ||
710151dd PA |
7043 | 2008-03-25 Pedro Alves <[email protected]> |
7044 | ||
7045 | * linux-nat.c (drain_queued_events): Fix comment typo. | |
7046 | (linux_nat_attach): In async mode, don't rely on storing a pending | |
7047 | status. Instead place the wait status on the pipe. | |
7048 | (linux_nat_resume): Remove unreacheable shortcut code in async | |
7049 | mode. | |
7050 | (stop_wait_callback): In async mode, don't store pending status. | |
7051 | Instead, cancel breakpoints or resend the signal appropriatelly. | |
7052 | (cancel_breakpoint): New, refactored from | |
7053 | cancel_breakpoints_callback. | |
7054 | (cancel_breakpoints_callback): Call cancel_breakpoint. | |
7055 | (pipe_to_local_event_queue): Remove special token processing. | |
7056 | (linux_nat_wait): Issue an internal error if a pending status is | |
7057 | found in async mode. | |
7058 | ||
807bddf3 DJ |
7059 | 2008-03-24 Daniel Jacobowitz <[email protected]> |
7060 | ||
7061 | * inflow.c (gdb_has_a_terminal): Guard access to our_process_group. | |
7062 | ||
c5b48eac VP |
7063 | 2008-03-24 Nick Roberts <[email protected]> |
7064 | Vladimir Prus <[email protected]> | |
7065 | ||
680b56ce AS |
7066 | * varobj.c (struct varobj_root): New component thread_id. |
7067 | (varobj_get_thread_id, check_scope): New functions. | |
7068 | (c_value_of_root): Use check_scope. Switch to the | |
c5b48eac VP |
7069 | proper thread if necessary. |
7070 | ||
680b56ce | 7071 | * varobj.h (varobj_get_thread_id): New extern. |
c5b48eac | 7072 | |
680b56ce | 7073 | * mi/mi-cmd-var.c (print_varobj): Add thread-id field. |
c5b48eac | 7074 | |
12f4afab DJ |
7075 | 2008-03-23 Daniel Jacobowitz <[email protected]> |
7076 | ||
7077 | PR gdb/544 | |
7078 | * top.c: Revert 2008-03-21 changes. | |
7079 | ||
6208b47d VP |
7080 | 2008-03-23 Vladimir Prus <[email protected]> |
7081 | ||
7082 | * thread.c (make_cleanup_restore_current_thread): Make it | |
7083 | globally visible. | |
7084 | * gdbthread.h (make_cleanup_restore_current_thread): Declare. | |
7085 | * varobj.c (varobj_update): Don't save/restore frame. | |
7086 | (c_value_of_root): Save/restore thread and frame here, | |
7087 | using make_cleanup_restore_current_thread. | |
7088 | * Makefile.in: Update dependecies. | |
7089 | ||
44a67aa7 VP |
7090 | 2008-03-23 Vladimir Prus <[email protected]> |
7091 | ||
680b56ce AS |
7092 | * varobj.c (struct varobj_root): Clarify |
7093 | comment on the frame field. | |
7094 | (varobj_create): Don't set frame if we have no | |
7095 | block. | |
44a67aa7 | 7096 | |
b562a0cb DJ |
7097 | 2008-03-21 Daniel Jacobowitz <[email protected]> |
7098 | ||
7099 | PR gdb/544 | |
7100 | Suggested by Jan Kratochvil: | |
7101 | * top.c (gdb_rl_operate_and_get_next_completion): Call | |
7102 | rl_redisplay_function. | |
7103 | (gdb_rl_redisplay): New. | |
7104 | (init_main): Set rl_redisplay_function. | |
7105 | ||
ed1bd5f5 JB |
7106 | 2008-03-21 Thomas Mittelstaedt <[email protected]> (tiny change) |
7107 | ||
7108 | * aix-thread.c (pdc_read_regs): Fix compiler warning. | |
7109 | (pdc_write_regs, aix_thread_resume, fetch_regs_kernel_thread) | |
7110 | (store_regs_kernel_thread): Likewise. | |
7111 | ||
b84876c2 PA |
7112 | 2008-03-21 Pedro Alves <[email protected]> |
7113 | ||
7114 | Linux native async support. | |
7115 | ||
7116 | * target.h (struct target_ops): Delete to_async_mask_value and add | |
7117 | to_async_mask. | |
7118 | (target_is_async_p, target_async): Formatting. | |
7119 | (target_async_mask_value): Delete. | |
7120 | (target_async_mask): Delete function declaration, and add new | |
7121 | target macro with the same name. | |
7122 | ||
7123 | * target.c (update_current_target): Replace to_async_mask_value by | |
7124 | to_async_mask. Default to_async_mask to return_one. | |
7125 | (target_async_mask): Delete. | |
7126 | (find_default_can_async_p, find_default_is_async_p): New. | |
7127 | (init_dummy_target): register find_default_can_async_p and | |
7128 | find_default_is_async_p on the dummy target. | |
7129 | ||
7130 | * linux-nat.c: Include inf-loop.h, event-loop.h and event-top.h. | |
7131 | (debug_linux_nat_async): New global. | |
7132 | (show_debug_linux_nat_async): New function. | |
7133 | (linux_nat_async_enabled, linux_nat_async_mask_value) | |
7134 | (linux_nat_event_pipe, linux_nat_num_queued_events) | |
7135 | (linux_nat_async_events_enabled): New globals. | |
7136 | (struct waitpid_result): New struct. | |
7137 | (waitpid_queue): New global. | |
7138 | (queued_waitpid, push_waitpid, drain_queued_events): New. | |
7139 | (my_waitpid): Call queued_waitpid. | |
7140 | (linux_child_follow_fork): Disable async events during the call. | |
7141 | (blocked_mask): Delete. | |
7142 | (sync_sigchld_action, async_sigchld_action): New globals. | |
7143 | (lin_lwp_attach_lwp): In sync mode, don't reblock SIGCHLD. In | |
7144 | async mode, block events during the call. | |
7145 | (linux_nat_create_inferior): New. | |
7146 | (linux_nat_attach): In sync mode, restore the mask states. In | |
7147 | async mode, wake the event loop immediatelly. | |
7148 | (detach_callback): Drain all queued events of the lwp we're | |
7149 | detaching from. | |
7150 | (linux_nat_detach): Block async mode, and drain events of the main | |
7151 | process. | |
7152 | (linux_nat_resume): If in async mode, mask async events during the | |
7153 | call. If short circuiting, force event loop to wake up. If | |
7154 | resuming, set target_executing, and register target events in the | |
7155 | event loop. | |
7156 | (pipe_to_local_event_queue, local_event_queue_to_pipe): New. | |
7157 | (linux_nat_wait): In async mode, block events during the call. | |
7158 | Only enable/disable passing SIGINT to the inferior in sync mode. | |
7159 | Get events from local waitpid queue. If no interesting events was | |
7160 | found, return to events loop. Reregister target events in the | |
7161 | event loop on exit. In sync mode, no need to reblock SIGCHLD. | |
7162 | (linux_nat_kill): Disable events on entry. | |
7163 | (linux_nat_mourn_inferior): In sync mode, don't restore the masks | |
7164 | here. Detach async mode from the event loop if there are no more | |
7165 | forks available, otherwise leave it on. | |
7166 | (sigchld_handler): Assure this is called only in sync mode. | |
7167 | (linux_async_permitted, linux_async_permitted_1): New globals. | |
7168 | (set_maintenance_linux_async_permitted) | |
7169 | (show_maintenance_linux_async_permitted): New functions. | |
7170 | (linux_nat_is_async_p, linux_nat_can_async_p) | |
7171 | (linux_nat_async_mask): New. | |
7172 | (linux_nat_event_pipe_pop, linux_nat_event_pipe_push): New. | |
7173 | (get_pending_events, async_sigchld_handler): New. | |
7174 | (linux_nat_async_events): New. | |
7175 | (async_terminal_is_ours): New global. | |
7176 | (linux_nat_terminal_inferior, linux_nat_terminal_ours): New. | |
7177 | (async_client_callback, async_client_context): New. | |
7178 | (linux_nat_async_file_handler, linux_nat_async) | |
7179 | (linux_nat_disable_async, linux_nat_enable_async): New. | |
7180 | (linux_nat_add_target): Register linux_nat_create_inferior, | |
7181 | linux_nat_can_async_p, linux_nat_is_async_p, linux_nat_async, | |
7182 | linux_nat_async_mask, linux_nat_terminal_inferior and | |
7183 | linux_nat_terminal_ours. | |
7184 | (_initialize_linux_nat): Remove local action variable, and update | |
7185 | code that used it to use sync_sigchld_action. Add new | |
7186 | "lin-lwp-async" debug set/show command. Put the "lin-lwp" debug | |
7187 | set/show command in the maintenance class. Add new "linux-async" | |
7188 | maintenance set/show command. Block SIGCHLD by default. Setup | |
7189 | async_sichld_action, and sync_sigchld_action. Install the default | |
7190 | async mode. | |
7191 | (lin_thread_get_thread_signals): Use a local sigset_t for blocking | |
7192 | the cancel signals. | |
7193 | ||
7194 | * linux-thread-db.c (re_check_for_thread_db): New. | |
7195 | (clear_lwpid_callback): Handle TARGET_WAITKIND_IGNORE. | |
7196 | (thread_db_can_async_p, thread_db_is_async_p, thread_db_async) | |
7197 | (thread_db_async_mask): New. | |
7198 | (init_thread_db_ops): Register thread_db_can_async_p, | |
7199 | thread_db_is_async_p, thread_db_async and thread_db_async_mask. | |
7200 | ||
7201 | * remote.c (remote_async_mask_value): New. | |
7202 | (remote_return_zero): New. | |
7203 | (init_remote_ops): Register remote_return_zero as callbacks of | |
7204 | to_can_async_p and to_is_async_p. | |
7205 | (remote_can_async_p, remote_is_async_p, remote_async): Update to | |
7206 | use remote_async_mask_value. | |
7207 | (remote_async_mask): New. | |
7208 | (init_remote_async_ops): Remove to_async_mask_value setting and | |
7209 | register remote_async_mask as to_async_mask callback in | |
7210 | remote_async_ops. | |
7211 | ||
7212 | * Makefile.in (linux-nat.o): Update. | |
7213 | ||
17faa917 DJ |
7214 | 2008-03-21 Daniel Jacobowitz <[email protected]> |
7215 | ||
7216 | * gdbthread.h (add_thread_with_info): New. | |
7217 | * linux-thread-db.c: Add some documentation. | |
7218 | (GET_LWP, GET_PID, GET_THREAD, is_lwp, is_thread, BUILD_LWP): Delete. | |
7219 | (struct private_thread_info): Remove th_valid and ti_valid. | |
7220 | Replace ti with tid. | |
7221 | (thread_get_info_callback): Do not add TID to the new ptid. Do | |
7222 | not cache th or ti. | |
7223 | (thread_db_map_id2thr, lwp_from_thread): Delete functions. | |
7224 | (thread_from_lwp): Assert that the LWP is set. Do not add TID to the | |
7225 | new PTID. | |
7226 | (attach_thread): Handle an already-existing thread. Use | |
7227 | add_thread_with_info. Cache the th and tid. | |
7228 | (detach_thread): Verify that private was set. Remove verbose | |
7229 | argument and printing. Update caller. | |
7230 | (thread_db_detach): Do not adjust inferior_ptid. | |
7231 | (clear_lwpid_callback, thread_db_resume, thread_db_kill): Delete. | |
7232 | (check_event, find_new_threads_callback): Do not add TID to the new PTID. | |
7233 | (thread_db_wait): Do not use lwp_from_thread. | |
7234 | (thread_db_pid_to_str): Use the cached TID. | |
7235 | (thread_db_extra_thread_info): Check that private is set. | |
7236 | (same_ptid_callback): Delete. | |
7237 | (thread_db_get_thread_local_address): Do not use it or check | |
7238 | is_thread. Check that private is set. Assume that the thread | |
7239 | handle is already cached. | |
7240 | (init_thread_db_ops): Remove to_resume and to_kill. | |
7241 | * thread.c (add_thread_with_info): New. | |
7242 | (add_thread): Use it. | |
7243 | * linux-nat.c (find_thread_from_lwp): Delete. | |
7244 | (exit_lwp): Do not use it. Check print_thread_events. Print before | |
7245 | deleting the thread. | |
7246 | (GET_PID, GET_LWP, BUILD_LWP, is_lwp): Move to... | |
7247 | * linux-nat.h (GET_PID, GET_LWP, BUILD_LWP, is_lwp): ...here. | |
7248 | * inf-ttrace.c (inf_ttrace_wait): Use print_thread_events and | |
7249 | printf_unfiltered for thread exits. | |
7250 | * procfs.c (procfs_wait): Likewise. | |
7251 | ||
6214f497 DJ |
7252 | 2008-03-21 Chris Demetriou <[email protected]> |
7253 | ||
7254 | * symtab.c (rbreak_command): Quote symbol name before passing | |
7255 | it to break_command. | |
7256 | ||
63092375 DJ |
7257 | 2008-03-21 Daniel Jacobowitz <[email protected]> |
7258 | ||
7259 | * eval.c (evaluate_subexp_for_address): Clarify error message. | |
7260 | Use value_must_coerce_to_target. | |
7261 | * infcall.c (value_arg_coerce): Call value_coerce_to_target. | |
7262 | * valops.c (value_assign): Call value_coerce_to_target when | |
7263 | assigning to anything but internalvars. Leave GDB-side arrays | |
7264 | as arrays when assigning to internalvars. | |
7265 | (value_must_coerce_to_target, value_coerce_to_target): New. | |
7266 | (value_coerce_array, value_addr): Call value_coerce_to_target. | |
7267 | (value_array): Create the array in GDB's memory instead of | |
7268 | the inferior's. | |
7269 | * value.h (value_must_coerce_to_target, value_coerce_to_target): | |
7270 | Declare. | |
7271 | ||
b21991b0 DJ |
7272 | 2008-03-21 Daniel Jacobowitz <[email protected]> |
7273 | ||
7274 | * top.c (quit_confirm): Warn that we will kill the program. | |
7275 | ||
49a834f9 PA |
7276 | 2008-03-19 Pedro Alves <[email protected]> |
7277 | ||
7278 | * inflow.c (terminal_ours_1): Guard access to | |
7279 | inferior_process_group with #ifdef PROCESS_GROUP_TYPE. | |
7280 | ||
ae0d2f24 UW |
7281 | 2008-03-18 Ulrich Weigand <[email protected]> |
7282 | Jim Blandy <[email protected]> | |
7283 | Daniel Jacobowitz <[email protected]> | |
7284 | ||
7285 | * dwarf2expr.h (struct dwarf_expr_context): Add ADDR_SIZE member. | |
7286 | (dwarf2_read_address): Update prototype. | |
7287 | ||
7288 | * dwarf2expr.c (unsigned_address_type): Add ADDR_SIZE parameter. | |
7289 | (signed_address_type): Likewise. | |
7290 | (dwarf2_read_address): Replace BYTES_READ parameter with ADDR_SIZE. | |
7291 | (execute_stack_op): Update calls to unsigned_address_type, | |
7292 | signed_address_type and dwarf2_read_address. Fix implementation | |
7293 | of DW_OP_deref_size. | |
7294 | ||
7295 | * dwarf2loc.h (dwarf2_per_cu_objfile): Add prototype. | |
7296 | (dwarf2_per_cu_addr_size): Likewise. | |
7297 | (struct dwarf2_locexpr_baton): Replace OBJFILE with PER_CU. | |
7298 | (struct dwarf2_loclist_baton): Likewise. | |
7299 | ||
7300 | * dwarf2loc.c (find_location_expression): Update calls to | |
7301 | dwarf2_read_address. Use dwarf2_per_cu_objfile and | |
7302 | dwarf2_per_cu_addr_size to retrieve PER_CU parameters. | |
7303 | (locexpr_describe_location): Likewise. | |
7304 | (dwarf2_evaluate_loc_desc): Replace OBJFILE with PER_CU parameter. | |
7305 | Set ctx->addr_size to dwarf2_per_cu_addr_size (per_cu). | |
7306 | (dwarf2_loc_desc_needs_frame): Add PER_CU parameter. Set ctx->addr_size | |
7307 | to dwarf2_per_cu_addr_size (per_cu). | |
7308 | (locexpr_read_variable): Update dwarf2_evaluate_loc_desc call. | |
7309 | (loclist_read_variable): Likewise. | |
7310 | (locexpr_read_needs_frame): Update dwarf2_loc_desc_needs_frame call. | |
7311 | ||
7312 | * dwarf2read.c (dwarf2_symbol_mark_computed): Set baton->per_cu | |
7313 | instead of baton->objfile. | |
7314 | (dwarf2_per_cu_obfile): New function. | |
7315 | (dwarf2_per_cu_addr_size): Likewise. | |
7316 | ||
7317 | * dwarf2-frame.c (struct comp_unit): Move higher. | |
7318 | (struct dwarf2_cie): Add UNIT and ADDR_SIZE members. | |
7319 | (execute_stack_op): Add ADDR_SIZE parameter; set ctx->addr_size. | |
7320 | (execute_cfa_program): Add FDE parameter. Replace EH_FRAME_P | |
7321 | parameter by using fde->eh_frame_p. Use read_encoded_value | |
7322 | to implement DW_CFA_set_loc. | |
7323 | (struct dwarf2_frame_cache): Add ADDR_SIZE member. | |
7324 | (dwarf2_frame_cache): Set cache->addr_size. Update calls to | |
7325 | execute_stack_op and execute_cfa_program. | |
7326 | (dwarf2_frame_prev_register): Update calls to execute_stack_op. | |
7327 | (size_of_encoded_value): Remove. | |
7328 | (read_encoded_value): Add PTR_LEN and FUNC_BASE parameters. | |
7329 | Remove call to size_of_encoded_value. Implement DW_EH_PE_funcrel. | |
7330 | (add_cie): Set cie->unit backlink. | |
7331 | (decode_frame_entry_1): Set cie->addr_size. Update calls to | |
7332 | read_encoded_value. | |
7333 | (dwarf2_build_frame_info): Allocate UNIT on objfile obstack. | |
7334 | ||
1c8201d1 MD |
7335 | 2008-03-17 Markus Deuling <[email protected]> |
7336 | ||
7337 | * i386-tdep.c (i386_print_insn): Remove unnecessary call to | |
7338 | gdbarch_bfd_arch_info. | |
7339 | ||
46bba1ef JB |
7340 | 2008-03-17 Joel Brobecker <[email protected]> |
7341 | ||
7342 | * aix-thread.c (pdc_read_regs): Minor reformatting. | |
7343 | ||
0bcd3e20 VP |
7344 | 2008-03-17 Vladimir Prus <[email protected]> |
7345 | ||
7346 | * thread.c (print_thread_info): Don't insist | |
7347 | on having current thread if there are no | |
7348 | threads at all. | |
7349 | ||
9356cf8d PA |
7350 | 2008-03-17 Pedro Alves <[email protected]> |
7351 | ||
7352 | * infcmd.c (attach_command_post_wait) | |
7353 | (attach_command_continuation): New. | |
7354 | (attach_command): Support background async execution, and async | |
7355 | execution in synchronous mode. | |
7356 | ||
5c3ce3f7 DJ |
7357 | 2008-03-17 Daniel Jacobowitz <[email protected]> |
7358 | ||
7359 | * stack.c (print_stack_frame, print_frame): Use RETURN_MASK_ERROR. | |
7360 | * symmisc.c (dump_symtab_1): Likewise. | |
7361 | * wrapper.c (gdb_value_struct_elt): Likewise. | |
7362 | ||
fa2c6a57 PA |
7363 | 2008-03-17 Pedro Alves <[email protected]> |
7364 | ||
7365 | * linux-nat.c (linux_nat_filter_event): Fix comment typo. | |
7366 | ||
02f3fc28 PA |
7367 | 2008-03-17 Pedro Alves <[email protected]> |
7368 | ||
7369 | * linux-nat.c (linux_nat_filter_event): New, refactored from | |
7370 | linux_nat_wait. | |
7371 | (linux_nat_wait): Call linux_nat_filter_event. | |
7372 | ||
2f77b315 UW |
7373 | 2008-03-17 Ulrich Weigand <[email protected]> |
7374 | ||
7375 | * top.c (execute_command): Fix uninitialized variable error. | |
7376 | ||
f01be29b NH |
7377 | 2008-03-16 Nick Hudson <[email protected]> |
7378 | ||
680b56ce AS |
7379 | * Makefile.in (amd64nbsd-nat.o): New dependency. |
7380 | * amd64nbsd-nat.c: Include "nbsd-nat.h". | |
7381 | (_initialize_amd64nbsd_nat): Update target vector to use | |
7382 | nbsd_pid_to_exec_file. | |
7383 | * config/i386/nbsd64.mh (NATDEPFILES): Add nbsd-nat.o. | |
f01be29b | 7384 | |
6cf32704 VP |
7385 | 2008-03-15 Vladimir Prus <[email protected]> |
7386 | ||
7387 | Remove ignoring leading exec events code. | |
680b56ce AS |
7388 | * fork-child.c (startup_inferior): Do not set |
7389 | inferior_ignoring_leading_exec_events. | |
7390 | * inf-child.c (inf_child_reported_exec_events_per_exec_call): Remove. | |
7391 | (inf_child_target): Do not set to_reported_exec_events_per_exec_call. | |
7392 | * infrun.c (inferior_ignoring_leading_exec_events): Remove. | |
7393 | (handle_inferior_event): Remove code for ignoring leading exec | |
7394 | events. | |
7395 | * target.c (update_current_target): Do not inherit, or default, | |
7396 | to_reported_exec_events_per_exec_call. | |
7397 | (debug_to_reported_exec_events_per_exec_call): Remove. | |
7398 | (setup_target_debug): Do not set to_reported_exec_events_per_exec_call. | |
7399 | * target.h (target_reported_exec_events_per_exec_call): Remove. | |
7400 | (struct target): Remove the to_reported_exec_events_per_exec_call | |
7401 | field. | |
6cf32704 | 7402 | |
8e8901c5 VP |
7403 | 2008-03-15 Vladimir Prus <[email protected]> |
7404 | ||
7405 | Implement -thread-info. | |
680b56ce | 7406 | * gdbthread.h (print_thread_info): Declare. |
8e8901c5 | 7407 | |
680b56ce AS |
7408 | * thread.c (print_thread_info): New, extracted |
7409 | from info_threads_command and adjusted to | |
7410 | work for CLI and MI. | |
7411 | (info_threads_command): Use print_thread_info. | |
8e8901c5 VP |
7412 | * Makefile.in: Update dependencies. |
7413 | ||
680b56ce AS |
7414 | * mi/mi-cmds.c (mi_cmds): Specify a handler |
7415 | for -thread-info. | |
7416 | * mi/mi-cmds.h (mi_cmd_thread_info): Declare. | |
7417 | * mi/mi-main.c (mi_cmd_thread_info): New. | |
7418 | (mi_cmd_list_features): Include 'thread-info'. | |
8e8901c5 | 7419 | |
7d1e6fb8 KB |
7420 | 2008-03-14 Kevin Buettner <[email protected]> |
7421 | ||
7422 | * mips-tdep.c (mips32_scan_prologue): Use the ABI register size | |
7423 | to decide whether to match instruction patterns using "sw" and "sd". | |
7424 | ||
89113898 PA |
7425 | 2008-03-14 Pedro Alves <[email protected]> |
7426 | ||
7427 | * infcmd.c (jump_command): Postpone disabling stdin until after | |
7428 | the possible query. | |
7429 | ||
64a0ac84 PA |
7430 | 2008-03-14 Pedro Alves <[email protected]> |
7431 | ||
7432 | * inflow.c (gdb_getpgrp): New. | |
7433 | (gdb_has_a_terminal): Use get_getpgrp. | |
7434 | (terminal_ours_1): If attach_flag is set, don't refetch | |
7435 | inferior_process_group. | |
7436 | ||
1fddbabb PA |
7437 | 2008-03-14 Pedro Alves <[email protected]> |
7438 | ||
7439 | * features/library-list.dtd: Allow "section" elements as children | |
7440 | of "library". Add "section" element and describe its attributes. | |
7441 | ||
7442 | * solib-target.c (struct lm_info): Add section_bases member. | |
7443 | (library_list_start_segment): Error out if seen a section element. | |
7444 | (library_list_start_section): New. | |
7445 | (library_list_end_library): New. | |
7446 | (solib_target_free_library_list): Free section_bases. | |
7447 | (section_attributes): New. | |
7448 | (library_children): Make "segment" optional. Add "section" child. | |
7449 | (library_list_children): Register library_list_end_library. | |
7450 | (solib_target_relocate_section_addresses): Handle section bases. | |
7451 | ||
7452 | * NEWS: Mention new qXfer:libraries:read section offsets support. | |
7453 | ||
712af3be VP |
7454 | 2008-03-14 Vladimir Prus <[email protected]> |
7455 | ||
7456 | * defs.h (do_exec_error_cleanups, discard_exec_error_cleanups) | |
7457 | (make_exec_error_cleanup): Remove declarations. | |
7458 | * utils.c (exec_error_cleanup_chain): Remove. | |
7459 | (do_exec_error_cleanups, discard_exec_error_cleanups) | |
7460 | (make_exec_error_cleanup): Remove. | |
7461 | * event-loop.c (start_event_loop): Adjust call to | |
7462 | async_enable_stdin. | |
7463 | * event-top.c (async_enable_stdin): Remove the paramater dummy. | |
7464 | (async_disable_stdin): Don't register async_enable_stdin via | |
7465 | cleanup. | |
7466 | * inf-loop.c (inferior_event_handler): Don't | |
7467 | call do_exec_error_cleanups. Call async_enable_stdin instead. | |
7468 | * event-loop.c (start_event_loop): Adjust call to | |
7469 | async_enable_stdin. | |
7470 | * tui/tui-interp.c (tui_command_loop): Adjust call to | |
7471 | async_enable_stdin. | |
7472 | ||
32c1e744 VP |
7473 | 2008-03-14 Vladimir Prus <[email protected]> |
7474 | ||
7475 | Async mode fixes. | |
680b56ce AS |
7476 | * Makefile.in (infcmd.o, inf-loop.o): Update dependencies. |
7477 | * breakpoint.c (bpstat_do_actions): In async mode, | |
7478 | don't jump to top expecting stop_bpstat to be already | |
7479 | updated. | |
7480 | * event-loop.c (start_event_loop): Call async_enable_stdin | |
7481 | on exception. | |
7482 | * event-top.c (async_enable_stdin): Do nothing if sync_execution | |
7483 | is not set. | |
7484 | (command_handler): Do not setup continuation here. | |
7485 | (command_line_handler_continuation): Move to... | |
7486 | * top.c (command_line_handler_continuation): ... here. | |
7487 | (execute_command): In async mode, register continuation. | |
7488 | Don't check frame's language in running in async mode. | |
7489 | * exceptions.c (throw_exception): Don't do exec_error_cleanups. | |
7490 | * inf-loop.c (complete_execution): Inline into... | |
7491 | (inferior_event_handler): ... here. Clear target_executing before | |
7492 | doing any cleanups. Don't try to show prompt if the target was | |
7493 | resumed. | |
7494 | * infcmd.c (signal_command): Add support for async mode. | |
7495 | (finish_command): Only add continuation if the target was | |
7496 | successfully resumed. | |
7497 | * remote.c (init_async_opts): Register to_get_thread_local_address | |
7498 | handler. | |
7499 | * mi/mi-interp.c (mi_cmd_interpreter_exec): Don't mess | |
7500 | with sync_execution. | |
7501 | * tui/tui-interp.c (tui_command_loop): Call async_enable_stdin | |
7502 | on exception. | |
32c1e744 | 7503 | |
c04ea773 DJ |
7504 | 2008-03-14 Daniel Jacobowitz <[email protected]> |
7505 | ||
7506 | * corefile.c (reopen_exec_file): Use exec_bfd_mtime. | |
7507 | * exec.c (exec_bfd_mtime): Define. | |
7508 | (exec_close): Clear it. | |
7509 | (exec_file_attach): Set it. | |
7510 | * gdbcore.h (exec_bfd_mtime): Declare. | |
7511 | * source.c (find_source_lines): Do not use bfd_get_mtime. | |
7512 | ||
952dc227 VP |
7513 | 2008-03-14 Vladimir Prus <[email protected]> |
7514 | ||
7515 | * top.c (simplified_command_loop): Remove. | |
7516 | ||
4cf46804 VP |
7517 | 2008-03-14 Vladimir Prus <[email protected]> |
7518 | ||
7519 | Remove unused remote.c hooks. | |
680b56ce AS |
7520 | * remote.c (deprecated_target_resume_hook) |
7521 | (deprecated_target_wait_loop_hook): Remove. | |
7522 | (remote_resume): Do not call deprecated_target_resume_hook. | |
7523 | (remote_wait): Do not call deprecated_target_wait_loop_hook. | |
7524 | (remote_async_wait): Likewise. | |
4cf46804 | 7525 | |
683f2885 VP |
7526 | 2008-03-14 Vladimir Prus <[email protected]> |
7527 | ||
7528 | Implement MI notification for new threads. | |
680b56ce AS |
7529 | * doc/observer.texi (new_thread): Document. |
7530 | * observer.sh: Forward declare struct thread_info. | |
7531 | * thread.c (add_thread): Notify observer. | |
7532 | ||
7533 | * interps.h (interp_init_ftype): New parameter | |
7534 | top_level. | |
7535 | (interp_set): Likewise. | |
7536 | (top_level_interpreter_data): Declare. | |
7537 | * interps.c (interp_set): New parameter top_level. | |
7538 | Pass it to interpreter's init function. Remember | |
7539 | top level interpreter. | |
7540 | (interpreter_exec_cmd): Adjust. | |
7541 | (top_level_interpreter_data): New. | |
7542 | * main.c (captured_main): Pass 1 for top_level | |
7543 | parameter of interp_set. | |
683f2885 | 7544 | * cli/cli-interp.c (cli_interpreter_init): New |
680b56ce AS |
7545 | parameter top_level. |
7546 | * tui/tui-interp.c (tui_init): New parameter top_level. | |
683f2885 | 7547 | |
680b56ce AS |
7548 | * mi/mi-interp.c (mi_new_thread): New. |
7549 | (mi_interpreter_init): If top level, register | |
7550 | observer for new threads. | |
683f2885 | 7551 | |
680b56ce | 7552 | * Makefile.in (mi-interp.o, thread.o): Update dependencies. |
683f2885 | 7553 | |
ff9b3928 PA |
7554 | 2008-03-14 Pedro Alves <[email protected]> |
7555 | ||
7556 | * top.c (execute_command): Disable break and stop | |
7557 | commands in async mode. | |
7558 | ||
b18392ef PA |
7559 | 2008-03-14 Pedro Alves <[email protected]> |
7560 | ||
7561 | revert: | |
7562 | 2008-03-14 Pedro Alves <[email protected]> | |
7563 | * inf-loop.c (inferior_event_handler): Don't include remote.h. | |
7564 | Call target_stop in the INF_QUIT_REQ case. | |
7565 | * Makefile.in (inf-loop.o): Update. | |
7566 | ||
0aca9f07 PA |
7567 | 2008-03-14 Pedro Alves <[email protected]> |
7568 | ||
7569 | * inf-loop.c (inferior_event_handler): Don't include remote.h. | |
7570 | Call target_stop in the INF_QUIT_REQ case. | |
7571 | * Makefile.in (inf-loop.o): Update. | |
7572 | ||
0b4e556c PA |
7573 | 2008-03-14 Pedro Alves <[email protected]> |
7574 | ||
7575 | * top.c (execute_command): Enable break, info and interrupt | |
7576 | commands in async mode. | |
7577 | ||
8defab1a DJ |
7578 | 2008-03-13 Vladimir Prus <[email protected]> |
7579 | Daniel Jacobowitz <[email protected]> | |
7580 | ||
7581 | * breakpoint.h (breakpoint_restore_shadows): New | |
7582 | declaration. | |
7583 | * breakpoint.c (breakpoint_restore_shadows): New. | |
7584 | (read_memory_nobpt): Delete. | |
7585 | * gdbcore.h (read_memory_nobpt): Delete declaration. | |
7586 | * target.c (memory_xfer_partial): Call | |
7587 | breakpoint_restore_shadows. | |
7588 | (restore_show_memory_breakpoints) | |
7589 | (make_show_memory_beakpoints_cleanup): New. | |
7590 | (show_memory_breakpoints): New. | |
7591 | * target.h (make_show_memory_beakpoints_cleanup): Declare. | |
7592 | * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): | |
7593 | Make sure we see memory breakpoints when checking if | |
7594 | breakpoint is still there. | |
7595 | * alpha-tdep.c, alphanbsd-tdep.c, frame.c, frv-tdep.c, | |
7596 | hppa-linux-tdep.c, hppa-tdep.c, i386-linux-nat.c, i386-tdep.c, | |
7597 | m68klinux-tdep.c, mips-tdep.c, mn10300-tdep.c, s390-tdep.c, | |
7598 | sparc-tdep.c: Use target_read_memory instead of read_memory_nobpt. | |
7599 | ||
fd532e2e PA |
7600 | 2008-03-12 Pedro Alves <[email protected]> |
7601 | ||
7602 | * thread.c (add_thread): Use printf_unfiltered to print. | |
7603 | ||
f749779f | 7604 | 2008-03-12 Joel Brobecker <[email protected]> |
965b60ee JB |
7605 | |
7606 | * sol-thread.c: Replace use of TM_I386SOL2_H by an expression | |
7607 | that is true only on x86-solaris and x86_64-solaris. | |
7608 | * procfs.c: Likewise. Move procfs_find_LDT_entry up together | |
7609 | with proc_get_LDT_entry. | |
7610 | ||
7611 | 2008-03-12 Thiago Jung Bauermann <[email protected]> | |
83116857 TJB |
7612 | |
7613 | * configure.ac (AC_CHECK_FUNCS): Add check for setsid. | |
7614 | * config.in, configure: Regenerate. | |
7615 | * fork-child.c (fork_inferior): Call create_tty_session. | |
7616 | * inflow.c (new_tty): Set controlling terminal with TIOCSCTTY. | |
7617 | (create_tty_session): New function. | |
7618 | * terminal.h: Declare create_tty_session. | |
7619 | ||
4fbb74a6 AM |
7620 | 2008-03-12 Alan Modra <[email protected]> |
7621 | ||
7622 | PR 5900 | |
7623 | * elfread.c (elf_symtab_read): Make shndx an unsigned int. | |
7624 | * mipsread.c: Include elf/internal.h. | |
7625 | (read_alphacoff_dynamic_symtab): Map external reserved sym_shndx | |
7626 | to internal range. | |
7627 | ||
20a6ec49 MD |
7628 | 2008-03-11 Markus Deuling <[email protected]> |
7629 | ||
7630 | * win32-nat.c (do_win32_fetch_inferior_registers): Use get_regcache_arch | |
7631 | to get at the current architecture and at the target specific vector. | |
7632 | Add target specific vector to I387_FISEG_REGNUM and I387_FOP_REGNUM and | |
7633 | remove define of I387_ST0_REGNUM. | |
7634 | ||
7635 | * amd64-tdep.c (I387_ST0_REGNUM): Remove define. | |
7636 | ||
7637 | (amd64_supply_fxsave, amd64_collect_fxsave): Use get_regcache_arch to | |
7638 | get at the current architecture | |
7639 | (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Add target specific vector as | |
7640 | parameter. | |
7641 | ||
7642 | * i386-tdep.c: Remove various define's and undef's of I387_ST0_REGNUM, | |
7643 | I387_NUM_XMM_REGS and I387_MM0_REGNUM. | |
7644 | ||
7645 | (I387_NUM_XMM_REGS, I387_XMM0_REGNUM, I387_MXCSR_REGNUM, | |
7646 | I387_ST0_REGNUM, I387_FCTRL_REGNUM, I387_MM0_REGNUM, | |
7647 | (I387_FSTAT_REGNUM): Add target specific vector as parameter. | |
7648 | ||
7649 | (i386_register_name, i386_dbx_reg_to_regnum): Use gdbarch_tdep to get | |
7650 | at the target specific vector. | |
7651 | ||
7652 | (i386_get_longjmp_target): Use get_frame_arch to get at the current | |
7653 | architecture. Use gdbarch_tdep to get at the target specific vector. | |
7654 | ||
7655 | (i386_fp_regnum_p, i386_fpc_regnum_p): Add gdbarch as parameter and | |
7656 | update caller. Use gdbarch_tdep to get at the target specific vector. | |
7657 | ||
7658 | (i386_register_to_value: Use get_frame_arch to get at the current | |
7659 | architecture. | |
7660 | ||
7661 | * i386-tdep.h (i386_fp_regnum_p, i386_fpc_regnum_p): Add gdbarch as | |
7662 | parameter. | |
7663 | ||
7664 | * i387-tdep.c (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM, I387_FTAG_REGNUM, | |
7665 | I387_FISEG_REGNUM, I387_FIOFF_REGNUM, I387_FOSEG_REGNUM | |
7666 | I387_FOOFF_REGNUM, I387_FOP_REGNUM, I387_ST0_REGNUM, FSAVE_ADDR, | |
7667 | FXSAVE_ADDR, I387_XMM0_REGNUM): Add target specific vector as parameter. | |
7668 | ||
7669 | (I387_ST0_REGNUM, I387_NUM_XMM_REGS): Remove various define's and | |
7670 | undef's. | |
7671 | ||
7672 | (i387_convert_register_p, i387_register_to_value, | |
7673 | i387_value_to_register): Update call for i386_fp_regnum_p. | |
7674 | ||
7675 | * i387-tdep.h: Remove comment. | |
7676 | (I387_ST0_REGNUM, I387_NUM_XMM_REGS, I387_MM0_REGNUM): Add define. | |
7677 | (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM, I387_FTAG_REGNUM, | |
7678 | I387_FISEG_REGNUM, I387_FIOFF_REGNUM, I387_FOSEG_REGNUM, | |
7679 | I387_FOOFF_REGNUM, I387_FOP_REGNUM, I387_XMM0_REGNUM, | |
7680 | I387_MXCSR_REGNUM): Add target specific vector as parameter. | |
7681 | ||
ccd213ac DJ |
7682 | 2008-03-10 Daniel Jacobowitz <[email protected]> |
7683 | ||
7684 | * Makefile.in (fork-child.o): Update. | |
7685 | * NEWS: Document "set exec-wrapper" and the gdbserver --wrapper | |
7686 | argument. Gather all gdbserver features together. | |
7687 | * fork-child.c (exec_wrapper): New variable. | |
7688 | (fork_inferior): Use it. | |
7689 | (startup_inferior): Skip an extra trap if using "set exec-wrapper". | |
7690 | (unset_exec_wrapper_command, _initialize_fork_child): New. | |
7691 | ||
7692 | 2008-03-10 Hidetaka Takano <[email protected]> | |
80618b99 MS |
7693 | |
7694 | * source.c (directory_command): Modify the determination of | |
7695 | condition of terminal "from_tty". | |
7696 | ||
22566fbd DJ |
7697 | 2008-03-10 Matt Rice <[email protected]> |
7698 | ||
7699 | * dwarf2read.c (set_cu_language): Add DW_LANG_ObjC. | |
7700 | ||
9971ac47 UW |
7701 | 2008-03-10 Hidetaka Takano <[email protected]> |
7702 | ||
7703 | * spu-tdep.c (info_spu_event_command): Insert a '\0' to the end | |
7704 | of the data passing to strtoulst function. | |
7705 | (info_spu_signal_command): Likewise. | |
7706 | ||
835670cf VP |
7707 | 2008-03-08 Vladimir Prus <[email protected]> |
7708 | ||
7709 | * mi/mi-interp.c (mi_command_loop): Remove | |
7710 | commented-out code. | |
680b56ce | 7711 | |
be86555c JB |
7712 | 2008-03-07 Joel Brobecker <[email protected]> |
7713 | ||
7714 | * remote.c (extended_remote_attach_1): Make local variable pid an int | |
7715 | instead of a pid_t. | |
7716 | ||
4d7b2d5b JB |
7717 | 2008-03-07 Joel Brobecker <[email protected]> |
7718 | ||
7719 | * solib-svr4.c (svr4_same_1): New function, originally extracted | |
7720 | from svr4_same and expanded to handle the sparc64 case. | |
7721 | (svr4_same): Move up and reimplement using svr4_same_1. | |
7722 | (enable_break): Use svr4_same_1 to do shared library name comparisons. | |
7723 | ||
61fed90e RR |
7724 | 2008-03-07 Ramana Radhakrishnan <[email protected]> |
7725 | ||
7726 | * MAINTAINERS: Move self to Paper trail. | |
7727 | ||
b803fb0f DJ |
7728 | 2008-03-05 Daniel Jacobowitz <[email protected]> |
7729 | ||
7730 | * Makefile.in (mingw-hdep.o, posix-hdep.o, remote-fileio.o): Update. | |
7731 | * event-loop.c (call_async_signal_handler): New. | |
7732 | * event-loop.h (call_async_signal_handler) | |
7733 | (gdb_call_async_signal_handler): Declare. | |
7734 | (mark_async_signal_handler): Add comments. | |
7735 | * event-top.c (handle_sigint): Use gdb_call_async_signal_handler. | |
7736 | * mingw-hdep.c (sigint_event, sigint_handler): New. | |
7737 | (gdb_select): Use them. Wait for the readline signal handler | |
7738 | to finish. | |
7739 | (gdb_call_async_signal_handler, _initialize_mingw_hdep): New functions. | |
7740 | * posix-hdep.c (gdb_call_async_signal_handler): New function. | |
7741 | * remote-fileio.c (sigint_fileio_token, async_remote_fileio_interrupt): | |
7742 | New. | |
7743 | (remote_fileio_ctrl_c_signal_handler): Use | |
7744 | gdb_call_async_signal_handler. | |
7745 | (initialize_remote_fileio): Initialize sigint_fileio_token. | |
7746 | * remote.c (initialize_sigint_signal_handler, handle_remote_sigint): Do | |
7747 | not initialize tokens here. | |
7748 | (handle_remote_sigint_twice): Likewise. Reinstall | |
7749 | handle_remote_sigint. | |
7750 | (async_remote_interrupt_twice): Just call interrupt_query. | |
7751 | (cleanup_sigint_signal_handler): Do not delete tokens. | |
7752 | (remote_interrupt, remote_interrupt_twice): Use | |
7753 | gdb_call_async_signal_handler. | |
7754 | (interrupt_query): Reinstall the default signal handler. | |
7755 | (_initialize_remote): Initialize tokens here. | |
7756 | ||
8f4d54ed JB |
7757 | 2008-03-04 Joel Brobecker <[email protected]> |
7758 | ||
7759 | * features/rs6000/power-core.xml, features/rs6000/power64-core.xml, | |
7760 | features/rs6000/powerpc-601.xml, features/rs6000/rs6000.xml: | |
7761 | Change the type of the lr register to code_ptr. | |
7762 | * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c, | |
7763 | features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c, | |
7764 | features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c, | |
7765 | features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c, | |
7766 | features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c, | |
7767 | features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c, | |
7768 | features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c: Regenerate. | |
7769 | ||
95ece428 JW |
7770 | 2008-03-03 James E. Wilson <[email protected]> |
7771 | ||
7772 | * MAINTAINERS: Update my email address. | |
7773 | ||
686a5eed KS |
7774 | 2008-03-03 Keith Seitz <[email protected]> |
7775 | ||
7776 | From Dave Murphy <[email protected]>: | |
7777 | * configure.ac: Set tcl configdir to win under mingw. | |
7778 | * configure: Regenerate. | |
7779 | ||
fa4727a6 DJ |
7780 | 2008-03-03 Daniel Jacobowitz <[email protected]> |
7781 | ||
7782 | * breakpoint.c (fetch_watchpoint_value): New function. | |
7783 | (update_watchpoint): Set and clear val_valid. Use | |
7784 | fetch_watchpoint_value. Handle unreadable values on the | |
7785 | value chain. Correct check for user-requested array watchpoints. | |
7786 | (breakpoint_init_inferior): Clear val_valid. | |
7787 | (watchpoint_value_print): New function. | |
7788 | (print_it_typical): Use it. Do not free or clear old_val. Print | |
7789 | watchpoints even if old_val == NULL. | |
7790 | (watchpoint_check): Use fetch_watchpoint_value. Check for values | |
7791 | becoming readable or unreadable. | |
7792 | (watch_command_1): Use fetch_watchpoint_value. Set val_valid. | |
7793 | (do_enable_watchpoint): Likewise. | |
7794 | * breakpoint.h (struct breakpoint): Update comment for val. Add | |
7795 | val_valid. | |
7796 | * NEWS: Mention watchpoints on inaccessible memory. | |
7797 | ||
c03374d5 DJ |
7798 | 2007-02-29 Daniel Jacobowitz <[email protected]> |
7799 | ||
7800 | * Makefile.in (i386-nat.o): Update. | |
7801 | * amd64-linux-nat.c (_initialize_amd64_linux_nat): Call | |
7802 | i386_use_watchpoints. | |
7803 | * i386-linux-nat.c (_initialize_i386_linux_nat): Call | |
7804 | i386_use_watchpoints. | |
7805 | * i386-nat.c (i386_stopped_data_address): Take two arguments. | |
7806 | (i386_stopped_by_watchpoint): Update call. | |
7807 | (i386_can_use_hw_breakpoint, i386_use_watchpoints): New. | |
7808 | * config/i386/nm-i386.h: Conditionalize definitions on | |
7809 | ! I386_WATCHPOINTS_IN_TARGET_VECTOR. | |
7810 | (i386_use_watchpoints): Declare. | |
7811 | (i386_stopped_data_address): Update. | |
7812 | * config/i386/nm-linux.h (I386_WATCHPOINTS_IN_TARGET_VECTOR): Define. | |
7813 | * config/i386/nm-linux64.h (I386_WATCHPOINTS_IN_TARGET_VECTOR): Define. | |
7814 | ||
c24d7425 | 7815 | 2008-02-29 Joel Brobecker <[email protected]> |
7816 | ||
7817 | GDB 6.8 branch created (branch timestamp: 2008-02-26 10:00 UTC) | |
7818 | * version.in: Bump version to 6.8.50.20080229-cvs. | |
7819 | ||
a7dfd010 MD |
7820 | 2008-02-28 Markus Deuling <[email protected]> |
7821 | ||
7822 | * f-typeprint.c (f_print_type): Handle NULL pointer in VARSTRING | |
7823 | properly. | |
7824 | ||
258c00cc TT |
7825 | 2008-02-28 Tom Tromey <[email protected]> |
7826 | ||
7827 | * infcmd.c (notice_args_read): Print result of get_inferior_args. | |
7828 | ||
8edfe269 DJ |
7829 | 2008-02-28 Daniel Jacobowitz <[email protected]> |
7830 | ||
7831 | * infcmd.c (kill_if_already_running): Make static. Use | |
7832 | target_require_runnable. | |
7833 | * target.c (target_require_runnable): New. | |
7834 | * target.h (target_require_runnable): Declare. | |
7835 | ||
0d6ba1b1 DJ |
7836 | 2008-02-28 Daniel Jacobowitz <[email protected]> |
7837 | ||
7838 | * frame.c (reinit_frame_cache): Only annotate if frames were | |
7839 | previously valid. | |
7840 | ||
6fe305f7 UW |
7841 | 2008-02-28 Ulrich Weigand <[email protected]> |
7842 | ||
7843 | * regformats/reg-ppc.dat: Rename "ps" to "msr". | |
7844 | * regformats/reg-ppc64.dat: Likewise. | |
7845 | ||
9b4b61c8 UW |
7846 | 2008-02-28 Ulrich Weigand <[email protected]> |
7847 | ||
7848 | * features/Makefile (%.dat): Emit xmltarget statement. | |
7849 | ||
7850 | * regformats/regdat.sh: Support xmltarget and xmlarch statments. | |
7851 | Generate code to set gdbserver_xmltarget in init_registers_${name}. | |
7852 | ||
7853 | * regformats/arm-with-iwmmxt.dat: Regenerate. | |
7854 | * regformats/mips64-linux.dat: Regenerate. | |
7855 | * regformats/mips-linux.dat: Regenerate. | |
7856 | * regformats/rs6000/powerpc-32.dat: Regenerate. | |
7857 | * regformats/rs6000/powerpc-64.dat: Regenerate. | |
7858 | * regformats/rs6000/powerpc-e500.dat: Regenerate. | |
7859 | ||
7860 | * regformats/reg-arm.dat: Add xmlarch statement. | |
7861 | * regformats/reg-i386.dat: Likewise. | |
7862 | * regformats/reg-i386-linux.dat: Likewise. | |
7863 | * regformats/reg-x86-64-linux.dat: Likewise. | |
7864 | * regformats/reg-spu.dat: Likewise. | |
7865 | ||
20b4711e DJ |
7866 | 2008-02-27 Daniel Jacobowitz <[email protected]> |
7867 | ||
7868 | * remote.c (remote_wait, remote_async_wait): Stop if we receive | |
7869 | an error. | |
7870 | ||
1843f87b DJ |
7871 | 2008-02-27 Daniel Jacobowitz <[email protected]> |
7872 | ||
7873 | * utils.c (debug_timestamp): New. | |
7874 | (vfprintf_unfiltered): Print timestamps if requested. | |
7875 | (show_debug_timestamp): New. | |
7876 | (initialize_utils): Register "set debug timestamp". | |
7877 | * NEWS: Mention "set debug timestamp". Add GDB 6.8 section. | |
7878 | ||
6a048695 JB |
7879 | 2008-02-27 Joel Brobecker <[email protected]> |
7880 | ||
7881 | * breakpoint.c (skip_prologue_sal): New function. | |
7882 | (resolve_sal_pc): Adjust SAL past prologue if the SAL was | |
7883 | computed from a line number. | |
7884 | ||
0b998f49 JB |
7885 | 2008-02-27 Joel Brobecker <[email protected]> |
7886 | ||
7887 | * features/rs6000/power-core.xml, features/rs6000/power64-core.xml | |
7888 | features/rs6000/powerpc-601.xml, features/rs6000/rs6000.xml: | |
7889 | Set PC register type to "code_ptr". | |
7890 | * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c, | |
7891 | features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c, | |
7892 | features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c, | |
7893 | features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c, | |
7894 | features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c, | |
7895 | features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c, | |
7896 | features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c: | |
7897 | Regenerate. | |
7898 | ||
d05b4ac3 UW |
7899 | 2008-02-27 Ulrich Weigand <[email protected]> |
7900 | ||
7901 | * regformats/regdat.sh: Rename init_registers function in | |
7902 | generated file to init_registers_${name}. | |
7903 | ||
7904 | * regformats/reg-crisv32.dat: Set "name" to crisv32. | |
7905 | * regformats/reg-ppc64.dat: Set "name" to ppc64. | |
7906 | * regformats/reg-s390x.dat: Set "name" to s390x. | |
7907 | ||
a5d9d57d DJ |
7908 | 2008-02-26 Greg Law <[email protected]> |
7909 | ||
7910 | * regcache.c (registers_changed): Call reinit_frame_cache. | |
7911 | ||
e25c958c DJ |
7912 | 2008-02-26 Daniel Jacobowitz <[email protected]> |
7913 | ||
7914 | * configure.tgt (sh-*-linux*): Match sh*. Add glibc-tdep.o. | |
7915 | * sh-linux-tdep.c (sh_linux_init_abi): Use glibc_skip_solib_resolver | |
7916 | and svr4_fetch_objfile_link_map. | |
7917 | * Makefile.in (sh-linux-tdep.o): Update. | |
7918 | ||
5daa78cc TJB |
7919 | 2008-02-26 Thiago Jung Bauermann <[email protected]> |
7920 | ||
7921 | * amd64-tdep.c (amd64_classify): Add support for decimal float | |
7922 | types. | |
7923 | * i386-tdep.c (i386_return_value): Make 128-bit decimal float | |
7924 | use the struct return convention. | |
7925 | ||
54e52265 VP |
7926 | 2008-02-26 Nick Roberts <[email protected]> |
7927 | ||
7928 | * breakpoint.c (print_one_breakpoint_location): Revert Enb field | |
7929 | to old format. Discard breakpoint address if shared library is | |
7930 | unloaded. | |
7931 | (breakpoint_1): Adjust formatting of table header accordingly. | |
7932 | ||
d8f2712d VP |
7933 | 2008-02-25 Vladimir Prus <[email protected]> |
7934 | ||
7935 | * remote.c (remote_get_threadlist): If the response | |
7936 | is empty, don't try to parse it. | |
7937 | ||
05ce04a4 VP |
7938 | 2008-02-23 Vladimir Prus <[email protected]> |
7939 | ||
7940 | Unbreak 'target async'. | |
680b56ce AS |
7941 | * serial.c (serial_async): Set the |
7942 | handler function before enabling async | |
7943 | mode. | |
05ce04a4 | 7944 | |
b36ec657 DJ |
7945 | 2008-02-22 Daniel Jacobowitz <[email protected]> |
7946 | ||
7947 | * solib-svr4.c (enable_break): Convert r_brk to a code address. | |
7948 | ||
df7df359 PA |
7949 | 2008-02-21 Pedro Alves <[email protected]> |
7950 | ||
7951 | * remote.c (extended_remote_attach_1): Set attach_flag. | |
7952 | (extended_remote_create_inferior_1): Clear attach_flag. | |
7953 | ||
7cd25cfc DJ |
7954 | 2008-02-20 Daniel Jacobowitz <[email protected]> |
7955 | ||
7956 | * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Set | |
7957 | r_brk_offset. | |
7958 | (mipsnbsd_lp64_fetch_link_map_offsets): Likewise. | |
7959 | * solib-svr4.c (solib_svr4_r_brk): New. | |
7960 | (open_symbol_file_object, svr4_current_sos): Always check the | |
7961 | debug base. | |
7962 | (svr4_fetch_objfile_link_map): Do not set debug_base. | |
7963 | (enable_break): Use r_brk if it is set. | |
7964 | (svr4_ilp32_fetch_link_map_offsets): Set r_brk_offset. | |
7965 | (svr4_lp64_fetch_link_map_offsets): Likewise. | |
7966 | * solib-svr4.h (struct link_map_offsets): Add r_brk_offset. | |
7967 | ||
07ea644b MD |
7968 | 2008-02-20 Markus Deuling <[email protected]> |
7969 | Mark Kettenis <[email protected]> | |
7970 | ||
7971 | * alpha-tdep.c (alpha_heuristic_unwind_cache): Replace saved_regs by | |
7972 | trad_frame_saved_reg. | |
680b56ce | 7973 | (trad-frame.h): New include. |
07ea644b MD |
7974 | |
7975 | (alpha_heuristic_frame_unwind_cache): Use trad_frame_alloc_saved_regs | |
680b56ce | 7976 | instead of frame_obstack_zalloc. |
07ea644b MD |
7977 | (alpha_heuristic_frame_prev_register): Use trad_frame_get_prev_register. |
7978 | ||
680b56ce | 7979 | * Makefile.in (alpha-tdep.o): Add dependency to trad_frame_h. |
07ea644b | 7980 | |
40887e1a MD |
7981 | 2008-02-20 Markus Deuling <[email protected]> |
7982 | ||
7983 | * rs6000-tdep.c (gdb_print_insn_powerpc): Get the current endianess | |
7984 | from disassemble_info instead of gdbarch_byte_order. | |
7985 | ||
7986 | * mips-tdep.c (gdb_print_insn_mips): Likewise. | |
7987 | * arm-tdep.c (gdb_print_insn_arm): Likewise. | |
7988 | ||
ae4b2284 MD |
7989 | 2008-02-20 Markus Deuling <[email protected]> |
7990 | ||
7991 | * gdbarch.sh (memory_insert_breakpoint, memory_remove_breakpoint): Add | |
7992 | gdbarch as parameter. | |
7993 | ||
7994 | * gdbarch.{c,h}: Regenerate. | |
7995 | ||
7996 | * ppc-tdep.h (ppc_linux_memory_remove_breakpoint): Add gdbarch as | |
7997 | parameter. | |
7998 | * mem-break.c (default_memory_insert_breakpoint) | |
7999 | (default_memory_remove_breakpoint): Likewise. | |
8000 | * target.h (default_memory_remove_breakpoint) | |
8001 | (default_memory_insert_breakpoint): Likewise. | |
8002 | ||
8003 | * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Add gdbarch as | |
8004 | parameter. Replace current_gdbarch by gdbarch. | |
8005 | * m32r-tdep.c (m32r_memory_insert_breakpoint) | |
8006 | (m32r_memory_remove_breakpoint): Likewise. | |
8007 | ||
d9bf65d5 DJ |
8008 | 2008-02-19 Daniel Jacobowitz <[email protected]> |
8009 | ||
8010 | * MAINTAINERS: Add Vladimir Prus as MI maintainer. | |
8011 | ||
b93b6ca7 JB |
8012 | 2008-02-19 Joel Brobecker <[email protected]> |
8013 | ||
8014 | * NEWS: Add entry describing Add support improvements. | |
8015 | ||
4ed226fe MD |
8016 | 2008-02-18 Markus Deuling <[email protected]> |
8017 | ||
8018 | * m68klinux-nat.c (getfpregs_supplies): Replace gdbarch_fp0_regnum by | |
8019 | M68K_FP0_REGNUM. | |
8020 | ||
caaa79ad MD |
8021 | 2008-02-18 Markus Deuling <[email protected]> |
8022 | ||
8023 | * sentinel-frame.c (sentinel_frame_prev_register): Do not call | |
8024 | register_offset_hack anymore. | |
8025 | ||
8026 | * regcache.{c,h} (register_offset_hack): Remove. | |
8027 | ||
e38c262f MD |
8028 | 2008-02-18 Markus Deuling <[email protected]> |
8029 | ||
8030 | * hppa-tdep.h (find_global_pointer): Add gdbarch as parameter. | |
8031 | ||
8032 | * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer): Likewise. Replace | |
8033 | current_gdbarch by gdbarch. | |
8034 | (hppa64_hpux_find_global_pointer): Likewise. | |
8035 | * hppa-tdep.c (hppa_find_global_pointer): Likewise. | |
8036 | (hppa32_push_dummy_call, hppa64_push_dummy_call): Update call for | |
8037 | find_global_pointer. | |
8038 | ||
8039 | * hppabsd-tdep.c (hppabsd_find_global_pointer): Add gdbarch as | |
8040 | parameter. | |
8041 | * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise. | |
8042 | ||
8043 | * hppa-linux-nat.c (hppa_linux_register_addr): Use ARRAY_SIZE instead | |
8044 | of gdbarch_num_regs. | |
8045 | ||
8046 | * hppa-hpux-tdep.c (hppa_hpux_sr_for_addr): Add gdbarch as parameter and | |
680b56ce | 8047 | replace current_gdbarch by gdbarch. |
e38c262f MD |
8048 | (hppa_hpux_push_dummy_code): Update call for hppa_hpux_sr_for_addr. |
8049 | ||
206988c4 MD |
8050 | 2008-02-18 Markus Deuling <[email protected]> |
8051 | ||
8052 | * rs6000-nat.c (exec_one_dummy_insn, regmap): Add gdbarch as parameter | |
8053 | and replace current_gdbarch by gdbarch. | |
8054 | ||
8055 | (store_register): Update call for exec_one_dummy_insn. | |
8056 | (fetch_register, store_register): Update call of regmap. | |
8057 | ||
8058 | * ppcnbsd-nat.c (getregs_supplies, getfpregs_supplies): Add gdbarch as | |
8059 | parameter and replace current_gdbarch by gdbarch. | |
680b56ce | 8060 | |
206988c4 MD |
8061 | (ppcnbsd_store_inferior_registers): Use get_regcache_arch to get at |
8062 | the current architecture. Update call for getregs_supplies and | |
8063 | getfpregs_supplies. | |
8064 | (ppcnbsd_fetch_inferior_registers): Likewise. | |
8065 | ||
680b56ce | 8066 | * ppcobsd-nat.c (getfpregs_supplies): Add gdbarch as parameter and |
206988c4 MD |
8067 | replace current_gdbarch by gdbarch. |
8068 | (ppcobsd_fetch_registers, ppcobsd_store_registers): Use | |
8069 | get_regcache_arch to get at the current architecture. Update call for | |
8070 | getfpregs_supplies. | |
8071 | ||
f642be6b MD |
8072 | 2008-02-18 Markus Deuling <[email protected]> |
8073 | ||
8074 | * arch-utils.c (gdbarch_from_bfd): Remove unnecessary {old,new}_gdbarch | |
680b56ce | 8075 | variables. |
f642be6b | 8076 | |
b1f2bf01 MD |
8077 | 2008-02-15 Markus Deuling <[email protected]> |
8078 | ||
8079 | * mips-linux-tdep.c (mips_linux_init_abi): Remove internal error. | |
8080 | ||
ee163bf5 VP |
8081 | 2008-02-14 Vladimir Prus <[email protected]> |
8082 | ||
8083 | * NEWS: Mention pending breakpints in MI. | |
680b56ce | 8084 | |
f6fbcbf9 MD |
8085 | 2008-02-14 Markus Deuling <[email protected]> |
8086 | ||
8087 | * Makefile.in (ALL_TARGET_OBS): Remove dependency to xtensa-linux-nat.o. | |
8088 | ||
36af4ef6 MD |
8089 | 2008-02-13 Markus Deuling <[email protected]> |
8090 | ||
8091 | Add script to build and test GDB using enable-targets=all. | |
8092 | ||
8093 | * gdb_buildall.sh: New file. | |
8094 | ||
94a0e877 MG |
8095 | 2008-02-11 Maxim Grigoriev <[email protected]> |
8096 | ||
8097 | * NEWS (New native configurations): Xtensa GNU/Linux. | |
8098 | (New targets): Xtensa GNU/Linux. | |
8099 | * Makefile.in (ALL_TARGET_OBS): Add xtensa-linux-nat.o and | |
8100 | xtensa-linux-tdep.o | |
8101 | (ALLDEPFILES): Add xtensa-linux-tdep.c and xtensa-linux-nat.c | |
8102 | (xtensa-linux-nat.o, xtensa-linux-tdep.o): New dependencies. | |
8103 | * configure.tgt (xtensa*-*-linux*): New entry. | |
8104 | * xtensa-config.c (xtensa_tdep): New variable. | |
8105 | (xtensa_config_byte_order, xtensa_config_tdep): Removed. | |
8106 | (rmap): Change format based on new macro XTREG. | |
8107 | (XTENSA_CONFIG_INSTANTIATE): Use new macro defined in xtensa-tdep.h. | |
8108 | * xtensa-linux-nat.c: New. | |
8109 | * xtensa-linux-tdep.c: New. | |
8110 | * xtensa-xtregs.c: New. | |
8111 | * xtensa-tdep.h (xtensa_elf_gregset_t): Update. | |
8112 | (XTENSA_ELF_NGREG, XTREG, XTREG_END, XTENSA_GDBARCH_TDEP_INSTANTIATE) | |
8113 | (XCHAL_NUM_CONTEXTS, XCHAL_HAVE_EXCEPTIONS): New macros. | |
8114 | (xtensa_register_t): New field coprocessor. | |
8115 | (XTENSA_REGISTER_FLAGS_PRIVILEGED): Name spelling corrected. | |
8116 | * xtensa-tdep.c (xtensa_config_tdep, xtensa_config_byte_order): Removed. | |
8117 | (xtensa_pseudo_register_read, xtensa_pseudo_register_write): | |
8118 | Update to handle privileged registers. | |
8119 | (xtensa_supply_gregset) Remove exccause and excvaddr registers. | |
8120 | (xtensa_push_dummy_call): Set windowstart register correctly. | |
8121 | (call0_analyze_prologue): Initialize xtensa_default_isa. | |
8122 | (xtensa_derive_tdep): New. | |
8123 | (xtensa_gdbarch_init): Get rid of xtensa_config_byte_order and | |
8124 | xtensa_config_tdep, use XCHAL_HAVE_BE and xtensa_tdep instead. | |
8125 | Call xtensa_derive_tdep(). | |
8126 | * config/xtensa/linux.mh: New. | |
8127 | * regformats/reg-xtensa.dat: New. | |
8128 | ||
b7ee1b0a | 8129 | 2008-02-09 Aleksandar Ristovski <[email protected]> (tiny change) |
f90c07ac EZ |
8130 | |
8131 | * corelow.c (core_open): Use IS_ABSOLUTE_PATH. | |
8132 | (filenames.h): New include. | |
8133 | * Makefile.in (corelow.o): Add dependency for filenames.h. | |
8134 | ||
8da2a1df DJ |
8135 | 2008-02-08 Doug Evans <[email protected]> |
8136 | ||
8137 | * source.c (find_and_open_source): Always rewrite absolute filenames. | |
8138 | ||
776592bf DE |
8139 | 2008-02-07 Doug Evans <[email protected]> |
8140 | ||
8141 | * breakpoint.c: #include "hashtab.h". | |
8142 | (ambiguous_names_p): New fn. | |
8143 | (update_breakpoint_locations): When restoring bp enable status, don't | |
8144 | compare function names if any functions have same name. | |
8145 | * Makefile.in (breakpoint.o): Add hashtab.h dependency. | |
8146 | ||
d6565258 JB |
8147 | 2008-02-07 Joel Brobecker <[email protected]> |
8148 | ||
8149 | * ada-lang.c (symbol_completion_add): Make SV parameter a VEC** | |
8150 | instead of just a VEC*. Update use of SV. | |
8151 | (ada_make_symbol_completion_list): Update symbol_completion_add calls. | |
8152 | ||
6d53d0af JB |
8153 | 2007-02-07 Joel Brobecker <[email protected]> |
8154 | ||
8155 | * NEWS: Put all new commands since gdb-6.7 together. | |
8156 | ||
2ba95b9b JB |
8157 | 2007-02-07 Joel Brobecker <[email protected]> |
8158 | ||
8159 | * ada-lang.c: #include "vec.h". | |
8160 | (struct string_vector, new_string_vector, string_vector_append): | |
8161 | Delete. | |
8162 | (char_ptr): New typedef. | |
8163 | (DEF_VEC_P (char_ptr)): New VEC type. | |
8164 | (symbol_completion_add): Update profile to take the new VEC type | |
8165 | instead of the old string_vector structure. Update code accordingly. | |
8166 | (ada_make_symbol_completion_list): Use the new VEC type instead of | |
8167 | the old string_vector structure, and update the code accordingly. | |
8168 | * Makefile.in (ada-lang.o): Add dependency on vec.h. | |
8169 | ||
4ae0885a PM |
8170 | 2008-02-06 Pierre Muller <[email protected]> |
8171 | ||
8172 | * p-exp.y: Set current_type in missing places. | |
8173 | (leftdiv_is_integer): New static variable. | |
8174 | Typecast right operand of BINOP_DIV to long_double if both operands | |
8175 | are integers. | |
8176 | ||
06b1d59c MR |
8177 | 2008-02-06 Maciej W. Rozycki <[email protected]> |
8178 | ||
8179 | * remote-mips.c (set_breakpoint): Rename to... | |
8180 | (mips_set_breakpoint): ... this. | |
8181 | (clear_breakpoint): Rename to... | |
8182 | (mips_clear_breakpoint): ... this. | |
8183 | (common_breakpoint): Rename to... | |
8184 | (mips_common_breakpoint): ... this. | |
8185 | (check_lsi_error): Rename to... | |
8186 | (mips_check_lsi_error): ... this. | |
8187 | ||
41d27058 JB |
8188 | 2007-02-05 Joel Brobecker <[email protected]> |
8189 | ||
8190 | * language.h (struct language_defn): Add new field | |
8191 | la_make_symbol_completion_list. | |
8192 | * symtab.c (default_make_symbol_completion_list): Renames | |
8193 | make_symbol_completion_list. | |
8194 | (make_symbol_completion_list): New function. | |
8195 | * symtab.h (default_make_symbol_completion_list): Add declaration. | |
8196 | * langauge.c (unknown_language): Set la_make_symbol_completion_list. | |
8197 | (auto_language, local_language): Likewise. | |
8198 | * objc-lang.c (objc_language_defn): Likewise. | |
8199 | * scm-lang.c (scm_language_defn): Likewise. | |
8200 | * m2-lang.c (m2_language_defn): Likewise. | |
8201 | * f-lang.c (f_language_defn): Likewise. | |
8202 | * jv-lang.c (java_language_defn): Likewise. | |
8203 | * p-lang.c (pascal_language_defn): Likewise. | |
8204 | * c-lang.c (c_language_defn, cplus_language_defn, asm_language_defn) | |
8205 | (minimal_language_defn): Likewise. | |
8206 | * ada-lang.c (struct string_vector): New structure. | |
8207 | (new_string_vector, string_vector_append, ada_unqualified_name) | |
8208 | (add_angle_brackets, symbol_completion_match, symbol_completion_add) | |
8209 | (ada_make_symbol_completion_list): New functions. | |
8210 | (ada_language_defn): Set la_make_symbol_completion_list. | |
8211 | * ada-lang.h (ada_make_symbol_completion_list): Remove declaration, | |
8212 | this function is static. | |
8213 | ||
ee3a2f01 KB |
8214 | 2008-02-05 Kevin Buettner <[email protected]> |
8215 | ||
8216 | * mn10300-tdep.c (mn10300_push_dummy_call): Adjust stack pointer | |
8217 | to account for call site optimizations. | |
8218 | ||
d844e34b JB |
8219 | 2008-02-05 Andrzej Zaborowski <[email protected]> |
8220 | ||
8221 | * tracepoint.c (read_actions): Handle end-of-text indicator | |
8222 | in action list properly. (Committed by Jim Blandy) | |
8223 | ||
02e4669d JB |
8224 | 2008-02-05 Jim Blandy <[email protected]> |
8225 | ||
8226 | * ax-gdb.c (gen_expr): Yield ordinary error if asked to trace a | |
8227 | pseudoregister, not an internal error. | |
85ecb32b | 8228 | Reported by: Andrzej Zaborowski |
02e4669d | 8229 | |
c39c8256 VP |
8230 | 2008-02-04 Vladimir Prus <[email protected]> |
8231 | ||
8232 | * varobj.c (c_value_of_variable): Use xstrdup. | |
8233 | ||
ae7d22a6 VP |
8234 | 2008-02-04 Vladimir Prus <[email protected]> |
8235 | ||
8236 | Update stored rendition of varobj value when format changes. | |
8237 | * varobj.c (varobj_set_display_format): Recomputed | |
680b56ce AS |
8238 | print_value. |
8239 | (c_value_of_variable): Return print_value. | |
ae7d22a6 | 8240 | |
81fe8080 DE |
8241 | 2008-02-03 Doug Evans <[email protected]> |
8242 | ||
301f0ecf DE |
8243 | * eval.c (evaluate_subexp_standard): Fix type of result of mixed |
8244 | integer/float division operations when EVAL_AVOID_SIDE_EFFECTS. | |
8245 | * valops.c (value_one): New function. | |
8246 | * value.h (value_one): Declare. | |
8247 | ||
8248 | Fix argument promotion for binary arithmetic ops for C. | |
8249 | * valarith.c (unop_result_type): New fn. | |
8250 | (binop_result_type): New fn. | |
8251 | (value_binop): Move result type computation to binop_result_type. | |
8252 | (value_pos, value_neg, value_complement): Move result type | |
8253 | computation to unop_result_type. | |
8254 | ||
81fe8080 DE |
8255 | PR 2384 |
8256 | * gdbtypes.c (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno. | |
8257 | Return basetype, fieldno if found. All callers updated. | |
8258 | Don't cache TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE if from different | |
8259 | objfile. | |
8260 | * gdbtypes.h (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno. | |
8261 | * symfile.h (fill_in_vptr_fieldno): Delete. | |
8262 | ||
41808ebe DE |
8263 | 2008-02-02 Doug Evans <[email protected]> |
8264 | ||
f8597ac3 DE |
8265 | * valarith.c (value_binop): Handle unsigned BINOP_REM division by zero. |
8266 | ||
41808ebe DE |
8267 | * typeprint.c (*): Whitespace cleanup. |
8268 | ||
f964a756 MK |
8269 | 2008-02-02 Mark Kettenis <[email protected]> |
8270 | Luis Machado <[email protected]> | |
680b56ce | 8271 | Thiago Jung Bauermann <[email protected]> |
f964a756 MK |
8272 | |
8273 | * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Pass floats that | |
8274 | don't fit into registerson the stack the way GCC does. | |
8275 | ||
b06ead72 JB |
8276 | 2008-02-01 Joel Brobecker <[email protected]> |
8277 | ||
8278 | * symtab.c (symbol_set_names): Do not add an entry in the demangling | |
8279 | hash table for Ada symbols. Just store the linkage name as is, | |
8280 | and leave the demangled_name as NULL. | |
8281 | ||
2cfa0c8d JB |
8282 | 2007-02-01 Joel Brobecker <[email protected]> |
8283 | ||
8284 | * dwarf2read.c (add_partial_symbol): Always store all Ada subprograms | |
8285 | in the global scope. | |
8286 | (new_symbol): Likewise. | |
8287 | ||
98deb0da | 8288 | 2008-02-01 Vladimir Prus <[email protected]> |
680b56ce AS |
8289 | |
8290 | * breakpoint.c (break_command_1): Return void. | |
8291 | (break_command_really): Return void. Rethrow | |
8292 | exceptions instead of returning. | |
8293 | (gdb_breakpoint): Remove the error_message parameter. | |
8294 | Return void. Rename to set_breakpoint. | |
8295 | * gdb.h (gdb_breakpoint): Rename and move to... | |
98deb0da | 8296 | * breakpoint.h (set_breakpoint): ...here. |
680b56ce AS |
8297 | * mi/mi-cmb-break.c (mi_cmd_break_insert): Restore |
8298 | event hooks even if exception is thrown. Adjust to | |
8299 | gdb_breakpoint interface changes. | |
8300 | ||
98deb0da | 8301 | |
ce0451ad TJB |
8302 | 2008-02-01 Thiago Jung Bauermann <[email protected]> |
8303 | ||
8304 | * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Write 32-bit | |
8305 | float in both first and second word in the doubleword, to support | |
8306 | old and new ABIs. | |
8307 | ||
723a2275 VP |
8308 | 2008-02-01 Vladimir Prus <[email protected]> |
8309 | ||
8310 | Properly rethrow exception. This fixes errors | |
8311 | about non-existent functions for -break-insert. | |
680b56ce AS |
8312 | * breakpoint.c (break_command_really): Use throw_exception |
8313 | for rethrowing. If rethrowing, don't print the exception. | |
723a2275 | 8314 | |
d64a946d TJB |
8315 | 2008-01-31 Thiago Jung Bauermann <[email protected]> |
8316 | ||
8317 | * NEWS: Mention Decimal Floating Point support. | |
8318 | ||
02b156f5 JB |
8319 | 2008-01-31 Joel Brobecker <[email protected]> |
8320 | ||
8321 | * std-regs.c (value_of_builtin_frame_pc_reg): Change the returned | |
8322 | value type to builtin_type_void_func_ptr. | |
8323 | ||
a16b8bcd UW |
8324 | 2008-01-31 Andreas Krebbel <[email protected]> |
8325 | ||
8326 | * s390-tdep.c (is_float_singleton, is_float_like, | |
8327 | alignment_of, s390_return_value): Make checks for | |
8328 | TYPE_CODE_FLT to match TYPE_CODE_DECFLOAT as well. | |
8329 | ||
f949c649 TJB |
8330 | 2008-01-31 Luis Machado <[email protected]> |
8331 | Thiago Jung Bauermann <[email protected]> | |
8332 | ||
8333 | * infcmd.c (default_print_registers_info): Also print hex | |
8334 | raw contents for TYPE_CODE_DECFLOAT registers. | |
8335 | * ppc-tdep.h (gdbarch_tdep): Add ppc_dl0_regnum member. | |
8336 | * rs6000-tdep.c (IS_DFP_PSEUDOREG): New macro. | |
8337 | (rs6000_register_name): Add support for DFP pseudo-registers. | |
8338 | (rs6000_pseudo_register_type): Likewise. | |
8339 | rs6000_pseudo_register_reggroup_p): Likewise. | |
8340 | (ppc_pseudo_register_read): New function. | |
8341 | (ppc_pseudo_register_write): Likewise. | |
8342 | (rs6000_pseudo_register_read): Likewise. | |
8343 | (rs6000_pseudo_register_write): Likewise. | |
8344 | (e500_pseudo_register_read): Move checks to | |
8345 | rs6000_pseudo_register_read. | |
8346 | (e500_pseudo_register_write): Move checks to | |
8347 | rs6000_pseudo_register_write. | |
8348 | (rs6000_gdbarch_init): Initialize tdep->ppc_dl0_regnum. Install | |
8349 | rs6000_pseudo_register_read and rs6000_pseudo_register_write | |
8350 | in gdbarch if SPE or DFP is available. Adjust gdbarch's | |
8351 | num_pseudo_regs to account for DFP pseudo regs. | |
8352 | ||
5a9e69ba TJB |
8353 | 2008-01-31 Thiago Jung Bauermann <[email protected]> |
8354 | ||
8355 | * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_ev31_regnum member. | |
8356 | * rs6000-tdep.c (IS_SPE_PSEUDOREG): New macro. | |
8357 | (spe_register_p, rs6000_register_name, rs6000_pseudo_register_type, | |
8358 | rs6000_pseudo_register_reggroup_p, e500_move_ev_register, | |
8359 | e500_pseudo_register_read, e500_pseudo_register_write): Use | |
8360 | IS_SPE_PSEUDOREG macro. | |
8361 | (rs6000_frame_cache): Remove use of tdep->ppc_ev31_regnum. | |
8362 | (rs6000_gdbarch_init): Remove unnecessary num_sprs local variable. | |
8363 | Remove initialization of tdep->ppc_ev31_regnum. | |
8364 | ||
4e885b20 JB |
8365 | 2008-01-08 Paul Hilfinger <[email protected]> |
8366 | ||
8367 | * printcmd.c (print_formatted): Handle references as for unformatted | |
8368 | prints. | |
8369 | ||
80f064a2 JB |
8370 | 2008-01-30 Joel Brobecker <[email protected]> |
8371 | ||
8372 | * eval.c (evaluate_subexp_standard): Add handling of user | |
8373 | registers when in EVAL_AVOID_SIDE_EFFECTS mode. | |
8374 | ||
9b3442ee PM |
8375 | 2008-01-30 Pierre Muller <[email protected]> |
8376 | ||
8377 | * eval.c (evaluate_subexp_standard): Support | |
8378 | BINOP_INTDIV opcode. | |
8379 | ||
d118ef87 PH |
8380 | 2008-01-30 Paul N. Hilfinger <[email protected]> |
8381 | ||
8382 | * valarith.c (value_binop): Add floating-point BINOP_MIN and | |
8383 | BINOP_MAX cases. | |
8384 | For BINOP_EXP, use length and signedness of left operand only for | |
8385 | result, as for shifts. | |
8386 | For integral operands to BINOP_EXP, use new integer_pow and | |
8387 | uinteger_pow functions so as to get full range of results. | |
8388 | (integer_pow): New function. | |
8389 | (uinteger_pow): New function. | |
8390 | ||
d56d46f5 VP |
8391 | 2008-01-30 Vladimir Prus <[email protected]> |
8392 | ||
8393 | Use vector for varobj_list_children interface. | |
680b56ce AS |
8394 | * gdb/varobj.c (varobj_list_children): Return vector |
8395 | of varobjs. | |
8396 | * gdb/varobj.h (varobj_list_children): Adjust | |
8397 | prototype. | |
8398 | (varobj_p): Declare. Declare vector thereof. | |
8399 | * mi/mi-cmd-var.c (mi_cmd_var_list_children): Adjust | |
8400 | for varobj_list_children change. | |
d56d46f5 VP |
8401 | * Makefile.in (varobj_h): Update dependencies. |
8402 | ||
1300a2f4 TJB |
8403 | 2008-01-30 Thiago Jung Bauermann <[email protected]> |
8404 | ||
8405 | * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Add support for | |
8406 | TYPE_CODE_DECFLOAT arguments. | |
8407 | (ppc64_sysv_abi_push_dummy_call) Likewise. | |
8408 | (get_decimal_float_return_value): New function. | |
8409 | (do_ppc_sysv_return_value): Add support for TYPE_CODE_DECFLOAT return | |
8410 | values by calling get_decimal_float_return_value. | |
8411 | (ppc64_sysv_abi_return_value): Likewise. | |
8412 | ||
95ef687d NR |
8413 | 2008-01-30 Nick Roberts <[email protected]> |
8414 | ||
8415 | * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Add field | |
8416 | for preprocessor macro information. Formatting changes. | |
8417 | ||
2d717e4f DJ |
8418 | 2008-01-29 Daniel Jacobowitz <[email protected]> |
8419 | ||
8420 | * remote.c (struct remote_state): Add cached_wait_status. | |
8421 | (remote_exec_file): New variable. | |
8422 | (PACKET_vAttach, PACKET_vRun): New constants. | |
8423 | (extended_remote_restart): Do not query for status. | |
8424 | (struct start_remote_args): New. | |
8425 | (remote_start_remote): Take it as a second argument. Check | |
8426 | whether the target is running. Issue an error for non-running | |
8427 | non-extended targets. Cache the wait status. Set inferior_ptid | |
8428 | here. | |
8429 | (remote_open_1): Prompt to disconnect non-running targets. Make | |
8430 | sure the target is marked running. Do not set inferior_ptid here. | |
8431 | Update call to remote_start_remote. Do not call remote_check_symbols | |
8432 | if the target is not running. | |
8433 | (remote_detach_1): Rename from remote_detach. Take an EXTENDED | |
8434 | argument. Handle a non-running target. | |
8435 | (remote_detach): Use it. | |
8436 | (extended_remote_detach): New. | |
8437 | (remote_disconnect): Fix typo. Use remoute_mourn_1. | |
8438 | (extended_remote_attach_1, extended_remote_attach) | |
8439 | (extended_async_remote_attach): New. | |
8440 | (remote_vcont_resume): Remove unused variable. | |
8441 | (remote_wait, remote_async_wait): Use any cached wait status. | |
8442 | (putpkt_binary, getpkt): Clear any cached wait status. | |
8443 | (extended_remoute_mourn_1): New. | |
8444 | (extended_remote_mourn): Use it. | |
8445 | (extended_async_remote_mourn, extended_remote_run): New. | |
8446 | (extended_remote_create_inferior_1): New. | |
8447 | (extended_remote_create_inferior): Use it. | |
8448 | (extended_remote_async_create_inferior): Likewise. | |
8449 | (remote_xfer_partial): Skip for non-executing targets. | |
8450 | (init_extended_remote_ops): Set to_detach and to_attach. | |
8451 | (init_extended_async_remote_ops): Likewise. Use | |
8452 | extended_async_remote_mourn. | |
8453 | (_initialize_remote): Register vAttach, vRun, and | |
8454 | set remote exec-file. | |
8455 | * NEWS: Mention vAttach, vRun, and gdbserver extended-remote support. | |
8456 | ||
e85a822c DJ |
8457 | 2008-01-29 Daniel Jacobowitz <[email protected]> |
8458 | ||
8459 | * Makefile.in (symfile.o): Update. | |
8460 | * NEWS: Mention exec tracing support. | |
8461 | * inf-ttrace.c (inf_ttrace_wait): Return TARGET_WAITKIND_EXECD for | |
8462 | exec events. | |
8463 | * infcmd.c (kill_if_already_running, detach_command) | |
8464 | (disconnect_command): Replace SOLIB_RESTART with no_shared_libraries. | |
8465 | * infrun.c (MAY_FOLLOW_EXEC, may_follow_exec): Delete. | |
8466 | (follow_exec): Do not check may_follow_exec. Do not mourn and push | |
8467 | targets. Apply the sysroot path to the loaded executable. Use | |
8468 | no_shared_libraries. | |
8469 | * linux-nat.c (linux_child_follow_fork): Print fork following | |
8470 | messages if verbose. | |
8471 | (kill_wait_callback): Kill again before waiting a second time. | |
8472 | * symfile.c (symbol_file_clear): Replace SOLIB_RESTART with | |
8473 | no_shared_libraries. | |
8474 | ||
9db13498 JB |
8475 | 2008-01-29 Joel Brobecker <[email protected]> |
8476 | ||
8477 | * amd64-tdep.c (amd64_classify): Add handling of TYPE_CODE_CHAR. | |
8478 | ||
b4d5ed91 JB |
8479 | 2008-01-29 Joel Brobecker <[email protected]> |
8480 | ||
8481 | * nto-tdep.h: Remove #include "defs.h". | |
8482 | * nto-tdep.c: Add #include "defs.h". | |
8483 | * Makefile.in (nto_tdep_h): Update dependencies. | |
8484 | (nto-tdep.o): Likewise. | |
8485 | ||
107313f7 | 8486 | 2008-01-29 Joel Brobecker <[email protected]> |
ae123ec6 JB |
8487 | |
8488 | * infrun.c (wait_for_inferior): Add treat_exec_as_sigtrap parameter | |
8489 | and use it. | |
8490 | (proceed, start_remote): Update call to wait_for_inferior. | |
8491 | * inferior.h (wait_for_inferior): Update declaration. | |
8492 | * fork-child.c, infcmd.c, solib-irix.c, solib-osf.c, solib-sunos.c, | |
8493 | solib-svr4.c, win32-nat.c: Update calls to wait_for_inferior. | |
8494 | * inf-ttrace.c (inf_ttrace_wait): Report TTEVT_EXEC events as | |
8495 | TARGET_WAITKIND_EXECD instead of TARGET_WAITKIND_STOPPED. | |
8496 | ||
3f4178d6 DJ |
8497 | 2008-01-29 Aleksandar Ristovski <[email protected]> |
8498 | ||
680b56ce | 8499 | * varobj (adjust_value_for_child_access): Added checking for |
3f4178d6 DJ |
8500 | returned value from gdb_value_ind. |
8501 | (c_describe_child): Likewise. | |
8502 | (cplus_describe_child): Fixed a typo. | |
8503 | ||
5eeba8d4 JB |
8504 | 2008-01-29 Jim Blandy <[email protected]> |
8505 | ||
8506 | * MAINTAINERS: Update my info. | |
8507 | ||
a5606eee VP |
8508 | 2008-01-29 Vladimir Prus <[email protected]> |
8509 | ||
8510 | Use multiple locations for hardware watchpoints. | |
8511 | This eliminates the need to traverse value chain, doing | |
8512 | various checks, in three different places. | |
8513 | ||
680b56ce AS |
8514 | * breakpoint.h (struct bp_location): New fields |
8515 | lengths and watchpoint_type. | |
8516 | (struct breakpoint): Remove the val_chain field. | |
8517 | * breakpoint.c (is_hardware_watchpoint): New. | |
8518 | (free_valchain): Remove. | |
8519 | (update_watchpoint): New. | |
8520 | (insert_bp_location): For hardware watchpoint, just | |
8521 | directly insert it. | |
8522 | (insert_breakpoints): Call update_watchpoint_locations | |
8523 | on all watchpoints. If we have failed to insert | |
8524 | any location of a hardware watchpoint, remove all inserted | |
8525 | locations. | |
8526 | (remove_breakpoint): For hardware watchpoints, directly | |
8527 | remove location. | |
8528 | (watchpoints_triggered): Iterate over locations. | |
8529 | (bpstat_stop_status): Use only first location of | |
8530 | a resource watchpoint. | |
8531 | (delete_breakpoint): Don't call free_valchain. | |
8532 | (print_one_breakpoint): Don't print all | |
8533 | locations for watchpoints. | |
8534 | (breakpoint_re_set_one): Use update_watchpoint for | |
8535 | watchpoints. | |
a5606eee | 8536 | |
0b3de036 VP |
8537 | 2008-01-29 Vladimir Prus <[email protected]> |
8538 | ||
8539 | Don't reset watchpoint block on solib load. | |
8540 | ||
680b56ce AS |
8541 | * breakpoint.c (insert_bp_location): For watchpoints, |
8542 | recompute condition. | |
8543 | (breakpoint_re_set_one): Instead of recomputing value | |
8544 | and condition for watchpoints, just reset value and | |
8545 | let insert_breakpoints/insert_bp_location recompute it. | |
8546 | Don't do anything about disabled watchpoint. | |
0b3de036 | 8547 | |
c3940723 PM |
8548 | 2008-01-29 Pierre Muller <[email protected]> |
8549 | ||
8550 | * valarith.c (value_binop): Handle unsigned integer | |
8551 | division by zero. | |
8552 | ||
83845630 KB |
8553 | 2008-01-28 Kevin Buettner <[email protected]> |
8554 | ||
8555 | * mn10300-tdep.c (mn10300_analyze_prologue): Check for an | |
8556 | instruction pattern that appears frequently in position | |
8557 | independent code. Fix bug in code which looks for "fmov" and | |
8558 | backtracks if no "fmov" is found. | |
8559 | ||
9ce5d3bb DE |
8560 | 2008-01-28 Doug Evans <[email protected]> |
8561 | ||
8562 | * dbxread.c (read_dbx_symtab): Fix indentation. | |
131fe1bb DE |
8563 | Reformat comments to 80 columns. |
8564 | Move local var def closer to only use. | |
9ce5d3bb | 8565 | |
c78d192c DJ |
8566 | 2008-01-28 Daniel Jacobowitz <[email protected]> |
8567 | ||
8568 | * fork-child.c (SHELL_FILE): Remove #ifndef. | |
8569 | (fork_inferior): Remove SHELL_COMMAND_CONCAT. | |
8570 | ||
e11481da PM |
8571 | 2008-01-25 Pierre Muller <[email protected]> |
8572 | ||
8573 | * i386-tdep.c (i386_skip_noop): New function. | |
8574 | (i386_analyze_prologue): Call i386_skip_noop function. | |
8575 | ||
244e85c8 MS |
8576 | 2008-01-24 Michael Snyder <[email protected]> |
8577 | ||
8578 | * procfs.c (procfs_xfer_partial): Comment, cut/paste error. | |
8579 | * win32-nat.c (win32_xfer_partial): Ditto. | |
8580 | * target.c (default_xfer_partial): Minor whitespace adjustment. | |
8581 | ||
dd6be234 PA |
8582 | 2008-01-24 Pedro Alves <[email protected]> |
8583 | ||
8584 | * arm-tdep.c (arm_addr_bits_remove): In non 26-bit mode, don't | |
8585 | strip bit 1 even if pc doesn't point to thumb code. | |
8586 | ||
9fa2223d DJ |
8587 | 2008-01-23 Daniel Jacobowitz <[email protected]> |
8588 | ||
8589 | * remote.c (remote_wait): Handle SIGINT between packets. | |
8590 | (remote_async_wait): Likewise. | |
8591 | ||
93815fbf VP |
8592 | 2008-01-23 Vladimir Prus <[email protected]> |
8593 | Chris Demetriou <[email protected]> | |
8594 | ||
680b56ce AS |
8595 | * thread.c (add_thread_silent): Renamed |
8596 | from add_thread. | |
8597 | (print_thread_events): New variable definition. | |
8598 | (show_print_thread_events): New function. | |
8599 | (_initialize_thread): Add "set print thread-events" and | |
8600 | "show print thread-events" commands. | |
8601 | (add_thread): Announce new thread. | |
8602 | * gdbthread.h (add_thread_silent): Declare. | |
8603 | (print_thread_events): New variable declaration. | |
8604 | * inf-ttrace.c (inf_ttrace_wait): Don't | |
8605 | inform about new thread, as add_thread is always | |
8606 | called too, and will take care of that. | |
8607 | * infrun.c (handle_inferior_event): Likewise. | |
8608 | * procfs.c (procfs_wait): Likewise. | |
8609 | * remote.c (remote_currthread): Likewise. | |
8610 | * sol-thread.c (sol_thread_wait): Likewise. | |
8611 | * win32-nat.c (get_win32_debug_event): Likewise. | |
8612 | * linux-thread-db.c (attach_thread): Likewise. | |
8613 | Remove the verbose parameter. | |
8614 | (check_event): Make detach_thread be verbose | |
8615 | only if print_thread_events is set. | |
8616 | * linux-nat.c (lin_lwp_attach_lwp): Don't inform | |
8617 | about new thread. This is called only from | |
8618 | linux-thread-db.c:attach_thread, which will take care. | |
8619 | Remove the verbose parameter. | |
8620 | * linux-nat.h (lin_lwp_attach_lwp): Adjust prototype. | |
93815fbf | 8621 | |
b4d7c9a6 NR |
8622 | 2008-01-23 Nick Roberts <[email protected]> |
8623 | ||
8624 | * mi/mi-cmd-var.c (mi_cmd_var_set_format): Add value field to output. | |
8625 | ||
60c46647 VP |
8626 | 2008-01-22 Vladimir Prus <[email protected]> |
8627 | ||
8628 | * breakpoint.c (break_command_really): New parameter | |
8629 | ignore_count. | |
8630 | (break_command_1): Pass 0 as | |
8631 | ignore_count to break_command_really. | |
8632 | (gdb_breakpoint): Pass ignore_count to | |
8633 | break_command_really. | |
8634 | ||
e84605cd KB |
8635 | 2008-01-21 Kevin Buettner <[email protected]> |
8636 | ||
8637 | * mn10300-linux-tdep.c (am33_linux_sigframe_cache_init): Find | |
8638 | sigcontext struct via pointer. | |
8639 | (struct sigframe comment): Update to show new field `psc'. | |
8640 | ||
9d9cd7ac VP |
8641 | 2008-01-21 Vladimir Prus <[email protected]> |
8642 | ||
8643 | * infrun.c (handle_inferior_event): If | |
8644 | we failed to remove breakpoints, error, | |
8645 | don't try to increment PC by hand. | |
8646 | ||
af5ca30d NH |
8647 | 2008-01-18 Nick Hudson <[email protected]> |
8648 | ||
8649 | Add NetBSD/hppa target and host support. | |
8650 | ||
8651 | * hppabsd-tdep.c (hppabsd_supply_gregset): Move to ... | |
8652 | (hppabsd_gregset): Move to ... | |
8653 | (hppabsd_regset_from_core_section): Rename | |
8654 | hppaobsd_regset_from_core_section and move to ... | |
8655 | (hppabsd_find_global_pointer): Update comment. | |
8656 | (hppabsd_init_abi): Make global. Do not register | |
8657 | hppabsd_regset_from_core_section. | |
8658 | (hppabsd_core_osabi_sniffer): Rename hppaobsd_core_osabi_sniffer and | |
8659 | move to ... | |
8660 | (_initialize_hppabsd_tdep): Move to ... | |
8661 | * hppaobsd-tdep.c: ... here. New file. | |
8662 | * hppnbsd-tdep.c: New file. | |
8663 | * hppnbsd-nat.c: New file. | |
680b56ce | 8664 | * Makefile.in (ALL_TARGET_OBS): Add hppanbsd-tdep.o and hppaobsd-tdep.o. |
af5ca30d | 8665 | (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c. |
680b56ce AS |
8666 | (hppabsd-nat.o, hppabsd-tdep.o): New dependencies. |
8667 | (hppabsd-tdep.o, hppaobsd-tdep.o): Update dependencies. | |
af5ca30d NH |
8668 | * configure.host (hppa*-*-netbsd*): New entry. |
8669 | * configure.tgt (hppa*-*-netbsd*): New entry. | |
8670 | (hppa*-*-openbsd*): Update. | |
8671 | * NEWS (New native configuration): Mention NetBSD/hppa. | |
8672 | (New targets): Mention NetBSD/hppa. | |
8673 | ||
32c9a795 MD |
8674 | 2008-01-18 Markus Deuling <[email protected]> |
8675 | ||
8676 | * gdbarch.sh (function_list): Add new property bits_big_endian to | |
8677 | gdbarch structure. | |
8678 | * gdbarch.{c,h}: Regenerate. | |
8679 | ||
8680 | * value.c (struct value): Replace BITS_BIG_ENDIAN by | |
8681 | gdbarch_bits_big_endian (comment). | |
8682 | (unpack_field_as_long, modify_field): Likewise. | |
8683 | * value.h: Likewise (comment). | |
8684 | * valops.c (value_slice): Likewise. | |
8685 | * valarith.c (value_subscript, value_bit_index): Likewise. | |
8686 | * gdbtypes.h (field): Likewise (comment). | |
8687 | * eval.c (evaluate_subexp_standard): Likewise. | |
8688 | * dwarf2read.c (dwarf2_add_field): Likewise. | |
8689 | * ada-lang.c (decode_packed_array, ada_value_primitive_packed_val) | |
8690 | (move_bits, ada_value_assign, value_assign_to_component): Likewise. | |
680b56ce | 8691 | |
32c9a795 MD |
8692 | * defs.h (BITS_BIG_ENDIAN): Remove. |
8693 | ||
1e5e79d0 MD |
8694 | 2008-01-18 Markus Deuling <[email protected]> |
8695 | ||
8696 | * jv-exp.y (yylex): Replace DEPRECATED_STREQN with the appropriate | |
8697 | function calls. | |
8698 | * m2-exp.y (yylex): Likewise. | |
8699 | * objc-exp.y (yylex): Likewise. | |
8700 | ||
8701 | * defs.h (DEPRECATED_STREQN): Remove. | |
8702 | ||
fabda5a7 L |
8703 | 2008-01-17 H.J. Lu <[email protected]> |
8704 | ||
8705 | * MAINTAINERS: Update my email address. | |
8706 | ||
92726479 JB |
8707 | 2008-01-17 Jim Blandy <[email protected]> |
8708 | ||
8709 | * README: Mention gdbserver/README. | |
8710 | ||
ef80d18e PM |
8711 | 2008-01-17 Pierre Muller <[email protected]> |
8712 | ||
8713 | * valarith.c (value_binop): Handle BINOP_INTDIV | |
8714 | for unsigned and signed integers. | |
8715 | ||
1de90795 UW |
8716 | 2008-01-17 Ulrich Weigand <[email protected]> |
8717 | ||
8718 | * s390-tdep.c (s390_gdbarch_init): Set default long double | |
8719 | type to 128-bit IEEE quad. | |
8720 | ||
c70bd6f3 JB |
8721 | 2008-01-17 Joel Brobecker <[email protected]> |
8722 | ||
8723 | * hpux-thread.c (hpux_thread_resume): Delete commented-out code. | |
8724 | ||
ba759613 MK |
8725 | 2008-01-16 Mark Kettenis <[email protected]> |
8726 | ||
77d49ac6 MK |
8727 | * auxv.c (fprint_target_auxv): Add support for AT_SUN_AUXFLAGS. |
8728 | ||
ba759613 MK |
8729 | * dfp.c, dfp.h: Rename decimal_to_double to decimal_to_doublest. |
8730 | * value.c: All callers changed. | |
8731 | ||
7ecb6532 MD |
8732 | 2008-01-16 Markus Deuling <[email protected]> |
8733 | ||
8734 | * rs6000-nat.c (add_vmap, vmap_ldinfo, vmap_exec): Replace | |
8735 | DEPRECATED_STREQ by its expression. | |
8736 | * coffread.c (coff_locate_sections, coff_symtab_read): Likewise. | |
8737 | * xcoffread.c (read_xcoff_symtab, read_symbol_lineno, find_linenos) | |
8738 | (scan_xcoff_symtab): Likewise. | |
8739 | * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Likewise. | |
8740 | * f-lang.c (find_common_for_function): Likewise. | |
8741 | * objc-exp.y (parse_number): Likewise. | |
8742 | ||
8743 | * defs.h (DEPRECATED_STREQ): Remove. | |
8744 | ||
d15cf01c MD |
8745 | 2008-01-16 Markus Deuling <[email protected]> |
8746 | ||
8747 | * mn10300-tdep.h (AM33_MODE): Add gdbarch as parameter. | |
8748 | * mn10300-tdep.c (set_reg_offsets, mn10300_analyze_prologue): Use | |
8749 | get_frame_arch to get at the current_architecture. Update AM33_MODE | |
8750 | call. | |
8751 | (mn10300_analyze_prologue): Add gdbarch as parameter. Update caller. | |
8752 | (mn10300_frame_unwind_cache): Use get_frame_arch to get at the current | |
8753 | architecture. | |
8754 | (set_reg_offsets, mn10300_analyze_prologue): Fix indentation. | |
8755 | ||
f8028488 MD |
8756 | 2008-01-16 Markus Deuling <[email protected]> |
8757 | ||
680b56ce | 8758 | * amd64-nat.h (amd64_native_gregset_supplies_p): Add gdbarch as |
f8028488 MD |
8759 | parameter. |
8760 | * amd64-nat.c (amd64_native_gregset_supplies_p): Likewise. | |
8761 | ||
8762 | (amd64_native_gregset_reg_offset): Add gdbarch as parameter. Replace | |
8763 | current_gdbarch by gdbarch. Update caller. | |
8764 | ||
8765 | * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers) | |
8766 | (amd64_linux_store_inferior_registers): Use get_regcache_arch to get at | |
8767 | the current architecture. Update calls of | |
8768 | amd64_native_gregset_supplies_p. | |
8769 | * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers) | |
8770 | (amd64bsd_store_inferior_registers): Likewise. | |
8771 | ||
e101270f MD |
8772 | 2008-01-16 Markus Deuling <[email protected]> |
8773 | ||
8774 | * ppc-linux-nat.c (ppc_register_u_addr): Add gdbarch as parameter. | |
8775 | Replace current_gdbarch by gdbarch. Update caller. | |
8776 | ||
063e58ba MD |
8777 | 2008-01-16 Markus Deuling <[email protected]> |
8778 | ||
8779 | * dbxread.c (repeated_header_complaint, dbx_symfile_init) | |
8780 | (read_dbx_dynamic_symtab, function_outside_compilation_unit_complaint) | |
8781 | (read_dbx_symtab, end_psymtab, dbx_psymtab_to_symtab_1) | |
8782 | (dbx_psymtab_to_symtab, read_ofile_symtab, process_one_symbol) | |
8783 | (stabsect_build_psymtabs): Fix indentation. | |
8784 | ||
662fb31b MS |
8785 | 2008-01-15 Michael Snyder <[email protected]> |
8786 | ||
8787 | * corelow.c (core_xfer_partial): Comment, cut/paste error. | |
8788 | ||
c1766e7d PM |
8789 | 2008-01-14 Pierre Muller <[email protected]> |
8790 | ||
8791 | * win32-nat.c (win32_create_inferior): Restore code calling | |
8792 | CloseHandle on ProcessInformation structure. | |
8793 | ||
5ed10e6e NH |
8794 | 2008-01-13 Nick Hudson <[email protected]> |
8795 | ||
8796 | * configure.ac: Check for void * as 3 argument of ptrace. | |
8797 | * configure: regenerate. | |
8798 | ||
be8626e0 MD |
8799 | 2008-01-11 Markus Deuling <[email protected]> |
8800 | ||
8801 | * alpha-tdep.c (alpha_heuristic_proc_start) | |
8802 | (alpha_sigtramp_register_address): Add gdbarch as parameter. Replace | |
8803 | current_gdbarch by gdbarch. | |
8804 | ||
8805 | (alpha_heuristic_frame_unwind_cache): Use get_frame_arch to get at the | |
680b56ce | 8806 | current architecture by frame_info. Update alpha_heuristic_proc_start |
be8626e0 MD |
8807 | call. |
8808 | ||
8809 | (alpha_sigtramp_frame_this_id, alpha_sigtramp_frame_prev_register): Use | |
8810 | get_frame_arch to get at the current architecture by frame_info. Update | |
8811 | alpha_sigtramp_register_address call. | |
8812 | ||
8813 | * arm-tdep.c (thumb_scan_prologue): Add gdbarch as parameter and replace | |
8814 | current_gdbarch by gdbarch. Update caller. | |
8815 | (convert_to_extended, convert_from_extended): Add endianess parameter | |
8816 | for comparison. Update caller. | |
8817 | (arm_extract_return_value, arm_store_return_value): Use | |
8818 | get_regcache_arch to get at the current architecture. | |
8819 | ||
8820 | * cris-tdep.c (cris_register_size): Add gdbarch as parameter. Replace | |
8821 | current_gdbarch by gdbarch. Update caller. | |
8822 | (cris_gdb_func, move_to_preg_op, none_reg_mode_move_from_preg_op): Add | |
8823 | gdbarch as parameter. Update caller. Replace current_gdbarch by gdbarch. | |
8824 | ||
8825 | * h8300-tdep.c (E_PSEUDO_CCR_REGNUM, E_PSEUDO_EXR_REGNUM, BINWORD): Add | |
680b56ce | 8826 | gdbarch as parameter. Update caller. |
be8626e0 MD |
8827 | (h8300_init_frame_cache): Add gdbarch as parameter. Replace |
8828 | current_gdbarch by gdbarch. Update caller. | |
8829 | ||
680b56ce | 8830 | * hppa-tdep.c (skip_prologue_hard_way): Add gdbarch as parameter and |
be8626e0 MD |
8831 | update caller. Replace current_gdbarch by gdbarch. |
8832 | ||
8833 | * m32c-tdep.c (m32c_skip_trampoline_code): Use get_frame_arch to get at | |
8834 | the current architecture. Replace current_gdbarch by gdbarch. | |
8835 | * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise. | |
8836 | (STACK_CORRECTION, USE_PAGE_REGISTER): Replace M6811_TDEP by its | |
8837 | expression. Add gdbarch as parameter and replace current_gdbarch with | |
8838 | it. Update caller. | |
8839 | (M6811_TDEP): Remove. | |
8840 | (m68hc11_frame_prev_register): Use get_frame_arch to get at the current | |
8841 | architecture. | |
680b56ce | 8842 | (m68hc11_scan_prologue): Add gdbarch as parameter. Replace |
be8626e0 MD |
8843 | current_gdbarch by gdbarch. Update caller. |
8844 | ||
8845 | * m68k-tdep.c (m68k_analyze_prologue): Add gdbarch as parameter and | |
8846 | update caller. | |
8847 | (m68k_analyze_register_saves): Likewise. Also replace current_gdbarch | |
8848 | by gdbarch. | |
8849 | ||
8850 | * rs6000-tdep.c (skip_prologue): Add gdbarch as parameter and update | |
8851 | caller. Relace current_gdbarch by gdbarch. | |
8852 | (altivec_register_p, spe_register_p): Likewise. | |
8853 | * ppc-tdep.h (altivec_register_p, spe_register_p): Add gdbarch as | |
8854 | parameter. | |
8855 | * ppc-linux-nat.c (fetch_register, store_register): Update caller of | |
8856 | altivec_register_p and spe_register_p. | |
8857 | ||
680b56ce | 8858 | * score-tdep.c (score_fetch_inst): Add gdbarch as parameter. Update |
be8626e0 MD |
8859 | caller. Replace current_gdbarch by gdbarch. |
8860 | (score_analyze_prologue): use get_frame_arch to get at the current | |
680b56ce | 8861 | architecture. |
be8626e0 MD |
8862 | |
8863 | * sparc-tdep.h (sparc_analyze_prologue): Add gdbarch as parameter. | |
8864 | * sparc-tdep.c (sparc_analyze_prologue): Likewise. Replace | |
8865 | current_gdbarch by gdbarch. Update caller. | |
8866 | (sparc_frame_cache): Use get_frame_arch to get at the current | |
8867 | architecture. | |
8868 | * sparce64-tdep.c (sparc64_skip_prologue): Update call of | |
8869 | sparc_analyze_prologue. | |
8870 | ||
8871 | * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Add gdbarch as | |
8872 | parameter. | |
8873 | ||
ed49a04f MD |
8874 | 2008-01-11 Markus Deuling <[email protected]> |
8875 | ||
8876 | * exec.c: #include "arch-utils.h" | |
8877 | (print_section_info): Use gdbarch_from_bfd to get at the | |
8878 | current architecture. Replace current_gdbarch. Fix indention. Replace | |
8879 | deprecated_print_address_numeric by paddress. | |
8880 | * Makefile.in (exec.o) Add dependency to arch-utils.h. | |
8881 | ||
680b56ce | 8882 | * valprint.c (val_print_string): Replace |
ed49a04f MD |
8883 | deprecated_print_address_numeric. |
8884 | * tracepoint.c (trace_mention, scope_info): Likewise. | |
8885 | * symmisc.c (dump_msymbols, dump_psymtab, dump_symtab_1, print_symbol) | |
8886 | (print_symbol, print_partial_symbols, maintenance_info_psymtabs) | |
8887 | (maintenance_check_symtabs): Likewise. | |
8888 | * symfile.c (list_overlays_command): Likewise. | |
8889 | * stack.c (frame_info, print_block_frame_labels): Likewise. | |
8890 | * printcmd.c (print_address, print_address_demangle) | |
8891 | (address_info): Likewise. | |
8892 | * corefile.c (memory_error): Likewise. | |
8893 | * infcmd.c (jump_command): Likewise. | |
8894 | * breakpoint.c (insert_bp_location, describe_other_breakpoints) | |
8895 | (mention, delete_breakpoint): Likewise. | |
8896 | * c-valprint.c (print_function_pointer_address, c_val_print): Likewise. | |
8897 | * dwarf2read.c (dump_die): Likewise. | |
8898 | * ada-valprint.c (ada_val_print_1): Likewise. | |
8899 | * f-valprint.c (f_val_print): Likewise. | |
680b56ce | 8900 | * linux-fork.c (info_forks_command): Likewise. |
ed49a04f MD |
8901 | * m32r-com.c (m32r_load_section, m32r_load) |
8902 | (m32r_upload_command): Likewise. | |
8903 | ||
8904 | * ui-out.c (ui_out_field_core_addr): Remove unnecessary comment. | |
8905 | ||
6093d2eb MD |
8906 | 2008-01-11 Markus Deuling <[email protected]> |
8907 | ||
8908 | * gdbarch.sh (skip_prologue): Add gdbarch | |
8909 | as parameter. | |
8910 | * gdbarch.{c,h}: Regenerate. | |
8911 | ||
8912 | * alpha-tdep.c (alpha_skip_prologue): Add gdbarch as parameter. | |
8913 | * amd64-tdep.c (amd64_skip_prologue): Likewise. | |
8914 | * avr-tdep.c (avr_skip_prologue): Likewise. | |
8915 | * cris-tdep.c (cris_skip_prologue): Likewise. | |
8916 | * frv-tdep.c (frv_skip_prologue): Likewise. | |
8917 | * h8300-tdep.c (h8300_skip_prologue): Likewise. | |
8918 | * hppa-tdep.c (hppa_skip_prologue): Likewise. | |
8919 | * i386-tdep.c (i386_skip_prologue): Likewise. | |
8920 | * ia64-tdep.c (ia64_skip_prologue): Likewise. | |
8921 | * iq2000-tdep.c (iq2000_skip_prologue): Likewise. | |
8922 | * m32r-tdep.c (m32r_skip_prologue): Likewise. | |
8923 | * m68hc11-tdep.c (m68hc11_skip_prologue): Likewise. | |
8924 | * m68k-tdep.c (m68k_skip_prologue): Likewise. | |
8925 | * m88k-tdep.c (m88k_skip_prologue): Likewise. | |
8926 | * mep-tdep.c (mep_skip_prologue): Likewise. | |
8927 | * mips-tdep.c (mips_skip_prologue): Likewise. | |
8928 | * mn10300-tdep.c (mn10300_skip_prologue): Likewise. | |
8929 | * mt-tdep.c (mt_skip_prologue): Likewise. | |
8930 | * rs6000-tdep.c (rs6000_skip_prologue): Likewise. | |
8931 | * score-tdep.c (score_skip_prologue): Likewise. | |
8932 | * sh64-tdep.c (sh64_skip_prologue): Likewise. | |
8933 | * sh-tdep.c (sh_skip_prologue): Likewise. | |
8934 | * sparc64-tdep.c (sparc64_skip_prologue): Likewise. | |
8935 | * sparc-tdep.c (sparc32_skip_prologue): Likewise. | |
8936 | * spu-tdep.c (spu_skip_prologue): Likewise. | |
8937 | * v850-tdep.c (v850_skip_prologue): Likewise. | |
8938 | * vax-tdep.c (vax_skip_prologue): Likewise. | |
8939 | * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise. | |
8940 | * xtensa-tdep.c (xtensa_skip_prologue): Likewise. | |
8941 | ||
8942 | * arm-tdep.c (arm_skip_prologue): Add gdbarch as parameter. Replace | |
8943 | current_gdbarch by gdbarch. | |
8944 | * m32c-tdep.c (m32c_skip_prologue): Likewise. | |
8945 | * s390-tdep.c (s390_skip_prologue): Likewise. | |
8946 | ||
72f5cf0e DE |
8947 | 2008-01-10 Doug Evans <[email protected]> |
8948 | ||
8949 | * defs.h (struct continuation_arg): Fix typo in comment. | |
8950 | * target.c (target_translate_tls_address): Fix comment spelling error. | |
8951 | ||
689e4e2d TJB |
8952 | 2008-01-09 Thiago Jung Bauermann <[email protected]> |
8953 | ||
8954 | * doublest.h (DOUBLEST_PRINT_FORMAT): Remove % from string. | |
8955 | (DOUBLEST_SCAN_FORMAT): Likewise. | |
8956 | * dfp.c (decimal_from_floating): Use DOUBLEST_PRINT_FORMAT. | |
8957 | * ada-lex.l (processReal): Prepend "%" to use of DOUBLEST_SCAN_FORMAT. | |
8958 | * c-exp.y (parse_number): Likewise. | |
8959 | * jv-exp.y (parse_number): Likewise. | |
8960 | * objc-exp.y (parse_number): Likewise. | |
8961 | * p-exp.y (parse_number): Likewise. | |
8962 | ||
ab0d6e0d JB |
8963 | 2008-01-09 Joel Brobecker <[email protected]> |
8964 | ||
8965 | * gdbtypes.c (create_array_type): Add handling of null Ada arrays. | |
8966 | (check_typedef): Likewise. | |
8967 | ||
0aea4bf3 LM |
8968 | 2008-01-09 Luis Machado <[email protected]> |
8969 | ||
8970 | * printcmd.c (printf_command): Add seen_big_h, seen_big_d and | |
8971 | seen_double_big_d, treat the new H, D, and DD modifiers as length | |
8972 | modifiers. | |
8973 | ||
137033e9 JB |
8974 | 2008-01-08 Joel Brobecker <[email protected]> |
8975 | ||
8976 | * dwarf2read.c (read_enumeration_type): Add comment. | |
8977 | ||
dda297ec TJB |
8978 | 2008-01-08 Thiago Jung Bauermann <[email protected]> |
8979 | ||
8980 | * config.in: Regenerate. | |
8981 | ||
a93c0eb6 JB |
8982 | 2008-01-08 Joel Brobecker <[email protected]> |
8983 | ||
8984 | * ada-lang.c (ada_convert_actual): Renames convert_actual. | |
8985 | Make non-static. | |
8986 | (ada_convert_actuals): Delete. | |
8987 | * ada-lang.h (ada_convert_actual): Add declaration. | |
8988 | (ada_convert_actuals): Remove declaration. | |
8989 | * infcall.c: #include "ada-lang.h". | |
8990 | (value_arg_coerce): Add new parameter sp. Update function | |
8991 | documetnation. Add handling of Ada function call parameters. | |
8992 | * Makefile.in (infcall.o): Update dependencies. | |
8993 | ||
a84a8a0d JB |
8994 | 2008-01-08 Paul Hilfinger <[email protected]> |
8995 | ||
8996 | * ada-lang.c (ensure_lval): Fix value lval kind. | |
8997 | (convert_actual): Add handling for arguments passed by reference. | |
8998 | ||
d7f98cce DE |
8999 | 2008-01-08 Doug Evans <[email protected]> |
9000 | ||
9001 | * dbxread.c (read_dbx_symtab): Fix indentation. | |
9002 | ||
4ef30785 TJB |
9003 | 2008-01-07 Thiago Jung Bauermann <[email protected]> |
9004 | ||
9005 | * Makefile.in (dfp.o): Depend on expression.h, gdbtypes.h and value.h. | |
9006 | (valarith.o): Depend on dfp.h. | |
9007 | (valops.o): Likewise. | |
9008 | * dfp.c: Include expression.h, gdbtypes.h, value.h and dfp.h. | |
9009 | (set_decnumber_context): New function. | |
9010 | (decimal_check_errors): Likewise. | |
9011 | (decimal_from_number): Likewise. | |
9012 | (decimal_to_number): Likewise. | |
9013 | (decimal_from_string): Use set_decnumber_context and | |
9014 | decimal_check_errors. | |
9015 | (decimal_from_integral): New function. | |
9016 | (decimal_from_floating): Likewise. | |
9017 | (decimal_to_double): Likewise. | |
9018 | (promote_decimal): Likewise. | |
9019 | (decimal_binop): Likewise. | |
9020 | (decimal_is_zero): Likewise. | |
9021 | (decimal_compare): Likewise. | |
9022 | (decimal_convert): Likewise. | |
9023 | * dfp.h (decimal_from_integral): New prototype. | |
9024 | (decimal_from_floating): Likewise. | |
9025 | (decimal_to_double): Likewise. | |
9026 | (decimal_binop): Likewise. | |
9027 | (decimal_is_zero): Likewise. | |
9028 | (decimal_compare): Likewise. | |
9029 | (decimal_convert): Likewise. | |
9030 | * eval.c (evaluate_subexp_standard): Remove expect_type argument from | |
9031 | call to value_from_decfloat. | |
9032 | * valarith.c: Include dfp.h. | |
9033 | (value_args_as_decimal): New function. | |
9034 | (value_binop): Add if block to handle TYPE_CODE_DECFLOAT values. | |
9035 | (value_logical_not): Likewise. | |
9036 | (value_equal): Likewise. | |
9037 | (value_less): Likewise. | |
9038 | (value_pos): Likewise. | |
9039 | (value_neg): Formatting fix. | |
9040 | * valops.c: Include dfp.h. | |
9041 | (value_cast): Add if block to handle TYPE_CODE_DECFLOAT values. | |
9042 | * value.c (unpack_long): Add case to handle TYPE_CODE_DECFLOAT. | |
9043 | (unpack_double): Add if block to handle TYPE_CODE_DECFLOAT. | |
9044 | (value_from_decfloat): Remove expect_type argument. | |
9045 | * value.h (value_from_decfloat): Update prototype. | |
9046 | ||
a7c02bc8 VP |
9047 | 2008-01-07 Vladimir Prus <[email protected]> |
9048 | ||
9049 | Ignore change in name of dynamic linker during | |
9050 | execution on Solaris. This also unbreaks pending breakpoints. | |
9051 | ||
9052 | * solist.h (struct target_so_ops): New field same. | |
680b56ce AS |
9053 | * solib-svr4.c (svr4_same): New. |
9054 | (_initialize_svr4_solib): Register svr4_same. | |
9055 | * solib.c (update_solib_list): Use ops->same, if available. | |
a7c02bc8 | 9056 | |
610dd7f9 CF |
9057 | 2008-01-06 Christopher Faylor <[email protected]> |
9058 | ||
9059 | * win32-nat.c (win32_make_so): Use cygwin-style path to avoid warnings | |
9060 | when using MS-DOS paths. | |
9061 | ||
7a404eba PA |
9062 | 2008-01-05 Pedro Alves <[email protected]> |
9063 | ||
9064 | * NEWS: Mention --pid and --core command line behaviour changes. | |
9065 | ||
a4d9b460 PA |
9066 | 2008-01-05 Pedro Alves <[email protected]> |
9067 | ||
9068 | * main.c (captured_main): Remove 'count' varible and the | |
9069 | ALIGN_STACK_ON_ENTRY block that used it. Error out if --core and | |
9070 | --pid options were issued simultaneously. If an explicit pid | |
9071 | option was passed, don't fallback to core file. Detect extra | |
9072 | arguments better in the presence of explicit pid or core | |
9073 | arguments. | |
9074 | ||
0c281816 JB |
9075 | 2008-01-05 Joel Brobecker <[email protected]> |
9076 | ||
9077 | * ada-lang.c (ada_which_variant_applies): Correctly compute | |
9078 | the value of the discriminant when the variant record is packed. | |
9079 | ||
babe1480 JB |
9080 | 2008-01-04 Joel Brobecker <[email protected]> |
9081 | ||
9082 | * ada-lang.c (is_name_suffix): Handle middle-name numeric suffixes | |
9083 | that are used to differentiate homonyms. | |
9084 | ||
727e3d2e JB |
9085 | 2008-01-04 Jerome Guitton <[email protected]> |
9086 | ||
9087 | * ada-lang.c (decode_packed_array_type): Avoid a seg fault | |
9088 | when the type is an anonymous pointer type. | |
9089 | (ada_check_typedef): Avoid a seg fault when the type is null. | |
9090 | * ada-typeprint.c (print_array_type): Add support for pointer | |
9091 | to packed arrays. | |
9092 | ||
bb28a9dc JB |
9093 | 2008-01-04 Paul N. Hilfinger <[email protected]> |
9094 | ||
680b56ce | 9095 | * ada-exp.y: Allow '{type} ADDRESS' notation on left of assignment. |
bb28a9dc | 9096 | |
6799def4 JB |
9097 | 2008-01-04 Joel Brobecker <[email protected]> |
9098 | ||
9099 | * ada-lang.c (ada_evaluate_subexp): Evaluate tagged types in | |
9100 | EVAL_NORMAL mode when noside is EVAL_AVOID_SIDE_EFFECTS. | |
9101 | ||
d3353bbd JB |
9102 | 2008-01-04 Joel Brobecker <[email protected]> |
9103 | ||
9104 | * ada-exp.y (chop_separator): New function. | |
9105 | (write_selectors): Rewrite to re-use chop_separator. | |
9106 | (ada_nget_field_index, get_symbol_field_type): New functions. | |
9107 | (write_var_or_type): Add support for "ptype TYPENAME.FIELD" | |
9108 | expressions. | |
9109 | ||
82cf6c60 TJB |
9110 | 2008-01-03 Thiago Jung Bauermann <[email protected]> |
9111 | ||
9112 | * symtab.c (find_pc_sect_line): Use SYMBOL_VALUE_ADDRESS instead | |
9113 | of SYMBOL_VALUE when working with function symbols. | |
9114 | ||
b3dbf008 JB |
9115 | 2008-01-03 Joel Brobecker <[email protected]> |
9116 | ||
9117 | * ada-lang.c (resolve_subexp): Add handling of OP_REGISTER | |
9118 | expressions. These expressions do not need to be rewriten. | |
9119 | ||
02eb380e JB |
9120 | 2008-01-03 Joel Brobecker <[email protected]> |
9121 | ||
9122 | * dwarf2read.c (read_enumeration_type): Flag type as stub if | |
9123 | the given die is a declaration. | |
9124 | ||
abb68b3e JB |
9125 | 2008-01-03 Joel Brobecker <[email protected]> |
9126 | ||
9127 | * ada-lang.c (ada_array_bound_from_type): Make non-static. | |
9128 | Handle properly the case when the index type is an enumerated type. | |
9129 | Do not return the subtype of the bounds type, just return the | |
9130 | bounds type directly - this is not needed and is more consistent | |
9131 | with what we do for arrays when no XA parallel type exists. | |
9132 | ||
f192137b JB |
9133 | 2008-01-03 Joel Brobecker <[email protected]> |
9134 | ||
9135 | * ada-lang.c (static_unwrap_type): Add forward declaration. | |
9136 | (template_to_static_fixed_type): Fields of dynamic types sometimes | |
9137 | also need to be unwrapped. Take this into account. | |
9138 | (ada_to_fixed_type_1): Renamed from ada_to_fixed_type. | |
9139 | (ada_to_fixed_type): New wrapper around ada_to_fixed_type_1. | |
9140 | * ada-typeprint.c (ada_print_type): Get the typename from | |
680b56ce | 9141 | the original type, not the base type. |
f192137b | 9142 | |
1ed6ede0 JB |
9143 | 2008-01-03 Jerome Guitton <[email protected]> |
9144 | ||
9145 | * ada-lang.c (ada_value_struct_elt, to_fixed_array_type) | |
680b56ce | 9146 | (to_fixed_array_type, ada_to_fixed_value_create, unwrap_value): |
1ed6ede0 JB |
9147 | Update calls to ada_to_fixed_type. |
9148 | (ada_template_to_fixed_record_type_1): Ditto, but without looking | |
9149 | for the tag. | |
9150 | (ada_to_fixed_type): Add check_tag parameter; do not look for | |
9151 | tag if null. When looking for a tag, use a fixed record type. | |
9152 | * ada-lang.h (ada_to_fixed_type): Add check_tag parameter. | |
9153 | * ada-valprint.c (printable_val_type, ada_value_print): Update | |
9154 | calls to ada_to_fixed_type. | |
9155 | ||
542a88d0 LM |
9156 | 2008-01-03 Luis Machado <[email protected]> |
9157 | ||
680b56ce | 9158 | * doublest.c (convert_floatformat_to_doublest): Call |
542a88d0 LM |
9159 | floatformat_to_doublest instead of floatformat_to_double and use |
9160 | DOUBLEST variables. | |
9161 | (convert_doublest_to_floatformat): Call floatformat_from_doublest | |
9162 | instead of floatformat_from_double and use DOUBLEST variables. | |
9163 | ||
dc2bbab2 NH |
9164 | 2008-01-03 Nick Hudson <[email protected]> |
9165 | ||
9166 | * MAINTAINERS (Write After Approval): Add self. | |
9167 | ||
8b60591b JB |
9168 | 2008-01-03 Joel Brobecker <[email protected]> |
9169 | ||
9170 | * symfile.c (set_initial_language): Make non-static. | |
9171 | * symfile.h (set_initial_language): Add declaration. | |
9172 | * language.c: #include "symfile.h". | |
9173 | (set_language): Call set_initial_language if the frame language | |
9174 | could not be determined. | |
9175 | ||
ceef53c1 JB |
9176 | 2008-01-03 Paul N. Hilfinger <[email protected]> |
9177 | ||
9178 | * eval.c (evaluate_subexp_for_address): Provide frame address to | |
9179 | locate_var_value only if it will be needed. | |
9180 | ||
ef29ce1a JK |
9181 | 2008-01-02 Jan Kratochvil <[email protected]> |
9182 | ||
9183 | * linux-nat.c (linux_child_follow_fork): Call also CHECK_FOR_THREAD_DB. | |
9184 | ||
0a07e705 JB |
9185 | 2008-01-02 Joel Brobecker <[email protected]> |
9186 | ||
9187 | * ada-lang.c (ada_evaluate_subexp): Modify the value returned | |
9188 | when noside is EVAL_AVOID_SIDE_EFFECTS to be an lval_memory. | |
9189 | This is needed to make sure that any other treatment applied | |
9190 | to the resulting value does not fail for spurious reason, | |
9191 | such as trying to take the address of this value. | |
9192 | ||
f58b38bf JB |
9193 | 2008-01-02 Joel Brobecker <[email protected]> |
9194 | ||
9195 | * ada-lang.c (ada_value_equal): Dereference reference types when | |
9196 | comparing arrays. | |
680b56ce | 9197 | |
9b254dd1 DJ |
9198 | 2008-01-01 Daniel Jacobowitz <[email protected]> |
9199 | ||
9200 | Updated copyright notices for most files. | |
9201 | ||
33605d39 CF |
9202 | 2008-01-01 Christopher Faylor <[email protected]> |
9203 | ||
9204 | * win32-nat.c (psapi_module_handle): Remove static. | |
9205 | (get_module_name): Rename from psapi_get_dll_name. Revamp slightly to | |
9206 | return first module found if base_address is zero. Don't initialize | |
9207 | psapi function pointers here. Convert to cygwin paths when | |
9208 | appropriate. | |
9209 | (win32_pid_to_exec_file): Use Cygwin's /proc interface to determine | |
9210 | executable name. Use get_module_name when that fails or when | |
9211 | !__CYGWIN__. | |
9212 | (_initialize_psapi): New function. Initialize psapi stuff before it is | |
9213 | needed or issue a warning if it is not found. Move psapi_module_handle | |
9214 | here. | |
9215 | ||
29480c32 JB |
9216 | 2008-01-01 Joel Brobecker <[email protected]> |
9217 | ||
9218 | * ada-lang.c (ada_remove_trailing_digits): New function. | |
9219 | (ada_remove_po_subprogram_suffix): New function. | |
9220 | (ada_decode): Improve. Move the description of the algorithm | |
9221 | directly inside the code, instead of in the function global | |
9222 | description. | |
9223 | ||
969a1360 JB |
9224 | 2008-01-01 Joel Brobecker <[email protected]> |
9225 | ||
9226 | * ada-valprint.c (ada_val_print_1) [TYPE_CODE_REF]: Ignore deref_ref | |
9227 | and always print the dereferenced value. | |
9228 | ||
b7789565 JB |
9229 | 2008-01-01 Joel Brobecker <[email protected]> |
9230 | ||
9231 | * ada-lang.c (ada_evaluate_subexp, case BINOP_SUB): Add handling | |
9232 | of the case where the first argument is a reference. | |
9233 | (ada_evaluate_subexp, case BINOP_ADD): Likewise. | |
9234 | ||
73fb9985 JB |
9235 | 2008-01-01 Joel Brobecker <[email protected]> |
9236 | ||
9237 | Implement support for Ada interface types. | |
9238 | ||
9239 | * ada-lang.c (ada_is_dispatch_table_ptr_type): New function. | |
9240 | (ada_is_ignored_field): Ignore fields that are a dispatch table | |
9241 | of a tagged type. | |
9242 | ||
636265b6 JB |
9243 | 2008-01-01 Joel Brobecker <[email protected]> |
9244 | ||
9245 | * top.c (print_gdb_version): Update copyright year. | |
9246 | ||
9d200a2e | 9247 | 2008-01-01 Joel Brobecker <[email protected]> |
b7589f7d | 9248 | |
9d200a2e JB |
9249 | * ChangeLog-2007: New ChangeLog rotation. |
9250 | * ChangeLog: Reset for 2008. | |
9251 | * config/djgpp/fnchange.lst: Add entries for ChangeLog-2006 and | |
9252 | ChangeLog-2007. | |
b7589f7d | 9253 | |
9d200a2e | 9254 | For older changes see ChangeLog-2007. |
c906108c SS |
9255 | \f |
9256 | Local Variables: | |
9257 | mode: change-log | |
9258 | left-margin: 8 | |
9259 | fill-column: 74 | |
9260 | version-control: never | |
57da7796 | 9261 | coding: utf-8 |
c906108c | 9262 | End: |