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