]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gdb/ChangeLog
2010-01-13 Phil Muldoon <pmuldoon@redhat.com>
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
1 2010-01-13 Phil Muldoon <pmuldoon@redhat.com>
2
3 PR python/10705
4
5 * python/python-internal.h: Add lazy_string_object_type
6 definition.
7 (create_lazy_string_object, gdbpy_initialize_lazy_string)
8 (gdbpy_is_lazystring, gdbpy_extract_lazy_string): Define.
9 * python/py-value.c (valpy_lazy_string): New function.
10 (convert_value_from_python): Add lazy string conversion.
11 * python/py-prettyprint.c (pretty_print_one_value): Check if
12 return is also a lazy string.
13 (print_string_repr): Add lazy string printing branch.
14 (print_children): Likewise.
15 * python/py-lazy-string.c: New file. Implement lazy strings.
16 * python/python.c (_initialize_python): Call
17 gdbpy_initialize_lazy_string.
18 * varobj.c (value_get_print_value): Add lazy string printing
19 branch. Account for encoding.
20 * c-lang.c (c_printstr): Account for new encoding argument. If
21 encoding is NULL, find encoding suited for type, otherwise use
22 user encoding.
23 * language.h (language_defn): Add encoding argument.
24 (LA_PRINT_STRING): Likewise.
25 * language.c (unk_lang_printstr): Update to reflect new encoding
26 argument to language_defn.
27 * ada-lang.h (ada_printstr): Likewise.
28 * c-lang.h (c_printstr): Likewise.
29 * p-lang.h (pascal_printstr);
30 * f-lang.c (f_printstr): Likewise.
31 * m2-lang.c (m2_printstr): Likewise.
32 * objc-lang.c (objc_printstr): Likewise.
33 * p-lang.c (pascal_printstr): Likewise.
34 * scm-lang.c (scm_printstr): Likewise.
35 * c-valprint.c (c_val_print): Update LA_PRINT_STRING call for
36 encoding argument.
37 * ada-valprint.c (ada_printstr): Likewise.
38 * f-valprint.c (f_val_print): Likewise
39 * m2-valprint.c (m2_val_print): Likewise.
40 * p-valprint.c (pascal_val_print): Likewise.
41 * expprint.c (print_subexp_standard): Likewise.
42 * valprint.c (val_print_string): Likewise.
43 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-lazy-string.
44 (SUBDIR_PYTHON_SRCS): Likewise.
45 (py-lazy-string.o): New rule.
46
47
48 2010-01-13 Doug Evans <dje@google.com>
49
50 * mi/mi-main.c (list_available_thread_groups): Avoid "may be used
51 uninitialized" warning from gcc on local `tree'.
52
53 2010-01-13 Vladimir Prus <vladimir@codesourcery.com>
54
55 Implement core awareness.
56
57 * bcache.c (compare_ints): Remove
58 (print_percentage): Use compare_positive_ints.
59 * defs.h (compare_positive_ints): Declare.
60 * linux-nat.h (struct lin_lwp): New field core.
61 (linux_nat_core_of_thread_1): Declare.
62 * linux-nat.c (add_lwp): Init the 'core' field.
63 (linux_nat_wait_1): Record the core.
64 (linux_nat_core_of_thread_1, linux_nat_core_of_thread): New.
65 (linux_nat_add_target): Register the above.
66 * linux-thread-db.c (update_thread_core): New.
67 (thread_db_find_new_threads): Update core information for
68 every thread.
69 * remote.c (struct private_thread_info): New.
70 (free_private_thread_info, demand_private_info): New.
71 (PACKET_qXfer_threads, use_osdata_threads): New.
72 (struct thread_item, threads_parsing_context
73 (start_thread, end_thread, thread_attributes)
74 (thread_children, threads_children, threads_elements): New.
75 (remote_threads_info): Try qXfer:threads before anything
76 else.
77 (remote_protocol_packets): Register qXfer:threads.
78 (remote_open_1): Init use_osdata_threads.
79 (struct stop_reply): New field 'core'.
80 (remote_parse_stop_reply): Parse core number.
81 (process_stop_reply): Record core number.
82 (remote_xfer_partial): Handle qXfer:threads.
83 (remote_core_of_thread): New.
84 (init_remote_ops): Register remote_core_of_thread.
85 (_initialize_remote): Register qXfer:read.
86 * target.c (target_core_of_thread): New
87 * target.h (enum target_object): New value TARGET_OBJECT_THREADS.
88 (struct target_ops): New field to_core_of_threads.
89 (target_core_of_thread): Declare.
90 * gdbthread.h (struct thread_info): New field private_dtor.
91 * thread.c (print_thread_info): Report the core.
92 * ui-out.c (MAX_UI_OUT_LEVELS): Increase.
93 * utils.c (compare_positive_ints): New.
94 * features/threads.dtd: New.
95 * mi/mi-interp.c (mi_on_normal_stop): Report the core.
96 * mi/mi-main.c (struct collect_cores_data, collect_cores)
97 (do_nothing, free_vector_of_osdata_items)
98 (splay_tree_int_comparator, free_splay_tree): New.
99 (print_one_inferior_data): Implemented printing of selected
100 inferiors. Collect and print cores.
101 (output_cores): New.
102 (mi_cmd_list_thread_groups): Support --recurse. Permit specifying
103 thread groups together with --available.
104
105 2010-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
106
107 * configure: Regenerate (for _STRUCTURED_PROC).
108
109 2010-01-12 Joel Brobecker <brobecker@adacore.com>
110
111 Delete dead function.
112 * ada-lang.c (extract_string): Delete. No longer used.
113
114 2010-01-12 Joel Brobecker <brobecker@adacore.com>
115
116 Fix -Wunused warning in dec-thread.c.
117 * dec-thread.c (dec_thread_count_gdb_threads)
118 (dec_thread_add_gdb_thread): Prevent -Wunused warning.
119
120 2010-01-12 Joel Brobecker <brobecker@adacore.com>
121
122 * ada-valprint.c (ada_print_floating): Remove trailing space.
123
124 2010-01-12 Joel Brobecker <brobecker@adacore.com>
125
126 Add support for DW_AT_GNAT_descriptive_type.
127 * gdbtypes.h (enum type_specific_kind): New enum.
128 (struct main_type) [type_specific_field]: New component.
129 [type_specific]: Add new component "gnat_stuff".
130 (struct gnat_aux_type): New type.
131 (INIT_CPLUS_SPECIFIC): Also set TYPE_SPECIFIC_FIELD (type).
132 (HAVE_CPLUS_STRUCT): Also check TYPE_SPECIFIC_FIELD (type).
133 (gnat_aux_default, allocate_gnat_aux_type): Add declaration.
134 (INIT_GNAT_SPECIFIC, ALLOCATE_GNAT_AUX_TYPE, HAVE_GNAT_AUX_INFO)
135 (TYPE_SPECIFIC_FIELD): New macros.
136 (TYPE_CPLUS_SPECIFIC): Return cplus_struct_default if the given
137 type does not hold any cplus-specific data.
138 (TYPE_RAW_CPLUS_SPECIFIC): New macro.
139 (TYPE_GNAT_SPECIFIC, TYPE_DESCRIPTIVE_TYPE): New macros.
140 (TYPE_IS_OPAQUE): Use HAVE_CPLUS_STRUCT to check if type has
141 cplus-specific data.
142 * gdbtypes.c (allocate_cplus_struct_type): Minor stylistic rewrite.
143 Set new component TYPE_SPECIFIC_FIELD (type).
144 (gnat_aux_default): New constant.
145 (allocate_gnat_aux_type): New function.
146 (init_type): Add initialization the type-specific stuff for
147 TYPE_CODE_FLT and TYPE_CODE_FUNC types.
148 (print_gnat_stuff): New function.
149 (recursive_dump_type): Use HAVE_CPLUS_STRUCT to check for cplus-
150 specific data. Adjust code that prints the contents of the
151 type-specific union using the TYPE_SPECIFIC_FIELD value.
152 * dwarf2read.c (dwarf2_attach_fields_to_type): Do not allocate
153 the type cplus stuff for Ada types.
154 (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type):
155 Error out if these routines are called with an Ada type.
156 (read_structure_type, read_array_type, read_subrange_type):
157 Add call to set_descriptive_type.
158 (set_die_type): Initialize the gnat-specific data if necessary.
159 (need_gnat_info, die_descriptive_type, set_descriptive_type):
160 New functions.
161 * ada-lang.c (decode_constrained_packed_array_type): Use
162 decode_constrained_packed_array_type instead of doing a standard
163 lookup to locate a parallel type.
164 (find_parallel_type_by_descriptive_type): New function.
165 (ada_find_parallel_type_with_name): New function.
166 (ada_find_parallel_type): Reimplement using
167 ada_find_parallel_type_with_name.
168 * ada-valprint.c (print_field_values): Use HAVE_CPLUS_STRUCT
169 to check if type has a cplus stuff.
170 * linespec.c (total_number_of_methods): Likewise.
171 * mdebugread.c (new_type): Likewise.
172
173 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
174
175 * NEWS: Document the 0b binary number prefix parsing.
176
177 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
178
179 * objfiles.c (objfile_relocate1): Change the return type to int.
180 Describe the new return value. Return non-zero if data changed.
181 (objfile_relocate): New variable changed. Set it. Call
182 breakpoint_re_set depending on CHANGED.
183
184 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
185
186 Implement binary numbers parsing.
187 * c-exp.y (parse_number): New case 'b' and 'B'.
188
189 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
190 Tristan Gingold <gingold@adacore.com>
191
192 * solib.c (info_sharedlibrary_command): Replace
193 objfile_has_partial_symbols and objfile_has_full_symbols calls by
194 objfile_has_symbols.
195
196 2010-01-10 Joel Brobecker <brobecker@adacore.com>
197
198 * NEWS: Document the improvements made to the mips-irix port.
199
200 2010-01-09 Joel Brobecker <brobecker@adacore.com>
201
202 Fix the documentation of valprint.c:value_print.
203 * valprint.c (value_print): Update the function description to
204 mention that the syntax of the output follows the current_language,
205 not necessarily C.
206
207 2010-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
208
209 Fix displacement of separate debug info files.
210 * objfiles.c (objfile_relocate): Rename to ...
211 (objfile_relocate1): ... here and make it static. Extend the comment.
212 (objfile_relocate): New function.
213 * solib-spu.c (spu_relocate_main_executable): Explicitly check if
214 SYMFILE_OBJFILE is NULL. Remove variables objfile and old_chain.
215 Remove following of SEPARATE_DEBUG_OBJFILE. new_offsets is now
216 allocated using alloca.
217 * symfile.c (copy_section_addr_info): Remove.
218 (build_section_addr_info_from_objfile): Make it global. New variables
219 addr_bit and mask, use them.
220 * symfile.h (build_section_addr_info_from_objfile): New prototype.
221 (copy_section_addr_info): Remove.
222
223 2010-01-09 Joel Brobecker <brobecker@adacore.com>
224
225 Signal unwinder for mips-irix N32.
226 * mips-irix-tdep.c: #include mips-tdep.h, trad-frame.h, and
227 tramp-frame.h.
228 (SIGTRAMP_FRAME_SIZE, SIGCONTEXT_PC_OFF, SIGCONTEXT_REGS_OFF)
229 (SIGCONTEXT_FPREGS_OFF, SIGCONTEXT_FPCSR_OFF, SIGCONTEXT_HI_OFF)
230 (SIGCONTEXT_LO_OFF): New macros.
231 (mips_irix_n32_tramp_frame_init): New function.
232 (mips_irix_n32_tramp_frame): New static constant.
233 (mips_irix_init_abi): Prepend the mips_irix_n32_tramp_frame unwinder.
234
235 2010-01-09 Joel Brobecker <brobecker@adacore.com>
236
237 Breakpoint in shared library does not work on mips-irix.
238 * procfs.c: #include "observer.h".
239 (procfs_inferior_created): New function, moving here the code
240 which unsets the syssgi syscall-exit notifications.
241 (procfs_create_inferior): Remove the code which unsets the syssgi
242 syscall-exit notifications. It is too early to do this here.
243 (_initialize_procfs): Attach the procfs_inferior_created observer.
244
245 2010-01-09 Joel Brobecker <brobecker@adacore.com>
246
247 Wrong return convention for arrays (mips-irix).
248 * mips-tdep.c (mips_n32n64_return_value): Arrays whose size is
249 128 bits or smaller are returned the same way as structs
250 and unions of the the same size.
251
252 2010-01-09 Joel Brobecker <brobecker@adacore.com>
253
254 Cannot set the PC on mips-irix.
255 * irix5-nat.c (fill_gregset): Check regno against the raw PC
256 register number, no the cooked one.
257
258 2010-01-09 Joel Brobecker <brobecker@adacore.com>
259
260 Error while loading core file on mips-irix.
261 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing
262 if debugging from a core file.
263
264 2010-01-09 Joel Brobecker <brobecker@adacore.com>
265
266 GDB hangs when attaching to process on mips-irix.
267 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing if
268 attaching to a process.
269
270 2010-01-09 Joel Brobecker <brobecker@adacore.com>
271
272 Use the correct breakpoint instruction on mips-irix.
273 * mips-tdep.c (mips_breakpoint_from_pc): Add new static variable
274 containing the correct breakpoint instruction to use on mips-irix.
275 Use it when the osabi is GDB_OSABI_IRIX.
276
277 2010-01-09 Joel Brobecker <brobecker@adacore.com>
278
279 -Wunused warning in procfs.c (mips-irix only).
280 * procfs.c (gdb_praddset, gdb_prdelset): New macros. Use them
281 throughout instead of using praddset and prdelset respectively.
282
283 2010-01-09 Joel Brobecker <brobecker@adacore.com>
284
285 GDB crash while stepping into function.
286 * infrun.c (handle_inferior_event): Refetch the current frame
287 after handling what.main_action, in case that pointer became
288 dangling.
289
290 2010-01-09 Joel Brobecker <brobecker@adacore.com>
291
292 Fix build failure of solaris-hosted cross debuggers.
293 * ada-valprint.c, parse.c: Include defs.h before including ctype.h.
294
295 2010-01-09 Daniel Gutson <dgutson@codesourcery.com>
296
297 Fix build failure on sparc-solaris.
298 * procfs.c: (procfs_do_thread_registers) Use elfcore_write_lwpstatus.
299
300 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
301
302 Move some symfile code into subroutines.
303 * symfile.h (relative_addr_info_to_section_offsets)
304 (addr_info_make_relative): New prototypes.
305 * symfile.c (default_symfile_offsets): Move a part to ...
306 (relative_addr_info_to_section_offsets): ... this new function.
307 (default_symfile_offsets): Call it.
308 (syms_from_objfile <!mainline && addrs && addrs->other[0].name>): Move
309 this part to ...
310 (addr_info_make_relative): ... this new function.
311
312 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
313
314 Add from_tty to solib_create_inferior_hook.
315 * infcmd.c (post_create_inferior): Move solib_add after
316 solib_create_inferior_hook. Pass from_tty to
317 solib_create_inferior_hook. Call solib_add and SOLIB_ADD with
318 0 from_tty and comment why.
319 * infrun.c (follow_exec): Pass from_tty solib_create_inferior_hook as 0.
320 * linux-nat.c (linux_child_follow_fork): Likewise.
321 * nto-procfs.c (procfs_post_attach, procfs_create_inferior): Likewise.
322 * solib-darwin.c (darwin_solib_create_inferior_hook): New parameter
323 from_tty.
324 * solib-frv.c (frv_solib_create_inferior_hook): Likewise.
325 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
326 * solib-null.c (null_solib_create_inferior_hook): Likewise.
327 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
328 * solib-pa64.c (pa64_solib_create_inferior_hook): Likewise.
329 * solib-som.c (som_solib_create_inferior_hook): Likewise.
330 * solib-spu.c (spu_solib_create_inferior_hook): New parameter from_tty.
331 Pass it to svr4_so_ops.solib_create_inferior_hook.
332 * solib-sunos.c (sunos_solib_create_inferior_hook): New parameter
333 from_tty.
334 * solib-svr4.c (enable_break): New parameter from_tty. Pass it to
335 solib_add.
336 (svr4_solib_create_inferior_hook): New parameter from_tty. Pass it to
337 enable_break.
338 * solib-target.c (solib_target_solib_create_inferior_hook): New
339 parameter from_tty.
340 * solib.c (solib_create_inferior_hook): New parameter from_tty. Pass
341 it to ops->solib_create_inferior_hook.
342 (reload_shared_libraries): Pass from_tty to solib_create_inferior_hook.
343 Move solib_add after solib_create_inferior_hook, call it now with
344 from_tty as 0. New comment there.
345 * solib.h (solib_create_inferior_hook): New parameter from_tty.
346 * solist.h (struct target_so_ops <solib_create_inferior_hook>):
347 Likewise.
348
349 2010-01-08 Vladimir Prus <vladimir@codesourcery.com>
350
351 Fix multiexec race.
352 * infrun.c (handle_inferior_event): Use get_thread_regcache
353 with events ptid, not get_current_regcache.
354
355 2009-01-08 Joel Brobecker <brobecker@adacore.com>
356
357 GDB crash with empty executable name (MinGW).
358 * source.c (openp): Add assert that parameter string is not NULL.
359 if parameter string is an empty string, then return with a failure
360 immediately.
361
362 2009-01-08 Joel Brobecker <brobecker@adacore.com>
363
364 Get rid of support for VAX Floats.
365 * ada-lang.h (ada_is_vax_floating_type, ada_vax_float_type_suffix)
366 (ada_vax_float_print_function): Delete.
367 * ada-lang.c (ada_is_vax_floating_type, ada_vax_float_type_suffix)
368 (ada_vax_float_print_function): Delete.
369 * ada-typeprint.c (print_vax_floating_point_type): Delete.
370 (ada_print_type): Remove support for VAX floats.
371 * ada-valprint.c (ada_val_print_1): Remove support for VAX floats.
372
373 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
374
375 * stabsread.c (read_args): Handle zero arguments.
376
377 2009-01-08 Joel Brobecker <brobecker@adacore.com>
378
379 Cannot find in-tree libiconv.a after reconfigure.
380 * acinclude.m4 (AM_ICONV): If we find an in-tree libiconv.a
381 that we can use, then cache the path to this archive.
382 * configure: Regenerate.
383
384 2010-01-07 Stan Shebs <stan@codesourcery.com>
385
386 Make tracepoint operations go through target vector.
387 * target.h (enum trace_find_type): New enum.
388 (struct target_ops): New fields to_trace_init,
389 to_download_tracepoint, to_download_trace_state_variable,
390 to_trace_set_readonly_regions, to_trace_start, to_get_trace_status,
391 to_trace_stop, to_trace_find, to_get_trace_state_variable_value,
392 to_set_disconnected_tracing.
393 (target_trace_init): New macro.
394 (target_download_tracepoint): New macro.
395 (target_download_trace_state_variable): New macro.
396 (target_trace_start): New macro.
397 (target_trace_set_readonly_regions): New macro.
398 (target_get_trace_status): New macro.
399 (target_trace_stop): New macro.
400 (target_trace_find): New macro.
401 (target_get_trace_state_variable_value): New macro.
402 (target_set_disconnected_tracing): New macro.
403 * target.c (update_current_target): Inherit and set defaults for
404 tracepoint operations.
405 * tracepoint.c (default_collect): Make globally visible.
406 (target_is_remote): Remove, along with all calls.
407 (tvariables_info): Call target_get_trace_state_variable_value.
408 (remote_set_transparent_ranges): Remove.
409 (trace_start_command): Call target_trace_init,
410 target_download_tracepoint, etc.
411 (download_tracepoint): Remove.
412 (trace_stop_command): Simplify.
413 (stop_tracing): Call target_trace_stop.
414 (get_trace_status): Call target_get_trace_status.
415 (trace_status_command): Add case for targets that cannot trace.
416 (finish_tfind_command): Change to take numerical arguments, call
417 target_trace_find.
418 (trace_find_command): Update call to finish_tfind_command.
419 (trace_find_pc_command): Ditto.
420 (trace_find_tracepoint_command): Ditto.
421 (trace_find_line_command): Ditto.
422 (trace_find_range_command): Ditto.
423 (trace_find_outside_command): Ditto.
424 (set_disconnected_tracing_value): Call
425 target_set_disconnected_tracing.
426 * remote.c: Add protocol encoding bits from tracepoint.c.
427 (trace_error): Move from tracepoint.c.
428 (remote_get_noisy_reply): Ditto.
429 (free_actions_list_cleanup_wrapper): Ditto.
430 (free_actions_list): Ditto.
431 (remote_trace_init): New function.
432 (remote_download_tracepoint): New function.
433 (remote_download_trace_state_variable): New function.
434 (remote_trace_set_readonly_regions): New function.
435 (remote_trace_start): New function.
436 (remote_get_trace_status): New function.
437 (remote_trace_stop): New function.
438 (remote_trace_find): New function.
439 (remote_download_trace_state_variable): New function.
440 (remote_set_disconnected_tracing): New function.
441 (init_remote_ops): Add tracepoint operations.
442
443 * tracepoint.c (trace_dump_command): Don't decr_pc_after_break.
444
445 2010-01-07 Tristan Gingold <gingold@adacore.com>
446
447 * symfile.c (build_section_addr_info_from_objfile): New function.
448 (symbol_file_add_separate): Don't use offsets from objfile but
449 built an addr info.
450
451 2010-01-06 Stan Shebs <stan@codesourcery.com>
452
453 Support disconnected tracing.
454 * infcmd.c (detach_command): Ask whether to stop tracing.
455 * cli/cli-cmds.c (quit_command): Ditto.
456 * breakpoint.h (struct breakpoint): New field number_on_target.
457 * breakpoint.c (create_tracepoint_from_upload): New function.
458 (get_tracepoint_by_number_on_target): New function.
459 * remote.c (struct remote): New field disconnected_tracing.
460 (remote_disconnected_tracing_feature): New function.
461 (remote_protocol_features): Add DisconnectedTracing.
462 (struct uploaded_tp): New struct.
463 (uploaded_tps): New global.
464 (get_uploaded_tp): New function.
465 (find_matching_tracepoint): New function.
466 (remote_get_tracing_state): New function.
467 (remote_start_remote): Call it.
468 * tracepoint.c (disconnected_tracing): New global.
469 (trace_start_command): Initialize number_on_target.
470 (stop_tracing): New function, split out from...
471 (trace_stop_command): Call stop_tracing.
472 (get_trace_status): New function, split out from...
473 (trace_status_command): Call get_trace_status, add info on
474 disconnection behavior.
475 (disconnect_or_stop_tracing): New function.
476 (finish_tfind_command): Translate from number on target.
477 (trace_find_tracepoint_command): Translate to number on target.
478 (send_disconnected_tracing_value): New function.
479 (set_disconnected_tracing): New function.
480 (_initialize_tracepoint): Add disconnected-tracing variable.
481 * NEWS: Mention disconnected tracing.
482
483 2010-01-06 Tristan Gingold <gingold@adacore.com>
484
485 * symtab.c (lookup_global_symbol_from_objfile): Rename objfile
486 parameter to main_objfile. Iterate on all separate debug objfiles.
487 * symfile.h (symbol_file_add_separate)
488 (find_separate_debug_file_by_debuglink): Remove parameter names.
489 * symfile.c (symbol_file_add_separate): Use add_separate_objfile.
490 (reread_symbols): Use free_objfile_separate_debug.
491 * objfiles.h (struct objfile): Add separate_debug_objfile_link.
492 Adjust comment.
493 (objfile_separate_debug_iterate, add_separate_debug_objfile)
494 (free_objfile_separate_debug): New prototypes.
495 * objfiles.c (objfile_separate_debug_iterate): New function.
496 (add_separate_debug_objfile, free_objfile_separate_debug): New
497 functions.
498 (free_objfile): Use free_objfile_separate_debug. Adjust for
499 multiple separate debug objfile.
500 (objfile_has_symbols): Adjust comment. Iterate on all separate
501 debug objfiles.
502 * minsyms.c (lookup_minimal_symbol): Adjust for multiple separate
503 debug objfile.
504 (lookup_minimal_symbol_text): Ditto.
505 (lookup_minimal_symbol_by_pc_name): Ditto.
506 (lookup_minimal_symbol_solib_trampoline): Ditto.
507 (lookup_minimal_symbol_by_pc_section_1): Iterate on all separate
508 debug objfiles.
509
510 2010-01-05 Stan Shebs <stan@codesourcery.com>
511
512 Add fast tracepoints.
513 * arch-utils.h (default_fast_tracepoint_valid_at): Declare.
514 * arch-utils.c (default_fast_tracepoint_valid_at): New function.
515 * breakpoint.h (enum bptype): Add bp_fast_tracepoint.
516 * breakpoint.c (tracepoint_type): New function.
517 (ALL_TRACEPOINTS): Use it.
518 (should_be_inserted): Ditto.
519 (bpstat_check_location): Ditto.
520 (print_one_breakpoint_location): Ditto.
521 (user_settable_breakpoint): Ditto.
522 (set_breakpoint_location_function): Ditto.
523 (disable_breakpoints_in_shlibs): Ditto.
524 (delete_trace_command): Ditto.
525 (print_it_typical): Add bp_fast_tracepoint case.
526 (bpstat_what): Ditto.
527 (print_one_breakpoint_location): Ditto.
528 (allocate_bp_location): Ditto.
529 (mention): Ditto.
530 (breakpoint_re_set_one): Ditto.
531 (disable_command): Ditto.
532 (enable_command): Ditto.
533 (check_fast_tracepoint_sals): New function.
534 (break_command_really): Call it.
535 (ftrace_command): New function.
536 (_initialize_breakpoint): Add ftrace command.
537 * gdbarch.sh (fast_tracepoint_valid_at): New.
538 * gdbarch.h, gdbarch.c: Regenerate.
539 * i386-tdep.c (i386_fast_tracepoint_valid_at): New function.
540 (i386_gdbarch_init): Use it.
541 * remote.c (struct remote_state): New field fast_tracepoints.
542 (PACKET_FastTracepoints): New packet config type.
543 (remote_fast_tracepoint_feature): New function.
544 (remote_protocol_features): Add FastTracepoints.
545 (remote_supports_fast_tracepoints): New function.
546 (_initialize_remote): Add FastTracepoints.
547 * tracepoint.c (download_tracepoint): Add fast tracepoint option.
548 * NEWS: Mention fast tracepoints.
549
550 2010-01-06 Joel Brobecker <brobecker@adacore.com>
551
552 * gdb-gdb.py: New file.
553
554 2010-01-05 Michael Snyder <msnyder@vmware.com>
555
556 * infrun.c (handle_inferior_event): Fix typo in comment.
557
558 2010-01-05 Jan Kratochvil <jan.kratochvil@redhat.com>
559
560 * symfile.c (syms_from_objfile): Remove the !MAINLINE conditional.
561
562 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
563
564 * features/Makefile (WHICH): Add s390-linux32, s390-linux64,
565 and s390x-linux64.
566 (s390-linux32-expedite): Define.
567 (s390-linux64-expedite): Define.
568 (s390x-linux64-expedite): Define.
569 * features/s390-acr.xml: New file.
570 * features/s390-fpr.xml: New file.
571 * features/s390-core32.xml: New file.
572 * features/s390-core64.xml: New file.
573 * features/s390x-core64.xml: New file.
574 * features/s390-linux32.xml: New file.
575 * features/s390-linux64.xml: New file.
576 * features/s390x-linux64.xml: New file.
577 * features/s390-linux32.c: New generated file.
578 * features/s390-linux64.c: New generated file.
579 * features/s390x-linux64.c: New generated file.
580
581 * regformats/s390-linux32.dat: New generated file.
582 * regformats/s390-linux64.dat: New generated file.
583 * regformats/s390x-linux64.dat: New generated file.
584 * regformats/reg-s390.dat: Remove.
585 * regformats/reg-s390x.dat: Remove.
586
587 * s390-nat.c: Include "auxv.h" and <elf.h>.
588 (HWCAP_S390_HIGH_GPRS): Define if undefined.
589 (s390_target_wordsize): New function.
590 (s390_auxv_parse): Likewise.
591 (s390_get_hwcap): Likewise.
592 (s390_read_description): Likewise.
593 (_initialize_s390_nat): Install s390_auxv_parse and
594 s390_read_description.
595
596 * s390-tdep.c: Include "features/s390-linux32.c",
597 "features/s390-linux64.c", and "features/s390x-linux64.c".
598 (struct gdbarch_tdep): Add gpr_full_regnum, pc_regnum, and cc_regnum.
599 (s390_register_call_saved): New function.
600 (s390_register_name): Remove.
601 (s390_register_type): Remove.
602 (s390_dwarf_regmap): Add lower half GPR pseudo DWARF CFI regnums.
603 (s390_dwarf_reg_to_regnum): Remap GPR regnums to full GPRs.
604 (s390_adjust_frame_regnum): Remap GPR regnums to lower halves for CFI.
605 (s390_pseudo_register_name): New function.
606 (s390_pseudo_register_type): New function.
607 (s390_pseudo_register_read): Handle both 32-bit and 64-bit cases.
608 Handle full GPR pesudos and varying pseudo register numbers.
609 (s390_pseudo_register_write): Likewise
610 (s390x_pseudo_register_read): Remove.
611 (s390x_pseudo_register_write): Likewise.
612 (s390_register_group): Remove.
613 (s390_pseudo_register_group): New function.
614 (s390_regmap_gregset): Add GPR upper halves.
615 (s390x_regmap_gregset): Likewise.
616 (s390_regmap_fpregset): Likewise.
617 (s390_regmap_upper): New global variable.
618 (s390_upper_regset): New global variable.
619 (s390_upper_regset_sections): New global variable.
620 (s390_regset_from_core_section): Handle GPR upper halves.
621 (s390_core_read_description): New function.
622 (s390_prologue_frame_unwind_cache): Set up ABI call-saved/clobbered
623 register information. Handle varying pseudo register numbers.
624 (s390_backchain_frame_unwind_cache): Likewise.
625 (s390_frame_prev_register): Unwind full GPRs to show lower halves.
626 (s390_stub_frame_unwind_cache): Handle varying pseudo register numbers.
627 (s390_sigtramp_frame_unwind_cache): Unwind PSWM and PSWA as well as
628 PC and CC pseudos. Unwind upper halves and full GPRs as appropriate.
629 Handle varying pseudo register numbers.
630 (s390_unwind_pc): Handle varying pseudo register numbers.
631 (s390_dwarf2_prev_register): New function.
632 (s390_dwarf2_frame_init_reg): Set up ABI call-saved/clobbered
633 register information. Handle varying pseudo register numbers.
634 Install s390_dwarf2_prev_register to unwind full GPRs.
635 (s390_gdbarch_init): Handle target descriptions. Assign varying
636 pseudo register numbers. Install s390_adjust_frame_regnum.
637 (_initialize_s390_tdep): Initialize target descriptions.
638
639 * s390-tdep.h (S390_R0_UPPER_REGNUM .. S390_R15_UPPER_REGNUM): Define.
640 (S390_NUM_REGS): Redefine to include upper half registers.
641 (S390_PC_REGNUM, S390_CC_REGNUM): Remove.
642 (S390_NUM_PSEUDO_REGS, S390_NUM_TOTAL_REGS): Likewise.
643 (tdesc_s390_linux32): Add declaration.
644 (tdesc_s390_linux64): Likewise.
645 (tdesc_s390x_linux64): Likewise.
646
647 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
648
649 * regset.h (struct core_regset_section): Add HUMAN_NAME.
650 * i386-linux-tdep.c (i386_linux_regset_sections): Fill in HUMAN_NAME.
651 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
652 (ppc_linux_vmx_regset_sections): Likewise.
653 (ppc_linux_fp_regset_sections): Likewise.
654
655 * corelow.c (get_core_register_section): Constify arguments.
656 (get_core_registers): Use gdbarch_core_regset_sections instead
657 of hard-coded platform-specific register section names.
658
659 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
660
661 * dwarf2loc.c (read_pieced_value): If a piece occupies part of
662 a register, assume the least-significant part is used.
663 (write_pieced_value): Likewise.
664
665 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
666
667 * printcmd.c: Include "arch-utils.h".
668 (do_one_display): Re-parse expression if current architecture changed.
669
670 2010-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
671 Joel Brobecker <brobecker@adacore.com>
672
673 * gdbtypes.c (check_typedef): New comment on type length.
674 * value.c (allocate_value_lazy): Remove the unused atype variable. New
675 comment on type length.
676 (value_primitive_field): Keep the original TYPE value, new comment.
677
678 2010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
679
680 * cli/cli-script.c (process_next_line): Rename p1 as p_end and p2 as
681 p_start. Change != comparisons to > and < comparisons.
682
683 2010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
684
685 * cli/cli-script.c (process_next_line): Check P2 overrun.
686
687 2009-01-01 Joel Brobecker <brobecker@adacore.com>
688
689 Update the copyright hearder to add year 2010 for most GDB files.
690
691 2009-01-01 Joel Brobecker <brobecker@adacore.com>
692
693 Fix build failure in inf-ptrace.c.
694 * inf-ptrace.c (inf_ptrace_follow_fork): Fix typo.
695
696 2010-01-01 Joel Brobecker <brobecker@adacore.com>
697
698 * top.c (print_gdb_version): Update copyright year.
699
700 2010-01-01 Joel Brobecker <brobecker@adacore.com>
701
702 Fix break *FUN'address thread NUM.
703 * ada-lex.l (task): Expand rule to also match the thread keyword.
704
705 2010-01-01 Joel Brobecker <brobecker@adacore.com>
706
707 Fix break *FUN'address task NUM.
708 * ada-lex.l (task): New rule.
709 * ada-lang.c (valid_task_id): Make sure the Ada task list has
710 been built before using it.
711
712 For older changes see ChangeLog-2009.
713 \f
714 Local Variables:
715 mode: change-log
716 left-margin: 8
717 fill-column: 74
718 version-control: never
719 coding: utf-8
720 End: