* mi/mi-main.c (mi_cmd_list_target_features): Add `reverse'
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2010-09-01 Marc Khouzam <marc.khouzam@ericsson.com>
2
3 * mi/mi-main.c (mi_cmd_list_target_features): Add `reverse'
4 as a feature reported by -list-target-features.
5
6 2010-09-01 Joel Brobecker <brobecker@adacore.com>
7
8 * features/Makefile (WHICH): Add rs6000/powerpc-32.
9 (powerpc-32.o, powerpc-32.c): New rules.
10 (clean): Also remove powerpc-32.c.
11 * regformats/rs6000/powerpc-32.dat: Generate.
12
13 2010-08-31 Sami Wagiaalla <swagiaal@redhat.com>
14
15 * symfile.c (reread_symbols): Use psymbol_bcache_free, and
16 psymbol_bcache_init.
17 * psymtab.h (psymbol_bcache_init): New function prototype.
18 (psymbol_bcache_free): New function prototype.
19 (psymbol_bcache_get_bcache): New function prototype.
20 * psymtab.c (psymbol_bcache_init): New function.
21 (psymbol_bcache_free): New function.
22 (psymbol_bcache_full): New function.
23 (psymbol_bcache_get_bcache): New function.
24 (add_psymbol_to_bcache): use psymbol_bcache_full.
25 * objfiles.h (psymbol_cache): Change type of psymbol_cache to
26 psymbol_bcache.
27 * symmisc.c (print_symbol_bcache_statistics): Updated.
28 (print_objfile_statistics): Updated.
29 * objfiles.c (allocate_objfile): Use psymbol_bcache_init to initialize
30 psymbol_cache.
31 (free_objfile): Use psymbol_bcache_free.
32
33 2010-08-31 Tom Tromey <tromey@redhat.com>
34
35 PR c++/11961:
36 * dwarf2read.c (new_symbol_full) <DW_TAG_template_type_param>:
37 Don't set TYPE_NAME on the type.
38
39 2010-08-31 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
40
41 * infrun.c (set_exec_direction_func): Error out if target does not
42 support reverse execution.
43
44 2010-08-31 Jan Kratochvil <jan.kratochvil@redhat.com>
45
46 Make linux_get_siginfo_type `type *' unique.
47 * linux-tdep.c (linux_gdbarch_data_handle, struct linux_gdbarch_data)
48 (init_linux_gdbarch_data, get_linux_gdbarch_data): New.
49 (linux_get_siginfo_type): New variable linux_gdbarch_data. Initialize
50 it. Use linux_gdbarch_data->siginfo_type as a persistent storage.
51 (_initialize_linux_tdep): New.
52
53 2010-08-31 Jan Kratochvil <jan.kratochvil@redhat.com>
54
55 Code cleanup.
56 * defs.h (find_memory_region_ftype): New typedef.
57 (exec_set_find_memory_regions): Use it.
58 * exec.c (exec_set_find_memory_regions): Use find_memory_region_ftype.
59 * fbsd-nat.c (fbsd_find_memory_regions): Likewise.
60 * gcore.c (objfile_find_memory_regions): Likewise.
61 * gnu-nat.c (gnu_find_memory_regions): Likewise.
62 * linux-nat.c (linux_nat_find_memory_regions): Likewise.
63 * procfs.c (iterate_over_mappings_cb_ftype): Remove.
64 (iterate_over_mappings): Rename iterate_over_mappings_cb_ftype to
65 find_memory_region_ftype.
66 (insert_dbx_link_bpt_in_region): Likewise.
67 (iterate_over_mappings): Likewise. Drop the comment part about the
68 function prototype.
69 (find_memory_regions_callback): Use find_memory_region_ftype.
70 (proc_find_memory_regions): Likewise.
71 (info_mappings_callback): Rename iterate_over_mappings_cb_ftype to
72 find_memory_region_ftype.
73 * target.c (dummy_find_memory_regions): Use find_memory_region_ftype.
74 * target.h (struct target_ops) <to_find_memory_regions>: Likewise.
75
76 2010-08-31 Sami Wagiaalla <swagiaal@redhat.com>
77
78 * psymtab.c (add_psymbol_to_bcache): Remove 'static' from
79 'static partial_symbol psymbol'.
80 (psymbol_hash): New function.
81 (psymbol_compare): New function.
82 * bcache.c (hash_continue): New.
83 (hash): Use hash_continue.
84 * bcache.c: Add hash_function and compare_function
85 pointers to bcache struct.
86 (bcache_full): Use bcache->hash_function, and
87 bcache->compare_function.
88 (bcache_compare): New function.
89 (bcache_xmalloc): Take hash_function and
90 compare_function arguments and initialize the
91 bcach's pointers.
92 Updated comment.
93 * objfiles.c (allocate_objfile): Updated.
94 * symfile.c (reread_symbols): Updated.
95 * python/py-type.c (typy_richcompare): Updated.
96
97 2010-08-30 Andre Poenitz <andre.poenitz@nokia.com>
98 Tom Tromey <tromey@redhat.com>
99
100 PR python/11792:
101 * python/py-value.c (valpy_get_dynamic_type): New function.
102 (value_object_getset): Add "dynamic_type".
103 (valpy_get_type): Fail on error.
104
105 2010-08-30 Yao Qi <yao@codesourcery.com>
106
107 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): New.
108 (arm_linux_syscall_next_pc): New.
109 (arm_linux_copy_svc): Use arm_linux_sigreturn_return_addr instead.
110 (arm_linux_init_abi): Initialize syscall_next_pc.
111 * arm-tdep.c (thumb_get_next_pc_raw): Get next pc of SWI in Thumb mode.
112 (arm_get_next_pc_raw): Get next pc of SWI in ARM mode.
113 * arm-tdep.h (struct gdbarch_tdep): Add a function pointer syscall_next_pc.
114 Declare arm_frame_is_thumb.
115
116 2010-08-30 Jan Kratochvil <jan.kratochvil@redhat.com>
117
118 Code cleanup.
119 * breakpoint.c (bpstat_alloc): Remove unused prototype.
120 (bpstat_alloc): Change parameters cbs to bs_link_pointer. Adjust the
121 code.
122 (bpstat_stop_status): Change root_bs into bs_head and bs_link. Adjust
123 calls of bpstat_alloc. Remove explicit bs chain termination.
124
125 2010-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
126
127 Code cleanup.
128 * linux-nat.c (pull_pid_from_list): Rename status to statusp.
129 (my_waitpid): Likewise.
130
131 2010-08-27 Doug Evans <dje@google.com>
132
133 * dwarf2read.c (dw2_require_line_header): Read from .debug_types
134 as appropriate.
135
136 2010-08-27 Tom Tromey <tromey@redhat.com>
137
138 * dwarf2read.c (dwarf2_attach_fields_to_type): Don't set
139 TYPE_FIELD_IGNORE_BITS.
140
141 2010-08-27 Doug Evans <dje@google.com>
142
143 * dwarf2read.c (dwarf2_per_objfile_free): Reorganize buffers to match
144 the order they're defined in. munmap .debug_types buffer.
145
146 2010-08-26 Doug Evans <dje@google.com>
147
148 * dwarf2read.c (dw2_require_full_path): Rename parameter cu to per_cu.
149 (dw2_forget_cached_source_info): Rename local cu to per_cu.
150 (dw2_lookup_symtab, dw2_do_expand_symtabs_matching): Ditto.
151 (dw2_print_stats, dw2_expand_all_symtabs): Ditto.
152 (dw2_expand_symtabs_with_filename, dw2_find_symbol_file): Ditto.
153 (dw2_find_symbol_file, dw2_expand_symtabs_matching): Ditto.
154 (dw2_map_symbol_filenames, dwarf2_initialize_objfile): Ditto.
155 (dwarf2_free_objfile, write_one_signatured_type): Ditto.
156 (write_psymtabs_to_index): Ditto.
157
158 2010-08-26 Pedro Alves <pedro@codesourcery.com>
159
160 * NEWS: Mention libthread_db debugging with core files.
161
162 2010-08-26 Doug Evans <dje@google.com>
163
164 * dwarf2read.c (dwarf2_build_include_psymtabs): Remove unnecessary
165 forward decl. Pass pst->dirname to dwarf_decode_lines.
166 (psymtab_include_file_name): New function.
167 (dwarf_decode_lines): Call it. Update comments.
168
169 2010-08-25 Pedro Alves <pedro@codesourcery.com>
170
171 * dwarf2read.c (inherit_abstract_dies): Handle origin die's
172 compilation unit being different from target die's.
173
174 2010-08-24 Doug Evans <dje@google.com>
175
176 PR symtab/11942
177 * dwarf2read.c (dwarf2_per_objfile): New members debug_info_type_hash,
178 debug_types_type_hash.
179 (dwarf2_cu, dwarf2_per_cu_data): Delete member type_hash.
180 All uses updated.
181 (lookup_die_type): Renamed from tag_type_to_tag. First look in
182 appropriate type_hash table. All callers updated.
183 (allocate_signatured_type_table): Renamed from
184 allocate_signatured_type_hash_table. All callers updated.
185 (create_signatured_type_table_from_index): Renamed from
186 create_signatured_type_hash_from_index. All callers updated.
187 (read_die_type): Add comment. Move actual reading to ...
188 (read_die_type_1): ... here. New function.
189 (follow_die_ref_or_sig): Tweak comment.
190 (set_die_type): Rewrite to use appropriate choice of
191 debug_info_type_hash or debug_types_type_hash.
192 (get_die_type_at_offset): New function.
193 (get_die_type): Call it.
194
195 2010-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
196
197 * python/py-type.c (typy_richcompare): Initialize worklist.
198
199 2010-08-24 Daniel Jacobowitz <dan@codesourcery.com>
200 Kazu Hirata <kazu@codesourcery.com>
201 Jonathan Larmour <jifl@eCosCentric.com>
202
203 * arm-tdep.c: Include features/arm-with-m.c.
204 (arm_psr_thumb_bit): New. Update all uses of CPSR_T to
205 call this function.
206 (arm_pc_is_thumb): Add a gdbarch argument. Update all callers.
207 Check is_m after force-mode.
208 (arm_gdbarch_init): Check the binary before the target description.
209 Add check for M profile attribute. If we have an M-profile device,
210 but no target register description, use arm-with-m. Recognize the
211 new org.gnu.gdb.arm.m-profile feature and its xpsr register.
212 (_initialize_arm_tdep): Call initialize_tdesc_arm_with_m.
213 * arm-tdep.h (XPSR_T): Define.
214 (struct gdbarch_tdep): Add is_m member.
215 * features/arm-m-profile.xml, features/arm-with-m.c,
216 features/arm-with-m.xml: New files.
217
218 2010-08-23 Doug Evans <dje@google.com>
219
220 * dwarf2read.c (read_structure_type): Add comment.
221 (read_enumeration_type): Add comment.
222 (process_enumeration_scope): Move definition of some locals
223 closer to their use.
224 (read_namespace_type): Add comment.
225 (set_die_type): Fix typo in comment.
226
227 2010-08-23 Tom Tromey <tromey@redhat.com>
228
229 PR python/11145:
230 * python/py-value.c: Include expression.h.
231 (valpy_do_cast): New function.
232 (valpy_cast): Use it.
233 (valpy_dynamic_cast): New function.
234 (valpy_reinterpret_cast): Likewise.
235 (value_object_methods): Add dynamic_cast, reinterpret_cast.
236
237 2010-08-23 Tom Tromey <tromey@redhat.com>
238
239 PR python/11391:
240 * python/py-value.c (valpy_nonzero): Don't throw error for other
241 Value types.
242
243 2010-08-23 Tom Tromey <tromey@redhat.com>
244
245 PR python/10676:
246 * python/py-type.c: Include bcache.h, vec.h.
247 (struct type_equality_entry): New.
248 (compare_strings): New function.
249 (check_types_equal): Likewise.
250 (check_types_worklist): Likewise.
251 (typy_richcompare): Likewise.
252 (type_object_type): Set tp_richcompare field.
253
254 2010-08-23 Tom Tromey <tromey@redhat.com>
255
256 PR python/10953:
257 * python/py-type.c (typy_fields): Call check_typedef.
258 (typy_template_argument): Add TRY_CATCH.
259
260 2010-08-23 Tom Tromey <tromey@redhat.com>
261
262 PR python/11915:
263 * python/py-type.c (typy_array): New function.
264 (type_object_methods): Add "array".
265
266 2010-08-20 Pedro Alves <pedro@codesourcery.com>
267
268 * python/python.c: Include "serial.h".
269 (gdbpy_event_fds): Change type to `struct serial *' a array from
270 int array.
271 (gdbpy_run_events): Change parameters. Use serial_readchar in
272 place of read.
273 (gdbpy_post_event): Use serial_write in place of write.
274 (gdbpy_initialize_events): Use serial_pipe instead of pipe, and
275 serial_async in place of add_file_handler.
276
277 2010-08-20 Pedro Alves <pedro@codesourcery.com>
278
279 * serial.h (gdb_pipe, serial_pipe): Declare.
280 * serial.c (serial_interface_lookup): Take a const char pointer.
281 (serial_fdopen): Rename to ...
282 (serial_fdopen_ops): ... this. Add an OPS parameter and use it.
283 Call the OPS' fdopen function if there is one.
284 (serial_fdopen): Rewrite as wrapper to serial_fdopen_ops.
285 (serial_pipe): New.
286 (struct serial_ops) <fdopen>: New field.
287
288 * ser-mingw.c (free_pipe_state):
289 (free_pipe_state): Close output on non-pex pipes.
290 (pipe_windows_fdopen): New.
291 (gdb_pipe): New.
292 (_initialize_ser_windows): Register pipe_windows_fdopen.
293 * ser-go32.c (gdb_pipe): New.
294 * ser-pipe.c (pipe_close): Close file descriptor even if there's
295 no state pointer.
296 (pipe_ops): Delete.
297 (gdb_pipe): New.
298
299 2010-08-20 Keith Seitz <keiths@redhat.com>
300
301 PR symtab/11465:
302 * dwarf2read.c (struct delayed_method_info): New struct.
303 (struct dwarf2_cu): Add vector method_list.
304 (scan_partial_symbols): Count methods for union, class, structure,
305 and interface types.
306 (add_to_method_list): New function.
307 (free_delayed_list): New function.
308 (compute_delayed_physnames): New function.
309 (process_full_comp_unit): Make a cleanup for the CU's delayed
310 physname list, compute the delayed physnames, and free the
311 the list.
312 (dwarf2_add_member_fn): For C++ and Java, delay the computation
313 of the physname until after the CU is read.
314
315 * dwarf2read.c (read_structure_type): Check if the current
316 DIE's type was already completed after dwarf2_full_name
317 was called.
318
319 2010-08-19 Stan Shebs <stan@codesourcery.com>
320
321 * NEWS: Mention some additional changes.
322
323 2010-08-19 Tom Tromey <tromey@redhat.com>
324
325 * Makefile.in (install-python): Add DESTDIR.
326
327 2010-08-19 Doug Evans <dje@google.com>
328
329 PR exp/11926
330 * parser-defs.h (parse_float, parse_c_float): Declare.
331 * parse.c (parse_float, parse_c_float): New function.
332 * c-exp.y (parse_number): Call parse_c_float.
333 * objc-exp.y (parse_number): Ditto.
334 * p-exp.y (parse_number): Ditto. Use ANSI/ISO-style definition.
335 * jv-exp.y (parse_number): Call parse_float, fix suffix handling.
336
337 2010-08-19 Joel Brobecker <brobecker@adacore.com>
338
339 * psymtab.c (map_symbol_filenames_psymtab): Call FUN with
340 the arguments in the correct order.
341 * symtab.c (maybe_add_partial_symtab_filename): Declare
342 the arguments in the correct order.
343
344 2010-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
345
346 * varobj.c (varobj_create): Replace variable old_fi with old_id,
347 initialize it by null_frame_id, wrap its usage by get_frame_id,
348 frame_id_p and frame_find_by_id.
349
350 2010-08-18 Tom Tromey <tromey@redhat.com>
351
352 PR python/11900:
353 * configure: Rebuild.
354 * configure.ac: Add install-python to CONFIG_INSTALL.
355 * Makefile.in (install-python): New.
356
357 2010-08-18 Doug Evans <dje@google.com>
358
359 * gdb_assert.h (gdb_assert_not_reached): New macro.
360 (gdb_assert_fail): Fix typo in comment.
361 * avr-tdep.c (avr_return_value): Use gdb_assert_not_reached instead of
362 gdb_assert (0).
363 * darwin-nat.c (darwin_check_new_threads): Ditto.
364 * dwarf2read.c (dwarf2_get_section_info): Ditto.
365 (munmap_section_buffer): Ditto.
366 * m32c-tdep.c (make_types): Ditto.
367 (m32c_decode_srcdest4, m32c_decode_sd23, m32c_frame_base): Ditto.
368 * macroexp.c (get_character_constant): Ditto.
369 (get_string_literal): Ditto.
370 * mep-tdep.c (mep_pseudo_cr_size): Ditto.
371 (mep_pseudo_cr_index, mep_register_type): Ditto.
372 (mep_pseudo_register_read, mep_pseudo_register_write): Ditto.
373 (mep_get_insn, mep_analyze_prologue): Ditto.
374 * objfiles.c (qsort_cmp): Ditto.
375 * prologue-value.c (pv_is_identical): Ditto.
376 * record.c (record_get_loc): Ditto.
377 * value.c (value_static_field): Ditto.
378 * xtensa-tdep.c (call0_track_op): Ditto.
379
380 2010-08-18 Tom Tromey <tromey@redhat.com>
381
382 PR symtab/11919:
383 * gdbtypes.c (lookup_struct_elt_type): Clean up error emission.
384 * parse.c (parse_field_expression): Use RETURN_MASK_ERROR. Move
385 name-copying lower. Document exception behavior.
386 * completer.c (expression_completer): Catch exceptions from
387 parse_field_expression.
388
389 2010-08-18 Pedro Alves <pedro@codesourcery.com>
390
391 PR corefile/8210
392
393 * linux-thread-db.c (add_thread_db_info): Skip glibc/BZ5983
394 workaround on core files.
395 (try_thread_db_load_1): Don't try enabling thread event reporting
396 on core files.
397 (thread_db_load): Allow thread_db on core files.
398 (attach_thread): Don't check thread signals on core files, nor try
399 really attaching to the thread, nor enabling thread event event
400 reporting.
401 (thread_db_detach): Don't try disabing thread event reporting or
402 removing thread event breakpoints when debugging a core file.
403 (find_new_threads_callback): Don't try enabling thread event
404 reporting on core files.
405 (thread_db_find_new_threads_2): Don't look for a stopped lwp when
406 debugging a core file.
407 (thread_db_find_new_threads): Don't update thread
408 cores (processors) when debugging a core (dump).
409
410 2010-08-18 Pedro Alves <pedro@codesourcery.com>
411
412 PR corefile/8210
413
414 * corelow.c (add_to_thread_list): Don't use
415 gdbarch_core_reg_section_encodes_pid. Use bfd_core_file_pid.
416 (get_core_register_section): Don't use
417 gdbarch_core_reg_section_encodes_pid.
418
419 * gdbarch.sh (core_reg_section_encodes_pid): Delete.
420 * gdbarch.h, gdbarch.c: Regenerate.
421 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Don't set
422 gdbarch_core_reg_section_encodes_pid.
423 * i386-sol2-tdep.c (i386_sol2_init_abi): Ditto.
424 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Ditto.
425 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Ditto.
426
427 2010-08-18 Yao Qi <yao@codesourcery.com>
428
429 * MAINTAINERS : Add myself under Write After Approval.
430
431 2010-08-17 Tom Tromey <tromey@redhat.com>
432
433 * NEWS: Mention template parameter support.
434
435 2010-08-17 Pedro Alves <pedro@codesourcery.com>
436
437 PR breakpoints/11371
438
439 * breakpoint.c (decref_bp_location): Assert the reference count is
440 sane.
441
442 2010-08-17 Pedro Alves <pedro@codesourcery.com>
443
444 PR breakpoints/11371
445
446 * breakpoint.c (breakpoint_init_inferior): Decrement the
447 location's reference count instead of deleting right away.
448 (bpstat_free): Decrement the location's reference count. Make
449 static.
450 (bpstat_copy): Increment the location's reference count.
451 (bpstat_find_breakpoint): Adjust.
452 (bpstat_num): Adjust.
453 (print_it_typical): Adjust. Use the breakpoint pointer in the
454 bpstat instead of the location's owner.
455 (bpstat_alloc): Remove const qualifier from the 'bl' parameter.
456 Adjust to record the location's owner in the bpstat.
457 (watchpoint_check): Use the breakpoint pointer in the bpstat
458 instead of the location's owner.
459 (bpstat_check_breakpoint_conditions): Don't handle
460 bp_watchpoint_scope here. Use the breakpoint pointer in the
461 bpstat instead of the location's owner.
462 (bpstat_stop_status): Defer inferior function calls to after
463 building the bpstat list. Handle bp_watchpoint_scope here. Use
464 the breakpoint pointer in the bpstat instead of the location's
465 owner.
466 (bpstat_what): Use the breakpoint pointer in the bpstat instead of
467 the location's owner.
468 (free_bp_location): Don't walk bpstats clearing locations.
469 (incref_bp_location): New.
470 (decref_bp_location): New.
471 (breakpoint_auto_delete): Use the breakpoint pointer in the bpstat
472 instead of the location's owner.
473 (update_global_location_list): Clear the location's owner, and
474 decrement the location's reference count instead of deleting it
475 right away.
476 (breakpoint_retire_moribund): Decrement the location's reference
477 count instead of deleting it right away.
478 (bpstat_remove_bp_location): Delete.
479 (bpstat_remove_breakpoint): New.
480 (bpstat_remove_bp_location_callback): Delete.
481 (bpstat_remove_breakpoint_callback): New.
482 (delete_breakpoint): Iterate over all threads' stop_bpstat's
483 clearing references to the breakpoint that is being deleted.
484
485 * breakpoint.h (struct bp_location) <refc>: New field.
486 <owner>: Update comments.
487 (bpstat_free): Delete declaration.
488 (struct bpstats): Change the type of the breakpoint_at field to
489 struct breakpoint point, from struct bp_location pointer. Add new
490 field bp_location_at.
491
492 2010-08-16 Tom Tromey <tromey@redhat.com>
493
494 * NEWS: Fix typo.
495
496 2010-08-16 Tom Tromey <tromey@redhat.com>
497
498 * NEWS: Mention watch -location.
499
500 2010-08-16 Jan Kratochvil <jan.kratochvil@redhat.com>
501
502 * breakpoint.c (update_watchpoint): Add source empty line. Prefer
503 EXP_STRING_REPARSE to EXP_STRING.
504 (watch_command_1): Set also EXP_STRING_REPARSE.
505 (delete_breakpoint): Free also EXP_STRING_REPARSE.
506 * breakpoint.h (struct breakpoint): New field exp_string_reparse.
507 Update comment for exp_string.
508
509 2010-08-16 Tom Tromey <tromey@redhat.com>
510
511 * value.c (release_value): Clear 'next' pointer.
512 * breakpoint.c (watch_command_1): Add 'just_location' argument.
513 (watch_command_wrapper): Update.
514 (watch_maybe_just_location): New function.
515 (watch_command): Update.
516 (rwatch_command_wrapper): Update.
517 (rwatch_command): Update.
518 (awatch_command_wrapper): Update.
519 (awatch_command): Update.
520 (check_for_argument): New function.
521 (_initialize_breakpoint): Update help text.
522
523 2010-08-14 Ulrich Weigand <uweigand@de.ibm.com>
524
525 * arm-tdep.c (arm_push_dummy_call): Handle pointers to
526 typedef'ed function types correctly.
527
528 2010-08-13 Tom Tromey <tromey@redhat.com>
529
530 * python/python-internal.h (gdbpy_get_hook_function): Don't
531 declare.
532
533 2010-08-13 Jan Kratochvil <jan.kratochvil@redhat.com>
534
535 * cli-logging.c (logging_overwrite, logging_redirect): Make them
536 static.
537
538 2010-08-13 Ken Werner <ken.werner@de.ibm.com>
539
540 * python/python.c (gdbpy_solib_name): Remove the const qualifier of
541 the format strings to be compatible with Python 2.4.
542
543 2010-08-13 Vladimir Prus <vladimir@codesourcery.com>
544
545 Easier and more stubborn MI memory read commands.
546
547 * mi/mi-cmds.c (mi_cmds): Register data-read-memory-bytes
548 and data-write-memory-bytes.
549 * mi/mi-cmds.h (mi_cmd_data_read_memory_bytes)
550 (mi_cmd_data_write_memory_bytes): New.
551 * mi/mi-main.c (mi_cmd_data_read_memory): Use regular target_read.
552 (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory_bytes):
553 New.
554 (mi_cmd_list_features): Add "data-read-memory-bytes" feature.
555 * target.c (target_read_until_error): Remove.
556 (read_whatever_is_readable, free_memory_read_result_vector)
557 (read_memory_robust): New.
558 * target.h (target_read_until_error): Remove.
559 (struct memory_read_result, free_memory_read_result_vector)
560 (read_memory_robust): New.
561
562 2010-08-13 Hui Zhu <teawater@gmail.com>
563
564 * dwarf2read.c (load_partial_comp_unit): Initialize free_cu_cleanup.
565 (read_comp_unit): Initialize back_to.
566
567 2010-08-12 Daniel Jacobowitz <dan@codesourcery.com>
568 Pedro Alves <pedro@codesourcery.com>
569
570 * dwarf2read.c: Include "c-lang.h" and "valprint.h".
571 (struct dwarf2_per_objfile) <reading_partial_symbols>: New field.
572 (struct partial_die_info) <has_template_arguments>: New field.
573 <num_attrs>: Change type to unsigned char.
574 <building_fullname>: New field.
575 (dwarf2_build_psymtabs_hard): Set reading_partial_symbols. Only
576 allocate a CU if we don't have one already. Add a cleanup for the
577 CU.
578 (partial_die_full_name): Handle template arguments not in
579 DW_AT_name.
580 (dwarf2_psymtab_to_symtab): Clear reading_partial_symbols.
581 (load_full_comp_unit): Only allocate a CU if we don't have one
582 already.
583 (do_ui_file_peek_last): New.
584 (dwarf2_compute_name): Handle template parameters not in
585 DW_AT_name.
586 (read_comp_unit): Read and free abbrevs if not read yet.
587 (load_partial_dies): Handle template arguments not in DW_AT_name.
588 (find_partial_die): If we have a CU, but no a partial dies yet,
589 also read in the CU.
590 (dwarf2_const_value_attr): New, abstracted out from
591 dwarf2_const_value.
592 (dwarf2_const_value, dwarf2_const_value_data): Adjust to use
593 dwarf2_const_value_attr.
594 (determine_prefix): Detect and break loops created by RCVT's debug
595 info.
596 (maybe_queue_comp_unit): Bail out early if reading partial
597 symbols.
598 (follow_die_offset): Load full CU if we have no dies.
599 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Make public.
600 * dwarf2loc.h (dwarf2_evaluate_loc_desc): Declare.
601
602 2010-08-11 Tom Tromey <tromey@redhat.com>
603 Phil Muldoon <pmuldoon@redhat.com>
604
605 * python/python.c (gdbpy_run_events): New function.
606 (gdbpy_post_event): Likewise.
607 (gdbpy_initialize_events): Likewise.
608 (_initialize_python): Call gdbpy_initialize_events.
609
610 2010-08-11 Ken Werner <ken.werner@de.ibm.com>
611
612 * gdb/valarith.c (vector_binop): New function.
613 (scalar_binop): Likewise.
614 (value_binop): Call scalar_binop or vector_binop depending on the types.
615 * gdb/eval.c (ptrmath_type_p): Return 0 in case of TYPE_VECTOR.
616 (evaluate_subexp_with_coercion): Add vector check to not convert vectors
617 to pointers.
618 * gdb/value.c (coerce_array): Add vector check to not coerce vectors.
619
620 2010-08-11 Brad Roberts <braddr@puremagic.com>
621
622 * d-lang.c (extract_identifiers): Handle multiple digits.
623
624 2010-08-11 Jan Kratochvil <jan.kratochvil@redhat.com>
625
626 Code cleanup.
627 * dummy-frame.c (dummy_frame_unwinder): Remove its static qualifier.
628 Rename to dummy_frame_unwind.
629 (dummy_frame_unwind): Remove.
630 * dummy-frame.h (dummy_frame_unwind): Reference directly the struct.
631 * frame-unwind.c (frame_unwind_init): Use address of
632 dummy_frame_unwind and inline_frame_unwind.
633 * frame.c (create_sentinel_frame): Use address of
634 sentinel_frame_unwind.
635 * inline-frame.c (inline_frame_unwinder): Rename to
636 inline_frame_unwind.
637 (inline_frame_unwind): Remove.
638 * inline-frame.h (inline_frame_unwind): Reference directly the struct.
639 * sentinel-frame.c (sentinel_frame_unwinder): Rename to
640 sentinel_frame_unwind.
641 (sentinel_frame_unwind): Remove.
642 * sentinel-frame.h (sentinel_frame_unwind): Reference directly the
643 struct.
644
645 2010-08-11 Jan Kratochvil <jan.kratochvil@redhat.com>
646
647 Code cleanup.
648 * frame-unwind.c (frame_unwind_find_by_frame): Remove the return type
649 and returned value. New comment from frame-unwind.h.
650 * frame-unwind.h (frame_unwind_find_by_frame): Remove the return type.
651 Extend the comment.
652 * frame.c (get_frame_id, frame_unwind_register_value)
653 (create_new_frame, get_prev_frame_1, frame_unwinder_is)
654 (get_frame_type, frame_unwind_arch): Do not use the return value of
655 frame_unwind_find_by_frame.
656
657 2010-08-11 Phil Muldoon <pmuldoon@redhat.com>
658 Thiago Jung Bauermann <bauerman@br.ibm.com>
659 Tom Tromey <tromey@redhat.com>
660
661 * python/python.c (gdbpy_solib_address): New function.
662 (gdbpy_decode_line): Likewise.
663
664 2010-08-10 Tom Tromey <tromey@redhat.com>
665
666 Revert gdb-add-index addition:
667 * Makefile.in (install-only): Don't install gdb-add-index.
668 * gdb-add-index.sh: Remove.
669
670 2010-08-09 Kevin Buettner <kevinb@redhat.com>
671
672 * remote-sim.c (gdbsim_xfer_inferior_memory): Replace
673 `target_has_execution' check with `to_has_memory' check.
674 (gdbsim_has_all_memory, gdbsim_has_memory): New functions.
675 (init_gdbsym_ops): Initialize relevant fields of `gdbsim_ops'
676 with `gdbsim_has_all_memory' and `gdbsim_has_memory'.
677
678 2010-08-09 Kevin Buettner <kevinb@redhat.com>
679
680 * remote-sim.c (program_loaded, gdbsim_desc, remote_sim_ptid)
681 (resume_siggnal, resume_step): Move these static globals...
682 (struct sim_inferior_data): ...into this new struct.
683 (sim_inferior_data_key, next_pid, sim_argv, gdbsim_is_open):
684 New static globals.
685 (gdb_callback, callbacks_initialized): Move these globals to
686 a point earlier in the file.
687 (check_for_duplicate_sim_descriptor, get_sim_inferior_data)
688 (get_sim_inferior_data_by_ptid, sim_inferior_data_cleanup)
689 (gdbsim_close_inferior, gdbsim_resume_inferior)
690 (gdbsim_stop_inferior): New functions.
691 (SIM_INSTANCE_NOT_NEEDED, SIM_INSTANCE_NEEDED, INITIAL_PID):
692 New constants.
693 (gdbsim_fetch_register, gdbsim_store_register, gdbsim_load)
694 (gdbsim_create_inferior, gdbsim_open, gdbsim_close, gdbsim_resume)
695 (gdbsim_stop, gdbsim_cntrl_c, gdbsim_wait)
696 (gdbsim_xfer_inferior_memory, gdbsim_files_info)
697 (gdbsim_mourn_inferior, simulator_command, gdbsim_thread_alive,
698 (gdbsim_pid_to_str): Invoke `get_sim_inferior_data' to set
699 new local variable `sim_data' in each of these functions. Use
700 `sim_data' to reference former globals `program_loaded',
701 `gdbsim_desc', `remote_sim_ptid', `resume_siggnal', and
702 `resume_step'.
703 (gdbsim_open): Remove local variable `argv'. Put results of call
704 to `gdb_buildargv' in `sim_argv' rather than in `argv'. Don't
705 make a cleanup for it. Free it though when a sim instance cannot
706 be obtained.
707 (gdbsim_close): Free sim_argv and null it out as appropriate.
708 Close sim instances in all inferiors.
709 (gdbsim_cntrl_c): Stop all inferiors.
710 (gdbsim_wait):
711 (_initialize_remote_sim): Initialize `sim_inferior_data_key'.
712
713 2010-08-09 Sami Wagiaalla <swagiaal@redhat.com>
714
715 * dwarf2read.c (new_symbol): Add symbol to variable list at end of
716 function after symbol construction is complete.
717 Do the same for template symbol addition to template_symbols list.
718
719 2010-08-09 Sami Wagiaalla <swagiaal@redhat.com>
720
721 * symtab.c (symbol_get_demangled_name): Remove assertion and
722 return NULL when language_specific.cplus_specific is not initialized.
723 * stabsread.c (define_symbol): Set the name before calling
724 cp_scan_for_anonymous_namespaces.
725
726 2010-08-09 Sami Wagiaalla <swagiaal@redhat.com>
727
728 * symtab.h: Renamed SYMBOL_INIT_LANGUAGE_SPECIFIC to
729 SYMBOL_SET_LANGUAGE.
730 (symbol_init_language_specific): Renamed to symbol_set_language.
731 * symtab.c (symbol_init_language_specific): Removed redundant check
732 for language_cplus.
733 Renamed to symbol_set_language.
734 * stabsread.c (define_symbol): Updated.
735 (read_enum_type): Updated
736 * psymtab.c (add_psymbol_to_bcache): Updated.
737 * minsyms.c (install_minimal_symbols): Updated.
738 * coffread.c (process_coff_symbol): SYMBOL_SET_LANGUAGE instead of
739 SYMBOL_LANGUAGE to set the language.
740 * minsyms.c (prim_record_minimal_symbol_full): Ditto.
741 * mdebugread.c (new_symbol): Ditto.
742 * cp-namespace.c (check_one_possible_namespace_symbol): Ditto.
743 * dwarf2read.c (new_symbol_full): Ditto.
744 * jv-lang.c (add_class_symbol): Ditto.
745
746 2010-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
747
748 * defs.h (make_cleanup_restore_uinteger, make_cleanup_restore_ui_file)
749 (make_cleanup_restore_page_info)
750 (set_batch_flag_and_make_cleanup_restore_page_info): New declarations.
751 * gdbcmd.h (execute_command_to_string): New declaration.
752 * python/python.c (struct restore_ui_file_closure, restore_ui_file)
753 (make_cleanup_restore_ui_file): Move to utils.c
754 (execute_gdb_command) <to_string>: Move ...
755 * top.c (execute_command_to_string): ... here. Call
756 set_batch_flag_and_make_cleanup_restore_page_info.
757 * utils.c (make_cleanup_restore_integer): New source file blank line.
758 (make_cleanup_restore_uinteger): New.
759 (struct restore_ui_file_closure, do_restore_ui_file)
760 (make_cleanup_restore_ui_file): Move here from python/python.c.
761 (init_page_info) <batch_flag>
762 (do_restore_page_info_cleanup, make_cleanup_restore_page_info)
763 (set_batch_flag_and_make_cleanup_restore_page_info): New.
764
765 2010-08-06 Maciej W. Rozycki <macro@codesourcery.com>
766
767 * thread.c (add_thread_silent): Use null_ptid instead of
768 minus_one_ptid while getting rid of stale inferior_ptid.
769
770 2010-08-06 Corinna Vinschen <vinschen@redhat.com>
771
772 * dwarf2-frame.c (struct dwarf2_cie): Add ptr_size member.
773 Throughout, call read_encoded_value with ptr_size rather than addr_size.
774 (decode_frame_entry_1): Remove redundant setting of
775 addr_size. Call gdbarch_dwarf2_addr_size rather than gdbarch_ptr_bit
776 to determine addr_size in Dwarf versions < 4. Set ptr_size dependent
777 on examined frame section. Add comment to explain why.
778 * gdbarch.sh (dwarf2_addr_size): Define as variable. Add lengthy
779 comment to explain usage.
780 * gdbarch.c: Regenerate.
781 * gdbarch.h: Regenerate.
782
783 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set dwarf2_addr_size to 4.
784
785 2010-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
786
787 Code cleanup.
788 * varobj.c (varobj_create): Move variables fi, old_fi and block to
789 a more inner block.
790
791 2010-08-05 Pedro Alves <pedro@codesourcery.com>
792
793 * configure.tgt (alpha*-*-linux*, am33_2.0*-*-linux*, frv-*-*)
794 (hppa*-*-linux*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
795 (microblaze*-linux-*, mips*-*-linux*, sh*-*-linux*)
796 (sparc-*-linux*, sparc64-*-linux*, xtensa*-*-linux*): Add
797 linux-tdep.o to gdb_target_obs.
798
799 2010-08-05 Marc Khouzam <marc.khouzam@ericsson.com>
800
801 * mi/mi-main.c (mi_cmd_remove_inferior): Properly access first
802 argument.
803
804 2010-08-05 Hui Zhu <teawater@gmail.com>
805
806 * mips-linux-tdep.c(regset.h): New include.
807 (mips_supply_gregset_wrapper, mips_fill_gregset_wrapper,
808 mips_supply_fpregset_wrapper, mips_fill_fpregset_wrapper,
809 mips64_supply_gregset_wrapper, mips64_fill_gregset_wrapper,
810 mips64_supply_fpregset_wrapper, mips64_fill_fpregset_wrapper,
811 mips_linux_regset_from_core_section): New functions.
812 (fetch_core_registers, regset_core_fns): Deleted.
813 (mips_linux_init_abi): Add mips_linux_regset_from_core_section.
814 Deleted regset_core_fns.
815 * mips-tdep.c(mips_gdbarch_init): Initialize tdep->gregset,
816 tdep->gregset64, tdep->fpregset and tdep->fpregset64.
817 * mips-tdep.h(gdbarch_tdep): Add gregset, gregset64, fpregset
818 and fpregset64.
819
820 2010-08-04 Pedro Alves <pedro@codesourcery.com>
821
822 * s390-tdep.c: Include linux-tdep.h.
823 (s390_gdbarch_init): Call linux_init_abi.
824
825 2010-08-04 Pedro Alves <pedro@codesourcery.com>
826
827 * corelow.c (core_pid_to_str): Default to using normal_pid_to_str
828 instead of printing "Thread" here.
829 * linux-tdep.c: Include inferior.h.
830 (linux_core_pid_to_str): New.
831 (linux_init_abi): New.
832 * linux-tdep.h (linux_init_abi): Declare.
833 * alpha-linux-tdep.c: Include linux-tdep.h.
834 (alpha_linux_init_abi): Call linux_init_abi.
835 * amd64-linux-tdep.c (amd64_linux_init_abi): Call linux_init_abi.
836 * arm-linux-tdep.c (arm_linux_init_abi): Call linux_init_abi.
837 * frv-linux-tdep.c: Include linux-tdep.h
838 (frv_linux_init_abi): Call linux_init_abi.
839 * hppa-linux-tdep.c: Include linux-tdep.h
840 (hppa_linux_init_abi): Call linux_init_abi.
841 * i386-linux-tdep.c (i386_linux_init_abi): Call linux_init_abi.
842 * ia64-linux-tdep.c: Include linux-tdep.h.
843 (ia64_linux_init_abi): Call linux_init_abi.
844 * m32r-linux-tdep.c: Include linux-tdep.h.
845 (m32r_linux_init_abi): Call linux_init_abi.
846 * m68klinux-tdep.c: Include linux-tdep.h.
847 (m68k_linux_init_abi): Call linux_init_abi.
848 * microblaze-linux-tdep.c: Include linux-tdep.h.
849 (microblaze_linux_init_abi): Call linux_init_abi.
850 * mips-linux-tdep.c: Include linux-tdep.h.
851 (mips_linux_init_abi): Call linux_init_abi.
852 * mn10300-linux-tdep.c: Include linux-tdep.h.
853 (am33_linux_init_osabi): Call linux_init_abi. Rename the
854 'gdbinfo' parameter to 'info'.
855 * ppc-linux-tdep.c: Include linux-tdep.h.
856 (ppc_linux_init_abi): Call linux_init_abi.
857 * sh-linux-tdep.c: Include linux-tdep.h.
858 (sh_linux_init_abi): Call linux_init_abi.
859 * sparc-linux-tdep.c: Include linux-tdep.h.
860 (sparc32_linux_init_abi): Call linux_init_abi.
861 * sparc64-linux-tdep.c: Include linux-tdep.h.
862 (sparc64_linux_init_abi): Call linux_init_abi.
863 * xtensa-linux-tdep.c: Include linux-tdep.h.
864 (xtensa_linux_init_abi): Call linux_init_abi.
865 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): New.
866 (i386_cygwin_init_abi): Install it as gdbarch_core_pid_to_str
867 callback.
868
869 2010-08-03 Doug Evans <dje@google.com>
870
871 * breakpoint.c (bpdisp_text): Constify bpdisps.
872 * solib-svr4.c (solib_break_names): Constify.
873 (bkpt_names, main_name_list): Constify.
874 (match_main): Constify soname arg.
875 (bfd_lookup_symbol): Remove unnecessary forward decl.
876 Constify symname arg.
877 (enable_break): Constify bkpt_namep.
878 * symtab.c (search_symbols): Constify types, types2, types3, types4.
879 (symtab_symbol_info): Constify classnames.
880
881 2010-08-03 Phil Muldoon <pmuldoon@redhat.com>
882
883 * NEWS: Document Python value inferior function calls.
884
885 2010-08-02 Doug Evans <dje@google.com>
886
887 * dwarf2read.c (dwarf_attr_name): Add DW_AT_GNU_odr_signature.
888
889 2010-07-31 Paul Pluzhnikov <ppluzhnikov@google.com>
890
891 * linux-thread-db.c (libthread_db_debug): New variable.
892 (thread_db_find_new_threads_silently): Control verbosity with it.
893 (try_thread_db_load_1, try_thread_db_load): Likewise.
894 (find_new_threads_once): Likewise.
895 (_initialize_thread_db): Set/show it.
896
897 2010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
898
899 * common/signals.c (signals): Move the content to signals.def.
900 Include it. Remove the INDENT comments.
901
902 2010-07-30 Tom Tromey <tromey@redhat.com>
903
904 * Makefile.in (install-only): Install gdb-add-index.
905 * gdb-add-index.sh: New file.
906
907 2010-07-31 Renquan Cheng <crq@gcc.gnu.org>
908
909 * MAINTAINERS: Add myself for write after approval privileges.
910
911 2010-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
912
913 * symfile.c (addr_section_name): New function.
914 (addrs_section_compar): Use it.
915 (addr_info_make_relative): Use it. Move variable sect_name into a more
916 inner block. Make ".dynbss" and ".sdynbss" checks more strict.
917
918 2010-07-30 Tom Tromey <tromey@redhat.com>
919
920 * configure: Rebuild.
921 * configure.ac: Add missing case for Python 2.7.
922
923 2010-07-29 DJ Delorie <dj@redhat.com>
924
925 * rx-tdep.c (rx_analyze_prologue): Don't require branches to have
926 conditions.
927
928 2010-07-29 Pedro Alves <pedro@codesourcery.com>
929
930 * PROBLEMS: Remove mention of all problems.
931
932 2010-07-28 Pedro Alves <pedro@codesourcery.com>
933
934 PR build/11848
935 * configure.ac: Check for wresize.
936 * configure, config.in: Regenerate.
937 * tui/tui-win.c (make_visible_with_new_height): Wrap wresize call
938 with HAVE_WRESIZE.
939
940 2010-07-28 Tom Tromey <tromey@redhat.com>
941
942 PR python/11060:
943 * python/py-type.c (typy_legacy_template_argument): New function,
944 extracted from typy_template_argument.
945 (typy_template_argument): Use TYPE_TEMPLATE_ARGUMENT. Return a
946 value when needed.
947
948 2010-07-28 Oleg Nesterov <oleg@redhat.com>
949
950 * remote.c (readchar): Call pop_target in case of SERIAL_ERROR.
951
952 2010-07-27 Tom Tromey <tromey@redhat.com>
953
954 * dwarf2read.c (dwarf2_const_value_data): Never sign extend.
955
956 2010-07-28 Daniel Jacobowitz <dan@codesourcery.com>
957
958 * dwarf2read.c (read_subroutine_type): Improve THIS detection,
959 handling DW_AT_object_pointer, and workaround GCC PR 43053.
960
961 2010-07-28 Tom Tromey <tromey@redhat.com>
962
963 * Makefile.in (HFILES_NO_SRCDIR): Remove link-warning.h.
964
965 2010-07-28 Joel Brobecker <brobecker@adacore.com>
966
967 * remote.c (remote_download_tracepoint): Add missing gettext markup.
968 * tracepoint.c (parse_static_tracepoint_marker_definition): Likewise.
969
970 2010-07-28 Joel Brobecker <brobecker@adacore.com>
971
972 * breakpoint.c (breakpoint_re_set_one): Move call to set_language
973 down, just before the block that parse the breakpoint addr_string.
974
975 2010-07-28 Tom Tromey <tromey@redhat.com>
976
977 PR c++/9946:
978 * symfile.c (reread_symbols): Clear template_symbols.
979 * symtab.h (struct symbol) <is_cplus_template_function>: New
980 field.
981 (SYMBOL_IS_CPLUS_TEMPLATE_FUNCTION): New macro.
982 (struct template_symbol): New.
983 * symtab.c (lookup_symbol_aux_local): Use
984 cp_lookup_symbol_imports_or_template.
985 * objfiles.h (struct objfile) <template_symbols>: New field.
986 * objfiles.c (relocate_one_symbol): New function.
987 (objfile_relocate1): Use it. Relocate isolated symbols.
988 * gdbtypes.h (struct cplus_struct_type) <n_template_arguments,
989 template_arguments>: New fields.
990 (TYPE_N_TEMPLATE_ARGUMENTS): New macro.
991 (TYPE_TEMPLATE_ARGUMENTS): Likewise.
992 (TYPE_TEMPLATE_ARGUMENT): Likewise.
993 (lookup_typename): Update.
994 * gdbtypes.c (lookup_typename): Constify "block" argument.
995 * dwarf2read.c: Include vec.h.
996 (symbolp): New typedef.
997 (read_func_scope): Read template arguments. Allocate a
998 template_symbol when needed.
999 (read_structure_type): Read template arguments.
1000 (new_symbol_full): New function, from new_symbol. Handle
1001 DW_TAG_template_type_param and DW_TAG_template_value_param.
1002 (new_symbol): Rewrite as wrapper.
1003 * cp-support.h (cp_lookup_symbol_imports_or_template): Declare.
1004 * cp-namespace.c: Include language.h.
1005 (search_symbol_list): New function.
1006 (cp_lookup_symbol_imports_or_template): Likewise.
1007
1008 2010-07-28 Balazs Kezes <rlblaster@gmail.com>
1009
1010 * tui/tui-win.c (make_visible_with_new_height): Resize and move
1011 the command window to the new size and position.
1012
1013 2010-07-28 Balazs Kezes <rlblaster@gmail.com>
1014
1015 * tui/tui-win.c (tui_resize_all): Update the locator's origin's
1016 coordinates.
1017
1018 2010-07-28 Balazs Kezes <rlblaster@gmail.com>
1019
1020 * tui/tui-io.c (tui_handle_resize_during_io): Call tui_resize_all
1021 after a detecting a resize.
1022 * tui/tui-win.c (tui_resize_all): Remove tui_set_win_resized_to
1023 call.
1024
1025 2010-07-28 Pedro Alves <pedro@codesourcery.com>
1026
1027 * configure.ac: Check for resize_term.
1028 * configure, config.in: Regenerate.
1029
1030 2010-07-27 Joel Brobecker <brobecker@adacore.com>
1031
1032 * MAINTAINERS (Write After Approval): Reorder a couple of entries.
1033
1034 2010-07-27 Daniel Jacobowitz <dan@codesourcery.com>
1035
1036 * dwarf2read.c (read_string): Rename to ...
1037 (read_direct_string): ... this.
1038 (skip_one_die, read_attribute_value, dwarf_decode_line_header)
1039 (dwarf_decode_lines, dwarf_decode_macros): Adjust.
1040
1041 2010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1042
1043 * linux-nat.c (linux_nat_lp_status_is_event): New function.
1044 (count_events_callback, select_event_lwp_callback)
1045 (cancel_breakpoints_callback, linux_nat_wait_1): Use it.
1046
1047 2010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1048
1049 * ia64-linux-nat.c (ia64_linux_status_is_event): New function.
1050 (_initialize_ia64_linux_nat): Install it.
1051 * linux-nat.c (sigtrap_is_event, linux_nat_status_is_event)
1052 (linux_nat_set_status_is_event): New.
1053 (stop_wait_callback, count_events_callback, select_event_lwp_callback)
1054 cancel_breakpoints_callback, linux_nat_filter_event)
1055 (linux_nat_wait_1): Use linux_nat_status_is_event.
1056 * linux-nat.h (linux_nat_set_status_is_event): New prototype.
1057
1058 2010-07-27 Tom Tromey <tromey@redhat.com>
1059
1060 * NEWS: Mention labels, .gdb_index.
1061
1062 2010-07-28 CHENG Renquan <rqcheng@smu.edu.sg>
1063
1064 * cli/cli-cmds.c (disassemble_command): Add support of disassemble
1065 "start,+length" form of arguments.
1066 * NEWS: Add "Changed commands" (disassemble) section for "Changes
1067 since GDB 7.1"; and merge two separated paragraphs of disassemble
1068 description in "Changes in GDB 7.0".
1069
1070 2010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1071
1072 * top.c (input_from_terminal_p): Return 0 on BATCH_FLAG.
1073 * utils.c (defaulted_query): Do not explicitly check for BATCH_FLAG.
1074 (fputs_maybe_filtered): Do not do filtering also on
1075 ! INPUT_FROM_TERMINAL_P.
1076
1077 2010-07-27 Joel Brobecker <brobecker@adacore.com>
1078
1079 * dwarf2read.c (dw2_find_pc_sect_symtab): Remove trailing newline
1080 in warning message.
1081
1082 2010-07-27 Phil Muldoon <pmuldoon@redhat.com>
1083
1084 * python/py-value.c (valpy_call): New Function.
1085
1086 2010-07-27 Ken Werner <ken.werner@de.ibm.com>
1087
1088 * dwarf2read.c (dwarf2_read_index): Initialize the types_list and
1089 types_list_elements variables.
1090
1091 2010-07-26 Tom Tromey <tromey@redhat.com>
1092
1093 * dwarf2loc.c (locexpr_describe_location_piece): Also recognize
1094 TLS with DW_OP_const4u or DW_OP_const8u.
1095
1096 2010-07-26 Thiago Jung Bauermann <bauerman@br.ibm.com>
1097
1098 * ppc-linux-nat.c (store_vsx_register): Use PTRACE_GETVSXREGS to get
1099 VSX registers contents.
1100
1101 2010-07-26 Jerome Guitton <guitton@adacore.com>
1102
1103 * dwarf2read.c (add_partial_symbol): Do not add a global variable if
1104 its adress is null. Add comment to explain why.
1105 (new_symbol): Ditto.
1106
1107 2010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
1108
1109 * linux-nat.c (linux_nat_do_thread_registers): Convert STOP_SIGNAL to
1110 the host signal first.
1111
1112 2010-07-23 Tom Tromey <tromey@redhat.com>
1113
1114 * dwarf2read.c (struct dwarf2_per_objfile) <n_type_comp_units,
1115 type_comp_units>: New fields.
1116 (dw2_get_cu): New function.
1117 (create_cus_from_index): Remove unused argument.
1118 (create_signatured_type_hash_from_index): New function.
1119 (create_addrmap_from_index): Update.
1120 (dwarf2_read_index): Handle version 2.
1121 (dw2_find_last_source_symtab, dw2_forget_cached_source_info)
1122 (dw2_lookup_symtab, dw2_do_expand_symtabs_matching)
1123 (dw2_print_stats, dw2_expand_all_symtabs)
1124 (dw2_expand_symtabs_with_filename, dw2_find_symbol_file)
1125 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Update.
1126 (dwarf2_initialize_objfile): Call create_debug_types_hash_table.
1127 (allocate_signatured_type_hash_table): New function.
1128 (add_signatured_type_cu_to_list): Likewise.
1129 (create_debug_types_hash_table): Use them. Set type_comp_units.
1130 (read_signatured_type): Ensure section data is available.
1131 (add_address_entry): Don't record empty ranges.
1132 (struct signatured_type_index_data): New.
1133 (write_one_signatured_type): New function.
1134 (write_psymtabs_to_index): Write type CUs.
1135 (save_gdb_index_command): Update comment.
1136 (process_type_comp_unit): Move inititalization of
1137 from_debug_types...
1138 (create_debug_types_hash_table): ... here.
1139
1140 2010-07-23 Jan Kratochvil <jan.kratochvil@redhat.com>
1141
1142 * gdb_gcore.sh (tmpfile): Remove the variable, its initialization,
1143 cleanup and generating of gdb script to it.
1144 (gdb): Use redirection from /dev/null. Use --nx. Turn off pagination
1145 and terminal size. Convert $tmpfile to a series of -ex-es.
1146
1147 2010-07-23 Keith Seitz <keiths@redhat.com>
1148
1149 * symtab.c (basic_lookup_transparent_type): Call pre-expand
1150 hook for STATIC_BLOCK types, too.
1151
1152 2010-07-23 Keith Seitz <keiths@redhat.com>
1153
1154 * dwarf2read.c: Remove unused typedef dwarf2_cu_per_cu_data_ptr
1155 and vector definition.
1156
1157 2010-07-23 Jan Kratochvil <jan.kratochvil@redhat.com>
1158
1159 * linux-nat.c (cancel_breakpoint): Remove unused forward declaration.
1160
1161 2010-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1162
1163 * dwarf2read.c: Include completer.h.
1164 (save_gdb_index_command): Use matching usage command name.
1165 (_initialize_dwarf2_read): New variable c, initialize it by add_cmd.
1166 Set filename_completer for it.
1167
1168 2010-07-22 Tom Tromey <tromey@redhat.com>
1169
1170 * dwarf2read.c (create_debug_types_hash_table): Set objfile on
1171 type signature's per-CU data.
1172
1173 2010-07-22 Pedro Alves <pedro@codesourcery.com>
1174
1175 * NEWS: Mention target reported shared libraries support by
1176 default.
1177
1178 2010-07-21 Pedro Alves <pedro@codesourcery.com>
1179
1180 PR symtab/11827
1181
1182 Revert:
1183 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
1184 * dwarf2read.c (process_die): Also allow DW_TAG_const_type
1185 and DW_TAG_volatile_type.
1186 (new_symbol): Likewise.
1187
1188 2010-07-21 Sami Wagiaalla <swagiaal@redhat.com>
1189
1190 * eval.c (evaluate_subexp_standard): Disabled evaluation of C++
1191 function symbols before overload resolution.
1192
1193 2010-07-21 Pedro Alves <pedro@codesourcery.com>
1194
1195 * breakpoint.c (bptype_string): New, abstracted out from
1196 print_one_breakpoint_location.
1197 (print_one_breakpoint_location): Adjust.
1198 (breakpoint_1): Adjust the type column width dynamically.
1199
1200 2010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1201
1202 * symfile.c (find_separate_debug_file_by_debuglink): Remove
1203 a gdb_assert call, new comment.
1204
1205 2010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1206
1207 * linux-nat.c (linux_handle_extended_wait): Handle case when
1208 event == PTRACE_EVENT_CLONE && stopping && WSTOPSIG (status) != SIGSTOP.
1209
1210 2010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1211
1212 Code cleanup.
1213 * linux-nat.c (linux_nat_wait_1): Reset STATUS after calling
1214 linux_nat_wait_1. Use always LP->STATUS afterwards.
1215
1216 2010-07-20 Hui Zhu <teawater@gmail.com>
1217
1218 * inf-ptrace.c (inf_ptrace_create_inferior): Initialize back_to.
1219 (inf_ptrace_attach): Ditto.
1220
1221 2010-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1222
1223 Make core files the process_stratum.
1224 * corefile.c (core_target): New variable.
1225 (core_file_command): Remove variable t, use core_target.
1226 * corelow.c (core_ops): Make it static.
1227 (init_core_ops): Change to process_stratum. Initialize CORE_TARGET.
1228 * defs.h (make_cleanup_unpush_target): New prototype.
1229 * gdbarch.h: Regenerate.
1230 * gdbarch.sh (core_pid_to_str): Remove core_stratum from its comment.
1231 * gdbcore.h (core_target): New declaration.
1232 * inf-ptrace.c (inf_ptrace_create_inferior, inf_ptrace_attach): New
1233 variables ops_already_pushed and back_to. Use push_target,
1234 make_cleanup_unpush_target and discard_cleanups calls.
1235 * record.c (record_open): Replace core_stratum by a core_bfd check.
1236 * target.c (target_is_pushed): New function.
1237 (find_core_target): Remove.
1238 * target.h (enum strata) <core_stratum>: Remove.
1239 (target_is_pushed): New declaration.
1240 (find_core_target): Remove declaration.
1241 * tracepoint.c (init_tfile_ops) <to_stratum>: Remove comment.
1242 * utils.c (do_unpush_target, make_cleanup_unpush_target): New functions.
1243
1244 2010-07-19 Hui Zhu <teawater@gmail.com>
1245
1246 * breakpoint.c (single_step_breakpoints_inserted): New
1247 function.
1248 * breakpoint.h (single_step_breakpoints_inserted): Extern.
1249 * infrun.c (maybe_software_singlestep): Add check code.
1250 * record.c (record_resume): Add code for software single step.
1251 (record_wait): Ditto.
1252
1253 2010-07-18 Jan Kratochvil <jan.kratochvil@redhat.com>
1254
1255 * linux-nat.c (linux_handle_extended_wait): Move variable new_lp into
1256 a more inner block. Remove its unused declaration initializer.
1257
1258 2010-07-16 Thiago Jung Bauermann <bauerman@br.ibm.com>
1259
1260 * NEWS: Mention support for the new ptrace interface and hardware
1261 accelerated watchpoint conditions on powerpc-linux.
1262
1263 2010-07-16 Ozkan Sezer <sezeroz@gmail.com>
1264
1265 * target.c (debug_to_insert_breakpoint): Instead of casting to unsigned
1266 long and %ld, use core_addr_to_string() and %s to print CORE_ADDR vars
1267 and host_address_to_string() and %s for pointers.
1268 (debug_to_remove_breakpoint): Likewise.
1269 (debug_to_region_ok_for_hw_watchpoint): Likewise.
1270 (debug_to_can_accel_watchpoint_condition): Likewise.
1271 (debug_to_stopped_data_address): Likewise.
1272 (debug_to_watchpoint_addr_within_range): Likewise.
1273 (debug_to_insert_hw_breakpoint): Likewise.
1274 (debug_to_remove_hw_breakpoint): Likewise.
1275 (debug_to_insert_watchpoint): Likewise.
1276 (debug_to_remove_watchpoint): Likewise.
1277
1278 2010-07-16 Sami Wagiaalla <swagiaal@redhat.com>
1279
1280 * symtab.h (symbol_set_demangled_name): Now takes an optional objfile*
1281 argument.
1282 (cplus_specific): New struct.
1283 * symtab.c (symbol_set_demangled_name): Updated.
1284 Use cplus_specific for cplus symbols.
1285 (symbol_get_demangled_name): Retrive the name from the cplus_specific
1286 struct for cplus symbols.
1287 (symbol_init_language_specific): Set cplus_specific for cplus symbols.
1288 (symbol_set_names): Pass objfile to symbol_set_demangled_name.
1289 * symtab.c (symbol_init_cplus_specific): New function.
1290
1291 2010-07-16 Sami Wagiaalla <swagiaal@redhat.com>
1292
1293 * symtab.h (symbol_set_demangled_name): New function.
1294 (symbol_get_demangled_name): New function.
1295 * symtab.c (symbol_set_demangled_name): New function.
1296 (symbol_get_demangled_name): New function.
1297 (symbol_init_language_specific): Use demangled_name setter and getter.
1298 (symbol_set_names): Ditto.
1299 (symbol_natural_name): Ditto.
1300 (symbol_demangled_name): Ditto.
1301 * dwarf2read.c (new_symbol): Ditto.
1302
1303 2010-07-16 Sami Wagiaalla <swagiaal@redhat.com>
1304
1305 * symtab.h: Renamed cplus_specific to mangled_lang.
1306 * symtab.c (symbol_init_language_specific): Updated.
1307 (symbol_set_names): Updated.
1308 (symbol_natural_name): Updated.
1309 (symbol_demangled_name): Updated.
1310 * ada-lang.c (ada_decode_symbol): Updated.
1311 * dwarf2read.c (new_symbol): Updated.
1312
1313 2010-07-14 Ken Werner <ken.werner@de.ibm.com>
1314
1315 * valops.c (value_assign): Do not call to value_coerce_to_target.
1316 (value_must_coerce_to_target): Return 0 in case of TYPE_VECTOR.
1317
1318 2010-07-14 Ken Werner <ken.werner@de.ibm.com>
1319
1320 * MAINTAINERS: Add myself for write after approval privileges.
1321
1322 2010-07-13 Emmanuel Thomé <Emmanuel.Thome@gmail.com>
1323
1324 * c-valprint.c (c_val_print): Add embedded_offset to address in
1325 call to val_print_array_elements.
1326
1327 2010-07-13 Tom Tromey <tromey@redhat.com>
1328
1329 * dwarf2read.c (dwarf2_read_index): Correctly set 'total_size'.
1330
1331 2010-07-13 Tom Tromey <tromey@redhat.com>
1332
1333 * dwarf2read.c (dwarf2_per_cu_text_offset): Fix reference to
1334 objfile.
1335
1336 2010-07-13 Tom Tromey <tromey@redhat.com>
1337
1338 * symfile.c (set_initial_language): Update.
1339 (deduce_language_from_filename): Argument type now const.
1340 * symtab.h (find_main_filename): Update.
1341 (deduce_language_from_filename): Update.
1342 * symtab.c (find_main_filename): Make result const.
1343 * dwarf2read.c (dw2_find_symbol_file): Change return type.
1344 * psymtab.c (find_symbol_file_from_partial): Change return type.
1345 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
1346 Make result const.
1347
1348 2010-07-13 Tom Tromey <tromey@redhat.com>
1349
1350 * breakpoint.c (save_cmdlist): No longer static.
1351 * gdbcmd.h (save_cmdlist): Declare.
1352 * symfile.c (symbol_file_add_with_addrs_or_offsets): Set
1353 OBJF_READNOW on objfile if readnow_symbol_files.
1354 * elfread.c (elf_symfile_read): Use dwarf2_initialize_objfile.
1355 (elf_sym_fns_gdb_index): New global.
1356 * dwarf2read.c: Include exceptions.h.
1357 (offset_type): New.
1358 (struct mapped_index): New.
1359 (dwarf2_per_cu_data_ptr): New typedef.
1360 (struct dwarf2_per_objfile) <using_index, index_table, gdb_index>:
1361 New fields.
1362 (GDB_INDEX_SECTION): New define.
1363 (struct dwarf2_per_cu_quick_data): New.
1364 (struct dwarf2_per_cu_data) <objfile>: New field.
1365 <psymtab>: Removed.
1366 <v>: New field.
1367 (byte_swap): New function.
1368 (MAYBE_SWAP): New macro.
1369 (INDEX_SUFFIX): New macro.
1370 (dw2_do_instantiate_symtab): New function.
1371 (dw2_instantiate_symtab): Likewise.
1372 (create_cus_from_index): Likewise.
1373 (create_addrmap_from_index): Likewise.
1374 (mapped_index_string_hash): Likewise.
1375 (find_slot_in_mapped_hash): Likewise.
1376 (dwarf2_read_index): Likewise.
1377 (dw2_setup): Likewise.
1378 (dw2_require_line_header): Likewise.
1379 (dw2_require_full_path): Likewise.
1380 (dw2_find_last_source_symtab): Likewise.
1381 (dw2_forget_cached_source_info): Likewise.
1382 (dw2_lookup_symtab): Likewise.
1383 (dw2_lookup_symbol): Likewise.
1384 (dw2_do_expand_symtabs_matching): Likewise.
1385 (dw2_pre_expand_symtabs_matching): Likewise.
1386 (dw2_print_stats): Likewise.
1387 (dw2_dump): Likewise.
1388 (dw2_relocate): Likewise.
1389 (dw2_expand_symtabs_for_function): Likewise.
1390 (dw2_expand_all_symtabs): Likewise.
1391 (dw2_expand_symtabs_with_filename): Likewise.
1392 (dw2_find_symbol_file): Likewise.
1393 (dw2_map_ada_symtabs): Likewise.
1394 (dw2_expand_symtabs_matching): Likewise.
1395 (dw2_find_pc_sect_symtab): Likewise.
1396 (dw2_map_symbol_names): Likewise.
1397 (dw2_map_symbol_filenames): Likewise.
1398 (dw2_has_symbols): Likewise.
1399 (dwarf2_gdb_index_functions): New global.
1400 (dwarf2_initialize_objfile): New function.
1401 (process_psymtab_comp_unit): Update.
1402 (add_partial_subprogram): Likewise.
1403 (dwarf2_psymtab_to_symtab): Likewise.
1404 (psymtab_to_symtab_1): Use dw2_do_instantiate_symtab.
1405 (process_full_comp_unit): Update.
1406 (find_file_and_directory): New function.
1407 (read_file_scope): Use find_file_and_directory.
1408 (dwarf2_per_cu_objfile): Update.
1409 (dwarf2_per_cu_addr_size): Update.
1410 (dwarf2_per_cu_offset_size): Update.
1411 (dwarf2_free_objfile): Free the index, if needed.
1412 (dwarf2_per_objfile_free): Unmap the index, if needed.
1413 (struct strtab_entry): New.
1414 (hash_strtab_entry): New function.
1415 (eq_strtab_entry): Likewise.
1416 (create_strtab): Likewise.
1417 (add_string): Likewise.
1418 (struct symtab_index_entry): New.
1419 (struct mapped_symtab): New.
1420 (hash_symtab_entry): New function.
1421 (eq_symtab_entry): Likewise.
1422 (delete_symtab_entry): Likewise.
1423 (create_index_table): Likewise.
1424 (create_mapped_symtab): Likewise.
1425 (cleanup_mapped_symtab): Likewise.
1426 (find_slot): Likewise.
1427 (hash_expand): Likewise.
1428 (add_index_entry): Likewise.
1429 (add_indices_to_cpool): Likewise.
1430 (write_hash_table): Likewise.
1431 (add_address_entry): Likewise.
1432 (write_psymbols): Likewise.
1433 (write_obstack): Likewise.
1434 (unlink_if_set): Likewise.
1435 (write_psymtabs_to_index): Likewise.
1436 (save_gdb_index_command): Likewise.
1437 (_initialize_dwarf2_read): Install "save gdb-index"
1438 command.
1439 (create_all_comp_units): Initialize 'objfile' field of CU.
1440 (dwarf2_locate_sections): Check for .gdb_index.
1441 * psymtab.h (dwarf2_gdb_index_functions): Declare.
1442 * symfile.h (dwarf2_initialize_objfile): Declare.
1443
1444 2010-07-13 Tom Tromey <tromey@redhat.com>
1445
1446 * symtab.c (lookup_symbol_aux_symtabs): Call pre-expand hook.
1447 (basic_lookup_transparent_type): Likewise.
1448 * symfile.h (struct quick_symbol_functions)
1449 <pre_expand_symtabs_matching>: New field.
1450 * psymtab.c (pre_expand_symtabs_matching_psymtabs): New function.
1451 (psym_functions): Update.
1452
1453 2010-07-13 Tom Tromey <tromey@redhat.com>
1454
1455 PR breakpoints/8357:
1456 * symtab.h (domain_enum_tag) <LABEL_DOMAIN>: Update comment.
1457 * linespec.c (decode_line_1): Update comment. Call decode_label.
1458 (decode_label): New function.
1459 (symbol_found): Handle LOC_LABEL.
1460 * dwarf2read.c (new_symbol) <DW_TAG_label>: Set symbol's type and
1461 domain. Call add_symbol_to_list.
1462
1463 2010-07-13 Tom Tromey <tromey@redhat.com>
1464
1465 * dwarf2loc.h (dwarf2_per_cu_text_offset): Declare.
1466 * dwarf2loc.c (find_location_expression): Use
1467 dwarf2_per_cu_text_offset.
1468 (dwarf2_evaluate_loc_desc): Likewise.
1469 (dwarf2_loc_desc_needs_frame): Likewise.
1470 (compile_dwarf_to_ax): Likewise.
1471 (loclist_describe_location): Likewise.
1472 * dwarf2read.c (dwarf2_per_cu_text_offset): New function.
1473 (dwarf2_per_cu_objfile): Update comment.
1474
1475 2010-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1476
1477 * dwarf2read.c (read_subrange_type): Call read_subrange_type.
1478 * p-lang.c (pascal_printstr): Likewise.
1479
1480 2010-07-09 Tom Tromey <tromey@redhat.com>
1481
1482 * python/py-prettyprint.c (gdbpy_get_display_hint): Don't use
1483 'hint' if it is NULL.
1484
1485 2010-07-09 Hui Zhu <teawater@gmail.com>
1486
1487 * source.c (print_source_lines_base): Add check for noprint.
1488
1489 2010-07-08 Joel Brobecker <brobecker@adacore.com>
1490
1491 * python/python-config.py: Resync with Python 2.7 version of this
1492 script.
1493
1494 2010-07-08 Joel Brobecker <brobecker@adacore.com>
1495
1496 * NEWS: Fix typo in section name (s/GDB 7.1/GDB 7.2).
1497
1498 2010-07-07 Joel Brobecker <brobecker@adacore.com>
1499
1500 * NEWS: Create a new section for the next release branch.
1501 Rename the section of the current branch, now that it has
1502 been cut.
1503
1504 2010-07-07 Joel Brobecker <brobecker@adacore.com>
1505
1506 GDB 7.2 branch created (branch timestamp: 2010-07-07 17:00 UTC)
1507 * version.in: Bump version to 7.2.50.20100707-cvs.
1508
1509 2010-07-07 Tom Tromey <tromey@redhat.com>
1510
1511 * dwarf2read.c (dwarf2_const_value) <DW_form_addr>: Create a
1512 LOC_COMPUTED symbol.
1513 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Set new field.
1514 (dwarf2_loc_desc_needs_frame): Likewise.
1515 (compile_dwarf_to_ax) <DW_OP_addr>: Use offset.
1516 * dwarf2expr.h (struct dwarf_expr_context) <offset>: New field.
1517 * dwarf2expr.c (execute_stack_op) <DW_OP_addr>: Use offset.
1518 * dwarf2-frame.c (execute_stack_op): Set 'offset' field. Add
1519 'offset' argument.
1520 (struct dwarf2_frame_cache) <text_offset>: New field.
1521 (dwarf2_frame_cache): Set new field.
1522 (dwarf2_frame_prev_register): Update.
1523 (dwarf2_frame_sniffer): Update.
1524 (dwarf2_frame_base_sniffer): Update.
1525 (dwarf2_frame_find_fde): Add 'out_offset' argument.
1526
1527 2010-07-07 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
1528 Thiago Jung Bauermann <bauerman@br.ibm.com>
1529
1530 Support for hw accelerated condition watchpoints in booke powerpc.
1531
1532 * breakpoint.c (fetch_watchpoint_value): Rename to fetch_subexp_value
1533 and move to eval.c. Change callers.
1534 (insert_bp_location): Pass watchpoint condition in
1535 target_insert_watchpoint.
1536 (remove_breakpoint_1) Pass watchpoint condition in
1537 target_remove_watchpoint.
1538 (watchpoint_locations_match): Call
1539 target_can_accel_watchpoint_condition.
1540 * eval.c: Include wrapper.h.
1541 (fetch_subexp_value): Moved from breakpoint.c.
1542 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint):
1543 Formatting fix.
1544 (can_use_watchpoint_cond_accel): New function.
1545 (calculate_dvc): Likewise.
1546 (num_memory_accesses): Likewise.
1547 (check_condition): Likewise.
1548 (ppc_linux_can_accel_watchpoint_condition): Likewise
1549 (ppc_linux_insert_watchpoint): Call can_use_watchpoint_cond_accel,
1550 check_condition and calculate_dvc.
1551 (ppc_linux_remove_watchpoint): Likewise.
1552 (_initialize_ppc_linux_nat): Set to_can_accel_watchpoint_condition to
1553 ppc_linux_can_accel_watchpoint_condition
1554 * target.c (debug_to_insert_watchpoint): Add argument for watchpoint
1555 condition.
1556 (debug_to_remove_watchpoint): Likewise.
1557 (debug_to_can_accel_watchpoint_condition): New function.
1558 (update_current_target): Set to_can_accel_watchpoint_condition.
1559 (setup_target_debug): Set to_can_accel_watchpoint_condition.
1560 * target.h: Add opaque declaration for struct expression.
1561 (struct target_ops) <to_insert_watchpoint>,
1562 <to_remove_watchpoint>: Add new arguments to pass the watchpoint
1563 <to_can_accel_watchpoint_condition>: New member.
1564 condition. Update all callers and implementations.
1565 (target_can_accel_watchpoint_condition): New macro.
1566 * value.c (free_value_chain): New function.
1567 * value.h (fetch_subexp_value): New prototype.
1568 (free_value_chain): Likewise.
1569
1570 2010-07-07 Ulrich Weigand <uweigand@de.ibm.com>
1571
1572 * linux-nat.c (linux_nat_do_thread_registers): Use section size
1573 from gdbarch_core_regset_sections also for .reg if present.
1574
1575 * amd64-linux-tdep.c (amd64_linux_regset_sections): Fix incorrect
1576 section size for .reg.
1577 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
1578 (ppc_linux_vmx_regset_sections): Likewise.
1579 (ppc_linux_fp_regset_sections): Likewise.
1580 (ppc64_linux_vsx_regset_sections): New variable.
1581 (ppc64_linux_vmx_regset_sections): Likewise.
1582 (ppc64_linux_fp_regset_sections): Likewise.
1583 (ppc_linux_init_abi): Install core_regset_section lists appropriate
1584 for current word size.
1585
1586 2010-07-06 Joel Brobecker <brobecker@adacore.com>
1587
1588 * server.c (myresume): Make static.
1589
1590 2010-07-06 Tom Tromey <tromey@redhat.com>
1591
1592 * configure, config.in: Rebuild.
1593 * configure.ac (HAVE_LIBPYTHON2_7): New define.
1594 * python/python-internal.h: Handle HAVE_LIBPYTHON2_7.
1595
1596 2010-07-06 Andreas Schwab <schwab@linux-m68k.org>
1597
1598 * breakpoint.c (_initialize_breakpoint): Add "cl" as alias for
1599 "clear".
1600
1601 2010-07-06 Ken Werner <ken.werner@de.ibm.com>
1602
1603 * gdbtypes.h (floatformats_ieee_half): Add declaration.
1604 * gdbtypes.c (floatformats_ieee_half): New variable.
1605 * doublest.c (floatformat_from_length): Set format to
1606 gdbarch_half_format if length matches.
1607 * gdbarch.sh (half_bit): New architecture method.
1608 (half_format): Likewise.
1609 * gdbarch.h: Regenerate.
1610 * gdbarch.c: Likewise.
1611
1612 2010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
1613 Joel Brobecker <brobecker@adacore.com>
1614
1615 Fix re-run of PIE executable, PR shlibs/11776.
1616 * solib-svr4.c (svr4_relocate_main_executable) <symfile_objfile>: Remove
1617 the part of pre-set SYMFILE_OBJFILE->SECTION_OFFSETS.
1618
1619 2010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
1620 Joel Brobecker <brobecker@adacore.com>
1621
1622 * auxv.c (memory_xfer_auxv): Update attach comment.
1623 * solib-svr4.c (svr4_special_symbol_handling): Remove the call to
1624 svr4_relocate_main_executable.
1625 (svr4_solib_create_inferior_hook): Make the call to
1626 svr4_relocate_main_executable unconditional.
1627
1628 2010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
1629 Joel Brobecker <brobecker@adacore.com>
1630
1631 * auxv.c (ld_so_xfer_auxv): Do not error on failed read of data_address.
1632
1633 2010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
1634 Joel Brobecker <brobecker@adacore.com>
1635
1636 Fix attaching to PIEs prelinked on the disk after the process was
1637 started.
1638 * solib-svr4.c (svr4_exec_displacement): New variable arch_size.
1639 Verify it against bfd_get_arch_size. Try to match arbitrary
1640 displacement for the phdrs comparison.
1641
1642 2010-07-02 Tom Tromey <tromey@redhat.com>
1643
1644 PR exp/11780:
1645 * libunwind-frame.c (libunwind_frame_prev_register): Don't set
1646 value as optimized-out.
1647
1648 2010-07-02 Ulrich Weigand <uweigand@de.ibm.com>
1649 Thiago Jung Bauermann <bauerman@br.ibm.com>
1650
1651 * breakpoint.c (can_use_hardware_watchpoint): Answer "what does this
1652 represent?" question in comment. Change comment to a proper sentence.
1653
1654 2010-07-02 Ken Werner <ken.werner@de.ibm.com>
1655
1656 * c-valprint.c (c_val_print): Fix printing of character vectors.
1657
1658 2010-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1659
1660 * spu-tdep.c (spu_catch_start): Adjust the caller of changed
1661 create_breakpoint prototype.
1662
1663 2010-07-01 Pedro Alves <pedro@codesourcery.com>
1664
1665 * breakpoint.c (BREAK_ARGS_HELP, _initialize_breakpoint): Clarify
1666 usefulness suggestion of multiple breakpoints at same location.
1667
1668 2010-07-01 Pedro Alves <pedro@codesourcery.com>
1669
1670 * breakpoint.c (BREAK_ARGS_HELP): Add missing `the'.
1671
1672 2010-07-01 Pedro Alves <pedro@codesourcery.com>
1673
1674 * dwarf2loc.c (locexpr_tracepoint_var_ref)
1675 (loclist_tracepoint_var_ref): Handle optimized out values.
1676
1677 2010-07-01 Pedro Alves <pedro@codesourcery.com>
1678
1679 * breakpoint.c (update_watchpoint, _initialize_breakpoint): Remove
1680 unnecessary space in string.
1681 * filesystem.c (_initialize_filesystem): Ditto.
1682 * frame.c (_initialize_frame): Ditto.
1683 * infcmd.c (step_once): Ditto.
1684 * infrun.c (_initialize_infrun): Ditto.
1685 * linux-nat.c (linux_child_follow_fork): Ditto.
1686 * maint.c (maintenance_deprecate): Ditto.
1687 * memattr.c (_initialize_mem): Ditto.
1688 * mips-tdep.c (_initialize_mips_tdep): Ditto.
1689 * monitor.c (monitor_open): Ditto.
1690 * procfs.c (procfs_xfer_memory): Ditto.
1691 * reverse.c (bookmarks_info): Ditto.
1692 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs): Ditto.
1693 * stack.c (_initialize_stack): Ditto.
1694 * tracepoint.c (_initialize_tracepoint): Ditto.
1695 * xtensa-tdep.c (xtensa_supply_gregset,
1696 xtensa_regset_from_core_section): Ditto.
1697
1698 2010-07-01 Tom Tromey <tromey@redhat.com>
1699
1700 * value.h (struct lval_funcs) <check_any_valid>: Rename from
1701 check_all_valid.
1702 * value.c (value_entirely_optimized_out): Invert result. Update
1703 for new function name.
1704
1705 2010-07-01 Pedro Alves <pedro@codesourcery.com>
1706
1707 Static tracepoints support.
1708
1709 * NEWS: Mention new support for static tracepoints.
1710 (New packets): Mention qTfSTM, qTsSTM, qTSTMat and
1711 qXfer:statictrace:read.
1712 (New features in the GDB remote stub, GDBserver): Mention static
1713 tracepoints support using an UST based backend.
1714 (New commands): Mention "info static-tracepoint-markers" and
1715 "strace".
1716 * breakpoint.c (is_marker_spec): New.
1717 (is_tracepoint): Handle static tracepoints.
1718 (validate_commands_for_breakpoint): Static tracepoints can't do
1719 while-stepping.
1720 (static_tracepoints_here): New.
1721 (bpstat_what): Handle static tracepoints.
1722 (print_one_breakpoint_location, allocate_bp_location, mention):
1723 Ditto.
1724 (create_breakpoint_sal): Ditto.
1725 (decode_static_tracepoint_spec): New.
1726 (create_breakpoint): Replace `hardwareflag', and `traceflag' with
1727 `type_wanted'. Adjust. Handle static tracepoint marker
1728 locations.
1729 (break_command_1): Adjust.
1730 (update_static_tracepoint): New.
1731 (update_breakpoint_locations): Handle static tracepoints.
1732 (breakpoint_re_set_one): Handle static tracepoint marker
1733 locations.
1734 (disable_command, enable_command): Handle static tracepoints.
1735 (trace_command, ftrace_command): Adjust.
1736 (strace_command): New.
1737 (create_tracepoint_from_upload): Adjust.
1738 (save_breakpoints): Handle static tracepoints.
1739 (_initialize_breakpoint): Install the "strace" command.
1740 * breakpoint.h (enum bptype): New bp_static_tracepoint type.
1741 (struct breakpoint): New fields static_trace_marker_id and
1742 static_trace_marker_id_idx.
1743 (breakpoints_here_p): Declare.
1744 (create_breakpoint): Adjust.
1745 (static_tracepoints_here): Declare.
1746 * remote.c (struct remote_state) <static_tracepoints>: New field.
1747 (PACKET_qXfer_statictrace_read, PACKET_StaticTracepoints): New.
1748 (remote_static_tracepoint_marker_at): New.
1749 (remote_static_tracepoint_markers_by_strid): New.
1750 (remote_static_tracepoint_feature): New.
1751 (remote_disconnected_tracing_feature): Handle "StaticTracepoints".
1752 (remote_xfer_partial): Handle TARGET_OBJECT_STATIC_TRACE_DATA.
1753 (remote_supports_static_tracepoints): New.
1754 (remote_download_tracepoint): Download static tracepoints.
1755 (init_remote_ops): Install remote_static_tracepoint_marker_at and
1756 remote_static_tracepoint_markers_by_strid.
1757 (_initialize_remote): Install set|show remote static-tracepoints,
1758 and set|show remote read-sdata-object commands.
1759 * target.c (update_current_target): Inherit and default
1760 to_static_tracepoint_marker_at, and
1761 to_static_tracepoint_markers_by_strid.
1762 * target.h (static_tracepoint_marker): Forward declare.
1763 (enum target_object): New object TARGET_OBJECT_STATIC_TRACE_DATA.
1764 (static_tracepoint_marker_p): New typedef.
1765 (DEF_VEC_P(static_tracepoint_marker_p)): New VEC type.
1766 (struct target_ops): New fields to_static_tracepoint_marker_at and
1767 to_static_tracepoint_markers_by_strid.
1768 (target_static_tracepoint_marker_at)
1769 (target_static_tracepoint_markers_by_strid): New.
1770 * tracepoint.c: Include source.h.
1771 (validate_actionline): Handle $_sdata.
1772 (struct collection_list): New field strace_data.
1773 (add_static_trace_data): New.
1774 (clear_collection_list): Clear strace_data.
1775 (stringify_collection_list): Account for a possible static trace
1776 data collection.
1777 (encode_actions_1): Encode an $_sdata collection.
1778 (parse_tracepoint_definition): Handle static tracepoints.
1779 (parse_static_tracepoint_marker_definition): New.
1780 (release_static_tracepoint_marker): New.
1781 (print_one_static_tracepoint_marker): New.
1782 (info_static_tracepoint_markers_command): New.
1783 (sdata_make_value): New.
1784 (_initialize_tracepoint): Create the $_sdata convenience variable.
1785 Add the "info static-tracepoint-markers" command.
1786 Mention $_sdata in the "collect" command's help output.
1787 * tracepoint.h (struct static_tracepoint_marker): New.
1788 (parse_static_tracepoint_marker_definition)
1789 (release_static_tracepoint_marker): Declare.
1790 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
1791 * python/py-breakpoint.c (bppy_new): Adjust.
1792
1793 2010-06-30 Joel Brobecker <brobecker@adacore.com>
1794
1795 * python/python-internal.h (_XOPEN_SOURCE): Undefine before
1796 including Python.h.
1797
1798 2010-06-29 Doug Evans <dje@google.com>
1799
1800 PR gdb/11702
1801 * dwarf2read.c (dwarf2_add_field): Only create a symbol if
1802 DW_AT_external is present.
1803
1804 PR gdb/11702
1805 * NEWS: Add entry.
1806 * dwarf2read.c (dwarf2_add_field): If DW_AT_const_value is present,
1807 create a symbol for the field and record the value.
1808 (new_symbol): Handle DW_TAG_member.
1809 * gdbtypes.c (field_is_static): Remove FIXME.
1810 * symtab.c (search_symbols): When searching for VARIABLES_DOMAIN,
1811 only ignore LOC_CONST symbols that are enums.
1812
1813 * dwarf2read.c: Remove trailing whitespace.
1814
1815 Delete FIELD_LOC_KIND_DWARF_BLOCK, unused.
1816 * gdbtypes.h (enum field_loc_kind): Delete FIELD_LOC_KIND_DWARF_BLOCK.
1817 (struct main_type, field loc): Delete dwarf_block.
1818 (FIELD_DWARF_BLOCK): Delete.
1819 (SET_FIELD_DWARF_BLOCK): Delete.
1820 (TYPE_FIELD_DWARF_BLOCK): Delete.
1821 * gdb-gdb.py (StructMainTypePrettyPrinter.struct_field_location_img):
1822 Update.
1823
1824 2010-06-29 Hui Zhu <teawater@gmail.com>
1825
1826 * record.c (set_record_pic_cmdlist,
1827 show_record_pic_cmdlist): New variables.
1828 (set_record_pic_command,
1829 show_record_pic_command): New functions.
1830 (record_pic_function, record_pic_line, record_pic_enum,
1831 set_record_pic_type, record_pic_hide_nofunction,
1832 record_pic_hide_nosource, record_pic_hide_same): New variables.
1833 (record_pic_fputs): New function.
1834 (function_list, node_list, edge_list): New struct.
1835 (function_list, node_list, edge_list): New variables.
1836 (record_pic_cleanups, record_pic_node,
1837 record_pic_edge, cmd_record_pic): New functions.
1838 (_initialize_record): Add new commands for record pic.
1839
1840 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1841
1842 * dwarf2read.c (read_structure_type) <fi.typedef_field_list>: Call
1843 ALLOCATE_CPLUS_STRUCT_TYPE.
1844
1845 2010-06-28 Phil Muldoon <pmuldoon@redhat.com>
1846 Tom Tromey <tromey@redhat.com>
1847 Thiago Jung Bauermann <bauerman@br.ibm.com>
1848
1849 * value.c (pack_unsigned_long): New function.
1850 (value_from_ulongest): New function.
1851 * value.h (value_from_ulongest): Declare.
1852 * python/python.c (_initialize_python): Call
1853 gdbpy_initialize_thread and gdbpy_initialize_inferior.
1854 * python/python-internal.h: Define thread_object.
1855 (gdbpy_inferiors, gdbpy_selected_thread)
1856 (frame_info_to_frame_object, create_thread_object)
1857 (find_thread_object, find_inferior_object)
1858 (gdbpy_initialize_thread, gdbpy_initialize_inferiors)
1859 (gdbpy_is_value_object, get_addr_from_python): Declare.
1860 * python/py-value.c (builtin_type_upylong): Define.
1861 (convert_value_from_python): Add logic for ulongest.
1862 (gdbpy_is_value_object): New function.
1863 * python/py-utils.c (get_addr_from_python): New function.
1864 * python/py-frame.c (frame_info_to_frame_object): Return a PyObject.
1865 (gdbpy_selected_frame): Use PyObject over frame_info.
1866 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-inferior and
1867 py-infthread.
1868 (SUBDIR_PYTHON_SRCS): Likewise.
1869 (py-inferior.o): New Rule.
1870 (py-infthread.o): New Rule.
1871 * python/py-inferior.c: New File.
1872 * python/py-infthread.c: New File.
1873
1874 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1875
1876 * c-typeprint.c (c_type_print_base): For no fields check include also
1877 TYPE_TYPEDEF_FIELD_COUNT. Print new typedefs section.
1878 * dwarf2read.c (struct typedef_field_list)
1879 (struct field_info) <typedef_field_list, typedef_field_list_count>: New.
1880 (dwarf2_add_typedef): New.
1881 (read_structure_type): Call dwarf2_add_typedef for DW_TAG_typedef.
1882 Copy also FI.TYPEDEF_FIELD_LIST.
1883 * gdbtypes.h (struct typedef_field)
1884 (struct cplus_struct_type) <typedef_field, typedef_field_count>
1885 (TYPE_TYPEDEF_FIELD_ARRAY, TYPE_TYPEDEF_FIELD, TYPE_TYPEDEF_FIELD_NAME)
1886 (TYPE_TYPEDEF_FIELD_TYPE, TYPE_TYPEDEF_FIELD_COUNT): New.
1887
1888 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1889
1890 * cp-namespace.c (cp_lookup_nested_type): New variable
1891 concatenated_name. Turn the current return condition into a reverse
1892 one. Call also lookup_static_symbol_aux on the constructed qualified
1893 name.
1894 * symtab.c (lookup_symbol_aux): Move variable objfile and searching in
1895 other files into a called ...
1896 (lookup_static_symbol_aux): ... new function here.
1897 * symtab.h (lookup_static_symbol_aux): New prototype.
1898 * valops.c (value_maybe_namespace_elt): Call also
1899 lookup_static_symbol_aux if we failed otherwise.
1900
1901 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1902
1903 Fix PR c++/11703 and PR gdb/1448.
1904 * c-exp.y (yylex) <last_was_coloncolon && first_was_coloncolon>: Add
1905 FIRST_ITER check.
1906
1907 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1908
1909 Fix modification of cplus_struct_default.
1910 * dwarf2read.c (dwarf2_add_member_fn) <no DW_AT_vtable_elem_location>:
1911 Call ALLOCATE_CPLUS_STRUCT_TYPE.
1912 * gdbtypes.c (cplus_struct_default): New empty initializer, comment it.
1913
1914 2010-06-28 Joel Brobecker <brobecker@adacore.com>
1915
1916 * NEWS: Add entry announcing the python directory.
1917
1918 2010-06-28 Tom Tromey <tromey@redhat.com>
1919
1920 * dwarf2read.c (read_structure_type): Allocate null cleanup later.
1921
1922 2010-06-28 Doug Evans <dje@google.com>
1923
1924 * breakpoint.c (breakpoint_sals_to_pc): Delete arg address, unused.
1925 All callers updated.
1926
1927 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1928
1929 * cp-valprint.c (cp_print_value_fields) <recurse == 0>: Call
1930 obstack_begin after each obstack_free.
1931
1932 2010-06-27 Doug Evans <dje@google.com>
1933
1934 * value.c (value_static_field): Use `switch' instead of `if'.
1935 Assert-fail if passed invalid TYPE_FIELD_LOC_KIND.
1936
1937 * valops.c (search_struct_field): Fix typo in error message.
1938
1939 2010-06-26 Ulrich Weigand <uweigand@de.ibm.com>
1940
1941 * dwarf2expr.c (execute_stack_op): Place preprocessor
1942 directives at the start of the source line.
1943
1944 2010-06-25 Paul Hilfinger <hilfinger@adacore.com>
1945
1946 * defs.h (make_command_stats_cleanup): Declare.
1947 (set_display_time): Declare.
1948 (set_display_space): Declare.
1949 * event-top.c (command_handler): Use make_command_stats_cleanup.
1950 * main.c (display_time, display_space): Move definitions to utils.c.
1951 (captured_main): Use make_command_stats_cleanup to get start-up
1952 statistics.
1953 Use set_display_time and set_display_space for processing OPT_STATISTICS
1954 case.
1955 * maint.c (maintenance_time_display): Use set_display_time.
1956 (maintenance_space_display): Use set_display_space.
1957 * top.c (execute_command): Remove obsolete 'maint time' code.
1958 (command_loop): Use make_command_stats_cleanup.
1959 * utils.c (struct cmd_stats): Structure for storing initial time
1960 and space usage.
1961 (display_time, display_space): Move definitions here from utils.c.
1962 (set_display_time): New function.
1963 (set_display_space): New function.
1964 (make_command_stats_cleanup): New function.
1965 (report_command_stats): New auxiliary function for
1966 make_command_stats_cleanup.
1967
1968 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
1969
1970 * solib-spu.c (append_ocl_sos): Fix xsnprintf statement for
1971 hosts where CORE_ADDR is long long.
1972
1973 2010-06-25 Tom Tromey <tromey@redhat.com>
1974
1975 PR python/10808:
1976 * python/python.c (execute_gdb_command): Add keywords. Accept
1977 "to_string" argument.
1978 (struct restore_ui_file_closure): New.
1979 (restore_ui_file): New function.
1980 (make_cleanup_restore_ui_file): Likewise.
1981 (GdbMethods) <execute>: Update.
1982
1983 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
1984
1985 * s390-tdep.c (s390_push_dummy_call): Error on stack overflow
1986 during inferior call stack frame setup.
1987
1988 2010-06-25 Ken Werner <ken.werner@de.ibm.com>
1989
1990 * solib-spu.c: Include "exception.h".
1991 (ocl_program_data_key): New variable.
1992 (append_ocl_sos): New function.
1993 (ocl_enable_break): Likewise.
1994 (spu_current_sos): Call append_ocl_sos.
1995 (spu_solib_loaded): Call ocl_enable_break.
1996 (_initialize_spu_solib): Register ocl_program_data_key.
1997
1998 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
1999
2000 * cp-support.c (reset_directive_searched): New function.
2001 (make_symbol_overload_list_using): Prevent recursive calls.
2002
2003 2010-06-25 Phil Muldoon <pmuldoon@redhat.com>
2004
2005 * printcmd.c (print_variable_and_value): Print error message on
2006 caught exception.
2007
2008 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
2009
2010 * dwarf2expr.h (struct dwarf_value_location): Use ULONGEST as type
2011 of stack values.
2012 (struct dwarf_expr_piece): Rename "expr" member to "mem". Add new
2013 "value" member.
2014 (dwarf_expr_push): Change input type to ULONGEST.
2015 (dwarf_expr_fetch): Change return type to ULONGEST.
2016 (dwarf_expr_fetch_address): Add prototype.
2017 (dwarf2_read_address): Remove prototype.
2018 * dwarf2expr.c (dwarf_expr_push): Use ULONGEST as type of stack values.
2019 Truncate stack values to ctx->addr_size bytes.
2020 (dwarf_expr_fetch): Change return value to ULONGEST.
2021 (dwarf_expr_fetch_address): New function.
2022 (add_piece): Use dwarf_expr_fetch_address instead of dwarf_expr_fetch
2023 when appropriate. Update for struct dwarf_expr_piece changes.
2024 (dwarf2_read_address): Remove.
2025 (unsigned_address_type): Remove.
2026 (signed_address_type): Remove.
2027 (execute_stack_op): Use dwarf_expr_fetch_address instead of
2028 dwarf_expr_fetch when appropriate. Use ULONGEST as type of stack
2029 values. Perform operations on ULONGEST instead of on GDB values,
2030 sign-extending from ctx->addr_size bytes as needed. Read DW_OP_addr
2031 values and DW_OP_deref results as unsigned integers.
2032 * dwarf2loc.c (read_pieced_value): Update for struct dwarf_expr_piece
2033 changes.
2034 (write_pieced_value): Likewise.
2035 (dwarf2_evaluate_loc_desc): Use dwarf_expr_fetch_address instead of
2036 dwarf_expr_fetch when appropriate.
2037 (compile_dwarf_to_ax): Read DW_OP_addr values as unsigned integers.
2038 * dwarf2-frame.c (execute_stack_op): Use dwarf_expr_fetch_address
2039 instead of dwarf_expr_fetch when appropriate.
2040
2041 2010-06-25 Pierre Muller <muller@ics.u-strasbg.fr>
2042
2043 * c-typeprint.c (c_print_typedef): Append new type name for typedefs.
2044
2045 2010-06-24 Joel Brobecker <brobecker@adacore.com>
2046
2047 * python/python.c (_initialize_python): Add new "constant"
2048 PYTHONDIR in gdb module. Insert this path at the head of
2049 sys.path. Set gdb.__path__ to gdb.PYTHONDIR + '/gdb' and
2050 exec its __init__.py script if it exists in that directory.
2051
2052 2010-06-24 Kevin Buettner <kevinb@redhat.com>
2053
2054 * rx-tdep.c (RX_ACC_REGNUM): Define.
2055 (RX_NUM_REGS): Redefine to 26.
2056 (rx_register_name): Add register "acc". Change order of several
2057 registers. Change name of "vct" register to "fintv" to match RX
2058 documentation.
2059 (rx_register_type): Add case for RX_ACC_REGNUM.
2060
2061 2010-06-24 Tom Tromey <tromey@redhat.com>
2062
2063 * psymtab.c (lookup_partial_symbol): Mark definition as static.
2064
2065 2010-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2066 Tom Tromey <tromey@redhat.com>
2067
2068 Fix GDB startup on readonly filesystem.
2069 * charset.c (find_charset_names): Use PEX_USE_PIPES for pex_init.
2070
2071 2010-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2072 Pedro Alves <pedro@codesourcery.com>
2073
2074 Fix PR 9436.
2075 * breakpoint.c (handle_jit_event): New function.
2076 (bpstat_what): Remove enum class, kc, ss, sn, sgl, slr, clr, sr, shl,
2077 jit, err, table and bs_class. New variables shlib_event, jit_event,
2078 this_action and bptype. Change bs_class assignments to this_action
2079 assignments. new unhandled bptype internal error. Move here
2080 shlib_event and jit_event handling from handle_inferior_event.
2081 * breakpoint.h (enum bpstat_what_main_action): Extend the comment.
2082 Reorder items. Remove BPSTAT_WHAT_CHECK_SHLIBS and
2083 BPSTAT_WHAT_CHECK_JIT.
2084 * inferior.h (debug_infrun, stop_on_solib_events): New declarations.
2085 * infrun.c (debug_infrun, stop_on_solib_events): Remove static.
2086 (handle_inferior_event): Reinitialize frame and gdbarch after
2087 bpstat_what call. Move BPSTAT_WHAT_CHECK_SHLIBS and
2088 BPSTAT_WHAT_CHECK_JIT handling to bpstat_what. Reinitialize even
2089 gdbarch when frame gets reinitialized.
2090
2091 2010-06-24 Hui Zhu <teawater@gmail.com>
2092
2093 * printcmd.c (ui_printf): New function.
2094 (printf_command): Call ui_printf.
2095 (_initialize_printcmd): New command "eval".
2096
2097 2010-06-23 Ulrich Weigand <uweigand@de.ibm.com>
2098
2099 * infrun.c (handle_inferior_event): Handle presence of single-step
2100 breakpoints for TARGET_WAITKIND_FORKED and TARGET_WAITKIND_VFORKED.
2101 Cancel single-step breakpoints for TARGET_WAITKIND_EXITED,
2102 TARGET_WAITKIND_SIGNALED, and TARGET_WAITKIND_EXECD.
2103 * breakpoint.c (detach_single_step_breakpoints): New function.
2104 (detach_breakpoints): Call it.
2105 (cancel_single_step_breakpoints): New function.
2106 * breakpoint.h (cancel_single_step_breakpoints): Add prototype.
2107
2108 * spu-tdep.c (spu_memory_remove_breakpoint): New function.
2109 (spu_gdbarch_init): Install it.
2110
2111 2010-06-23 Jan Kratochvil <jan.kratochvil@redhat.com>
2112
2113 * configure.ac: Always set RDYNAMIC at least as `-rdynamic'.
2114 * configure: Regenerate.
2115
2116 2010-06-22 Hui Zhu <teawater@gmail.com>
2117
2118 * i386-tdep.c (i386_record_lea_modrm): Change warning to query.
2119 (i386_process_record): Ditto.
2120 * record.c (record_memory_query): New variable.
2121 (_initialize_record): New command "set record memory-query".
2122 * record.h (record_memory_query): New extern.
2123
2124 2010-06-21 Doug Evans <dje@google.com>
2125
2126 * i386-tdep.h (i386_displaced_step_copy_insn): Declare.
2127 * i386-tdep.c (i386_displaced_step_copy_insn): New function.
2128 (i386_syscall_p): Change type of lengthp to int.
2129 (i386_displaced_step_fixup): Handle kernels that run one past a
2130 syscall insn.
2131 * i386-linux-tdep.c (i386_linux_init_abi): Use
2132 i386_displaced_step_copy_insn instead of
2133 simple_displaced_step_copy_insn.
2134
2135 2010-06-21 Tom Tromey <tromey@redhat.com>
2136
2137 * dwarf2read.c (read_base_type): Handle DW_ATE_UTF.
2138 (dwarf_type_encoding_name): Likewise.
2139
2140 2010-06-21 Tom Tromey <tromey@redhat.com>
2141
2142 * p-valprint.c (pascal_val_print): Use TYPE_ERROR_NAME.
2143 * p-typeprint.c (pascal_type_print_base): Use TYPE_ERROR_NAME.
2144 * m2-valprint.c (m2_val_print): Use TYPE_ERROR_NAME.
2145 * gdbtypes.h (TYPE_ERROR_NAME): New macro.
2146 * f-valprint.c (f_val_print): Use TYPE_ERROR_NAME.
2147 * f-typeprint.c (f_type_print_base): Use TYPE_ERROR_NAME.
2148 * dwarf2read.c (tag_type_to_type): Create a new error type on
2149 failure.
2150 * c-valprint.c (c_val_print): Use TYPE_ERROR_NAME.
2151 * c-typeprint.c (c_type_print_base): Use TYPE_ERROR_NAME.
2152
2153 2010-06-21 Michael Snyder <msnyder@vmware.com>
2154
2155 * breakpoint.c (_initialize_breakpoint): Use add_prefix_cmd,
2156 not add_abbrev_prefix_cmd, for "enable breakpoints".
2157
2158 2010-06-21 Ulrich Weigand <uweigand@de.ibm.com>
2159
2160 * dwarf2loc.c (find_location_expression): Add relocation offset
2161 to base-address-selection entry base addresses. Read addresses
2162 (and offsets) as signed/unsigned integers, depending on the
2163 BFD's sign_extend_vma flag. Do not call dwarf2_read_address.
2164 (loclist_describe_location): Likewise.
2165 (disassemble_dwarf_expression): Read DW_OP_addr operand as
2166 unsigned integer. Do not call dwarf2_read_address.
2167 (locexpr_describe_location): Likewise for DW_OP_GNU_push_tls_address.
2168
2169 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
2170
2171 * spu-tdep.c (spu_frame_unwind_cache): Use LSLR register
2172 value instead of hard-coded SPU_LS_SIZE.
2173 (spu_software_single_step): Likewise.
2174 * spu-tdep.h (SPU_LS_SIZE): Remove.
2175
2176 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
2177
2178 * spu-multiarch.c (spu_xfer_partial): Wrap around local store
2179 limit on local store memory accesses.
2180 * spu-linux-nat.c (spu_xfer_partial): Likewise.
2181 * spu-tdep.c (spu_lslr): Remove.
2182 (spu_pointer_to_address): Do not truncate addresses.
2183 (spu_integer_to_address): Likewise.
2184 (spu_overlay_new_objfile): Use SPU_OVERLAY_LMA.
2185 * spu-tdep.h: Add comments.
2186 (SPUADDR_SPU): Respect SPU_OVERLAY_LMA bit.
2187 (SPU_OVERLAY_LMA): Define.
2188
2189 2010-06-18 Stan Shebs <stan@codesourcery.com>
2190
2191 * osdata.c (get_osdata): Warn separately if target does not report
2192 type list.
2193 (info_osdata_command): Allow empty type, report error if target
2194 does not return available types of OS data.
2195 * linux-nat.c (linux_nat_xfer_osdata): Report list of OS data
2196 types if no annex supplied.
2197
2198 * thread.c (thread_id_make_value): Make a value representing the
2199 current thread.
2200 (_initialize_thread): Create $_thread.
2201
2202 2010-06-17 Joel Brobecker <brobecker@adacore.com>
2203
2204 * dwarf2read.c (psymtabs_addrmap_cleanup): Add empty line after
2205 last local variable declaration. No real code change.
2206
2207 2010-06-17 Tom Tromey <tromey@redhat.com>
2208
2209 * dwarf2read.c (psymtabs_addrmap_cleanup): New function.
2210 (dwarf2_build_psymtabs_hard): Use it. Create addrmap on a
2211 temporary obstack.
2212
2213 2010-06-16 Sergio Durigan Junior <sergiodj@redhat.com>
2214 Jan Kratochvil <jan.kratochvil@redhat.com>
2215
2216 * breakpoint.c: Include parser-defs.h.
2217 (watchpoint_exp_is_const): New function.
2218 (watch_command_1): Call watchpoint_exp_is_const to check
2219 if the expression is constant.
2220
2221 2010-06-15 Andreas Schwab <schwab@linux-m68k.org>
2222
2223 * configure.ac: Check for RDYNAMIC also for cross builds.
2224 * configure: Regenerate.
2225
2226 2010-06-15 Pedro Alves <pedro@codesourcery.com>
2227
2228 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
2229 (SFILES): Remove solib-null.c, add solib-target.c.
2230 (COMMON_OBS): Remove solib-null.o, add solib-target.o.
2231 (ALLDEPFILES): Remove solib-target.c.
2232 * solib-target.c (_initialize_solib_target): Set
2233 current_target_so_ops to solib_target_so_ops if not already set.
2234 * solib-null.c: Delete.
2235
2236 2010-06-14 Pedro Alves <pedro@codesourcery.com>
2237
2238 * NEWS: Mention GDBserver's JIT compilation of tracepoint
2239 bytecode.
2240
2241 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
2242
2243 * cp-valprint.c (cp_print_static_field): Members of
2244 dont_print_stat_array_obstack are of type "struct type *".
2245 (_initialize_cp_valprint): Likewise.
2246
2247 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
2248
2249 * frame.c (frame_register_unwind): Do not access contents
2250 of "optimized out" unwound register value.
2251
2252 2010-06-14 Jan Kratochvil <jan.kratochvil@redhat.com>
2253
2254 * ada-lang.h (ada_print_type): Make varstring const.
2255 * ada-typeprint.c (print_func_type): Make name const.
2256 (ada_print_type): Make varstring const.
2257 * c-lang.h (c_print_type): Make varstring const.
2258 * c-typeprint.c (c_print_type): Likewise.
2259 * f-lang.h (f_print_type): Likewise.
2260 * f-typeprint.c (f_print_type): Likewise.
2261 * jv-lang.h (java_print_type): Likewise.
2262 * jv-typeprint.c (java_print_type): Likewise.
2263 * language.c (unk_lang_print_type): Likewise.
2264 * language.h (struct language_defn) <la_print_type>: Likewise.
2265 * m2-lang.h (m2_print_type): Likewise.
2266 * m2-typeprint.c (m2_print_type): Likewise.
2267 * p-lang.h (pascal_print_type): Likewise.
2268 * p-typeprint.c (pascal_print_type): Likewise.
2269
2270 2010-06-11 Stan Shebs <stan@codesourcery.com>
2271
2272 Add per-operation permission flags.
2273
2274 * target.h (struct target_ops): New method to_set_permissions.
2275 (target_set_permissions): New macro.
2276 (target_insert_breakpoint): Change macro to function.
2277 (target_remove_breakpoint): Ditto.
2278 (target_stop): Ditto.
2279 (may_write_registers): Declare.
2280 (may_write_memory): Declare.
2281 (may_insert_breakpoints): Declare.
2282 (may_insert_tracepoints): Declare.
2283 (may_insert_fast_tracepoints): Declare.
2284 (may_stop): Declare.
2285 * target.c (may_write_registers, may_write_registers_1): New globals.
2286 (may_write_memory, may_write_memory_1): New globals.
2287 (may_insert_breakpoints, may_insert_breakpoints_1): New globals.
2288 (may_insert_tracepoints, may_insert_tracepoints_1): New globals.
2289 (may_insert_fast_tracepoints, may_insert_fast_tracepoints_1): New
2290 globals.
2291 (may_stop, may_stop_1): New global.
2292 (target_xfer_partial): Test for write permission.
2293 (target_store_registers): Ditto.
2294 (target_insert_breakpoint): New function.
2295 (target_remove_breakpoint): New function.
2296 (target_stop): New function.
2297 (_initialize_targets): Add new set/show variables.
2298 (set_write_memory_permission): New function.
2299 (update_target_permissions): New function.
2300 (set_target_permissions): New function.
2301 (update_current_target): Default to_set_permissions.
2302 (_initialize_targets): Use new globals and setter function.
2303 * tracepoint.c (start_tracing): Test for permission.
2304 * inferior.h (update_observer_mode): Declare.
2305 * infrun.c (non_stop_1): Define earlier.
2306 (observer_mode, observer_mode_1): New globals.
2307 (set_observer_mode, show_observer_mode): New functions.
2308 (update_observer_mode): New function.
2309 (_initialize_infrun): Define "set observer" command.
2310 * remote.c (PACKET_QAllow): New optional packet.
2311 (remote_protocol_features): Add QAllow.
2312 (remote_set_permissions): New function.
2313 (remote_start_remote): Call it.
2314 (init_remote_ops): Add it to target vector.
2315 (_initialize_remote): Add config command for QAllow.
2316
2317 2010-06-11 Tom Tromey <tromey@redhat.com>
2318
2319 * dwarf2read.c (dwarf2_add_member_fn): Handle correct form of
2320 DW_AT_vtable_elem_location even when GCC extension is seen.
2321
2322 2010-06-11 Tom Tromey <tromey@redhat.com>
2323
2324 PR gdb/9977, PR exp/11636:
2325 * value.h (value_offset): Update.
2326 (struct lval_funcs) <check_validity>: New field.
2327 <copy_closure>: Make argument const.
2328 (value_computed_closure): Update.
2329 (value_contents_for_printing): Declare.
2330 (value_bits_valid): Likewise.
2331 (val_print): Likewise.
2332 (set_value_component_location): Update.
2333 (value_entirely_optimized_out): Declare.
2334 * value.c (value_offset): Argument now const.
2335 (require_not_optimized_out): New function.
2336 (value_contents_for_printing): New function.
2337 (value_contents_all): Call require_not_optimized_out.
2338 (value_contents): Likewise.
2339 (value_bits_valid): New function.
2340 (value_computed_closure): Argument now const.
2341 (set_value_component_location): Make 'whole' argument const.
2342 (value_entirely_optimized_out): New function.
2343 (value_bitsize): Argument now 'const'.
2344 (value_bitpos): Likewise.
2345 (value_type): Likewise.
2346 * valprint.h (val_print_array_elements): Update.
2347 * valprint.c (val_print): Add 'val' argument. Use
2348 valprint_check_validity.
2349 (valprint_check_validity): New function.
2350 (value_check_printable): Use value_entirely_optimized_out.
2351 (common_val_print): Update.
2352 (value_print): Likewise.
2353 (val_print_array_elements): Add 'val' argument.
2354 * valops.c (value_fetch_lazy): Use value_contents_for_printing,
2355 value_bits_valid. Reinit frame cache for lval_computed.
2356 * sh64-tdep.c (sh64_do_register): Update.
2357 * scm-valprint.c (scm_val_print): Add 'val' argument.
2358 * scm-lang.h (scm_val_print): Update.
2359 * python/python.h (apply_val_pretty_printer): Update.
2360 * python/py-prettyprint.c (apply_val_pretty_printer): Add 'val'
2361 argument. Call set_value_component_location.
2362 * printcmd.c (print_scalar_formatted): Update.
2363 * p-valprint.c (pascal_val_print): Add 'val' argument.
2364 (pascal_object_print_value_fields): Likewise.
2365 (pascal_object_print_value): Likewise.
2366 (pascal_object_print_static_field): Update.
2367 * p-lang.h (pascal_val_print): Update.
2368 (pascal_object_print_value_fields): Update.
2369 * mt-tdep.c (mt_registers_info): Update.
2370 * mi/mi-main.c (get_register): Update.
2371 (mi_cmd_data_evaluate_expression): Use common_val_print.
2372 * m2-valprint.c (m2_print_array_contents): Add 'val' argument.
2373 (m2_print_unbounded_array): Likewise.
2374 (m2_val_print): Likewise.
2375 * m2-lang.h (m2_val_print): Update.
2376 * language.h (struct language_defn) <la_val_print>: Add 'val'
2377 argument.
2378 (LA_VAL_PRINT): Likewise.
2379 * language.c (unk_lang_val_print): Add 'val' argument.
2380 * jv-valprint.c (java_print_value_fields): Add 'val' argument.
2381 (java_val_print): Likewise.
2382 * jv-lang.h (java_val_print): Add 'val' argument.
2383 * infcmd.c (default_print_registers_info): Update.
2384 * f-valprint.c (f77_print_array_1): Add 'val' argument.
2385 (f77_print_array): Likewise.
2386 (f_val_print): Likewise.
2387 * f-lang.h (f_val_print): Add 'val' argument.
2388 * dwarf2loc.c (read_pieced_value): Use value_bitsize and
2389 value_bitpos.
2390 <DWARF_VALUE_OPTIMIZED_OUT>: Don't print warning. Call
2391 set_value_optimized_out.
2392 (write_pieced_value): Use value_bitsize and value_bitpos.
2393 <default>: Don't exit loop.
2394 (check_pieced_value_validity): New function.
2395 (pieced_value_funcs): Reference check_pieced_value_validity,
2396 check_pieced_value_invalid.
2397 (copy_pieced_value_closure): Update.
2398 (check_pieced_value_bits): New function.
2399 (check_pieced_value_invalid): New function.
2400 * d-valprint.c (dynamic_array_type): Add 'val' argument.
2401 (d_val_print): Likewise.
2402 * d-lang.h (d_val_print): Update.
2403 * cp-valprint.c (cp_print_value_fields): Add 'val' argument.
2404 (cp_print_value_fields_rtti): Likewise.
2405 (cp_print_value): Likewise.
2406 (cp_print_static_field): Update.
2407 * c-valprint.c (c_val_print): Add 'val' argument.
2408 (c_value_print): Update.
2409 * c-lang.h (c_val_print): Update.
2410 (cp_print_value_fields): Likewise.
2411 (cp_print_value_fields_rtti): Likewise.
2412 * ada-valprint.c (struct ada_val_print_args): Remove.
2413 (val_print_packed_array_elements): Add 'val' argument.
2414 (ada_val_print): Likewise. Rewrite.
2415 (ada_val_print_stub): Remove.
2416 (ada_val_print_array): Add 'val' argument.
2417 (ada_val_print_1): Likewise.
2418 (print_variant_part): Likewise.
2419 (ada_value_print): Update.
2420 (print_record): Add 'val' argument.
2421 (print_field_values): Likewise.
2422 * ada-lang.h (ada_val_print): Update.
2423
2424 2010-06-11 Tom Tromey <tromey@redhat.com>
2425
2426 * vec.h (VEC_cleanup): New macro.
2427 (DEF_VEC_ALLOC_FUNC_I): Update.
2428 (DEF_VEC_ALLOC_FUNC_P): Likewise.
2429 (DEF_VEC_ALLOC_FUNC_O): Likewise.
2430 * dwarf2loc.c (struct axs_var_loc): Remove.
2431 (unimplemented): New function.
2432 (translate_register): Likewise.
2433 (access_memory): Likewise.
2434 (compile_dwarf_to_ax): Likewise.
2435 (dwarf2_tracepoint_var_loc): Remove.
2436 (dwarf2_tracepoint_var_access): Likewise.
2437 (dwarf2_tracepoint_var_ref): Likewise.
2438 (locexpr_tracepoint_var_ref): Use compile_dwarf_to_ax.
2439 (loclist_tracepoint_var_ref): Likewise.
2440 * dwarf2expr.h (dwarf_expr_require_composition): Declare.
2441 * dwarf2expr.c (dwarf_expr_require_composition): Rename from
2442 require_composition. No longer static.
2443 (execute_stack_op): Update.
2444 * ax-gdb.h (trace_kludge): Declare.
2445
2446 2010-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2447
2448 * breakpoint.c (breakpoint_restore_shadows): New OWNER comment.
2449 (should_be_inserted): Return zero also on NULL OWNER.
2450 (breakpoint_program_space_exit): New OWNER comment.
2451 (insert_breakpoint_locations): Extend comment for OWNER.
2452 (remove_breakpoint_1, remove_breakpoint): Assert on OWNER.
2453 (breakpoint_init_inferior, breakpoint_here_p, breakpoint_thread_match):
2454 New OWNER comment.
2455 (print_it_typical): Return PRINT_UNKNOWN on NULL OWNER.
2456 (watchpoint_check): New assert on BREAKPOINT_AT and OWNER.
2457 (bpstat_check_location): New assert on OWNER.
2458 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions): Move BL
2459 and B initializations to the code block. New assert on them.
2460 (print_one_breakpoint_location): New OWNER comment.
2461 (watchpoint_locations_match): Assert on OWNER.
2462 (breakpoint_locations_match): Move HW_POINT1 and HW_POINT2
2463 initializations to the code block. New assert on OWNER.
2464 (set_breakpoint_location_function): New assert on OWNER.
2465 (disable_breakpoints_in_shlibs, disable_breakpoints_in_unloaded_shlib)
2466 (bp_location_compare, update_global_location_list)
2467 (update_global_location_list): New OWNER comment.
2468
2469 2010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
2470
2471 * Makefile.in (HFILES_NO_SRCDIR): Remove config/i386/nm-linux.h
2472
2473 2010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
2474
2475 * config/nm-linux.h (struct target_ops): Remove forward declaration.
2476 (lin_thread_get_thread_signals): Remove prototype.
2477 (GET_THREAD_SIGNALS): Remove.
2478 * linux-nat.h (lin_thread_get_thread_signals): Add prototype.
2479 * linux-thread-db.c (check_thread_signals): Directly call
2480 lin_thread_get_thread_signals; do not check GET_THREAD_SIGNALS.
2481
2482 2010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
2483
2484 * gregset.h (GDB_FPXREGSET_T): Remove.
2485 (gdb_fpxregset_t): Likewise.
2486 (supply_fpxregset): Remove prototype.
2487 (fill_fpxregset): Likewise.
2488 * i386-linux-nat.c (supply_fpxregset): Remove.
2489 (fill_fpxregset): Likewise.
2490 (fetch_fpxregs): Inline supply_fpxregset call.
2491 (store_fpxregs): Inline fill_fpxregset call.
2492
2493 * config/i386/linux.mh: Set NAT_FILE to config/nm-linux.h.
2494 * config/i386/nm-linux.h: Remove file.
2495
2496 2010-06-09 Michael Snyder <msnyder@vmware.com>
2497
2498 * target.c (update_current_target): Fix spelling error in comment.
2499 (target_mourn_inferior): Fix spelling error in error message.
2500
2501 2010-06-08 Paul Hilfinger <hilfingr@adacore.com>
2502
2503 * dictionary.h (dict_iter_name_first, dict_iter_name_next): Refer to
2504 SYMBOL_SEARCH_NAME, not SYMBOL_BEST_NAME, in comments.
2505
2506 2010-06-08 Michael Snyder <msnyder@vmware.com>
2507
2508 * remote.c (remote_close): Set inferior_ptid to null_ptid.
2509
2510 2010-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2511
2512 * configure.ac <"${have_libpython}" != no>: New workaround of
2513 python#4434.
2514 * configure: Regenerate.
2515
2516 2010-06-08 Hui Zhu <teawater@gmail.com>
2517
2518 * record.c (record_wait): Move signal out of replay code.
2519
2520 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2521
2522 Fix PR 10640.
2523 * dwarf2-frame.c (no_dwarf_call): New function.
2524 (execute_stack_op): Set CTX->DWARF_CALL.
2525 * dwarf2expr.c (execute_stack_op) <DW_OP_call2, DW_OP_call4>: New.
2526 * dwarf2expr.h (struct dwarf_expr_context) <dwarf_call>: New.
2527 (struct dwarf_expr_context) <get_subr>: Remove the #if0-ed field.
2528 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call): New functions.
2529 (dwarf2_evaluate_loc_desc): Initialize CTX->DWARF_CALL.
2530 (needs_frame_dwarf_call): New function.
2531 (dwarf2_loc_desc_needs_frame): Initialize CTX->DWARF_CALL.
2532 * dwarf2read.c (follow_die_offset): Based on former follow_die_ref.
2533 Update the comment. Move variables die, offset and error call to ...
2534 (follow_die_ref): ... a new function.
2535 (dwarf2_fetch_die_location_block): New function.
2536 * dwarf2loc.h (dwarf2_fetch_die_location_block): New prototype.
2537
2538 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2539
2540 * dwarf2loc.c (struct dwarf_expr_baton) Replace objfile by per_cu.
2541 (dwarf_expr_tls_address): Use per_cu instead of objfile.
2542 (dwarf2_evaluate_loc_desc): Drop initialization of BATON.OBJFILE.
2543 Initialize new BATON.PER_CU. Adjust CTX->GDBARCH initialization for
2544 this change.
2545 (struct needs_frame_baton): New field per_cu.
2546 (dwarf2_loc_desc_needs_frame): Initialize new BATON.PER_CU.
2547 * dwarf2read.c (struct dwarf2_per_cu_data) <cu>: Extend the comment.
2548
2549 2010-06-07 Sami Wagiaalla <swagiaal@redhat.com>
2550
2551 * cp-support.c (make_symbol_overload_list_namespace): Only search
2552 static and global blocks.
2553 (make_symbol_overload_list_block): New function.
2554 (make_symbol_overload_list): Separate namespace search from block
2555 search.
2556 (make_symbol_overload_list_qualified): Use
2557 make_symbol_overload_list_block.
2558
2559 2010-06-07 Sami Wagiaalla <swagiaal@redhat.com>
2560
2561 * value.h: Created oload_search_type enum.
2562 (find_overload_match): Use oload_search_type enum.
2563 * valops.c (find_overload_match): Support combined member and
2564 non-member search.
2565 * eval.c (evaluate_subexp_standard): Calls to
2566 find_overload_match now use oload_search_type enum.
2567 (oload_method_static): Verify index is a proper value.
2568 * valarith.c (value_user_defined_cpp_op): Search for and handle
2569 both member and non-member operators.
2570 (value_user_defined_cpp_op): New function.
2571 (value_user_defined_op): New function.
2572 (value_x_unop): Use value_user_defined_op.
2573 (value_x_binop): Ditto.
2574 * cp-support.c (make_symbol_overload_list_using): Added block
2575 iteration.
2576 Add check for namespace aliases and imported declarations.
2577
2578 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2579
2580 * breakpoint.h (owner): Extend the comment.
2581
2582 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2583
2584 Clear stale specific bp_location from former whole breakpoint.
2585 * breakpoint.c (delete_breakpoint): Move the stale referencing clear
2586 code ...
2587 (free_bp_location): ... here. Rename there the called function to
2588 bpstat_remove_bp_location_callback.
2589 (bpstat_remove_breakpoint_callback): Rename to ...
2590 (bpstat_remove_bp_location_callback): ... here, change DATA resolution
2591 to struct bp_location. Change the called function to
2592 bpstat_remove_bp_location. Create new declaration for the function.
2593 (bpstat_remove_breakpoint): Rename to ...
2594 (bpstat_remove_bp_location): ..., change the parameter to loc, adjust
2595 code for the new parameter type.
2596
2597 2010-06-07 Nathan Sidwell <nathan@codesourcery.com>
2598
2599 * README: Make version-agnostic.
2600
2601 2010-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2602
2603 Fix duplicate types for single DIE.
2604 * dwarf2read.c (read_structure_type): Move set_descriptive_type after
2605 set_die_type.
2606 (read_array_type): Remove type initialization. Recheck get_die_type
2607 after initial die_type. Move set_die_type before set_descriptive_type.
2608 (read_set_type): New variable domain_type. Recheck get_die_type after
2609 initial die_type. Move attr initialization later.
2610 (read_tag_pointer_type, read_tag_reference_type): New variable
2611 target_type. Recheck get_die_type after initial die_type.
2612 (read_tag_ptr_to_member_type): Recheck get_die_type after initial
2613 die_type and die_containing_type.
2614 (read_tag_const_type, read_tag_volatile_type, read_subroutine_type):
2615 Recheck get_die_type after initial die_type.
2616 (read_subrange_type): Recheck get_die_type after initial die_type.
2617 Move set_die_type before set_descriptive_type.
2618 (set_die_type): Extend the function comment. Call complaint if DIE has
2619 some type already set.
2620
2621 2010-06-05 Vladimir Prus <vladimir@codesourcery.com>
2622
2623 * mi/mi-main.c (mi_cmd_list_thread_groups): Adjust
2624 for current naming of thread groups (iN, not N).
2625
2626 2010-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
2627
2628 * ada-lang.c (ada_operator_length): Constify `struct expression'.
2629 * parse.c (operator_length): Likewise.
2630 (operator_length_standard): Likewise.
2631 * parser-defs.h (operator_length): Likewise.
2632 (operator_length_standard): Likewise.
2633 (struct exp_descriptor <operator_length>): Likewise.
2634
2635 2010-06-04 Doug Evans <dje@google.com>
2636
2637 Add support for enabling/disabling individual pretty-printers.
2638 * python/py-prettyprint.c (search_pp_list): Skip disabled printers.
2639 * python/python-internal.h (gdbpy_enabled_cst): Declare.
2640 * python/python.c (gdbpy_enabled_cst): Define.
2641 (_initialize_python): Initialize gdbpy_enabled_cst.
2642 * NEWS: Add entry.
2643
2644 2010-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2645
2646 * breakpoint.c (update_global_location_list): Fix comment typo.
2647
2648 2010-06-04 Hui Zhu <teawater@gmail.com>
2649
2650 * dwarf2loc.c (disassemble_dwarf_expression): Change ul to l.
2651
2652 2010-06-03 Doug Evans <dje@google.com>
2653
2654 * configure.ac: Don't fail if python is unusable when
2655 configured with --with-python=auto.
2656 * configure: Regenerate.
2657
2658 2010-06-03 Sami Wagiaalla <swagiaal@redhat.com>
2659
2660 * dwarf2read.c (new_symbol): Remove redundant naming of symbol.
2661
2662 2010-06-03 Pierre Muller <muller@ics.u-strasbg.fr>
2663
2664 * valprint.h (get_array_bounds): Change low and high parameter types
2665 to LONGEST *.
2666 * valprint.c (get_array_bounds): Use get_discrete_bounds call to
2667 compute bounds.
2668 (val_print_array_elements): Adapt to change above.
2669 * ada-valprint.c (print_optional_low_bound): Adapt to change above.
2670 * p-valprint.c (pascal_val_print): Likewise.
2671
2672 2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2673
2674 * symfile.c (init_filename_language_table): New extensions .for, .FOR,
2675 .ftn, .FTN, .fpp, .FPP, .f90, .F90, .f95, .F95, .f03, .F03, .f08 and
2676 .F08.
2677
2678 2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2679
2680 Support DW_TAG_module as separate namespaces.
2681 * dwarf2read.c (typename_concat): New parameter physname.
2682 (read_module_type): New function and declaration.
2683 (scan_partial_symbols): Scan also DW_TAG_module children.
2684 (partial_die_parent_scope): Accept scope even from DW_TAG_module. Pass
2685 to typename_concat backward compatible physname value 0.
2686 (partial_die_full_name, read_namespace_type): Pass to typename_concat
2687 backward compatible physname value 0.
2688 (add_partial_module, read_module): Remove FIXME comment.
2689 (process_die) <DW_TAG_module>: Set PROCESSING_HAS_NAMESPACE_INFO.
2690 (die_needs_namespace) <DW_TAG_variable>: Allow returning true even for
2691 DIEs under DW_TAG_module.
2692 (dwarf2_compute_name): Move the ada block for DW_AT_linkage_name and
2693 DW_AT_MIPS_linkage_name first, extend it for language_fortran
2694 && physname and return there instead of just setting NAME. Extend
2695 the main block for language_fortran. Pass physname parameter to the
2696 typename_concat call.
2697 (read_import_statement, read_func_scope, get_scope_pc_bounds)
2698 (load_partial_dies, determine_prefix): Support also DW_TAG_module.
2699 (new_symbol): Fill in cplus_specific.demangled_name if it is still
2700 missing from SYMBOL_SET_NAMES in the language_fortran case.
2701 (new_symbol) <DW_TAG_variable>: Force LOC_UNRESOLVED for gfortran module
2702 variables.
2703 (read_type_die) <DW_TAG_module>: New.
2704 (MAX_SEP_LEN): Increase to 7.
2705 (typename_concat): New parameter physname. New variable lead. Support
2706 also language_fortran.
2707 * f-exp.y (yylex): Consider : also as a symbol name character class.
2708 * f-lang.c: Include cp-support.h.
2709 (f_word_break_characters, f_make_symbol_completion_list): New functions.
2710 (f_language_defn): Use cp_lookup_symbol_nonlocal,
2711 f_word_break_characters and f_make_symbol_completion_list.
2712 * f-typeprint.c (f_type_print_base) <TYPE_CODE_MODULE>: New.
2713 * gdbtypes.h (enum type_code) <TYPE_CODE_MODULE>: New.
2714 * symtab.c (symbol_init_language_specific): Support language_fortran.
2715 (symbol_find_demangled_name): New comment on language_fortran.
2716 (symbol_natural_name, symbol_demangled_name): Use demangled_name even
2717 for language_fortran.
2718 (lookup_symbol_aux_local): Check imports also for language_fortran.
2719 (default_make_symbol_completion_list): Rename to ...
2720 (default_make_symbol_completion_list_break_on): ... this name. New
2721 parameter break_on, use it.
2722 (default_make_symbol_completion_list): New stub.
2723 * symtab.h (default_make_symbol_completion_list_break_on): New
2724 prototype.
2725
2726 2010-06-02 Joel Brobecker <brobecker@adacore.com>
2727
2728 * remote.c (remote_get_noisy_reply): Remove trailing "\n" in call
2729 to error.
2730
2731 2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2732
2733 * dwarf2read.c (typename_concat): Add const to the variable sep.
2734
2735 2010-06-02 Tom Tromey <tromey@redhat.com>
2736
2737 * dwarf2loc.h (dwarf2_per_cu_data): Declare.
2738 * dwarf2read.c (dwarf_stack_op_name): No longer static. Return
2739 type is const. Add 'def' argument. Add missing operators, remove
2740 unhandled ones.
2741 (decode_locdesc): Update.
2742 (dwarf2_always_disassemble): New global.
2743 (show_dwarf2_always_disassemble): New function.
2744 (_initialize_dwarf2_read): Add always-disassemble.
2745 (dwarf2_per_cu_offset_size): New function.
2746 * dwarf2loc.c (dwarf2_always_disassemble): Declare.
2747 (piece_end_p): New function.
2748 (locexpr_describe_location_piece): Replace 'size' argument with
2749 'end'. Use piece_end_p. Rewrite recognition of TLS. Recognize
2750 some constants. Remove errors.
2751 (disassemble_dwarf_expression): New function.
2752 (locexpr_describe_location_1): Use disassemble_dwarf_expression.
2753 Add 'offset_size' argument.
2754 (loclist_describe_location): Change output formatting.
2755 * dwarf2expr.h (dwarf_stack_op_name): Declare.
2756
2757 2010-06-02 Sami Wagiaalla <swagiaal@redhat.com>
2758
2759 * cp-support.c (make_symbol_overload_list_adl_namespace): Handle
2760 anonymous type case.
2761
2762 2010-06-02 Pierre Muller <muller@ics.u-strasbg.fr>
2763
2764 * dwarf2read.c (read_subrange_type): Handle missing base type
2765 according to Dwarf-2 specifications.
2766
2767 2010-06-01 Sergio Durigan Junior <sergiodj@redhat.com>
2768
2769 * expprint.c (print_subexp_standard): Remove exp_opcodes BINOP_INCL,
2770 BINOP_EXCL.
2771 (op_name_standard): Remove exp_opcodes BINOP_INCL, BINOP_EXCL,
2772 UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH.
2773 (dump_subexp_body_standard): Remove exp_opcodes BINOP_INCL,
2774 BINOP_EXCL, UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD,
2775 UNOP_CHMAX, UNOP_CHMIN.
2776 * expression.h (enum exp_opcode) <BINOP_INCL, BINOP_EXCL,
2777 UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD, UNOP_CHMAX,
2778 UNOP_CHMIN>: Remove opcodes.
2779
2780 2010-06-01 Pierre Muller <muller@ics.u-strasbg.fr>
2781
2782 * dwarf2read.c (read_func_scope): Do not complain for
2783 external function if bounds are not found.
2784
2785 2010-06-01 Pedro Alves <pedro@codesourcery.com>
2786
2787 * NEWS: Mention gdbserver fast tracepoints support.
2788
2789 2010-05-31 Pierre Muller <muller@ics.u-strasbg.fr>
2790
2791 * windows-nat.c (GetConsoleFontSize, GetCurrentConsoleFont):
2792 New macros.
2793 (windows_set_console_info): New function.
2794 (windows_create_inferior): Call windows_set_console_info
2795 if NEW_CONSOLE is true.
2796 (bad_GetCurrentConsoleFont, bad_GetConsoleFontSize): New functions.
2797 (_initialize_loadable): Initialize GetConsoleFontSize and
2798 GetCurrentConsoleFont.
2799
2800 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2801
2802 * Makefile.in (RDYNAMIC): New.
2803 (SFILES): Add proc-service.list.
2804 * config/alpha/alpha-linux.mh (NAT_CDEPS): New.
2805 (LOADLIBES): Replace -rdynamic by $(RDYNAMIC).
2806 * config/arm/linux.mh: Likewise.
2807 * config/i386/linux.mh: Likewise.
2808 * config/i386/linux64.mh: Likewise.
2809 * config/ia64/linux.mh: Likewise.
2810 * config/m32r/linux.mh: Likewise.
2811 * config/m68k/linux.mh: Likewise.
2812 * config/mips/linux.mh: Likewise.
2813 * config/pa/linux.mh: Likewise.
2814 * config/powerpc/linux.mh: Likewise.
2815 * config/powerpc/ppc64-linux.mh: Likewise.
2816 * config/s390/s390.mh: Likewise.
2817 * config/sparc/linux.mh: Likewise.
2818 * config/sparc/linux64.mh: Likewise.
2819 * config/xtensa/linux.mh: Likewise.
2820 * configure.ac: New RDYNAMIC on native host and GCC.
2821 (solaris*): Replace -Wl,-export-dynamic by $RDYNAMIC.
2822 * configure: Regenerate.
2823 * proc-service.list: New.
2824
2825 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2826
2827 * linux-nat.c (linux_nat_core_of_thread_1): Fix crash on invalid
2828 CONTENT.
2829
2830 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2831
2832 * linux-nat.c (linux_nat_wait_1): Do not call
2833 linux_nat_core_of_thread_1 on TARGET_WAITKIND_EXITED or
2834 TARGET_WAITKIND_SIGNALLED.
2835
2836 2010-05-27 Joel Brobecker <brobecker@adacore.com>
2837
2838 * ada-lang.c (ada_inferior_data): New struct.
2839 (ada_inferior_data): New static global.
2840 (ada_inferior_data_cleanup, get_ada_inferior_data, ada_inferior_exit)
2841 (ada_get_tsd_type): New functions.
2842 (ada_tag_name_2): Use ada_get_tsd_type instead of ada_find_any_type
2843 to look the tsd type up.
2844 (_initialize_ada_language): Attach ada_inferior_exit to inferior_exit
2845 event. Set ada_inferior_data.
2846
2847 2010-05-27 Pedro Alves <pedro@codesourcery.com>
2848
2849 * remote.c (unpack_varlen_hex): Remove forward declaration.
2850 (remote_console_output): Make static, and add forward declaration.
2851 * remote.h: Drop FIXME comment.
2852 (unpack_varlen_hex): Declare.
2853 (remote_console_output, remote_cisco_objfile_relocate)
2854 (deprecated_target_resume_hook, deprecated_target_wait_loop_hook):
2855 Delete declarations.
2856 * tracepoint.c: Include "remote.h".
2857 (unpack_varlen_hex): Delete declaration.
2858
2859 2010-05-27 Tom Tromey <tromey@redhat.com>
2860
2861 * dwarf2loc.c (struct piece_closure) <refc>: New field.
2862 (allocate_piece_closure): Initialize refc.
2863 (copy_pieced_value_closure): Use refc.
2864 (free_pieced_value_closure): Likewise.
2865
2866 2010-05-27 Tom Tromey <tromey@redhat.com>
2867
2868 * arm-tdep.c (push_stack_item): 'contents' now const.
2869 (arm_push_dummy_call): Make 'val' const. Use value_contents, not
2870 value_contents_writeable. Introduce new temporary.
2871
2872 2010-05-27 Tom Tromey <tromey@redhat.com>
2873
2874 * findcmd.c (parse_find_args): Use value_contents, not
2875 value_contents_raw.
2876
2877 2010-05-27 Tom Tromey <tromey@redhat.com>
2878
2879 * alpha-tdep.c (alpha_push_dummy_call): Make alpha_arg.contents
2880 const. Use value_contents, not value_contents_writeable.
2881
2882 2010-05-27 Joel Brobecker <brobecker@adacore.com>
2883
2884 * ada-lang.c (ensure_lval): Replace call to value_contents_raw
2885 by call to value_contents.
2886
2887 2010-05-27 Ozkan Sezer <sezeroz@gmail.com>
2888
2889 * MAINTAINERS: Add myself for write after approval privileges.
2890
2891 2010-05-26 Doug Evans <dje@google.com>
2892
2893 Allow python to find its files if moved from original location.
2894 * acinclude.m4 (GDB_AC_DEFINE_RELOCATABLE): New function.
2895 (GDB_AC_WITH_DIR): Call it.
2896 * configure.ac: Define WITH_PYTHON_PATH if we can find the
2897 python installation directory.
2898 * config.in: Regenerate.
2899 * configure: Regenerate.
2900 * defs.h (python_libdir): Declare.
2901 * main.c (python_libdir): Define.
2902 (captured_main): Initialize python_libdir.
2903 * python/python.c (_initialize_python): #ifdef WITH_PYTHON_PATH,
2904 call Py_SetProgramName to make sure python can find its libraries
2905 and modules.
2906
2907 * configure.ac: Try to use python's distutils to fetch compilation
2908 parameters.
2909 * configure: Regenerate.
2910 * python/python-config.py: New file.
2911
2912 2010-05-26 Ozkan Sezer <sezeroz@gmail.com>
2913
2914 * ser-tcp.c (net_open): Check error return from socket() call by its
2915 equality to -1 not by it being negative.
2916 (net_close): Likewise.
2917
2918 2010-05-26 Pedro Alves <pedro@codesourcery.com>
2919
2920 * NEWS: Mention the `qRelocInsn' feature.
2921 * gdbarch.sh (relocate_instruction): New.
2922 * amd64-tdep.c (rip_relative_offset): New.
2923 (append_insns): New.
2924 (amd64_relocate_instruction): New.
2925 (amd64_init_abi): Install it.
2926 * i386-tdep.c (append_insns): New.
2927 (i386_relocate_instruction): New.
2928 (i386_gdbarch_init): Install it.
2929 * remote.c (remote_get_noisy_reply): Handle qRelocInsn requests.
2930 * gdbarch.h, gdbarch.c: Regenerate.
2931
2932 2010-05-26 Tom Tromey <tromey@redhat.com>
2933
2934 * dwarf2loc.h (struct dwarf2_locexpr_baton) <data>: Now const.
2935 (struct dwarf2_loclist_baton) <data>: Likewise.
2936 * dwarf2loc.c (find_location_expression): Constify return type.
2937 (dwarf2_evaluate_loc_desc): Make 'data' argument const.
2938 (dwarf2_loc_desc_needs_frame): Likewise.
2939 (loclist_read_variable): Constify.
2940 (loclist_describe_location): Likewise.
2941 (loclist_tracepoint_var_ref): Likewise.
2942
2943 2010-05-25 Tom Tromey <tromey@redhat.com>
2944
2945 * dwarf2loc.c (dwarf_expr_frame_base): Constify.
2946 (dwarf_expr_frame_base_1): Likewise.
2947 (read_pieced_value): Update.
2948 (needs_frame_frame_base): Constify.
2949 (dwarf2_tracepoint_var_loc): Likewise.
2950 (dwarf2_tracepoint_var_access): Likewise.
2951 (locexpr_describe_location_piece): Likewise.
2952 (locexpr_describe_location_1): Likewise.
2953 * dwarf2expr.h (struct dwarf_expr_context) <get_frame_base>:
2954 Constify.
2955 (data): Now const.
2956 (struct dwarf_expr_piece) <v.literal.data>: Likewise.
2957 (dwarf_expr_eval, read_uleb128, read_sleb128)
2958 (dwarf2_read_address): Update.
2959 * dwarf2expr.c (dwarf_expr_eval): Constify.
2960 (read_uleb128): Likewise.
2961 (read_sleb128): Likewise.
2962 (dwarf2_read_address): Likewise.
2963 (require_composition): Likewise.
2964 (execute_stack_op): Likewise.
2965 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <loc.exp>: Now a
2966 "const gdb_byte *".
2967 * dwarf2-frame.c (struct dwarf2_frame_state_reg_info) <cfa_exp>:
2968 Now const.
2969 (no_get_frame_base): Constify.
2970 (execute_stack_op): Likewise.
2971 (execute_cfa_program): Likewise.
2972 (read_encoded_value): Likewise.
2973
2974 2010-05-25 Doug Evans <dje@google.com>
2975
2976 * ser-pipe.c (pipe_open): Ignore SIGINTs in child.
2977
2978 * event-loop.h (GDB_READABLE, GDB_WRITABLE, GDB_EXCEPTION): Move to ...
2979 * event-loop.c: ... here.
2980 * tui/tui-io.c (tui_readline_output): Rename parameter `code' to
2981 `error' for clarity.
2982 (tui_getc): Pass correct value for `error' parameter to
2983 tui_readline_output.
2984
2985 Add python gdb.GdbError and gdb.string_to_argv.
2986 * NEWS: Document them.
2987 * python/py-cmd.c (cmdpy_function): Don't print a traceback if
2988 the exception is gdb.GdbError. Print a second traceback if there's
2989 an error computing the error message.
2990 (gdbpy_string_to_argv): New function.
2991 * python/py-utils.c (gdbpy_obj_to_string): New function.
2992 (gdbpy_exception_to_string): New function.
2993 * python/python-internal.h (gdbpy_string_to_argv): Declare.
2994 (gdbpy_obj_to_string, gdbpy_exception_to_string): Declare.
2995 (gdbpy_gdberror_exc): Declare.
2996 * python/python.c (gdbpy_gdberror_exc): New global.
2997 (_initialize_python): Initialize gdbpy_gdberror_exc and create
2998 gdb.GdbError.
2999 (GdbMethods): Add string_to_argv.
3000
3001 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
3002
3003 * windows-nat.c (display_selector): Call GetLastError to give better
3004 failure explanation.
3005
3006 2010-05-24 Pedro Alves <pedro@codesourcery.com>
3007
3008 * config.in: Regenerate.
3009
3010 2010-05-23 Jan Kratochvil <jan.kratochvil@redhat.com>
3011
3012 Code cleanup.
3013 * target.c (push_target): Return only void. Remove the return value
3014 comment.
3015 * target.h (push_target): Return only void.
3016
3017 2010-05-23 Pedro Alves <pedro@codesourcery.com>
3018
3019 Update gnulib from latest git.
3020 (250b80067c1e1d8faa0c42fb572f721975b929c5)
3021
3022 * gnulib/memcmp.c: Removed.
3023 * gnulib/memchr.valgrind: New.
3024 * gnulib/stddef.in.h: New.
3025 * gnulib/Makefile.am: Updated.
3026 * gnulib/memchr.c: Updated.
3027 * gnulib/memmem.c: Updated.
3028 * gnulib/stdint.in.h: Updated.
3029 * gnulib/str-two-way.h: Updated.
3030 * gnulib/string.in.h: Updated.
3031 * gnulib/wchar.in.h: Updated.
3032
3033 * gnulib/extra/link-warning.h: Removed.
3034 * gnulib/extra/c++defs.h: New.
3035 * gnulib/extra/warn-on-use.h: New.
3036 * gnulib/extra/arg-nonnull.h: Updated.
3037
3038 * gnulib/m4/extensions.m4: Updated.
3039 * gnulib/m4/gnulib-cache.m4: Updated.
3040 * gnulib/m4/gnulib-common.m4: Updated.
3041 * gnulib/m4/gnulib-comp.m4: Updated.
3042 * gnulib/m4/gnulib-tool.m4: Updated.
3043 * gnulib/m4/include_next.m4: Updated.
3044 * gnulib/m4/longlong.m4: Updated.
3045 * gnulib/m4/memchr.m4: Updated.
3046 * gnulib/m4/memmem.m4: Updated.
3047 * gnulib/m4/stdint.m4: Updated.
3048 * gnulib/m4/string_h.m4: Updated.
3049 * gnulib/m4/memcmp.m4: Removed.
3050 * gnulib/m4/onceonly_2_57.m4: Removed.
3051 * gnulib/m4/00gnulib.m4: New.
3052 * gnulib/m4/mmap-anon.m4: New.
3053 * gnulib/m4/multiarch.m4: New.
3054 * gnulib/m4/onceonly.m4: New.
3055 * gnulib/m4/stddef_h.m4: New.
3056 * gnulib/m4/warn-on-use.m4: New.
3057 * gnulib/m4/wchar.m4: Removed.
3058 * gnulib/m4/wchar_h.m4: New.
3059 * gnulib/m4/wchar_t.m4: New.
3060 * gnulib/m4/wint_t.m4: New.
3061
3062 * aclocal.m4: Regenerate.
3063 * config.in: Likewise.
3064 * configure: Likewise.
3065 * gnulib/Makefile.in: Likewise.
3066
3067 2010-05-21 Tom Tromey <tromey@redhat.com>
3068
3069 * dwarf2loc.c (extract_bits_primitive): New function.
3070 (extract_bits): Likewise.
3071 (insert_bits): Likewise.
3072 (copy_bitwise): Likewise.
3073 (read_pieced_value): Do all operations in bits.
3074 (write_pieced_value): Likewise.
3075 * dwarf2expr.h (struct dwarf_expr_piece) <offset>: New field.
3076 * dwarf2expr.c (add_piece): New arguments bit_piece, offset.
3077 Always use xrealloc to resize piece array.
3078 (execute_stack_op) <DW_OP_reg0>: Handle DW_OP_bit_piece.
3079 <DW_OP_piece>: Update.
3080 <DW_OP_bit_piece>: New case.
3081
3082 2010-05-21 Tom Tromey <tromey@redhat.com>
3083
3084 * dwarf2loc.c (read_pieced_value): Exit loop when result is full.
3085 <DWARF_VALUE_OPTIMIZED_OUT>: New case.
3086 * dwarf2expr.h (enum dwarf_value_location)
3087 <DWARF_VALUE_OPTIMIZED_OUT>: New constant.
3088 * dwarf2expr.c (dwarf_expr_stack_empty_p): New function.
3089 (add_piece): Handle empty piece.
3090 (execute_stack_op) <DW_OP_piece>: Handle
3091 DWARF_VALUE_OPTIMIZED_OUT.
3092
3093 2010-05-21 Tom Tromey <tromey@redhat.com>
3094
3095 * eval.c (evaluate_subexp_standard) <BINOP_SUBSCRIPT>: Call
3096 evaluate_subexp, not evaluate_subexp_with_coercion.
3097
3098 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
3099
3100 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
3101 attribute.
3102
3103 2010-05-21 Tom Tromey <tromey@redhat.com>
3104
3105 * dwarf2loc.c (read_pieced_value): Work properly when 'v' has an
3106 offset.
3107 (write_pieced_value): Likewise.
3108
3109 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
3110
3111 * dwarf2read.c (process_die): Also allow DW_TAG_const_type
3112 and DW_TAG_volatile_type.
3113 (new_symbol): Likewise.
3114
3115 2010-05-20 Pierre Muller <muller@ics.u-strasbg.fr>
3116
3117 * p-valprint.c (pascal_val_print): Call get_array_bounds
3118 to obtain the number of elements in an array.
3119
3120 2010-05-19 Doug Evans <dje@google.com>
3121
3122 * python.c (gdbpy_print_stack): Ensure output ends with a newline.
3123
3124 * python.c (source_python_script): Add comment.
3125 (source_python_script_for_objfile): Remove unnecessary call to
3126 gdbpy_print_stack.
3127
3128 2010-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3129 Sergio Durigan Junior <sergiodj@redhat.com>
3130
3131 Code cleanup.
3132 * parse.c (exp_iterate): Use operator_length wrapper function.
3133
3134 2010-05-18 Michael Snyder <msnyder@vmware.com>
3135
3136 * ada-lang.c: White space.
3137 * ada-typeprint.c: White space.
3138 * ada-valprint.c: White space.
3139 * addrmap.c: White space.
3140 * auxv.c: White space.
3141 * ax-gdb.c: White space.
3142
3143 2010-05-18 Hui Zhu <teawater@gmail.com>
3144
3145 * linux-fork.c (inferior_call_waitpid_cleanup): Add check
3146 for oldfp.
3147 (inferior_call_waitpid): Move make_cleanup out of check.
3148 Check the return of waitpid.
3149 (delete_checkpoint_command): Add pptid to save fi->parent_ptid.
3150
3151 2010-05-17 Michael Snyder <msnyder@vmware.com>
3152
3153 * tui/tui.c: White space.
3154 * tui/tui-data.c: White space.
3155 * tui/tui-disasm.c: White space.
3156 * tui/tui-file.c: White space.
3157 * tui/tui-interp.c: White space.
3158 * tui/tui-main.c: White space.
3159 * tui/tui-out.c: White space.
3160 * tui/tui-regs.c: White space.
3161 * tui/tui-source.c: White space.
3162 * tui/tui-stack.c: White space.
3163 * tui/tui-win.c: White space.
3164 * tui/tui-winsource.c: White space.
3165
3166 * procfs.c: White space.
3167
3168 * python/py-auto-load.c: White space.
3169 * python/py-block.c: White space.
3170 * python/py-breakpoint.c: White space.
3171 * python/py-cmd.c: White space.
3172 * python/py-function.c: White space.
3173 * python/py-lazy-string.c: White space.
3174 * python/py-objfile.c: White space.
3175 * python/py-param.c: White space.
3176 * python/py-prettyprint.c: White space.
3177 * python/py-progspace.c: White space.
3178 * python/py-symtab.c: White space.
3179 * python/python.c: White space.
3180 * python/py-type.c: White space.
3181 * python/py-utils.c: White space.
3182 * python/py-value.c: White space.
3183
3184 * mi/mi-cmd-break.c: White space.
3185 * mi/mi-cmd-env.c: White space.
3186 * mi/mi-cmds.c: White space.
3187 * mi/mi-cmd-stack.c: White space.
3188 * mi/mi-cmd-var.c: White space.
3189 * mi/mi-console.c: White space.
3190 * mi/mi-getopt.c: White space.
3191 * mi/mi-interp.c: White space.
3192 * mi/mi-main.c: White space.
3193 * mi/mi-out.c: White space.
3194 * mi/mi-parse.c: White space.
3195
3196 * cli/cli-cmds.c: White space.
3197 * cli/cli-decode.c: White space.
3198 * cli/cli-dump.c: White space.
3199 * cli/cli-interp.c: White space.
3200 * cli/cli-logging.c: White space.
3201 * cli/cli-script.c: White space.
3202 * cli/cli-setshow.c: White space.
3203
3204 * valarith.c: White space.
3205 * valops.c: White space.
3206 * valprint.c: White space.
3207 * value.c: White space.
3208 * varobj.c: White space.
3209 * xcoffread.c: White space.
3210 * xml-support.c: White space.
3211 * xml-tdesc.c: White space.
3212
3213 2010-05-17 Andreas Schwab <schwab@redhat.com>
3214
3215 PR gdb/11092
3216 * c-lang.c (c_printstr): Compute real length of NUL terminated
3217 string at first.
3218
3219 2010-05-17 Joel Brobecker <brobecker@adacore.com>
3220
3221 * parse.c (parse_exp_in_context): When block is not NULL, use
3222 its associated language to parse the expression instead of
3223 the current_language.
3224
3225 2010-05-17 Joel Brobecker <brobecker@adacore.com>
3226
3227 * jv-lang.c (java_lookup_class): Remove commented out code.
3228 (type_from_class): Likewise.
3229 (java_op_print_tab): Remove commented-out elements.
3230
3231 2010-05-17 Joel Brobecker <brobecker@adacore.com>
3232
3233 * ada-lang.c (to_fixed_range_type): The the raw index type as
3234 argument instead of the raw type name. Remove orig_type parameter.
3235 Update calls throughout.
3236 (ada_fixup_array_indexes_type): New function.
3237 (ada_array_bound_from_type): Add call to ada_fixup_array_indexes_type.
3238 * ada-lang.h (ada_fixup_array_indexes_type): Add declaration.
3239 * ada-typeprint.c (print_range_type): Renames print_range_type_named.
3240 Remove name parameter.
3241 (print_array_type): Add call to ada_fixup_array_indexes_type.
3242 Update calls to print_range_type.
3243 (ada_print_type): Update calls to print_range_type.
3244
3245 2010-05-17 Pierre Muller <muller@ics.u-strasbg.fr>
3246
3247 * dwarf2read.c (read_set_type): Set type length if
3248 DW_AT_byte_size attribute is present.
3249
3250 2010-05-17 Pierre Muller <muller@ics.u-strasbg.fr>
3251
3252 * p-valprint.c (pascal_val_print): Handle set type if range limits
3253 are undefined but size is known.
3254
3255 2010-05-17 Pedro Alves <pedro@codesourcery.com>
3256
3257 * procfs.c: Reformat.
3258
3259 2010-05-16 Michael Snyder <msnyder@vmware.com>
3260
3261 * target.c: White space.
3262 * target-descriptions.c: White space.
3263 * target-memory.c: White space.
3264 * thread.c: White space.
3265 * top.c: White space.
3266 * tracepoint.c: White space.
3267 * trad-frame.c: White space.
3268 * tramp-frame.c: White space.
3269 * ui-file.c: White space.
3270 * ui-out.c: White space.
3271 * user-regs.c: White space.
3272 * utils.c: White space.
3273
3274 * scm-exp.c: White space.
3275 * scm-lang.c: White space.
3276 * scm-valprint.c: White space.
3277 * sentinel-frame.c: White space.
3278 * ser-base.c: White space.
3279 * ser-go32.c: White space.
3280 * serial.c: White space.
3281 * ser-mingw.c: White space.
3282 * ser-pipe.c: White space.
3283 * ser-tcp.c: White space.
3284 * ser-unix.c: White space.
3285 * solib.c: White space.
3286 * solib-darwin.c: White space.
3287 * solib-frv.c: White space.
3288 * solib-irix.c: White space.
3289 * solib-osf.c: White space.
3290 * solib-pa64.c: White space.
3291 * solib-som.c: White space.
3292 * solib-spu.c: White space.
3293 * solib-svr4.c: White space.
3294 * solib-target.c: White space.
3295 * source.c: White space.
3296 * stabsread.c: White space.
3297 * stack.c: White space.
3298 * std-regs.c: White space.
3299 * symfile.c: White space.
3300 * symmisc.c: White space.
3301 * symtab.c: White space.
3302
3303 2010-05-16 Michael Snyder <msnyder@vmware.com>
3304
3305 * source.c (_initialize_source): Add "rev" as an abbreviation
3306 for the "reverse-search" command.
3307
3308 2010-05-16 Michael Snyder <msnyder@vmware.com>
3309
3310 * record.c: White space.
3311 * regcache.c: White space.
3312 * reggroups.c: White space.
3313 * remote-fileio.c: White space.
3314 * remote-m32r-sdi.c: White space.
3315 * remote-mips.c: White space.
3316 * remote-sim.c: White space.
3317 * remote.c: White space.
3318 (process_g_packet): Remove orphan braces.
3319
3320 2010-05-15 Michael Snyder <msnyder@vmware.com>
3321
3322 * parse.c: White space.
3323 * p-lang.c: White space.
3324 * posix-hdep.c: White space.
3325 * printcmd.c: White space.
3326 * progspace.c: White space.
3327 * prologue-value.c: White space.
3328 * psymtab.c: White space.
3329 * p-typeprint.c: White space.
3330 * p-valprint.c: White space.
3331
3332 * objc-lang.c: White space.
3333 * objfiles.c: White space.
3334 * observer.c: White space.
3335 * osabi.c: White space.
3336 * osdata.c: White space.
3337
3338 * m2-lang.c: White space.
3339 * m2-valprint.c: White space.
3340 * macrocmd.c: White space.
3341 * macroexp.c: White space.
3342 * macroscope.c: White space.
3343 * macrotab.c: White space.
3344 * main.c: White space.
3345 * maint.c: White space.
3346 * mdebugread.c: White space.
3347 * memattr.c: White space.
3348 * minsyms.c: White space.
3349 * monitor.c: White space.
3350
3351 2010-05-14 Michael Snyder <msnyder@vmware.com>
3352
3353 * jv-lang.c: White space.
3354 * jv-typeprint.c: White space.
3355 * jv-valprint.c: White space.
3356 * language.c: White space.
3357 * libunwind-frame.c: White space.
3358 * linespec.c: White space.
3359 * linux-nat.c: White space.
3360 * linux-record.c: White space.
3361 * linux-thread-db.c: White space.
3362
3363 * infcall.c: White space.
3364 * inf-child.c: White space.
3365 * infcmd.c: White space.
3366 * inferior.c: White space.
3367 * inf-loop.c: White space.
3368 * inflow.c: White space.
3369 * inline-frame.c: White space.
3370 * interps.c: White space.
3371
3372 * gcore.c: White space.
3373 * gdb.c: White space.
3374 * gdbtypes.c: White space.
3375 * gnu-nat.c: White space.
3376 * gnu-v2-abi.c: White space.
3377 * gnu-v3-abi.c: White space.
3378
3379 * findcmd.c: White space.
3380 * findvar.c: White space.
3381 * fork-child.c: White space.
3382 * frame-base.c: White space.
3383 * frame.c: White space.
3384 * frame-unwind.c: White space.
3385 * f-valprint.c: White space.
3386
3387 * elfread.c: White space.
3388 * environ.c: White space.
3389 * eval.c: White space.
3390 * event-loop.c: White space.
3391 * event-top.c: White space.
3392 * exceptions.c: White space.
3393 * exec.c: White space.
3394 * expprint.c: White space.
3395
3396 * dbxread.c: White space.
3397 * dcache.c: White space.
3398 * disasm.c: White space.
3399 * doublest.c: White space.
3400 * dsrec.c: White space.
3401 * dummy-frame.c: White space.
3402 * dwarf2expr.c: White space.
3403 * dwarf2-frame.c: White space.
3404 * dwarf2loc.c: White space.
3405 * dwarf2read.c: White space.
3406
3407 2010-05-14 Phil Muldoon <pmuldoon@redhat.com>
3408
3409 PR python/11482
3410
3411 * python/py-value.c (valpy_hash): New function.
3412 (value_object_type): Register valpy_hash.
3413
3414 2010-05-14 Hui Zhu <teawater@gmail.com>
3415 Michael Snyder <msnyder@vmware.com>
3416
3417 * linux-fork.c (gdbthread.h): New include.
3418 (fork_info): Add parent_ptid.
3419 (inferior_call_waitpid_cleanup, inferior_call_waitpid): New
3420 functions.
3421 (delete_checkpoint_command): Call inferior_call_waitpid.
3422 (checkpoint_command): Set parent_ptid.
3423
3424 2010-05-13 Michael Snyder <msnyder@vmware.com>
3425
3426 * dictionary.c: Re-indent to GNU coding standard.
3427
3428 * charset.c: White space.
3429 * c-lang.c: White space.
3430 * cli-out.c: White space.
3431 * coffread.c: White space.
3432 * complaints.c: White space.
3433 * completer.c: White space.
3434 * corefile.c: White space.
3435 * corelow.c: White space.
3436 * cp-abi.c: White space.
3437 * cp-namespace.c: White space.
3438 * cp-support.c: White space.
3439 * cp-valprint.c: White space.
3440 * c-typeprint.c: White space.
3441 * c-valprint.c: White space.
3442 * blockframe.c: White space.
3443 * breakpoint.c: White space.
3444 * buildsym.c: White space.
3445 * blockframe.c: White space.
3446 * bcache.c: White space.
3447 * gdbarch.sh: White space, add blank lines.
3448 * arch-utils.c: Ditto.
3449 * gdbarch.c: Regenerate.
3450 * frame.c: White space, add blank lines.
3451 * stack.c: White space, add blank lines.
3452 (initialize_stack): Remove long-dead code.
3453
3454 2010-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3455
3456 Code cleanup.
3457 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Change the parameter to type.
3458 (locexpr_read_variable, loclist_read_variable): Update the callers.
3459
3460 2010-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3461
3462 Code cleanup.
3463 * dwarf2read.c (die_type, die_descriptive_type): Remove variable type.
3464 Remove check of NULL returned by tag_type_to_type.
3465 (die_containing_type): Remove variable type. Remove type_die variable
3466 initialization. Remove check of NULL returned by tag_type_to_type.
3467
3468 2010-05-11 Pierre Muller <muller@ics.u-strasbg.fr>
3469
3470 PR exp/11530.
3471 * gdbtypes.c (lookup_struct_elt_type): Also lookup
3472 names of unnamed structures or unions.
3473
3474 2010-05-11 Pierre Muller <muller@ics.u-strasbg.fr>
3475
3476 * procfs.c (proc_watchpoint_address): New function.
3477 (procfs_stopped_by_watchpoint): Remove useless check after
3478 find_procinfo_or_die call.
3479 (procfs_stopped_data_address): New function.
3480 (procfs_use_watchpoints): Register new watchpoint related function.
3481
3482 2010-05-11 Tom Tromey <tromey@redhat.com>
3483
3484 * eval.c (evaluate_subexp_standard): Revert inadvertent change.
3485
3486 2010-05-10 Michael Snyder <msnyder@vmware.com>
3487
3488 * utils.c: White space cleanup.
3489
3490 2010-05-10 Tom Tromey <tromey@redhat.com>
3491
3492 * eval.c (ptrmath_type_p): Add 'lang' argument.
3493 (evaluate_subexp_standard): Update.
3494 (evaluate_subexp_with_coercion): Update.
3495 * language.h (CAST_IS_CONVERSION): Add 'LANG' argument.
3496
3497 2010-05-10 Michael Snyder <msnyder@vmware.com>
3498
3499 * utils.c (do_fclose_cleanup) Restore local variable.
3500
3501 2010-05-09 Doug Evans <dje@google.com>
3502
3503 * record.c (init_record_core_ops): Rename record_core to record-core.
3504
3505 2010-05-08 Joel Brobecker <brobecker@adacore.com>
3506
3507 Implement task switching on pa-hpux.
3508 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): New function.
3509 (inf_ttrace_target): Set t->to_get_ada_task_ptid.
3510
3511 2010-05-08 Pierre Muller <muller@ics.u-strasbg.fr>
3512
3513 * valops.c (find_overload_match): Add missing i18n markup.
3514
3515 2010-05-08 Pierre Muller <muller@ics.u-strasbg.fr>
3516
3517 * p-exp.y (exp : SIZEOF '(' exp ')'): New rule.
3518
3519 2010-05-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3520
3521 * dwarf2read.c (typename_concat): Use (char *) NULL terminated stdarg
3522 list for the obconcat call.
3523 * mdebugread.c (parse_symbol): Likewise.
3524 * stabsread.c (define_symbol, read_member_functions, read_cpp_abbrev):
3525 Likewise.
3526 * symfile.c (obconcat): Replace the s1, s2 and s3 parameters by `...'.
3527 New variable ap. Remove variables len and val.
3528 * symfile.h (obconcat): Likewise for the prototype.
3529
3530 2010-05-07 Michael Snyder <msnyder@vmware.com>
3531
3532 * python/python.c (execute_gdb_command): Remove unused variables.
3533 * python/py-block.c (gdbpy_block_for_pc): Remove unused variable.
3534 * python/py-breakpoint.c (gdbpy_breakpoint_created):
3535 Remove unused variable.
3536 * python/py-cmd.c (cmdpy_function): Remove unused variable.
3537 (cmdpy_completer): Remove unused variable.
3538 * python/py-frame.c (frapy_find_sal): Remove unused variable.
3539 * python/py-function.c (fnpy_call): Remove unused variable.
3540 * python/py-objfile.c (objfile_to_objfile_object):
3541 Remove unused variable.
3542 * python/py-param.c (parmpy_init): Remove unused variable.
3543 * python/py-prettyprint.c (apply_varobj_pretty_printer):
3544 Remove unused variable.
3545 (gdbpy_default_visualizer): Remove unused variable.
3546 * python/py-progspace.c (pspace_to_pspace_object):
3547 Remove unused variable.
3548 * python/py-symtab.c (symtab_and_line_to_sal_object):
3549 Remove unused variable.
3550 * python/py-type.c (typy_template_argument):
3551 Remove unused variable.
3552 * python/py-value.c (valpy_string): Remove unused variable.
3553 (convert_value_from_python): Remove unused variables.
3554
3555 2010-05-07 Michael Snyder <msnyder@vmware.com>
3556
3557 * valops.c (value_cast_pointers): Restore unused variable 'type1',
3558 and use it to compute variable 't1'.
3559
3560 2010-05-07 Joel Brobecker <brobecker@adacore.com>
3561
3562 * ada-lang.c (assign_aggregate): Remove unused variable.
3563
3564 2010-05-07 Sami Wagiaalla <swagiaal@redhat.com>
3565
3566 PR C++/7943:
3567 * valops.c (find_overload_match): Handle fsym == NULL case.
3568 Add int no_adl argument.
3569 (find_oload_champ_namespace_loop): Call make_symbol_overload_list_adl
3570 when appropriate.
3571 Add int no_adl argument.
3572 (find_oload_champ_namespace): Add int no_adl argument.
3573 * parse.c (operator_length_standard): Return length for OP_ADL_FUNC
3574 expression.
3575 * expprint.c (op_name_standard): Added string for OP_ADL_FUNC case.
3576 * eval.c (evaluate_subexp_standard): Added OP_ADL_FUNC case.
3577 Evaluate arguments and use them to perform ADL lookup.
3578 Pass no_adl argument to find_overload_match.
3579 Disable adl lookup when evaluating a fully qualified OP_FUNCALL.
3580 * cp-support.h: Added prototype for
3581 make_symbol_overload_list_namespace.
3582 * cp-support.c (make_symbol_overload_list_namespace): New function.
3583 (make_symbol_overload_list_adl_namespace): New function.
3584 (make_symbol_overload_list_adl): New function.
3585 (make_symbol_overload_list_using): Moved code to add function to
3586 overload set to make_symbol_overload_list_namespace.
3587 * c-exp.y: create UNKNOWN_CPP_NAME token.
3588 Add parse rule for ADL functions.
3589 (classify_name): Recognize an UNKNOWN_CPP_NAME.
3590
3591 2010-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3592
3593 * fbsd-nat.c (fbsd_make_corefile_notes): Add cast to NULL used as
3594 sentinel.
3595
3596 2010-05-07 Joel Brobecker <brobecker@adacore.com>
3597
3598 Implement task switching on solaris targets.
3599 * sol-thread.c (thread_db_find_thread_from_tid)
3600 (sol_get_ada_task_ptid): New functions.
3601 (init_sol_thread_ops): Set sol_thread_ops.to_get_ada_task_ptid.
3602
3603 2010-05-07 Pedro Alves <pedro@codesourcery.com>
3604
3605 * remote.c (remote_query_supported_append): Use reconcat.
3606 (remote_query_supported): Install a cleanup. Use reconcat.
3607
3608 2010-05-07 Pedro Alves <pedro@codesourcery.com>
3609
3610 * gdbarch.sh (qsupported): Delete.
3611 * gdbarch.h, gdbarch.c: Regenerate.
3612 * remote.c (remote_query_supported): Remove use of
3613 gdbarch_qsupported.
3614
3615 2010-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
3616
3617 * xml-syscall.c (syscall_start_syscalls_info): Remove unused
3618 function.
3619
3620 2010-05-06 Michael Snyder <msnyder@vmware.com>
3621
3622 * xml-support.c (xinclude_start_include): Delete unused variable.
3623 (xml_process_xincludes): Delete unused variable.
3624 * xml-syscall.c (syscall_parse_xml): Delete unused variable.
3625 * target-descriptions.c (tdesc_gdb_type): Delete unused variable.
3626 (tdesc_find_arch_register): Delete unused variable.
3627 (tdesc_use_registers): Delete unused variable.
3628 * xml-tdesc.c (tdesc_start_target): Delete unused variable.
3629 * inferior.c (print_inferior): Delete unused variable.
3630 * record.c (record_open_1): Delete unused variable.
3631 (record_restore): Delete unused variable.
3632 (cmd_record_save): Delete unused variable.
3633 * gcore.c (derive_heap_segment): Delete unused variable.
3634 (objfile_find_memory_regions): Use unused variable.
3635 * jit.c (jit_inferior_init): Delete unused variable.
3636 * progspace.c (clone_program_space): Delete unused variable.
3637 (pspace_empty_p): Delete unused variable.
3638
3639 * frame-unwind.c (frame_unwind_find_by_frame):
3640 Delete unused variable.
3641 * gnu-v2-abi.c (gnuv2_value_rtti_type): Delete unused variable.
3642 * cp-support.c (mangled_name_to_comp): Delete unused variable.
3643 (method_name_from_physname): Delete unused variable.
3644 (cp_func_name): Delete unused variable.
3645 (cp_validate_operator): Delete unused variable.
3646 * cp-namespace.c (cp_scan_for_anonymous_namespaces):
3647 Delete unused variable.
3648 * trad-frame.c (trad_frame_get_prev_register):
3649 Delete unused variable.
3650 * tramp-frame.c (tramp_frame_cache): Delete unused variable.
3651
3652 * serial.c (serial_for_fd): Delete unused variable.
3653 * mdebugread.c (psymtab_to_symtab_1): Delete unused variable.
3654 * top.c (execute_command): Delete unused variable.
3655 (init_main): Delete unused variable.
3656 * utils.c (do_fclose_cleanup): Delete unused variable.
3657 (do_all_inferior_continuations): Delete unused variable.
3658 (initialize_utils): Delete unused variable.
3659 (internal_problem_mode): Delete unused global.
3660 * frame.c (get_prev_frame): Delete unused global.
3661 (get_frame_locals_address): Delete unused global.
3662 (get_frame_args_address): Delete unused global.
3663
3664 * p-typeprint.c (pascal_type_print_base): Delete unused variable.
3665 (pascal_type_print_varspec_prefix): Delete unused variable.
3666 * f-typeprint.c (f_type_print_base): Delete unused variable.
3667 (f_type_print_varspec_suffix): Delete unused variable.
3668 * m2-typeprint.c (m2_print_type): Delete unused variable.
3669 (m2_long_set): Delete unused variable.
3670 * ada-valprint.c (ada_val_print_1): Delete unused variable.
3671 * d-valprint.c (dynamic_array_type): Delete unused variable.
3672 * f-valprint.c (f77_get_dynamic_length_of_aggregate):
3673 Delete unused variable.
3674 (f77_create_arrayprint_offset_tbl): Delete unused variable.
3675 * m2-valprint.c (m2_val_print): Delete unused variable.
3676
3677 * ui-out.c (ui_out_field_int): Delete unused variable.
3678 (ui_out_field_fmt_int): Delete unused variable.
3679 * varobj.c (varobj_list_children): Delete unused variable.
3680 (varobj_set_value): Delete unused variable.
3681 (install_new_value_visualizer): Delete unused variable.
3682 (varobj_set_visualizer): Delete unused variable.
3683 (varobj_update): Delete unused variable.
3684 (varobj_editable_p): Delete unused variable.
3685 (c_value_of_root): Delete unused variable.
3686 (cplus_describe_child): Delete unused variable.
3687
3688 * ada-lang.c (add_defn_to_vec): Delete unused variable.
3689 (decode_constrained_packed_array_type): Delete unused variable.
3690 (add_defn_to_vec): Delete unused variable.
3691 (symbol_completion_match): Delete unused variable.
3692 (value_tag_from_contents_and_address): Delete unused variable.
3693 (ada_evaluate_subexp): Delete unused variable.
3694 * c-lang.c (classify_type): Delete unused variable.
3695 * f-lang.c (f_printstr): Delete unused variable.
3696 * objc-lang.c (objc_printstr): Delete unused variable.
3697 * ada-tasks.c (get_known_tasks_addr): Delete unused variable.
3698 * jv-lang.c (type_from_class): ifdef unused variable.
3699 (java_class_name_from_physname): Delete unused variable.
3700 * m2-lang.c (m2_printstr): Delete unused variable.
3701
3702 * objfiles.c (objfile_relocate): Delete unused variable.
3703 * maint.c (_initialize_maint_cmds): Delete unused variable.
3704 * demangle.c (_initialize_demangler): Delete unused variable.
3705 * corefile.c (reopen_exec_file): Delete unused variable.
3706 * dwarf2expr.c (dwarf2_read_address): Delete unused variable.
3707 * dwarf2-frame.c (decode_frame_entry): Delete unused variable.
3708
3709 * osabi.c (_initialize_gdb_osabi): Delete unused variable.
3710 * memattr.c (mem_delete): Delete unused variable.
3711 (invalidate_target_mem_regions): Delete unused variable.
3712 * mem-break.c (default_memory_insert_breakpoint):
3713 Delete unused variable.
3714 * target.c (target_get_osdata): Delete unused variable.
3715 * parse.c (length_of_subexp): Delete unused variable.
3716 (prefixify_subexp): Delete unused variable.
3717 (exp_iterate): Delete unused variable.
3718 * reverse.c (delete_bookmark_command): Delete unused variable.
3719
3720 * macrocmd.c (_initialize_macrocmd): Delete unused variable.
3721 * macroexp.c (gather_arguments): Delete unused variable.
3722 (substitute_args): Delete unused variable.
3723 * completer.c (gdb_completer_loc_break_characters): Unused, delete.
3724 * gdbarch.sh (gdbarch_printable_names): Delete unused variable.
3725 (_initialize_gdbarch): Delete unused variable.
3726 * gdbarch.c, gdbarch.h: Regenerate.
3727 * arch-utils.c (initialize_current_architecture):
3728 Delete unused variable.
3729 (_initialize_gdbarch_utils): Delete unused variable.
3730 * gdbtypes.c (make_cv_type): Delete unused variable.
3731 (make_type_with_address_space): Delete unused variable.
3732
3733 * linespec.c (decode_compound): Delete unused variable.
3734 * dictionary.c (iterator_next_hashed): Delete unused variable.
3735 * infcall.c (call_function_by_hand): Delete unused variable.
3736 * infcmd.c (step_1): Delete unused variable.
3737 (registers_info): Delete unused variable.
3738 (attach_command): Delete unused variable.
3739 * infrun.c (follow_exec): Delete unused variable.
3740 (handle_step_into_function_backwards): Delete unused variable.
3741 (_initialize_infrun): Delete unused variable.
3742 * stack.c (parse_frame_specification_1): Delete unused variable.
3743 (frame_info): Delete unused variable.
3744 (backtrace_command_1): Delete unused variable.
3745 (catch_info): Delete unused variable.
3746
3747 * eval.c (evaluate_subexp_standard): Delete unused variable.
3748 * valops.c (value_cast_pointers): Delete unused variable.
3749 (value_dynamic_cast): Delete unused variable.
3750 (value_array): Delete unused variable.
3751 (find_overload_match): Delete unused variable.
3752 * valarith.c (value_subscript): Delete unused variable.
3753 (value_binop): Delete unused variable.
3754 * valprint.c (_initialize_valprint): Delete unused variable.
3755 * printcmd.c (print_command_1): Delete unused variable.
3756 (address_info): Delete unused variable.
3757 (printf_command): Delete unused variable.
3758
3759 * auxv.c (target_auxv_search): Delete unused variable.
3760 * blockframe.c (get_frame_block): Delete unused variable.
3761 * regcache.c (regcache_cpy): Delete unused variable.
3762 (regcache_cpy_no_passthrough): Delete unused variable.
3763 * charset.c (wchar_iterate): Delete unused variable.
3764 (find_charset_names): Delete unused variable.
3765 (_initialize_charset): Delete unused variable.
3766 * disasm.c (do_mixed_source_and_assembly):
3767 Delete unused variable.
3768 * source.c (set_default_source_symtab_and_line):
3769 Delete unused variable.
3770 (set_substitute_path_command): Delete unused variable.
3771 * value.c (preserve_values): Delete unused variable.
3772 (value_from_double): Delete unused variable.
3773
3774 2010-05-05 Michael Snyder <msnyder@vmware.com>
3775
3776 * psymtab.c (lookup_partial_symbol): Delete unused variable.
3777 (find_last_source_symtab_from_partial): Delete unused variable.
3778 * symfile.c (place_section): Delete unused variable.
3779 (default_symfile_offsets): Delete unused variable.
3780 (get_debug_link_info): Delete unused variable.
3781 (find_separate_debug_file_by_debuglink): Delete unused variable.
3782 (add_symbol_file_command): Delete unused variable.
3783 (symfile_find_segment_sections): Delete unused variable.
3784 * symmisc.c (free_symtab): Delete unused variable.
3785 (dump_symtab_1): Delete unused variable.
3786 * symtab.c (lookup_symbil_aux_quick): Delete unused variable.
3787 (find_pc_sect_symtab): Delete unused variable.
3788 (skip_prologue_using_lineinfo): Delete unused variable.
3789 (sources_info): Delete unused variable.
3790 (completion_list_add_name): Delete unused variable.
3791 (expand_line_sal): Delete unused variable.
3792
3793 * breakpoint.c (validate_commands_for_breakpoint):
3794 Delete unused variables.
3795 (insert_catchpoint): Delete unused variable.
3796 (update_watchpoint): Delete unused variable.
3797 (insert_bp_location): Delete unused variable.
3798 (insert_breakpoint_locations): Delete unused variable.
3799 (remove_breakpoint_1): Delete unused variable.
3800 (software_breakpoint_inserted_here_p): Delete unused variable.
3801 (watchpoints_triggered): Delete unused variable.
3802 (bpstat_check_watchpoint): Delete unused variable.
3803 (bpstat_stop_status): Delete unused variable.
3804 (print_one_breakpoint_location): Delete unused variable.
3805 (allocate_bp_location): Delete unused variable.
3806 (create_breakpoint): Delete unused variable.
3807 (watch_command_1): Delete unused variable.
3808 (catch_exception_command_1): Delete unused variable.
3809 (catch_ada_exception_command): Delete unused variable.
3810 (delete_breakpoint): Delete unused variable.
3811 (breakpoint_re_set_one): Delete unused variable.
3812 (do_enable_breakpoint): Delete unused variable.
3813
3814 2010-05-06 Pedro Alves <pedro@codesourcery.com>
3815
3816 * amd64-tdep.c: Include disasm.h.
3817 (amd64_insn_length_fprintf, amd64_insn_length_init_dis)
3818 (amd64_insn_length): Moved to disasm.c and renamed.
3819 (fixup_riprel): Adjust.
3820 * disasm.c (do_ui_file_delete): New.
3821 (gdb_insn_length): New.
3822 (gdb_buffered_insn_length_fprintf)
3823 (gdb_buffered_insn_length_init_dis)
3824 (gdb_buffered_insn_length): New, moved from amd64-tdep.c, and
3825 renamed.
3826 * disasm.h (gdb_insn_length): Declare.
3827 (gdb_buffered_insn_length): Declare.
3828
3829 2010-05-06 Pedro Alves <pedro@codesourcery.com>
3830
3831 * remote.c (clear_threads_parsing_context): New.
3832 (remote_threads_info): Delete unused null_cleanup. Install a
3833 cleanup to clear the threads_parsing_context in case parsing
3834 throws.
3835
3836 2010-05-05 Michael Snyder <msnyder@vmware.com>
3837
3838 * c-exp.y (parse_string_or_char): Delete unused variable.
3839 (c_lex): Delete unused variable.
3840 * cp-name-parser.y (cpname_lex): Delete unused variable.
3841 * ada-exp.y (find_primitive_type): Delete unused variable.
3842 (write_var_or_type): Delete unused variable.
3843 * jv-exp.y (java_parse): Delete unused variable.
3844 (push_expression_name): Delete unused variable.
3845 * p-exp.y (pascal_lex): Delete unused variable.
3846
3847 2010-05-05 Pedro Alves <pedro@codesourcery.com>
3848
3849 * remote.c (remote_threads_info): Really revert previous previous
3850 change.
3851
3852 2010-05-05 Michael Snyder <msnyder@vmware.com>
3853
3854 * elfread.c (elf_symtab_read): Delete unused variable.
3855 (find_separate_debug_file_by_buildid): Delete unused variables.
3856 (elf_symfile_read): Delete unused variable.
3857
3858 * coffread.c (coff_symfile_read): Delete unused variables.
3859
3860 * coff-pe-read.c (add_pe_exported_sym): Delete unused variable.
3861 (read_pe_exported_syms): Delete unused variable.
3862
3863 * stabsread.c (define_symbol): Delete unused variable.
3864
3865 * dwarf2read.c (read_type_comp_unit_head): Delete unused variable.
3866 (process_psymtab_comp_unit): Delete unused variable.
3867 (dwarf2_build_psymtabs_hard): Delete unused variable.
3868 (load_partial_comp_unit): Delete unused variable.
3869 (create_all_comp_units): Delete unused variable.
3870 (scan_partial_symbols): Delete unused variable.
3871 (add_partial_symbol): Delete unused variable.
3872 (add_partial_namespace): Delete unused variable.
3873 (add_partial_enumeration): Delete unused variable.
3874 (load_full_comp_unit): Delete unused variable.
3875 (process_full_comp_unit): Delete unused variable.
3876 (read_file_scope): Delete unused variable.
3877 (read_type_unit_scope): Delete unused variable.
3878 (process_structure_scope): Delete unused variable.
3879 (process_enumeration_scope): Delete unused variable.
3880 (read_tag_ptr_to_member_type): Delete unused variable.
3881 (read_typedef): Delete unused variable.
3882 (read_partial_die): Delete unused variable.
3883 (decode_locdesc): Delete unused variable.
3884 (zeroed_partial_die): Delete unused global variable.
3885
3886 * tui/tui-interp.c (_initialize_tui_interp):
3887 Delete unused variable.
3888 * tui/tui-regs.c tui_display_registers_from):
3889 Delete unused variable.
3890 (tui_check_register_values): Delete unused variable.
3891 (tui_register_format): Delete unused variable.
3892 * tui/tui-win.c (_initialize_tui_win): Delete unused variable.
3893 * tui/tui-windata.c (tui_display_data_from_line):
3894 Delete unused variables.
3895 (tui_vertical_data_scroll): Delete unused variables.
3896
3897 2010-05-05 Michael Snyder <msnyder@vmware.com>
3898
3899 * remote.c (remote_threads_info): Revert questionable part of
3900 the previous change.
3901
3902 2010-05-05 Michael Snyder <msnyder@vmware.com>
3903
3904 * mi/mi-out.c (mi_table_begin): Delete unused variable.
3905 * mi/mi-cmd-var.c (print_varobj): Delete unused variable.
3906 (mi_cmd_var_list_children): Delete unused variable.
3907 (varobj_update_one): Delete unused variable.
3908 * mi/mi-cmd-break.c (mi_cmd_break_insert): Delete unused variables.
3909 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals):
3910 Delete unused variable.
3911 (mi_cmd_stack_list_variables): Delete unused variable.
3912 (list_args_or_locals): Delete unused variable.
3913 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file):
3914 Delete unused variables.
3915 (mi_cmd_file_list_exec_source_files): Delete unused variable.
3916 * mi/mi-cmd-target.c (mi_cmd_target_file_delete):
3917 Delete unused variable.
3918 * mi/mi-interp.c (mi_interpreter_exec): Delete unused variable.
3919 (mi_cmd_interpreter_exec): Delete unused variable.
3920 (mi_on_normal_stop): Delete unused variable.
3921 * mi/mi-main.c (run_one_inferior): Delete unused variable.
3922 (print_one_inferior): Delete unused variables.
3923 (mi_execute_command): Delete unused variable.
3924 (mi_cmd_execute): Delete unused variable.
3925 (timestamp): Delete unused variable.
3926
3927 * cli/cli-dump.c (dump_memory_to_file): Delete unused variable.
3928 (restore_binary_file): Delete unused variable.
3929 * cli/cli-decode.c (deprecated_cmd_warning): Delete unused variables.
3930 * cli/cli-script.c (define_command): Delete unused variables.
3931 (recurse_read_control_structure): Delete unused variable.
3932 (script_from_file): Delete unused variable.
3933 * cli/cli-cmds.c (complete_command): Delete unused variable.
3934 (disassemble_command): Delete unused variable.
3935
3936 * ax-gdb.c (gen_struct_elt_for_reference): Delete unused variables.
3937 * tracepoint.c (delete_trace_variable_command):
3938 Delete unused variables.
3939 (encode_actions_1): Delete unused variables.
3940 (start_tracing): Delete unused variable.
3941 (trace_status_mi): Delete unused variable.
3942 (tfind_1): Delete unused variable.
3943 (trace_find_pc_command): Delete unused variable.
3944 (trace_find_line_command): Delete unused variables.
3945 (trace_find_range_command): Delete unused variables.
3946 (trace_find_outside_command): Delete unused variables.
3947 (parse_tracepoint_definition): Delete unused variables.
3948 (tfile_fetch_registers): Delete unused variable.
3949
3950 * dcache.c (dcache_init): Delete unused variable.
3951 (dcache_info): Delete unused variable.
3952
3953 * remote.c (remote_threads_info): Delete unused variable.
3954 (process_stop_reply) :Delete unused variable.
3955 (remote_get_trace_status): Delete unused variables.
3956
3957 * linux-thread-db.c (add_thread_db_info): Delete unused variable.
3958 (thread_from_lwp): Delete unused variable.
3959 (enable_thread_event_reporting): Delete unused variable.
3960 (check_for_thread_db): Delete unused variables.
3961 (thread_db_find_new_threads_2): Delete unused variable.
3962
3963 * linux-fork.c (info_checkpoints_command): Delete unused variables.
3964 (checkpoint_command): Delete unused variable.
3965 (linux_fork_context): Delete unused variables.
3966
3967 * linux-nat.c (linux_parent_pid): Delete unused global variable.
3968 (linux_tracefork_child): Delete unused variable.
3969 (linux_child_follow_fork): Delete unused variable.
3970 (linux_nat_detach): Delete unused variable.
3971 (linux_handle_extended_wait): Delete unused variable.
3972 (linux_nat_has_pending_sigint): Delete unused variable.
3973 (linux_nat_find_memory_regions): Delete unused variable.
3974 (linux_nat_make_corefile_notes): Delete unused variables.
3975 (linux_nat_info_proc_cmd): Delete unused variable.
3976 (linux_proc_pending_signals): Delete unused variable.
3977 (linux_nat_stop_lwp): Delete unused variables.
3978 (_initialize_linux_nat): Delete unused variable.
3979
3980 * ser-pipe.c (pipe_ops): Delete unused global variable.
3981
3982 * linux-record.c (record_linux_system_call):
3983 Delete unused variables.
3984
3985 * corelow.c (core_xfer_partial): Delete unused variables.
3986
3987 * solib-svr4.c (find_program_interpreter): Delete unused variable.
3988 (svr4_solib_create_inferior_hook): Add ifdef around
3989 conditionally-used variable declarations.
3990
3991 * solib.c (solib_find): Delete unused variable.
3992 (free_so_symbols): Delete unused variable.
3993 (info_sharedlibrary_command): Delete unused variable.
3994 (reload_shared_libraries_1): Delete unused variable.
3995 (_initialize_solib): Delete unused variable.
3996
3997 * i386-tdep.c (i386_supply_xstateregset) Delete unused variable.
3998 (i386_collect_xstateregset): Delete unused variable.
3999 * i387-tdep.c (i387_print_float_info): Delete unused variable.
4000
4001 * features/i386/i386-mmx.c (initialize_tdesc_i386_mmx):
4002 Delete unused variable 'type'.
4003
4004 2010-05-05 Joel Brobecker <brobecker@adacore.com>
4005
4006 * gdbtypes.h (MAX_OF_TYPE, MIN_OF_TYPE): Delete macros. *
4007 ada-lang.c: Remove comment mentioning these macros.
4008 * m2-exp.y: Delete commented out code.
4009
4010 2010-05-05 Joel Brobecker <brobecker@adacore.com>
4011
4012 * sparc-tdep.c (sparc_structure_or_union_p): Return non-zero
4013 for array types.
4014 * sparc64-tdep.c (sparc64_structure_or_union_p): Likewise.
4015
4016 2010-05-04 Pierre Muller <muller@ics.u-strasbg.fr>
4017
4018 ARI fix: Remove ATTRIBUTE_UNUSED throughout.
4019 * arm-linux-tdep.c (arm_linux_cleanup_svc): Remove
4020 ATTRIBUTE_UNUSED.
4021 (cleanup_kernel_helper_return): Likewise.
4022 * arm-tdep.c (copy_unmodified): Likewise.
4023 (copy_preload): Likewise.
4024 (copy_copro_load_store): Likewise.
4025 (cleanup_branch): Likewise.
4026 (copy_b_bl_blx): Likewise.
4027 (copy_bx_blx_reg): Likewise.
4028 (copy_alu_imm): Likewise.
4029 (copy_alu_reg): Likewise.
4030 (copy_alu_shifted_reg): Likewise.
4031 (cleanup_load): Likewise.
4032 (cleanup_store): Likewise.
4033 (cleanup_block_load_pc): Likewise.
4034 (cleanup_svc): Likewise.
4035 (copy_undef): Likewise.
4036 (copy_unpred): Likewise.
4037 * remote.c (register_remote_support_xml): Likewise.
4038
4039 2010-05-05 Hui Zhu <teawater@gmail.com>
4040
4041 * gdbarch.h (gdbarch_has_dos_based_file_system): Update comment.
4042
4043 2010-05-04 Mark Kettenis <kettenis@gnu.org>
4044
4045 * remote.c (register_remote_support_xml)
4046 (remote_query_supported_append, remote_query_supported): Add cast
4047 to NULL used as sentinel.
4048 * tracepoint.c (tvariables_info_1): Likewise.
4049 * utils.c (add_internal_problem_command): Likewise.
4050
4051 2010-05-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
4052
4053 * dwarf2loc.c (read_pieced_value, write_pieced_value,
4054 dwarf2_evaluate_loc_desc): Handle not being able to access DWARF
4055 registers gracefully.
4056
4057 2010-05-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
4058
4059 * exec.c (print_section_info): Display entry point without arch
4060 specific parts.
4061
4062 2010-05-04 Pierre Muller <muller@ics.u-strasbg.fr>
4063
4064 PR exp/11349.
4065 * printcmd.c (x_command): Only dereference once implicitly for
4066 TYPE_CODE_REF.
4067
4068 2010-05-03 Doug Evans <dje@google.com>
4069
4070 * event-loop.c (gdb_timer): Delete unused global.
4071 (create_timer): Update.
4072
4073 2010-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
4074
4075 * cp-namespace.c (cp_lookup_symbol_imports): Support ALIAS for the
4076 CURRENT->DECLARATION case.
4077 * cp-support.h (struct using_direct): Provide extended comment.
4078
4079 2010-05-03 Mark Kettenis <kettenis@gnu.org>
4080
4081 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Renamed from
4082 HPPABSD_SIZEOF_GREGS.
4083 (HPPAOBSD_SIZEOF_FPREGS): New define.
4084 (hppaobsd_supply_gregset): Renamed from hppabsd_supply_gregset.
4085 (hppaobsd_supply_fpregset): New function.
4086 (hppaobsd_gregset): Renamed from hppabsd_gregset.
4087 (hppaobsd_fpregset): New variable.
4088 (hppaobsd_regset_from_core_section): Handle floating-point registers.
4089 (_initialize_hppabsd_tdep): Remove spurious blank line.
4090
4091 2010-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
4092
4093 PR pascal/11349.
4094 * p-valprint.c (pascal_value_print): Always dereference a value with
4095 type code TYPE_CODE_REF.
4096
4097 2010-05-03 Pedro Alves <pedro@codesourcery.com>
4098
4099 * remote.c (remote_notice_signals): New.
4100 (remote_start_remote): In non-stop mode, update the remote end on
4101 which signals it can silently pass.
4102 (init_remote_ops): Install remote_notice_signals.
4103
4104 2010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4105
4106 * cli/cli-cmds.h (error_no_arg): Remove. Move the comment ...
4107 * command.h (error_no_arg): ... here. Remove NORETURN, change
4108 ATTR_NORETURN to ATTRIBUTE_NORETURN.
4109 * defs.h (NORETURN, ATTR_NORETURN): Remove.
4110 (perror_with_name, verror, error, error_stream, vfatal, fatal)
4111 (internal_verror, internal_error, nomem): Remove NORETURN, change
4112 ATTR_NORETURN to ATTRIBUTE_NORETURN.
4113 * exceptions.c (throw_exception, deprecated_throw_reason, throw_verror)
4114 (throw_vfatal, throw_error): Remove NORETURN.
4115 (throw_it): Remove NORETURN, change ATTR_NORETURN to ATTRIBUTE_NORETURN.
4116 * exceptions.h (throw_exception, throw_verror, throw_vfatal)
4117 (throw_error, deprecated_throw_reason): Remove NORETURN, change
4118 ATTR_NORETURN to ATTRIBUTE_NORETURN.
4119 * linespec.c (cplusplus_error): Remove NORETURN, change ATTR_NORETURN
4120 to ATTRIBUTE_NORETURN for prototype, for the definition only remove
4121 NORETURN.
4122 * remote-mips.c (mips_error): Change NORETURN to ATTRIBUTE_NORETURN.
4123 * remote-sim.c (gdb_os_error): Change ATTR_NORETURN to
4124 ATTRIBUTE_NORETURN.
4125 * target.c (tcomplain): Likewise.
4126 * target.h (noprocess): Remove NORETURN, change ATTR_NORETURN to
4127 ATTRIBUTE_NORETURN.
4128 * utils.c (verror, error, vfatal, fatal, error_stream, internal_verror)
4129 (internal_error, perror_with_name, nomem): Remove NORETURN.
4130 * xml-support.h (gdb_xml_error): Change ATTR_NORETURN to
4131 ATTRIBUTE_NORETURN.
4132
4133 2010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4134
4135 * ada-lang.c (lim_warning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
4136 * amd64-tdep.c (amd64_insn_length_fprintf): Likewise.
4137 * cli-out.c (cli_field_fmt): New ATTRIBUTE_PRINTF.
4138 (cli_message, out_field_fmt): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
4139 * complaints.c (find_complaint): New ATTRIBUTE_PRINTF.
4140 (vcomplaint): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
4141 * complaints.h (complaint, internal_complaint): Likewise.
4142 * defs.h: Change ATTR_FORMAT to ATTRIBUTE_PRINTF in the top comment.
4143 (ATTR_FORMAT): Remove.
4144 (query, nquery, yquery, vprintf_filtered, vfprintf_filtered)
4145 (fprintf_filtered, fprintfi_filtered, printf_filtered, printfi_filtered)
4146 (vprintf_unfiltered, vfprintf_unfiltered, fprintf_unfiltered)
4147 (printf_unfiltered, xasprintf, xvasprintf, xstrprintf, xstrvprintf)
4148 (xsnprintf, verror, error, vfatal, fatal, internal_verror)
4149 (internal_error, internal_vwarning, internal_warning, warning)
4150 (vwarning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
4151 * disasm.c (fprintf_disasm): Likewise.
4152 * exceptions.c (throw_it): Likewise.
4153 * exceptions.h (exception_fprintf, throw_verror, throw_vfatal)
4154 (throw_error): Likewise.
4155 * language.h (type_error, range_error): Likewise.
4156 * linespec.c (cplusplus_error): Likewise.
4157 * mi/mi-interp.c (mi_interp_query_hook): Likewise.
4158 * mi/mi-out.c (mi_field_fmt, mi_message): Likewise.
4159 * monitor.c (monitor_debug): Likewise.
4160 * parser-defs.h (parser_fprintf): Likewise.
4161 * serial.h (serial_printf): Likewise.
4162 * tui/tui-hooks.c (tui_query_hook): Likewise.
4163 * ui-out.c (default_field_fmt, default_message, uo_field_fmt)
4164 (uo_message): Likewise.
4165 * ui-out.h (ui_out_field_fmt, ui_out_message): Likewise.
4166 * utils.c (vfprintf_maybe_filtered, internal_vproblem, defaulted_query):
4167 Likewise.
4168 * xml-support.h (gdb_xml_debug, gdb_xml_error): Likewise.
4169
4170 2010-05-02 Pedro Alves <pedro@codesourcery.com>
4171
4172 * cli-out.c (cli_table_begin, cli_table_body, cli_table_end)
4173 (cli_table_header, cli_begin, cli_end, cli_field_int)
4174 (cli_field_skip, cli_field_string, cli_field_fmt, cli_spaces)
4175 (cli_text, cli_message, cli_wrap_hint, cli_flush, cli_redirect):
4176 Delete forward declarations.
4177 (cli_ui_out_impl): Move below the callbacks.
4178 (_initialize_cli_out): Delete.
4179
4180 2010-05-02 Pedro Alves <pedro@codesourcery.com>
4181
4182 * README: Use consistent `GDB' and `GDBserver' spellings.
4183
4184 2010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4185
4186 * cli/cli-dump.h (parse_and_eval_with_error): Remove the declaration.
4187
4188 2010-05-01 Pedro Alves <pedro@codesourcery.com>
4189
4190 * infrun.c (prepare_for_detach): In non-stop, context switch to
4191 the thread that got the event before handling the event.
4192
4193 2010-04-30 Tom Tromey <tromey@redhat.com>
4194
4195 * symtab.c (symbol_set_names): Fix typo.
4196
4197 2010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
4198
4199 * python/py-param.c (parm_constants): Avoid ARI warning
4200 by adding ARI comment.
4201 (parmpy_init): Likewise.
4202
4203 2010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
4204
4205 * windows-tdep.c (windows_get_tlb_type): Remember last GDBARCH
4206 and created type for re-use.
4207
4208 2010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
4209
4210 * NEWS: Mention gdbserver support for x86_64 Windows 64-bit.
4211
4212 2010-04-29 Doug Evans <dje@google.com>
4213
4214 * ser-base.h (reschedule): Delete prototype.
4215 * ser-base.c (reschedule): Make static.
4216
4217 2010-04-29 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
4218
4219 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Remove.
4220 (ARM_LINUX_JB_PC_FPA): Add, offset of PC in longjmp buffer for FPA.
4221 (ARM_LINUX_JB_PC_EABI): Add, offset of PC in longjmp buffer for
4222 EABI.
4223 (arm_linux_init_abi): Set up JB_PC field dependent on FP model in
4224 use.
4225
4226 2010-04-29 Pedro Alves <pedro@codesourcery.com>
4227
4228 PR gdb/11557
4229
4230 * regcache.c (registers_changed): Rename to ...
4231 (registers_changed_ptid): ... this, and only delete register cache
4232 entries matching the ptid filter argument.
4233 (registers_changed): Reimplement on top of registers_changed_ptid.
4234 * regcache.h (registers_changed_ptid): Declare.
4235 * target.c (target_resume): Flush register caches.
4236
4237 2010-04-29 Phil Muldoon <pmuldoon@redhat.com>
4238 Tom Tromey <tromey@redhat.com>
4239 Thiago Jung Bauermann <bauerman@br.ibm.com>
4240
4241 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-parameter.
4242 (SUBDIR_PYTHON_SRCS): Likewise.
4243 (py-parameter.o): New rule.
4244 * python/py-parameter.c: New file.
4245 * python/python-internal.h (gdbpy_initialize_parameter)
4246 (gdbpy_parameter, gdbpy_parameter_value)
4247 (gdbpy_parse_command_name): Declare.
4248 * python/py-cmd.c (parse_command_name): Rename to
4249 gdbpy_parse_command_name.
4250 (gdbpy_parse_command_name): Accept a starting list parameter and
4251 use over cmdlist.
4252 (cmdpy_init): Use gdbpy_parse_command_name.
4253 * python/python.c (parameter_to_python): Rename to
4254 gdbpy_parameter_to_python. Accept enum var_types and value.
4255 (gdbpy_parameter): Use gdbpy_parameter_value.
4256 (_initialize_python): Call gdbpy_initialize_parameters.
4257
4258 2010-04-29 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
4259
4260 * MAINTAINERS: Add myself for write after approval privileges.
4261
4262 2010-04-29 Mihail Zenkov <mihail.zenkov@gmail.com>
4263
4264 D language support.
4265 * Makefile.in (SFILES): Add d-lang.c d-valprint.c.
4266 (COMMON_OBS): Add d-lang.o d-valprint.o.
4267 (HFILES_NO_SRCDIR): Add d-lang.h.
4268 * NEWS: Mention D language support.
4269 * c-lang.c (c_emit_char, exp_descriptor_c): Make public.
4270 * c-lang.h (c_emit_char, exp_descriptor_c): Add declaration.
4271 * d-lang.c: New file.
4272 * d-lang.h: New file.
4273 * d-valprint.c: New file.
4274 * defs.h (enum language): Add language_d.
4275 * dwarf2read.c (set_cu_language): Add DW_LANG_D.
4276 * language.c (binop_result_type, integral_type, character_type)
4277 (string_type, boolean_type, structured_type): Add language_d.
4278 * symfile.c (init_filename_language_table): Add language_d.
4279 * symtab.c: Include d-lang.h.
4280 (symbol_init_language_specific, symbol_find_demangled_name)
4281 (symbol_natural_name, lookup_symbol_in_language)
4282 (symbol_demangled_name, symbol_matches_domain): Add language_d.
4283
4284 2010-04-27 Joel Brobecker <brobecker@adacore.com>
4285
4286 * solib-svr4.c (solib_svr4_r_map): Expand function description.
4287
4288 2010-04-27 Joel Brobecker <brobecker@adacore.com>
4289
4290 * symfile.c (init_filename_language_table): Register .dg files
4291 with language_ada.
4292
4293 2010-04-27 Joel Brobecker <brobecker@adacore.com>
4294
4295 * gdbtypes.h (struct main_type): Expand comment about target_type
4296 field.
4297
4298 2010-04-27 Pedro Alves <pedro@codesourcery.com>
4299 Tristan Gingold <gingold@adacore.com>
4300
4301 * symfile.c (reread_symbols): Also search for file in libraries.
4302 Update comment.
4303
4304 2010-04-27 Joel Brobecker <brobecker@adacore.com>
4305
4306 * configure.tgt: Treat x86-lynxos targets as x86 bareboard targets
4307 in terms of configuration.
4308
4309 2010-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4310
4311 * objfiles.c: Include solist.h.
4312 (free_all_objfiles): New variable so. Check stale solist objfiles.
4313 * symfile.c (symbol_file_clear): Swap the order of free_all_objfiles
4314 and no_shared_libraries.
4315
4316 2010-04-27 Joel Brobecker <brobecker@adacore.com>
4317
4318 ARI warning fix.
4319 * python/py-auto-load.c (source_section_scripts): Remove trailing
4320 new-line in i18n string.
4321
4322 2010-04-26 Doug Evans <dje@google.com>
4323
4324 * serial.c (serial_write): Handle serial_debug_p akin to serial_read.
4325
4326 2010-04-26 Tom Tromey <tromey@redhat.com>
4327
4328 * cli/cli-decode.c (complete_on_cmdlist): Make two passes over the
4329 command list.
4330
4331 2010-04-26 Pierre Muller <muller@ics.u-strasbg.fr>
4332
4333 Removal of config/i386/nm-i386sol2.h native configuration file.
4334 * config/i386/nm-i386sol2.h: Remove file.
4335 * config/i386/i386sol2.mh: Remove NAT_FILE definition.
4336 * config/i386/sol2-64.mh: Idem.
4337 * config/djgpp/fnchange.lst: Remove reference to that file.
4338 * Makefile.in (HFILES_NO_SRCDIR): Idem.
4339
4340 2010-04-26 Pierre Muller <muller@ics.u-strasbg.fr>
4341
4342 PR breakpoints/11531.
4343 * config/i386/nm-i386sol2.h (CANNOT_STEP_HW_WATCHPOINTS): Remove
4344 macro definition and related comment.
4345 * infrun.c (CANNOT_STEP_HW_WATCHPOINTS): Remove macro.
4346 (resume): Remove code and comment related to this macro.
4347
4348 2010-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
4349
4350 * cp-namespace.c (cp_lookup_symbol_in_namespace): Fix alloca size.
4351 Fix whitespace.
4352
4353 2010-04-24 Pedro Alves <pedro@codesourcery.com>
4354
4355 * defs.h: Adjust comment.
4356 * filesystem.h, filesystem.c: New files.
4357 * Makefile.in (SFILES): Add filesystem.c.
4358 (COMMON_OBS): Add filesystem.o.
4359 * solib.c (solib_find): Handle DOS-based filesystems. Handle
4360 different target and host path flavours.
4361 * arm-symbian-tdep.c (arm_symbian_init_abi): Set
4362 has_dos_based_file_system on the gdbarch.
4363 * arm-wince-tdep.c (arm_wince_init_abi): Ditto.
4364 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Ditto.
4365 * i386-tdep.c (i386_go32_init_abi): Ditto.
4366 * gdbarch.sh (has_dos_based_file_system): New.
4367 * gdbarch.h, gdbarch.c: Regenerate.
4368 * NEWS: Mention improved support for remote targets with DOS-based
4369 filesystems. Mention new `set/show target-file-system-kind'
4370 commands.
4371
4372 2010-04-23 Stan Shebs <stan@codesourcery.com>
4373
4374 * ax.h (struct agent_expr): Merge in agent_reqs fields, add some
4375 comments.
4376 (struct agent_reqs): Remove.
4377 (ax_reg_mask): Declare.
4378 * ax-general.c (new_agent_expr): Add gdbarch argument, set new fields.
4379 (free_agent_expr): Free reg_mask.
4380 (ax_print): Add scope and register mask info.
4381 (ax_reqs): Remove agent_reqs argument, use agent expression
4382 fields, and move part of register mask computation to...
4383 (ax_reg_mask): New function.
4384 * ax-gdb.c (gen_trace_static_fields): Call it.
4385 (gen_traced_pop): Ditto.
4386 (is_nontrivial_conversion): Add dummy gdbarch to new_agent_expr.
4387 (gen_trace_for_var): Pass gdbarch to new_agent_expr.
4388 (gen_trace_for_expr): Ditto, and clear optimized_out flag.
4389 (gen_eval_for_expr): Ditto, and require an rvalue.
4390 (agent_command): Call ax_reqs.
4391 (agent_eval_command): Ditto.
4392 * tracepoint.c (report_agent_reqs_errors): Use agent expression fields.
4393 (validate_action_line): Ditto.
4394 (collect_symbol): Ditto.
4395 (encode_actions_1): Ditto.
4396
4397 2010-04-23 Daniel Jacobowitz <dan@codesourcery.com>
4398 Paul Pluzhnikov <ppluzhnikov@google.com>
4399 Jan Kratochvil <jan.kratochvil@redhat.com>
4400
4401 Fix deadlock on looped list of loaded shared objects.
4402 * solib-svr4.c (LM_PREV): New function.
4403 (IGNORE_FIRST_LINK_MAP_ENTRY): Use it.
4404 (svr4_current_sos): Check for correct l_prev. New variables prev_lm
4405 and next_lm. Clear prev_lm for solib_svr4_r_ldsomap.
4406 * config/djgpp/fnchange.lst: Add translation for solib-corrupted.exp.
4407
4408 2010-04-23 Doug Evans <dje@google.com>
4409
4410 * configure.ac (CONFIG_SRCS): Add py-auto-load.o even if not using
4411 python.
4412 * configure: Regenerate.
4413 * main.c: #include "python/python.h".
4414 (captured_main): Defer loading auto-loaded scripts until after
4415 local_gdbinit has been sourced.
4416 * python/py-auto-load.c (gdbpy_global_auto_load): New global.
4417 (load_auto_scripts_for_objfile): New function.
4418 (auto_load_new_objfile): Call it.
4419 * python/python.h (gdbpy_global_auto_load): Declare.
4420 (load_auto_scripts_for_objfile): Declare.
4421
4422 Add support for auto-loading scripts from .debug_gdb_scripts section.
4423 * NEWS: Add entry for .debug_gdb_scripts.
4424 * Makefile.in SUBDIR_PYTHON_OBS): Add py-auto-load.o.
4425 (SUBDIR_PYTHON_SRCS): Add py-auto-load.c.
4426 (py-auto-load.o): New rule.
4427 * cli/cli-cmds.c (find_and_open_script): Make externally visible.
4428 * cli/cli-cmds.h (find_and_open_script): Update prototype.
4429 * python/py-auto-load.c: New file.
4430 * python/python-internal.h: #include <stdio.h>.
4431 (set_python_list, show_python_list): Declare.
4432 (gdbpy_initialize_auto_load): Declare.
4433 (source_python_script_for_objfile): Declare.
4434 * python/python.c: Remove #include of observer.h.
4435 (gdbpy_auto_load): Moved to py-auto-load.c.
4436 (GDBPY_AUTO_FILENAME): Ditto.
4437 (gdbpy_new_objfile): Delete.
4438 (source_python_script_for_objfile): New function.
4439 (set_python_list, show_python_list): Make externally visible.
4440 (_initialize_python): Move "auto-load" command to py-auto-load.c
4441 and observer_attach_new_objfile to py-auto-load.c.
4442
4443 2010-04-23 Jerome Guitton <guitton@adacore.com>
4444
4445 * alpha-tdep.c (INSN_OPCODE, MEM_RA, MEM_RB, MEM_DISP, BR_RA)
4446 (OPR_FUNCTION, OPR_HAS_IMMEDIATE, OPR_RA, OPR_RC, OPR_LIT): New macros.
4447 (lda_opcode, stq_opcode, bne_opcode, subq_opcode, subq_function):
4448 New constants.
4449 (alpha_heuristic_analyze_probing_loop): New function.
4450 (alpha_heuristic_frame_unwind_cache): In the prologue analysis, detect
4451 and handle cases when a stack probe loop is generated.
4452 * alpha-mdebug-tdep.c (alpha_mdebug_frameless): New function.
4453 (alpha_mdebug_max_frame_size_exceeded): New function.
4454 (alpha_mdebug_after_prologue): Use alpha_mdebug_frameless.
4455 (alpha_mdebug_frame_sniffer, alpha_mdebug_frame_base_sniffer):
4456 Return 0 when the maximum debuggable frame size has been exceeded.
4457
4458 2010-04-23 Joel Brobecker <brobecker@adacore.com>
4459
4460 Fix ARI warning.
4461 * ppc-linux-nat.c (booke_cmp_hw_point): Do not mark inline.
4462
4463 2010-04-20 Chris Moller <cmoller@redhat.com>
4464
4465 PR 10179
4466
4467 * symtab.c (rbreak_command): Added code to include a filename
4468 specification in the rbreak argument.
4469 * NEWS: Added a brief description of filename-qualified rbreak.
4470
4471 2010-04-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4472
4473 Fix crashes on dangling display expressions.
4474 * ada-lang.c (ada_operator_check): New function.
4475 (ada_exp_descriptor): Fill-in the field operator_check.
4476 * c-lang.c (exp_descriptor_c): Fill-in the field operator_check.
4477 * jv-lang.c (exp_descriptor_java): Likewise.
4478 * m2-lang.c (exp_descriptor_modula2): Likewise.
4479 * scm-lang.c (exp_descriptor_scm): Likewise.
4480 * parse.c (exp_descriptor_standard): Likewise.
4481 (operator_check_standard): New function.
4482 (exp_iterate, exp_uses_objfile_iter, exp_uses_objfile): New functions.
4483 * parser-defs.h (struct exp_descriptor): New field operator_check.
4484 (operator_check_standard, exp_uses_objfile): New declarations.
4485 * printcmd.c: Remove the inclusion of solib.h.
4486 (display_uses_solib_p): Remove the function.
4487 (clear_dangling_display_expressions): Call lookup_objfile_from_block
4488 and exp_uses_objfile instead of display_uses_solib_p.
4489 * solist.h (struct so_list) <objfile>: New comment.
4490 * symtab.c (lookup_objfile_from_block): Remove the static qualifier.
4491 * symtab.h (lookup_objfile_from_block): New declaration.
4492 (struct general_symbol_info) <obj_section>: Extend the comment.
4493
4494 2010-04-22 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
4495 Thiago Jung Bauermann <bauerman@br.ibm.com>
4496
4497 * ppc-linux-nat.c (PTRACE_GET_DEBUGREG): Update comment.
4498 (PPC_PTRACE_GETWDBGINFO, PPC_PTRACE_SETHWDEBUG, PPC_PTRACE_DELHWDEBUG,
4499 ppc_debug_info, PPC_DEBUG_FEATURE_INSN_BP_RANGE,
4500 PPC_DEBUG_FEATURE_INSN_BP_MASK, PPC_DEBUG_FEATURE_DATA_BP_RANGE,
4501 PPC_DEBUG_FEATURE_DATA_BP_MASK, ppc_hw_breakpoint,
4502 PPC_BREAKPOINT_TRIGGER_EXECUTE, PPC_BREAKPOINT_TRIGGER READ,
4503 PPC_BREAKPOINT_TRIGGER_WRITE, PPC_BREAKPOINT_TRIGGER_RW,
4504 PPC_BREAKPOINT_MODE_EXACT PPC_BREAKPOINT_MODE_RANGE_INCLUSIVE,
4505 PPC_BREAKPOINT_MODE_RANGE_EXCLUSIVE, PPC_BREAKPOINT_MODE_MASK,
4506 PPC_BREAKPOINT_CONDITION_NONE, PPC_BREAKPOINT_CONDITION_AND,
4507 PPC_BREAKPOINT_CONDITION_EXACT, PPC_BREAKPOINT_CONDITION_OR,
4508 PPC_BREAKPOINT_CONDITION_AND_OR, PPC_BREAKPOINT_CONDITION_BE_ALL,
4509 PPC_BREAKPOINT_CONDITION_BE_SHIFT, PPC_BREAKPOINT_CONDITION_BE):
4510 Define, in case <ptrace.h> doesn't provide it.
4511 (booke_debug_info): New variable.
4512 (max_slots_number): Ditto.
4513 (hw_break_tuple): New struct.
4514 (thread_points): Ditto.
4515 (ppc_threads): New variable.
4516 (PPC_DEBUG_CURRENT_VERSION): New define.
4517 (have_ptrace_new_debug_booke): New function.
4518 (ppc_linux_check_watch_resources): Renamed to ...
4519 (ppc_linux_can_use_hw_breakpoint): ... this. Handle BookE processors.
4520 (ppc_linux_region_ok_for_hw_watchpoint): Handle BookE processors.
4521 (booke_cmp_hw_point): New function.
4522 (booke_find_thread_points_by_tid): Ditto.
4523 (booke_insert_point): Ditto.
4524 (booke_remove_point): Ditto.
4525 (ppc_linux_insert_hw_breakpoint): Ditto.
4526 (ppc_linux_remove_hw_breakpoint): Ditto.
4527 (get_trigger_type): Ditto.
4528 (ppc_linux_insert_watchpoint): Handle BookE processors.
4529 (ppc_linux_remove_watchpoint): Ditto.
4530 (ppc_linux_new_thread): Ditto.
4531 (ppc_linux_thread_exit): New function..
4532 (ppc_linux_stopped_data_address): Handle BookE processors.
4533 (ppc_linux_watchpoint_addr_within_range): Ditto.
4534 (_initialize_ppc_linux_nat): Initialize to_insert_hw_breakpoint and
4535 to_remove_hw_breakpoint fields of the target operations struct.
4536 Add observe for the thread_exit event.
4537
4538 2010-04-22 H.J. Lu <hongjiu.lu@intel.com>
4539
4540 * i386-linux-nat.c (regmap): Removed.
4541 (fetch_register): Replace regmap with
4542 i386_linux_gregset_reg_offset.
4543 (store_register): Likewise.
4544 (supply_gregset): Likewise.
4545 (fill_gregset): Likewise.
4546
4547 * i386-linux-tdep.c (i386_linux_gregset_reg_offset): Make it
4548 global.
4549
4550 * i386-linux-tdep.h (i386_linux_gregset_reg_offset): New.
4551
4552 2010-04-22 Chris Moller <cmoller@redhat.com>
4553
4554 * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
4555 method of popping recursion-detection stack with a method based on
4556 obstack_object_size(). (Similar to the PR9167 patch below, but for
4557 the static array obstack rather than the static member obstack.)
4558
4559 2010-04-22 H.J. Lu <hongjiu.lu@intel.com>
4560
4561 * amd64-linux-nat.c (amd64_linux_gregset64_reg_offset): Removed.
4562 (_initialize_amd64_linux_nat): Replace
4563 amd64_linux_gregset64_reg_offset with
4564 amd64_linux_gregset_reg_offset.
4565
4566 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Make it
4567 global.
4568
4569 * amd64-tdep.h (amd64_linux_gregset_reg_offset): New.
4570
4571 2010-04-22 Pierre Muller <muller@ics.u-strasbg.fr>
4572
4573 PR stabs/11479.
4574 * stabsread.c (set_length_in_type_chain): New function.
4575 (read_struct_type): Call set_length_in_type_chain function.
4576 (read_enum_type): Idem.
4577
4578 2010-04-21 Stan Shebs <stan@codesourcery.com>
4579 Nathan Sidwell <nathan@codesourcery.com>
4580
4581 * tracepoint.c (trace_save): Open in binary mode.
4582
4583 2010-04-22 Pierre Muller <muller@ics.u-strasbg.fr>
4584
4585 * gdbtypes.h (builtin_type): Add builtin_char16 and builtin_char32
4586 fields.
4587 * gdbtypes.c (gdbtypes_post_init): Set builtin_char16 and
4588 builtin_char32 fields.
4589 * printcmd.c (decode_format): Set char size to '\0'
4590 for strings unless explicit size is given.
4591 (print_formatted): Correct calculation of NEXT_ADDRESS
4592 for 16 or 32 bit strings.
4593 (do_examine): Do not force byte size for strings.
4594 Use builtin_char16 and builtin_char32 types to display
4595 16 or 32 bit-wide strings.
4596 (x_command): Set LAST_SIZE to 'b' for string type.
4597
4598 2010-04-21 H.J. Lu <hongjiu.lu@intel.com>
4599
4600 PR corefiles/11523
4601 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
4602 XCR0 first.
4603
4604 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Return 0 if
4605 there is no .reg-xstate section.
4606 (i386_linux_core_read_description): Check XCR0 first.
4607
4608 2010-04-21 Mike Frysinger <vapier@gentoo.org>
4609
4610 * gdb/sparc-tdep.c (sparc32_store_return_value): Add gdb_assert ()
4611 for len <= 8.
4612
4613 2010-04-21 Chris Moller <cmoller@redhat.com>
4614
4615 PR 9167
4616 * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
4617 method of popping recursion-detection stack with a method based on
4618 obstack_object_size().
4619
4620 2010-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
4621
4622 PR pascal/11492.
4623 * p-valprint.c (pascal_val_print): Fix default printing of integer
4624 arrays.
4625
4626 2010-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
4627
4628 Fix compilation warning on gcc-4.1.2.
4629 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Initialize
4630 local variable`pc' to zero.
4631
4632 2010-04-20 Joel Brobecker <brobecker@adacore.com>
4633
4634 Implement thread support with core files on alpha-tru64.
4635 * dec-thread.c (dec_thread_find_new_threads): New function,
4636 extracted from resync_thread_list.
4637 (resync_thread_list): Add OPS parameter. Replace extracted-out
4638 code by call to dec_thread_find_new_threads.
4639 (dec_thread_wait): Update call to resync_thread_list.
4640 (init_dec_thread_ops): Set dec_thread_ops.to_find_new_threads.
4641
4642 2010-04-20 Joel Brobecker <brobecker@adacore.com>
4643
4644 * ada-lang.c (value_pointer): New function.
4645 (make_array_descriptor): Call value_pointer to convert addresses to
4646 pointers.
4647
4648 2010-04-20 Joel Brobecker <brobecker@adacore.com>
4649
4650 * rs6000-aix-tdep.c: #include exceptions.h.
4651 (rs6000_convert_from_func_ptr_addr): If an exception is thrown
4652 while reading the memory at ADDR, then ADDR cannot be a function
4653 descriptor.
4654
4655 2010-04-20 Joel Brobecker <brobecker@adacore.com>
4656
4657 * ada-typeprint.c (ada_print_typedef): New function.
4658 * ada-lang.h (ada_print_typedef): Add declaration.
4659 * ada-lang.c (ada_language_defn): set la_print_typdef field
4660 to ada_print_typedef.
4661
4662 2010-04-20 Joel Brobecker <brobecker@adacore.com>
4663
4664 * procfs.c (procfs_address_to_host_pointer): Only define when used.
4665
4666 2010-04-20 Joel Brobecker <brobecker@adacore.com>
4667
4668 * procfs.c (iterate_over_mappings_cb_ftype): New typedef.
4669 (iterate_over_mappings): Adjust function profile. Add declaration.
4670 (insert_dbx_link_bpt_in_region, info_mappings_callback):
4671 Adjust accordingly.
4672
4673 2010-04-20 Joel Brobecker <brobecker@adacore.com>
4674
4675 * procfs.c (solib_mappings_callback): Move function up to avoid
4676 a compiler warning.
4677
4678 2010-04-20 Joel Brobecker <brobecker@adacore.com>
4679
4680 * procfs.c (find_signalled_thread, find_stop_signal): Move
4681 these functions down to define them only when used.
4682
4683 2010-04-20 Joel Brobecker <brobecker@adacore.com>
4684
4685 * valprint.c (common_val_print): Fix the value before extracting
4686 its contents.
4687 * ada-lang.c (ada_to_fixed_value): Make this function extern.
4688 * ada-lang.h (ada_to_fixed_value): New function declaration.
4689 * ada-valprint.c (ada_value_print): Use ada_to_fixed_value
4690 to avoid code duplication and fix a bug in the handling of
4691 fixed types contents.
4692
4693 2010-04-20 Tom Tromey <tromey@redhat.com>
4694
4695 * dwarf2read.c (dwarf2_compute_name): Handle DW_AT_linkage_name.
4696 (read_partial_die): Likewise.
4697 (dwarf_attr_name): Likewise.
4698
4699 2010-04-20 Chris Moller <cmoller@redhat.com>
4700
4701 PR 10867
4702
4703 * cp-valprint.c (global): Adding new static array recursion
4704 detection obstack.
4705 (cp_print_value_fields, cp_print_static_field): Added new static
4706 array recursion detection code.
4707
4708 2010-04-20 Mark Kettenis <kettenis@gnu.org>
4709
4710 * i386-linux-tdep.c (i386_linux_regset_sections): Size of the
4711 general-purpose register set should be 68 instead of 144.
4712 (i386_linux_sse_regset_sections): Likewise.
4713 (i386_linux_avx_regset_sections): Likewise.
4714
4715 2010-04-20 Stan Shebs <stan@codesourcery.com>
4716 Nathan Sidwell <nathan@codesourcery.com>
4717
4718 * dwarf2loc.c (struct axs_var_loc): New struct.
4719 (dwarf2_tracepoint_var_loc): New function.
4720 (dwarf2_tracepoint_var_access): New function.
4721 (dwarf2_tracepoint_var_ref): Use dwarf2_tracepoint_var_loc, deal
4722 with DW_OP_piece.
4723 (locexpr_describe_location_piece): New function.
4724 (locexpr_describe_location_1): New function.
4725 (locexpr_describe_location): Call it, update signature.
4726 (loclist_describe_location): Rewrite to loop over locations,
4727 update signature.
4728 * symtab.h (struct symbol_computed_ops): Add address to
4729 describe_location arguments, return void.
4730 * printcmd.c (address_info): Get context PC, pass to computed
4731 location description.
4732 * tracepoint.c (scope_info): Ditto.
4733 * ax-gdb.c (trace_kludge): Export.
4734
4735 2010-04-20 Tom Tromey <tromey@redhat.com>
4736
4737 * dwarf2-frame.c (decode_frame_entry_1): Handle CIE version 4.
4738 (struct dwarf2_cie) <segment_size>: New field.
4739 * dwarf2read.c (partial_read_comp_unit_head): Accept DWARF 4.
4740 (skip_one_die): Handle DW_FORM_flag_present, DW_FORM_sec_offset,
4741 DW_FORM_exprloc.
4742 (read_attribute_value): Handle DW_FORM_flag_present,
4743 DW_FORM_sec_offset, DW_FORM_exprloc.
4744 (dump_die_shallow): Likewise.
4745 (attr_form_is_section_offset): Handle DW_FORM_sec_offset.
4746 (dwarf2_const_value): Handle DW_FORM_exprloc.
4747 (attr_form_is_block): Likewise.
4748 (struct line_header) <maximum_ops_per_instruction>: New field.
4749 (dwarf_decode_line_header): Set new field.
4750 (dwarf_decode_lines): Handle new field.
4751
4752 2010-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4753
4754 * f-exp.y: Add new production to recognize the `logical*8' type.
4755 (LOGICAL_S8_KEYWORD): New token.
4756 * f-lang.c (enum f_primitive_types)
4757 <f_primitive_type_logical_s8>: New field.
4758 (f_language_arch_info): Handling `logical*8' type.
4759 (build_fortran_types): Building `logical*8' type.
4760 * f-lang.h (struct builtin_f_type) <builtin_logical_s8>: New field.
4761
4762 2010-04-19 Doug Evans <dje@google.com>
4763
4764 * ser-base.c (generic_readchar): Watch for EOF in read of error_fd.
4765 * ser-pipe.c (pipe_open): Fix file descriptor leaks.
4766 (pipe_close): Ditto.
4767
4768 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
4769
4770 * configure.tgt (x86_64-*-mingw*): Set BUILD_GDBSERVER to yes.
4771
4772 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
4773
4774 * windows-tdep.c (windows_get_tlb_type): Change current_seh.handle
4775 type to void function.
4776
4777 2010-04-19 Stan Shebs <stan@codesourcery.com>
4778 Vladimir Prus <vladimir@codesourcery.com>
4779
4780 * tracepoint.c (tfind_1): Add missing newline, report exit from
4781 tfind mode as such.
4782 * target.c (update_current_target): Make default
4783 to_trace_find return -1.
4784
4785 2010-04-19 Mike Frysinger <vapier@gentoo.org>
4786
4787 * objc-lang.c (find_methods): Move symname check up.
4788
4789 2010-04-19 Pedro Alves <pedro@codesourcery.com>
4790
4791 * ada-lang.c (print_recreate_exception)
4792 <ex_catch_exception_unhandled>: It's "catch exception unhandled",
4793 not "catch unhandled".
4794
4795 2010-04-19 Pedro Alves <pedro@codesourcery.com>
4796
4797 PR breakpoints/8554.
4798
4799 Implement `save-breakpoints'.
4800
4801 * breakpoint.c (save_cmdlist): New.
4802 (breakpoint_set_cmdlist, breakpoint_show_cmdlist): Moved up close
4803 to save_cmdlist.
4804 (print_recreate_catch_fork): New.
4805 (catch_fork_breakpoint_ops): Install it.
4806 (print_recreate_catch_vfork): New.
4807 (catch_vfork_breakpoint_ops): Install it.
4808 (print_recreate_catch_syscall): New.
4809 (catch_syscall_breakpoint_ops): Install it.
4810 (print_recreate_catch_exec): New.
4811 (catch_exec_breakpoint_ops): Install it.
4812 (print_recreate_exception_catchpoint): New.
4813 (gnu_v3_exception_catchpoint_ops): Install it.
4814 (save_breakpoints): New, based on tracepoint_save_command, but
4815 handle all breakpoint types.
4816 (save_breakpoints_command): New.
4817 (tracepoint_save_command): Rename to...
4818 (save_tracepoints_command): ... this, and reimplement using
4819 save_breakpoints.
4820 (save_command): New.
4821 (_initialize_breakpoints): Install the "save" command prefix.
4822 Install the "save breakpoints" command. Make "save-tracepoints" a
4823 deprecated alias for "save tracepoints".
4824 * breakpoint.h (struct breakpoint_ops): New field `print_recreate'.
4825 * ada-lang.c (print_recreate_exception): New.
4826 (print_recreate_catch_exception): New.
4827 (catch_exception_breakpoint_ops): Install it.
4828 (print_recreate_catch_exception_unhandled): New.
4829 (catch_exception_unhandled_breakpoint_ops): Install it.
4830 (print_recreate_catch_assert): New.
4831 (catch_assert_breakpoint_ops): Install it.
4832
4833 * NEWS: Mention the new `save breakpoints' command. Mention the
4834 new `save tracepoints' alias and that `save-tracepoints' is now
4835 deprecated.
4836
4837 2010-04-18 Pedro Alves <pedro@codesourcery.com>
4838
4839 PR tui/9217
4840
4841 * tui/tui-out.c: Include cli-out.h.
4842 (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
4843 (tui_begin, tui_end, tui_field_int, tui_field_skip)
4844 (tui_field_string, tui_field_fmt, tui_spaces, tui_text)
4845 (tui_message, tui_wrap_hint, tui_flush): Delete forward
4846 declarations.
4847 (struct ui_out_data): Rename to...
4848 (struct tui_ui_out_data): ... this. Remove `stream' and
4849 `suppress_output' fields, and inherit cli_ui_out_data.
4850 (tui_out_data): New typedef.
4851 (tui_ui_out_impl): Don't initialize fields staticaly.
4852 (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
4853 (tui_begin, tui_end): Delete.
4854 (tui_field_int): Adjust to delegate most work to the base type.
4855 (tui_field_skip): Delete.
4856 (tui_field_string, tui_field_fmt): Adjust comment. Adjust to
4857 delegate most work to the base type.
4858 (tui_spaces): Delete.
4859 (tui_text): Adjust to delegate most work to the base type.
4860 (tui_message): Delete.
4861 (tui_wrap_hint): Delete.
4862 (tui_flush): Delete.
4863 (out_field_fmt): Delete.
4864 (field_separator): Delete.
4865 (tui_out_new): Adjust to initialize the base type.
4866 (_initialize_tui_out): Initialize tui_ui_out_impl.
4867 * cli-out.c (struct ui_out_data): Moved out to cli-out.h, renamed
4868 cli_ui_out_data.
4869 (cli_out_data): Adjust.
4870 (cli_ui_out_impl): Make extern.
4871 (cli_table_header, cli_field_int, cli_field_skip): Use
4872 uo_field_string instead of cli_field_string.
4873 (cli_redirect): Adjust to use cli_out_data.
4874 (cli_out_data_ctor): New.
4875 (cli_out_new): Use it.
4876 * cli-out.h (struct ui_file): Remove forward declaration.
4877 (struct cli_ui_out_data): New, moved from cli-out.c, and renamed.
4878 (cli_ui_out_impl): Declare.
4879 (cli_out_data_ctor): Declare.
4880 * ui-out.c (struct ui_out) <data>: Change type to void pointer.
4881 (uo_field_string): No longer static.
4882 (ui_out_data): Change return type to void pointer.
4883 (ui_out_new): Change `data' parameter type to void pointer.
4884 * ui-out.h (struct ui_out_data): Don't forward declare.
4885 (ui_out_data): Change return type to void pointer.
4886 (ui_out_new): Change `data' parameter type to void pointer.
4887 (uo_field_string): Declare.
4888
4889 2010-04-17 Pedro Alves <pedro@codesourcery.com>
4890
4891 * ui-file.c (tee_file_isatty): Return whether `tee->one' is a tty,
4892 instead of always false.
4893
4894 2010-04-17 H.J. Lu <hongjiu.lu@intel.com>
4895
4896 PR corefiles/11511
4897 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Support
4898 orig_rax.
4899
4900 2010-04-17 Pedro Alves <pedro@codesourcery.com>
4901
4902 * breakpoint.c (watchpoints_triggered): Use
4903 is_hardware_watchpoint.
4904 (watchpoints_triggered): Ditto.
4905 (bpstat_check_location): Use is_watchpoint and
4906 is_hardware_watchpoint.
4907 (bpstat_check_watchpoint): Use is_watchpoint and
4908 is_hardware_watchpoint.
4909 (bpstat_stop_status): Fix comment.
4910 (user_settable_breakpoint): Use is_watchpoint.
4911 (hw_watchpoint_used_count): Use is_hardware_watchpoint.
4912 (disable_watchpoints_before_interactive_call_start): Use
4913 is_watchpoint.
4914 (enable_watchpoints_after_interactive_call_stop): Use
4915 is_watchpoint.
4916 (clear_command): Use is_watchpoint.
4917 (do_enable_breakpoint): Use is_watchpoint.
4918
4919 2010-04-16 Mike Frysinger <vapier@gentoo.org>
4920
4921 * solib-frv.c (enable_break1_done): Delete.
4922 (enable_break2): Do not check enable_break1_done. Move the
4923 enable_break2_done setting and call to
4924 remove_solib_event_breakpoints() to the end. Return without
4925 warning when the contents of _dl_debug_addr are 0.
4926 (enable_break): Do not set enable_break1_done.
4927 (frv_clear_solib): Likewise.
4928
4929 2010-04-16 Kevin Buettner <kevinb@redhat.com>
4930
4931 * m32c-tdep.c (m32c_m16c_address_to_pointer): Print warning
4932 instead of an error if no PLT entry is found. Return a
4933 potentially useful result.
4934 (m32c_m16c_pointer_to_address): Add code to search for function
4935 address when no .plt entry is found.
4936
4937 2010-04-16 Stan Shebs <stan@codesourcery.com>
4938
4939 * tracepoint.c (trace_variable_command): Run a cleanup.
4940
4941 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
4942
4943 * p-lang.c (pascal_one_char): Do not restrict C to 0..255 range.
4944
4945 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
4946
4947 Support for Windows OS Thread Information Block.
4948 * NEWS: Document new feature.
4949 * remote.c (PACKET_qGetTIBAddr): New enum element.
4950 (remote_get_tib_address): New function.
4951 (init_remote_ops): Set to_get_tib_address field
4952 to remote_get_tib_address.
4953 (_initialize_remote): Add add_packet_config_cmd
4954 for PACKET_qGetTIBAddr.
4955 * target.c (update_current_target): Set default value for
4956 new to_get_tib_address field.
4957 * target.h (target_ops): New field to_get_tib_address.
4958 (target_get_tib_address): New macro.
4959 * windows-nat.c (thread_info): Add thread_local_base field.
4960 (windows_add_thread): Add tlb argument of type 'void *'.
4961 (fake_create_process): Adapt windows_add_thread call.
4962 (get_windows_debug_event): Idem.
4963 (windows_get_tib_address): New function.
4964 (init_windows_ops): Set to_get_tib_address field
4965 to remote_get_tib_address.
4966 (_initialize_windows_nat): Replace info_w32_cmdlist
4967 initialization by a call to init_w32_command_list.
4968 (info_w32_command, info_w32_cmdlist): Removed from here...
4969 to windows-tdep.c file.
4970 * windows-tdep.h (info_w32_cmdlist): Declare.
4971 (init_w32_command_list): New external function
4972 declaration.
4973 * windows-tdep.c: Add several headers.
4974 (info_w32_cmdlist): to here, made global.
4975 (thread_information_32): New struct.
4976 (thread_information_64): New struct.
4977 (TIB_NAME): New char array.
4978 (MAX_TIB32, MAX_TIB64, FULL_TIB_SIZE): New constants.
4979 (maint_display_all_tib): New static variable.
4980 (windows_get_tlb_type): New function.
4981 (tlb_value_read, tlb_value_write): New functions.
4982 (tlb_value_funcs): New static struct.
4983 (tlb_make_value): New function.
4984 (display_one_tib): New function.
4985 (display_tib): New function.
4986 (show_maint_show_all_tib):New function.
4987 (info_w32_command): Moved from windows-nat.c.
4988 (init_w32_command_list): New function.
4989 (_initialize_windows_tdep): New function.
4990 New "maint set/show show-all-tib" command
4991 New "$_tlb" internal variable.
4992
4993 2010-04-16 Joel Brobecker <brobecker@adacore.com>
4994
4995 * tui/tui-regs.c (tui_display_register): Add comment about
4996 a couple of casts.
4997 * tui/tui-stack.c (tui_show_locator_content): Ditto.
4998
4999 2010-04-15 Stan Shebs <stan@codesourcery.com>
5000
5001 * frame.c: Include tracepoint.h.
5002 (get_current_frame): Allow a trace frame to be an alternate source
5003 of stack frame data.
5004 * tracepoint.c (tfind_1): Don't try to get current stack frame if
5005 it won't succeed.
5006
5007 2010-04-15 Pedro Alves <pedro@codesourcery.com>
5008
5009 * ppc-linux-tdep.c (bsd_uthread_solib_loaded): Always pass 0 for
5010 flags.
5011 * solib-spu.c (spu_solib_loaded): Always pass 0 for flags.
5012
5013 2010-04-15 Doug Evans <dje@google.com>
5014
5015 * NEWS: Add entry for python program space support.
5016 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-progspace.o.
5017 (SUBDIR_PYTHON_SRCS): Add py-progspace.c.
5018 (py-progspace.o): New rule.
5019 * python/py-prettyprint.c (find_pretty_printer_from_objfiles): New
5020 function.
5021 (find_pretty_printer_from_progspace): New function.
5022 (find_pretty_printer_from_gdb): New function.
5023 (find_pretty_printer): Rewrite.
5024 * python/py-progspace.c: New file.
5025 * python/python-internal.h (program_space): Add forward decl.
5026 (pspace_to_pspace_object, pspy_get_printers): Declare.
5027 (gdbpy_initialize_pspace): Declare.
5028 * python/python.c: #include "progspace.h".
5029 (gdbpy_get_current_progspace, gdbpy_progspaces): New functions.
5030 (_initialize_python): Call gdbpy_initialize_pspace.
5031 (GdbMethods): Add current_progspace, progspaces.
5032
5033 Add -s option to source command.
5034 * NEWS: Document new option.
5035 * cli/cli-cmds.c (find_and_open_script): Add function comment.
5036 Delete from_tty and cleanupp args. Split filep arg into file and
5037 full_pathp. New arg search_path.
5038 (source_script_from_stream): New function.
5039 (source_script_with_search): New function.
5040 (source_script): Rewrite.
5041 (source_command): Parse "-s" option.
5042 (init_cli_cmds): Add "-s" docs to source command help, and reformat.
5043 * python/python.c (source_python_script): Make file arg a const char *.
5044 Don't call fclose, leave for caller.
5045 * python/python.h (source_python_script): Update.
5046
5047 2010-04-14 Daniel Jacobowitz <dan@codesourcery.com>
5048 Pedro Alves <pedro@codesourcery.com>
5049
5050 Avoid rereading shared libraries that haven't changed.
5051
5052 * solib.c (free_so_symbols): New function, from ...
5053 (free_so): ... here. Call it.
5054 (solib_read_symbols): Don't warn here if symbols have already been
5055 loaded.
5056 (solib_add): Warn here instead, if a pattern was specified.
5057 (reload_shared_libraries_1): New.
5058 (reload_shared_libraries): Rewrite to not fetch the library list.
5059
5060 2010-04-14 Doug Evans <dje@google.com>
5061
5062 * source.c (openp): Strip DOS drive letter if present before
5063 concatenating string to search path.
5064
5065 2010-04-14 Pedro Alves <pedro@codesourcery.com>
5066
5067 * objfiles.h (gdb_bfd_close_or_warn): Declare.
5068 * objfiles.c (gdb_bfd_close_or_warn): New.
5069 * corelow.c: Include objfiles.h
5070 (core_close): Use gdb_bfd_close_or_warn.
5071 * elfread.c (build_id_verify): Ditto.
5072 * exec.c (exec_close, exec_close_1): Ditto.
5073
5074 2010-04-14 Daniel Jacobowitz <dan@codesourcery.com>
5075 Pedro Alves <pedro@codesourcery.com>
5076
5077 Group errors for many missing shared libraries.
5078
5079 * solist.h (struct so_list): Remove from_tty.
5080 * solib.c (solib_bfd_open): Return NULL if we failed to open a BFD.
5081 (solib_map_sections): Take so_list argument. Return 0 if we
5082 failed to open a BFD. Add target sections here.
5083 (symbol_add_stub): Delete.
5084 (solib_read_symbols): Inline symbol_add_stub. Use current flags,
5085 not from_tty copied from the so_list. Don't warn a second time
5086 for a missing library.
5087 (update_solib_list): Don't save from_tty. Use TRY_CATCH. Do not
5088 add to the section table here. Print out a single warning for all
5089 missing libraries.
5090 * bsd-uthread.c (bsd_uthread_solib_loaded): Always pass 0 for
5091 flags.
5092
5093 2010-04-14 Phil Muldoon <pmuldoon@redhat.com>
5094
5095 * python/py-block.c (gdbpy_block_for_pc): Use i8n to encompass
5096 error/warning messages. Capitalize and use complete sentences.
5097 (blpy_block_syms_iternext): Likewise.
5098 * python/py-cmd.c (parse_command_name, cmdpy_init): Likewise.
5099 * python/py-frame.c (FRAPY_REQUIRE_VALID, frapy_block)
5100 (frame_info_to_frame_object, frapy_read_var)
5101 (gdbpy_frame_stop_reason_string): Likewise.
5102 * python/py-lazy-string.c (stpy_convert_to_value)
5103 (gdbpy_create_lazy_string_object): Likewise.
5104 * python/py-objfile.c (objfpy_set_printers): Likewise.
5105 * python/py-prettyprint.c (gdbpy_default_visualizer): Likewise.
5106 * python/python.c (parameter_to_python): Likewise.
5107 * python/py-type.c (typy_range, typy_target): Likewise.
5108 * python/py-value.c (valpy_cast, valpy_length, valpy_getitem)
5109 (valpy_richcompare, valpy_int, valpy_long, valpy_float): Likewise.
5110
5111
5112 2010-04-14 Phil Muldoon <pmuldoon@redhat.com>
5113
5114 PR python/11381
5115
5116 * python/py-prettyprint.c (pretty_print_one_value): Test for
5117 Py_None.
5118 (print_string_repr): Test for Py_None. Set flags accordingly.
5119 Return value depending on return type.
5120 (print_children): Take a value indicating whether data was printed
5121 before this function was called. Alter output accordingly.
5122 (apply_val_pretty_printer): Capture return value from
5123 print_string_repr and pass to print_children.
5124
5125 2010-04-13 Mark Kettenis <kettenis@gnu.org>
5126
5127 PR corefiles/11481
5128 * i386-linux-tdep.c (i386_linux_regset_sections): Remove extended
5129 register note sections.
5130 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
5131 New variables.
5132 (i386_linux_init_abi): Install list of supported register note
5133 sections that matches the target description.
5134
5135 2010-04-13 Pedro Alves <pedro@codesourcery.com>
5136
5137 * remote.c (remote_get_noisy_reply): Don't error out on empty
5138 replies.
5139 (remote_start_remote): Update and merge tracepoints and trace
5140 state variables as long as the target supports tracepoints.
5141 (remote_trace_init): Fix prototype.
5142 (remote_download_trace_state_variable): Validate reply.
5143 (remote_trace_set_readonly_regions): Fix prototype.
5144 (remote_trace_start): Fix prototype. Check for empty reply.
5145 (remote_get_trace_status): Small cleanup.
5146 (remote_trace_stop): Fix prototype. Check for empty reply.
5147 (remote_trace_find): Check for empty reply.
5148 (remote_save_trace_data): Validate reply.
5149 (remote_set_disconnected_tracing): Check for empty reply, and
5150 validate reply.
5151 (remote_set_circular_trace_buffer): Ditto.
5152
5153 2010-04-13 Pierre Muller <muller@ics.u-strasbg.fr>
5154
5155 Suppress unused value warning during compilation.
5156 * tui/tui-regs.c (tui_display_register): Cast wstandout and wstandend
5157 calls to void.
5158 * tui/tui-stack.c (tui_show_locator_content): Likewise.
5159
5160 2010-04-12 Stan Shebs <stan@codesourcery.com>
5161
5162 * tracepoint.c (tfile_xfer_partial): Check read result.
5163
5164 2010-04-12 Mike Frysinger <vapier@gentoo.org>
5165
5166 * remote-m32r-sdi.c (m32r_files_info): Add const to local "file" var.
5167 * remote-sim.c (gdbsim_files_info): Likewise.
5168
5169 2010-04-12 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
5170
5171 * arm-tdep.h (gdb_regnum): Add ARM_FPSCR_REGNUM
5172 * arm-linux-nat.c (arm_linux_vfp_register_count): New
5173 variable.
5174 (fetch_vfp_registers): New function to fetch VFP registers.
5175 (store_vfp_registers): New function to store VFP registers.
5176 (arm_linux_fetch_inferior_registers): Add support for VFP
5177 registers.
5178 (arm_linux_store_inferior_registers): Likewise.
5179 (arm_linux_read_description): Likewise.
5180 (_initialize_arm_linux_nat): Delay initialising iWMMX tdesc
5181 until we need it.
5182
5183 2010-04-11 H.J. Lu <hongjiu.lu@intel.com>
5184
5185 * amd64-tdep.c (amd64_supply_xstateregset): Remove the unused
5186 tdep.
5187 (amd64_collect_xstateregset): Likewise.
5188
5189 2010-04-09 Stan Shebs <stan@codesourcery.com>
5190
5191 * tracepoint.c (trace_status_mi): Report frames created.
5192
5193 * tracepoint.c (trace_dump_command): Include default-collect
5194 expressions.
5195
5196 2010-04-09 Ulrich Weigand <uweigand@de.ibm.com>
5197
5198 * symtab.c (find_function_start_sal): Never return SAL pointing
5199 before function start address, even if line info is missing.
5200
5201 2010-04-09 Pedro Alves <pedro@codesourcery.com>
5202
5203 * NEWS: Mention tracepoints support.
5204
5205 2010-04-09 Pedro Alves <pedro@codesourcery.com>
5206
5207 * tracepoint.c (trace_status_mi): Report disconnected tracing and
5208 circular trace buffer statuses.
5209
5210 2010-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
5211
5212 * config/djgpp/fnchange.lst: Fix typo in translations for
5213 symbol-without-target_section.exp and symbol-without-target_section.c.
5214
5215 2010-04-09 Pedro Alves <pedro@codesourcery.com>
5216
5217 * breakpoint.c (condition_command): Pass condition expression to
5218 set_breakpoint_condition stripped from breakpoint number.
5219
5220 2010-04-09 Phil Muldoon <pmuldoon@redhat.com>
5221 Thiago Jung Bauermann <bauerman@br.ibm.com>
5222 Tom Tromey <tromey@redhat.com>
5223
5224 * breakpoint.c (condition_command): Simplify. Move condition
5225 setting code to ...
5226 (set_breakpoint_condition): ... here. New function.
5227 * breakpoint.h (set_breakpoint_condition): Declare.
5228 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpoint.
5229 (SUBDIR_PYTHON_SRCS): Likewise.
5230 (py-breakpoint.o): New rule.
5231 * python/py-breakpoint.c: New file.
5232 * python/python-internal.h (gdbpy_breakpoints)
5233 (gdbpy_initialize_breakpoints): Declare.
5234 (GDB_PY_SET_HANDLE_EXCEPTION) Define.
5235
5236 2010-04-09 Pedro Alves <pedro@codesourcery.com>
5237
5238 * regformats/regdat.sh: Include server.h. Don't include
5239 regcache.h.
5240
5241 2010-04-08 Stan Shebs <stan@codesourcery.com>
5242 Pedro Alves <pedro@codesourcery.com>
5243
5244 * tracepoint.h (struct trace_status): New fields disconnected_tracing
5245 and circular_buffer.
5246 (disconnect_tracing): Rename from disconnect_or_stop_tracing.
5247 * tracepoint.c (trace_status_command): Display target's status for
5248 disconnected tracing and circular buffer.
5249 (disconnect_tracing): Rename from disconnect_or_stop_tracing, add
5250 query for non-disconnected-tracing case, remove the stop_tracing
5251 call.
5252 (tfile_open): Clear disconnected and circular buffer status.
5253 (trace_save): Save disconnected and circular buffer status.
5254 (parse_trace_status): Parse disconnected and circular buffer status,
5255 also recognize disconnected as a stop reason.
5256 * remote.c (remote_set_disconnected_tracing): Only set
5257 QTDisconnected if the remote end supports disconnected tracing.
5258 Warn otherwise, if trying to enable disconnected tracing.
5259 * infcmd.c (detach_command): Update disconnect_tracing call.
5260 * cli/cli-cmds.c (quit_command): Ditto.
5261
5262 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
5263
5264 * i387-tdep.c (i387_collect_xsave): Replace abort with
5265 internal_error.
5266
5267 2010-04-08 Stan Shebs <stan@codesourcery.com>
5268
5269 * breakpoint.c (default_collect_info): New function.
5270 (breakpoints_info): Call it.
5271 (maintenance_info_breakpoints): Ditto.
5272 (tracepoints_info): Ditto.
5273
5274 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
5275
5276 * i387-tdep.c (i387_collect_xsave): Re-indent.
5277
5278 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
5279
5280 * i386-linux-nat.c (have_ptrace_getfpxregs): Initialize to -1
5281 if HAVE_PTRACE_GETFPXREGS is defined.
5282 (i386_linux_read_description): Set have_ptrace_getfpxregs and
5283 have_ptrace_getregset to 0 if ptrace PTRACE_GETFPXREGS failed.
5284
5285 * i386-linux-tdep.c: Include "features/i386/i386-mmx-linux.c"
5286 (i386_linux_core_read_description): Return tdesc_i386_mmx_linux
5287 if .reg-xfp section doesn't exist.
5288 (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_mmx_linux.
5289
5290 * i386-linux-tdep.h (tdesc_i386_mmx_linux): New.
5291
5292 * i386-tdep.c: Include "features/i386/i386-mmx.c".
5293 (i386_go32_init_abi): Set tdesc to tdesc_i386_mmx.
5294 (i386_validate_tdesc_p): Make org.gnu.gdb.i386.sse optional. Set
5295 xcr0 to I386_XSTATE_X87_MASK if SSE isn't available.
5296 (i386_gdbarch_init): Update comments.
5297 (_initialize_i386_tdep): Call initialize_tdesc_i386_mmx.
5298
5299 * common/i386-xstate.h (I386_XSTATE_X87_MASK): New.
5300
5301 * config/djgpp/fnchange.lst: Add i386 MMX XML files.
5302
5303 * features/Makefile (i386/i386-mmx-expedite): New.
5304 (i386/i386-mmx-linux-expedite): Likewise.
5305 ($(outdir)/i386/i386-mmx.dat): Likewise.
5306 ($(outdir)/i386/i386-mmx-linux.dat): Likewise.
5307
5308 * features/i386/i386-mmx-linux.c: New.
5309 * features/i386/i386-mmx-linux.xml: Likewise.
5310 * features/i386/i386-mmx.c: Likewise.
5311 * features/i386/i386-mmx.xml: Likewise.
5312 * regformats/i386/i386-mmx-linux.dat: Likewise.
5313 * regformats/i386/i386-mmx.dat: Likewise.
5314
5315 * features/Makefile (WHICH): Add i386/i386-mmx and
5316 i386/i386-mmx-linux.
5317
5318 2010-04-08 Doug Evans <dje@google.com>
5319
5320 * source.c (openp): Skip $cdir in PATH.
5321
5322 2010-04-08 Phil Muldoon <pmuldoon@redhat.com>
5323
5324 PR python/11417
5325 * python/py-lazy-string.c (stpy_convert_to_value): Check for
5326 a NULL address.
5327 (gdbpy_create_lazy_string_object): Allow strings with a NULL
5328 address and a zero length.
5329
5330 2010-04-08 Hui Zhu <teawater@gmail.com>
5331
5332 * i386-tdep.c (i386_process_record): Add support for insn
5333 rdtsc.
5334
5335 2010-04-07 Doug Evans <dje@google.com>
5336
5337 * python/python.c (source_python_script): Use ensure_python_env
5338 to prepare environment for script.
5339
5340 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
5341
5342 * amd64-linux-nat.c: Include "regset.h", "elf/common.h",
5343 <sys/uio.h> and "i386-xstate.h".
5344 (PTRACE_GETREGSET): New.
5345 (PTRACE_SETREGSET): Likewise.
5346 (have_ptrace_getregset): Likewise.
5347 (amd64_linux_gregset64_reg_offset): Include 16 upper YMM
5348 registers.
5349 (amd64_linux_gregset32_reg_offset): Include 8 upper YMM
5350 registers.
5351 (amd64_linux_fetch_inferior_registers): Support PTRACE_GETFPREGS.
5352 (amd64_linux_store_inferior_registers): Likewise.
5353 (amd64_linux_read_description): Check and enable AVX target
5354 descriptions.
5355
5356 * amd64-linux-tdep.c: Include "regset.h", "i386-linux-tdep.h"
5357 and "features/i386/amd64-avx-linux.c".
5358 (amd64_linux_regset_sections): New.
5359 (amd64_linux_core_read_description): Check and enable AVX
5360 target description.
5361 (amd64_linux_init_abi): Set xsave_xcr0_offset. Call
5362 set_gdbarch_core_regset_sections.
5363 (_initialize_amd64_linux_tdep): Call
5364 initialize_tdesc_amd64_avx_linux.
5365
5366 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Replace
5367 AMD64_MXCSR_REGNUM with AMD64_YMM15H_REGNUM.
5368 (tdesc_amd64_avx_linux): New.
5369 (amd64_linux_update_xstateregset): Likewise.
5370
5371 * amd64-tdep.c: Include "features/i386/amd64-avx.c".
5372 (amd64_ymm_names): New.
5373 (amd64_ymmh_names): Likewise.
5374 (amd64_register_name): Likewise.
5375 (amd64_supply_xstateregset): Likewise.
5376 (amd64_collect_xstateregset): Likewise.
5377 (amd64_supply_xsave): Likewise.
5378 (amd64_collect_xsave): Likewise.
5379 (AMD64_NUM_REGS): Removed.
5380 (amd64_dwarf_reg_to_regnum): Return %ymmN register number for
5381 %xmmN if AVX is available.
5382 (amd64_pseudo_register_name): Support pseudo YMM registers.
5383 (amd64_regset_from_core_section): Support .reg-xstate section.
5384 (amd64_init_abi): Set ymmh_register_names, num_ymm_regs
5385 and ymm0h_regnum. Call set_gdbarch_register_name.
5386 (amd64_init_abi): Call initialize_tdesc_amd64_avx.
5387
5388 * amd64-tdep.h (amd64_regnum): Add AMD64_YMM0H_REGNUM and
5389 AMD64_YMM15H_REGNUM.
5390 (AMD64_NUM_REGS): New.
5391 (amd64_supply_xsave): Likewise.
5392 (amd64_collect_xsave): Likewise.
5393 (amd64_register_name): Removed.
5394 (amd64_register_type): Likewise.
5395
5396 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
5397
5398 * i387-tdep.c: Include "i386-xstate.h".
5399 (XSAVE_XSTATE_BV_ADDR): New.
5400 (xsave_avxh_offset): Likewise.
5401 (XSAVE_AVXH_ADDR): Likewise.
5402 (i387_supply_xsave): Likewise.
5403 (i387_collect_xsave): Likewise.
5404
5405 * i387-tdep.h (I387_NUM_YMM_REGS): New.
5406 (I387_YMM0H_REGNUM): Likewise.
5407 (I387_YMMENDH_REGNUM): Likewise.
5408 (i387_supply_xsave): Likewise.
5409 (i387_collect_xsave): Likewise.
5410
5411 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
5412
5413 * i386-linux-nat.c: Include "regset.h", "elf/common.h",
5414 <sys/uio.h> and "i386-xstate.h".
5415 (PTRACE_GETREGSET): New.
5416 (PTRACE_SETREGSET): Likewise.
5417 (fetch_xstateregs): Likewise.
5418 (store_xstateregs): Likewise.
5419 (GETXSTATEREGS_SUPPLIES): Likewise.
5420 (regmap): Include 8 upper YMM registers.
5421 (i386_linux_fetch_inferior_registers): Support XSAVE extended
5422 state.
5423 (i386_linux_store_inferior_registers): Likewise.
5424 (i386_linux_read_description): Check and enable AVX target
5425 descriptions.
5426
5427 * i386-linux-tdep.c: Include "regset.h", "i387-tdep.h",
5428 "i386-xstate.h" and "features/i386/i386-avx-linux.c".
5429 (i386_linux_regset_sections): Add ".reg-xstate".
5430 (i386_linux_gregset_reg_offset): Include 8 upper YMM registers.
5431 (i386_linux_core_read_xcr0): New.
5432 (i386_linux_core_read_description): Check and enable AVX target
5433 description.
5434 (i386_linux_init_abi): Set xsave_xcr0_offset.
5435 (_initialize_i386_linux_tdep): Call
5436 initialize_tdesc_i386_avx_linux.
5437
5438 * i386-linux-tdep.h (I386_LINUX_ORIG_EAX_REGNUM): Replace
5439 I386_SSE_NUM_REGS with I386_AVX_NUM_REGS.
5440 (i386_linux_core_read_xcr0): New.
5441 (tdesc_i386_avx_linux): Likewise.
5442 (I386_LINUX_XSAVE_XCR0_OFFSET): Likewise.
5443
5444 * i386-tdep.c: Include "i386-xstate.h" and
5445 "features/i386/i386-avx.c".
5446 (i386_ymm_names): New.
5447 (i386_ymmh_names): Likewise.
5448 (i386_ymmh_regnum_p): Likewise.
5449 (i386_ymm_regnum_p): Likewise.
5450 (i386_xmm_regnum_p): Likewise.
5451 (i386_register_name): Likewise.
5452 (i386_ymm_type): Likewise.
5453 (i386_supply_xstateregset): Likewise.
5454 (i386_collect_xstateregset): Likewise.
5455 (i386_sse_regnum_p): Removed.
5456 (i386_pseudo_register_name): Support pseudo YMM registers.
5457 (i386_pseudo_register_type): Likewise.
5458 (i386_pseudo_register_read): Likewise.
5459 (i386_pseudo_register_write): Likewise.
5460 (i386_dbx_reg_to_regnum): Return %ymmN register number for
5461 %xmmN if AVX is available.
5462 (i386_regset_from_core_section): Support .reg-xstate section.
5463 (i386_register_reggroup_p): Supper upper YMM and YMM registers.
5464 (i386_process_record): Replace i386_sse_regnum_p with
5465 i386_xmm_regnum_p.
5466 (i386_validate_tdesc_p): Support org.gnu.gdb.i386.avx feature.
5467 Set ymmh_register_names, num_ymm_regs, ymm0h_regnum and xcr0.
5468 (i386_gdbarch_init): Set xstateregset. Set xsave_xcr0_offset.
5469 Call set_gdbarch_register_name. Replace I386_SSE_NUM_REGS with
5470 I386_AVX_NUM_REGS. Set ymmh_register_names, ymm0h_regnum and
5471 num_ymm_regs. Add num_ymm_regs to set_gdbarch_num_pseudo_regs.
5472 Set ymm0_regnum.
5473 (_initialize_i386_tdep): Call initialize_tdesc_i386_avx.
5474
5475 * i386-tdep.h (gdbarch_tdep): Add xstateregset, ymm0_regnum,
5476 xcr0, xsave_xcr0_offset, ymm0h_regnum, ymmh_register_names and
5477 i386_ymm_type.
5478 (i386_regnum): Add I386_YMM0H_REGNUM, and I386_YMM7H_REGNUM.
5479 (I386_AVX_NUM_REGS): New.
5480 (i386_xmm_regnum_p): Likewise.
5481 (i386_ymm_regnum_p): Likewise.
5482 (i386_ymmh_regnum_p): Likewise.
5483
5484 * common/i386-xstate.h: New.
5485
5486 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
5487
5488 * config/djgpp/fnchange.lst: Add x86 AVX XML files.
5489
5490 * features/Makefile (WHICH): Add i386/i386-avx,
5491 i386/i386-avx-linux, i386/x86-64-avx and i386/x86-64-avx-linux.
5492 (i386/i386-avx-expedite): New.
5493 (i386/i386-avx-linux-expedite): Likewise.
5494 (i386/x86-64-avx-expedite):Likewise.
5495 (i386/x86-64-avx-linux-expedite): Likewise.
5496 ($(outdir)/i386/i386-avx.dat): New dependency.
5497 ($(outdir)/i386/i386-avx-linux.dat): Likewise.
5498 ($(outdir)/i386/x86-avx-64.dat): Likewise.
5499 ($(outdir)/i386/x86-64-avx-linux.dat): Likewise.
5500
5501 * features/i386/32bit-avx.xml: New.
5502 * features/i386/64bit-avx.xml: Likewise.
5503 * features/i386/i386-avx-linux.c: Likewise.
5504 * features/i386/i386-avx-linux.xml: Likewise.
5505 * features/i386/i386-avx.c: Likewise.
5506 * features/i386/i386-avx.xml: Likewise.
5507 * features/i386/x86-64-avx-linux.c: Likewise.
5508 * features/i386/x86-64-avx-linux.xml: Likewise.
5509 * features/i386/x86-64-avx.c: Likewise.
5510 * features/i386/x86-64-avx.xml: Likewise.
5511 * regformats/i386/i386-avx-linux.dat: Likewise.
5512 * regformats/i386/i386-avx.dat: Likewise.
5513 * regformats/i386/x86-64-avx-linux.dat: Likewise.
5514 * regformats/i386/x86-64-avx.dat: Likewise.
5515
5516 2010-04-07 Doug Evans <dje@google.com>
5517
5518 * top.c (source_file_name): Make const char *.
5519 * top.h (source_file_name): Update.
5520 * cli/cli-script.c (source_cleanup_lines_args): Make old_file
5521 const char *.
5522 (script_from_file): Change `file' arg to const char *.
5523 * cli/cli-script.h (script_from_file): Update.
5524
5525 2010-04-06 Doug Evans <dje@google.com>
5526
5527 * cli/cli-cmds.c (source_command): Run cleanups.
5528
5529 2010-04-06 Stan Shebs <stan@codesourcery.com>
5530
5531 * defs.h (char_ptr): Move typedef here from...
5532 * ada-lang.c (char_ptr): Remove.
5533 * charset.c (char_ptr): Remove.
5534 * tracepoint.h (struct uploaded_string): Remove.
5535 (struct uploaded_tp): Use vectors for string arrays.
5536 * tracepoint.c (trace_save): Use vectors of actions.
5537 (parse_tracepoint_definition): Ditto.
5538 (get_uploaded_tp): Clear vectors.
5539 * breakpoint.c (create_tracepoint_from_upload): Use vectors.
5540 (next_cmd): Change to an int.
5541 (read_next_cmd): Use vector of command strings.
5542
5543 2010-04-06 Doug Evans <dje@google.com>
5544
5545 * top.h (source_script, cd_command): Delete.
5546 * main.c: #include "cli/cli-cmds.h"
5547
5548 2010-04-06 Kevin Buettner <kevinb@redhat.com>
5549
5550 * m32c-tdep.c (make_types): When calling `arch_type', pass size of
5551 type in bytes, not bits.
5552
5553 2010-04-06 Pierre Muller <muller@ics.u-strasbg.fr>
5554
5555 * stabsread.c (define_symbol): Add support for char
5556 and string constants.
5557
5558 2010-04-06 Pierre Muller <muller@ics.u-strasbg.fr>
5559
5560 Remove remaining "%ll" uses.
5561 * go32-nat.c (go32_pte_for_address): Replace "0x%llx" using
5562 hex_string call.
5563 * rs6000-nat.c (rs6000_ptrace64): Idem.
5564 * solib-pa64.c (pa64_current_sos): Idem.
5565 * solib-spu.c (spu_current_sos): Idem.
5566 * linux-nat.c (linux_nat_find_memory_regions): Replace "%lld" using
5567 plongest call.
5568 * nto-procfs.c (procfs_meminfo): Replace "0x%016llx" using
5569 phex (VAR, 8) call.
5570 * sh64-tdep.c (sh64_show_media_regs): Idem.
5571
5572 2010-04-05 Stan Shebs <stan@codesourcery.com>
5573
5574 * tracepoint.c: Include gdbcore.h.
5575 (tfile_xfer_partial): Return partial results, also try reading
5576 from executable.
5577 (tfile_has_all_memory): New function.
5578 (init_tfile_ops): Use it.
5579
5580 2010-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
5581
5582 PR gdb/10736:
5583 * xml-syscall.c (my_gdb_datadir): New variable to keep track of
5584 the changes in data-directory.
5585 (init_sysinfo): Reload the syscall XML file if the data-directory
5586 has changed.
5587
5588 2010-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
5589
5590 Code cleanup.
5591 * breakpoint.c (bpstat_stop_status): Use bpstat_causes_stop.
5592
5593 2010-04-04 Stan Shebs <stan@codesourcery.com>
5594 Nathan Sidwell <nathan@codesourcery.com>
5595
5596 * breakpoint.c (breakpoint_1): Add filter argument, return number of
5597 breakpoints printed.
5598 (is_hardware_watchpoint): Make argument const.
5599 (is_watchpoint): Ditto.
5600 (is_tracepoint): Merge of tracepoint_type and breakpoint_is_tracepoint,
5601 use it everywhere.
5602 (breakpoints_info): Pass NULL to breakpoint_1.
5603 (maintenance_info_breakpoints): Ditto.
5604 (watchpoints_info): New function.
5605 (tracepoints_info): Use breakpoint_1 filter.
5606 (set_ignore_count): Warn that tracepoint ignore count will be ignored.
5607 (_initialize_breakpoint): Make "info watchpoints" its own command.
5608 * breakpoint.h (is_tracepoint): Rename from breakpoint_is_tracepoint.
5609 * mi/mi-cmd-break.c (mi_cmd_break_commands): Use is_tracepoint.
5610
5611 2010-04-04 Stan Shebs <stan@codesourcery.com>
5612
5613 * tracepoint.c (tfile_fetch_registers): Add fallback case.
5614
5615 2010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5616
5617 * infcmd.c (run_command_1): Call proceed with regcache_read_pc address.
5618 * config/djgpp/fnchange.lst: Add translation for break-entry.exp.
5619
5620 2010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5621
5622 * breakpoint.c (bpstat_find_step_resume_breakpoint): Remove.
5623 * breakpoint.h (bpstat_find_step_resume_breakpoint): Remove.
5624
5625 2010-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5626
5627 * dwarf2read.c (read_namespace_type): Use common "return set_die_type"
5628 code form.
5629
5630 2010-04-02 Hui Zhu <teawater@gmail.com>
5631
5632 * i386-tdep.c (OT_DQUAD): New enum.
5633 (i386_process_record): Add code for MMX, 3DNow!, SSE, SSE2,
5634 SSE3, SSSE3 and SSE4.
5635
5636 2010-04-02 Hui Zhu <teawater@gmail.com>
5637
5638 * i386-tdep.c (i386_record_lea_modrm_addr): Remove useless
5639 "*addr = 0".
5640
5641 2010-04-02 Pedro Alves <pedro@codesourcery.com>
5642
5643 * tracepoint.c (trace_dump_actions): New, factored out from
5644 trace_dump_command, and adjusted to recurse into while-stepping's
5645 action list.
5646 (trace_dump_command): Use it.
5647
5648 2010-04-02 Pedro Alves <pedro@codesourcery.com>
5649
5650 * breakpoint.h (struct counted_command_line): Moved definition to
5651 breakpoint.c, and forward declare.
5652 (breakpoint_commands): Declare.
5653 * breakpoint.c (struct counted_command_line): Moved here.
5654 (breakpoint_commands): New.
5655 * tracepoint.c (encode_actions): Use breakpoint_commands.
5656 * remote.c (remote_download_tracepoint): Ditto.
5657
5658 2010-04-01 H.J. Lu <hongjiu.lu@intel.com>
5659
5660 * remote.c (remote_parse_stop_reply): Use hex_string instead
5661 of phex_nz for error.
5662
5663 2010-04-01 Stan Shebs <stan@codesourcery.com>
5664 Nathan Sidwell <nathan@codesourcery.com>
5665
5666 * tracepoint.h (enum actionline_type): Remove.
5667 (validate_actionline): Change return to void.
5668 * tracepoint.c (report_agent_reqs_errors): New function.
5669 (validate_actionline): Call it, change return to void, report errors
5670 more consistently.
5671 (collect_symbol): Call report_agent_reqs_errors.
5672 (encode_actions_1): Ditto.
5673 (encode_actions): Don't expect a result from validate_actionline.
5674
5675 2010-04-01 Stan Shebs <stan@codesourcery.com>
5676
5677 * tracepoint.c (trace_start_command): Confirm if trace is running.
5678 (trace_stop_command): Error if trace not running.
5679
5680 2010-04-01 H.J. Lu <hongjiu.lu@intel.com>
5681
5682 * amd64-tdep.c (amd64_byte_names): Add "ah", "bh", "ch", "dh".
5683 (AMD64_NUM_LOWER_BYTE_REGS): New.
5684 (amd64_pseudo_register_read): Handle "ah", "bh", "ch", "dh".
5685 (amd64_pseudo_register_write): Likewise.
5686 (amd64_init_abi): Set num_byte_regs to 20.
5687
5688 2010-04-01 Pedro Alves <pedro@codesourcery.com>
5689
5690 * breakpoint.c (multi_start, multi_end, last_was_multi): Delete.
5691 (prev_breakpoint_count): New.
5692 (set_breakpoint_count): Adjust.
5693 (rbreak_start_breakpoint_count): New.
5694 (start_rbreak_breakpoints): Adjust.
5695 (end_rbreak_breakpoints): Adjust.
5696 (struct commands_info) <arg>: New field.
5697 (do_map_commands_command): Tweak output to include breakpoint spec
5698 range.
5699 (commands_command_1): Adjust. Avoid setting an xfree cleanup if
5700 ARG was empty on entry. Set INFO's arg.
5701 (create_breakpoint): Adjust.
5702
5703 * NEWS: Clarify `commands' changes.
5704
5705 2010-04-01 Pedro Alves <pedro@codesourcery.com>
5706
5707 * tracepoint.c: Include stack.h.
5708 (struct add_local_symbols_data): New.
5709 (do_collect_symbol): New.
5710 (add_local_symbols): Rewrite using iterate_over_block_arg_vars and
5711 iterate_over_block_local_vars.
5712 * stack.c (print_block_frame_locals): Rewrite as ...
5713 (iterate_over_block_locals): ... this. Take a callback function
5714 pointer and generic data pointer, and call that instead of
5715 print_variable_and_value.
5716 (struct print_variable_and_value_data): New.
5717 (do_print_variable_and_value): New.
5718 (iterate_over_block_local_vars): New, abstracted out from
5719 print_frame_local_vars.
5720 (print_frame_local_vars): Rewrite using
5721 iterate_over_block_local_vars.
5722 (iterate_over_block_arg_vars): New, abstracted out from
5723 print_frame_arg_vars.
5724 (print_frame_arg_vars): Rewrite using iterate_over_block_arg_vars.
5725 * stack.h (iterate_over_block_arg_local_vars_cb): New typedef.
5726 (iterate_over_block_arg_vars, iterate_over_block_local_vars): Declare.
5727
5728 2010-03-31 Richard Earnshaw <rearnsha@arm.com>
5729
5730 * arm-tdep.c (thumb_get_next_pc_raw): Correctly detect TBH
5731 instructions. Use the PC+4 if the base of the TBB or TBH is the
5732 PC register.
5733
5734 2010-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
5735
5736 Fix crash on reading wrong function declaration DWARF.
5737 * dwarf2read.c (read_subroutine_type): New variable void_type.
5738 Pre-fill all TYPE_FIELD_TYPEs. Move nparams and iparams initialization
5739 more close to their use.
5740
5741 2010-03-31 Stan Shebs <stan@codesourcery.com>
5742
5743 * breakpoint.c (tracepoint_save_command): Include variables,
5744 conditionals, tracepoint types, and default-collect.
5745 * tracepoint.c (save_trace_state_variables): New function.
5746 * tracepoint.h (save_trace_state_variables): Declare it.
5747
5748 2010-03-31 Pierre Muller <muller@ics.u-strasbg.fr>
5749
5750 * remote.c (end_thread): ARI fix: Use xstrdup instead of strdup.
5751
5752 2010-03-30 Keith Seitz <keiths@redhat.com>
5753
5754 * c-typeprint.c (c_type_print_args): Don't print "void"
5755 for java, regardless of whether it is TYPE_PROTOTYPED.
5756 Use the passed-in language instead of current_language.
5757 (c_type_print_varspec_suffix): Use current_language instead
5758 of assuming language_c.
5759 * jv-typeprint.c (java_type_print_base): (bz 9320) Strip off
5760 any return type specifier from the physname.
5761
5762 2010-03-30 Pedro Alves <pedro@codesourcery.com>
5763
5764 * tui/tui-interp.c (tui_is_toplevel): New.
5765 (tui_init): Set it.
5766 (tui_allowed_p): New.
5767 * tui/tui.c (tui_enable): Check if the TUI is allowed before
5768 enabling it.
5769 * tui/tui.h (tui_allowed_p): Declare.
5770
5771 2010-03-30 Ozkan Sezer <sezeroz@gmail.com>
5772
5773 * serial.h: Include winsock2.h before windows.h.
5774
5775 2010-03-30 H.J. Lu <hongjiu.lu@intel.com>
5776
5777 * NEWS: Mention xmlRegisters= in qSupported packet.
5778
5779 * i386-tdep.c: Include "remote.h".
5780 (_initialize_i386_tdep): Call register_remote_support_xml.
5781
5782 * remote.c (remote_support_xml): New.
5783 (register_remote_support_xml): Likewise.
5784 (remote_query_supported_append): Likewise.
5785 (remote_query_supported): Support remote_support_xml.
5786
5787 * remote.h (register_remote_support_xml): New.
5788
5789 2010-03-29 Stan Shebs <stan@codesourcery.com>
5790
5791 * tracepoint.c (trace_find_line_command): Remove dead code.
5792
5793 * tracepoint.h (struct uploaded_string): New struct.
5794 (struct uploaded_tp): New fields for source strings.
5795 * breakpoint.c (this_utp, next_cmd): New globals.
5796 (read_uploaded_action): New function.
5797 (create_tracepoint_from_upload): Fill in more parts
5798 of a tracepoint.
5799 * tracepoint.c (encode_source_string): New function.
5800 (trace_save): Write out source strings, fix error checks.
5801 (parse_tracepoint_definition): Add source string parsing.
5802 * remote.c (PACKET_TracepointSource): New packet type.
5803 (remote_download_command_source): New function.
5804 (remote_download_tracepoint): Download source pieces also.
5805 (_initialize_remote): Add packet config command.
5806
5807 * tracepoint.c (collect_symbol): Send LOC_UNRESOLVED symbols to
5808 expression handler.
5809
5810 * tracepoint.c (start_tracing): Check tracepoints before sending
5811 commands to target, don't start if all tracepoints disabled.
5812
5813 2010-03-28 Pedro Alves <pedro@codesourcery.com>
5814
5815 * cli/cli-script.c (process_next_line): Handle 'stepping'.
5816
5817 2010-03-26 Stan Shebs <stan@codesourcery.com>
5818
5819 * tracepoint.c (disconnect_or_stop_tracing): Get out of tfind mode.
5820
5821 2010-03-26 Tom Tromey <tromey@redhat.com>
5822
5823 * breakpoint.c (commands_command_1): Duplicate 'arg'.
5824
5825 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
5826
5827 * breakpoint.c (expand_line_sal_maybe): Always call skip_prologue_sal.
5828 (skip_prologue_sal): Remove local definition.
5829 (resolve_sal_pc): Remove now unnecessary code.
5830 * linespec.c (minsym_found): Call skip_prologue_sal.
5831 * symtab.c (find_function_start_pc): Remove.
5832 (find_function_start_sal): Extract prologue skipping into ...
5833 (skip_prologue_sal): ... this new function. Handle code both
5834 with and without debug info. Respect SAL's explicit_pc and
5835 explicit_line flags. Inline old find_function_start_pc.
5836 * symtab.h (find_function_start_pc): Remove.
5837 (skip_prologue_sal): Add prototype.
5838
5839 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
5840
5841 * dwarf2read.c (read_func_scope): Also scan specification DIEs
5842 for DW_TAG_imported_module children.
5843
5844 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
5845
5846 * dwarf2read.c (dwarf2_name): Work around GCC bugzilla debug/41828 by
5847 ignoring spurious DW_AT_name attributes for unnamed structs or unions.
5848 * completer.c (add_struct_fields): Fix inverted logic.
5849
5850 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
5851
5852 * breakpoint.c (bpstat_clear_actions): Reset bs->commands_left.
5853
5854 2010-03-26 Pedro Alves <pedro@codesourcery.com>
5855
5856 * tracepoint.c (current_trace_status): Don't make sure error_desc
5857 is non-NULL here.
5858 (parse_trace_status): Release a previous error_desc string, and
5859 set it to NULL by default. If stop reason is tracepoint_error,
5860 make sure error_desc is not left NULL.
5861
5862 2010-03-26 Pedro Alves <pedro@codesourcery.com>
5863
5864 * tracepoint.c (trace_save): Remove X from tracepoint error
5865 description.
5866
5867 2010-03-26 Pedro Alves <pedro@codesourcery.com>
5868
5869 * tracepoint.c (parse_trace_status): Don't allow plain strings in
5870 the terror description. Don't expect an X prefix.
5871
5872 2010-03-25 Stan Shebs <stan@codesourcery.com>
5873
5874 * tracepoint.h (trace_stop_reason): Add tracepoint_error.
5875 (struct trace_status): New field error_desc.
5876 * tracepoint.c (stop_reason_names): Add terror.
5877 (current_trace_status): Ensure non-NULL error description.
5878 (trace_status_command): Add error report.
5879 (trace_status_mi): Ditto.
5880 (trace_save): Add special case for error description.
5881 (parse_trace_status): Add case for errors.
5882
5883 2010-03-25 Keith Seitz <keiths@redhat.com>
5884
5885 * dwarf2read.c (read_subroutine_type): If the compilation unit
5886 language is Java, mark any formal parameter named "this" as
5887 artificial (GCC/43521).
5888 (dwarf2_name): Add special handling for Java constructors.
5889
5890 2010-03-25 Tom Tromey <tromey@redhat.com>
5891
5892 PR gdb/11327, PR gdb/11328, PR breakpoints/11368:
5893 * infrun.c (handle_inferior_event): Change initialization of
5894 stop_stack_dummy.
5895 (handle_inferior_event): Change assignment to stop_stack_dummy.
5896 (normal_stop): Update use of stop_stack_dummy.
5897 (struct inferior_status) <stop_stack_dummy>: Change type.
5898 * inferior.h (stop_stack_dummy): Update.
5899 * infcmd.c (stop_stack_dummy): Change type.
5900 * infcall.c (cleanup_delete_std_terminate_breakpoint): New
5901 function.
5902 (call_function_by_hand): Call set_std_terminate_breakpoint.
5903 Rewrite std::terminate handling.
5904 * breakpoint.h (enum bptype) <bp_std_terminate,
5905 bp_std_terminate_master>: New.
5906 (enum stop_stack_kind): New.
5907 (struct bpstat_what) <call_dummy>: Change type.
5908 (set_std_terminate_breakpoint, delete_std_terminate_breakpoint):
5909 Declare.
5910 * breakpoint.c (create_std_terminate_master_breakpoint): New
5911 function.
5912 (update_breakpoints_after_exec): Handle bp_std_terminate_master.
5913 Call create_std_terminate_master_breakpoint.
5914 (print_it_typical): Handle new breakpoint kinds.
5915 (bpstat_stop_status): Handle bp_std_terminate_master.
5916 (bpstat_what): Correctly set call_dummy field. Handle
5917 bp_std_terminate_master and bp_std_terminate.
5918 (print_one_breakpoint_location): Update.
5919 (allocate_bp_location): Update.
5920 (set_std_terminate_breakpoint): New function.
5921 (delete_std_terminate_breakpoint): Likewise.
5922 (create_thread_event_breakpoint): Update.
5923 (delete_command): Update.
5924 (breakpoint_re_set_one): Update.
5925 (breakpoint_re_set): Call create_std_terminate_master_breakpoint.
5926
5927 2010-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
5928
5929 * symfile.c (build_section_addr_info_from_bfd): New.
5930 (build_section_addr_info_from_objfile): Base it on
5931 build_section_addr_info_from_bfd.
5932 (addrs_section_compar, addrs_section_sort): New.
5933 (addr_info_make_relative): New variables my_cleanup, abfd_addrs,
5934 addrs_sorted, abfd_addrs_sorted and addrs_to_abfd_addrs. Build
5935 addrs_to_abfd_addrs. Use it for recalculating ADDRS.
5936
5937 2010-03-24 Michael Snyder <msnyder@localhost.localdomain>
5938
5939 * elfread.c (find_separate_debug_file_by_buildid):
5940 Remove unused local variable.
5941
5942 2010-03-24 Tom Tromey <tromey@redhat.com>
5943
5944 PR breakpoints/9352:
5945 * NEWS: Mention changes to `commands' and `rbreak'.
5946 * symtab.c (do_end_rbreak_breakpoints): New function.
5947 (rbreak_command): Call start_rbreak_breakpoints; arrange to call
5948 end_rbreak_breakpoints.
5949 * breakpoint.c (breakpoint_count, tracepoint_count): Now static.
5950 (set_breakpoint_count): Likewise. Clear last_was_multi.
5951 (multi_start, multi_end, last_was_multi): New globals.
5952 (start_rbreak_breakpoints, end_rbreak_breakpoints): New
5953 functions.
5954 (struct commands_info): New
5955 (do_map_commands_command): New function.
5956 (commands_command_1): New function.
5957 (commands_command): Use it.
5958 (commands_from_control_command): Likewise.
5959 (do_delete_breakpoint): New function.
5960 (delete_command): Use it.
5961 (map_breakpoint_numbers): Add 'data' argument. Pass to callback.
5962 (do_map_disable_breakpoint): New function.
5963 (disable_command): Use it.
5964 (do_map_enable_breakpoint): New function.
5965 (enable_command): Use it.
5966 (enable_once_breakpoint): Add argument.
5967 (enable_once_command): Update.
5968 (enable_delete_breakpoint): Add argument.
5969 (enable_delete_command): Update.
5970 (break_command_really): Set last_was_multi when needed.
5971 (check_tracepoint_command): Fix formatting.
5972 (validate_commands_for_breakpoint): New function.
5973 (breakpoint_set_commands): Use it.
5974 (tracepoint_save_command): Update.
5975 * breakpoint.h (start_rbreak_breakpoints, end_rbreak_breakpoints):
5976 Declare.
5977
5978 2010-03-24 Tom Tromey <tromey@redhat.com>
5979
5980 * breakpoint.h (struct counted_command_line): New struct.
5981 (struct breakpoint) <commands>: Change type.
5982 (struct bpstats) <commands>: Change type.
5983 <commands_left>: New field.
5984 * breakpoint.c (alloc_counted_command_line): New function.
5985 (incref_counted_command_line): Likewise.
5986 (decref_counted_command_line): Likewise.
5987 (do_cleanup_counted_command_line): Likewise.
5988 (make_cleanup_decref_counted_command_line): Likewise.
5989 (breakpoint_set_commands): Use decref_counted_command_line and
5990 alloc_counted_command_line.
5991 (commands_command): Don't error if breakpoint commands are
5992 executing.
5993 (commands_from_control_command): Likewise.
5994 (bpstat_free): Update.
5995 (bpstat_copy): Likewise.
5996 (bpstat_clear_actions): Likewise.
5997 (bpstat_do_actions_1): Likewise.
5998 (bpstat_stop_status): Likewise.
5999 (print_one_breakpoint_location): Likewise.
6000 (delete_breakpoint): Likewise.
6001 (bpstat_alloc): Initialize new field.
6002 (tracepoint_save_command): Update.
6003 * tracepoint.c (encode_actions): Update.
6004 (trace_dump_command): Update.
6005
6006 2010-03-24 Daniel Jacobowitz <dan@codesourcery.com>
6007
6008 * dwarf2-frame.c (dwarf2_frame_find_quirks): Use producer_is_realview.
6009 * dwarf2read.c (load_full_comp_unit): Read DW_AT_producer.
6010 (read_structure_type): For RealView, set TYPE_STUB on structures with
6011 no byte size and no children.
6012 (read_subroutine_type): Mark functions as prototyped by default.
6013 * symtab.c (producer_is_realview): New function.
6014 * symtab.h (expand_line_sal): Fix declaration formatting.
6015 (producer_is_realview): Declare.
6016
6017 2010-03-24 Daniel Jacobowitz <dan@codesourcery.com>
6018
6019 * arm-tdep.c (skip_prologue_function): New function.
6020 (submask, bit, bits, sbits, BranchDest): Move higher in the file.
6021 (thumb_analyze_prologue): Document return value. Recognize more
6022 Thumb instructions, skippable calls, and some Thumb-2 instructions.
6023 Add debug output.
6024 (arm_skip_prologue): Remove call dummy check. Check the prologue
6025 for non-GNU compilers.
6026 (arm_instruction_changes_pc): New function.
6027 (arm_analyze_prologue): New function, broken out from
6028 arm_scan_prologue. Recognize more ARM instructions and skippable
6029 calls. Update comments. Handle NULL cache. Return the address
6030 of the first unrecognized instruction. Do not skip past other
6031 instructions which change control flow. Add debug output.
6032 (arm_scan_prologue): Use arm_analyze_prologue.
6033 (ARM_PC_32): Delete.
6034 (shifted_reg_val): Simplify ARM_PC_32 check.
6035
6036 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
6037
6038 * tracepoint.c (tvariables_info_1): Actually compute
6039 the number of rows in the result.
6040
6041 2010-03-24 Pedro Alves <pedro@codesourcery.com>
6042
6043 * remote.c (crc32): Constify `buf' parameter.
6044 (remote_verify_memory): New, abstracted out from...
6045 (compare_sections_command): ... this. Remove hardcoded target
6046 checks.
6047 (init_remote_ops): Install remote_verify_memory.
6048 * target.c (target_verify_memory): New.
6049 * target.h (struct target_ops) <to_verify_memory>: New field.
6050 (target_verify_memory): Declare.
6051
6052 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
6053
6054 Implement -trace-save.
6055
6056 * mi-cmds.h (mi_cmds_trace_save): Declare.
6057 * mi-cmds.c (mi_cmds): Register -trace-save.
6058 * mi/mi-main.c (mi_cmd_trace_save): New.
6059 * remote.c (remote_save_trace_data): Take const parameter.
6060 * target.h (struct target_ops::to_save_trace_data): Take
6061 const parameter.
6062 * target.c (update_current_target): Adjust to the above.
6063 * tracepoint.c (trave_save): New, extracted from
6064 (trace_save_command): ...this.
6065 (tfile_trace_find): Remove message that is unnecessary now
6066 that 'tfind' reports found frame.
6067 * tracepoint.h (trace_save): Declare.
6068
6069 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
6070
6071 Implement -trace-find.
6072
6073 * mi/mi-cmds.c (mi_cmds): Register -trace-find.
6074 * mi/mi-cmds.h (mi_cmd_trace_find): Declare.
6075 * mi/mi-main.c (mi_cmd_trace_find): New.
6076 * target.h (struct target_ops): Document to_trace_find.
6077 * tracepoint.h (tfind_1): Declare.
6078 * tracepoint.c (finish_tfind_command): Rename to...
6079 (tfind_1): ...this.
6080 * remote.c (remote_trace_find): Return -1 if target say
6081 there's no frame. Improve error diagnostics.
6082
6083 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
6084
6085 -trace-define-variable and -trace-list-variables.
6086
6087 * tracepoint.c (create_trace_state_variable): Make
6088 private copy of name, as opposed to assuming the
6089 pointer lives forever.
6090 (tvariables_info_1): New.
6091 (tvariables_info): Use the above.
6092 * tracepoint.h (create_trace_state_variable, tvariables_info_1):
6093 Declare.
6094 * mi/mi-cmds.c (mi_cmds): Register -trace-define-variable
6095 and -trace-list-variables.
6096 * mi/mi-cmds.h (mi_cmd_trace_define_variable)
6097 (mi_cmd_trace_list_variables): New.
6098 * mi/mi-main.c (mi_cmd_trace_define_variable)
6099 (mi_cmd_trace_list_variables): New.
6100
6101 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
6102
6103 Implement -break-passcount.
6104
6105 * mi/mi-cmd-break.c (mi_cmd_break_passcount): New.
6106 * mi/mi-cmds.c (mi_cmds): Register -break-passcount.
6107 * mi/mi-cmds.h (mi_cmd_break_passcount): Declare.
6108
6109 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
6110
6111 -trace-start/-trace-end/-trace-status.
6112
6113 * mi/mi-cmds.c (mi_cmds): Register -trace-start, -trace-status
6114 and -trace-stop.
6115 * mi/mi-cmds.h (mi_cmd_trace_start, mi_cmd_trace_status)
6116 (mi_cmd_trace_stop): Declare.
6117 * mi/mi-main.c (mi_cmd_trace_start, mi_cmd_trace_status)
6118 (mi_cmd_trace_stop): New.
6119 * tracepoint.c (start_tracing): New, extracted from...
6120 (trace_start_command): ...this.
6121 (trace_status_mi): New.
6122 * tracepoint.h (struct trace_status): Document
6123 stopping_tracepoint.
6124 (start_tracing, stop_tracing, trace_status_mi): Declare.
6125
6126 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
6127
6128 Implement creating tracepoints with -break-insert.
6129
6130 * mi/mi-cmd-break.c (mi_cmd_break_insert): Handle -a
6131 to mean that tracepoint should be created.
6132
6133 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
6134
6135 * breakpoint.c (check_no_tracepoint_commands): Use
6136 current spelling of 'teval'.
6137
6138 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
6139
6140 Unify actions and commands
6141
6142 * defs.h (read_command_lines, read_command_lines_1): New
6143 parameters validator and closure.
6144 * tracepoint.h (struct action_line): Remove.
6145 * breakpoint.h (struct breakpoint): Remove the 'actions'
6146 field.
6147 * defs.h (enum command_control_type): New value
6148 while_stepping_control.
6149 (struct command_line): Add comments.
6150 * breakpoint.c (breakoint_is_tracepoint): New.
6151 (breakpoint_set_commands): For tracepoints,
6152 verify the commands are permissible.
6153 (check_tracepoint_commands): New.
6154 (commands_command): Require that each new line is validated using
6155 check_tracepoint_command, if we set commands for a tracepoint.
6156 (create_tracepoint_from_upload): Likewise.
6157 (print_one_breakpoint_location): Remove the code to print
6158 actions specifically.
6159 (tracepoint_save_command): Relay to print_command_lines.
6160 * cli/cli-script.c (process_next_line): New parameters validator
6161 and closure. Handle 'while-stepping'. Call validator if not null.
6162 (read_command_lines, read_command_lines1): Likewise.
6163 (recurse_read_control_structure): New parameters validator and
6164 closure. Handle while_stepping_control.
6165 (print_command_lines): Handle while-stepping.
6166 (get_command_line, define_command, document_command): Adjust.
6167 * remote.c (remote_download_tracepoint): Adjust.
6168 * tracepoint.c (make_cleanup_free_actions, read_actions)
6169 (free_actions, do_free_actions_cleanup): Remove.
6170 (trace_actions_command): Use read_command_lines.
6171 (validate_actionline): Use error in one place.
6172 (encode_actions_1): New, extracted from...
6173 (encode_actions): ...this. Also use cleanups for exception
6174 safety.
6175 (trace_dump_command): Adjust.
6176 * mi/mi-cmd-break (mi_cmd_break_commands): Validate commands if
6177 it's tracepoint.
6178
6179 2010-03-23 Mike Frysinger <vapier@gentoo.org>
6180
6181 * Makefile.in (OPCODES_CFLAGS): Add -I$(OPCODES_SRC)/..
6182
6183 2010-03-22 Stan Shebs <stan@codesourcery.com>
6184
6185 * value.c (value_static_field): Be lazy about the field's value.
6186
6187 2010-03-22 Reid Kleckner <reid@kleckner.net>
6188
6189 PR gdb/11094
6190 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): Add
6191 bp_jit_event.
6192 (disable_breakpoints_in_shlibs): Likewise.
6193
6194 2010-03-22 Ulrich Weigand <uweigand@de.ibm.com>
6195
6196 * dwarf2read.c (partial_die_parent_scope): Work around buggy
6197 GCC 4.1 debug info generation (GCC PR c++/28460).
6198 (determine_prefix): Likewise.
6199
6200 2010-03-20 Daniel Jacobowitz <dan@codesourcery.com>
6201
6202 * tui/tui-disasm.c (tui_get_begin_asm_address): Default to
6203 get_current_arch.
6204 * tui/tui-layout.c (extract_display_start_addr): Likewise.
6205
6206 2010-03-19 Stan Shebs <stan@codesourcery.com>
6207
6208 * ax-gdb.c (gen_fetch): Handle bool.
6209 (gen_usual_unary): Ditto.
6210 (gen_cast): Ditto.
6211 (gen_equal): New function.
6212 (gen_less): New function.
6213 (gen_expr_binop_rest): Call them, also return integer type from
6214 logical operations.
6215 (gen_expr): Ditto.
6216
6217 2010-03-19 Tom Tromey <tromey@redhat.com>
6218
6219 * jv-lang.c (jv_dynamics_objfile_data_key)
6220 (jv_type_objfile_data_key): New globals.
6221 (class_symtab): Move earlier.
6222 (jv_per_objfile_free): New function.
6223 (get_dynamics_objfile): Call set_objfile_data. Add 'gdbarch'
6224 parameter.
6225 Remove ancient #if 1.
6226 (add_class_symbol): Remove redundant declaration.
6227 (java_lookup_class): Use alloc_type, not alloc_type_arch.
6228 (java_link_class_type): Mark as static. Update.
6229 (jv_clear_object_type): New function.
6230 (set_java_object_type): Likewise.
6231 (get_java_object_type): Use set_java_object_type.
6232 (is_object_type): Likewise.
6233 (_initialize_java_language): Register new objfile keys.
6234 (get_java_class_symtab): Add 'gdbarch' parameter.
6235 (add_class_symtab_symbol): Update.
6236 (type_from_class): Update.
6237
6238 2010-03-19 Stan Shebs <stan@codesourcery.com>
6239
6240 * ax-general.c (ax_const_l): Fix a sizing bug.
6241
6242 2010-03-18 Joel Brobecker <brobecker@adacore.com>
6243
6244 GDB 7.1 released.
6245
6246 2010-03-18 Stan Shebs <stan@codesourcery.com>
6247 Pedro Alves <pedro@codesourcery.com>
6248
6249 * target.h (struct target_ops): New method
6250 to_set_circular_trace_buffer.
6251 (target_set_circular_trace_buffer): New macro.
6252 * target.c (update_current_target): Add
6253 to_set_circular_trace_buffer, fix to_set_disconnected_tracing
6254 default behavior.
6255 * remote.c (remote_set_circular_trace_buffer): New function.
6256 (init_remote_ops): Add it to vector.
6257 * tracepoint.h (struct trace_status): New field traceframes_created,
6258 change buffer_size and buffer_free to int.
6259 * tracepoint.c (circular_trace_buffer): New global.
6260 (start_tracing): Send values of disconnected tracing and circular
6261 trace buffer settings.
6262 (set_circular_trace_buffer): New function.
6263 (parse_trace_state): Handle total space and frames created.
6264 (trace_status_command): Display total space and total frames
6265 created.
6266 (trace_save): Write out new status values.
6267 (parse_trace_status): Set traceframe_count, traceframes_created,
6268 buffer_free and buffer_size to -1 by default.
6269 (_initialize_tracepoint): New setshow for circular-trace-buffer.
6270 * NEWS: Mention the circular trace buffer option.
6271
6272 2010-03-18 Tom Tromey <tromey@redhat.com>
6273
6274 * infcmd.c (finish_command_continuation): Wrap print_return_value
6275 in TRY_CATCH.
6276
6277 2010-03-18 Joel Brobecker <brobecker@adacore.com>
6278
6279 * dwarf2read.c (add_partial_subprogram): Make sure the subprogram
6280 DIE has a name before creating the associated partial symbol.
6281 (read_func_scope): Emit a complaint if the subprogram does not
6282 have a name or when we can't extract the subprogram PC bounds.
6283
6284 2010-03-18 Ulrich Weigand <uweigand@de.ibm.com>
6285
6286 * mi/mi-main.c (mi_cmd_list_thread_groups): Use get_current_arch
6287 instead of selected frame architecture.
6288
6289 2010-03-18 Pedro Alves <pedro@codesourcery.com>
6290
6291 * infcmd.c (until_command): Use ERROR_NO_INFERIOR. Ensure there's
6292 a valid selected thread, and that it is not running.
6293 (advance_command): Ditto.
6294 (finish_command): Ditto.
6295
6296 2010-03-17 Stan Shebs <stan@codesourcery.com>
6297
6298 * ax-gdb.c (require_rvalue): Disallow non-scalars.
6299
6300 * infcall.c: Include tracepoint.h.
6301 (call_function_by_hand): Disallow calls in tfind mode.
6302 * infcmd.c: Include tracepoint.h.
6303 (ensure_not_tfind_mode): New function.
6304 (continue_1): Call it.
6305 (step_1) Ditto.
6306 (jump_command): Ditto.
6307 (signal_command): Ditto.
6308 (advance_command): Ditto.
6309 (until_command): Ditto.
6310 (finish_command): Ditto.
6311 * tracepoint.h (disconnect_or_stop_tracing): Declare.
6312
6313 * ax-gdb.h (struct axs_value): New field optimized_out.
6314 (gen_trace_for_var): Add gdbarch argument.
6315 * ax-gdb.c (gen_trace_static_fields): New function.
6316 (gen_traced_pop): Call it, add gdbarch argument.
6317 (gen_trace_for_expr): Update call to it.
6318 (gen_trace_for_var): Ditto, and report optimized-out variables.
6319 (gen_struct_ref_recursive): Check for optimized-out value.
6320 (gen_struct_elt_for_reference): Ditto.
6321 (gen_static_field): Pass gdbarch instead of expression, assume
6322 optimization if field not found.
6323 (gen_var_ref): Set the optimized_out flag.
6324 (gen_expr): Error on optimized-out variable.
6325 * tracepoint.c (collect_symbol): Handle struct-valued vars as
6326 expressions, skip optimized-out variables with computed locations.
6327 * dwarf2loc.c (dwarf2_tracepoint_var_ref): Flag instead of
6328 erroring out if location expression missing.
6329 (loclist_tracepoint_var_ref): Don't error out here.
6330
6331 2010-03-17 Tom Tromey <tromey@redhat.com>
6332
6333 * dwarf2read.c (dwarf2_get_section_info): Handle case where no
6334 DWARF data is available.
6335
6336 2010-03-17 Daniel Jacobowitz <dan@codesourcery.com>
6337
6338 * symfile.c (generic_load): Reset breakpoints after loading.
6339
6340 2010-03-17 Tom Tromey <tromey@redhat.com>
6341
6342 * linux-nat.c (linux_nat_detach): Check debug_linux_nat.
6343
6344 2010-03-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6345
6346 * spu-tdep.c (spu_catch_start): Replace set_breakpoint call with the
6347 create_breakpoint call, adjust the parameters.
6348
6349 2010-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
6350 Chandru <chandru@in.ibm.com>
6351
6352 * dwarf2read.c (read_subrange_type): Set TYPE_HIGH_BOUND_UNDEFINED.
6353 * valarith.c (value_subscripted_rvalue): Suppress error if
6354 TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED.
6355
6356 2010-03-16 Holger Hans Peter Freyther <zecke@selfish.org>
6357
6358 * linux-record.c (record_linux_msghdr): Remove unintended semicolons.
6359
6360 2010-03-16 Joel Brobecker <brobecker@adacore.com>
6361
6362 * ada-tasks.c (task_command_1): Check that the task ptid is valid
6363 before doing the associated thread switch.
6364
6365 2010-03-16 Daniel Jacobowitz <dan@codesourcery.com>
6366
6367 * MAINTAINERS: Update my email address.
6368
6369 2010-03-16 Vladimir Prus <vladimir@codesourcery.com>
6370
6371 Simplify MI breakpoint setting.
6372
6373 * breakpoint.c (break_command_really): Make nonstatic and
6374 rename to...
6375 (create_breakpoint): ...this. Rename prior function by this name
6376 to...
6377 (create_breakpoint_sal): ...this.
6378 (create_breakpoints): Rename to...
6379 (create_breakpoints_sal): ...this.
6380 (set_breakpoint): Remove.
6381 * breakpoint.h: Adjust to above changes.
6382 * mi/mi-cmd-break.c (mi_cmd_break_insert): Simplify.
6383
6384 2010-03-15 Stan Shebs <stan@codesourcery.com>
6385
6386 * ax-gdb.c: Include cp-support.h.
6387 (find_field): Remove.
6388 (gen_primitive_field): New function.
6389 (gen_struct_ref_recursive): New function.
6390 (gen_struct_ref): Rewrite to call gen_struct_ref_recursive instead
6391 of find_field.
6392 (gen_static_field): New function.
6393 (gen_struct_elt_for_reference): New.
6394 (gen_namespace_elt): New.
6395 (gen_maybe_namespace_elt): New.
6396 (gen_aggregate_elt_ref): New.
6397 (gen_expr): Add OP_SCOPE, display opcode name in error message.
6398
6399 2010-03-15 Tom Tromey <tromey@redhat.com>
6400
6401 * dwarf2read.c (die_needs_namespace): Also return 0 for
6402 DW_TAG_subprogram.
6403
6404 2010-03-15 Sami Wagiaalla <swagiaal@redhat.com>
6405
6406 PR c++/7936:
6407 * cp-support.h: Added char *declaration element to using_direct
6408 data struct.
6409 (cp_add_using): Added char *declaration argument.
6410 (cp_add_using_directive): Ditto.
6411 (cp_lookup_symbol_imports): made extern.
6412 * cp-namespace.c: Updated with the above changes.
6413 * dwarf2read.c (read_import_statement): Ditto.
6414 (read_namespace): Ditto.
6415 (read_import_statement): Support import declarations.
6416 * cp-namespace.c (cp_lookup_symbol_imports): Check for imported
6417 declarations.
6418 Added support for 'declaration_only' search.
6419 (cp_lookup_symbol_namespace): Attempt to search for the name as
6420 is before consideration of imports.
6421 * symtab.c (lookup_symbol_aux_local): Added a 'declaration_only'
6422 search at every block level search.
6423 Now takes language argument.
6424 (lookup_symbol_aux): Updated.
6425
6426 2010-03-15 Tom Tromey <tromey@redhat.com>
6427
6428 * c-exp.y (name_not_typename): Add 'operator' clause.
6429
6430 2010-03-15 Ralf Corsepius <ralf.corsepius@rtems.org> (tiny change)
6431
6432 * configure.ac: Exit if ${gdb_target_obs}" is not set.
6433 * configure: Regenerate.
6434
6435 2010-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6436
6437 * symfile.c (addr_info_make_relative): Ignore also missing ".dynbss"
6438 and ".sdynbss". Update the comment.
6439
6440 2010-03-15 Jie Zhang <jie@codesourcery.com>
6441
6442 * MAINTAINERS: Update my email address.
6443
6444 2010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
6445
6446 * gdbtypes.h (TYPE_IS_OPAQUE): Correct HAVE_CPLUS_STRUCT check.
6447
6448 2010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
6449
6450 * charset.c [USE_WIN32API]: Include <windows.h>.
6451 (_initialize_charset): Correct type of w32_host_default_charset.
6452
6453 2010-03-14 Pedro Alves <pedro@codesourcery.com>
6454
6455 * infrun.c (ptid_match): Don't assert that PTID is not a pid ptid.
6456
6457 2010-03-12 Tom Tromey <tromey@redhat.com>
6458
6459 PR c++/9708:
6460 * dwarf2read.c (die_needs_namespace) <DW_TAG_variable>: A variable
6461 in a lexical block does not need a namespace.
6462 (new_symbol) <DW_TAG_variable>: Put extern variables on
6463 list_in_scope in all cases.
6464
6465 2010-03-12 Stan Shebs <stan@codesourcery.com>
6466
6467 * ax-gdb.c (gen_expr): Add shift expressions.
6468 (gen_expr_binop_rest): Ditto.
6469
6470 2010-03-12 Sami Wagiaalla <swagiaal@redhat.com>
6471
6472 * buildsym.c (finish_block): Reset using_directives pointer
6473 after block initialization.
6474
6475 2010-03-12 H.J. Lu <hongjiu.lu@intel.com>
6476
6477 * amd64-tdep.c (amd64_word_names): Replace "sp" with "".
6478 * i386-tdep.c (i386_word_names): Likewise.
6479
6480 2010-03-12 Pedro Alves <pedro@codesourcery.com>
6481
6482 * target.c (memory_xfer_partial): Don't use the stack cache if
6483 inspecting trace frames.
6484 * tracepoint.c (finish_tfind_command): Invalidate the target
6485 dcache.
6486
6487 2010-03-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6488
6489 * solib-svr4.c (LM_ADDR_CHECK) <info_verbose>: Use printf_unfiltered
6490 for the PIC displacement, print also the displacement value.
6491 (svr4_exec_displacement): Print DISPLACEMENT if INFO_VERBOSE.
6492
6493 2010-03-10 Kevin Buettner <kevinb@redhat.com>
6494
6495 * remote-mips.c (close_ports, mips_initialize_cleanups)
6496 (mips_exit_cleanups, mips_send_command, mips_open, pmon_open)
6497 (ddb_open, lsi_open, mips_remove_breakpoint, mips_remove_watchpoint)
6498 (mips_stopped_by_watchpoint, send_srec, pmon_checkset)
6499 (pmon_make_fastrec, pmon_check_ack, mips_expect_download)
6500 (pmon_check_entry_address, pmon_check_total, pmon_end_download)
6501 (pmon_download, pmon_load_fast, _initialize_remote_mips): Add
6502 comments describing each of these functions.
6503 (mips_enter_debug, mips_exit_debug, common_open)
6504 (mips_signal_from_protocol, pmon_makeb64, pmon_zeroset): Add
6505 blank line after the comment describing the function.
6506
6507 2010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
6508
6509 * solib-svr4.c (svr4_exec_displacement): Return now success, new
6510 parameter displacementp. Update comment.
6511 (svr4_relocate_main_executable): Return if non-zero SECTION_OFFSETS
6512 element exists. Return if svr4_exec_displacement was not successful.
6513 Update comment.
6514
6515 2010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
6516 Daniel Jacobowitz <dan@codesourcery.com>
6517
6518 * solib-svr4.c (read_program_header): Support type == -1 to read
6519 all program headers.
6520 (read_program_headers_from_bfd): New function.
6521 (svr4_static_exec_displacement): Remove and move the comment ...
6522 (svr4_exec_displacement): ... here. Remove variable found. New
6523 variable displacement. Check also DYNAMIC. Verify DISPLACEMENT
6524 alignment for ELF targets. Compare target vs. exec_bfd PHDRs for ELF
6525 targets using read_program_headers_from_bfd. Remove the call of
6526 svr4_static_exec_displacement.
6527
6528 2010-03-10 Tom Tromey <tromey@redhat.com>
6529
6530 * dwarf2read.c (struct pubnames_header): Remove.
6531 (_PUBNAMES_HEADER): Remove.
6532 (_ACTUAL_PUBNAMES_HEADER_SIZE): Remove.
6533 (struct aranges_header): Remove.
6534 (_ARANGES_HEADER, _ACTUAL_ARANGES_HEADER_SIZE): Remove.
6535 (struct dwarf2_per_objfile) <pubnames, aranges>: Remove.
6536 (PUBNAMES_SECTION): Remove.
6537 (ARANGES_SECTION): Remove.
6538 (dwarf2_locate_sections): Don't handle pubnames or aranges.
6539 (dwarf2_build_psymtabs): Remove dead code.
6540 (dwarf2_build_psymtabs_easy): Remove.
6541
6542 2010-03-10 Tom Tromey <tromey@redhat.com>
6543
6544 * elfread.c (elf_symfile_read): Don't call
6545 dwarf2_build_frame_info.
6546 * dwarf2read.c (struct dwarf2_section_info) <readin>: New field.
6547 (struct dwarf2_per_objfile) <objfile>: New field.
6548 (dwarf2_has_info): Now idempotent. Set objfile field.
6549 (dwarf2_read_section): Check and set readin field. Call
6550 posix_madvise.
6551 (dwarf2_build_psymtabs): Don't read all sections.
6552 (read_type_comp_unit_head): Read types section.
6553 (create_debug_types_hash_table): Likewise.
6554 (init_cu_die_reader): Add asserts.
6555 (process_type_comp_unit): Add assert.
6556 (dwarf2_build_psymtabs_hard): Read info section.
6557 (load_partial_comp_unit): Add assert.
6558 (create_all_comp_units): Read info section.
6559 (load_full_comp_unit): Likewise.
6560 (dwarf2_ranges_read): Read ranges section.
6561 (dwarf2_record_block_ranges): Add assert.
6562 (dwarf2_read_abbrevs): Read abbrev section.
6563 (read_indirect_string): Read str section.
6564 (dwarf_decode_line_header): Read line section.
6565 (read_signatured_type_at_offset): Read types section.
6566 (dwarf_decode_macros): Read macinfo section.
6567 (dwarf2_symbol_mark_computed): Read loc section.
6568 * dwarf2-frame.c (dwarf2_frame_find_fde): Call
6569 dwarf2_build_frame_info.
6570 (dwarf2_build_frame_info): Unconditionally set
6571 dwarf2_frame_objfile_data on the objfile.
6572 * configure.ac: Check for posix_madvise.
6573 * config.in, configure: Rebuild.
6574
6575 2010-03-10 Tom Tromey <tromey@redhat.com>
6576
6577 * xcoffread.c (xcoff_start_psymtab): Update.
6578 (xcoff_end_psymtab): Update.
6579 * psymtab.c (allocate_psymtab): Remove dead code.
6580 * psympriv.h (struct partial_symtab) <read_symtab_private>: Now
6581 void*.
6582 * mdebugread.c (parse_partial_symbols): Update.
6583 (new_psymtab): Likewise.
6584 * dwarf2read.c (process_psymtab_comp_unit): Update.
6585 (psymtab_to_symtab_1): Update.
6586 * dbxread.c (start_psymtab): Update.
6587 (end_psymtab): Likewise.
6588
6589 2010-03-10 Tom Tromey <tromey@redhat.com>
6590
6591 * xcoffread.c: Include psymtab.h.
6592 (xcoff_sym_fns): Update.
6593 * symtab.h (struct partial_symbol): Remove.
6594 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.
6595 (struct partial_symtab): Remove.
6596 (PSYMTAB_TO_SYMTAB): Remove.
6597 (lookup_partial_symbol, lookup_partial_symtab, find_pc_psymtab)
6598 (find_pc_sect_psymtab): Remove.
6599 (find_pc_sect_symtab_via_partial): Declare.
6600 (find_pc_psymtab, find_pc_sect_psymbol, psymtab_to_symtab)
6601 (find_main_psymtab): Remove.
6602 (find_main_filename): Declare.
6603 (fixup_psymbol_section): Remove.
6604 (fixup_section): Declare.
6605 * symtab.c: Include psymtab.h.
6606 (lookup_symtab): Use lookup_symtab method.
6607 (lookup_partial_symtab): Remove.
6608 (find_pc_sect_psymtab_closer): Remove.
6609 (find_pc_sect_psymtab): Remove.
6610 (find_pc_sect_symtab_via_partial): New function.
6611 (find_pc_psymtab, find_pc_sect_psymbol, find_pc_psymbol): Remove.
6612 (fixup_section): No longer static.
6613 (fixup_psymbol_section): Remove.
6614 (lookup_symbol_aux): Use lookup_symbol_aux_quick.
6615 (lookup_global_symbol_from_objfile): Likewise.
6616 (lookup_symbol_aux_psymtabs): Remove.
6617 (lookup_symbol_aux_quick): New function.
6618 (lookup_symbol_global): Use lookup_symbol_aux_quick.
6619 (lookup_partial_symbol): Remove.
6620 (basic_lookup_transparent_type_quick): New function.
6621 (basic_lookup_transparent_type): Use it.
6622 (find_main_psymtab): Remove.
6623 (find_main_filename): New function.
6624 (find_pc_sect_symtab): Use find_pc_sect_symtab method.
6625 (find_line_symtab): Use expand_symtabs_with_filename method.
6626 (output_partial_symbol_filename): New function.
6627 (sources_info): Use map_partial_symbol_filenames.
6628 (struct search_symbols_data): New type.
6629 (search_symbols_file_matches): New function.
6630 (search_symbols_name_matches): Likewise.
6631 (search_symbols): Use expand_symtabs_matching method.
6632 (struct add_name_data): Rename from add_macro_name_data.
6633 (add_macro_name): Update.
6634 (add_partial_symbol_name): New function.
6635 (default_make_symbol_completion_list): Use
6636 map_partial_symbol_names.
6637 (struct add_partial_symbol_name): New type.
6638 (maybe_add_partial_symtab_filename): New function.
6639 (make_source_files_completion_list): Use
6640 map_partial_symbol_filenames.
6641 (expand_line_sal): Use expand_symtabs_with_filename method.
6642 * symmisc.c: Include psymtab.h.
6643 (print_objfile_statistics): Use print_stats method.
6644 (dump_objfile): Use dump method.
6645 (dump_psymtab, maintenance_print_psymbols)
6646 (maintenance_info_psymtabs, maintenance_check_symtabs)
6647 (extend_psymbol_list): Remove.
6648 * symfile.h (struct quick_symbol_functions): New struct.
6649 (struct sym_fns) <qf>: New field.
6650 (sort_pst_symbols): Remove.
6651 (increment_reading_symtab): Declare.
6652 * symfile.c: Include psymtab.h.
6653 (compare_psymbols, sort_pst_symbols): Remove.
6654 (psymtab_to_symtab): Remove.
6655 (increment_reading_symtab): New function.
6656 (symbol_file_add_with_addrs_or_offsets): Use expand_all_symtabs
6657 method.
6658 (set_initial_language): Use find_main_filename.
6659 (allocate_psymtab, discard_psymtab, cashier_psymtab): Remove.
6660 (free_named_symtabs): Remove unused code.
6661 (start_psymtab_common, add_psymbol_to_bcache)
6662 (append_psymbol_to_list, add_psymbol_to_list, init_psymbol_list):
6663 Remove.
6664 * stack.c: Include psymtab.h, symfile.h.
6665 (backtrace_command_1): Use find_pc_sect_symtab_via_partial.
6666 * source.h (psymtab_to_fullname): Don't declare.
6667 * source.c: Include psymtab.h.
6668 (select_source_symtab): Use find_last_source_symtab method.
6669 (forget_cached_source_info): Use forget_cached_source_info
6670 method.
6671 (find_and_open_source): No longer static.
6672 (psymtab_to_fullname): Remove.
6673 * somread.c: Include psymtab.h.
6674 (som_sym_fns): Update.
6675 * psympriv.h: New file.
6676 * psymtab.h: New file.
6677 * psymtab.c: New file.
6678 * objfiles.h: (ALL_OBJFILE_PSYMTABS): Remove.
6679 (ALL_PSYMTABS, ALL_PSPACE_PSYMTABS): Likewise.
6680 * objfiles.c: Include psymtab.h.
6681 (objfile_relocate1): Use relocate method.
6682 (objfile_has_partial_symbols): Use has_symbols method.
6683 * mipsread.c: Include psymtab.h.
6684 (ecoff_sym_fns): Update.
6685 * mi/mi-cmd-file.c: Include psymtab.h.
6686 (print_partial_file_name): New function.
6687 (mi_cmd_file_list_exec_source_files): Use
6688 map_partial_symbol_filenames.
6689 * mdebugread.c: Include psympriv.h.
6690 * machoread.c: Include psympriv.h.
6691 (macho_sym_fns): Update.
6692 * m2-exp.y (yylex): Use lookup_symtab.
6693 * elfread.c: Include psympriv.h.
6694 (elf_sym_fns): Update.
6695 * dwarf2read.c: Include psympriv.h.
6696 * dbxread.c: Include psympriv.h.
6697 (aout_sym_fns): Update.
6698 * cp-support.c: Include psymtab.h.
6699 (read_in_psymtabs): Remove.
6700 (make_symbol_overload_list_qualified): Use
6701 expand_symtabs_for_function method.
6702 * coffread.c: Include psympriv.h.
6703 (coff_sym_fns): Update.
6704 * blockframe.c: Include psymtab.h.
6705 (find_pc_partial_function): Use find_pc_sect_symtab method.
6706 * ada-lang.h (ada_update_initial_language): Update.
6707 * ada-lang.c: Include psymtab.h.
6708 (ada_update_initial_language): Remove 'main_pst' argument.
6709 (ada_lookup_partial_symbol): Remove.
6710 (struct ada_psym_data): New type.
6711 (ada_add_psyms): New function.
6712 (ada_add_non_local_symbols): Use map_ada_symtabs method.
6713 (struct add_partial_datum): New type.
6714 (ada_add_partial_symbol_completions): New function.
6715 (ada_make_symbol_completion_list): Use map_partial_symbol_names.
6716 (ada_exception_support_info_sniffer): Update.
6717 * Makefile.in (SFILES): Add psymtab.c.
6718 (COMMON_OBS): Add psymtab.o.
6719 (HFILES_NO_SRCDIR): Add psymtab.h, psympriv.h.
6720
6721 2010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
6722
6723 * remote-fileio.c (cygwin_conv_path): Define macro for old cygwin API.
6724
6725 2010-03-10 Sami Wagiaalla <swagiaal@redhat.com>
6726
6727 PR C++/11236:
6728 * cp-namespace.c (cp_add_using): Deleted.
6729 (cp_add_using_directive): Use obstack allocations.
6730 Merged the function cp_add_using into this one.
6731 Added 'struct obstack *' argument.
6732 (cp_scan_for_anonymous_namespaces): Updated.
6733 * cp-support.h: Updated.
6734 * dwarf2read.c (read_import_statement): Updated.
6735 (read_namespace): Updated.
6736
6737 2010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
6738
6739 * windows-nat.c (cygwin_conv_path): Remove old macro.
6740
6741 2010-03-10 Pedro Alves <pedro@codesourcery.com>
6742
6743 * breakpoint.c (condition_command): Handle watchpoint conditions.
6744 (is_hardware_watchpoint): Add comment.
6745 (is_watchpoint): New.
6746 (update_watchpoint): Don't reparse the watchpoint's condition
6747 unless necessary.
6748 (WP_IGNORE): New.
6749 (watchpoint_check): Use it.
6750 (bpstat_check_watchpoint): Handle it.
6751 (bpstat_check_breakpoint_conditions): Evaluate watchpoint local
6752 conditions in a frame where it makes sense.
6753 (watch_command_1): Store the innermost block of the condition
6754 expression.
6755 (delete_breakpoint): Delete the watchpoint condition expression.
6756 * breakpoint.h (struct bp_location) <cond>: Update comment.
6757 (struct breakpoint): New field `cond_exp_valid_block'.
6758
6759 2010-03-09 Joel Brobecker <brobecker@adacore.com>
6760
6761 Adjust handling of Ada DIEs after dwarf2_physname patch.
6762 * dwarf2read.c (dwarf2_compute_name): Add handling of Ada DIEs.
6763
6764 2010-03-09 Christopher Faylor <me+cygwin@cgf.cx>
6765 Pierre Muller <muller@ics.u-strasbg.fr>
6766
6767 * windows-nat.c (cygwin_conv_path): Redefine to properly convert
6768 from/to posix/win32.
6769 (windows_make_so): Use non-Cygwin 1.7 specific function.
6770 (windows_create_inferior): Make sure that cygallargs points to
6771 original args in non Cygwin 1.7. case.
6772
6773 2010-03-09 Michael Snyder <msnyder@vmware.com>
6774
6775 * i386-tdep.c (i386_record_lea_modrm_addr): Use extract_signed_int
6776 after target_read_memory to get host byte order.
6777 (i386_process_record): Ditto.
6778
6779 2010-03-09 Keith Seitz <keiths@redhat.com>
6780
6781 Based on work from Daniel Jacobowitz <dan@codesourcery.com>
6782 * c-typeprint.c (cp_type_print_method_args): For non-static methods,
6783 print out const or volatile qualifiers, too.
6784 (c_type_print_args): Add parameters show_artificial and language.
6785 Skip artificial parameters when requested.
6786 Use the appropriate language printer.
6787 (c_type_print_varspec): Tell c_type_print_args to skip artificial
6788 parameters and pass language_c.
6789 * dwarf2read.c (die_list): New file global.
6790 (struct partial_die_info): Update comments for name field.
6791 (pdi_needs_namespace): Renamed to ...
6792 (die_needs_namespace): ... this. Rewrite.
6793 (dwarf2_linkage_name): Remove.
6794 (add_partial_symbol): Do not predicate the call to
6795 partial_die_full_name based on pdi_needs_namespace.
6796 Remove call to cp_check_possible_namespace_symbols and associated
6797 outdated comments.
6798 (guess_structure_name): Do not inspect child subprogram DIEs.
6799 (dwarf2_fullname): Update comments.
6800 Use die_needs_namespace to assist in computing the name.
6801 (read_func_scope): Use dwarf2_name to get the DIE's name.
6802 Use dwarf2_physname to get the "linkage name" of the DIE.
6803 (dwarf2_add_member_field): Use dwarf2_physname instead of
6804 dwarf2_linkage_name.
6805 (read_structure_type): For structs and classes, set TYPE_NAME, too.
6806 (determine_class): Remove.
6807 (read_partial_die): Ignore DW_AT_MIPS_linkage_name for all languages
6808 except Ada.
6809 (new_symbol): Unconditionally call dwarf2_name.
6810 Compute the "linkage name" using dwarf2_physname.
6811 Use dwarf2_name instead of dwarf2_full_name for enumerator DIEs.
6812 When determining to scan for anonymous C++ namespaces, ignore
6813 the linkage name.
6814 (dwarf2_physname): New function.
6815 (dwarf2_full_name): Move content to new function and call
6816 that.
6817 (dwarf2_compute_name): "New" function.
6818 (_initialize_dwarf2_read): Initialize die_list.
6819 * gnu-v3-eabi.c (gnu_v3_find_method_in): Remove unused variable
6820 physname.
6821 (gnu_v3_print_method_ptr): Use the physname for virtual methods
6822 without a demangled name.
6823 Print out type information for non-virtual methods.
6824 * linespec.c (decode_line_1): Force ANY string using "::" (or
6825 "." for java) to use decode_compound, and clean up any stray quoting.
6826 If we found a file symtab, re-evaluate whether the remainder is_quoted.
6827 (decode_compound): Stop consuming at an open parenthesis.
6828 Keep template parameters.
6829 Keep any overload information.
6830 Keep keywords like "const".
6831 Remove paren_pointer.
6832 Move is_quoted check from set_flags to here.
6833 Remove #if 0 code from 2000. Ten years is long enough.
6834 (find_method): Before comparing symbol names, canonicalize the string
6835 from the user.
6836 If a specific overload is requested, find it. Otherwise throw an error.
6837 (find_method_overload_end): New function.
6838 (set_flags): Remove.
6839 (decode_compound): Assume that parentheses are matched.
6840 It's a lot easier.
6841 * symtab.c (symbol_find_demangled_name): Add DMGL_VERBOSE flag
6842 to cplus_demangle.
6843 * linespec.c (decode_line_1): Keep important keywords like
6844 "const" and "volatile".
6845 * symtab.h (SYMBOL_CPLUS_DEMANGLED_NAME): Remove.
6846 * typeprint.h (c_type_print_args): Add declaration.
6847 * ui-file.c (do_ui_file_obsavestring): New function.
6848 (ui_file_obsavestring): New function.
6849 * ui-file.h (ui_file_obsavestring): Add declaration.
6850 * valops.c (find_overload_match): Resolve the object to
6851 a non-pointer type.
6852 If the object is a data member, search the object for the member
6853 and return with staticp set.
6854 Use SYMBOL_NATURAL_NAME instead of SYMBOL_CPLUS_DEMANGLED_NAME.
6855 Do not attempt to extract a function name from non-function types.
6856 If the extracted function name and the original name are the same,
6857 we don't have a C++ method.
6858
6859 From Jan Kratochvil <jan.kratochvil@redhat.com>:
6860 * dwarf2read.c (new_symbol <DW_TAG_enumerator>): Call dwarf2_full_name.
6861
6862 * ada-lang.c (ada_lookup_symbol): Remove linkage_name parameters
6863 and arguments from symbol lookups.
6864 * ax-gdb.c (gen_expr): Likewise.
6865 * cp-namespace.c (cp_lookup_symbol_nonlocal, lookup_namespace_scope,
6866 cp_lookup_symbol_namespace, lookup_symbol_file, lookup_nested_type,
6867 lookup_possible_namespace_symbol): Likewise.
6868 * cp-support.c (read_in_psymtabs): Likewise.
6869 * cp-support.h (cp_lookup_symbol_nonlocal): Likewise.
6870 * language.h (la_lookup_symbol_nonlocal): Likewise.
6871 * scm-valprint.c (scm_inferior_print): Likewise.
6872 * solib-darwin.c (darwin_relocate_section_addresses): Likewise.
6873 * solib-svr.c (elf_lookup_lib): Likewise.
6874 * solib.c (show_auto_solib_add): Likewise.
6875 * solist.h (lookup_lib_global, solib_global_lookup): Likewise.
6876 * symmisc.c (maintenance_check_symtabs): Likewise.
6877 * symtab.c (lookup_symbol_in_language, lookup_symbol_aux,
6878 lookup_symbol_aux_local, lookup_symbol_aux_block,
6879 lookup_symbol_from_objfile, lookup_symbol_aux_symtabs,
6880 lookup_symbol_aux_psymtabs,basic_lookup_symbol_nonlocal,
6881 lookup_symbol_static, lookup_symbol_global, symbol_matches_domain,
6882 basic_lookup_transparent_type, find_main_psymtab,
6883 lookup_block_symbol): Likewise.
6884 * symtab.h (basic_lookp_symbol_nonlocal, lookup_symbol_static,
6885 lookup_symbol_global, lookup_symbol_aux_block,
6886 lookup_symbol_partial_symbol, lookup_block_symbol,
6887 lookup_global_symbol, value_maybe_namespace_elt): Likewise.
6888
6889 2010-03-09 Pierre Muller <muller@ics.u-strasbg.fr>
6890
6891 * python/python-internal.h: Include symtab.h.
6892
6893 2010-03-09 Joel Brobecker <brobecker@adacore.com>
6894 Pierre Muller <muller@ics.u-strasbg.fr>
6895
6896 * p-lang.c (is_pascal_string_type): Remove unneeded parentheses.
6897 * p-valprint.c (pascal_val_print): Remove undeed block and fix
6898 indentation.
6899
6900 2010-03-08 Tom Tromey <tromey@redhat.com>
6901
6902 * breakpoint.c (breakpoint_1): Add "QUIT".
6903
6904 2010-03-08 Daniel Jacobowitz <dan@codesourcery.com>
6905 Pedro Alves <pedro@codesourcery.com>
6906
6907 * solib.c (solib_find): Replace extension if
6908 solib_symbols_extension is set in the target gdbarch.
6909 * arm-symbian-tdep.c (arm_symbian_init_abi): Set
6910 solib_symbols_extension to "sym".
6911 * gdbarch.sh (solib_symbols_extension): New variable.
6912 (pstring): New function.
6913 * gdbarch.h, gdbarch.c: Regenerate.
6914
6915 2010-03-08 Tom Tromey <tromey@redhat.com>
6916
6917 PR cli/9591:
6918 * NEWS: Update.
6919 * utils.c: Include main.h.
6920 (fputs_maybe_filtered): Don't paginate if `batch_flag'.
6921 (defaulted_query): Use default answer if `batch_flag'.
6922 * main.h (batch_flag): Declare.
6923 * main.c (batch_flag): New global.
6924 (captured_main): Remove 'batch'. Update.
6925
6926 2010-03-08 Kevin Buettner <kevinb@redhat.com>
6927
6928 From Richard Sandiford, Martin M. Hunt, Corinna Vinschen,
6929 and Kevin Buettner:
6930
6931 * remote-mips.c (rockhopper_ops): New target_ops struct.
6932 (MON_ROCKHOPPER): New mips_monitor_type.
6933 (read_hex_value): New function.
6934 (mips_request): Send 8-byte values with a 'T' packet. Read the
6935 packet argument as a string and use read_hex_value to parse it.
6936 (mips_exit_debug): Wait for response when using MON_ROCKHOPPER.
6937 (rockhopper_open): New function.
6938 (mips_wait): Read the PC, FP and SP fields as strings. Use
6939 read_hex_value to parse them and mips_set_register to commit them.
6940 (mips_set_register): New function.
6941 (mips_fetch_registers): Do not cast register value to "unsigned"
6942 when reading a MON_ROCKHOPPER 't' packet. Use mips_set_register.
6943 (mips_store_registers): Use a 'T' packet to set registers when
6944 using MON_ROCKHOPPER.
6945 (pmon_end_download): Don't run initEther if using MON_ROCKHOPPER
6946 and expect the total to be printed before the entry address.
6947 (_initialize_remote_mips): Initialize and add rockhopper_ops.
6948
6949 2010-03-08 Kevin Buettner <kevinb@redhat.com>
6950
6951 * remote-mips.c (mips_fetch_word): Add new parameter, `valp'.
6952 Change return value to int. Store value fetched in location
6953 addressed by `val'. Use function's return value as success
6954 or failure indicator. Adjust all callers.
6955
6956 2010-03-08 Pierre Muller <muller@ics.u-strasbg.fr>
6957
6958 * p-lang.c (is_pascal_string_type): Check that TYPE arg is non NULL.
6959
6960 2010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
6961 Hui Zhu <teawater@gmail.com>
6962
6963 * record.c (record_open_1): Check tmp_to_stopped_by_watchpoint and
6964 tmp_to_stopped_data_address.
6965 (record_open): Reset tmp_to_stopped_by_watchpoint and
6966 tmp_to_stopped_data_address.
6967 * target.c (init_dummy_target): Add to_stopped_by_watchpoint and
6968 to_stopped_data_address.
6969
6970 2010-03-08 Hui Zhu <teawater@gmail.com>
6971
6972 * i386-tdep.c (i386_process_record): Initialize regnum.
6973
6974 2010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
6975
6976 * symfile.c (addr_info_make_relative): New variable sect_name, use it.
6977 Do not warn on ".gnu.liblist" and ".gnu.conflict".
6978
6979 2010-03-08 Joel Brobecker <brobecker@adacore.com>
6980
6981 Memory error when reading wrong core file.
6982 * solib-svr4.c (solib_svr4_r_map): catch and print all exception
6983 errors while reading the inferior memory, and return zero if
6984 an exception was raised.
6985
6986 2010-03-07 Michael Snyder <msnyder@vmware.com>
6987
6988 * record.c (record_restore): Rename tmpu8 to rectype.
6989
6990 * i386-tdep.c (i386_record_lea_modrm_addr): Rename local variables
6991 tmpu8, tmpi16, tmpi32, tmpulongest to addr8, addr16, addr32, addr64.
6992
6993 (i386_record_push): Rename local tmpulongest to addr.
6994
6995 (i386_process_record): Rename local tmpulongest to addr.
6996
6997 Rename local variables tmpu16, tmpu32, tmpu64 to addr16, addr32,
6998 addr64.
6999
7000 Rename local variable tmpu8 to opcode8 and regnum.
7001
7002 2010-03-07 Joel Brobecker <brobecker@adacore.com>
7003
7004 * remote.c (remote_get_ada_task_ptid): New function.
7005 (init_remote_ops): Set remote_ops.to_get_ada_task_ptid.
7006
7007 2010-03-06 Christopher Faylor <me+cygwin@cgf.cx>
7008
7009 * windows-nat.c: Reorganize #ifdef __CYGWIN__ considerations into one
7010 block. Define helper macros to reduce ifdefs in code.
7011 (get_module_name): Use cygwin_buf_t for buffer and __PMAX for buffer
7012 size. Call unadorned GetModuleFileNameEx rather than
7013 GetModuleFileNameEx*.
7014 (windows_make_so): Use __PMAX to denote maximum buffer size and
7015 cygwin_buf_t for buffer type. Use GetSystemDirectory{W,A} as
7016 appropriate.
7017 (get_image_name): Use __PMAX to denote maximum buffer size.
7018 (handle_load_dll): Likewise.
7019 (windows_pid_to_exec_file): Likewise.
7020 (windows_create_inferior): Add many accommodations for older Cygwin and
7021 non-Cygwin.
7022 (bad_GetModuleFileNameExW): Control inclusion of this function based on
7023 __USEWIDE conditional.
7024 (bad_GetModuleFileNameExA): Likewise.
7025 (_initialize_loadable): Just use real function names without the dyn_
7026 part since they are defined earlier.
7027
7028 2010-03-05 Corinna Vinschen <vinschen@redhat.com>
7029 Tom Tromey <tromey@redhat.com>
7030
7031 * utils.c (host_char_to_target): Add 'gdbarch' argument.
7032 (parse_escape): Likewise.
7033 * python/py-utils.c (unicode_to_target_string): Update.
7034 (unicode_to_target_python_string): Update.
7035 (target_string_to_unicode): Update.
7036 * printcmd.c (printf_command): Update.
7037 * p-exp.y (yylex): Update.
7038 * objc-exp.y (yylex): Update.
7039 * mi/mi-parse.c: Include charset.h.
7040 (mi_parse_escape): New function.
7041 (mi_parse_argv): Use it.
7042 * jv-exp.y (yylex): Update.
7043 * i386-cygwin-tdep.c (i386_cygwin_auto_wide_charset): New
7044 function.
7045 (i386_cygwin_init_abi): Call set_gdbarch_auto_wide_charset.
7046 * gdbarch.sh (auto_charset, auto_wide_charset): New.
7047 * gdbarch.c: Rebuild.
7048 * gdbarch.h: Rebuild.
7049 * defs.h (parse_escape): Update.
7050 * cli/cli-setshow.c: Include arch-utils.h.
7051 (do_setshow_command): Update.
7052 * cli/cli-cmds.c (echo_command): Update.
7053 * charset.h (target_charset, target_wide_charset): Update.
7054 * charset.c: Include arch-utils.h.
7055 (target_charset_name): Default to "auto".
7056 (target_wide_charset_name): Likewise.
7057 (show_target_charset_name): Handle "auto".
7058 (show_target_wide_charset_name): Likewise.
7059 (be_le_arch): New global.
7060 (set_be_le_names): Add 'gdbarch' argument.
7061 (validate): Likewise. Don't call set_be_le_names.
7062 (set_charset_sfunc, set_host_charset_sfunc)
7063 (set_target_charset_sfunc, set_target_wide_charset_sfunc):
7064 Update.
7065 (target_charset): Add 'gdbarch' argument.
7066 (target_wide_charset): Likewise. Remove 'byte_order' argument.
7067 (auto_target_charset_name): New global.
7068 (default_auto_charset, default_auto_wide_charset): New functions.
7069 (_initialize_charset): Set auto_target_charset_name. Allow "auto"
7070 for target charsets. Copy result of nl_langinfo. Use GetACP if
7071 USE_WIN32API.
7072 * c-lang.c (charset_for_string_type): Add 'gdbarch' argument,
7073 remove 'byte_order' argument. Update.
7074 (classify_type): Likewise.
7075 (c_emit_char): Update.
7076 (c_printchar): Update.
7077 (c_printstr): Update.
7078 (c_get_string): Update.
7079 (evaluate_subexp_c): Update.
7080 * arch-utils.h (default_auto_charset, default_auto_wide_charset):
7081 Declare.
7082 * python/python.c (gdbpy_target_charset): New function.
7083 (gdbpy_target_wide_charset): Likewise.
7084 (GdbMethods): Update.
7085 * NEWS: Update.
7086
7087 2010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
7088
7089 * symfile.c (build_section_addr_info_from_objfile): Do not mask
7090 off high address bits.
7091
7092 2010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
7093
7094 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Extract
7095 address as UnsignedLongLong, not LongLong.
7096
7097 2010-03-05 Kevin Buettner <kevinb@redhat.com>
7098 Pedro Alves <pedro@codesourcery.com>
7099
7100 * remote-mips.c (gdbthread.h): Include.
7101 (remote_mips_ptid): Declare.
7102 (mips_error): Only mourn the inferior when inferior_ptid is non-null.
7103 (common_open): Set inferior_ptid, add it as an inferior, and
7104 as a thread too. Delete FIXME comment regarding start_remote().
7105 (mips_close): Invoke generic_mourn_inferior().
7106 (mips_kill): Make sure that target_mourn_inferior is invoked.
7107 (mips_mourn_inferior): Don't invoke generic_mourn_inferior, as
7108 it's now invoked from mips_close().
7109 (mips_load): Don't null out inferior_ptid. Don't call
7110 clear_symtab_users().
7111 (mips_thread_alive, mips_pid_to_str): New functions.
7112 (_initialize_remote_mips): Initialize remote_mips_ptid. Initialize
7113 to_thread_alive and to_pid_to_str operations.
7114
7115 2010-03-04 Tom Tromey <tromey@redhat.com>
7116
7117 * dwarf2read.c (skip_one_die) <DW_FORM_ref_addr>: Use offset size
7118 in DWARF 3 and later.
7119 (read_attribute_value) <DW_FORM_ref_addr>: Likewise.
7120
7121 2010-03-04 Keith Seitz <keiths@redhat.com>
7122
7123 * linespec.c (decode_line_1): Update comments for is_quote_enclosed.
7124 If the filename portion of the linespec was quoted, recheck the
7125 remainder for additional quoting.
7126 (locate_first_half): Skip over completer chars, too.
7127
7128 2010-03-04 Tom Tromey <tromey@redhat.com>
7129
7130 * printcmd.c (printf_command): Pass dummy argument to
7131 printf_filtered.
7132
7133 2010-03-04 Doug Evans <dje@google.com>
7134
7135 * arm-tdep.c (arm_make_stub_cache): Delete unused locals reg,
7136 unwound_fp.
7137
7138 * arm-tdep.c (arm_stub_unwind_sniffer): Add comment.
7139
7140 2010-03-04 Pedro Alves <pedro@codesourcery.com>
7141
7142 * breakpoint.c (update_watchpoint): Create a sentinel location if
7143 the software watchpoint isn't watching any memory.
7144 (breakpoint_address_bits): Skip dummy software watchpoint locations.
7145
7146 2010-03-04 Pedro Alves <pedro@codesourcery.com>
7147
7148 * utils.c (fputs_maybe_filtered): Check if there's already a top
7149 level interpreter before dereferencing it. If there isn't one,
7150 don't paginate either.
7151
7152 2010-03-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
7153
7154 * arm-tdep.c (arm_pc_is_thumb): Add heuristic that tries to get
7155 the state right when single stepping.
7156 (arm_get_next_pc_raw, thumb_get_next_pc_raw): New functions.
7157 Get the next PC along with the instruction state.
7158 (thumb_get_next_pc): Remove.
7159 (arm_get_next_pc): Modified to use arm_get_next_pc_raw.
7160
7161 2010-03-04 Hui Zhu <teawater@gmail.com>
7162
7163 * i386-tdep.c (i386_process_record): Change "addr" to "tmpu64".
7164
7165 2010-03-03 Pedro Alves <pedro@codesourcery.com>
7166
7167 * utils.c (fputs_maybe_filtered): Always disable pagination if the
7168 top level interpreter is MI.
7169
7170 2010-03-03 Stan Shebs <stan@codesourcery.com>
7171
7172 * remote.c (remote_download_tracepoint): Iterate over locations.
7173 * tracepoint.c (validate_actionline): Ditto.
7174 (encode_actions): Add location argument.
7175 (trace_dump_command): Check all locations to see if stepping
7176 frame.
7177
7178 2010-03-03 H.J. Lu <hongjiu.lu@intel.com>
7179 Eli Zaretskii <eliz@gnu.org>
7180
7181 * NEWS: Add X86 general purpose registers section.
7182
7183 2010-03-03 Tom Tromey <tromey@redhat.com>
7184
7185 PR mi/11098:
7186 * varobj.c (install_new_value): Handle case where new print_value
7187 is NULL.
7188
7189 2010-03-03 Dainis Jonitis <jonitis@gmail.com>
7190
7191 PR gdb/11345:
7192 * printcmd.c (printf_command): Print end of format string using
7193 printf_filtered.
7194
7195 2010-03-02 Tom Tromey <tromey@redhat.com>
7196
7197 * mi/mi-cmd-break.c (mi_read_next_line): Add missing 'void'.
7198 * defs.h (read_command_lines_1): Add missing 'void'.
7199 * cli/cli-script.c (recurse_read_control_structure): Add missing
7200 'void'.
7201 (read_next_line): Likewise.
7202 (read_command_lines_1): Likewise.
7203
7204 2010-03-02 Ulrich Weigand <uweigand@de.ibm.com>
7205
7206 * spu-tdep.c (spu_analyze_prologue): Track instruction to
7207 store backchain as part of prologue.
7208
7209 2010-03-02 Daniel Jacobowitz <dan@codesourcery.com>
7210
7211 * progspace.c (update_address_spaces): Update inferior address spaces
7212 also.
7213
7214 2010-03-02 Doug Evans <dje@google.com>
7215
7216 * dwarf2read.c (add_partial_subprogram): Add missing baseaddr to
7217 lowpc,highpc args to addrmap_set_empty.
7218
7219 2010-03-02 H.J. Lu <hongjiu.lu@intel.com>
7220
7221 * amd64-tdep.c (amd64_byte_names): New.
7222 (amd64_word_names): Likewise.
7223 (amd64_dword_names): Likewise.
7224 (amd64_pseudo_register_name): Likewise.
7225 (amd64_pseudo_register_read): Likewise.
7226 (amd64_pseudo_register_write): Likewise.
7227 (amd64_init_abi): Set num_byte_regs, num_word_regs, num_dword_regs
7228 and num_mmx_regs. Call set_gdbarch_pseudo_register_read,
7229 set_gdbarch_pseudo_register_write and
7230 set_tdesc_pseudo_register_name. Don't call
7231 set_gdbarch_num_pseudo_regs. Don't set mm0_regnum.
7232
7233 * i386-tdep.c (i386_num_mmx_regs): Removed.
7234 (i386_num_pseudo_regs): Likewise.
7235 (i386_byte_names): New.
7236 (i386_word_names): Likewise.
7237 (i386_byte_regnum_p): Likewise.
7238 (i386_word_regnum_p): Likewise.
7239 (i386_mmx_regnum_p): Updated.
7240 (i386_pseudo_register_name): Make it global. Handle byte and
7241 word pseudo-registers.
7242 (i386_pseudo_register_read): Likewise.
7243 (i386_pseudo_register_write): Likewise.
7244 (i386_pseudo_register_type): Handle byte, word and dword
7245 pseudo-registers
7246 (i386_register_reggroup_p): Don't include pseudo
7247 registers, except for MXX, in any register groups. Don't
7248 include pseudo byte, word, dword registers in general_reggroup.
7249 (i386_gdbarch_init): Set num_byte_regs, num_word_regs,
7250 num_dword_regs, al_regnum, ax_regnum and eax_regnum. Put MMX
7251 pseudo-registers after word pseudo-registers. Call
7252 set_gdbarch_num_pseudo_regs after calling gdbarch_init_osabi.
7253
7254 * i386-tdep.h (gdbarch_tdep): Add num_mmx_regs, num_byte_regs,
7255 al_regnum, num_word_regs, ax_regnum, num_dword_regs and
7256 eax_regnum.
7257 (i386_byte_regnum_p): New.
7258 (i386_word_regnum_p): Likewise.
7259 (i386_dword_regnum_p): Likewise.
7260 (i386_pseudo_register_name): Likewise.
7261 (i386_pseudo_register_read): Likewise.
7262 (i386_pseudo_register_write): Likewise.
7263
7264 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
7265
7266 * target-descriptions.c (tdesc_type): Remove
7267 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
7268 (tdesc_predefined_types): Likewise.
7269 (tdesc_gdb_type): Likewise. Pass NULL to append_flags_type_flag
7270 if flag name is empty.
7271 (maint_print_c_tdesc_cmd): Handle TDESC_TYPE_FLAGS.
7272
7273 * features/i386/32bit-core.xml: Define i386_eflags.
7274 * features/i386/64bit-core.xml: Likewise.
7275
7276 * features/i386/32bit-sse.xml: Define i386_mxcsr.
7277 * features/i386/64bit-sse.xml: Likewise.
7278
7279 * features/i386/amd64-linux.c: Regenerated.
7280 * features/i386/amd64.c: Likewise.
7281 * features/i386/i386-linux.c: Likewise.
7282 * features/i386/i386.c: Likewise.
7283
7284 2010-03-01 Daniel Jacobowitz <dan@codesourcery.com>
7285
7286 * gdbtypes.c (append_composite_type_field_raw): New.
7287 (append_composite_type_field_aligned): Use the new function.
7288 * gdbtypes.h (append_composite_type_field_raw): Declare.
7289 * target-descriptions.c (struct tdesc_type_field): Add start and end.
7290 (struct tdesc_type_flag): New type.
7291 (struct tdesc_type): Add TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS to
7292 kind. Add size to u.u. Add u.f for flags.
7293 (tdesc_gdb_type): Handle TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS.
7294 (tdesc_free_type): Likewise.
7295 (tdesc_create_struct, tdesc_set_struct_size, tdesc_create_flags): New.
7296 (tdesc_add_field): Handle TDESC_TYPE_STRUCT.
7297 (tdesc_add_bitfield, tdesc_add_flag): New.
7298 * target-descriptions.h (tdesc_create_struct, tdesc_set_struct_size)
7299 (tdesc_create_flags, tdesc_add_bitfield, tdesc_add_flag): Declare.
7300 * xml-tdesc.c (struct tdesc_parsing_data): Rename current_union to
7301 current_type. Add current_type_size and current_type_is_flags.
7302 (tdesc_start_union): Clear the new fields.
7303 (tdesc_start_struct, tdesc_start_flags): New.
7304 (tdesc_start_field): Handle struct fields, including bitfields.
7305 (field_attributes): Make type optional. Add start and end.
7306 (union_children): Rename to struct_union_children.
7307 (union_attributes): Rename to struct_union_attributes. Add optional
7308 size.
7309 (flags_attributes): New.
7310 (feature_children): Add struct and flags.
7311 * features/gdb-target.dtd: Add flags and struct to features.
7312 Make field type optional. Add field start and end.
7313
7314 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
7315
7316 * amd64-linux-nat.c (AMD64_LINUX_USER64_CS): New.
7317 (amd64_linux_read_description): Likewise.
7318 (_initialize_amd64_linux_nat): Set to_read_description to
7319 amd64_linux_read_description.
7320
7321 * amd64-linux-tdep.c: Include "features/i386/amd64-linux.c".
7322 (amd64_linux_register_name): Removed.
7323 (amd64_linux_register_type): Likewise.
7324 (amd64_linux_core_read_description): New.
7325 (amd64_linux_init_abi): Set target description to
7326 tdesc_amd64_linux if needed. Support orig_rax in target
7327 description. Don't call set_gdbarch_register_name nor
7328 set_gdbarch_register_type. Call
7329 set_gdbarch_core_read_description.
7330 (_initialize_amd64_linux_tdep): Call
7331 initialize_tdesc_amd64_linux.
7332
7333 * amd64-linux-tdep.h (tdesc_amd64_linux): New.
7334
7335 * amd64-tdep.c: Include "features/i386/amd64.c".
7336 (amd64_register_names): Removed.
7337 (amd64_register_name): Likewise.
7338 (amd64_register_type): Likewise.
7339 (amd64_init_abi): Set num_core_regs and register_names. Set
7340 target description to tdesc_amd64 if needed. Don't call
7341 set_gdbarch_register_name nor set_gdbarch_register_type.
7342 (_initialize_amd64_tdep): New.
7343
7344 * i386-linux-nat.c (i386_linux_read_description): New.
7345 (_initialize_i386_linux_nat): Set to_read_description to
7346 i386_linux_read_description.
7347
7348 * i386-linux-tdep.c: Include "features/i386/i386-linux.c".
7349 (i386_linux_register_name): Removed.
7350 (i386_linux_core_read_description): New.
7351 (i386_linux_read_description): Likewise.
7352 (i386_linux_init_abi): Don't call set_gdbarch_register_name.
7353 Set target description to tdesc_i386_linux if needed. Support
7354 orig_eax. Set register_reggroup_p. Call
7355 set_gdbarch_core_read_description.
7356 (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_linux.
7357
7358 * i386-linux-tdep.h (tdesc_i386_linux): New.
7359
7360 * i386-nto-tdep.c (i386nto_regset_id): Replace I386_NUM_FREGS
7361 with I387_NUM_REGS.
7362
7363 * i386-tdep.c: Include "features/i386/i386.c".
7364 (i386_register_names): Make it const.
7365 (i386_mmx_names): Likewise.
7366 (i386_num_register_names): Removed.
7367 (i386_register_name): Likewise.
7368 (i386_eflags_type): Likewise.
7369 (i386_mxcsr_type): Likewise.
7370 (i386_sse_type): Likewise.
7371 (i386_register_type): Likewise.
7372 (i387_ext_type): Call tdesc_find_type instead of arch_float_type.
7373 (i386_pseudo_register_name): New.
7374 (i386_pseudo_register_type): Likewise.
7375 (i386_mmx_type): Make it static.
7376 (i386_gdbarch_init): Check arch. Replace I386_NUM_FREGS with
7377 I387_NUM_REGS. Set num_core_regs and register_names. Don't
7378 call set_gdbarch_register_name nor set_gdbarch_register_type.
7379 Set register_reggroup_p. Set target description to tdesc_i386
7380 if needed. Call set_tdesc_pseudo_register_type,
7381 set_tdesc_pseudo_register_name and tdesc_use_registers.
7382 (_initialize_i386_tdep): Call initialize_tdesc_i386.
7383 initialize_tdesc_x86_64.
7384
7385 * i386-tdep.h (gdbarch_tdep): Remove i386_eflags_type,
7386 i386_mxcsr_type and i386_sse_type. Add num_core_regs,
7387 register_names, tdesc and register_reggroup_p.
7388 (I386_NUM_FREGS): Removed.
7389 (i386_eflags_type): Likewise.
7390 (i386_mxcsr_type): Likewise.
7391 (i386_mmx_type): Likewise.
7392 (i386_sse_type): Likewise.
7393 (i386_register_name): Likewise.
7394 (i386_regnum): Add I386_MXCSR_REGNUM.
7395 (I386_SSE_NUM_REGS): Defined with I386_MXCSR_REGNUM.
7396
7397 * i387-tdep.h (I387_NUM_REGS): New.
7398
7399 * regformats/i386/i386-linux.dat: Generated.
7400 * regformats/i386/i386.dat: Likewise.
7401 * regformats/i386/amd64-linux.dat: Likewise.
7402 * regformats/i386/amd64.dat: Likewise.
7403
7404 * regformats/reg-i386-linux.dat: Removed.
7405 * regformats/reg-i386.dat: Likewise.
7406 * regformats/reg-x86-64-linux.dat: Likewise.
7407 * regformats/reg-x86-64.dat: Likewise.
7408
7409 2010-03-01 Corinna Vinschen <vinschen@redhat.com>
7410
7411 * remote-fileio.c (remote_fileio_func_rename): Use Cygwin 1.7
7412 cygwin_conv_path API rather than the deprecated
7413 cygwin_conv_to_full_posix_path.
7414 * windows-nat.c:
7415 (GetModuleFileNameExA): Undefine for Cygwin.
7416 (GetModuleFileNameExW): Define for Cygwin.
7417 (get_module_name): Change size of pathbuf to PATH_MAX for Cygwin.
7418 Call GetModuleFileNameExW and convert path to POSIX using
7419 cygwin_conv_path.
7420 (windows_make_so): Always define p. Drop unused variable m.
7421 Don't use Win32 functions to check file existance, rather use
7422 access on Cygwin. Fetch system directory using GetSystemDirectoryW.
7423 Use canonicalize_file_name to get full path.
7424 (get_image_name): Use wcstombs, rather than WideCharToMultiByte
7425 to convert Unicode pathname to multibyte on Cygwin. Otherwise,
7426 use correct target buffer size in call to WideCharToMultiByte.
7427 (handle_load_dll): Change size of dll_buf to PATH_MAX for Cygwin.
7428 (windows_pid_to_exec_file): Change size of path to PATH_MAX for Cygwin.
7429 (windows_create_inferior): Convert all paths and arguments to wchar_t
7430 and use CreateProcessW on Cygwin.
7431 (_initialize_windows_nat): Disable DOS-style path warning on Cygwin.
7432 (bad_GetModuleFileNameExA): Undefine for Cygwin.
7433 (bad_GetModuleFileNameExW): Define for Cygwin.
7434 (_initialize_loadable): Load GetModuleFileNameExW into
7435 dyn_GetModuleFileNameExW on Cygwin. Don't load ANSI function on Cygwin.
7436
7437 2010-02-28 Phil Muldoon <pmuldoon@redhat.com>
7438
7439 PR python/11036
7440 * python/py-frame.c (frapy_read_var): Add block argument and logic
7441 to cope with user provided blocks.
7442
7443 2010-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7444
7445 * infcall.c (call_function_by_hand): Remove gdb_assert on sp and old_sp.
7446 New comment.
7447
7448 2010-02-28 Corinna Vinschen <vinschen@redhat.com>
7449
7450 * Makefile.in (SUBDIR_MI_OBS): Move mi-common.o from here...
7451 (COMMON_OBS): ... to here since it's used unconditionally.
7452 (SUBDIR_MI_SRCS): Move mi/mi-common.c from here...
7453 (SFILES): To here.
7454
7455 2010-02-26 David Daney <ddaney@caviumnetworks.com>
7456
7457 * mips-linux-tdep.c: Update struct sigframe comments.
7458 (SIGFRAME_CODE_OFFSET): Delete macro.
7459 (mips_linux_o32_sigframe_init): Calculate sigcontext_base using
7460 this_frame's sp.
7461 (mips_linux_n32n64_sigframe_init): Same.
7462
7463 2010-02-26 Kevin Buettner <kevinb@redhat.com>
7464
7465 * remote-mips.c (mips_load): Don't use pseudo-register when
7466 invalidating regcache.
7467
7468 2010-02-26 Daniel Jacobowitz <dan@codesourcery.com>
7469
7470 * arm-tdep.c (thumb_get_next_pc): Correct conditional branch opcode.
7471
7472 2010-02-26 Pedro Alves <pedro@codesourcery.com>
7473
7474 * NEWS: Add "New targets" section, and mention ARM Symbian
7475 support.
7476
7477 2010-02-26 Ulrich Weigand <uweigand@de.ibm.com>
7478
7479 * dwarf2loc.c (struct piece_closure): Remove ARCH member,
7480 add ADDR_SIZE member.
7481 (allocate_piece_closure): Update.
7482 (copy_pieced_value_closure): Likewise.
7483 (dwarf2_evaluate_loc_desc): Likewise.
7484 (read_pieced_value): Use DWARF address size instead of
7485 GDB's gdbarch_addr_bit as size of values on the DWARF stack.
7486
7487 2010-02-26 Phil Muldoon <pmuldoon@redhat.com>
7488 Tom Tromey <tromey@redhat.com>
7489
7490 * python/py-type.c (typy_lookup_typename): Add in block argument.
7491 If provided restrict lookup to specified blocks.
7492 (gdbpy_lookup_type): Likewise.
7493 (typy_lookup_type): Likewise.
7494
7495 2010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
7496
7497 Symbian config
7498
7499 gdb/
7500 * arm-symbian-tdep.c: New.
7501 * configure.tgt (arm*-*-symbianelf*): New target.
7502 (*-*-symbianelf*): New OS.
7503 * osabi.c (gdb_osabi_names): Add Symbian.
7504 * defs.h (gdb_osabi): Add GDB_OSABI_SYMBIAN.
7505 * Makefile.in (ALL_TARGET_OBJS): Add arm-symbian-tdep.o.
7506 (ALLDEPFILES): Add arm-symbian-tdep.c.
7507
7508 2010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
7509
7510 * symfile.c (find_lowest_section): Include SEC_ALLOC sections.
7511
7512 2010-02-24 Pedro Alves <pedro@codesourcery.com>
7513
7514 * mi/mi-main.c (mi_cmd_execute): Fix typo.
7515
7516 2010-02-24 Phil Muldoon <pmuldoon@redhat.com>
7517 Tom Tromey <tromey@redhat.com>
7518 Thiago Jung Bauermann <bauerman@br.ibm.com>
7519
7520 * python/python.c (_initialize_python): Call
7521 gdbpy_initialize_symtabs, gdbpy_initialize_symbols and
7522 gdbpy_initialize_blocks.
7523 * python/python-internal.h: Declare struct symbol, block and
7524 symtab_and_line. Declare block_object_type and
7525 symbol_object_type
7526 (gdbpy_lookup_symbol gdbpy_block_for_pc)
7527 (symtab_and_line_to_sal_object, symtab_to_symtab_object)
7528 (symbol_to_symbol_object, block_to_block_object)
7529 (gdbpy_initialize_symtabs,gdbpy_initialize_symbols)
7530 (gdbpy_initialize_blocks ): Declare.
7531 * python/py-frame.c (frapy_block, frapy_function, frapy_find_sal)
7532 (frapy_select): Add methods.
7533 (frapy_read_var): Add symbol branch.
7534 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-symbol, py-symtab,
7535 py-block.
7536 (SUBDIR_PYTHON_SRCS): Likewise.
7537 (py-symbol.o): New rule.
7538 (py-symtab.o): Likewise.
7539 (py-block.o): Likewise.
7540 * python/py-symbol.c: New file.
7541 * python/py-symtab.c: Likewise.
7542 * python/py-block.c: Likewise.
7543
7544 2010-02-24 Pedro Alves <pedro@codesourcery.com>
7545
7546 PR gdb/11321
7547
7548 * inferior.h (prepare_for_detach): Declare.
7549 (struct inferior) <detaching>: New field.
7550 * infrun.c (prepare_for_detach): New.
7551 (handle_inferior_event) <random signal>: Don't stop if detaching.
7552 * target.c (target_detach): Call prepare_for_detach.
7553
7554 2010-02-24 Pedro Alves <pedro@codesourcery.com>
7555
7556 Per-process displaced stepping queue.
7557
7558 * infrun.c (displaced_step_ptid, displaced_step_request_queue)
7559 (displaced_step_gdbarch, displaced_step_closure,
7560 (displaced_step_original, displaced_step_copy): Move globals to
7561 this...
7562 (struct displaced_step_inferior_state): ... new structure.
7563 (displaced_step_inferior_states): New global.
7564 (get_displaced_stepping_state, add_displaced_stepping_state)
7565 (remove_displaced_stepping_state, infrun_inferior_exit): New
7566 functions.
7567 (displaced_step_clear): Add displaced_step_inferior_state
7568 parameter, and adjust to handle it.
7569 (displaced_step_clear_cleanup): Parameter is now a
7570 displaced_step_inferior_state. Adjust.
7571 (displaced_step_prepare): Adjust.
7572 (displaced_step_fixup, displaced_step_fixup)
7573 (infrun_thread_ptid_changed, resume): Adjust.
7574 (init_wait_for_inferior): Don't call displaced_step_clear.
7575 (infrun_thread_stop_requested): Rewrite.
7576 (_initialize_infrun): Install infrun_inferior_exit as
7577 inferior_exit observer.
7578
7579 2010-02-24 Pedro Alves <pedro@codesourcery.com>
7580
7581 * inferior.h (ptid_match): Declare.
7582 * infrun.c (ptid_match): New.
7583 * remote.c (queued_stop_reply): Rewrite and use ptid_match.
7584 (handle_notification): Add debug output.
7585 * linux-nat.c (ptid_match): Delete.
7586
7587 2010-02-24 David S. Miller <davem@davemloft.net>
7588
7589 * gdb_ptrace.h (PT_SYSCALL): If PTRACE_SYSCALL is available, use it.
7590 * syscalls/sparc-linux.xml: New.
7591 * syscalls/sparc64-linux.xml: New.
7592 * Makefile.in (XML_SYSCALL_FILES): Add new syscall XML files.
7593 * sparc-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC32): Define.
7594 (sparc32_linux_get_syscall_number): New function.
7595 (sparc32_linux_init_abi): Set syscall XML file name and hook up
7596 syscall number fetcher.
7597 * sparc64-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC64): Define.
7598 (sparc64_linux_get_syscall_number): New function.
7599 (sparc64_linux_init_abi): Set syscall XML file name and hook up
7600 syscall number fetcher.
7601
7602 2010-02-24 Vladimir Prus <vladimir@codesourcery.com>
7603
7604 Multiexec MI
7605
7606 * breakpoint.c (clear_syscall_counts): Take struct inferior*.
7607 * inferior.c (add_inferior_silent): Notify inferior_added
7608 observer.
7609 (delete_inferior_1): Notify inferior_removed observer.
7610 (exit_inferior_1): Pass inferior, not pid, to observer.
7611 (inferior_appeared): Likewise.
7612 (add_inferior_with_spaces): New.
7613 (add_inferior_command): Use the above.
7614 * inferior.h (delete_inferior_1, add_inferior_with_spaces):
7615 Declare.
7616
7617 * inflow.c (inflow_inferior_exit): Likewise.
7618 * jit.c (jit_inferior_exit_hook): Likewise.
7619
7620 * mi/mi-cmds.c (mi_cmds): Register add-inferior and
7621 remove-inferior.
7622 * mi/mi-cmds.h (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
7623 * mi/mi-interp.c (mi_inferior_added, mi_inferior_removed): New.
7624 (report_initial_inferior): New.
7625 (mi_inferior_removed): Register the above. Make sure
7626 inferior_added observer is called on the first inferior.
7627 (mi_new_thread, mi_thread_exit): Thread group is now identified by
7628 inferior number, not pid.
7629 (mi_solib_loaded, mi_solib_unloaded): Report which inferiors are
7630 affected.
7631 * mi/mi-main.c (current_context): New.
7632 (proceed_thread_callback): Use typed closure.
7633 Proceed everything if pid is 0. Most implementation split into
7634 (proceed_thread): ... this.
7635 (run_one_inferior): New.
7636 (mi_cmd_exec_continue, mi_cmd_exec_interrupt, mi_cmd_exec_run):
7637 Adjust for multiexec behaviour.
7638 (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
7639 (mi_cmd_execute): Handle the 'thread-group' option here.
7640 Do some extra checks.
7641 * mi-parse.c (mi_parse): Handle the --all and --thread-group
7642 options.
7643 * mi-parse.h (struct mi_parse): New fields all and thread_group.
7644
7645 2010-02-24 Vladimir Prus <vladimir@codesourcery.com>
7646
7647 Make -exec-run a proper MI commands.
7648
7649 * mi/mi-cmds.h (mi_cmd_exec_run): Declare.
7650 * mi/mi-cmds.c (mi_cmds): Adjust.
7651 * mi/mi-main.c (mi_cmd_exec_run): New.
7652
7653 2010-02-24 Pedro Alves <pedro@codesourcery.com>
7654 Stan Shebs <stan@codesourcery.com>
7655
7656 * tracepoint.h (set_traceframe_number)
7657 (cleanup_restore_current_traceframe): Declare.
7658 * tracepoint.c (set_traceframe_number): New.
7659 (struct current_traceframe_cleanup): New.
7660 (do_restore_current_traceframe_cleanup)
7661 (restore_current_traceframe_cleanup_dtor)
7662 (make_cleanup_restore_current_traceframe): New.
7663 * infrun.c: Include tracepoint.h.
7664 (fetch_inferior_event): Switch out and in of tfind mode.
7665
7666 2010-02-24 Pedro Alves <pedro@codesourcery.com>
7667
7668 * breakpoint.c (breakpoint_init_inferior): Also delete
7669 bp_shlib_event breakpoints.
7670 * solib-frv.c (enable_break): Remove call to
7671 remove_solib_event_breakpoints.
7672 * solib-svr4.c (enable_break): Ditto.
7673 * solib-darwin.c (darwin_solib_create_inferior_hook): Ditto.
7674 * solib-pa64.c (pa64_solib_create_inferior_hook): Ditto.
7675 * solib-som.c (som_solib_create_inferior_hook): Ditto.
7676 * solib-spu.c (spu_enable_break): Ditto.
7677
7678 2010-02-23 Harald Koenig <H.Koenig@science-computing.de>
7679
7680 * c-exp.y (token_and_value): s/union YYSTYPE/YYSTYPE.
7681
7682 2010-02-23 Harald Koenig <H.Koenig@science-computing.de>
7683
7684 * varobj.c (varobj_update): Avoid non-constants in initializers.
7685
7686 2010-02-23 Tom Tromey <tromey@redhat.com>
7687
7688 * dwarf2loc.c (read_pieced_value) <DWARF_VALUE_STACK>: Correctly
7689 handle big-endian values.
7690 (dwarf2_evaluate_loc_desc) <DWARF_VALUE_STACK>: Likewise.
7691
7692 2010-02-22 Pedro Alves <pedro@codesourcery.com>
7693
7694 PR9605
7695
7696 gdb/
7697 * breakpoint.c (insert_bp_location): If inserting the read
7698 watchpoint failed, fallback to an access watchpoint.
7699 (bpstat_check_watchpoint): Stop for read watchpoint triggers even
7700 if the value changed, if not watching the same memory for writes.
7701 (watchpoint_locations_match): Add comment.
7702 (update_global_location_list): Copy the location's watchpoint type.
7703 * i386-nat.c (i386_length_and_rw_bits): It's an internal error to
7704 handle read watchpoints here.
7705 (i386_insert_watchpoint): Read watchpoints aren't supported.
7706 * remote.c (remote_insert_watchpoint): Return 1 for unsupported
7707 packets.
7708 * target.h (target_insert_watchpoint): Update description.
7709
7710 2010-02-19 Tom Tromey <tromey@redhat.com>
7711
7712 * p-typeprint.c (pascal_type_print_varspec_prefix): Update.
7713 * m2-typeprint.c (m2_print_type): Update.
7714 * gdbtypes.c (recursive_dump_type): Update.
7715 (copy_type_recursive): Update.
7716 * c-typeprint.c (c_type_print_varspec_prefix): Update.
7717 (c_type_print_base): Update.
7718 * gdbtypes.h (TYPE_CODE_TEMPLATE, TYPE_CODE_TEMPLATE_ARG):
7719 Remove.
7720 (struct cplus_struct_type) <ntemplate_args>: Remove.
7721 <struct template_arg>: Remove.
7722 <is_dynamic>: Move earlier.
7723 (TYPE_TEMPLATE_ARGS): Remove.
7724 (TYPE_NTEMPLATE_ARGS): Remove.
7725 (TYPE_TEMPLATE_ARG): Remove.
7726
7727 2010-02-19 Tom Tromey <tromey@redhat.com>
7728
7729 PR c++/8693, PR c++/9496:
7730 * cp-namespace.c (cp_lookup_nested_type): Handle TYPE_CODE_UNION.
7731 * c-exp.y (lex_one_token): Rename from yylex. Don't call
7732 write_dollar_variable. Don't try to classify NAME tokens.
7733 (token_and_value): New type.
7734 (token_fifo, popping, name_obstack): New globals.
7735 (classify_name): New function.
7736 (classify_inner_name): Likewise.
7737 (yylex): Likewise.
7738 (VARIABLE): Now has type sval.
7739 (exp : VARIABLE): Call write_dollar_variable.
7740 (qualified_name): Use TYPENAME, not typebase. Add production for
7741 multiple "::" instances.
7742 (variable): Use name_not_typename.
7743 (qualified_type): Remove.
7744 (typebase): Update.
7745
7746 2010-02-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7747
7748 * symfile.c (addr_info_make_relative): Extend comment. Move SECT to
7749 a more inner block. Initialize ADDR by LOWER_OFFSET only if it was
7750 found by bfd_get_section_by_name.
7751 * symfile.h (struct section_addr_info) <sectindex>: New comment.
7752
7753 2010-02-19 Joel Brobecker <brobecker@adacore.com>
7754
7755 * NEWS: Add new "[...] since 7.1" section. Rename the "[...] since
7756 7.0 section" into "Changes in 7.1".
7757
7758 2010-02-19 Joel Brobecker <brobecker@adacore.com>
7759
7760 GDB 7.1 branch created (branch timestamp: 2010-02-18 20:00 UTC)
7761 * version.in: Bump version to 7.1.50.20100219-cvs.
7762
7763 2010-02-18 Harald Koenig <H.Koenig@science-computing.de>
7764
7765 * mi/mi-main.c (mi_cmd_exec_jump): Drop unneeded `return'.
7766 * symfile.c (symfile_map_offsets_to_segments): Fix assertion.
7767
7768 2010-02-17 Tom Tromey <tromey@redhat.com>
7769
7770 * NEWS: Add Python API Improvements section.
7771
7772 2010-02-18 Daniel Jacobowitz <dan@codesourcery.com>
7773
7774 * NEWS: Correct typo.
7775
7776 2010-02-17 Tom Tromey <tromey@redhat.com>
7777
7778 * objfiles.c (gdb_bfd_ref): Handle abfd==NULL.
7779
7780 2010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7781
7782 * symfile.c (build_section_addr_info_from_objfile): Include sections
7783 only if they are SEC_ALLOC or SEC_LOAD.
7784
7785 2010-02-17 H.J. Lu <hongjiu.lu@intel.com>
7786
7787 PR shlibs/11293
7788 * solib-svr4.c (enable_break): Check size of CORE_ADDR instead
7789 of ULONGEST for address size.
7790
7791 2010-02-17 Tom Tromey <tromey@redhat.com>
7792
7793 * NEWS: Add C++ improvements section.
7794
7795 2010-02-17 Ulrich Weigand <uweigand@de.ibm.com>
7796
7797 * python/python-internal.h [!WITH_THREAD] (PyGILState_Release,
7798 PyThreadState_Swap): Avoid "statement with no effect" warning.
7799
7800 2010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7801
7802 * solib-svr4.c (enable_break <target_auxv_search>): New variable
7803 addr_bit. Adjust LOAD_ADDR sign for cross-arch inferiors.
7804
7805 2010-02-17 Tristan Gingold <gingold@adacore.com>
7806 Petr Hluzin <petr.hluzin@gmail.com>
7807
7808 * avr-tdep.c (avr_scan_prologue): Convert an if statement to a
7809 gdb_assert. Fix info->size for SIG prologue.
7810
7811 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
7812
7813 * infcmd.c (show_inferior_tty_command): Check for NULL.
7814 Correct output message.
7815
7816 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
7817
7818 * linespec.c (decode_line_1): Handle FILE:FUNCTION even if
7819 FUNCTION contains parentheses. Improve removal of a trailing
7820 single quote.
7821
7822 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
7823
7824 * gcore.c (do_bfd_delete_cleanup): New function.
7825 (gcore_command): Use it. Discard the cleanup after success.
7826 (gcore_copy_callback): Delete dead code.
7827
7828 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
7829
7830 * symfile.c (addr_info_make_relative): Always use
7831 find_lowest_section.
7832
7833 2010-02-16 Sami Wagiaalla <swagiaal@redhat.com>
7834
7835 * NEWS: Added entry for namespace fixes.
7836
7837 2010-02-15 Tom Tromey <tromey@redhat.com>
7838
7839 * dwarf2read.c (guess_structure_name): Allocate name on the
7840 objfile obstack.
7841
7842 2010-02-15 Tom Tromey <tromey@redhat.com>
7843
7844 * c-typeprint.c (c_type_print_base): Reverse order of test.
7845
7846 2010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7847
7848 * solib-svr4.c (LM_ADDR_CHECK): New variable minpagesize. Optionally
7849 initialize it from ELF BFD. Extend the prelink condition by it.
7850
7851 2010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7852
7853 * defs.h (parse_pid_to_attach): New.
7854 * utils.c (parse_pid_to_attach): New.
7855 * darwin-nat.c (darwin_attach): Replace ARGS parsing by parse_pid.
7856 * gnu-nat.c (gnu_attach): Likewise.
7857 * nto-procfs.c (procfs_attach): Likewise.
7858 * procfs.c (procfs_attach): Likewise.
7859 * windows-nat.c (windows_attach): Likewise.
7860 * inf-ptrace.c (inf_ptrace_attach): Likewise. Remove variable dummy.
7861 * inf-ttrace.c (inf_ttrace_attach): Likewise.
7862 * remote.c (extended_remote_attach_1): Likewise. New comment on getpid
7863 check.
7864
7865 2010-02-14 Masaki Muranaka <monaka@monami-software.com>
7866
7867 * MAINTAINERS: Add myself for write after approval privileges.
7868
7869 2010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7870
7871 * solib-svr4.c: (LM_ADDR_CHECK): Move variable align to a more inner
7872 block.
7873
7874 2010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7875
7876 * solib-svr4.c: (LM_ADDR_CHECK): Print successful prelink adjustment
7877 only if INFO_VERBOSE.
7878
7879 2010-02-12 Tomas Holmberg <th@virtutech.com>
7880
7881 * mi/mi-main.c: Added the --reverse flag to the following MI
7882 commands: exec-continue, exec-finish, exec-next, exec-step,
7883 exec-next-instruction, exec-step-instruction. This is to
7884 support reverse execution over the MI interface to gdb.
7885
7886 2010-02-12 Pedro Alves <pedro@codesourcery.com>
7887
7888 * tracepoint.c (_initialize_tracepoint): Specify that the address
7889 range of `tfind outsize' is exclusive, and that the address range
7890 of `tfind range' is inclusive, in the commands' help strings.
7891
7892 2010-02-12 Joel Brobecker <brobecker@adacore.com>
7893
7894 Spurious "dll not found" error messages on x64-windows.
7895 * windows-nat.c: Add include of complaints.h.
7896 (handle_unload_dll): Change dll-not-found error into a complaint.
7897
7898 2010-02-12 Pedro Alves <pedro@codesourcery.com>
7899
7900 * breakpoint.c (allocate_bp_location): Use bp_loc_other for
7901 bp_tracepoint and bp_fast_tracepoint, not
7902 bp_loc_software_breakpoint.
7903 (update_global_location_list): Tracepoints are never duplicates of
7904 anything.
7905
7906 2010-02-12 Pedro Alves <pedro@codesourcery.com>
7907
7908 * breakpoint.c (break_command_really): Change return type to int.
7909 Return false if no breakpoint was created, true otherwise.
7910 (trace_command): Don't set the tracepoint count if no tracepoint
7911 was created.
7912 (ftrace_command): Ditto.
7913 (create_tracepoint_from_upload): Bail out if the tracepoint wasn't
7914 created in the breakpoints table.
7915
7916 2010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7917 Ulrich Weigand <uweigand@de.ibm.com>
7918
7919 * solib-svr4.c (LM_ADDR_CHECK): New comment on PPC-aware condition.
7920
7921 2010-02-11 Pedro Alves <pedro@codesourcery.com>
7922
7923 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out if
7924 the offset value isn't of integral type.
7925
7926 2010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7927
7928 * breakpoint.c (delete_breakpoint) <bpt->related_breakpoint != NULL>:
7929 New.
7930
7931 2010-02-11 Pedro Alves <pedro@codesourcery.com>
7932
7933 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out on
7934 non-subscriptable types.
7935 * valarith.c (binop_types_user_defined_p): New, abstracted out
7936 from ...
7937 (binop_user_defined_p): ... this.
7938 * value.h (binop_types_user_defined_p): Declare.
7939
7940 2010-02-11 Pedro Alves <pedro@codesourcery.com>
7941
7942 * tracepoint.c (tfile_open): Remove spurious discard_cleanups.
7943 Merge uploaded TSVs before merging uploaded tracepoints.
7944
7945 2010-02-11 Pedro Alves <pedro@codesourcery.com>
7946
7947 * ax-gdb.c (gen_deref): Don't allow dereferencing void pointers.
7948
7949 2010-02-11 Vladimir Prus <vladimir@codesourcery.com>
7950
7951 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Add extra
7952 whitespace character after a dot in comment.
7953 (mi_cmd_stack_list_arguments, mi_cmd_stack_list_variables):
7954 Likewise.
7955 (list_args_or_locals): For the 'all' (that is
7956 -stack-list-variables) case, always output list of tuples.
7957 Output 'arg' field if variable is argument.
7958
7959 2010-02-10 Tom Tromey <tromey@redhat.com>
7960
7961 * parser-defs.h (parser_debug): Declare.
7962 * parse.c (_initialize_parse): Install "debug parser" set/show
7963 command.
7964 (parser_debug): New global.
7965 (show_parserdebug): New function.
7966 * c-exp.y (c_parse): Set yydebug.
7967
7968 2010-02-10 H.J. Lu <hongjiu.lu@intel.com>
7969
7970 * target-descriptions.c (tdesc_type): Add TDESC_TYPE_I387_EXT,
7971 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
7972 (tdesc_predefined_types): Add i387_ext, i386_eflags and
7973 i386_mxcsr.
7974 (tdesc_find_type): New.
7975 (tdesc_gdb_type): Use tdesc_find_type. Handle TDESC_TYPE_I387_EXT,
7976 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
7977
7978 * target-descriptions.h (tdesc_find_type): New.
7979
7980 2010-02-10 Michael Snyder <msnyder@vmware.com>
7981
7982 * gdb-gdb.py: Comment fix.
7983
7984 2010-02-09 Tristan Gingold <gingold@adacore.com>
7985
7986 * machoread.c (macho_symfile_relocate): New function.
7987 (macho_sym_fns): Use macho_symfile_relocate instead of
7988 default_symfile_relocate.
7989 (macho_oso_data): New type.
7990 (current_oso): New variable.
7991 (macho_add_oso_symfile): Do not compute section_addr_info, but
7992 instead set vma of sections.
7993 Do not set SYMFILE_VERBOSE to call symbol_file_add_from_bfd.
7994 Set and clear current_oso.
7995
7996 2010-02-09 Joel Brobecker <brobecker@adacore.com>
7997
7998 Wrong type description for tagged type parameter.
7999 * ada-lang.c (ada_evaluate_subexp) [OP_VAR_VALUE]: When noside is
8000 EVAL_AVOID_SIDE_EFFECTS, also handle the case when type is a
8001 reference to a tagged type.
8002
8003 2010-02-09 Tristan Gingold <gingold@adacore.com>
8004
8005 * objfiles.c (objfile_separate_debug_iterate): Do not iterate on
8006 brothers of the parent.
8007
8008 2010-02-08 Tom Tromey <tromey@redhat.com>
8009
8010 PR c++/8017:
8011 * value.h: Update.
8012 * valops.c (search_struct_field): Make 'name' const.
8013 (search_struct_method): Likewise.
8014 (find_method_list): Make 'method' const.
8015 (value_struct_elt): Make 'name' and 'err' const.
8016 (value_find_oload_method_list): Make 'method' const.
8017 (find_overload_match): Make 'name' const.
8018 * eval.c (evaluate_subexp_standard): New locals function,
8019 function_name.
8020 <OP_FUNCALL>: Handle OP_SCOPE specially.
8021
8022 2010-02-08 Ulrich Weigand <uweigand@de.ibm.com>
8023
8024 * infrun.c (handle_inferior_event): Do not look up regcache
8025 for exited processes.
8026
8027 2010-02-08 Chris Moller <moller@mollerware.com>
8028
8029 PR gdb/10728
8030 * valarith.c (value_ptrdiff): Added a test for a zero type length,
8031 warn if found, and assume length = 1.
8032
8033 2010-02-08 Chris Moller <cmoller@redhat.com>
8034
8035 PR gdb/9067
8036 * cp-valprint.c (cp_print_value_fields) Fix use of obstacks.
8037 (cp_print_static_field) Fix use of obstacks.
8038
8039 2010-02-08 Pedro Alves <pedro@codesourcery.com>
8040
8041 * linux-nat.c (linux_nat_resume): In non-stop, also only tag
8042 resumed LWPs as resumed.
8043 (linux_nat_wait_1): If there's no resumed LWP in the set of LWPs
8044 we're waiting for, bail out with TARGET_WAITKIND_IGNORE, instead
8045 of throwing an internal error. If an LWP of a process we're not
8046 waiting for reports a signal, don't force collecting a SIGSTOP,
8047 and if it was breakpoint hit in non-stop mode, cancel it. Don't
8048 go through all LWPs cancelling breakpoints in non-stop mode.
8049 (resume_stopped_resumed_lwps): New.
8050 (linux_nat_wait): Use it.
8051
8052 2010-02-07 H.J. Lu <hongjiu.lu@intel.com>
8053
8054 * features/Makefile (WHICH): Add i386/i386, i386/i386-linux,
8055 i386/amd64 and i386/amd64-linux.
8056 (i386/i386-expedite): New.
8057 (i386/i386-linux-expedite): Likewise.
8058 (i386/amd64-expedite):Likewise.
8059 (i386/amd64-linux-expedite): Likewise.
8060 ($(outdir)/i386/i386-linux.dat): Likewise.
8061 ($(outdir)/i386/amd64.dat): Likewise.
8062 ($(outdir)/i386/amd64-linux.dat): Likewise.
8063
8064 * features/i386/32bit-core.xml: New.
8065 * features/i386/32bit-linux.xml: Likewise.
8066 * features/i386/32bit-sse.xml: Likewise.
8067 * features/i386/64bit-core.xml: Likewise.
8068 * features/i386/64bit-linux.xml: Likewise.
8069 * features/i386/64bit-sse.xml: Likewise.
8070 * features/i386/i386-linux.xml: Likewise.
8071 * features/i386/i386.xml: Likewise.
8072 * features/i386/amd64-linux.xml: Likewise.
8073 * features/i386/amd64.xml: Likewise.
8074 * features/i386/i386-linux.c: Likewise.
8075 * features/i386/i386.c: Likewise.
8076 * features/i386/amd64-linux.c: Likewise.
8077 * features/i386/amd64.c: Likewise.
8078
8079 2010-02-05 Sami Wagiaalla <swagiaal@redhat.com>
8080
8081 PR c++/7935:
8082 * cp-support.h: Added char* alias element to using_direct data
8083 struct.
8084 (cp_add_using): Added char* alias argument.
8085 (cp_add_using_directive): Ditto.
8086 * cp-namespace.c: Updated with the above changes.
8087 (cp_lookup_symbol_imports): Check for aliases.
8088 * dwarf2read.c (read_import_statement): Figure out local alias
8089 for the import and pass it on to cp_add_using.
8090 (read_namespace): Pass alias argument to cp_add_using.
8091
8092 2010-02-05 Hui Zhu <teawater@gmail.com>
8093
8094 * defs.h (gdb_bfd_errmsg): New extern.
8095 * exec.c (exec_file_attach): Change bfd_errmsg to
8096 gdb_bfd_errmsg.
8097 * utils.c (AMBIGUOUS_MESS1): New macro.
8098 (AMBIGUOUS_MESS2): New macro.
8099 (gdb_bfd_errmsg): New function.
8100
8101 2010-02-04 Doug Evans <dje@google.com>
8102
8103 * solib-svr4.c (enable_break): Add comment.
8104
8105 2010-02-04 Anthony Green <green@moxielogic.com>
8106
8107 * moxie-tdep.c (moxie_analyze_prologue): Fail protocol analysis
8108 gracefully.
8109
8110 2010-02-04 Tom Tromey <tromey@redhat.com>
8111
8112 * valops.c (search_struct_field): Account for
8113 value_embedded_offset. Fix check for virtual base past the end of
8114 the object. Use value_copy when making a slice of the value.
8115
8116 2010-02-04 H.J. Lu <hongjiu.lu@intel.com>
8117
8118 PR tui/9622
8119 * tui/tui-interp.c (tui_init): Call tui_initialize_readline
8120 only if gdb_stdout is a tty.
8121
8122 2010-02-04 H.J. Lu <hongjiu.lu@intel.com>
8123
8124 * target-descriptions.c: Include "osabi.h".
8125 (maint_print_c_tdesc_cmd): Generate set_tdesc_osabi for valid
8126 OSABI.
8127
8128 2010-02-04 Tristan Gingold <gingold@adacore.com>
8129
8130 * machoread.c (macho_add_oso): Renamed to macho_register_oso.
8131 (macho_symtab_read): Adjust calls to macho_add_oso.
8132 (macho_oso_symfile): Renamed to macho_symfile_read_all_oso.
8133 (macho_symfile_read): Adjust call to macho_oso_symfile.
8134 (macho_new_init): Move this function after declarations.
8135 (macho_symfile_init): Ditto.
8136 * darwin-nat-info.c (darwin_lib_gdb_ports): Remove.
8137 * darwin-nat.c (darwin_lookup_task): Remove unused prototype.
8138
8139 2010-02-04 Vladimir Prus <vladimir@codesourcery.com>
8140
8141 Include MI command in remotelog.
8142
8143 * mi/mi-main.c (mi_execute_command): Call target_log_command.
8144
8145 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
8146
8147 * remote.c (remote_state): Remove gdbarch.
8148 (init_remote_state): Don't set gdbarch.
8149 (remote_query_supported): Pass target_gdbarch instead of
8150 rs->gdbarch to gdbarch_qsupported.
8151
8152 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
8153
8154 * gdbarch.sh: Add qsupported.
8155
8156 * gdbarch.c: Regenerated.
8157 * gdbarch.h: Likewise.
8158
8159 * remote.c (remote_state): Add gdbarch.
8160 (init_remote_state): Set gdbarch.
8161 (remote_query_supported): Support gdbarch_qsupported.
8162
8163 2010-02-03 Daniel Jacobowitz <dan@codesourcery.com>
8164
8165 * amd64fbsd-nat.c (amd64fbsd_supply_pcb): Also check for
8166 __FreeBSD_kernel_version.
8167
8168 2010-02-03 Tristan Gingold <gingold@adacore.com>
8169
8170 * symfile.h (struct sym_fns): Add sym_relocate field.
8171 (default_symfile_relocate): New prototype.
8172 (symfile_relocate_debug_section): First argument is now an objfile.
8173 * symfile.c (default_symfile_relocate): Rename from
8174 symfile_relocate_debug_section, first argument is now an objfile.
8175 (symfile_relocate_debug_section): New function.
8176 * coffread.c (coff_sym_fns): Set sym_relocate field.
8177 * somread.c (som_sym_fns): Ditto.
8178 * mipsread.c (ecoff_sym_fns): Ditto.
8179 * machoread.c (macho_sym_fns): Ditto.
8180 * elfread.c (elf_sym_fns): Ditto.
8181 * dwarf2read.c (dwarf2_read_section): Ditto.
8182 * xcoffread.c (xcoff_sym_fns): Ditto.
8183 * dbxread.c (aout_sym_fns): Ditto.
8184 (dbx_psymtab_to_symtab): Adjust call to symfile_relocate_debug_section.
8185 (elfstab_build_psymtabs): Ditto.
8186
8187 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
8188
8189 * defs.h (MAX_REGISTER_SIZE): Increase to 32.
8190
8191 2010-02-02 Tom Tromey <tromey@redhat.com>
8192
8193 * valops.c (value_cast_structs): Try downcasting using the RTTI
8194 type.
8195
8196 2010-02-02 Tom Tromey <tromey@redhat.com>
8197
8198 * gnu-v2-abi.c: Don't include gnu-v2-abi.h.
8199 (gnuv2_baseclass_offset): Now static.
8200 * Makefile.in (HFILES_NO_SRCDIR): Remove gnu-v2-abi.h.
8201 * gnu-v2-abi.h: Remove.
8202
8203 2010-02-02 Tom Tromey <tromey@redhat.com>
8204
8205 * m2-typeprint.c (m2_record_fields): Don't use
8206 TYPE_DECLARED_TYPE.
8207 * gdbtypes.h (TYPE_DECLARED_CLASS): New macro.
8208 (struct main_type) <flag_declared_class>: New field.
8209 (struct cplus_struct_type) <declared_type>: Remove.
8210 <ntemplate_args>: Move earlier.
8211 (DECLARED_TYPE_CLASS, DECLARED_TYPE_UNION, DECLARED_TYPE_STRUCT)
8212 (DECLARED_TYPE_TEMPLATE): Remove.
8213 (TYPE_DECLARED_TYPE): Remove.
8214 * gdbtypes.c (lookup_union): Don't use TYPE_DECLARED_TYPE.
8215 * dwarf2read.c (read_structure_type): Set TYPE_DECLARED_CLASS.
8216 * c-typeprint.c (c_type_print_base): Use TYPE_DECLARED_CLASS, not
8217 TYPE_DECLARED_TYPE.
8218
8219 2010-02-02 Tom Tromey <tromey@redhat.com>
8220
8221 PR c++/11226, PR c++/9629, PR c++/9688, PR c++/8890:
8222 * valops.c (search_struct_field): Compute nbases after calling
8223 CHECK_TYPEDEF.
8224 (check_field): Call CHECK_TYPEDEF.
8225 * cp-valprint.c (cp_print_value): Pass correct address to
8226 baseclass_offset. Fix check for virtual base past the end of the
8227 object. Don't offset address passed to cp_print_value_fields or
8228 apply_val_pretty_printer.
8229 (cp_print_value_fields): Fix call to val_print.
8230 (cp_print_value_fields_rtti): New function.
8231 * c-valprint.c (c_val_print): Use cp_print_value_fields_rtti.
8232 * p-valprint.c (pascal_object_print_value_fields): Fix call to
8233 val_print.
8234 * python/py-prettyprint.c (apply_val_pretty_printer): Add embedded
8235 offset to address.
8236 * language.h (struct language_defn) <la_val_print>: Document.
8237 * c-lang.h (cp_print_value_fields_rtti): Declare.
8238
8239 2010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8240
8241 PR libc/11214:
8242 * linux-low.c (linux_tracefork_child) [!(__UCLIBC__ && HAS_NOMMU)]: New.
8243 (linux_test_for_tracefork): Move `stack' into [__UCLIBC__ && HAS_NOMMU].
8244 (linux_test_for_tracefork) [!(__UCLIBC__ && HAS_NOMMU)]: New.
8245
8246 2010-02-01 Michael Matz <matz@suse.de>
8247 Daniel Jacobowitz <dan@codesourcery.com>
8248
8249 * i386-tdep.c (i386_frame_cache): Assume valid anonymous
8250 functions use a frame pointer.
8251
8252 2010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8253
8254 * solib-svr4.c (scan_dyntag): New variable dyn_addr. Replace gdb_assert
8255 by a conditional setting DYN_ADDR. Use DYN_ADDR.
8256 * config/djgpp/fnchange.lst: Add translations for
8257 symbol-without-target_section.exp and symbol-without-target_section.c.
8258
8259 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
8260
8261 * gdbarch.sh: Set LANG and LC_ALL to C, not c.
8262 (remote_breakpoint_for_pc): Correct invalid_p check.
8263 * gdbarch.c: Regenerated.
8264
8265 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
8266
8267 * arm-tdep.c (arm_find_mapping_symbol): New function, from
8268 arm_pc_is_thumb.
8269 (arm_pc_is_thumb): Use arm_find_mapping_symbol.
8270 (extend_buffer_earlier): New function.
8271 (MAX_IT_BLOCK_PREFIX, IT_SCAN_THRESHOLD): New constants.
8272 (arm_adjust_breakpoint_address): New function.
8273 (arm_gdbarch_init): Register arm_adjust_breakpoint_address.
8274
8275 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
8276
8277 * arm-linux-tdep.c (arm_linux_thumb2_be_breakpoint)
8278 (arm_linux_thumb2_le_breakpoint): New constants.
8279 (arm_linux_init_abi): Set thumb2_breakpoint and
8280 thumb2_breakpoint_size.
8281 * arm-tdep.c (thumb_insn_size, thumb_advance_itstate): New functions.
8282 (thumb_get_next_pc): Add a comment. Rename IT to ITSTATE.
8283 Implement support for single stepping through IT blocks if
8284 a 32-bit Thumb breakpoint instruction is available.
8285 (arm_breakpoint_from_pc): If a 32-bit Thumb breakpoint instruction
8286 is available, use it when needed.
8287 (arm_remote_breakpoint_from_pc): New function.
8288 (arm_gdbarch_init): Register arm_remote_breakpoint_from_pc.
8289 * arm-tdep.h (struct gdbarch_tdep): Correct thumb_breakpoint
8290 comment. Add thumb2_breakpoint and thumb2_breakpoint_size.
8291
8292 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
8293
8294 * arch-utils.c (default_remote_breakpoint_from_pc): New function.
8295 * arch-utils.h (default_remote_breakpoint_from_pc): Declare.
8296 * gdbarch.c, gdbarch.h: Regenerated.
8297 * gdbarch.sh (remote_breakpoint_from_pc): New architecture method.
8298 * remote.c (remote_insert_breakpoint, remote_insert_hw_breakpoint): Use
8299 gdbarch_remote_breakpoint_from_pc.
8300
8301 2010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
8302
8303 * infrun.c (prepare_to_proceed): Handle other signals which might
8304 match a breakpoint.
8305 (handle_inferior_event): Move the check for unusual breakpoint
8306 signals earlier.
8307
8308 2010-01-29 Paul Hilfinger <hilfinger@adacore.com>
8309
8310 amd64 - function returning record with field straddling 2 registers.
8311 * amd64-tdep.c (amd_classify_aggregate): Handle the case of
8312 a record of length <= 16 in which a field straddles the two
8313 eightbytes.
8314
8315 2010-01-29 Joel Brobecker <brobecker@adacore.com>
8316
8317 Implement return values on amd64-windows.
8318 * amd64-windows-tdep.c: #include gdbcore.h and regcache.h.
8319 (amd64_windows_return_value): New function.
8320 (amd64_windows_init_abi): Call set_gdbarch_return_value with
8321 amd64_windows_return_value.
8322
8323 2010-01-29 Joel Brobecker <brobecker@adacore.com>
8324
8325 amd64-windows: 32 bytes allocated on stack by caller for integer
8326 parameter registers.
8327 * i386-tdep.h (struct gdbarch_tdep): Add new field
8328 integer_param_regs_saved_in_caller_frame.
8329 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
8330 tdep->integer_param_regs_saved_in_caller_frame to 1.
8331 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
8332 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
8333
8334 2010-01-29 Joel Brobecker <brobecker@adacore.com>
8335
8336 amd64-windows: memory args passed by pointer during function calls.
8337 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
8338 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
8339 where tdep->memory_args_by_pointer is non-zero.
8340 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
8341 tdep->memory_args_by_pointer to 1.
8342
8343 2010-01-29 Joel Brobecker <brobecker@adacore.com>
8344
8345 amd64-windows: Integer parameters in function calls.
8346 * i386-tdep.h (enum amd64_reg_class): New, moved here from
8347 amd64-tdep.c.
8348 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
8349 call_dummy_integer_regs, and classify.
8350 * amd64-tdep.h (amd64_classify): Add declaration.
8351 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
8352 (amd64_reg_class): Delete, moved to i386-tdep.h.
8353 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
8354 Replace call to amd64_classify by call to tdep->classify.
8355 (amd64_push_arguments): Get the list of registers to use for
8356 passing integer parameters from the gdbarch tdep structure,
8357 rather than using a hardcoded one. Replace calls to amd64_classify
8358 by calls to tdep->classify.
8359 (amd64_push_dummy_call): Get the register number used for
8360 the "hidden" argument from tdep->call_dummy_integer_regs.
8361 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
8362 and tdep->call_dummy_integer_regs. Set tdep->classify.
8363 * amd64-windows-tdep.c: Add include of gdbtypes.h.
8364 (amd64_windows_dummy_call_integer_regs): New static global.
8365 (amd64_windows_classify): New function.
8366 (amd64_windows_init_abi): Initialize tdep->call_dummy_num_integer_regs
8367 tdep->call_dummy_integer_regs and tdep->classify.
8368
8369 2010-01-28 Daniel Jacobowitz <dan@codesourcery.com>
8370
8371 * regcache.c (regcache_xmalloc): Add aspace argument. Use it
8372 for the new regcache. All callers updated.
8373 (regcache_cpy, regcache_cpy_no_passthrough): Do not set aspace here.
8374 (get_thread_arch_regcache): Do not set aspace here.
8375 * regcache.h (regcache_xmalloc): Update declaration.
8376
8377 * frame.c, infcall.c, ppc-linux-tdep.c: Calls to
8378 regcache_xmalloc updated.
8379
8380 2010-01-28 Joel Brobecker <brobecker@adacore.com>
8381
8382 Another -Wunused-function error in procfs.c (sparc-solaris)
8383 * procfs.c (insert_dbx_link_breakpoint): Delete declaration. Move up.
8384 Only define if SYS_syssgi is defined.
8385 (remove_dbx_link_breakpoint): Delete declaration. Move up.
8386 (dbx_link_addr, insert_dbx_link_bpt_in_file)
8387 (insert_dbx_link_bpt_in_region): Move up. Only define if SYS_syssgi
8388 is itself defined.
8389
8390 2010-01-27 Christopher Faylor <me+cygwin@cgf.cx>
8391
8392 * windows-nat.c (windows_initialization_done): New variable.
8393 (get_windows_debug_event): Issue error when process dies before
8394 completely initializing.
8395 (do_initial_windows_stuff): Set flag to indicate when we are done with
8396 the initial steps of attaching to the child.
8397
8398 2010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
8399
8400 * symtab.h (struct symbol <symtab>): New comment on NULL values.
8401
8402 2010-01-27 Doug Evans <dje@google.com>
8403
8404 * solib-svr4.c (solib_break_names): Add __dl_rtld_db_dlactivity.
8405
8406 * breakpoint.c (bpstat_stop_status): Delete useless code.
8407
8408 2010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
8409
8410 * printcmd.c (display_uses_solib_p): Remove variable section. Access
8411 objfile via SYMBOL_SYMTAB.
8412
8413 2010-01-26 Tom Tromey <tromey@redhat.com>
8414
8415 PR exp/7643:
8416 * eval.c (evaluate_subexp_for_address) <UNOP_IND>: Call
8417 coerce_array on result.
8418
8419 2010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
8420
8421 * cp-namespace.c (cp_lookup_symbol_namespace): Added
8422 search_parent argument.
8423 (cp_add_using): Initialize 'searched' field.
8424 (reset_directive_searched): New function.
8425 * cp-support.h: Add 'searched' field to using_direct struct.
8426 (cp_lookup_symbol_imports): Ditto.
8427 * cp-namespace.c (cp_lookup_symbol_imports): Ditto.
8428 Perform recursive search.
8429 Implement non parent search.
8430 * valops.c (value_maybe_namespace_elt): Updated.
8431
8432 2010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
8433
8434 PR gdb/10929:
8435 * dwarf2read.c (read_lexical_block_scope): Create blocks for
8436 scopes which contain using directives even if they contain no
8437 declarations.
8438 * symtab.c (lookup_symbol_aux): Pass lowest level block to
8439 la_lookup_symbol_nonlocal.
8440 * cp-namespace.c (cp_lookup_symbol_nonlocal): call
8441 cp_lookup_symbol_namespace.
8442 (cp_lookup_symbol_namespace): Perform an import lookup at every
8443 block level.
8444 (cp_lookup_symbol_imports): New function.
8445 (cp_lookup_symbol_in_namespace): New function.
8446
8447 2010-01-25 Tom Tromey <tromey@redhat.com>
8448
8449 PR gdb/11049:
8450 * c-valprint.c (c_val_print): Fix test of extract_unsigned_integer
8451 result.
8452
8453 2010-01-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8454
8455 * configure.ac: Only use host_os part when disabling TUI on osf.
8456 Use test to check variables, prefix strings with x.
8457 * configure: Regenerate.
8458
8459 * solib-osf.c (osf_current_sos): Initialize tail.
8460
8461 2010-01-25 gingold <gingold@adacore.com>
8462
8463 * windows-nat.c (windows_continue): Use %x to print thread id.
8464 (get_windows_debug_event): Ditto.
8465
8466 2010-01-22 Tom Tromey <tromey@redhat.com>
8467
8468 PR symtab/11199:
8469 * dwarf2read.c (quirk_gcc_member_function_pointer): Change return
8470 type and arguments. Use smash_to_methodptr_type.
8471 (read_structure_type): Call quirk_gcc_member_function_pointer
8472 later.
8473 * gdbtypes.h (smash_to_methodptr_type): Declare.
8474 * gdbtypes.c (smash_to_methodptr_type): New function.
8475 (lookup_methodptr_type): Use it.
8476
8477 2010-01-21 Tom Tromey <tromey@redhat.com>
8478
8479 PR symtab/11198:
8480 * symtab.h (lookup_minimal_symbol_and_objfile): Declare.
8481 * minsyms.c (lookup_minimal_symbol_and_objfile): New function.
8482 * glibc-tdep.c (find_minsym_and_objfile): Remove.
8483 (glibc_skip_solib_resolver): Use
8484 lookup_minimal_symbol_and_objfile.
8485
8486 2010-01-21 Kai Tietz <kai.tietz@onevision.com>
8487
8488 * inflow.c (check_syscall): Guard by #if clause for GO32 and
8489 WIN32 targets.
8490
8491 2010-01-20 Tom Tromey <tromey@redhat.com>
8492
8493 PR backtrace/10770:
8494 * valarith.c (value_binop): Handle BINOP_GTR, BINOP_LEQ, and
8495 BINOP_GEQ. Handle BINOP_NOTEQUAL in the signed case.
8496 * dwarf2expr.c (new_dwarf_expr_context): Allocate
8497 dwarf_stack_values, not CORE_ADDRs.
8498 (execute_stack_op): Change DW_OP_div and comparison operators to
8499 use signed operands.
8500
8501 2010-01-20 Vladimir Prus <vladimir@codesourcery.com>
8502
8503 Per-inferior args and tty and environment.
8504
8505 * infcmd.c (inferior_args): Rename to ...
8506 (inferior_args_scratch): ... this.
8507 (inferior_io_terminal): Rename to ...
8508 (inferior_io_terminal_scratch): ... this.
8509 (inferior_argc, inferior_argv): Remove.
8510 (set_inferior_io_terminal, get_inferior_io_terminal): Store
8511 inside current_inferior().
8512 (set_inferior_tty_command, show_inferior_tty_command): New.
8513 (get_inferior_args, set_inferior_args): Store inside
8514 current_inferior().
8515 (notice_args_set): Likewise and rename to...
8516 (set_args_command): ... this.
8517 (set_inferior_args_vector): Likewise.
8518 (notice_args_read): Rename to...
8519 (show_args_command): ...new.
8520 (tty_command): Remove.
8521 (run_command_1): Don't free old args, as they are freed by
8522 set_inferior_arg now.
8523 (run_no_args_command): Likewise.
8524 (inferior_environ): Remove.
8525 (run_command_1): Use environment of the current inferior.
8526 (environment_info, set_environment_command)
8527 (unset_environment_command, path_info, path_command): Likewise.
8528 (_initialize_infcmd): Adjust for function and variable renames.
8529 Do not init inferior_environ.
8530 * inferior.h (set_inferior_arg): Adjust prototype.
8531 (struct inferior): New fields args, argc, argv, terminal, environment.
8532 (inferior_environ): Remove declaration.
8533 * inferior.c (free_inferior): Free new fields.
8534 (add_inferior_silent): Initialize 'environment' field.
8535 * main.c (captured_main): Set arguments only after the initial
8536 inferior has been created. Set set_inferior_io_terminal,
8537 not tty_command.
8538 * mi/mi-main.c (mi_cmd_env_path): Use environment of the current
8539 inferior.
8540 (_initialize_mi_cmd_env): Adjust for disappearance of global
8541 inferior_environ.
8542 * solib.c (solib_find): Use environment of the current inferior.
8543
8544 2010-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
8545
8546 * varobj.c (varobj_add_child, install_dynamic_child): Wrap into #if
8547 HAVE_PYTHON.
8548 (instantiate_pretty_printer): Move HAVE_PYTHON outside of the function.
8549
8550 2010-01-20 Joel Brobecker <brobecker@adacore.com>
8551
8552 Get rid of ada-lang.c:function_name_from_pc.
8553 * ada-lang.c: Add "stack.h" #include.
8554 (function_name_from_pc): Delete.
8555 (is_known_support_routine): Replace call to function_name_from_pc
8556 by call to find_frame_funname.
8557 (ada_unhandled_exception_name_addr_from_raise): Likewise.
8558
8559 2010-01-19 Tom Tromey <tromey@redhat.com>
8560
8561 PR c++/11026:
8562 * dwarf2read.c (read_partial_die): Allocate partial DIE's name on
8563 objfile obstack.
8564
8565 2010-01-19 Tom Tromey <tromey@redhat.com>
8566
8567 * top.c (stop_sig, float_handler, do_nothing): Remove.
8568
8569 2010-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8570
8571 * breakpoint.c (watchpoint_check): Check the call
8572 gdbarch_in_function_epilogue_p before calling frame_find_by_id.
8573 Extend the comment.
8574 * config/djgpp/fnchange.lst: Add translations for
8575 watchpoint-cond-gone.exp, watchpoint-cond-gone.c and
8576 watchpoint-cond-gone-stripped.c.
8577
8578 2010-01-19 Tom Tromey <tromey@redhat.com>
8579
8580 PR c++/8000:
8581 * dwarf2read.c (partial_die_parent_scope): Put enumeration type
8582 into parent scope, and enumerator into grandparent scope.
8583
8584 2010-01-19 Joel Brobecker <brobecker@adacore.com>
8585
8586 * NEWS: Add entry for "set/show ada trust-PAD-over-XVS" commands.
8587
8588 2010-01-19 Joel Brobecker <brobecker@adacore.com>
8589
8590 * configure.host: Make x86_64-*-solaris2.1[0-9]* an alias of
8591 i[34567]86-*-solaris2.1[0-9]*.
8592 * configure.tgt: Likewise.
8593
8594 2010-01-19 Joel Brobecker <brobecker@adacore.com>
8595
8596 * NEWS: Document the source command enhancement allowing it
8597 to load Python scripts. Document the "set/show script-extension"
8598 commands.
8599
8600 2010-01-19 Joel Brobecker <brobecker@adacore.com>
8601
8602 Add -Wunused-function to compile flags.
8603 * configure.ac: Add -Wunused-function to build_warnings.
8604 * configure: Regenerate.
8605
8606 2010-01-19 Joel Brobecker <brobecker@adacore.com>
8607
8608 "delete" ada-lex.c:input function, not used.
8609 * ada-lex.l: #define YY_NO_INPUT.
8610
8611 2010-01-19 Joel Brobecker <brobecker@adacore.com>
8612
8613 Delete free_named_symtabs and associated cleanup.
8614 * symfile.h (free_named_symtabs): Delete declaration.
8615 * symfile.c: Remove some commented out code (clear_symtab_users_once).
8616 (cashier_psymtab): Comment function out.
8617 Delete declaration.
8618 (free_named_symtabs): Delete.
8619 * coffread.c (coff_end_symtab): Remove call to free_named_symtabs.
8620 * dbxread.c (end_psymtab): Likewise.
8621 * dwarf2read.c (process_psymtab_comp_unit): Ditto.
8622 * exec.c (exec_close_1): Ditto.
8623 * xcoffread.c (xcoff_end_psymtab): Likewise.
8624
8625 2010-01-19 Joel Brobecker <brobecker@adacore.com>
8626
8627 * stack.c (print_block_frame_labels): Comment function out.
8628
8629 2010-01-19 Joel Brobecker <brobecker@adacore.com>
8630
8631 Delete unused or undefined functions.
8632 * breakpoint.c (ep_parse_optional_filename): Delete.
8633 * dcache.c (dcache_write_line): Remove declaration.
8634 * infrun.c (build_infrun): Remove declaration.
8635 * tracepoint.c (tracepoint_save_command): Remove declaration.
8636 * linux-nat.c (init_lwp_list): Delete. No longer used.
8637 * event-loop.c (check_async_signal_handlers): Delete declaration.
8638 * infrun.c (init_execution_control_state): Delete.
8639 (proceed): Update comment to avoid mentioning
8640 init_execution_control_state.
8641 * target.c (kill_or_be_killed, nosupport_runtime): Delete.
8642 * ada-lang.c (ada_to_static_fixed_value): Delete.
8643 * scm-lang.c (evaluate_subexp_scm): Delete declaration.
8644 * cp-namespace.c (cp_copy_usings): Delete.
8645 * xml-syscall.c (xml_number_of_syscalls): Delete.
8646 * progspace.c (find_program_space_by_num): Delete.
8647 * inflow.c (handle_sigio): Delete declaration.
8648 * hppa-tdep.c (hppa_alignof): Delete.
8649 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset)
8650 (mipsnbsd_core_osabi_sniffer): Delete.
8651
8652 2010-01-18 Tom Tromey <tromey@redhat.com>
8653
8654 PR c++/9680:
8655 * c-exp.y (REINTERPRET_CAST, DYNAMIC_CAST, STATIC_CAST)
8656 (CONST_CAST): New tokens.
8657 (exp): Add new productions.
8658 (ident_tokens): Add const_cast, dynamic_cast, static_cast, and
8659 reinterpret_cast.
8660 (is_cast_operator): New function.
8661 (yylex): Handle cast operators specially.
8662 * eval.c (evaluate_subexp_standard) <UNOP_DYNAMIC_CAST,
8663 UNOP_REINTERPRET_CAST>: New cases.
8664 * expprint.c (print_subexp_standard): Likewise.
8665 (op_name_standard): Likewise.
8666 (dump_subexp_body_standard): Likewise.
8667 * parse.c (operator_length_standard): Likewise.
8668 * expression.h (enum exp_opcode): New constants UNOP_DYNAMIC_CAST,
8669 UNOP_REINTERPRET_CAST.
8670 * gdbtypes.c (class_types_same_p): New function.
8671 (is_ancestor): Use it.
8672 (is_public_ancestor): New function.
8673 (is_unique_ancestor_worker): Likewise.
8674 (is_unique_ancestor): Likewise.
8675 * gdbtypes.h (class_types_same_p, is_public_ancestor)
8676 (is_unique_ancestor): Declare.
8677 * valops.c (value_reinterpret_cast): New function.
8678 (dynamic_cast_check_1): Likewise.
8679 (dynamic_cast_check_2): Likewise.
8680 (value_dynamic_cast): Likewise.
8681 * value.h (value_reinterpret_cast, value_dynamic_cast): Declare.
8682
8683 2010-01-18 Joel Brobecker <brobecker@adacore.com>
8684
8685 Fix build failure when building without Python support.
8686 * python/python.c: Always include exceptions.h, even when HAVE_PYTHON
8687 is not defined.
8688
8689 2010-01-18 Joel Brobecker <brobecker@adacore.com>
8690
8691 Use XVS field type instead of doing a parallel lookup.
8692 * ada-lang.c (ada_get_base_type): Follow the XVS field type
8693 if it is a reference type instead of doing a type lookup using
8694 the XVS field name.
8695
8696 2010-01-18 Joel Brobecker <brobecker@adacore.com>
8697
8698 Trust PAD types instead of using PAD___XVS.
8699 * ada-lang.c (trust_pad_over_xvs): New static variable.
8700 (ada_is_aligner_type): If !trust_pad_over_xvs and there is a
8701 parallel XVS type, follow the XVS type instead of the PAD type.
8702 (unwrap_value): Make sure that there is no parallel XVE type
8703 before returning the value as is.
8704 (set_ada_list, show_ada_list): New static variables.
8705 (set_ada_command, show_ada_command): New functions.
8706 (_initialize_ada_language): Add new "set/show ada" prefix commands.
8707 Add new "set/show ada trust-PAD-over-XVS" setting.
8708
8709 2010-01-18 Tom Tromey <tromey@redhat.com>
8710 Thiago Jung Bauermann <bauerman@br.ibm.com>
8711
8712 Allow "source" to load python scripts.
8713 * exceptions.h (enum errors): Add UNSUPPORTED_ERROR.
8714 * python/python.c (source_python_script): New function.
8715 * python/python.h (source_python_script): Add declaration.
8716 * cli/cli-cmds.c: #include exceptions.h and python/python.h.
8717 (script_ext_off, script_ext_soft, script_ext_strict)
8718 (script_ext_enums, script_ext_mode): New static constants.
8719 (show_script_ext_mode, find_and_open_script): New functions.
8720 (source_script): Enhance to handle Python scripts.
8721 (init_cli_cmds): Add set/show script-extension commands.
8722
8723 2010-01-16 Stan Shebs <stan@codesourcery.com>
8724
8725 * tracepoint.h (struct trace_status): Use unsigned long long
8726 instead of size_t.
8727 * tracepoint.c (trace_status_command): Fix printf directive.
8728 (trace_save_command): Check fwrite returns, fix printf directive.
8729 (trace_filename): New global.
8730 (tfile_open): Set it, check read returns.
8731 (tfile_close): Free trace_filename.
8732 (tfile_get_traceframe_address): Check read returns.
8733 (tfile_trace_find): Ditto.
8734 (tfile_fetch_registers): Ditto.
8735 (tfile_xfer_partial): Ditto.
8736 (tfile_get_trace_state_variable_value): Ditto.
8737
8738 2010-01-15 Stan Shebs <stan@codesourcery.com>
8739
8740 Add trace file support.
8741 * tracepoint.h (enum trace_stop_reason): New enum.
8742 (struct trace_status): New struct.
8743 (parse_trace_status): Declare.
8744 (struct uploaded_tp): Move here from remote.c,
8745 add fields for actions.
8746 (struct uploaded_tsv): New struct.
8747 * tracepoint.c (tfile_ops): New target vector.
8748 (trace_fd): New global.
8749 (tfile_open): New function.
8750 (tfile_close): New function.
8751 (tfile_files_info): New function.
8752 (tfile_get_trace_status): New function.
8753 (tfile_get_traceframe_address): New function.
8754 (tfile_trace_find): New function.
8755 (tfile_fetch_registers): New function.
8756 (tfile_xfer_partial): New function.
8757 (tfile_get_trace_state_variable_value): New function.
8758 (init_tfile_ops): New function.
8759 (_initialize_tracepoint): Call it, add tfile target.
8760 (trace_status): New global.
8761 (current_trace_status): New function.
8762 (trace_running_p): Remove, change all users to get from
8763 current_trace_status()->running.
8764 (get_trace_status): Remove.
8765 (trace_status_command): Call target_get_trace_status directly,
8766 report more detail including tracing stop reasons.
8767 (trace_find_command): Always allow tfind on a file.
8768 (trace_find_pc_command): Ditto.
8769 (trace_find_tracepoint_command): Ditto.
8770 (trace_find_line_command): Ditto.
8771 (trace_find_range_command): Ditto.
8772 (trace_find_outside_command): Ditto.
8773 (trace_frames_offset, cur_offset): Declare as off_t.
8774 (trace_regblock_size): Rename from reg_size, update users.
8775 (parse_trace_status): New function.
8776 (tfile_interp_line): New function.
8777 (disconnect_or_stop_tracing): Ensure current trace
8778 status before asking what to do.
8779 (stop_reason_names): New global.
8780 (trace_save_command): New command.
8781 (get_uploaded_tp): Move here from remote.c.
8782 (find_matching_tracepoint): Ditto.
8783 (merge_uploaded_tracepoints): New function.
8784 (parse_trace_status): Use stop_reason_names.
8785 (_initialize_tracepoint): Define tsave command.
8786 * target.h (target_ops): New fields to_save_trace_data,
8787 to_upload_tracepoints, to_upload_trace_state_variables,
8788 to_get_raw_trace_data, change to_get_trace_status
8789 to take a pointer to a status struct.
8790 (target_save_trace_data): New macro.
8791 (target_upload_tracepoints): New macro.
8792 (target_upload_trace_state_variables): New macro.
8793 (target_get_raw_trace_data): New macro.
8794 * target.c (update_current_target): Add new methods, change
8795 signature of to_get_trace_status.
8796 * remote.c (hex2bin): Make globally visible.
8797 (bin2hex): Ditto.
8798 (remote_download_trace_state_variable): Download name also.
8799 (remote_get_trace_status): Update parameter, use
8800 parse_trace_status.
8801 (remote_save_trace_data): New function.
8802 (remote_upload_tracepoints): New function.
8803 (remote_upload_trace_state_variables): New function.
8804 (remote_get_raw_trace_data): New function.
8805 (remote_start_remote): Use them.
8806 (_initialize_remote_ops): Add operations.
8807 * ax-gdb.c: Include breakpoint.h.
8808 * breakpoint.c (create_tracepoint_from_upload): Use
8809 break_command_really, return tracepoint, warn about unimplemented
8810 parts.
8811 * NEWS: Mention trace file addition.
8812
8813 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8814
8815 Fix compilation warning on gcc-3.4.
8816 * exec.c (print_section_info): Move the `displacement' variable
8817 initialization to its declaration.
8818
8819 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8820
8821 * gdb-gdb.py (StructMainTypePrettyPrinter): Fix TYPE_CODE_RANGE
8822 comparison.
8823
8824 2010-01-15 Eric Botcazou <botcazou@adacore.com>
8825
8826 "info tasks" broken by typedefs in ATCB type definitions.
8827 * ada-lang.c (ada_template_to_fixed_record_type_1): Add call to
8828 ada_check_typedef before retrieving the length of the type for
8829 regular fields.
8830
8831 2010-01-15 Joel Brobecker <brobecker@adacore.com>
8832
8833 Do not use name-based lookup for unconstrained packed arrays.
8834 * ada-lang.c (find_parallel_type_by_descriptive_type):
8835 Limit the fallback to name-based lookups to the case where
8836 the type is a constrained packed array.
8837
8838 2010-01-15 Joel Brobecker <brobecker@adacore.com>
8839
8840 Enhance gdb-gdb.py to handle main_type.type_specific.
8841 * gdb-gdb.py: Print the type-specific part of struct main_type.
8842
8843 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8844
8845 * configure.ac (AC_CHECK_FUNCS): Check for setrlimit and getrlimit.
8846 * configure: Regenerate.
8847 * config.in: Regenerate.
8848 * utils.c: Include sys/resource.h.
8849 (dump_core, can_dump_core): New.
8850 (internal_vproblem): Update the comment. Check can_dump_core while
8851 setting dump_core_p. Replace two abort calls by dump_core calls.
8852
8853 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8854 Eli Zaretskii <eliz@gnu.org>
8855
8856 * NEWS: Document the PIE support.
8857
8858 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8859
8860 * linux-tdep.c: Remove includes gdbcore.h, observer.h and elf-bfd.h.
8861 (check_is_pie_binary, _initialize_linux_tdep): Remove.
8862
8863 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8864
8865 * solib-svr4.c (svr4_exec_displacement): New comment for entry_point.
8866 Replace exec_entry_point call by bfd_get_start_address.
8867
8868 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8869
8870 Support Valgrind attachments broken by the PIE support.
8871 * auxv.c: Include gdbcore.h.
8872 (procfs_xfer_auxv): Make static. Reduce its comment. Drop its
8873 parameters ops, object and annex. Remove their assertions.
8874 (ld_so_xfer_auxv, memory_xfer_auxv): New function.
8875 * auxv.h (procfs_xfer_auxv): Remove comment. Rename to ...
8876 (memory_xfer_auxv): ... here.
8877 * linux-nat.c (linux_xfer_partial): Rename procfs_xfer_auxv to
8878 memory_xfer_auxv.
8879 * procfs.c (procfs_xfer_partial): Likewise.
8880 * solib-svr4.c (svr4_relocate_main_executable): New prototype.
8881 (svr4_special_symbol_handling): Call svr4_relocate_main_executable.
8882 (svr4_solib_create_inferior_hook): Conditionalize the
8883 svr4_relocate_main_executable call.
8884
8885 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8886
8887 * solib-svr4.c (scan_dyntag): Remove variable dyn_addr. New variable
8888 target_section. Find SECT in current_target_sections, gdb_assert it.
8889 (elf_lookup_lib_symbol): Pass the binary file if given symfile_objfile.
8890 New variable abfd.
8891 * symtab.c (lookup_objfile_from_block): Return the binary file instead
8892 of separate debug info file.
8893
8894 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8895
8896 Support PIEs with no symfile_objfile.
8897 * exec.c (print_section_info <abfd == exec_bfd>): Relocate Entry point.
8898 * solib-svr4.c (svr4_relocate_main_executable <exec_bfd>): New block.
8899
8900 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8901
8902 * solib-svr4.c (svr4_relocate_main_executable): Move the static exec
8903 code part to ...
8904 (svr4_static_exec_displacement): ... a new function.
8905 (svr4_exec_displacement): New function.
8906 (svr4_relocate_main_executable): Call svr4_exec_displacement. Allocate
8907 new_offsets using alloca now. Remove variable old_chain and changed.
8908 Call objfile_relocate unconditionally now.
8909
8910 2010-01-14 Doug Evans <dje@google.com>
8911
8912 * gdbtypes.c (arch_flags_type): Fix comment.
8913 * gdbtypes.h (arch_composite_type): Fix comment.
8914
8915 2009-01-14 Tristan Gingold <gingold@adacore.com>
8916
8917 * machoread.c (macho_add_oso_symfile): Add symfile_flags parameter.
8918 Call xstrdup for abfd->filename. Pass symfile_flags and objfile flags
8919 to symbol_file_add_from_bfd. Add OSO as separate objfile.
8920 (macho_oso_symfile): Add symfile_flags parameter. Pass it to
8921 macho_add_oso_symfile.
8922 (macho_symfile_read): Pass symfile_flags to macho_oso_symfile.
8923
8924 2010-01-14 Joel Brobecker <brobecker@adacore.com>
8925
8926 Tru64: Dead threads are never deleted.
8927 * dec-thread.c (dec_thread_ptid_is_alive): New function.
8928 (dec_thread_count_gdb_threads): Fix counter increment.
8929 (dec_thread_add_gdb_thread): Fix *listp increment.
8930 (resync_thread_list): Fix bug in deletion of dead threads that
8931 caused all threads to be deleted, instead of just the dead ones.
8932
8933 2010-01-13 Phil Muldoon <pmuldoon@redhat.com>
8934
8935 PR python/10705
8936
8937 * python/python-internal.h: Add lazy_string_object_type
8938 definition.
8939 (create_lazy_string_object, gdbpy_initialize_lazy_string)
8940 (gdbpy_is_lazystring, gdbpy_extract_lazy_string): Define.
8941 * python/py-value.c (valpy_lazy_string): New function.
8942 (convert_value_from_python): Add lazy string conversion.
8943 * python/py-prettyprint.c (pretty_print_one_value): Check if
8944 return is also a lazy string.
8945 (print_string_repr): Add lazy string printing branch.
8946 (print_children): Likewise.
8947 * python/py-lazy-string.c: New file. Implement lazy strings.
8948 * python/python.c (_initialize_python): Call
8949 gdbpy_initialize_lazy_string.
8950 * varobj.c (value_get_print_value): Add lazy string printing
8951 branch. Account for encoding.
8952 * c-lang.c (c_printstr): Account for new encoding argument. If
8953 encoding is NULL, find encoding suited for type, otherwise use
8954 user encoding.
8955 * language.h (language_defn): Add encoding argument.
8956 (LA_PRINT_STRING): Likewise.
8957 * language.c (unk_lang_printstr): Update to reflect new encoding
8958 argument to language_defn.
8959 * ada-lang.h (ada_printstr): Likewise.
8960 * c-lang.h (c_printstr): Likewise.
8961 * p-lang.h (pascal_printstr);
8962 * f-lang.c (f_printstr): Likewise.
8963 * m2-lang.c (m2_printstr): Likewise.
8964 * objc-lang.c (objc_printstr): Likewise.
8965 * p-lang.c (pascal_printstr): Likewise.
8966 * scm-lang.c (scm_printstr): Likewise.
8967 * c-valprint.c (c_val_print): Update LA_PRINT_STRING call for
8968 encoding argument.
8969 * ada-valprint.c (ada_printstr): Likewise.
8970 * f-valprint.c (f_val_print): Likewise
8971 * m2-valprint.c (m2_val_print): Likewise.
8972 * p-valprint.c (pascal_val_print): Likewise.
8973 * expprint.c (print_subexp_standard): Likewise.
8974 * valprint.c (val_print_string): Likewise.
8975 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-lazy-string.
8976 (SUBDIR_PYTHON_SRCS): Likewise.
8977 (py-lazy-string.o): New rule.
8978
8979 2010-01-13 Doug Evans <dje@google.com>
8980
8981 * mi/mi-main.c (list_available_thread_groups): Avoid "may be used
8982 uninitialized" warning from gcc on local `tree'.
8983
8984 2010-01-13 Vladimir Prus <vladimir@codesourcery.com>
8985
8986 Implement core awareness.
8987
8988 * bcache.c (compare_ints): Remove
8989 (print_percentage): Use compare_positive_ints.
8990 * defs.h (compare_positive_ints): Declare.
8991 * linux-nat.h (struct lin_lwp): New field core.
8992 (linux_nat_core_of_thread_1): Declare.
8993 * linux-nat.c (add_lwp): Init the 'core' field.
8994 (linux_nat_wait_1): Record the core.
8995 (linux_nat_core_of_thread_1, linux_nat_core_of_thread): New.
8996 (linux_nat_add_target): Register the above.
8997 * linux-thread-db.c (update_thread_core): New.
8998 (thread_db_find_new_threads): Update core information for
8999 every thread.
9000 * remote.c (struct private_thread_info): New.
9001 (free_private_thread_info, demand_private_info): New.
9002 (PACKET_qXfer_threads, use_osdata_threads): New.
9003 (struct thread_item, threads_parsing_context
9004 (start_thread, end_thread, thread_attributes)
9005 (thread_children, threads_children, threads_elements): New.
9006 (remote_threads_info): Try qXfer:threads before anything
9007 else.
9008 (remote_protocol_packets): Register qXfer:threads.
9009 (remote_open_1): Init use_osdata_threads.
9010 (struct stop_reply): New field 'core'.
9011 (remote_parse_stop_reply): Parse core number.
9012 (process_stop_reply): Record core number.
9013 (remote_xfer_partial): Handle qXfer:threads.
9014 (remote_core_of_thread): New.
9015 (init_remote_ops): Register remote_core_of_thread.
9016 (_initialize_remote): Register qXfer:read.
9017 * target.c (target_core_of_thread): New
9018 * target.h (enum target_object): New value TARGET_OBJECT_THREADS.
9019 (struct target_ops): New field to_core_of_threads.
9020 (target_core_of_thread): Declare.
9021 * gdbthread.h (struct thread_info): New field private_dtor.
9022 * thread.c (print_thread_info): Report the core.
9023 * ui-out.c (MAX_UI_OUT_LEVELS): Increase.
9024 * utils.c (compare_positive_ints): New.
9025 * features/threads.dtd: New.
9026 * mi/mi-interp.c (mi_on_normal_stop): Report the core.
9027 * mi/mi-main.c (struct collect_cores_data, collect_cores)
9028 (do_nothing, free_vector_of_osdata_items)
9029 (splay_tree_int_comparator, free_splay_tree): New.
9030 (print_one_inferior_data): Implemented printing of selected
9031 inferiors. Collect and print cores.
9032 (output_cores): New.
9033 (mi_cmd_list_thread_groups): Support --recurse. Permit specifying
9034 thread groups together with --available.
9035
9036 2010-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9037
9038 * configure: Regenerate (for _STRUCTURED_PROC).
9039
9040 2010-01-12 Joel Brobecker <brobecker@adacore.com>
9041
9042 Delete dead function.
9043 * ada-lang.c (extract_string): Delete. No longer used.
9044
9045 2010-01-12 Joel Brobecker <brobecker@adacore.com>
9046
9047 Fix -Wunused warning in dec-thread.c.
9048 * dec-thread.c (dec_thread_count_gdb_threads)
9049 (dec_thread_add_gdb_thread): Prevent -Wunused warning.
9050
9051 2010-01-12 Joel Brobecker <brobecker@adacore.com>
9052
9053 * ada-valprint.c (ada_print_floating): Remove trailing space.
9054
9055 2010-01-12 Joel Brobecker <brobecker@adacore.com>
9056
9057 Add support for DW_AT_GNAT_descriptive_type.
9058 * gdbtypes.h (enum type_specific_kind): New enum.
9059 (struct main_type) [type_specific_field]: New component.
9060 [type_specific]: Add new component "gnat_stuff".
9061 (struct gnat_aux_type): New type.
9062 (INIT_CPLUS_SPECIFIC): Also set TYPE_SPECIFIC_FIELD (type).
9063 (HAVE_CPLUS_STRUCT): Also check TYPE_SPECIFIC_FIELD (type).
9064 (gnat_aux_default, allocate_gnat_aux_type): Add declaration.
9065 (INIT_GNAT_SPECIFIC, ALLOCATE_GNAT_AUX_TYPE, HAVE_GNAT_AUX_INFO)
9066 (TYPE_SPECIFIC_FIELD): New macros.
9067 (TYPE_CPLUS_SPECIFIC): Return cplus_struct_default if the given
9068 type does not hold any cplus-specific data.
9069 (TYPE_RAW_CPLUS_SPECIFIC): New macro.
9070 (TYPE_GNAT_SPECIFIC, TYPE_DESCRIPTIVE_TYPE): New macros.
9071 (TYPE_IS_OPAQUE): Use HAVE_CPLUS_STRUCT to check if type has
9072 cplus-specific data.
9073 * gdbtypes.c (allocate_cplus_struct_type): Minor stylistic rewrite.
9074 Set new component TYPE_SPECIFIC_FIELD (type).
9075 (gnat_aux_default): New constant.
9076 (allocate_gnat_aux_type): New function.
9077 (init_type): Add initialization the type-specific stuff for
9078 TYPE_CODE_FLT and TYPE_CODE_FUNC types.
9079 (print_gnat_stuff): New function.
9080 (recursive_dump_type): Use HAVE_CPLUS_STRUCT to check for cplus-
9081 specific data. Adjust code that prints the contents of the
9082 type-specific union using the TYPE_SPECIFIC_FIELD value.
9083 * dwarf2read.c (dwarf2_attach_fields_to_type): Do not allocate
9084 the type cplus stuff for Ada types.
9085 (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type):
9086 Error out if these routines are called with an Ada type.
9087 (read_structure_type, read_array_type, read_subrange_type):
9088 Add call to set_descriptive_type.
9089 (set_die_type): Initialize the gnat-specific data if necessary.
9090 (need_gnat_info, die_descriptive_type, set_descriptive_type):
9091 New functions.
9092 * ada-lang.c (decode_constrained_packed_array_type): Use
9093 decode_constrained_packed_array_type instead of doing a standard
9094 lookup to locate a parallel type.
9095 (find_parallel_type_by_descriptive_type): New function.
9096 (ada_find_parallel_type_with_name): New function.
9097 (ada_find_parallel_type): Reimplement using
9098 ada_find_parallel_type_with_name.
9099 * ada-valprint.c (print_field_values): Use HAVE_CPLUS_STRUCT
9100 to check if type has a cplus stuff.
9101 * linespec.c (total_number_of_methods): Likewise.
9102 * mdebugread.c (new_type): Likewise.
9103
9104 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
9105
9106 * NEWS: Document the 0b binary number prefix parsing.
9107
9108 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
9109
9110 * objfiles.c (objfile_relocate1): Change the return type to int.
9111 Describe the new return value. Return non-zero if data changed.
9112 (objfile_relocate): New variable changed. Set it. Call
9113 breakpoint_re_set depending on CHANGED.
9114
9115 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
9116
9117 Implement binary numbers parsing.
9118 * c-exp.y (parse_number): New case 'b' and 'B'.
9119
9120 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
9121 Tristan Gingold <gingold@adacore.com>
9122
9123 * solib.c (info_sharedlibrary_command): Replace
9124 objfile_has_partial_symbols and objfile_has_full_symbols calls by
9125 objfile_has_symbols.
9126
9127 2010-01-10 Joel Brobecker <brobecker@adacore.com>
9128
9129 * NEWS: Document the improvements made to the mips-irix port.
9130
9131 2010-01-09 Joel Brobecker <brobecker@adacore.com>
9132
9133 Fix the documentation of valprint.c:value_print.
9134 * valprint.c (value_print): Update the function description to
9135 mention that the syntax of the output follows the current_language,
9136 not necessarily C.
9137
9138 2010-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9139
9140 Fix displacement of separate debug info files.
9141 * objfiles.c (objfile_relocate): Rename to ...
9142 (objfile_relocate1): ... here and make it static. Extend the comment.
9143 (objfile_relocate): New function.
9144 * solib-spu.c (spu_relocate_main_executable): Explicitly check if
9145 SYMFILE_OBJFILE is NULL. Remove variables objfile and old_chain.
9146 Remove following of SEPARATE_DEBUG_OBJFILE. new_offsets is now
9147 allocated using alloca.
9148 * symfile.c (copy_section_addr_info): Remove.
9149 (build_section_addr_info_from_objfile): Make it global. New variables
9150 addr_bit and mask, use them.
9151 * symfile.h (build_section_addr_info_from_objfile): New prototype.
9152 (copy_section_addr_info): Remove.
9153
9154 2010-01-09 Joel Brobecker <brobecker@adacore.com>
9155
9156 Signal unwinder for mips-irix N32.
9157 * mips-irix-tdep.c: #include mips-tdep.h, trad-frame.h, and
9158 tramp-frame.h.
9159 (SIGTRAMP_FRAME_SIZE, SIGCONTEXT_PC_OFF, SIGCONTEXT_REGS_OFF)
9160 (SIGCONTEXT_FPREGS_OFF, SIGCONTEXT_FPCSR_OFF, SIGCONTEXT_HI_OFF)
9161 (SIGCONTEXT_LO_OFF): New macros.
9162 (mips_irix_n32_tramp_frame_init): New function.
9163 (mips_irix_n32_tramp_frame): New static constant.
9164 (mips_irix_init_abi): Prepend the mips_irix_n32_tramp_frame unwinder.
9165
9166 2010-01-09 Joel Brobecker <brobecker@adacore.com>
9167
9168 Breakpoint in shared library does not work on mips-irix.
9169 * procfs.c: #include "observer.h".
9170 (procfs_inferior_created): New function, moving here the code
9171 which unsets the syssgi syscall-exit notifications.
9172 (procfs_create_inferior): Remove the code which unsets the syssgi
9173 syscall-exit notifications. It is too early to do this here.
9174 (_initialize_procfs): Attach the procfs_inferior_created observer.
9175
9176 2010-01-09 Joel Brobecker <brobecker@adacore.com>
9177
9178 Wrong return convention for arrays (mips-irix).
9179 * mips-tdep.c (mips_n32n64_return_value): Arrays whose size is
9180 128 bits or smaller are returned the same way as structs
9181 and unions of the the same size.
9182
9183 2010-01-09 Joel Brobecker <brobecker@adacore.com>
9184
9185 Cannot set the PC on mips-irix.
9186 * irix5-nat.c (fill_gregset): Check regno against the raw PC
9187 register number, no the cooked one.
9188
9189 2010-01-09 Joel Brobecker <brobecker@adacore.com>
9190
9191 Error while loading core file on mips-irix.
9192 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing
9193 if debugging from a core file.
9194
9195 2010-01-09 Joel Brobecker <brobecker@adacore.com>
9196
9197 GDB hangs when attaching to process on mips-irix.
9198 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing if
9199 attaching to a process.
9200
9201 2010-01-09 Joel Brobecker <brobecker@adacore.com>
9202
9203 Use the correct breakpoint instruction on mips-irix.
9204 * mips-tdep.c (mips_breakpoint_from_pc): Add new static variable
9205 containing the correct breakpoint instruction to use on mips-irix.
9206 Use it when the osabi is GDB_OSABI_IRIX.
9207
9208 2010-01-09 Joel Brobecker <brobecker@adacore.com>
9209
9210 -Wunused warning in procfs.c (mips-irix only).
9211 * procfs.c (gdb_praddset, gdb_prdelset): New macros. Use them
9212 throughout instead of using praddset and prdelset respectively.
9213
9214 2010-01-09 Joel Brobecker <brobecker@adacore.com>
9215
9216 GDB crash while stepping into function.
9217 * infrun.c (handle_inferior_event): Refetch the current frame
9218 after handling what.main_action, in case that pointer became
9219 dangling.
9220
9221 2010-01-09 Joel Brobecker <brobecker@adacore.com>
9222
9223 Fix build failure of solaris-hosted cross debuggers.
9224 * ada-valprint.c, parse.c: Include defs.h before including ctype.h.
9225
9226 2010-01-09 Daniel Gutson <dgutson@codesourcery.com>
9227
9228 Fix build failure on sparc-solaris.
9229 * procfs.c: (procfs_do_thread_registers) Use elfcore_write_lwpstatus.
9230
9231 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9232
9233 Move some symfile code into subroutines.
9234 * symfile.h (relative_addr_info_to_section_offsets)
9235 (addr_info_make_relative): New prototypes.
9236 * symfile.c (default_symfile_offsets): Move a part to ...
9237 (relative_addr_info_to_section_offsets): ... this new function.
9238 (default_symfile_offsets): Call it.
9239 (syms_from_objfile <!mainline && addrs && addrs->other[0].name>): Move
9240 this part to ...
9241 (addr_info_make_relative): ... this new function.
9242
9243 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9244
9245 Add from_tty to solib_create_inferior_hook.
9246 * infcmd.c (post_create_inferior): Move solib_add after
9247 solib_create_inferior_hook. Pass from_tty to
9248 solib_create_inferior_hook. Call solib_add and SOLIB_ADD with
9249 0 from_tty and comment why.
9250 * infrun.c (follow_exec): Pass from_tty solib_create_inferior_hook as 0.
9251 * linux-nat.c (linux_child_follow_fork): Likewise.
9252 * nto-procfs.c (procfs_post_attach, procfs_create_inferior): Likewise.
9253 * solib-darwin.c (darwin_solib_create_inferior_hook): New parameter
9254 from_tty.
9255 * solib-frv.c (frv_solib_create_inferior_hook): Likewise.
9256 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
9257 * solib-null.c (null_solib_create_inferior_hook): Likewise.
9258 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
9259 * solib-pa64.c (pa64_solib_create_inferior_hook): Likewise.
9260 * solib-som.c (som_solib_create_inferior_hook): Likewise.
9261 * solib-spu.c (spu_solib_create_inferior_hook): New parameter from_tty.
9262 Pass it to svr4_so_ops.solib_create_inferior_hook.
9263 * solib-sunos.c (sunos_solib_create_inferior_hook): New parameter
9264 from_tty.
9265 * solib-svr4.c (enable_break): New parameter from_tty. Pass it to
9266 solib_add.
9267 (svr4_solib_create_inferior_hook): New parameter from_tty. Pass it to
9268 enable_break.
9269 * solib-target.c (solib_target_solib_create_inferior_hook): New
9270 parameter from_tty.
9271 * solib.c (solib_create_inferior_hook): New parameter from_tty. Pass
9272 it to ops->solib_create_inferior_hook.
9273 (reload_shared_libraries): Pass from_tty to solib_create_inferior_hook.
9274 Move solib_add after solib_create_inferior_hook, call it now with
9275 from_tty as 0. New comment there.
9276 * solib.h (solib_create_inferior_hook): New parameter from_tty.
9277 * solist.h (struct target_so_ops <solib_create_inferior_hook>):
9278 Likewise.
9279
9280 2010-01-08 Vladimir Prus <vladimir@codesourcery.com>
9281
9282 Fix multiexec race.
9283 * infrun.c (handle_inferior_event): Use get_thread_regcache
9284 with events ptid, not get_current_regcache.
9285
9286 2009-01-08 Joel Brobecker <brobecker@adacore.com>
9287
9288 GDB crash with empty executable name (MinGW).
9289 * source.c (openp): Add assert that parameter string is not NULL.
9290 if parameter string is an empty string, then return with a failure
9291 immediately.
9292
9293 2009-01-08 Joel Brobecker <brobecker@adacore.com>
9294
9295 Get rid of support for VAX Floats.
9296 * ada-lang.h (ada_is_vax_floating_type, ada_vax_float_type_suffix)
9297 (ada_vax_float_print_function): Delete.
9298 * ada-lang.c (ada_is_vax_floating_type, ada_vax_float_type_suffix)
9299 (ada_vax_float_print_function): Delete.
9300 * ada-typeprint.c (print_vax_floating_point_type): Delete.
9301 (ada_print_type): Remove support for VAX floats.
9302 * ada-valprint.c (ada_val_print_1): Remove support for VAX floats.
9303
9304 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9305
9306 * stabsread.c (read_args): Handle zero arguments.
9307
9308 2009-01-08 Joel Brobecker <brobecker@adacore.com>
9309
9310 Cannot find in-tree libiconv.a after reconfigure.
9311 * acinclude.m4 (AM_ICONV): If we find an in-tree libiconv.a
9312 that we can use, then cache the path to this archive.
9313 * configure: Regenerate.
9314
9315 2010-01-07 Stan Shebs <stan@codesourcery.com>
9316
9317 Make tracepoint operations go through target vector.
9318 * target.h (enum trace_find_type): New enum.
9319 (struct target_ops): New fields to_trace_init,
9320 to_download_tracepoint, to_download_trace_state_variable,
9321 to_trace_set_readonly_regions, to_trace_start, to_get_trace_status,
9322 to_trace_stop, to_trace_find, to_get_trace_state_variable_value,
9323 to_set_disconnected_tracing.
9324 (target_trace_init): New macro.
9325 (target_download_tracepoint): New macro.
9326 (target_download_trace_state_variable): New macro.
9327 (target_trace_start): New macro.
9328 (target_trace_set_readonly_regions): New macro.
9329 (target_get_trace_status): New macro.
9330 (target_trace_stop): New macro.
9331 (target_trace_find): New macro.
9332 (target_get_trace_state_variable_value): New macro.
9333 (target_set_disconnected_tracing): New macro.
9334 * target.c (update_current_target): Inherit and set defaults for
9335 tracepoint operations.
9336 * tracepoint.c (default_collect): Make globally visible.
9337 (target_is_remote): Remove, along with all calls.
9338 (tvariables_info): Call target_get_trace_state_variable_value.
9339 (remote_set_transparent_ranges): Remove.
9340 (trace_start_command): Call target_trace_init,
9341 target_download_tracepoint, etc.
9342 (download_tracepoint): Remove.
9343 (trace_stop_command): Simplify.
9344 (stop_tracing): Call target_trace_stop.
9345 (get_trace_status): Call target_get_trace_status.
9346 (trace_status_command): Add case for targets that cannot trace.
9347 (finish_tfind_command): Change to take numerical arguments, call
9348 target_trace_find.
9349 (trace_find_command): Update call to finish_tfind_command.
9350 (trace_find_pc_command): Ditto.
9351 (trace_find_tracepoint_command): Ditto.
9352 (trace_find_line_command): Ditto.
9353 (trace_find_range_command): Ditto.
9354 (trace_find_outside_command): Ditto.
9355 (set_disconnected_tracing_value): Call
9356 target_set_disconnected_tracing.
9357 * remote.c: Add protocol encoding bits from tracepoint.c.
9358 (trace_error): Move from tracepoint.c.
9359 (remote_get_noisy_reply): Ditto.
9360 (free_actions_list_cleanup_wrapper): Ditto.
9361 (free_actions_list): Ditto.
9362 (remote_trace_init): New function.
9363 (remote_download_tracepoint): New function.
9364 (remote_download_trace_state_variable): New function.
9365 (remote_trace_set_readonly_regions): New function.
9366 (remote_trace_start): New function.
9367 (remote_get_trace_status): New function.
9368 (remote_trace_stop): New function.
9369 (remote_trace_find): New function.
9370 (remote_download_trace_state_variable): New function.
9371 (remote_set_disconnected_tracing): New function.
9372 (init_remote_ops): Add tracepoint operations.
9373
9374 * tracepoint.c (trace_dump_command): Don't decr_pc_after_break.
9375
9376 2010-01-07 Tristan Gingold <gingold@adacore.com>
9377
9378 * symfile.c (build_section_addr_info_from_objfile): New function.
9379 (symbol_file_add_separate): Don't use offsets from objfile but
9380 built an addr info.
9381
9382 2010-01-06 Stan Shebs <stan@codesourcery.com>
9383
9384 Support disconnected tracing.
9385 * infcmd.c (detach_command): Ask whether to stop tracing.
9386 * cli/cli-cmds.c (quit_command): Ditto.
9387 * breakpoint.h (struct breakpoint): New field number_on_target.
9388 * breakpoint.c (create_tracepoint_from_upload): New function.
9389 (get_tracepoint_by_number_on_target): New function.
9390 * remote.c (struct remote): New field disconnected_tracing.
9391 (remote_disconnected_tracing_feature): New function.
9392 (remote_protocol_features): Add DisconnectedTracing.
9393 (struct uploaded_tp): New struct.
9394 (uploaded_tps): New global.
9395 (get_uploaded_tp): New function.
9396 (find_matching_tracepoint): New function.
9397 (remote_get_tracing_state): New function.
9398 (remote_start_remote): Call it.
9399 * tracepoint.c (disconnected_tracing): New global.
9400 (trace_start_command): Initialize number_on_target.
9401 (stop_tracing): New function, split out from...
9402 (trace_stop_command): Call stop_tracing.
9403 (get_trace_status): New function, split out from...
9404 (trace_status_command): Call get_trace_status, add info on
9405 disconnection behavior.
9406 (disconnect_or_stop_tracing): New function.
9407 (finish_tfind_command): Translate from number on target.
9408 (trace_find_tracepoint_command): Translate to number on target.
9409 (send_disconnected_tracing_value): New function.
9410 (set_disconnected_tracing): New function.
9411 (_initialize_tracepoint): Add disconnected-tracing variable.
9412 * NEWS: Mention disconnected tracing.
9413
9414 2010-01-06 Tristan Gingold <gingold@adacore.com>
9415
9416 * symtab.c (lookup_global_symbol_from_objfile): Rename objfile
9417 parameter to main_objfile. Iterate on all separate debug objfiles.
9418 * symfile.h (symbol_file_add_separate)
9419 (find_separate_debug_file_by_debuglink): Remove parameter names.
9420 * symfile.c (symbol_file_add_separate): Use add_separate_objfile.
9421 (reread_symbols): Use free_objfile_separate_debug.
9422 * objfiles.h (struct objfile): Add separate_debug_objfile_link.
9423 Adjust comment.
9424 (objfile_separate_debug_iterate, add_separate_debug_objfile)
9425 (free_objfile_separate_debug): New prototypes.
9426 * objfiles.c (objfile_separate_debug_iterate): New function.
9427 (add_separate_debug_objfile, free_objfile_separate_debug): New
9428 functions.
9429 (free_objfile): Use free_objfile_separate_debug. Adjust for
9430 multiple separate debug objfile.
9431 (objfile_has_symbols): Adjust comment. Iterate on all separate
9432 debug objfiles.
9433 * minsyms.c (lookup_minimal_symbol): Adjust for multiple separate
9434 debug objfile.
9435 (lookup_minimal_symbol_text): Ditto.
9436 (lookup_minimal_symbol_by_pc_name): Ditto.
9437 (lookup_minimal_symbol_solib_trampoline): Ditto.
9438 (lookup_minimal_symbol_by_pc_section_1): Iterate on all separate
9439 debug objfiles.
9440
9441 2010-01-05 Stan Shebs <stan@codesourcery.com>
9442
9443 Add fast tracepoints.
9444 * arch-utils.h (default_fast_tracepoint_valid_at): Declare.
9445 * arch-utils.c (default_fast_tracepoint_valid_at): New function.
9446 * breakpoint.h (enum bptype): Add bp_fast_tracepoint.
9447 * breakpoint.c (tracepoint_type): New function.
9448 (ALL_TRACEPOINTS): Use it.
9449 (should_be_inserted): Ditto.
9450 (bpstat_check_location): Ditto.
9451 (print_one_breakpoint_location): Ditto.
9452 (user_settable_breakpoint): Ditto.
9453 (set_breakpoint_location_function): Ditto.
9454 (disable_breakpoints_in_shlibs): Ditto.
9455 (delete_trace_command): Ditto.
9456 (print_it_typical): Add bp_fast_tracepoint case.
9457 (bpstat_what): Ditto.
9458 (print_one_breakpoint_location): Ditto.
9459 (allocate_bp_location): Ditto.
9460 (mention): Ditto.
9461 (breakpoint_re_set_one): Ditto.
9462 (disable_command): Ditto.
9463 (enable_command): Ditto.
9464 (check_fast_tracepoint_sals): New function.
9465 (break_command_really): Call it.
9466 (ftrace_command): New function.
9467 (_initialize_breakpoint): Add ftrace command.
9468 * gdbarch.sh (fast_tracepoint_valid_at): New.
9469 * gdbarch.h, gdbarch.c: Regenerate.
9470 * i386-tdep.c (i386_fast_tracepoint_valid_at): New function.
9471 (i386_gdbarch_init): Use it.
9472 * remote.c (struct remote_state): New field fast_tracepoints.
9473 (PACKET_FastTracepoints): New packet config type.
9474 (remote_fast_tracepoint_feature): New function.
9475 (remote_protocol_features): Add FastTracepoints.
9476 (remote_supports_fast_tracepoints): New function.
9477 (_initialize_remote): Add FastTracepoints.
9478 * tracepoint.c (download_tracepoint): Add fast tracepoint option.
9479 * NEWS: Mention fast tracepoints.
9480
9481 2010-01-06 Joel Brobecker <brobecker@adacore.com>
9482
9483 * gdb-gdb.py: New file.
9484
9485 2010-01-05 Michael Snyder <msnyder@vmware.com>
9486
9487 * infrun.c (handle_inferior_event): Fix typo in comment.
9488
9489 2010-01-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9490
9491 * symfile.c (syms_from_objfile): Remove the !MAINLINE conditional.
9492
9493 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
9494
9495 * features/Makefile (WHICH): Add s390-linux32, s390-linux64,
9496 and s390x-linux64.
9497 (s390-linux32-expedite): Define.
9498 (s390-linux64-expedite): Define.
9499 (s390x-linux64-expedite): Define.
9500 * features/s390-acr.xml: New file.
9501 * features/s390-fpr.xml: New file.
9502 * features/s390-core32.xml: New file.
9503 * features/s390-core64.xml: New file.
9504 * features/s390x-core64.xml: New file.
9505 * features/s390-linux32.xml: New file.
9506 * features/s390-linux64.xml: New file.
9507 * features/s390x-linux64.xml: New file.
9508 * features/s390-linux32.c: New generated file.
9509 * features/s390-linux64.c: New generated file.
9510 * features/s390x-linux64.c: New generated file.
9511
9512 * regformats/s390-linux32.dat: New generated file.
9513 * regformats/s390-linux64.dat: New generated file.
9514 * regformats/s390x-linux64.dat: New generated file.
9515 * regformats/reg-s390.dat: Remove.
9516 * regformats/reg-s390x.dat: Remove.
9517
9518 * s390-nat.c: Include "auxv.h" and <elf.h>.
9519 (HWCAP_S390_HIGH_GPRS): Define if undefined.
9520 (s390_target_wordsize): New function.
9521 (s390_auxv_parse): Likewise.
9522 (s390_get_hwcap): Likewise.
9523 (s390_read_description): Likewise.
9524 (_initialize_s390_nat): Install s390_auxv_parse and
9525 s390_read_description.
9526
9527 * s390-tdep.c: Include "features/s390-linux32.c",
9528 "features/s390-linux64.c", and "features/s390x-linux64.c".
9529 (struct gdbarch_tdep): Add gpr_full_regnum, pc_regnum, and cc_regnum.
9530 (s390_register_call_saved): New function.
9531 (s390_register_name): Remove.
9532 (s390_register_type): Remove.
9533 (s390_dwarf_regmap): Add lower half GPR pseudo DWARF CFI regnums.
9534 (s390_dwarf_reg_to_regnum): Remap GPR regnums to full GPRs.
9535 (s390_adjust_frame_regnum): Remap GPR regnums to lower halves for CFI.
9536 (s390_pseudo_register_name): New function.
9537 (s390_pseudo_register_type): New function.
9538 (s390_pseudo_register_read): Handle both 32-bit and 64-bit cases.
9539 Handle full GPR pesudos and varying pseudo register numbers.
9540 (s390_pseudo_register_write): Likewise
9541 (s390x_pseudo_register_read): Remove.
9542 (s390x_pseudo_register_write): Likewise.
9543 (s390_register_group): Remove.
9544 (s390_pseudo_register_group): New function.
9545 (s390_regmap_gregset): Add GPR upper halves.
9546 (s390x_regmap_gregset): Likewise.
9547 (s390_regmap_fpregset): Likewise.
9548 (s390_regmap_upper): New global variable.
9549 (s390_upper_regset): New global variable.
9550 (s390_upper_regset_sections): New global variable.
9551 (s390_regset_from_core_section): Handle GPR upper halves.
9552 (s390_core_read_description): New function.
9553 (s390_prologue_frame_unwind_cache): Set up ABI call-saved/clobbered
9554 register information. Handle varying pseudo register numbers.
9555 (s390_backchain_frame_unwind_cache): Likewise.
9556 (s390_frame_prev_register): Unwind full GPRs to show lower halves.
9557 (s390_stub_frame_unwind_cache): Handle varying pseudo register numbers.
9558 (s390_sigtramp_frame_unwind_cache): Unwind PSWM and PSWA as well as
9559 PC and CC pseudos. Unwind upper halves and full GPRs as appropriate.
9560 Handle varying pseudo register numbers.
9561 (s390_unwind_pc): Handle varying pseudo register numbers.
9562 (s390_dwarf2_prev_register): New function.
9563 (s390_dwarf2_frame_init_reg): Set up ABI call-saved/clobbered
9564 register information. Handle varying pseudo register numbers.
9565 Install s390_dwarf2_prev_register to unwind full GPRs.
9566 (s390_gdbarch_init): Handle target descriptions. Assign varying
9567 pseudo register numbers. Install s390_adjust_frame_regnum.
9568 (_initialize_s390_tdep): Initialize target descriptions.
9569
9570 * s390-tdep.h (S390_R0_UPPER_REGNUM .. S390_R15_UPPER_REGNUM): Define.
9571 (S390_NUM_REGS): Redefine to include upper half registers.
9572 (S390_PC_REGNUM, S390_CC_REGNUM): Remove.
9573 (S390_NUM_PSEUDO_REGS, S390_NUM_TOTAL_REGS): Likewise.
9574 (tdesc_s390_linux32): Add declaration.
9575 (tdesc_s390_linux64): Likewise.
9576 (tdesc_s390x_linux64): Likewise.
9577
9578 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
9579
9580 * regset.h (struct core_regset_section): Add HUMAN_NAME.
9581 * i386-linux-tdep.c (i386_linux_regset_sections): Fill in HUMAN_NAME.
9582 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
9583 (ppc_linux_vmx_regset_sections): Likewise.
9584 (ppc_linux_fp_regset_sections): Likewise.
9585
9586 * corelow.c (get_core_register_section): Constify arguments.
9587 (get_core_registers): Use gdbarch_core_regset_sections instead
9588 of hard-coded platform-specific register section names.
9589
9590 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
9591
9592 * dwarf2loc.c (read_pieced_value): If a piece occupies part of
9593 a register, assume the least-significant part is used.
9594 (write_pieced_value): Likewise.
9595
9596 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
9597
9598 * printcmd.c: Include "arch-utils.h".
9599 (do_one_display): Re-parse expression if current architecture changed.
9600
9601 2010-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9602 Joel Brobecker <brobecker@adacore.com>
9603
9604 * gdbtypes.c (check_typedef): New comment on type length.
9605 * value.c (allocate_value_lazy): Remove the unused atype variable. New
9606 comment on type length.
9607 (value_primitive_field): Keep the original TYPE value, new comment.
9608
9609 2010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9610
9611 * cli/cli-script.c (process_next_line): Rename p1 as p_end and p2 as
9612 p_start. Change != comparisons to > and < comparisons.
9613
9614 2010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9615
9616 * cli/cli-script.c (process_next_line): Check P2 overrun.
9617
9618 2009-01-01 Joel Brobecker <brobecker@adacore.com>
9619
9620 Update the copyright hearder to add year 2010 for most GDB files.
9621
9622 2009-01-01 Joel Brobecker <brobecker@adacore.com>
9623
9624 Fix build failure in inf-ptrace.c.
9625 * inf-ptrace.c (inf_ptrace_follow_fork): Fix typo.
9626
9627 2010-01-01 Joel Brobecker <brobecker@adacore.com>
9628
9629 * top.c (print_gdb_version): Update copyright year.
9630
9631 2010-01-01, 10 Joel Brobecker <brobecker@adacore.com>
9632
9633 Fix break *FUN'address thread NUM.
9634 * ada-lex.l (task): Expand rule to also match the thread keyword.
9635
9636 2010-01-01 Joel Brobecker <brobecker@adacore.com>
9637
9638 Fix break *FUN'address task NUM.
9639 * ada-lex.l (task): New rule.
9640 * ada-lang.c (valid_task_id): Make sure the Ada task list has
9641 been built before using it.
9642
9643 For older changes see ChangeLog-2009.
9644 \f
9645 Local Variables:
9646 mode: change-log
9647 left-margin: 8
9648 fill-column: 74
9649 version-control: never
9650 coding: utf-8
9651 End:
This page took 0.248512 seconds and 4 git commands to generate.