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