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