GDB hangs when attaching to process on mips-irix.
[binutils-gdb.git] / gdb / ChangeLog
1 2010-01-09 Joel Brobecker <brobecker@adacore.com>
2
3 GDB hangs when attaching to process on mips-irix.
4 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing if
5 attaching to a process.
6
7 2010-01-09 Joel Brobecker <brobecker@adacore.com>
8
9 Use the correct breakpoint instruction on mips-irix.
10 * mips-tdep.c (mips_breakpoint_from_pc): Add new static variable
11 containing the correct breakpoint instruction to use on mips-irix.
12 Use it when the osabi is GDB_OSABI_IRIX.
13
14 2010-01-09 Joel Brobecker <brobecker@adacore.com>
15
16 -Wunused warning in procfs.c (mips-irix only).
17 * procfs.c (gdb_praddset, gdb_prdelset): New macros. Use them
18 throughout instead of using praddset and prdelset respectively.
19
20 2010-01-09 Joel Brobecker <brobecker@adacore.com>
21
22 GDB crash while stepping into function.
23 * infrun.c (handle_inferior_event): Refetch the current frame
24 after handling what.main_action, in case that pointer became
25 dangling.
26
27 2010-01-09 Joel Brobecker <brobecker@adacore.com>
28
29 Fix build failure of solaris-hosted cross debuggers.
30 * ada-valprint.c, parse.c: Include defs.h before including ctype.h.
31
32 2010-01-09 Joel Brobecker <brobecker@adacore.com>
33
34 Fix build failure on sparc-solaris.
35 * procfs.c: (procfs_do_thread_registers) Use elfcore_write_lwpstatus.
36
37 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
38
39 Move some symfile code into subroutines.
40 * symfile.h (relative_addr_info_to_section_offsets)
41 (addr_info_make_relative): New prototypes.
42 * symfile.c (default_symfile_offsets): Move a part to ...
43 (relative_addr_info_to_section_offsets): ... this new function.
44 (default_symfile_offsets): Call it.
45 (syms_from_objfile <!mainline && addrs && addrs->other[0].name>): Move
46 this part to ...
47 (addr_info_make_relative): ... this new function.
48
49 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
50
51 Add from_tty to solib_create_inferior_hook.
52 * infcmd.c (post_create_inferior): Move solib_add after
53 solib_create_inferior_hook. Pass from_tty to
54 solib_create_inferior_hook. Call solib_add and SOLIB_ADD with
55 0 from_tty and comment why.
56 * infrun.c (follow_exec): Pass from_tty solib_create_inferior_hook as 0.
57 * linux-nat.c (linux_child_follow_fork): Likewise.
58 * nto-procfs.c (procfs_post_attach, procfs_create_inferior): Likewise.
59 * solib-darwin.c (darwin_solib_create_inferior_hook): New parameter
60 from_tty.
61 * solib-frv.c (frv_solib_create_inferior_hook): Likewise.
62 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
63 * solib-null.c (null_solib_create_inferior_hook): Likewise.
64 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
65 * solib-pa64.c (pa64_solib_create_inferior_hook): Likewise.
66 * solib-som.c (som_solib_create_inferior_hook): Likewise.
67 * solib-spu.c (spu_solib_create_inferior_hook): New parameter from_tty.
68 Pass it to svr4_so_ops.solib_create_inferior_hook.
69 * solib-sunos.c (sunos_solib_create_inferior_hook): New parameter
70 from_tty.
71 * solib-svr4.c (enable_break): New parameter from_tty. Pass it to
72 solib_add.
73 (svr4_solib_create_inferior_hook): New parameter from_tty. Pass it to
74 enable_break.
75 * solib-target.c (solib_target_solib_create_inferior_hook): New
76 parameter from_tty.
77 * solib.c (solib_create_inferior_hook): New parameter from_tty. Pass
78 it to ops->solib_create_inferior_hook.
79 (reload_shared_libraries): Pass from_tty to solib_create_inferior_hook.
80 Move solib_add after solib_create_inferior_hook, call it now with
81 from_tty as 0. New comment there.
82 * solib.h (solib_create_inferior_hook): New parameter from_tty.
83 * solist.h (struct target_so_ops <solib_create_inferior_hook>):
84 Likewise.
85
86 2010-01-08 Vladimir Prus <vladimir@codesourcery.com>
87
88 Fix multiexec race.
89 * infrun.c (handle_inferior_event): Use get_thread_regcache
90 with events ptid, not get_current_regcache.
91
92 2009-01-08 Joel Brobecker <brobecker@adacore.com>
93
94 GDB crash with empty executable name (MinGW).
95 * source.c (openp): Add assert that parameter string is not NULL.
96 if parameter string is an empty string, then return with a failure
97 immediately.
98
99 2009-01-08 Joel Brobecker <brobecker@adacore.com>
100
101 Get rid of support for VAX Floats.
102 * ada-lang.h (ada_is_vax_floating_type, ada_vax_float_type_suffix)
103 (ada_vax_float_print_function): Delete.
104 * ada-lang.c (ada_is_vax_floating_type, ada_vax_float_type_suffix)
105 (ada_vax_float_print_function): Delete.
106 * ada-typeprint.c (print_vax_floating_point_type): Delete.
107 (ada_print_type): Remove support for VAX floats.
108 * ada-valprint.c (ada_val_print_1): Remove support for VAX floats.
109
110 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
111
112 * stabsread.c (read_args): Handle zero arguments.
113
114 2009-01-08 Joel Brobecker <brobecker@adacore.com>
115
116 Cannot find in-tree libiconv.a after reconfigure.
117 * acinclude.m4 (AM_ICONV): If we find an in-tree libiconv.a
118 that we can use, then cache the path to this archive.
119 * configure: Regenerate.
120
121 2010-01-07 Stan Shebs <stan@codesourcery.com>
122
123 Make tracepoint operations go through target vector.
124 * target.h (enum trace_find_type): New enum.
125 (struct target_ops): New fields to_trace_init,
126 to_download_tracepoint, to_download_trace_state_variable,
127 to_trace_set_readonly_regions, to_trace_start, to_get_trace_status,
128 to_trace_stop, to_trace_find, to_get_trace_state_variable_value,
129 to_set_disconnected_tracing.
130 (target_trace_init): New macro.
131 (target_download_tracepoint): New macro.
132 (target_download_trace_state_variable): New macro.
133 (target_trace_start): New macro.
134 (target_trace_set_readonly_regions): New macro.
135 (target_get_trace_status): New macro.
136 (target_trace_stop): New macro.
137 (target_trace_find): New macro.
138 (target_get_trace_state_variable_value): New macro.
139 (target_set_disconnected_tracing): New macro.
140 * target.c (update_current_target): Inherit and set defaults for
141 tracepoint operations.
142 * tracepoint.c (default_collect): Make globally visible.
143 (target_is_remote): Remove, along with all calls.
144 (tvariables_info): Call target_get_trace_state_variable_value.
145 (remote_set_transparent_ranges): Remove.
146 (trace_start_command): Call target_trace_init,
147 target_download_tracepoint, etc.
148 (download_tracepoint): Remove.
149 (trace_stop_command): Simplify.
150 (stop_tracing): Call target_trace_stop.
151 (get_trace_status): Call target_get_trace_status.
152 (trace_status_command): Add case for targets that cannot trace.
153 (finish_tfind_command): Change to take numerical arguments, call
154 target_trace_find.
155 (trace_find_command): Update call to finish_tfind_command.
156 (trace_find_pc_command): Ditto.
157 (trace_find_tracepoint_command): Ditto.
158 (trace_find_line_command): Ditto.
159 (trace_find_range_command): Ditto.
160 (trace_find_outside_command): Ditto.
161 (set_disconnected_tracing_value): Call
162 target_set_disconnected_tracing.
163 * remote.c: Add protocol encoding bits from tracepoint.c.
164 (trace_error): Move from tracepoint.c.
165 (remote_get_noisy_reply): Ditto.
166 (free_actions_list_cleanup_wrapper): Ditto.
167 (free_actions_list): Ditto.
168 (remote_trace_init): New function.
169 (remote_download_tracepoint): New function.
170 (remote_download_trace_state_variable): New function.
171 (remote_trace_set_readonly_regions): New function.
172 (remote_trace_start): New function.
173 (remote_get_trace_status): New function.
174 (remote_trace_stop): New function.
175 (remote_trace_find): New function.
176 (remote_download_trace_state_variable): New function.
177 (remote_set_disconnected_tracing): New function.
178 (init_remote_ops): Add tracepoint operations.
179
180 * tracepoint.c (trace_dump_command): Don't decr_pc_after_break.
181
182 2010-01-07 Tristan Gingold <gingold@adacore.com>
183
184 * symfile.c (build_section_addr_info_from_objfile): New function.
185 (symbol_file_add_separate): Don't use offsets from objfile but
186 built an addr info.
187
188 2010-01-06 Stan Shebs <stan@codesourcery.com>
189
190 Support disconnected tracing.
191 * infcmd.c (detach_command): Ask whether to stop tracing.
192 * cli/cli-cmds.c (quit_command): Ditto.
193 * breakpoint.h (struct breakpoint): New field number_on_target.
194 * breakpoint.c (create_tracepoint_from_upload): New function.
195 (get_tracepoint_by_number_on_target): New function.
196 * remote.c (struct remote): New field disconnected_tracing.
197 (remote_disconnected_tracing_feature): New function.
198 (remote_protocol_features): Add DisconnectedTracing.
199 (struct uploaded_tp): New struct.
200 (uploaded_tps): New global.
201 (get_uploaded_tp): New function.
202 (find_matching_tracepoint): New function.
203 (remote_get_tracing_state): New function.
204 (remote_start_remote): Call it.
205 * tracepoint.c (disconnected_tracing): New global.
206 (trace_start_command): Initialize number_on_target.
207 (stop_tracing): New function, split out from...
208 (trace_stop_command): Call stop_tracing.
209 (get_trace_status): New function, split out from...
210 (trace_status_command): Call get_trace_status, add info on
211 disconnection behavior.
212 (disconnect_or_stop_tracing): New function.
213 (finish_tfind_command): Translate from number on target.
214 (trace_find_tracepoint_command): Translate to number on target.
215 (send_disconnected_tracing_value): New function.
216 (set_disconnected_tracing): New function.
217 (_initialize_tracepoint): Add disconnected-tracing variable.
218 * NEWS: Mention disconnected tracing.
219
220 2010-01-06 Tristan Gingold <gingold@adacore.com>
221
222 * symtab.c (lookup_global_symbol_from_objfile): Rename objfile
223 parameter to main_objfile. Iterate on all separate debug objfiles.
224 * symfile.h (symbol_file_add_separate)
225 (find_separate_debug_file_by_debuglink): Remove parameter names.
226 * symfile.c (symbol_file_add_separate): Use add_separate_objfile.
227 (reread_symbols): Use free_objfile_separate_debug.
228 * objfiles.h (struct objfile): Add separate_debug_objfile_link.
229 Adjust comment.
230 (objfile_separate_debug_iterate, add_separate_debug_objfile)
231 (free_objfile_separate_debug): New prototypes.
232 * objfiles.c (objfile_separate_debug_iterate): New function.
233 (add_separate_debug_objfile, free_objfile_separate_debug): New
234 functions.
235 (free_objfile): Use free_objfile_separate_debug. Adjust for
236 multiple separate debug objfile.
237 (objfile_has_symbols): Adjust comment. Iterate on all separate
238 debug objfiles.
239 * minsyms.c (lookup_minimal_symbol): Adjust for multiple separate
240 debug objfile.
241 (lookup_minimal_symbol_text): Ditto.
242 (lookup_minimal_symbol_by_pc_name): Ditto.
243 (lookup_minimal_symbol_solib_trampoline): Ditto.
244 (lookup_minimal_symbol_by_pc_section_1): Iterate on all separate
245 debug objfiles.
246
247 2010-01-05 Stan Shebs <stan@codesourcery.com>
248
249 Add fast tracepoints.
250 * arch-utils.h (default_fast_tracepoint_valid_at): Declare.
251 * arch-utils.c (default_fast_tracepoint_valid_at): New function.
252 * breakpoint.h (enum bptype): Add bp_fast_tracepoint.
253 * breakpoint.c (tracepoint_type): New function.
254 (ALL_TRACEPOINTS): Use it.
255 (should_be_inserted): Ditto.
256 (bpstat_check_location): Ditto.
257 (print_one_breakpoint_location): Ditto.
258 (user_settable_breakpoint): Ditto.
259 (set_breakpoint_location_function): Ditto.
260 (disable_breakpoints_in_shlibs): Ditto.
261 (delete_trace_command): Ditto.
262 (print_it_typical): Add bp_fast_tracepoint case.
263 (bpstat_what): Ditto.
264 (print_one_breakpoint_location): Ditto.
265 (allocate_bp_location): Ditto.
266 (mention): Ditto.
267 (breakpoint_re_set_one): Ditto.
268 (disable_command): Ditto.
269 (enable_command): Ditto.
270 (check_fast_tracepoint_sals): New function.
271 (break_command_really): Call it.
272 (ftrace_command): New function.
273 (_initialize_breakpoint): Add ftrace command.
274 * gdbarch.sh (fast_tracepoint_valid_at): New.
275 * gdbarch.h, gdbarch.c: Regenerate.
276 * i386-tdep.c (i386_fast_tracepoint_valid_at): New function.
277 (i386_gdbarch_init): Use it.
278 * remote.c (struct remote_state): New field fast_tracepoints.
279 (PACKET_FastTracepoints): New packet config type.
280 (remote_fast_tracepoint_feature): New function.
281 (remote_protocol_features): Add FastTracepoints.
282 (remote_supports_fast_tracepoints): New function.
283 (_initialize_remote): Add FastTracepoints.
284 * tracepoint.c (download_tracepoint): Add fast tracepoint option.
285 * NEWS: Mention fast tracepoints.
286
287 2010-01-06 Joel Brobecker <brobecker@adacore.com>
288
289 * gdb-gdb.py: New file.
290
291 2010-01-05 Michael Snyder <msnyder@vmware.com>
292
293 * infrun.c (handle_inferior_event): Fix typo in comment.
294
295 2010-01-05 Jan Kratochvil <jan.kratochvil@redhat.com>
296
297 * symfile.c (syms_from_objfile): Remove the !MAINLINE conditional.
298
299 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
300
301 * features/Makefile (WHICH): Add s390-linux32, s390-linux64,
302 and s390x-linux64.
303 (s390-linux32-expedite): Define.
304 (s390-linux64-expedite): Define.
305 (s390x-linux64-expedite): Define.
306 * features/s390-acr.xml: New file.
307 * features/s390-fpr.xml: New file.
308 * features/s390-core32.xml: New file.
309 * features/s390-core64.xml: New file.
310 * features/s390x-core64.xml: New file.
311 * features/s390-linux32.xml: New file.
312 * features/s390-linux64.xml: New file.
313 * features/s390x-linux64.xml: New file.
314 * features/s390-linux32.c: New generated file.
315 * features/s390-linux64.c: New generated file.
316 * features/s390x-linux64.c: New generated file.
317
318 * regformats/s390-linux32.dat: New generated file.
319 * regformats/s390-linux64.dat: New generated file.
320 * regformats/s390x-linux64.dat: New generated file.
321 * regformats/reg-s390.dat: Remove.
322 * regformats/reg-s390x.dat: Remove.
323
324 * s390-nat.c: Include "auxv.h" and <elf.h>.
325 (HWCAP_S390_HIGH_GPRS): Define if undefined.
326 (s390_target_wordsize): New function.
327 (s390_auxv_parse): Likewise.
328 (s390_get_hwcap): Likewise.
329 (s390_read_description): Likewise.
330 (_initialize_s390_nat): Install s390_auxv_parse and
331 s390_read_description.
332
333 * s390-tdep.c: Include "features/s390-linux32.c",
334 "features/s390-linux64.c", and "features/s390x-linux64.c".
335 (struct gdbarch_tdep): Add gpr_full_regnum, pc_regnum, and cc_regnum.
336 (s390_register_call_saved): New function.
337 (s390_register_name): Remove.
338 (s390_register_type): Remove.
339 (s390_dwarf_regmap): Add lower half GPR pseudo DWARF CFI regnums.
340 (s390_dwarf_reg_to_regnum): Remap GPR regnums to full GPRs.
341 (s390_adjust_frame_regnum): Remap GPR regnums to lower halves for CFI.
342 (s390_pseudo_register_name): New function.
343 (s390_pseudo_register_type): New function.
344 (s390_pseudo_register_read): Handle both 32-bit and 64-bit cases.
345 Handle full GPR pesudos and varying pseudo register numbers.
346 (s390_pseudo_register_write): Likewise
347 (s390x_pseudo_register_read): Remove.
348 (s390x_pseudo_register_write): Likewise.
349 (s390_register_group): Remove.
350 (s390_pseudo_register_group): New function.
351 (s390_regmap_gregset): Add GPR upper halves.
352 (s390x_regmap_gregset): Likewise.
353 (s390_regmap_fpregset): Likewise.
354 (s390_regmap_upper): New global variable.
355 (s390_upper_regset): New global variable.
356 (s390_upper_regset_sections): New global variable.
357 (s390_regset_from_core_section): Handle GPR upper halves.
358 (s390_core_read_description): New function.
359 (s390_prologue_frame_unwind_cache): Set up ABI call-saved/clobbered
360 register information. Handle varying pseudo register numbers.
361 (s390_backchain_frame_unwind_cache): Likewise.
362 (s390_frame_prev_register): Unwind full GPRs to show lower halves.
363 (s390_stub_frame_unwind_cache): Handle varying pseudo register numbers.
364 (s390_sigtramp_frame_unwind_cache): Unwind PSWM and PSWA as well as
365 PC and CC pseudos. Unwind upper halves and full GPRs as appropriate.
366 Handle varying pseudo register numbers.
367 (s390_unwind_pc): Handle varying pseudo register numbers.
368 (s390_dwarf2_prev_register): New function.
369 (s390_dwarf2_frame_init_reg): Set up ABI call-saved/clobbered
370 register information. Handle varying pseudo register numbers.
371 Install s390_dwarf2_prev_register to unwind full GPRs.
372 (s390_gdbarch_init): Handle target descriptions. Assign varying
373 pseudo register numbers. Install s390_adjust_frame_regnum.
374 (_initialize_s390_tdep): Initialize target descriptions.
375
376 * s390-tdep.h (S390_R0_UPPER_REGNUM .. S390_R15_UPPER_REGNUM): Define.
377 (S390_NUM_REGS): Redefine to include upper half registers.
378 (S390_PC_REGNUM, S390_CC_REGNUM): Remove.
379 (S390_NUM_PSEUDO_REGS, S390_NUM_TOTAL_REGS): Likewise.
380 (tdesc_s390_linux32): Add declaration.
381 (tdesc_s390_linux64): Likewise.
382 (tdesc_s390x_linux64): Likewise.
383
384 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
385
386 * regset.h (struct core_regset_section): Add HUMAN_NAME.
387 * i386-linux-tdep.c (i386_linux_regset_sections): Fill in HUMAN_NAME.
388 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
389 (ppc_linux_vmx_regset_sections): Likewise.
390 (ppc_linux_fp_regset_sections): Likewise.
391
392 * corelow.c (get_core_register_section): Constify arguments.
393 (get_core_registers): Use gdbarch_core_regset_sections instead
394 of hard-coded platform-specific register section names.
395
396 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
397
398 * dwarf2loc.c (read_pieced_value): If a piece occupies part of
399 a register, assume the least-significant part is used.
400 (write_pieced_value): Likewise.
401
402 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
403
404 * printcmd.c: Include "arch-utils.h".
405 (do_one_display): Re-parse expression if current architecture changed.
406
407 2010-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
408 Joel Brobecker <brobecker@adacore.com>
409
410 * gdbtypes.c (check_typedef): New comment on type length.
411 * value.c (allocate_value_lazy): Remove the unused atype variable. New
412 comment on type length.
413 (value_primitive_field): Keep the original TYPE value, new comment.
414
415 2010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
416
417 * cli/cli-script.c (process_next_line): Rename p1 as p_end and p2 as
418 p_start. Change != comparisons to > and < comparisons.
419
420 2010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
421
422 * cli/cli-script.c (process_next_line): Check P2 overrun.
423
424 2009-01-01 Joel Brobecker <brobecker@adacore.com>
425
426 Update the copyright hearder to add year 2010 for most GDB files.
427
428 2009-01-01 Joel Brobecker <brobecker@adacore.com>
429
430 Fix build failure in inf-ptrace.c.
431 * inf-ptrace.c (inf_ptrace_follow_fork): Fix typo.
432
433 2010-01-01 Joel Brobecker <brobecker@adacore.com>
434
435 * top.c (print_gdb_version): Update copyright year.
436
437 2010-01-01 Joel Brobecker <brobecker@adacore.com>
438
439 Fix break *FUN'address thread NUM.
440 * ada-lex.l (task): Expand rule to also match the thread keyword.
441
442 2010-01-01 Joel Brobecker <brobecker@adacore.com>
443
444 Fix break *FUN'address task NUM.
445 * ada-lex.l (task): New rule.
446 * ada-lang.c (valid_task_id): Make sure the Ada task list has
447 been built before using it.
448
449 For older changes see ChangeLog-2009.
450 \f
451 Local Variables:
452 mode: change-log
453 left-margin: 8
454 fill-column: 74
455 version-control: never
456 coding: utf-8
457 End: