gdb/
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
d82142e2
JK
12010-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2
3 * infrun.c (struct inferior_status, save_inferior_status)
4 (restore_inferior_status): Group and reorder the fields, comment their
5 groups.
6
2edb89d3
JK
72010-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
8
9 Code cleanup.
10 * dictionary.c
11 (struct dict_vector) <iter_match_first, iter_match_next>
12 (iter_match_first_hashed, iter_match_next_hashed)
13 (iter_match_first_linear, iter_match_next_linear)
14 (dict_iter_match_first, dict_iter_match_next, iter_match_first_hashed)
15 (iter_match_next_hashed, iter_match_first_linear)
16 (iter_match_next_linear): Use symbol_compare_ftype.
17 * dictionary.h: Include symfile.h.
18 (dict_iter_match_first, dict_iter_match_next): Use
19 symbol_compare_ftype.
20 * dwarf2read.c (dw2_map_matching_symbols): Likewise.
21 * psymtab.c (match_partial_symbol, match_partial_symbol, map_block)
22 (map_matching_symbols_psymtab): Likewise.
23 * symfile.h (symbol_compare_ftype): New typedef.
24 (struct quick_symbol_functions) <map_matching_symbols): Use
25 symbol_compare_ftype.
26
5ae98d25
TT
272010-11-23 Tom Tromey <tromey@redhat.com>
28
39037522
TT
29 * configure: Rebuild.
30 * configure.ac (READLINE_TEXI_INCFLAG): New subst.
31
322010-11-19 Tom Tromey <tromey@redhat.com>
33
5ae98d25
TT
34 * Makefile.in (SUBDIRS): Add doc.
35 * configure: Rebuild.
36 * configure.ac: Don't configure in doc. Create doc/Makefile.
37
ea976c60
PM
382010-11-23 Phil Muldoon <pmuldoon@redhat.com>
39
40 PR python/12212
41
42 * python/py-inferior.c (find_thread_object): Check if PIDGET
43 returns 0.
44
45010-11-22 Joel Brobecker <brobecker@adacore.com>
d94e4f4f
JB
46
47 * ada-lang.c (ada_template_to_fixed_record_type_1): Delete bit_incr.
48
96dbd2c1
JB
492010-11-22 Joel Brobecker <brobecker@adacore.com>
50
51 * ada-lang.c (ada_to_fixed_type): Expand function documentation.
52 Return the original type if the main type portions match rather
53 than when the type themselves match.
54
27f2a97b
JB
552010-11-22 Joel Brobecker <brobecker@adacore.com>
56
57 * ada-lang.c (ada_template_to_fixed_record_type_1):
58 For dynamic fields, check the field size against the maximum
59 object size.
60
1324a0d9
JB
612010-11-22 Joel Brobecker <brobecker@adacore.com>
62
63 * mips-irix-tdep.c (mips_irix_n32_stack_tramp_frame_init): New
64 function.
65 (mips_irix_n32_stack_tramp_frame): New static global.
66 (mips_irix_init_abi): Add mips_irix_n32_stack_tramp_frame to
67 list of unwinder.
68
09e7f15b
JB
692010-11-22 Jerome Guitton <guitton@adacore.com>
70
71 * ada-tasks.c (get_tcb_types_info): Use C lookups to get
72 ATCB symbols.
73
3a867c22
JB
742010-11-22 Joel Brobecker <brobecker@adacore.com>
75
76 * ada-lang.c (ada_check_typedef): Call ada_check_typedef only
77 if type1 is a typedef.
78
df30368d
JB
792010-11-22 Joel Brobecker <brobecker@adacore.com>
80
81 * ada-lang.h (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Add
82 "_finalizer" to the list.
83
4889bbbc
JB
842010-11-22 Joel Brobecker <brobecker@adacore.com>
85
86 * symfile.c: Remove all "#if 0"/"#endif" blocks.
87
0d14a781
JB
882010-11-22 Joel Brobecker <brobecker@adacore.com>
89
90 * symfile.c: Add missing second space after period in various comments.
91
feb864b7
JB
922010-11-22 Joel Brobecker <brobecker@adacore.com>
93
94 * ada-typeprint.c (print_array_type): Fix formatting in comment.
95 (print_selected_record_field_types): Fix formatting in function
96 documentation.
97
04f9d4d0
JB
982010-11-22 Joel Brobecker <brobecker@adacore.com>
99
100 * ravenscar-thread.c (_initialize_ravenscar): Fix copy/paste typo
101 in name of "show ravenscar" prefix command name.
102
b64edec4
JB
1032010-11-22 Joel Brobecker <brobecker@adacore.com>
104
105 * ravenscar-thread.c (show_ravenscar_task_switching_command):
106 Add missing '\n' in output.
107
7f39f34a
JB
1082010-11-22 Joel Brobecker <brobecker@adacore.com>
109
110 * ravenscar-thread.c (running_thread_name): Change value.
111 (read_thread_id): Remove advance declaration.
112 (get_running_thread_msymbol): New function.
113 (has_ravenscar_runtime): Use get_running_thread_msymbol to
114 compute msym_running_thread.
115 (get_running_thread_id): Renames read_thread_id. Slight modifications
116 to not take any argument anymore, using get_running_thread_msymbol
117 to determine which symbol to use instead.
118 (ravenscar_running_thread): Use get_running_thread_id instead of
119 read_thread_id.
120
f3890d59
JB
1212010-11-22 Joel Brobecker <brobecker@adacore.com>
122
123 * ravenscar-sparc-thread.c (supply_register_at_address):
124 Fix passing of buf in call to regcache_raw_supply.
125
594e8718
JK
1262010-11-22 Jan Kratochvil <jan.kratochvil@redhat.com>
127
128 * dwarf2read.c (dwarf2_read_index): Ignore higher .gdb_index versions.
129
7ba86c9e
TT
1302010-11-22 Tom Tromey <tromey@redhat.com>
131
132 * Makefile.in (.PRECIOUS): Reference ada-lex.c.
133
1bfda48e
KS
1342010-11-19 Keith Seitz <keiths@redhat.com>
135
136 * data-directory/Makefile.in (SYSCALLS_INSTALL_DIR):
137 Remove extraneous '/' after $(DESTDIR).
138 (PYTHON_INSTALL_DIR): Likewise.
139
3f1eff0a
JK
1402010-11-19 Jan Kratochvil <jan.kratochvil@redhat.com>
141
142 Fix stale memory references.
143 * elfread.c (elf_symfile_read): Replace xmalloc by bfd_alloc, drop
144 xfree, new comment.
145
954d8cae
TT
1462010-11-19 Jan Kratochvil <jan.kratochvil@redhat.com>
147 Tom Tromey <tromey@redhat.com>
148
149 * Makefile.in (.y.c): Directly create $@ from YLWRAP.
150 (.PHONY): Remove for .y outputs.
151
d53d4ac5
TT
1522010-11-19 Will Drewry <wad@google.com>
153 Tavis Ormandy <taviso@google.com>
154 Jan Kratochvil <jan.kratochvil@redhat.com>
155
156 * dwarf2read.c (decode_locdesc): Enforce location description stack
157 boundaries.
158
77bc0675
PM
1592010-11-18 Pierre Muller <muller@ics.u-strasbg.fr>
160
161 * arm-tdep.c (arm_in_function_epilogue_p): Fix code when "MOV SP"
162 instruction is found.
163
ba19bb4d
TT
1642010-11-17 Tom Tromey <tromey@redhat.com>
165
166 * value.c (value_entirely_optimized_out): Check the
167 'check_any_valid' field.
168
19f220c3
JK
1692010-11-16 Jan Kratochvil <jan.kratochvil@redhat.com>
170
171 * ada-lang.c (modify_general_field): Remove.
172 (make_array_descriptor): Replace all modify_general_field calls by
173 modify_field.
174 * value.c (modify_field): Update comment. New variable bytesize.
175 Normalize BITPOS. Initialize BYTESIZE, use it.
176
87df528e
JK
1772010-11-16 Jan Kratochvil <jan.kratochvil@redhat.com>
178
179 * dwarf2read.c (dw2_forget_cached_source_info): Clear the FULL_NAMES
180 elements after xfree.
181
97924a97
TT
1822010-11-16 Tom Tromey <tromey@redhat.com>
183
184 * gdb-add-index.sh: Really remove.
185
9816fde3
JK
1862010-11-16 Jan Kratochvil <jan.kratochvil@redhat.com>
187
188 Code cleanup.
189 * dwarf2read.c (alloc_one_comp_unit): Rename prototype to ...
190 (init_one_comp_unit): ... this one.
191 (prepare_one_comp_unit): New prototype.
192 (dw2_require_line_header, process_psymtab_comp_unit): Use
193 init_one_comp_unit.
194 (process_psymtab_comp_unit): Use prepare_one_comp_unit.
195 (load_partial_comp_unit): Remove variable attr. Use
196 init_one_comp_unit with xmalloc. Use prepare_one_comp_unit.
197 (load_full_comp_unit): Use init_one_comp_unit with xmalloc. Use
198 prepare_one_comp_unit.
199 (read_signatured_type): Remove variable attr. Use init_one_comp_unit.
200 Use prepare_one_comp_unit.
201 (alloc_one_comp_unit): Rename to ...
202 (init_one_comp_unit): ... here and remove there calloc, new parameter
203 cu.
204 (prepare_one_comp_unit): New function.
205
73c964d6
PM
2062010-11-14 Pierre Muller <muller@ics.u-strasbg.fr>
207
208 * arm-tdep.c (arm_in_function_epilogue_p): Fix code to avoid
209 possible used of uninitialized variable.
210
74af9197
NF
2112010-11-12 Nathan Froyd <froydnj@codesourcery.com>
212
213 * rs6000-tdep.c (bfd_uses_spe_extensions): New function.
214 (rs6000_gdbarch_init): Call it.
215
e52d5016
NF
2162010-11-12 Nathan Froyd <froydnj@codesourcery.com>
217
218 * rs6000-tdep.c (gdb_print_insn_powerpc): Disassemble e500
219 instructions if debugging an E500 binary.
220
621c8364
TT
2212010-11-12 Tom Tromey <tromey@redhat.com>
222
223 * varobj.c (value_get_print_value): Rearrange. Pass stream to
224 apply_varobj_pretty_printer.
225 * c-lang.c: Include exceptions.h.
226 (c_get_string): Throw MEMORY_ERROR when appropriate.
227 * python/py-prettyprint.c (enum string_repr_result): New.
228 (print_stack_unless_memory_error): New function.
229 (print_string_repr): Change return type. Use
230 print_stack_unless_memory_error.
231 (print_children): Use print_stack_unless_memory_error.
232 (apply_val_pretty_printer): Update. Don't print children if
233 string representation threw an exception.
234 (apply_varobj_pretty_printer): Add 'stream' argument. Use
235 print_stack_unless_memory_error.
236 * python/python.c (gdbpy_gdb_error, gdbpy_gdb_memory_error): New
237 globals.
238 (_initialize_python): Initialize them.
239 * python/python-internal.h (GDB_PY_HANDLE_EXCEPTION): Use
240 gdbpy_convert_exception.
241 (GDB_PY_SET_HANDLE_EXCEPTION): Likewise.
242 (gdbpy_gdb_error, gdbpy_gdb_memory_error): Declare.
243 (gdbpy_convert_exception): Declare.
244 (apply_varobj_pretty_printer): Update.
245 * python/py-utils.c (gdbpy_convert_exception): New function.
246
f1b9e6e7
MK
2472010-11-12 Marc Khouzam <marc.khouzam@ericsson.com>
248
249 * mi/mi-main.c (mi_cmd_target_detach): Accept new
250 thread-group id format.
251
74884f7b
JK
2522010-11-12 Jan Kratochvil <jan.kratochvil@redhat.com>
253
254 * spu-tdep.c (spu_catch_start): Fix compilation error typo.
255
84f4c1fe
PM
2562010-11-11 Phil Muldoon <pmuldoon@redhat.com>
257
258 * python/py-breakpoint.c (BPPY_REQUIRE_VALID): Check if bp is
259 NULL.
260 (BPPY_SET_REQUIRE_VALID): Ditto.
261 (bpnum_is_valid): Delete function.
262 (bppy_get_visibility): New function.
263 (bppy_new): Parse for, and validate internal keyword. Pass
264 internal keyword to breakpoint or watchpoint functions.
265 (build_bp_list): New function.
266 (gdbpy_breakpoints): Rewrite. Use build_bp_list and
267 iterate_over_breakpoints.
268 (gdbpy_breakpoint_created): Rewrite. Do not store breakpoints in a
269 look-aside vector.
270 (gdbpy_breakpoint_deleted): Rewrite, defer breakpoint management
271 to internal breakpoint chain.
272
273 * breakpoint.c (set_breakpoint_number): New function.
274 (breakpoint_1): Check if breakpoint number is more than zero.
275 (set_raw_breakpoint_without_location): Set py_bp_object to NULL.
276 (create_breakpoint_sal): Take a new parameter called internal.
277 Call set_breakpoint_number with internal parameter. Do not
278 mention internal breakpoints. All callers updated.
279 (create_breakpoint): Ditto.
280 (create_breakpoints_sal): Ditto.
281 (watch_command_1): Ditto.
282 (watch_command_wrapper): Take a new parameter called internal.
283 All callers updated.
284 (rwatch_command_wrapper): Ditto.
285 (awatch_command_wrapper): Ditto.
286 (save_breakpoints): Update breakpoint save condition check.
287 (iterate_over_breakpoints): New function.
288 * breakpoint.h: Add conditional python includes. Add py_bp_object
289 and comment to struct breakpoint. Update all callers.
290 * defs.h: Add PyObject definition for GDB builds without Python.
291
4dfea560
DE
2922010-11-10 Doug Evans <dje@google.com>
293
f61a2da7
DE
294 * python/lib/gdb/command/pretty_printers.py
295 (do_enable_pretty_printer_1): Handle printer.subprinters is None.
296
4dfea560
DE
297 * value.c (set_value_enclosing_type): Renamed from
298 value_change_enclosing_type. All callers updated.
299 * value.h (set_value_enclosing_type): Update.
300 * valops.c (value_full_object): Always return a copy if we need to
301 make changes to the input value.
302
a1442452
PA
3032010-11-09 Pedro Alves <pedro@codesourcery.com>
304
305 * breakpoint.c (watch_command_1): Get a pointer of the lazy
306 version of the expression's value, even if reading the value from
307 memory fails. When creating a -location watchpoint, get the
308 value's address from the lazy value pointer.
309
803b5f95
JK
3102010-11-07 Jan Kratochvil <jan.kratochvil@redhat.com>
311
312 * infrun.c (restore_inferior_thread_state): Use
313 discard_inferior_thread_state to free the data.
314 (discard_inferior_thread_state): xfree also siginfo_data.
315
99e7ae30
DE
3162010-11-05 Doug Evans <dje@google.com>
317
318 Make gdb.parameter("directories") work.
319 New command "set directories".
320 * NEWS: Document them.
321 * source.c (set_directories_command): New function.
322 (show_directories_1): Renamed from show_directories.
323 All callers updated.
324 (show_directories_command): New function.
325 (_initialize_source): Install "directories" as a set/show
326 variable instead of just a show command.
327
f4b8a18d
KW
3282010-11-05 Ken Werner <ken.werner@de.ibm.com>
329
330 * NEWS: Mention OpenCL C language support.
331 * Makefile.in (SFILES): Add opencl-lang.c.
332 (COMMON_OBS): Add opencl-lang.o.
333 * opencl-lang.c: New File
334 * defs.h (enum language): Add language_opencl.
335 * dwarf2read.c (read_file_scope): Handle DW_AT_producer for the
336 IBM XL C OpenCL compiler.
337 * c-lang.h: Include "parser-defs.h".
338 (evaluate_subexp_c): Declare.
339 * c-lang.c (evaluate_subexp_c): Remove the static qualifier.
340 (c_op_print_tab): Add declaration.
341 * eval.c (binop_promote): Handle language_opencl.
342 * c-exp.y: Lookup the primitive types instead of referring to the
343 builtins.
344
075ff26d
JK
3452010-11-05 Jan Kratochvil <jan.kratochvil@redhat.com>
346
347 Fix configure --enable-plugins --without-python.
348 * configure.ac (for ELF support in BFD) <"$plugins" = "yes">: New.
349 * configure: Regenerate.
350
14ad3217
JK
3512010-11-05 Jan Kratochvil <jan.kratochvil@redhat.com>
352
353 * solib.c (solib_read_symbols): Call exception_fprintf even without
354 FROM_TTY. Print also so->so_name.
355
a9d5ef47
SW
3562010-11-04 Sami Wagiaalla <swagiaal@redhat.com>
357
358 * gdbtypes.h (struct rank): Created subrank.
359 * gdbtypes.c: Initialized subrank for all
360 'BADNESS' constants.
361 (distance_to_ancestor): New function.
362 (is_ancestor): Use distance_to_ancestor.
363 (is_public_ancestor): Ditto.
364 (sum_ranks): Handle subrank.
365 (compare_ranks): Ditto.
366 (rank_one_type): Subrank base conversions.
367
6403aeea
SW
3682010-11-04 Sami Wagiaalla <swagiaal@redhat.com>
369
370 * gdbtypes.h: Create struct rank.
371 Convert all 'BADNESS' macros to const struct rank declarations.
372 (sum_ranks): New function.
373 (compare_ranks): New function.
374 * valops.c (find_oload_champ): Updated.
375 (classify_oload_match): Use compare_ranks.
376 Improved comments.
377 (compare_parameters): Use compare_ranks.
378 * gdbtypes.c: Initialize 'BADNESS' constants.
379 (sum_ranks): New function.
380 (compare_ranks): New function.
381 (compare_badness): Use compare_ranks.
382 (rank_function): Use global constants instead of literals.
383 (rank_one_type): Ditto.
384 Return struct rank.
385 Use sum_ranks.
386
23fa7f66
DE
3872010-11-04 Doug Evans <dje@google.com>
388
389 * python/py-prettyprint.c (find_pretty_printer_from_gdb): Fix comment.
390 (find_pretty_printer): Fix comments.
391
608bcef2
HZ
3922010-11-04 Hui Zhu <teawater@gmail.com>
393
394 * tracepoint.c (remote_trace_set_readonly_regions): Change lma to vma.
395
9addb3b9
JB
3962010-11-03 Joel Brobecker <brobecker@adacore.com>
397
398 * ada-valprint.c (ada_val_print_array): Move variables `eltlen'
399 and `len' declaration and computation inside block where they
400 are being used.
401
75be741b
JB
4022010-11-03 Joel Brobecker <brobecker@adacore.com>
403
404 * valprint.c (val_print_array_elements): Put back handling of
405 empty arrays.
406
dbc98a8b
KW
4072010-11-03 Ken Werner <ken.werner@de.ibm.com>
408
409 * dwarf2read.c (read_array_type): Read the DW_AT_byte_size from the
410 DIE and set the length of the type.
411 * gdbtypes.h (get_array_bounds): Move here from valprint.h.
412 * gdbtypes.c (get_array_bounds): Move here from valprint.c and
413 return 0 if the corresponding bounds of the type are undefined.
414 * valprint.h (get_array_bounds): Move declaration to gdbtypes.h.
415 * valprint.c (get_array_bounds): Move implementation to gdbtypes.c.
416 (val_print_array_elements): Use get_array_bounds to compute the number
417 of array elements instead of dividing the length of the array by the
418 length of the element types.
419 * valarith.c (vector_binop): Likewise.
420 * valops.c (value_cast): Likewise.
421 * c-valprint.c (c_val_print): Likewise.
422 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
423
120bd360
KW
4242010-11-03 Ken Werner <ken.werner@de.ibm.com>
425
426 * valarith.c (value_pos, value_neg, value_complement): Handle
427 vector types.
428 * valops.c (value_one): Likewise.
429
c37f7098
KW
4302010-11-03 Ken Werner <ken.werner@de.ibm.com>
431
432 * value.h (value_non_lval): Declare.
433 * value.c (value_non_lval): New function.
434 * eval.c (evaluate_subexp_standard) <UNOP_POSTINCREMENT,
435 UNOP_POSTDECREMENT>: Call value_non_lval to ensure to return a
436 non-lvalue.
437
7b51bc51
DE
4382010-11-02 Doug Evans <dje@google.com>
439
440 New python module gdb.printing, and new commands info pretty-printer,
441 enable pretty-printer, disable pretty-printer.
442 * NEWS: Mention them.
443 * data-directory/Makefile.in (PYTHON_FILES): Add gdb/printing.py,
444 gdb/command/__init__.py, gdb/command/pretty_printers.py.
445 * python/lib/gdb/__init__.py: Install pretty-printer commands.
446 * python/lib/gdb/printing.py: New file.
447 * python/lib/gdb/command/__init__.py: New file.
448 * python/lib/gdb/command/pretty_printers.py: New file.
449
50c97f38
TT
4502010-11-02 Tom Tromey <tromey@redhat.com>
451
452 * NEWS: Mention Guile removal.
453 * defs.h (enum language) <language_scm>: Remove.
454 * Makefile.in (SFILES): Remove scm-exp.c, scm-lang.c,
455 scm-valprint.c.
456 (HFILES_NO_SRCDIR): Remove scm-lang.h, scm-tags.h.
457 (COMMON_OBS): Remove scm-exp.o, scm-lang.o, scm-valprint.o.
458 * scm-exp.c, scm-lang.c, scm-valprint.c, scm-lang.h, scm-tags.h:
459 Remove.
460
9dea9163
DE
4612010-11-02 Doug Evans <dje@google.com>
462
463 * top.c: #include "python/python.h".
464 (gdb_init): Add a comment regarding initialize_all_files.
465 Call finish_python_initialization at the end.
466 * python/python.h (finish_python_initialization): Declare.
467 * python/python.c (finish_python_initialization): New function.
468 (_initialize_python): Move python-implemented initialization there
469 and call it.
470 (GdbMethods): Use #ifdef HAVE_PYTHON for consistency.
471
a289b8f6
JK
4722010-11-02 Jan Kratochvil <jan.kratochvil@redhat.com>
473
474 Revert:
475 2010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
476 Pedro Alves <pedro@codesourcery.com>
477 * gdbthread.h (currently_stepping): New declaration.
478 * infrun.c (currently_stepping): Remove the forward declaration.
479 (currently_stepping): Make it global.
480 * linux-nat.c (resume_callback) <lp->stopped && lp->status == 0>: New
481 variables tp and step, initialized them. Pass STEP to to_resume.
482 Print also possibly "PTRACE_SINGLESTEP" if STEP. Initialize LP->STEP.
483 * remote.c (currently_stepping_callback): New.
484 (remote_vcont_resume)
485 <ptid_equal (ptid, minus_one_ptid) || ptid_is_pid (ptid)>:
486 New variable tp. Call currently_stepping_callback and step such
487 thread.
488
2209c807
HZ
4892010-11-01 Hui Zhu <teawater@gmail.com>
490
491 * tracepoint.c (tfile_xfer_partial): Change lma to vma.
492
0a2a54b8
HZ
4932010-10-28 Hui Zhu <teawater@gmail.com>
494
495 * tracepoint.c (trace_save): Change utp->actions to
496 utp->step_actions.
497
284a3db3
JB
4982010-10-26 Joel Brobecker <brobecker@adacore.com>
499
500 * (_FILE_OFFSET_BITS): Fix typo in comment.
501
aed1781d
JB
5022010-10-26 Joel Brobecker <brobecker@adacore.com>
503
504 * python/python-internal.h (_FILE_OFFSET_BITS): Undefine.
505 (PyEval_InitThreads): Remove duplicate. Define as nothing.
506 (PyEval_ReleaseLock): Define as nothing.
507
1e3fad37
JB
5082010-10-26 Joel Brobecker <brobecker@adacore.com>
509
510 * dwarf2read.c (psymtab_include_file_name): Replace call to strcmp
511 by call to FILENAME_CMP.
512
558b1900
JB
5132010-10-26 Joel Brobecker <brobecker@adacore.com>
514
515 * dictionary.c (dict_hash): Move assignment out of if condition.
516
f474844c
JZ
5172010-10-22 Jie Zhang <jie@codesourcery.com>
518
519 * Makefile.in (install): Remove dependency of install-only and
520 recursively invoke make for install-only.
521 * data-directory/Makefile.in: Add FLAGS_TO_PASS variable.
522 (install): Pass FLAGS_TO_PASS when recursively make install-only.
523
8991e9fa
HZ
5242010-10-20 Hui Zhu <teawater@gmail.com>
525
526 * tracepoint.c (tfile_get_traceframe_address): Call
527 extract_signed_integer.
528 (tfile_trace_find): Call extract_signed_integer and
529 extract_unsigned_integer. Change data_size to unsigned int.
530 (tfile_fetch_registers): Call extract_unsigned_integer.
531 (tfile_xfer_partial): Ditto.
532 (tfile_get_trace_state_variable_value): Call
533 extract_signed_integer and extract_unsigned_integer.
534
21bce120
VP
5352010-10-20 Vladimir Prus <vladimir@codesourcery.com>
536
537 * remote.c (remote_get_threadlist): If we got empty
538 response, bail out immediately, and don't emit any
539 warnings.
540
ad8b5167
UW
5412010-10-19 Ulrich Weigand <uweigand@de.ibm.com>
542
543 * arm-tdep.c (thumb_get_next_pc_raw): Handle Thumb-16 encoding
544 for "mov pc, REG" as well.
545 (thumb_instruction_changes_pc): Likewise.
546
79afc5ef
SW
5472010-10-19 Sami Wagiaalla <swagiaal@redhat.com>
548
549 PR C++/11500:
550 * valarith.c (value_x_unop): Handle STRUCTOP_PTR.
551 * eval.c (evaluate_subexp_standard): Check for overload of
552 'operator->'.
553 * valarith.c (value_x_binop): Throw NOT_FOUND_ERROR.
554 (value_x_unop): Ditto.
555 * valops.c: Include "exceptions.h".
556 (find_overload_match): Throw NOT_FOUND_ERROR.
557 (value_struct_elt): Ditto.
558
cca56ac7
TT
5592010-10-19 Tom Tromey <tromey@redhat.com>
560
561 * python/py-cmd.c (cmdpy_function): Unreference exception state.
562
026ffab7
SW
5632010-10-19 Sami Wagiaalla <swagiaal@redhat.com>
564
565 * gdbtypes.h: Introduce BOOL_PTR_CONVERSION_BADNESS.
566 * gdbtypes.c (rank_one_type): Use BOOL_PTR_CONVERSION_BADNESS
567 for conversion.
568 Make all other conversions illegal.
569
8c540a24
DE
5702010-10-18 Doug Evans <dje@google.com>
571
572 * c-typeprint.c (c_type_print_base, case TYPE_CODE_TYPEDEF): Verify
573 assumptions of when this case happens. Print "<unnamed typedef>".
574
3a772aa4
TT
5752010-10-18 Tom Tromey <tromey@redhat.com>
576
577 * valprint.c (val_print_string): Pass 'encoding' to
578 LA_PRINT_STRING.
579
01f8c46d
JK
5802010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
581
582 Fix the `stopped language detection' testcase for gcc-4.5.
583 * dwarf2read.c (read_partial_die): Set also LANGUAGE_OF_MAIN.
584 * symfile.c (set_initial_language): Move variable filename to a more
585 inner block. Prefer LANGUAGE_OF_MAIN.
586 * symtab.c (language_of_main): New variable.
587 (set_main_name): Always reset LANGUAGE_OF_MAIN.
588 * symtab.h (language_of_main): New declaration.
589
8aeb23f3
JK
5902010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
591 Pedro Alves <pedro@codesourcery.com>
592
593 * gdbthread.h (currently_stepping): New declaration.
594 * infrun.c (currently_stepping): Remove the forward declaration.
595 (currently_stepping): Make it global.
596 * linux-nat.c (resume_callback) <lp->stopped && lp->status == 0>: New
597 variables tp and step, initialized them. Pass STEP to to_resume.
598 Print also possibly "PTRACE_SINGLESTEP" if STEP. Initialize LP->STEP.
599 * remote.c (currently_stepping_callback): New.
600 (remote_vcont_resume)
601 <ptid_equal (ptid, minus_one_ptid) || ptid_is_pid (ptid)>:
602 New variable tp. Call currently_stepping_callback and step such
603 thread.
604
c1e56572
JK
6052010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
606
607 * infrun.c (follow_exec): Replace symbol_file_add_main by
608 symbol_file_add with SYMFILE_DEFER_BP_RESET, set_initial_language and
609 breakpoint_re_set.
610 * m32r-rom.c (m32r_load, m32r_upload_command): Use parameter 0 for
611 clear_symtab_users.
612 * objfiles.c (free_all_objfiles): Likewise.
613 * remote-m32r-sdi.c (m32r_load): Likewise.
614 * solib-som.c (som_solib_create_inferior_hook): Likewise.
615 * symfile.c (new_symfile_objfile): New comment for add_flags. Call
616 clear_symtab_users with ADD_FLAGS.
617 (reread_symbols): Use parameter 0 for clear_symtab_users.
618 (clear_symtab_users): New parameter add_flags. Do not call
619 breakpoint_re_set if SYMFILE_DEFER_BP_RESET.
620 (clear_symtab_users_cleanup): Use parameter 0 for clear_symtab_users.
621 * symtab.h (clear_symtab_users): New parameter add_flags.
622
3a182a69
JK
6232010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
624
625 Fix GCC false warning.
626 * varobj.c (value_get_print_value) <str_addr>: Initialize it.
627
3a9d7214
PM
6282010-10-16 Pierre Muller <muller@ics.u-strasbg.fr>
629
630 * p-typeprint.c (pascal_type_print_method_args): Fix problem in
631 display of type of method arguments.
632
09ca9e2e
TT
6332010-10-15 Tom Tromey <tromey@redhat.com>
634
635 PR python/11948:
636 * varobj.c (value_get_print_value): Use val_print_string to print
637 lazy strings.
638 * python/py-prettyprint.c (print_string_repr): Use
639 val_print_string to print lazy strings. Fix cleanup logic.
640 (print_children): Likewise.
641 * python/python-internal.h (gdbpy_extract_lazy_string): Update.
642 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Rewrite.
643 Change return type to 'void', add 'addr' argument.
644 * value.h (val_print_string): Update.
645 * valprint.c (val_print_string): Add 'encoding' argument.
646 * printcmd.c (print_formatted): Update.
647 * p-valprint.c (pascal_val_print): Update.
648 * m2-valprint.c (print_unpacked_pointer): Update.
649 (m2_print_array_contents): Likewise.
650 * jv-valprint.c (java_value_print): Update.
651 * f-valprint.c (f_val_print): Update.
652 * c-valprint.c (c_val_print): Update.
653 * auxv.c (fprint_target_auxv): Update.
654
92163a10
JK
6552010-10-15 Doug Evans <dje@google.com>
656 Jan Kratochvil <jan.kratochvil@redhat.com>
657
658 PR exp/12117
659 * gdbtypes.c (check_typedef): Clean up function comment.
660 Keep track of instance flags as we strip typedefs and create a new
661 type to preserve them if necessary.
662 * gdbtypes.h (type) <instance_flags>: Extend the comment.
663
dae71413
PM
6642010-10-15 Pierre Muller <muller@ics.u-strasbg.fr>
665
666 * p-lang.c (is_pascal_string_type): Use TYPE_FIELD_NAME accessor.
667
7062b0a0
SW
6682010-10-14 Sami Wagiaalla <swagiaal@redhat.com>
669
670 * gdbtypes.h: Create BASE_PTR_CONVERSION_BADNESS.
671 * gdbtypes.c (rank_one_type): Move type comparison code out of here
672 to...
673 (types_equal): ...here. And changed it as follows:
674 Outside of typedefs type must be of the same TYPE_CODE.
675 When compairing two pointers or references they are equal if their
676 targets are equal.
677 Correct pointer conversions.
678
5c3da5ea
PM
6792010-10-14 Pierre Muller <muller@ics.u-strasbg.fr>
680
681 * p-lang.c (is_pascal_string_type): Avoid crashes on structures
682 having fields without names.
683
577ce03a
TT
6842010-10-13 Tom Tromey <tromey@redhat.com>
685
686 * language.h (LA_PRINT_ARRAY_INDEX): Fix argument name.
687
a737a51b
DE
6882010-10-13 Doug Evans <dje@google.com>
689
0e3509db
DE
690 New python module gdb.types.
691 * NEWS: Document it.
692 * data-directory/Makefile.in (PYTHON_FILES): Add gdb/types.py.
693 * python/lib/gdb/types.py: New file.
694
a737a51b
DE
695 * c-typeprint.c: Whitespace cleanup.
696 (cp_type_print_method_args): Remove unnecessary forward decl.
697 (cp_type_print_derivation_info): Ditto.
698 (c_type_print_varspec_prefix): Mark as static at definition.
699 (c_type_print_modifier): Fix arg descriptions.
700
8dc78533
JK
7012010-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
702
703 * python/py-breakpoint.c (bppy_set_condition): New comment.
704 * python/py-cmd.c (cmdpy_function): Call also gdbpy_print_stack for
705 failed PyUnicode_Decode.
706 (cmdpy_completer): Skip element for failed
707 python_string_to_host_string.
708 (cmdpy_init): Return -1 on failed python_string_to_host_string.
709 * python/py-frame.c (frapy_read_var): Extend the function comment.
710 * python/py-function.c (fnpy_init): Return -1 on failed
711 python_string_to_host_string.
712 * python/py-inferior.c (infpy_read_memory, infpy_write_memory): Extend
713 the function comment.
714 (infpy_search_memory): Extend the function comment. Remove the
715 PyErr_SetString call on already set error state.
716 * python/py-param.c (set_parameter_value): Extend the function
717 comment. Return -1 on failed python_string_to_host_string, twice.
718 (set_attr): Extend the function comment.
719 (compute_enum_values): Extend the function comment. New variable
720 back_to. Protect self->enumeration by BACK_TO cleanups. Return 0 on
721 failed python_string_to_host_string.
722 (get_doc_string): Call gdbpy_print_stack on failed
723 python_string_to_host_string.
724 (parmpy_init): Extend the function comment.
725 * python/py-prettyprint.c (pretty_print_one_value): Likewise.
726 (gdbpy_get_display_hint, print_children): Call gdbpy_print_stack on
727 failed python_string_to_host_string.
728 * python/py-value.c (valpy_new, valpy_getitem, valpy_call)
729 (valpy_binop, valpy_richcompare): Extend the function comment.
730 * python/python.c
731 (struct python_env) <error_type, error_value, error_traceback>: New
732 fields.
733 (restore_python_env): Handle PyErr_Occurred. Call PyErr_Restore.
734 (ensure_python_env): Call PyErr_Fetch.
735 * varobj.c (update_dynamic_varobj_children): Call gdbpy_print_stack on
736 failed convert_value_from_python.
737 (value_get_print_value): Call gdbpy_print_stack on failed
738 python_string_to_target_python_string.
739
1bdb0c54
TT
7402010-10-12 Tom Tromey <tromey@redhat.com>
741
742 * python/py-prettyprint.c (search_pp_list): Fix error checking.
743
0526b37a
SW
7442010-10-12 Sami Wagiaalla <swagiaal@redhat.com>
745
746 * gdbtypes.c (do_is_ancestor): New function.
747 (is_ancestor): Use do_is_ancestor.
748 (is_public_ancestor): Use do_is_ancestor.
749
c1b5be38
PM
7502010-10-12 Pierre Muller <muller@ics.u-strasbg.fr>
751
752 * ser-go32.c (struct dos_ops): Add missing fdopen field.
753
68770265
MGD
7542010-10-12 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
755
756 * arm-tdep.c (arm_mode_strings): Add NULL entry at end of array.
757
64b00020
DE
7582010-10-11 Doug Evans <dje@google.com>
759
760 * c-typeprint.c (c_type_print_modifier): Add note that this prints
761 the address space id too.
762
43b8e241
JK
7632010-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
764
765 Fix attaching to re-prelinked executables on ppc64.
766 * solib-svr4.c (svr4_exec_displacement): New variable plt2_asect,
767 initialize it, try to adjust FILESZ field by it.
768
417b5110
DJ
7692010-10-08 Daniel Jacobowitz <dan@codesourcery.com>
770
771 * tracepoint.c (merge_uploaded_trace_state_variables): Only print
772 messages if info_verbose.
773
3bdf2bbd
KW
7742010-10-08 Ken Werner <ken.werner@de.ibm.com>
775
776 * valops.c (value_cast): Handle vector types.
777 * valarith.c (value_binop): Widen scalar to vector if appropriate.
778
ec3d575a
UW
7792010-10-08 Ulrich Weigand <uweigand@de.ibm.com>
780
781 * arm-tdep.c (thumb_expand_immediate): New function.
782 (thumb_instruction_changes_pc): Likewise.
783 (thumb2_instruction_changes_pc): Likewise.
784 (thumb_analyze_prologue): Handle 32-bit Thumb instructions during
785 prologue parsing. Improved support for optimized code.
786 (thumb_scan_prologue): Do not reply on line-number information,
787 use same heuristics as arm_scan_prologue insead.
788 (skip_prologue_function): Accept functions
789 "__tls_get_addr" and "__aeabi_read_tp".
790
4024ca99
UW
7912010-10-08 Ulrich Weigand <uweigand@de.ibm.com>
792 Daniel Jacobowitz <dan@codesourcery.com>
793
794 * arm-tdep.c (thumb_in_function_epilogue_p)
795 (arm_in_function_epilogue_p): New.
796 (arm_gdbarch_init): Install arm_in_function_epilogue_p as
797 gdbarch_in_function_epilogue_p callback.
798
855c153f
DE
7992010-10-07 Doug Evans <dje@google.com>
800
00e14314
DE
801 * cc-with-index.sh (output_file): Default to a.out.
802
3876f04e
DE
803 * dwarf2read.c (mapped_index): Rename member index_table to
804 symbol_table and index_table_slots to symbol_table_slots.
805 All uses updated.
806 (create_symbol_hash_table): Renamed from create_index_table.
807 All callers updated.
808 (add_indices_to_cpool): Rename arg index_table to symbol_hash_table.
809 (write_hash_table): Rename local index_table to symbol_hash_table.
810
855c153f
DE
811 * addrmap.h (addrmap_foreach_fn): New typedef.
812 (addrmap_foreach): Declare.
813 * addrmap.c (struct addrmap_funcs): New member foreach.
814 (addrmap_foreach): New function.
815 (addrmap_fixed_foreach): New function.
816 (addrmap_fixed_funcs): Update.
817 (struct mutable_foreach_data): New struct.
818 (addrmap_mutable_foreach_worker): New function.
819 (addrmap_mutable_foreach): New function.
820 (addrmap_mutable_funcs): Update.
821
1d2a4540
PH
8222010-10-07 Paul Hilfinger <hilfinger@adacore.com>
823
824 * dictionary.c (dict_hash): Revert to msymbol_hash_iw in
825 more cases.
826
40658b94
PH
8272010-10-07 Paul Hilfinger <hilfinger@adacore.com>
828
829 * ada-lang.c (full_match): Declare.
830 (ada_match_name): Rename to match_name (we should avoid prefixing static
831 symbols with "ada_").
832 (match_name): New name for ada_match_name.
833 (struct ada_psym_data): Remove and replace with...
834 (struct match_data): User data for map_matching_symbols.
835 (ada_add_psyms): Remove.
836 (aux_add_nonlocal_symbols): New function, used as callback for
837 map_matching_symbols.
838 (compare_names): Ordering function adopted from strcmp_iw for Ada-encoded
839 symbols.
840 (ada_add_non_local_symbols): Rename to add_nonlocal_symbols.
841 (add_nonlocal_symbols): Renamed from ada_add_non_local_symbols.
842 Rework to use map_matching_symbols instead of map_ada_symtabs.
843 (ada_lookup_symbol_list): Use add_nonlocal_symbols.
844 * psymtab.c: Include dependency on dictionary.h.
845 (match_partial_symbol): New function.
846 (ada_lookup_partial_symbol): Remove.
847 (map_block): New function, auxiliary to map_matching_symbols_psymtab.
848 (map_matching_symbols_psymtab): New function.
849 (psym_functions): Replace map_ada_symtabs with map_matching_symbols_psymtab.
850 * symfile.h: Replace map_ada_symtabs definition with map_matching_symbols.
851
c4d840bd
PH
8522010-10-06 Paul Hilfinger <hilfinger@adacore.com>
853
854 * ada-lang.c (ada_match_name): Use new API for wild_match.
40658b94
PH
855 (wild_match): Change API to be consistent with that of strcmp_iw;
856 return 0 for a match, and switch operand order.
857 (full_match): New function.
858 (ada_add_block_symbols): Use dict_iter_match_{first,next} for
859 matching to allow use of hashing.
860 * dictionary.c (struct dict_vector): Generalize iter_name_first,
861 iter_name_next ot iter_match_first, iter_match_next.
862 (iter_name_first_hashed): Replace with iter_match_first_hashed.
863 (iter_name_next_hashed): Replace with iter_match_next_hashed.
864 (iter_name_first_linear): Replace with iter_match_first_linear.
865 (iter_name_next_linear): Replace with iter_match_next_linear.
866 (dict_iter_name_first): Re-implement to use dict_iter_match_first.
867 (dict_iter_name_next): Re-implement to use dict_iter_match_next.
868 (dict_iter_match_first): New function.
869 (dict_iter_match_next): New function.
870 (dict_hash): New function.
871 * dictionary.h (dict_iter_match_first, dict_iter_match_next): Declare.
872 * psymtab.c (ada_lookup_partial_symbol): Use new wild_match API.
c4d840bd 873
543ecec7
DE
8742010-10-06 Doug Evans <dje@google.com>
875
876 * data-directory/Makefile.in: Remove @host_makefile_frag@, @frags@.
877
2f608a3a
KW
8782010-10-06 Ken Werner <ken.werner@de.ibm.com>
879
880 * dwarf2read.c (read_tag_const_type): Handle const arrays.
881
aa2e2d8d
DE
8822010-10-06 Doug Evans <dje@google.com>
883
9c9606fb
DE
884 * Makefile.in (REQUIRED_SUBDIRS): New var.
885 (subdir_do): Verify required subdir Makefiles exist.
886
aa2e2d8d
DE
887 Create subdir data-directory.
888 * Makefile.in (XML_SYSCALL_DIR, XML_SYSCALL_FILES): Moved to
889 data-directory/Makefile.in.
890 (SUBDIRS): Add data-directory.
891 (all): Remove xml-syscall-copy dependency.
892 (xml-syscall-copy): Moved to data-directory/Makefile.in as
893 stamp-syscalls.
894 (xml-syscall-install): Moved to data-directory/Makefile.in as
895 install-syscalls.
896 (install-only): Remove xml-syscall-install dependency.
897 (all-data-directory): New rule.
898 (data-directory/Makefile): New rule.
899 * configure.ac (AC_OUTPUT): Add data-directory/Makefile.
900 * configure: Regenerate.
901 * data-directory/Makefile.in: New file.
902 * python/lib/gdb/__init__.py: New file.
903
aa27d0b3
JB
9042010-10-06 Joel Brobecker <brobecker@adacore.com>
905
906 Fix ARI warnings in advance_wild_match.
907 * ada-lang.c (advance_wild_match): Delete local variable t2.
908 Adjust code accordingly. Minor reformatting.
909
2844d6b5
KW
9102010-10-06 Ken Werner <ken.werner@de.ibm.com>
911
912 * gdbtypes.h (struct main_type): Remove flag_nottext.
913 (enum type_flag_value): Remove TYPE_FLAG_NOTTEXT.
914 (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_NOTTEXT.
915 (TYPE_NOTTEXT): Use TYPE_INSTANCE_FLAG_NOTTEXT instead of flag_nottext.
916 * gdbtypes.c (make_vector_type): Use TYPE_INSTANCE_FLAG_NOTTEXT instead
917 of TYPE_FLAG_NOTTEXT.
918 (init_type): Remove the initialization of the flag_nottext field.
919 (gdbtypes_post_init): Use TYPE_INSTANCE_FLAG_NOTTEXT instead of
920 TYPE_FLAG_NOTTEXT.
921 * c-valprint.c (c_val_print): Remove TYPE_VECTOR check.
922
2fdf6df6
DE
9232010-10-04 Doug Evans <dje@google.com>
924
ea65fe05
DE
925 * cc-with-index.sh: New file.
926
2fdf6df6
DE
927 * dwarf2read.c (dw2_do_instantiate_symtab): Insert blank line after
928 function comment.
929 (dw2_instantiate_symtab, dw2_get_cu, extract_cu_value): Ditto.
930 (create_cus_from_index, create_addrmap_from_index): Ditto.
931 (mapped_index_string_hash, find_slot_in_mapped_hash): Ditto.
932 (dw2_setup, dw2_require_line_header, dw2_require_full_path): Ditto.
933 (dw2_do_expand_symtabs_matching): Ditto.
b89be57b
DE
934 (eq_strtab_entry, create_strtab, add_string): Ditto.
935 (hash_strtab_entry): Ditto.
936 (hash_symtab_entry, eq_symtab_entry, delete_symtab_entry): Ditto.
937 (create_index_table, create_mapped_symtab, find_slot): Ditto.
938 (hash_expand, add_index_entry, add_indices_to_cpool): Ditto.
939 (write_hash_table, add_address_entry, write_psymbols): Ditto.
940 (write_obstack, unlink_if_set, write_one_signatured_type): Ditto.
941 (write_psymtabs_to_index): Ditto.
2fdf6df6 942
40bc484c
JB
9432010-10-04 Joel Brobecker <brobecker@adacore.com>
944
945 * ada-lang.c: #include "value.h".
946 (ensure_lval): Delete advance declaration. Remove gdbarch and sp
947 arguments. Implement using value_allocate_space_in_inferior
948 instead of allocating memory from the stack.
949 (make_array_descriptor): Remove gdbarch and sp parameters. Update
950 calls to ensure_lval.
951 (ada_convert_actual): Remove gdbarch and sp parameters. Update
952 calls to make_array_descriptor and ensure_lval.
953 * ada-lang.h (ada_convert_actual): Update declaration.
954 * infcall.c (value_arg_coerce): Update call to ada_convert_actual.
955
f17618ea
DE
9562010-10-04 Doug Evans <dje@google.com>
957
958 * python/python.c (_initialize_python): Define new function
959 GdbSetPythonDirectory in python. Use it to update sys.path and
960 gdb.__path__.
961
83e3a93c
PH
9622010-10-03 Paul Hilfinger <hilfinger@adacore.com>
963
964 * gdb/ada-typeprint.c (print_selected_record_field_types): New function,
965 incorporating and generalizing print_record_field_types.
966 (print_record_field_types): Change return value and update comment.
967 Re-implement using print_selected_record_field_types.
968 (print_choices): Print "=>" here.
969 Handle case of unencoded variant branch.
970 (print_variant_clauses): Reformat comment.
971 Special-case unencoded variant branch.
972
9732010-10-03 Paul Hilfinger <hilfinger@adacore.com>
73589123
PH
974
975 * ada-lang.c (wild_match): Reimplement.
976 Change API to eliminate unused length argument, reverse arguments and
977 make 0 the 'true' return value.
978 (advance_wild_match): New auxiliary function for wild_match to improve
979 readability.
980 (ada_match_name, ada_add_block_symbols): Use new API for wild_match.
981 * psymtab.c (ada_lookup_partial_symbol, map_ada_symtabs): Use new
982 API for wild_match.
983 * symfile.h (map_ada_symtabs): Modify declaration to use new API for
984 wild_match.
985 * dwarf2read.c (dw2_map_ada_symtabs): Ditto.
986
11570e71
DE
9872010-10-01 Doug Evans <dje@google.com>
988
989 * dwarf2read.c (_initialize_dwarf2_read): Add usage info to help text
990 for `save gdb-index' command.
991
72b9f47f
TT
9922010-10-01 Tom Tromey <tromey@redhat.com>
993
994 * symfile.h (allocate_symtab): Update.
995 * symfile.c (allocate_symtab): Make 'filename' const.
996 * psymtab.c (add_psymbol_to_bcache): Make 'name' const.
997 (add_psymbol_to_list): Likewise.
998 * psympriv.h (struct partial_symtab) <filename, dirname>: Now
999 const.
1000 (add_psymbol_to_list): Update.
1001 * mdebugread.c (new_symtab): Make 'name' const.
1002 (psymtab_to_symtab_1): Make 'filename' const.
1003 * elfread.c (elfstab_offset_sections): Update.
1004 * dwarf2read.c (dwarf_decode_lines): Make 'comp_dir' const.
1005 (dwarf2_start_subfile): Make 'dirname' and 'comp_dir' const.
1006 (psymtab_include_file_name): Update.
1007 * dbxread.c (find_stab_function_addr): Make 'filename' const.
1008 * buildsym.h (start_subfile): Update.
1009 * buildsym.c (start_subfile): Make arguments const.
1010
55e39473
MS
10112010-09-30 Ali Lakhia <lakhia@alumni.utexas.net>
1012
1013 * fork-child.c (breakup_args): Fix crash if shell forking is
1014 disabled at compile time.
1015
05e522ef
JB
10162010-10-01 Joel Brobecker <brobecker@adacore.com>
1017
1018 * ada-lang.c (desc_bounds): Add handling of the case where
1019 the P_BOUNDS field is a pointer to a stub.
1020 (desc_data_target_type): Same for P_ARRAY field.
1021 (ada_check_typedef): Strip the typedef layers from the type
1022 found by ada_find_any_type.
1023
49a45ecf
JB
10242010-10-01 Joel Brobecker <brobecker@adacore.com>
1025
1026 * sparc-tdep.c (sparc32_frame_align): New function.
1027 (sparc32_gdbarch_init): Set the frame_align gdbarch method.
1028 * sparc64-tdep.c (sparc64_frame_align): New function.
1029 (sparc64_gdbarch_init): Set the frame_align gdbarch method.
1030
a5916a62
L
10312010-09-30 H.J. Lu <hongjiu.lu@intel.com>
1032
1033 * defs.h (MAX_REGISTER_SIZE): Set to 64.
1034
00b5771c
TT
10352010-09-30 Tom Tromey <tromey@redhat.com>
1036
1037 * symfile.h (struct sym_fns) <next>: Remove.
1038 (add_symtab_fns): Update.
1039 * symfile.c (sym_fns_ptr): New typedef.
1040 (symtab_fns): Now a VEC.
1041 (add_symtab_fns): Update. Change argument type.
1042 (find_sym_fns): Update. Change return type.
1043 (get_symfile_segment_data): Update.
1044 * objfiles.h (struct objfile) <sf>: Now const.
1045 * somread.c (som_sym_fns): Now const. Update.
1046 * xcoffread.c (xcoff_sym_fns): Now const. Update.
1047 * mipsread.c (ecoff_sym_fns): Now const. Update.
1048 * machoread.c (macho_sym_fns): Now const. Update.
1049 * elfread.c (elf_sym_fns): Now const. Update.
1050 (elf_sym_fns_gdb_index): Likewise.
1051 * dbxread.c (aout_sym_fns): Now const. Update.
1052 * coffread.c (coff_sym_fns): Now const. Update.
1053
38f12cfc
TT
10542010-09-30 Tom Tromey <tromey@redhat.com>
1055
1056 * value.c (value_primitive_field): Take 'offset' into account for
1057 packed field.
1058
9ae8282d
TT
10592010-09-30 Tom Tromey <tromey@redhat.com>
1060
1061 * completer.c (count_struct_fields): Handle anonymous structs and
1062 unions.
1063 (add_struct_fields): Likewise.
1064
e9e07ba6
JK
10652010-09-30 Jan Kratochvil <jan.kratochvil@redhat.com>
1066
1067 Fix printing parameters of inlined functions.
1068 * ada-lang.c (is_known_support_routine)
1069 (ada_unhandled_exception_name_addr_from_raise): Provide NULL parameter
1070 for find_frame_funname.
1071 * python/py-frame.c (frapy_name): Likewise.
1072 * stack.c (find_frame_funname): New parameter funcp. Update the
1073 function comment. Fill it in.
1074 (print_frame): New variable func. Initialize it by
1075 find_frame_funname. Print arguments only if FUNC is not NULL. Use
1076 FUNC as the parameter of print_args_stub.
1077 * stack.h (find_frame_funname): New parameter funcp. Remove the
1078 function declaration comment.
1079
cd2effb2
JK
10802010-09-30 Jan Kratochvil <jan.kratochvil@redhat.com>
1081
1082 PR corefiles/12071.
1083 * inferior.c (have_live_inferiors): New variables old_chain, inf and
1084 tp. Iterate INFERIOR_LIST and call target_has_execution.
1085
bceffbf3
JK
10862010-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1087
1088 Fix GDB crash on inferior calls with self-referencing classes.
1089 * gnu-v3-abi.c (gnuv3_pass_by_reference): Do not call itself on static
1090 member fields.
1091
abc72ce4
DE
10922010-09-29 Doug Evans <dje@google.com>
1093
1094 Workaround for gcc/45682.
1095 * dwarf2read.c (partial_die_info): New fields fixup_called,
1096 linkage_name.
1097 (guess_partial_die_structure_name): Renamed from guess_structure_name.
1098 Move definition next to use. Use linkage_name to determine if class
1099 is in a namespace. All callers updated.
1100 (fixup_partial_die): Return early if already called.
1101 Set fixup_called when done.
1102 (guess_full_die_structure_name): New function.
1103 (determine_prefix): Call it for class/struct/union dies if c++ and
1104 .debug_types section is present and parent is DW_TAG_compile_unit.
1105
0ac7be25
JB
11062010-09-28 Joel Brobecker <brobecker@adacore.com>
1107
1108 * configure.tgt (sparc-*-*): Set gdb_sim to ../sim/erc32/libsim.a.
1109 (sparc-*-rtems*): Delete. Now redundant with sparc-*-*.
1110
6e1bb179
JB
11112010-09-28 Joel Brobecker <brobecker@adacore.com>
1112
1113 * NEWS: Announce Ravenscar Profile support.
1114
036b1ba8
JB
11152010-09-28 Joel Brobecker <brobecker@adacore.com>
1116 Jerome Guitton <guitton@adacore.com>
1117
1118 * ravenscar-thread.c, ravenscar-thread.h, ravenscar-sparc-thread.c:
1119 New files.
1120 * configure.tgt (sparc-*-*): Add ravenscar-thread.o and
1121 ravenscar-sparc-thread.o to gdb_target_obs.
1122
474011fb
JB
11232010-09-28 Joel Brobecker <brobecker@adacore.com>
1124
1125 * ada-tasks.c (iterate_over_live_ada_tasks): New function.
1126 * ada-lang.h (iterate_over_live_ada_tasks): Declare.
1127
99e24b90
PM
11282010-09-27 Pierre Muller <muller@ics.u-strasbg.fr>
1129
1130 * amd64-windows-tdep.c (amd64_skip_main_prologue): New function.
1131 (amd64_windows_init_abi): Register amd64_skip_main_prologue as gdbarch
1132 skip_main_prologue method.
1133
987d643c
TT
11342010-09-27 Tom Tromey <tromey@redhat.com>
1135
1136 * dwarf2read.c (dwarf2_read_index): Only allow version 3.
1137 (write_psymbols): Add 'psyms_seen' and 'is_static' arguments.
1138 Only emit a given psymbol once.
1139 (struct signatured_type_index_data) <psyms_seen>: New field.
1140 (write_one_signatured_type): Update.
1141 (cleanup_htab): New function.
1142 (write_psymtabs_to_index): Update. Create psyms_seen hash. Bump
1143 version to 3.
1144 (save_gdb_index_command): Update index documentation.
1145
d3aff959
TT
11462010-09-27 Tom Tromey <tromey@redhat.com>
1147
1148 * bcache.c (expand_hash_table): Use hash_function, not hash.
1149
716b65bf
TT
11502010-09-27 Tom Tromey <tromey@redhat.com>
1151
1152 * gdb_wchar.h: Change minimum libiconv to 0x108.
1153
1736ad11
JK
11542010-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1155
1156 Fix lost siginfo_t for inferior calls.
1157 * infrun.c
1158 (struct inferior_thread_state) <siginfo_gdbarch, siginfo_data>: New.
1159 (save_inferior_thread_state): New variables regcache, gdbarch and
1160 siginfo_data. Initialize SIGINFO_DATA if gdbarch_get_siginfo_type_p.
1161 Move INF_STATE allocation later, pre-clear it. Initialize REGISTERS
1162 using REGCACHE.
1163 (restore_inferior_thread_state): New variables regcache and gdbarch.
1164 Restore SIGINFO_DATA for matching GDBARCH. Restore REGISTERS using
1165 REGCACHE. Free also SIGINFO_DATA.
1166
4b5246aa
TT
11672010-09-24 Tom Tromey <tromey@redhat.com>
1168
1169 * dwarf2read.c (dw2_expand_symtabs_matching): Add missing
1170 MAYBE_SWAPs.
1171 (dw2_map_symbol_names): Likewise.
1172
2a7d6a25
SW
11732010-09-24 Sami Wagiaalla <swagiaal@redhat.com>
1174
1175 * valops.c (find_oload_champ_namespace_loop): replace incorrect
1176 discard_cleanups do_cleanups.
1177
b53a1623
PA
11782010-09-24 Pedro Alves <pedro@codesourcery.com>
1179
e6ee044d
PA
1180 PR gdb/11842
1181
b53a1623
PA
1182 * amd64-linux-nat.c (compat_siginfo_from_siginfo)
1183 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
1184 si_code is < 0. Check for si_code == SI_TIMER before checking for
1185 si_code < 0.
1186
96a8853a
PA
11872010-09-24 Pedro Alves <pedro@codesourcery.com>
1188
1189 * objfiles.h (ALL_OBJSECTIONS): Handle breaks in the inner loop.
1190
39383a48
JB
11912010-09-22 Joel Brobecker <brobecker@adacore.com>
1192
1193 * ada-tasks.c (read_atcb): Do not compute the task ptid when
1194 debugging a core file.
1195
d31d2fc3
JK
11962010-09-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1197
1198 Code cleanup.
1199 * objfiles.c (allocate_objfile) <objfile->name != NULL>: Remove.
1200 (free_objfile) <objfile->name != NULL>: Remove the conditional around
1201 xfree.
1202 * objfiles.h (struct objfile) <name>: New comment it is never NULL.
1203 * python/py-auto-load.c (auto_load_new_objfile) <!objfile->name>:
1204 Remove.
1205 * python/py-objfile.c (objfpy_get_filename) <obj->objfile->name>
1206 Remove the conditional.
1207 * python/py-progspace.c (pspy_get_filename) <objfile->name>: Likewise.
1208
7f6130ff
JK
12092010-09-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1210
1211 * main.c: Include objfiles.h.
1212 (captured_main): New variable objfile. Call
1213 load_auto_scripts_for_objfile for ALL_OBJFILES.
1214
c2b0a229
JK
12152010-09-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1216
1217 * dwarf2read.c (die_needs_namespace) <DW_TAG_variable>: Add also
1218 DW_TAG_constant.
1219
72929c62
JB
12202010-09-22 Joel Brobecker <brobecker@adacore.com>
1221
1222 * dwarf2read.c (scan_partial_symbols): Add handling of
1223 DW_TAG_constant DIEs.
1224 (add_partial_symbol, load_partial_dies, new_symbol): Likewise.
1225
496c0e1b
JB
12262010-09-22 Joel Brobecker <brobecker@adacore.com>
1227
1228 * configure.ac: Add support for --enable-gdbserver.
1229 * configure: Regenerate.
1230
ec322823
SW
12312010-09-22 Sami Wagiaalla <swagiaal@redhat.com>
1232
1233 PR C++/12028
1234 * valops.c (find_oload_champ_namespace_loop): removed incorrect
1235 'old_cleanups' reassignment.
1236
1558ab4c
JK
12372010-09-16 Jan Kratochvil <jan.kratochvil@redhat.com>
1238
1239 * charset.c (wchar_iterate) <EILSEQ>: Return any possibly converted
1240 characters.
1241
875b4ff5
PM
12422010-09-16 Phil Muldoon <pmuldoon@redhat.com>
1243
1244 PR mi/11407
1245 * mi/mi-cmd-stack.c (list_args_or_locals): Catch exceptions from
1246 read_var_value and common_val_print and print a warning.
1247
65dedcb2
JK
12482010-09-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1249
1250 * MAINTAINERS (GLOBAL MAINTAINERS) <Jan Kratochvil>: Move the entry to
1251 keep the list in alphabetical order. Use longer e-mail address.
1252
0e780a22
TT
12532010-09-15 Tom Tromey <tromey@redhat.com>
1254
1255 * MAINTAINERS (GLOBAL MAINTAINERS): Add Jan Kratochvil.
1256
62234ccc
TT
12572010-09-15 Tom Tromey <tromey@redhat.com>
1258
1259 * charset.c (iconv_open): New define.
1260 (iconv): Likewise.
1261 (iconv_close): Likewise.
1262 (phony_iconv_open): Add "phony_" prefix.
1263 (phony_iconv_close): Likewise.
1264 (phony_iconv): Likewise.
1265 * gdb_wchar.h: Check _LIBICONV_VERSION, __STDC_ISO_10646__.
1266 Change how INTERMEDIATE_ENCODING is defined.
1267
4950bc1c
DE
12682010-09-15 Doug Evans <dje@google.com>
1269
1270 * dwarf2read.c (struct die_info): Fix comment.
1271
349126ea
AM
12722010-09-15 Alan Modra <amodra@gmail.com>
1273
1274 PR 4606
1275 * gcore.c (gcore_create_callback): Clear SEC_HAS_CONTENTS rather
1276 than setting SEC_NEVER_LOAD on sections that need not be copied.
1277
923c6a3d
TT
12782010-09-14 Tom Tromey <tromey@redhat.com>
1279
1280 * psympriv.h (add_psymbol_to_list, init_psymbol_list)
1281 (start_psymtab_common, allocate_psymtab, discard_psymtab):
1282 Declare.
1283 * symfile.h (extend_psymbol_list): Remove.
1284 (add_psymbol_to_list, init_psymbol_list, start_psymtab_common)
1285 (allocate_psymtab, discard_psymtab): Move to psympriv.h.
1286 * psymtab.c (extend_psymbol_list): Move earlier. Now static.
1287
a9e6a4bb
JK
12882010-09-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1289
1290 * dwarf2read.c (dw2_map_ada_symtabs): Remove the internal_error.
1291 Update the comment.
1292
7155d578
TT
12932010-09-14 Tom Tromey <tromey@redhat.com>
1294
1295 PR symtab/8399:
1296 * dwarf2loc.c (locexpr_describe_location_piece): Don't call error
1297 for unrecognized frame base expression.
1298
515ed532
TT
12992010-09-14 Tom Tromey <tromey@redhat.com>
1300
1301 PR exp/11803:
1302 * value.c (value_static_field): Use value_of_variable.
1303
b467f580
PM
13042010-09-14 Pierre Muller <muller@ics.u-strasbg.fr>
1305
1306 * m32r-rom.c: Replace winsock.h with winsock2.h header.
1307 * remote-m32r-sdi.c: Replace winsock.h by winsock2.h.
1308
450ca57c
SW
13092010-09-13 Sami Wagiaalla <swagiaal@redhat.com>
1310
1311 PR symtab/11992:
1312 * c-exp.y (classify_name): Check is_a_member_of_this before returning
1313 UNKNOWN_CPP_NAME.
1314
1aee7009
JB
13152010-09-13 Joel Brobecker <brobecker@adacore.com>
1316
1317 * NEWS: Add x86-lynxos to the list of platforms supported by
1318 gdbserver.
1319
5ec6ebf9
JB
13202010-09-13 Joel Brobecker <brobecker@adacore.com>
1321
1322 * NEWS: Announce GDBserver support for version 5.x of ppc-lynxos.
1323
1863c96c
TT
13242010-09-13 Tom Tromey <tromey@redhat.com>
1325
1326 * Makefile.in (HFILES_NO_SRCDIR): Add progspace.h.
1327
0c5acf93
L
13282010-09-13 H.J. Lu <hongjiu.lu@intel.com>
1329
1330 * i386-tdep.c (i386_ymm_type): Set type name to
1331 builtin_type_vec256i.
1332
1c6272a6
MS
13332010-09-12 Michael Snyder <msnyder@vmware.com>
1334
1335 * i386-tdep.c (i386_gdbarch_init): Fix typo in comments.
1336
e866c497
L
13372010-09-12 H.J. Lu <hongjiu.lu@intel.com>
1338
1339 * i386-tdep.c (i386_gdbarch_init): Fix typo in comments.
1340
9191d390
L
13412010-09-11 H.J. Lu <hongjiu.lu@intel.com>
1342
1343 * amd64-tdep.c (amd64_register_name): Removed.
1344 (amd64_init_abi): Don't call set_gdbarch_register_name.
1345
1346 * i386-tdep.c (i386_ymmh_regnum_p): Make it static.
1347
1348 * i386-tdep.h (i386_ymmh_regnum_p): Removed.
1349
8d4d924b
JK
13502010-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1351 Paul Bolle <pebolle@tiscali.nl>
1352
1353 Redirect also uiout and stdtarg{,err} in execute_command_to_string.
1354 * cli-logging.c (struct saved_output_files) <targerr>: New.
1355 (set_logging_redirect, pop_output_files, handle_redirections):
1356 Redirect also gdb_stdtargerr.
1357 * defs.h (struct ui_out, make_cleanup_ui_out_redirect_pop): New
1358 declarations.
1359 * event-top.c (gdb_setup_readline, gdb_disable_readline): Redirect
1360 also gdb_stdtargerr.
1361 * top.c (execute_command_to_string): Move make_cleanup_ui_file_delete
1362 to the top. Redirect also gdb_stdlog, gdb_stdtarg and gdb_stdtargerr.
1363 Use ui_out_redirect, register make_cleanup_ui_out_redirect_pop.
1364 * tui/tui-io.c (tui_setup_io): Redirect also gdb_stdtargerr.
1365 * utils.c (do_ui_out_redirect_pop, make_cleanup_ui_out_redirect_pop):
1366 New functions.
1367
3329c4b5
PM
13682010-09-10 Pierre Muller <muller@ics.u-strasbg.fr>
1369
1370 * hppa-tdep.c (unwind_command): Use host_address_to_string function
1371 to display a host address.
1372 * monitor.c (monitor_read_memory): Likewise.
1373 * xtensa-tdep.c (xtensa_push_dummy_call): Likewise.
1374
5e8db398
PM
13752010-09-10 Pierre Muller <muller@ics.u-strasbg.fr>
1376
1377 * coffread.c (struct coff_symbol): Change c_value type from `long' to
1378 `CORE_ADDRESS' as it might contain target addresses.
1379
37049e31
PM
13802010-09-10 Pierre Muller <muller@ics.u-strasbg.fr>
1381
1382 * alpha-mdebug-tdep.c (find_proc_desc): Use SYMBOL_VALUE_BYTES macro
1383 before cast to pointer to avoid warning.
1384
351a3e56
KB
13852010-09-09 Kevin Buettner <kevinb@redhat.com>
1386
1387 * v850-tdep.c (v850_gdbarch_init): Change the v850's `char'
1388 type to be signed.
349126ea 1389
6afafb54
UW
13902010-09-09 Ulrich Weigand <uweigand@de.ibm.com>
1391
1392 * dwarf2read.c (fixup_partial_die): Do not set dummy name for
1393 anonymous class partial DIEs.
1394
60430eff
DJ
13952010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
1396
1397 * dwarf2read.c (dwarf2_compute_name): Check that the first
1398 argument is a pointer.
1399
f1078f66
DJ
14002010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
1401
1402 * dwarf2read.c (read_func_scope, read_structure_type)
1403 (read_common_block): Check for a NULL return from new_symbol.
1404
82430852
JK
14052010-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1406
1407 * dwarf2read.c (dwarf2_read_index): Return on no SEC_HAS_CONTENTS.
1408
c767944b
DJ
14092010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
1410
1411 * dwarf2read.c (read_structure_type): Move processing of
1412 fields and member functions from here...
1413 (process_structure_scope): ... to here.
1414
561d3825
DJ
14152010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
1416
1417 * gnu-v3-abi.c (gnuv3_print_method_ptr): Do not use
1418 the domain type.
1419 (gnuv3_make_method_ptr): Likewise.
1420
9bd89d67
TT
14212010-09-08 Tom Tromey <tromey@redhat.com>
1422
1423 * breakpoint.c (create_breakpoint): Add missing _().
1424
1d040b0d
DE
14252010-09-08 Doug Evans <dje@google.com>
1426
1427 * dwarf2-frame.h (dwarf2_frame_build_info): Delete, unused.
1428
774b6a14
TT
14292010-09-08 Tom Tromey <tromey@redhat.com>
1430
1431 Revert:
1432 2010-09-01 Tom Tromey <tromey@redhat.com>
1433 * dwarf2read.c, gdbtypes.c, psymtab.c, symfile.h, symtab.c,
1434 symtab.h: Revert earlier change.
1435
fc956729
SW
14362010-09-09 Sami Wagiaalla <swagiaal@redhat.com>
1437
1438 * psymtab.c (add_psymbol_to_bcache): Initialize
1439 obj_section.
1440 memset psymbol.ginfo.value to 0.
1441
48f9886d
PA
14422010-09-06 Pedro Alves <pedro@codesourcery.com>
1443
1444 * infrun.c (resume): Extend comment on ignoring single-step
1445 requests on vfork parents waiting for a vfork-done.
1446
423ec54c
JK
14472010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1448 Pedro Alves <pedro@codesourcery.com>
1449
1450 * corelow.c (core_open): Use target_signal_from_host if CORE_GDBARCH
1451 is NULL.
1452 * fork-child.c (startup_inferior) <resume_signal>: Use enum
1453 target_signal type.
1454 * linux-nat.c (linux_nat_resume): Use target_signal_to_host before
1455 calling strsignal. Use enum target_signal type for saved_signo.
1456 (linux_handle_extended_wait) <signo>: Use enum target_signal type.
1457 (linux_nat_wait_1): Use enum target_signal type for signo. Use
1458 target_signal_to_host before calling strsignal.
1459 * remote-m32r-sdi.c (m32r_wait, m32r_detach): Replace 0 by
1460 TARGET_SIGNAL_0.
1461
a6eb9bc8
JK
14622010-09-06 Pedro Alves <pedro@codesourcery.com>
1463 Jan Kratochvil <jan.kratochvil@redhat.com>
1464
1465 * common/signals.c (ANY): Remove.
1466 (SET): No longer use ANY.
1467
74609e71
YQ
14682010-09-06 Yao Qi <yao@codesourcery.com>
1469
1470 * infrunc(resume): When inferior is waiting_for_vfork_done,
1471 clear step and don't use displaced stepping.
1472
8464be76
DJ
14732010-09-04 Daniel Jacobowitz <dan@codesourcery.com>
1474
1475 * breakpoint.c (can_use_hardware_watchpoint): Handle the first
1476 value specially.
1477
33d62d64
JK
14782010-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1479
1480 Code cleanup - split print_stop_reason.
1481 * infrun.c (enum inferior_stop_reason): Remove.
1482 (print_stop_reason): Remove by splitting into ...
1483 (print_exited_reason, print_signal_exited_reason)
1484 (print_no_history_reason, print_signal_received_reason)
1485 (print_end_stepping_range_reason): ... these new functions. Update
1486 the preceding comment.
1487 (handle_inferior_event): Change the calls to print_exited_reason,
1488 print_signal_exited_reason, print_no_history_reason,
1489 print_signal_received_reason, print_end_stepping_range_reason.
1490 (handle_step_into_function, handle_step_into_function_backward):
1491 Change the calls to print_end_stepping_range_reason.
1492
14dba4b4
JK
14932010-09-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1494
1495 * breakpoint.c (save_breakpoints): Use RETURN_MASK_ALL.
1496 * cli-out.c: Include vec.h.
1497 (cli_field_fmt, cli_spaces, cli_text, cli_message, cli_flush): New
1498 variable stream, initialize it, use it.
1499 (cli_redirect): New function comment. Replace the stream and
1500 original_stream fields by the new streams field. Remove the
1501 original_stream != NULL conditional, assert error on NULL instead.
1502 (out_field_fmt, field_separator): New variable stream, initialize it, use it.
1503 (cli_out_data_ctor): Assert non-NULL stream. Replace the stream and
1504 original_stream fields by the new streams field.
1505 (cli_out_set_stream): Replace the stream field by the new streams
1506 field.
1507 * cli-out.h: Include vec.h.
1508 (ui_filep): New typedef, call DEF_VEC_P for it.
1509 (struct cli_ui_out_data): Replace the stream and original_stream
1510 fields by the new streams field.
1511 * cli/cli-logging.c (set_logging_redirect): Call ui_out_redirect with
1512 NULL first. Extend the comment.
1513 (handle_redirections): Call ui_out_redirect with output.
1514 * python/py-breakpoint.c (bppy_get_commands): Move ui_out_redirect
1515 calls outside of the TRY_CATCH block.
1516
b04bc5d4 15172010-09-03 Joel Brobecker <brobecker@adacore.com>
1518
1519 GDB 7.2 released.
1520
080db4e0
JB
15212010-09-02 Joel Brobecker <brobecker@adacore.com>
1522
1523 Back out the following change:
1524 | 2010-06-29 Hui Zhu <teawater@gmail.com>
1525 | * record.c (set_record_pic_cmdlist,
1526 | show_record_pic_cmdlist): New variables.
1527 | (set_record_pic_command,
1528 | show_record_pic_command): New functions.
1529 | (record_pic_function, record_pic_line, record_pic_enum,
1530 | set_record_pic_type, record_pic_hide_nofunction,
1531 | record_pic_hide_nosource, record_pic_hide_same): New variables.
1532 | (record_pic_fputs): New function.
1533 | (function_list, node_list, edge_list): New struct.
1534 | (function_list, node_list, edge_list): New variables.
1535 | (record_pic_cleanups, record_pic_node,
1536 | record_pic_edge, cmd_record_pic): New functions.
1537 | (_initialize_record): Add new commands for record pic.
1538
0a4f61e3
DJ
15392010-09-02 Daniel Jacobowitz <dan@codesourcery.com>
1540
1541 * config.in, configure: Regenerated.
1542 * configure.ac: Check for waitpid.
1543 * ser-pipe.c (pipe_close): Wait for the program to exit.
1544
58b61394
JK
15452010-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1546
ba720883 1547 * cli/cli-logging.c: Include gdb_assert.h.
58b61394
JK
1548 (set_logging_overwrite): New function.
1549 (logging_redirect): New comment.
1550 (logging_no_redirect_file, set_logging_redirect)
1551 (pop_output_files) <logging_no_redirect_file>: New.
1552 (handle_redirections) <!logging_redirect>: New variable
1553 no_redirect_file. Remove file autoclose for tee_file_new. No longer
1554 discard cleanup for the close of former OUTPUT. Set
1555 LOGGING_NO_REDIRECT_FILE.
1556 (handle_redirections) <logging_redirect>: gdb_assert
1557 LOGGING_NO_REDIRECT_FILE.
1558 (show_logging_command) <logging_redirect handling>: Adjust messages
1559 for SAVED_FILENAME not NULL.
1560 (_initialize_cli_logging): Install set_logging_overwrite and
1561 set_logging_redirect.
1562
706774f2
JK
15632010-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1564
1565 * iq2000-tdep.c (iq2000_scan_prologue): Initialize SAL.END.
1566
9a35ccf7
JK
15672010-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1568
1569 * Makefile.in (GDB_WARN_CFLAGS_NO_FORMAT): Convert it to the no- form.
1570 (monitor.o): Replace $(INTERNAL_WARN_CFLAGS) by $(INTERNAL_CFLAGS) and
1571 add $(GDB_WARN_CFLAGS_NO_FORMAT).
1572 (printcmd.o): Replace $(INTERNAL_CFLAGS_BASE) by $(INTERNAL_CFLAGS).
1573
ba9b2ec3
YQ
15742010-09-02 Yao Qi <yao@codesourcery.com>
1575
1576 * linux-nat.c (status_to_str): Use WTERMSIG to extract the signal
1577 number from a WIFSIGNALED status.
1578
faf68db7
TT
15792010-09-01 Tom Tromey <tromey@redhat.com>
1580
1581 * symtab.h (lookup_type_symbol): Declare.
1582 * symtab.c (lookup_symbol_in_language_full): Rename from
1583 lookup_symbol_in_language. Add 'for_type' argument.
1584 (lookup_symbol_in_language): New function.
1585 (lookup_type_symbol): Likewise.
1586 (lookup_symbol_aux): Add 'for_type' argument.
1587 (match_symbol_aux): New function.
1588 (lookup_symbol_aux_symtabs): Use expand_one_symtab_matching.
1589 (match_transparent_type): New function.
1590 (basic_lookup_transparent_type): Use expand_one_symtab_matching.
1591 * symfile.h (struct quick_symbol_functions)
1592 <pre_expand_symtabs_matching>: Remove.
1593 <expand_one_symtab_matching>: New field.
1594 * psymtab.c (expand_one_symtab_matching_psymtabs): New function.
1595 (pre_expand_symtabs_matching_psymtabs): Remove.
1596 (psym_functions): Update.
1597 * gdbtypes.c (lookup_typename): Use lookup_type_symbol.
1598 * dwarf2read.c (dw2_lookup_symbol): Update comment.
1599 (dw2_pre_expand_symtabs_matching): Remove.
1600 (dw2_expand_one_symtab_matching): New function.
1601 (dwarf2_gdb_index_functions): Update.
1602
248c9dbc
JB
16032010-09-01 Joel Brobecker <brobecker@adacore.com>
1604
1605 * NEWS: Add entry announcing GDBserver support on powerpc-lynxos.
1606
f75d858b
MK
16072010-09-01 Marc Khouzam <marc.khouzam@ericsson.com>
1608
1609 * mi/mi-main.c (mi_cmd_list_target_features): Add `reverse'
1610 as a feature reported by -list-target-features.
1611
0482b03b
JB
16122010-09-01 Joel Brobecker <brobecker@adacore.com>
1613
1614 * features/Makefile (WHICH): Add rs6000/powerpc-32.
1615 (powerpc-32.o, powerpc-32.c): New rules.
1616 (clean): Also remove powerpc-32.c.
1617 * regformats/rs6000/powerpc-32.dat: Generate.
1618
710e1a31
SW
16192010-08-31 Sami Wagiaalla <swagiaal@redhat.com>
1620
1621 * symfile.c (reread_symbols): Use psymbol_bcache_free, and
1622 psymbol_bcache_init.
1623 * psymtab.h (psymbol_bcache_init): New function prototype.
1624 (psymbol_bcache_free): New function prototype.
1625 (psymbol_bcache_get_bcache): New function prototype.
1626 * psymtab.c (psymbol_bcache_init): New function.
1627 (psymbol_bcache_free): New function.
1628 (psymbol_bcache_full): New function.
1629 (psymbol_bcache_get_bcache): New function.
1630 (add_psymbol_to_bcache): use psymbol_bcache_full.
1631 * objfiles.h (psymbol_cache): Change type of psymbol_cache to
1632 psymbol_bcache.
1633 * symmisc.c (print_symbol_bcache_statistics): Updated.
1634 (print_objfile_statistics): Updated.
1635 * objfiles.c (allocate_objfile): Use psymbol_bcache_init to initialize
1636 psymbol_cache.
1637 (free_objfile): Use psymbol_bcache_free.
1638
64382290
TT
16392010-08-31 Tom Tromey <tromey@redhat.com>
1640
1641 PR c++/11961:
1642 * dwarf2read.c (new_symbol_full) <DW_TAG_template_type_param>:
1643 Don't set TYPE_NAME on the type.
1644
8bbed405
MS
16452010-08-31 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
1646
1647 * infrun.c (set_exec_direction_func): Error out if target does not
1648 support reverse execution.
1649
06253dd3
JK
16502010-08-31 Jan Kratochvil <jan.kratochvil@redhat.com>
1651
1652 Make linux_get_siginfo_type `type *' unique.
1653 * linux-tdep.c (linux_gdbarch_data_handle, struct linux_gdbarch_data)
1654 (init_linux_gdbarch_data, get_linux_gdbarch_data): New.
1655 (linux_get_siginfo_type): New variable linux_gdbarch_data. Initialize
1656 it. Use linux_gdbarch_data->siginfo_type as a persistent storage.
1657 (_initialize_linux_tdep): New.
1658
b8edc417
JK
16592010-08-31 Jan Kratochvil <jan.kratochvil@redhat.com>
1660
1661 Code cleanup.
1662 * defs.h (find_memory_region_ftype): New typedef.
1663 (exec_set_find_memory_regions): Use it.
1664 * exec.c (exec_set_find_memory_regions): Use find_memory_region_ftype.
1665 * fbsd-nat.c (fbsd_find_memory_regions): Likewise.
1666 * gcore.c (objfile_find_memory_regions): Likewise.
1667 * gnu-nat.c (gnu_find_memory_regions): Likewise.
1668 * linux-nat.c (linux_nat_find_memory_regions): Likewise.
1669 * procfs.c (iterate_over_mappings_cb_ftype): Remove.
1670 (iterate_over_mappings): Rename iterate_over_mappings_cb_ftype to
1671 find_memory_region_ftype.
1672 (insert_dbx_link_bpt_in_region): Likewise.
1673 (iterate_over_mappings): Likewise. Drop the comment part about the
1674 function prototype.
1675 (find_memory_regions_callback): Use find_memory_region_ftype.
1676 (proc_find_memory_regions): Likewise.
1677 (info_mappings_callback): Rename iterate_over_mappings_cb_ftype to
1678 find_memory_region_ftype.
1679 * target.c (dummy_find_memory_regions): Use find_memory_region_ftype.
1680 * target.h (struct target_ops) <to_find_memory_regions>: Likewise.
1681
cbd70537
SW
16822010-08-31 Sami Wagiaalla <swagiaal@redhat.com>
1683
1684 * psymtab.c (add_psymbol_to_bcache): Remove 'static' from
1685 'static partial_symbol psymbol'.
1686 (psymbol_hash): New function.
1687 (psymbol_compare): New function.
1688 * bcache.c (hash_continue): New.
1689 (hash): Use hash_continue.
1690 * bcache.c: Add hash_function and compare_function
1691 pointers to bcache struct.
1692 (bcache_full): Use bcache->hash_function, and
1693 bcache->compare_function.
1694 (bcache_compare): New function.
1695 (bcache_xmalloc): Take hash_function and
1696 compare_function arguments and initialize the
1697 bcach's pointers.
1698 Updated comment.
1699 * objfiles.c (allocate_objfile): Updated.
1700 * symfile.c (reread_symbols): Updated.
1701 * python/py-type.c (typy_richcompare): Updated.
1702
03f17ccf
TT
17032010-08-30 Andre Poenitz <andre.poenitz@nokia.com>
1704 Tom Tromey <tromey@redhat.com>
1705
1706 PR python/11792:
1707 * python/py-value.c (valpy_get_dynamic_type): New function.
1708 (value_object_getset): Add "dynamic_type".
1709 (valpy_get_type): Fail on error.
1710
25b41d01
YQ
17112010-08-30 Yao Qi <yao@codesourcery.com>
1712
1713 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): New.
1714 (arm_linux_syscall_next_pc): New.
1715 (arm_linux_copy_svc): Use arm_linux_sigreturn_return_addr instead.
1716 (arm_linux_init_abi): Initialize syscall_next_pc.
1717 * arm-tdep.c (thumb_get_next_pc_raw): Get next pc of SWI in Thumb mode.
1718 (arm_get_next_pc_raw): Get next pc of SWI in ARM mode.
1719 * arm-tdep.h (struct gdbarch_tdep): Add a function pointer syscall_next_pc.
1720 Declare arm_frame_is_thumb.
1721
5760d0ab
JK
17222010-08-30 Jan Kratochvil <jan.kratochvil@redhat.com>
1723
1724 Code cleanup.
1725 * breakpoint.c (bpstat_alloc): Remove unused prototype.
1726 (bpstat_alloc): Change parameters cbs to bs_link_pointer. Adjust the
1727 code.
1728 (bpstat_stop_status): Change root_bs into bs_head and bs_link. Adjust
1729 calls of bpstat_alloc. Remove explicit bs chain termination.
1730
46a96992
JK
17312010-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1732
1733 Code cleanup.
1734 * linux-nat.c (pull_pid_from_list): Rename status to statusp.
1735 (my_waitpid): Likewise.
1736
36374493
DE
17372010-08-27 Doug Evans <dje@google.com>
1738
1739 * dwarf2read.c (dw2_require_line_header): Read from .debug_types
1740 as appropriate.
1741
8b93c54c
TT
17422010-08-27 Tom Tromey <tromey@redhat.com>
1743
1744 * dwarf2read.c (dwarf2_attach_fields_to_type): Don't set
1745 TYPE_FIELD_IGNORE_BITS.
1746
16be1145
DE
17472010-08-27 Doug Evans <dje@google.com>
1748
1749 * dwarf2read.c (dwarf2_per_objfile_free): Reorganize buffers to match
1750 the order they're defined in. munmap .debug_types buffer.
1751
e254ef6a
DE
17522010-08-26 Doug Evans <dje@google.com>
1753
1754 * dwarf2read.c (dw2_require_full_path): Rename parameter cu to per_cu.
1755 (dw2_forget_cached_source_info): Rename local cu to per_cu.
1756 (dw2_lookup_symtab, dw2_do_expand_symtabs_matching): Ditto.
1757 (dw2_print_stats, dw2_expand_all_symtabs): Ditto.
1758 (dw2_expand_symtabs_with_filename, dw2_find_symbol_file): Ditto.
1759 (dw2_find_symbol_file, dw2_expand_symtabs_matching): Ditto.
1760 (dw2_map_symbol_filenames, dwarf2_initialize_objfile): Ditto.
1761 (dwarf2_free_objfile, write_one_signatured_type): Ditto.
1762 (write_psymtabs_to_index): Ditto.
1763
ae53ffa4
PA
17642010-08-26 Pedro Alves <pedro@codesourcery.com>
1765
1766 * NEWS: Mention libthread_db debugging with core files.
1767
c6da4cef
DE
17682010-08-26 Doug Evans <dje@google.com>
1769
1770 * dwarf2read.c (dwarf2_build_include_psymtabs): Remove unnecessary
1771 forward decl. Pass pst->dirname to dwarf_decode_lines.
1772 (psymtab_include_file_name): New function.
1773 (dwarf_decode_lines): Call it. Update comments.
1774
cd02d79d
PA
17752010-08-25 Pedro Alves <pedro@codesourcery.com>
1776
1777 * dwarf2read.c (inherit_abstract_dies): Handle origin die's
1778 compilation unit being different from target die's.
1779
673bfd45
DE
17802010-08-24 Doug Evans <dje@google.com>
1781
1782 PR symtab/11942
1783 * dwarf2read.c (dwarf2_per_objfile): New members debug_info_type_hash,
1784 debug_types_type_hash.
1785 (dwarf2_cu, dwarf2_per_cu_data): Delete member type_hash.
1786 All uses updated.
1787 (lookup_die_type): Renamed from tag_type_to_tag. First look in
1788 appropriate type_hash table. All callers updated.
1789 (allocate_signatured_type_table): Renamed from
1790 allocate_signatured_type_hash_table. All callers updated.
1791 (create_signatured_type_table_from_index): Renamed from
1792 create_signatured_type_hash_from_index. All callers updated.
1793 (read_die_type): Add comment. Move actual reading to ...
1794 (read_die_type_1): ... here. New function.
1795 (follow_die_ref_or_sig): Tweak comment.
1796 (set_die_type): Rewrite to use appropriate choice of
1797 debug_info_type_hash or debug_types_type_hash.
1798 (get_die_type_at_offset): New function.
1799 (get_die_type): Call it.
1800
e8fd65ef
JK
18012010-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1802
1803 * python/py-type.c (typy_richcompare): Initialize worklist.
1804
9779414d
DJ
18052010-08-24 Daniel Jacobowitz <dan@codesourcery.com>
1806 Kazu Hirata <kazu@codesourcery.com>
1807 Jonathan Larmour <jifl@eCosCentric.com>
1808
1809 * arm-tdep.c: Include features/arm-with-m.c.
1810 (arm_psr_thumb_bit): New. Update all uses of CPSR_T to
1811 call this function.
1812 (arm_pc_is_thumb): Add a gdbarch argument. Update all callers.
1813 Check is_m after force-mode.
1814 (arm_gdbarch_init): Check the binary before the target description.
1815 Add check for M profile attribute. If we have an M-profile device,
1816 but no target register description, use arm-with-m. Recognize the
1817 new org.gnu.gdb.arm.m-profile feature and its xpsr register.
1818 (_initialize_arm_tdep): Call initialize_tdesc_arm_with_m.
1819 * arm-tdep.h (XPSR_T): Define.
1820 (struct gdbarch_tdep): Add is_m member.
1821 * features/arm-m-profile.xml, features/arm-with-m.c,
1822 features/arm-with-m.xml: New files.
1823
9dc481d3
DE
18242010-08-23 Doug Evans <dje@google.com>
1825
1826 * dwarf2read.c (read_structure_type): Add comment.
1827 (read_enumeration_type): Add comment.
1828 (process_enumeration_scope): Move definition of some locals
1829 closer to their use.
1830 (read_namespace_type): Add comment.
e71ec853 1831 (set_die_type): Fix typo in comment.
9dc481d3 1832
f9ffd4bb
TT
18332010-08-23 Tom Tromey <tromey@redhat.com>
1834
1835 PR python/11145:
1836 * python/py-value.c: Include expression.h.
1837 (valpy_do_cast): New function.
1838 (valpy_cast): Use it.
1839 (valpy_dynamic_cast): New function.
1840 (valpy_reinterpret_cast): Likewise.
1841 (value_object_methods): Add dynamic_cast, reinterpret_cast.
1842
96f73ba5
TT
18432010-08-23 Tom Tromey <tromey@redhat.com>
1844
1845 PR python/11391:
1846 * python/py-value.c (valpy_nonzero): Don't throw error for other
1847 Value types.
1848
d839c8a4
TT
18492010-08-23 Tom Tromey <tromey@redhat.com>
1850
1851 PR python/10676:
1852 * python/py-type.c: Include bcache.h, vec.h.
1853 (struct type_equality_entry): New.
1854 (compare_strings): New function.
1855 (check_types_equal): Likewise.
1856 (check_types_worklist): Likewise.
1857 (typy_richcompare): Likewise.
1858 (type_object_type): Set tp_richcompare field.
1859
05d0e1e7
TT
18602010-08-23 Tom Tromey <tromey@redhat.com>
1861
1862 PR python/10953:
1863 * python/py-type.c (typy_fields): Call check_typedef.
1864 (typy_template_argument): Add TRY_CATCH.
1865
702c2711
TT
18662010-08-23 Tom Tromey <tromey@redhat.com>
1867
1868 PR python/11915:
1869 * python/py-type.c (typy_array): New function.
1870 (type_object_methods): Add "array".
1871
4a532131
PA
18722010-08-20 Pedro Alves <pedro@codesourcery.com>
1873
1874 * python/python.c: Include "serial.h".
1875 (gdbpy_event_fds): Change type to `struct serial *' a array from
1876 int array.
1877 (gdbpy_run_events): Change parameters. Use serial_readchar in
1878 place of read.
1879 (gdbpy_post_event): Use serial_write in place of write.
1880 (gdbpy_initialize_events): Use serial_pipe instead of pipe, and
1881 serial_async in place of add_file_handler.
1882
58f07bae
PA
18832010-08-20 Pedro Alves <pedro@codesourcery.com>
1884
1885 * serial.h (gdb_pipe, serial_pipe): Declare.
1886 * serial.c (serial_interface_lookup): Take a const char pointer.
1887 (serial_fdopen): Rename to ...
1888 (serial_fdopen_ops): ... this. Add an OPS parameter and use it.
1889 Call the OPS' fdopen function if there is one.
1890 (serial_fdopen): Rewrite as wrapper to serial_fdopen_ops.
1891 (serial_pipe): New.
1892 (struct serial_ops) <fdopen>: New field.
1893
1894 * ser-mingw.c (free_pipe_state):
1895 (free_pipe_state): Close output on non-pex pipes.
1896 (pipe_windows_fdopen): New.
1897 (gdb_pipe): New.
1898 (_initialize_ser_windows): Register pipe_windows_fdopen.
1899 * ser-go32.c (gdb_pipe): New.
1900 * ser-pipe.c (pipe_close): Close file descriptor even if there's
1901 no state pointer.
1902 (pipe_ops): Delete.
1903 (gdb_pipe): New.
1904
3da10d80
KS
19052010-08-20 Keith Seitz <keiths@redhat.com>
1906
1907 PR symtab/11465:
889bf7c5 1908 * dwarf2read.c (struct delayed_method_info): New struct.
3da10d80
KS
1909 (struct dwarf2_cu): Add vector method_list.
1910 (scan_partial_symbols): Count methods for union, class, structure,
1911 and interface types.
1912 (add_to_method_list): New function.
1913 (free_delayed_list): New function.
1914 (compute_delayed_physnames): New function.
1915 (process_full_comp_unit): Make a cleanup for the CU's delayed
1916 physname list, compute the delayed physnames, and free the
1917 the list.
1918 (dwarf2_add_member_fn): For C++ and Java, delay the computation
1919 of the physname until after the CU is read.
1920
1921 * dwarf2read.c (read_structure_type): Check if the current
1922 DIE's type was already completed after dwarf2_full_name
1923 was called.
889bf7c5 1924
ca11e899
SS
19252010-08-19 Stan Shebs <stan@codesourcery.com>
1926
1927 * NEWS: Mention some additional changes.
1928
4d2dc20a
TT
19292010-08-19 Tom Tromey <tromey@redhat.com>
1930
1931 * Makefile.in (install-python): Add DESTDIR.
1932
d30f5e1f
DE
19332010-08-19 Doug Evans <dje@google.com>
1934
1935 PR exp/11926
1936 * parser-defs.h (parse_float, parse_c_float): Declare.
1937 * parse.c (parse_float, parse_c_float): New function.
1938 * c-exp.y (parse_number): Call parse_c_float.
1939 * objc-exp.y (parse_number): Ditto.
1940 * p-exp.y (parse_number): Ditto. Use ANSI/ISO-style definition.
1941 * jv-exp.y (parse_number): Call parse_float, fix suffix handling.
1942
2837d59e
JB
19432010-08-19 Joel Brobecker <brobecker@adacore.com>
1944
1945 * psymtab.c (map_symbol_filenames_psymtab): Call FUN with
1946 the arguments in the correct order.
1947 * symtab.c (maybe_add_partial_symtab_filename): Declare
1948 the arguments in the correct order.
1949
35633fef
JK
19502010-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1951
1952 * varobj.c (varobj_create): Replace variable old_fi with old_id,
1953 initialize it by null_frame_id, wrap its usage by get_frame_id,
1954 frame_id_p and frame_find_by_id.
1955
94f7449c
TT
19562010-08-18 Tom Tromey <tromey@redhat.com>
1957
1958 PR python/11900:
1959 * configure: Rebuild.
1960 * configure.ac: Add install-python to CONFIG_INSTALL.
1961 * Makefile.in (install-python): New.
1962
f3574227
DE
19632010-08-18 Doug Evans <dje@google.com>
1964
1965 * gdb_assert.h (gdb_assert_not_reached): New macro.
1966 (gdb_assert_fail): Fix typo in comment.
1967 * avr-tdep.c (avr_return_value): Use gdb_assert_not_reached instead of
1968 gdb_assert (0).
1969 * darwin-nat.c (darwin_check_new_threads): Ditto.
1970 * dwarf2read.c (dwarf2_get_section_info): Ditto.
1971 (munmap_section_buffer): Ditto.
1972 * m32c-tdep.c (make_types): Ditto.
1973 (m32c_decode_srcdest4, m32c_decode_sd23, m32c_frame_base): Ditto.
1974 * macroexp.c (get_character_constant): Ditto.
1975 (get_string_literal): Ditto.
1976 * mep-tdep.c (mep_pseudo_cr_size): Ditto.
1977 (mep_pseudo_cr_index, mep_register_type): Ditto.
1978 (mep_pseudo_register_read, mep_pseudo_register_write): Ditto.
1979 (mep_get_insn, mep_analyze_prologue): Ditto.
1980 * objfiles.c (qsort_cmp): Ditto.
1981 * prologue-value.c (pv_is_identical): Ditto.
1982 * record.c (record_get_loc): Ditto.
1983 * value.c (value_static_field): Ditto.
1984 * xtensa-tdep.c (call0_track_op): Ditto.
1985
c92817ce
TT
19862010-08-18 Tom Tromey <tromey@redhat.com>
1987
1988 PR symtab/11919:
1989 * gdbtypes.c (lookup_struct_elt_type): Clean up error emission.
1990 * parse.c (parse_field_expression): Use RETURN_MASK_ERROR. Move
1991 name-copying lower. Document exception behavior.
1992 * completer.c (expression_completer): Catch exceptions from
1993 parse_field_expression.
1994
856d6f99
PA
19952010-08-18 Pedro Alves <pedro@codesourcery.com>
1996
1997 PR corefile/8210
1998
1999 * linux-thread-db.c (add_thread_db_info): Skip glibc/BZ5983
2000 workaround on core files.
2001 (try_thread_db_load_1): Don't try enabling thread event reporting
2002 on core files.
2003 (thread_db_load): Allow thread_db on core files.
2004 (attach_thread): Don't check thread signals on core files, nor try
2005 really attaching to the thread, nor enabling thread event event
2006 reporting.
2007 (thread_db_detach): Don't try disabing thread event reporting or
2008 removing thread event breakpoints when debugging a core file.
2009 (find_new_threads_callback): Don't try enabling thread event
2010 reporting on core files.
2011 (thread_db_find_new_threads_2): Don't look for a stopped lwp when
2012 debugging a core file.
2013 (thread_db_find_new_threads): Don't update thread
2014 cores (processors) when debugging a core (dump).
2015
261b8d08
PA
20162010-08-18 Pedro Alves <pedro@codesourcery.com>
2017
2018 PR corefile/8210
2019
2020 * corelow.c (add_to_thread_list): Don't use
2021 gdbarch_core_reg_section_encodes_pid. Use bfd_core_file_pid.
2022 (get_core_register_section): Don't use
2023 gdbarch_core_reg_section_encodes_pid.
2024
2025 * gdbarch.sh (core_reg_section_encodes_pid): Delete.
2026 * gdbarch.h, gdbarch.c: Regenerate.
2027 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Don't set
2028 gdbarch_core_reg_section_encodes_pid.
2029 * i386-sol2-tdep.c (i386_sol2_init_abi): Ditto.
2030 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Ditto.
2031 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Ditto.
2032
f9b42018
YQ
20332010-08-18 Yao Qi <yao@codesourcery.com>
2034
2035 * MAINTAINERS : Add myself under Write After Approval.
2036
def98928
TT
20372010-08-17 Tom Tromey <tromey@redhat.com>
2038
2039 * NEWS: Mention template parameter support.
2040
0807b50c
PA
20412010-08-17 Pedro Alves <pedro@codesourcery.com>
2042
2043 PR breakpoints/11371
2044
2045 * breakpoint.c (decref_bp_location): Assert the reference count is
2046 sane.
2047
f431efe5
PA
20482010-08-17 Pedro Alves <pedro@codesourcery.com>
2049
2050 PR breakpoints/11371
2051
2052 * breakpoint.c (breakpoint_init_inferior): Decrement the
2053 location's reference count instead of deleting right away.
2054 (bpstat_free): Decrement the location's reference count. Make
2055 static.
2056 (bpstat_copy): Increment the location's reference count.
2057 (bpstat_find_breakpoint): Adjust.
2058 (bpstat_num): Adjust.
2059 (print_it_typical): Adjust. Use the breakpoint pointer in the
2060 bpstat instead of the location's owner.
2061 (bpstat_alloc): Remove const qualifier from the 'bl' parameter.
2062 Adjust to record the location's owner in the bpstat.
2063 (watchpoint_check): Use the breakpoint pointer in the bpstat
2064 instead of the location's owner.
2065 (bpstat_check_breakpoint_conditions): Don't handle
2066 bp_watchpoint_scope here. Use the breakpoint pointer in the
2067 bpstat instead of the location's owner.
2068 (bpstat_stop_status): Defer inferior function calls to after
2069 building the bpstat list. Handle bp_watchpoint_scope here. Use
2070 the breakpoint pointer in the bpstat instead of the location's
2071 owner.
2072 (bpstat_what): Use the breakpoint pointer in the bpstat instead of
2073 the location's owner.
2074 (free_bp_location): Don't walk bpstats clearing locations.
2075 (incref_bp_location): New.
2076 (decref_bp_location): New.
2077 (breakpoint_auto_delete): Use the breakpoint pointer in the bpstat
2078 instead of the location's owner.
2079 (update_global_location_list): Clear the location's owner, and
2080 decrement the location's reference count instead of deleting it
2081 right away.
2082 (breakpoint_retire_moribund): Decrement the location's reference
2083 count instead of deleting it right away.
2084 (bpstat_remove_bp_location): Delete.
2085 (bpstat_remove_breakpoint): New.
2086 (bpstat_remove_bp_location_callback): Delete.
2087 (bpstat_remove_breakpoint_callback): New.
2088 (delete_breakpoint): Iterate over all threads' stop_bpstat's
2089 clearing references to the breakpoint that is being deleted.
2090
2091 * breakpoint.h (struct bp_location) <refc>: New field.
2092 <owner>: Update comments.
2093 (bpstat_free): Delete declaration.
2094 (struct bpstats): Change the type of the breakpoint_at field to
2095 struct breakpoint point, from struct bp_location pointer. Add new
2096 field bp_location_at.
2097
14c0d4e1
TT
20982010-08-16 Tom Tromey <tromey@redhat.com>
2099
2100 * NEWS: Fix typo.
2101
b56df873
TT
21022010-08-16 Tom Tromey <tromey@redhat.com>
2103
2104 * NEWS: Mention watch -location.
2105
d63d0675
JK
21062010-08-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2107
2108 * breakpoint.c (update_watchpoint): Add source empty line. Prefer
2109 EXP_STRING_REPARSE to EXP_STRING.
2110 (watch_command_1): Set also EXP_STRING_REPARSE.
2111 (delete_breakpoint): Free also EXP_STRING_REPARSE.
2112 * breakpoint.h (struct breakpoint): New field exp_string_reparse.
2113 Update comment for exp_string.
2114
06a64a0b
TT
21152010-08-16 Tom Tromey <tromey@redhat.com>
2116
2117 * value.c (release_value): Clear 'next' pointer.
2118 * breakpoint.c (watch_command_1): Add 'just_location' argument.
2119 (watch_command_wrapper): Update.
2120 (watch_maybe_just_location): New function.
2121 (watch_command): Update.
2122 (rwatch_command_wrapper): Update.
2123 (rwatch_command): Update.
2124 (awatch_command_wrapper): Update.
2125 (awatch_command): Update.
2126 (check_for_argument): New function.
2127 (_initialize_breakpoint): Update help text.
2128
f96b8fa0
UW
21292010-08-14 Ulrich Weigand <uweigand@de.ibm.com>
2130
2131 * arm-tdep.c (arm_push_dummy_call): Handle pointers to
2132 typedef'ed function types correctly.
2133
4eb54052
TT
21342010-08-13 Tom Tromey <tromey@redhat.com>
2135
2136 * python/python-internal.h (gdbpy_get_hook_function): Don't
2137 declare.
2138
44be957e
JK
21392010-08-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2140
ba720883 2141 * cli/cli-logging.c (logging_overwrite, logging_redirect): Make them
44be957e
JK
2142 static.
2143
76d8b686
KW
21442010-08-13 Ken Werner <ken.werner@de.ibm.com>
2145
2146 * python/python.c (gdbpy_solib_name): Remove the const qualifier of
2147 the format strings to be compatible with Python 2.4.
2148
8dedea02
VP
21492010-08-13 Vladimir Prus <vladimir@codesourcery.com>
2150
2151 Easier and more stubborn MI memory read commands.
2152
2153 * mi/mi-cmds.c (mi_cmds): Register data-read-memory-bytes
2154 and data-write-memory-bytes.
2155 * mi/mi-cmds.h (mi_cmd_data_read_memory_bytes)
2156 (mi_cmd_data_write_memory_bytes): New.
2157 * mi/mi-main.c (mi_cmd_data_read_memory): Use regular target_read.
2158 (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory_bytes):
2159 New.
2160 (mi_cmd_list_features): Add "data-read-memory-bytes" feature.
2161 * target.c (target_read_until_error): Remove.
2162 (read_whatever_is_readable, free_memory_read_result_vector)
2163 (read_memory_robust): New.
2164 * target.h (target_read_until_error): Remove.
2165 (struct memory_read_result, free_memory_read_result_vector)
2166 (read_memory_robust): New.
2167
1d9ec526
HZ
21682010-08-13 Hui Zhu <teawater@gmail.com>
2169
2170 * dwarf2read.c (load_partial_comp_unit): Initialize free_cu_cleanup.
2171 (read_comp_unit): Initialize back_to.
2172
98bfdba5
PA
21732010-08-12 Daniel Jacobowitz <dan@codesourcery.com>
2174 Pedro Alves <pedro@codesourcery.com>
2175
2176 * dwarf2read.c: Include "c-lang.h" and "valprint.h".
2177 (struct dwarf2_per_objfile) <reading_partial_symbols>: New field.
2178 (struct partial_die_info) <has_template_arguments>: New field.
2179 <num_attrs>: Change type to unsigned char.
2180 <building_fullname>: New field.
2181 (dwarf2_build_psymtabs_hard): Set reading_partial_symbols. Only
2182 allocate a CU if we don't have one already. Add a cleanup for the
2183 CU.
2184 (partial_die_full_name): Handle template arguments not in
2185 DW_AT_name.
2186 (dwarf2_psymtab_to_symtab): Clear reading_partial_symbols.
2187 (load_full_comp_unit): Only allocate a CU if we don't have one
2188 already.
2189 (do_ui_file_peek_last): New.
2190 (dwarf2_compute_name): Handle template parameters not in
2191 DW_AT_name.
2192 (read_comp_unit): Read and free abbrevs if not read yet.
2193 (load_partial_dies): Handle template arguments not in DW_AT_name.
2194 (find_partial_die): If we have a CU, but no a partial dies yet,
2195 also read in the CU.
2196 (dwarf2_const_value_attr): New, abstracted out from
2197 dwarf2_const_value.
2198 (dwarf2_const_value, dwarf2_const_value_data): Adjust to use
2199 dwarf2_const_value_attr.
2200 (determine_prefix): Detect and break loops created by RCVT's debug
2201 info.
2202 (maybe_queue_comp_unit): Bail out early if reading partial
2203 symbols.
2204 (follow_die_offset): Load full CU if we have no dies.
2205 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Make public.
2206 * dwarf2loc.h (dwarf2_evaluate_loc_desc): Declare.
2207
ca5c20b6 22082010-08-11 Tom Tromey <tromey@redhat.com>
889bf7c5 2209 Phil Muldoon <pmuldoon@redhat.com>
ca5c20b6
PM
2210
2211 * python/python.c (gdbpy_run_events): New function.
2212 (gdbpy_post_event): Likewise.
2213 (gdbpy_initialize_events): Likewise.
2214 (_initialize_python): Call gdbpy_initialize_events.
2215
7346b668
KW
22162010-08-11 Ken Werner <ken.werner@de.ibm.com>
2217
2218 * gdb/valarith.c (vector_binop): New function.
2219 (scalar_binop): Likewise.
2220 (value_binop): Call scalar_binop or vector_binop depending on the types.
2221 * gdb/eval.c (ptrmath_type_p): Return 0 in case of TYPE_VECTOR.
2222 (evaluate_subexp_with_coercion): Add vector check to not convert vectors
2223 to pointers.
2224 * gdb/value.c (coerce_array): Add vector check to not coerce vectors.
2225
62183e15
TT
22262010-08-11 Brad Roberts <braddr@puremagic.com>
2227
2228 * d-lang.c (extract_identifiers): Handle multiple digits.
2229
39d7b0e2
JK
22302010-08-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2231
2232 Code cleanup.
2233 * dummy-frame.c (dummy_frame_unwinder): Remove its static qualifier.
2234 Rename to dummy_frame_unwind.
2235 (dummy_frame_unwind): Remove.
2236 * dummy-frame.h (dummy_frame_unwind): Reference directly the struct.
2237 * frame-unwind.c (frame_unwind_init): Use address of
2238 dummy_frame_unwind and inline_frame_unwind.
2239 * frame.c (create_sentinel_frame): Use address of
2240 sentinel_frame_unwind.
2241 * inline-frame.c (inline_frame_unwinder): Rename to
2242 inline_frame_unwind.
2243 (inline_frame_unwind): Remove.
2244 * inline-frame.h (inline_frame_unwind): Reference directly the struct.
2245 * sentinel-frame.c (sentinel_frame_unwinder): Rename to
2246 sentinel_frame_unwind.
2247 (sentinel_frame_unwind): Remove.
2248 * sentinel-frame.h (sentinel_frame_unwind): Reference directly the
2249 struct.
2250
9f9a8002
JK
22512010-08-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2252
2253 Code cleanup.
2254 * frame-unwind.c (frame_unwind_find_by_frame): Remove the return type
2255 and returned value. New comment from frame-unwind.h.
2256 * frame-unwind.h (frame_unwind_find_by_frame): Remove the return type.
2257 Extend the comment.
2258 * frame.c (get_frame_id, frame_unwind_register_value)
2259 (create_new_frame, get_prev_frame_1, frame_unwinder_is)
2260 (get_frame_type, frame_unwind_arch): Do not use the return value of
2261 frame_unwind_find_by_frame.
2262
cb2e07a6 22632010-08-11 Phil Muldoon <pmuldoon@redhat.com>
889bf7c5 2264 Thiago Jung Bauermann <bauerman@br.ibm.com>
cb2e07a6
PM
2265 Tom Tromey <tromey@redhat.com>
2266
2267 * python/python.c (gdbpy_solib_address): New function.
2268 (gdbpy_decode_line): Likewise.
2269
c29c521f
TT
22702010-08-10 Tom Tromey <tromey@redhat.com>
2271
2272 Revert gdb-add-index addition:
2273 * Makefile.in (install-only): Don't install gdb-add-index.
2274 * gdb-add-index.sh: Remove.
2275
0c012db1
KB
22762010-08-09 Kevin Buettner <kevinb@redhat.com>
2277
2278 * remote-sim.c (gdbsim_xfer_inferior_memory): Replace
2279 `target_has_execution' check with `to_has_memory' check.
2280 (gdbsim_has_all_memory, gdbsim_has_memory): New functions.
2281 (init_gdbsym_ops): Initialize relevant fields of `gdbsim_ops'
2282 with `gdbsim_has_all_memory' and `gdbsim_has_memory'.
2283
db04efe6
KB
22842010-08-09 Kevin Buettner <kevinb@redhat.com>
2285
2286 * remote-sim.c (program_loaded, gdbsim_desc, remote_sim_ptid)
2287 (resume_siggnal, resume_step): Move these static globals...
2288 (struct sim_inferior_data): ...into this new struct.
2289 (sim_inferior_data_key, next_pid, sim_argv, gdbsim_is_open):
2290 New static globals.
2291 (gdb_callback, callbacks_initialized): Move these globals to
2292 a point earlier in the file.
2293 (check_for_duplicate_sim_descriptor, get_sim_inferior_data)
2294 (get_sim_inferior_data_by_ptid, sim_inferior_data_cleanup)
2295 (gdbsim_close_inferior, gdbsim_resume_inferior)
2296 (gdbsim_stop_inferior): New functions.
2297 (SIM_INSTANCE_NOT_NEEDED, SIM_INSTANCE_NEEDED, INITIAL_PID):
2298 New constants.
2299 (gdbsim_fetch_register, gdbsim_store_register, gdbsim_load)
2300 (gdbsim_create_inferior, gdbsim_open, gdbsim_close, gdbsim_resume)
2301 (gdbsim_stop, gdbsim_cntrl_c, gdbsim_wait)
2302 (gdbsim_xfer_inferior_memory, gdbsim_files_info)
2303 (gdbsim_mourn_inferior, simulator_command, gdbsim_thread_alive,
2304 (gdbsim_pid_to_str): Invoke `get_sim_inferior_data' to set
2305 new local variable `sim_data' in each of these functions. Use
2306 `sim_data' to reference former globals `program_loaded',
2307 `gdbsim_desc', `remote_sim_ptid', `resume_siggnal', and
2308 `resume_step'.
2309 (gdbsim_open): Remove local variable `argv'. Put results of call
2310 to `gdb_buildargv' in `sim_argv' rather than in `argv'. Don't
2311 make a cleanup for it. Free it though when a sim instance cannot
2312 be obtained.
2313 (gdbsim_close): Free sim_argv and null it out as appropriate.
2314 Close sim instances in all inferiors.
2315 (gdbsim_cntrl_c): Stop all inferiors.
2316 (gdbsim_wait):
2317 (_initialize_remote_sim): Initialize `sim_inferior_data_key'.
2318
e37fd15a
SW
23192010-08-09 Sami Wagiaalla <swagiaal@redhat.com>
2320
2321 * dwarf2read.c (new_symbol): Add symbol to variable list at end of
2322 function after symbol construction is complete.
2323 Do the same for template symbol addition to template_symbols list.
2324
45c58896
SW
23252010-08-09 Sami Wagiaalla <swagiaal@redhat.com>
2326
2327 * symtab.c (symbol_get_demangled_name): Remove assertion and
2328 return NULL when language_specific.cplus_specific is not initialized.
2329 * stabsread.c (define_symbol): Set the name before calling
2330 cp_scan_for_anonymous_namespaces.
2331
33e5013e
SW
23322010-08-09 Sami Wagiaalla <swagiaal@redhat.com>
2333
2334 * symtab.h: Renamed SYMBOL_INIT_LANGUAGE_SPECIFIC to
2335 SYMBOL_SET_LANGUAGE.
2336 (symbol_init_language_specific): Renamed to symbol_set_language.
2337 * symtab.c (symbol_init_language_specific): Removed redundant check
2338 for language_cplus.
2339 Renamed to symbol_set_language.
2340 * stabsread.c (define_symbol): Updated.
2341 (read_enum_type): Updated
2342 * psymtab.c (add_psymbol_to_bcache): Updated.
2343 * minsyms.c (install_minimal_symbols): Updated.
2344 * coffread.c (process_coff_symbol): SYMBOL_SET_LANGUAGE instead of
2345 SYMBOL_LANGUAGE to set the language.
2346 * minsyms.c (prim_record_minimal_symbol_full): Ditto.
2347 * mdebugread.c (new_symbol): Ditto.
2348 * cp-namespace.c (check_one_possible_namespace_symbol): Ditto.
2349 * dwarf2read.c (new_symbol_full): Ditto.
2350 * jv-lang.c (add_class_symbol): Ditto.
2351
5da1313b
JK
23522010-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2353
2354 * defs.h (make_cleanup_restore_uinteger, make_cleanup_restore_ui_file)
2355 (make_cleanup_restore_page_info)
2356 (set_batch_flag_and_make_cleanup_restore_page_info): New declarations.
2357 * gdbcmd.h (execute_command_to_string): New declaration.
2358 * python/python.c (struct restore_ui_file_closure, restore_ui_file)
2359 (make_cleanup_restore_ui_file): Move to utils.c
2360 (execute_gdb_command) <to_string>: Move ...
2361 * top.c (execute_command_to_string): ... here. Call
2362 set_batch_flag_and_make_cleanup_restore_page_info.
2363 * utils.c (make_cleanup_restore_integer): New source file blank line.
2364 (make_cleanup_restore_uinteger): New.
2365 (struct restore_ui_file_closure, do_restore_ui_file)
2366 (make_cleanup_restore_ui_file): Move here from python/python.c.
2367 (init_page_info) <batch_flag>
2368 (do_restore_page_info_cleanup, make_cleanup_restore_page_info)
2369 (set_batch_flag_and_make_cleanup_restore_page_info): New.
2370
c820c52a
PA
23712010-08-06 Maciej W. Rozycki <macro@codesourcery.com>
2372
2373 * thread.c (add_thread_silent): Use null_ptid instead of
2374 minus_one_ptid while getting rid of stale inferior_ptid.
2375
8da614df
CV
23762010-08-06 Corinna Vinschen <vinschen@redhat.com>
2377
2378 * dwarf2-frame.c (struct dwarf2_cie): Add ptr_size member.
2379 Throughout, call read_encoded_value with ptr_size rather than addr_size.
2380 (decode_frame_entry_1): Remove redundant setting of
2381 addr_size. Call gdbarch_dwarf2_addr_size rather than gdbarch_ptr_bit
2382 to determine addr_size in Dwarf versions < 4. Set ptr_size dependent
2383 on examined frame section. Add comment to explain why.
2384 * gdbarch.sh (dwarf2_addr_size): Define as variable. Add lengthy
2385 comment to explain usage.
2386 * gdbarch.c: Regenerate.
2387 * gdbarch.h: Regenerate.
2388
2389 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set dwarf2_addr_size to 4.
2390
e4195b40
JK
23912010-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2392
2393 Code cleanup.
2394 * varobj.c (varobj_create): Move variables fi, old_fi and block to
2395 a more inner block.
2396
a3217aa0
PA
23972010-08-05 Pedro Alves <pedro@codesourcery.com>
2398
2399 * configure.tgt (alpha*-*-linux*, am33_2.0*-*-linux*, frv-*-*)
2400 (hppa*-*-linux*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
2401 (microblaze*-linux-*, mips*-*-linux*, sh*-*-linux*)
2402 (sparc-*-linux*, sparc64-*-linux*, xtensa*-*-linux*): Add
2403 linux-tdep.o to gdb_target_obs.
2404
e2b4a699 24052010-08-05 Marc Khouzam <marc.khouzam@ericsson.com>
889bf7c5
PA
2406
2407 * mi/mi-main.c (mi_cmd_remove_inferior): Properly access first
e2b4a699 2408 argument.
889bf7c5 2409
50e8a0d5
HZ
24102010-08-05 Hui Zhu <teawater@gmail.com>
2411
2412 * mips-linux-tdep.c(regset.h): New include.
2413 (mips_supply_gregset_wrapper, mips_fill_gregset_wrapper,
2414 mips_supply_fpregset_wrapper, mips_fill_fpregset_wrapper,
2415 mips64_supply_gregset_wrapper, mips64_fill_gregset_wrapper,
2416 mips64_supply_fpregset_wrapper, mips64_fill_fpregset_wrapper,
2417 mips_linux_regset_from_core_section): New functions.
2418 (fetch_core_registers, regset_core_fns): Deleted.
2419 (mips_linux_init_abi): Add mips_linux_regset_from_core_section.
2420 Deleted regset_core_fns.
2421 * mips-tdep.c(mips_gdbarch_init): Initialize tdep->gregset,
2422 tdep->gregset64, tdep->fpregset and tdep->fpregset64.
2423 * mips-tdep.h(gdbarch_tdep): Add gregset, gregset64, fpregset
2424 and fpregset64.
2425
70728992
PA
24262010-08-04 Pedro Alves <pedro@codesourcery.com>
2427
2428 * s390-tdep.c: Include linux-tdep.h.
2429 (s390_gdbarch_init): Call linux_init_abi.
2430
a5ee0f0c
PA
24312010-08-04 Pedro Alves <pedro@codesourcery.com>
2432
2433 * corelow.c (core_pid_to_str): Default to using normal_pid_to_str
2434 instead of printing "Thread" here.
2435 * linux-tdep.c: Include inferior.h.
2436 (linux_core_pid_to_str): New.
2437 (linux_init_abi): New.
2438 * linux-tdep.h (linux_init_abi): Declare.
2439 * alpha-linux-tdep.c: Include linux-tdep.h.
2440 (alpha_linux_init_abi): Call linux_init_abi.
2441 * amd64-linux-tdep.c (amd64_linux_init_abi): Call linux_init_abi.
2442 * arm-linux-tdep.c (arm_linux_init_abi): Call linux_init_abi.
2443 * frv-linux-tdep.c: Include linux-tdep.h
2444 (frv_linux_init_abi): Call linux_init_abi.
2445 * hppa-linux-tdep.c: Include linux-tdep.h
2446 (hppa_linux_init_abi): Call linux_init_abi.
2447 * i386-linux-tdep.c (i386_linux_init_abi): Call linux_init_abi.
2448 * ia64-linux-tdep.c: Include linux-tdep.h.
2449 (ia64_linux_init_abi): Call linux_init_abi.
2450 * m32r-linux-tdep.c: Include linux-tdep.h.
2451 (m32r_linux_init_abi): Call linux_init_abi.
2452 * m68klinux-tdep.c: Include linux-tdep.h.
2453 (m68k_linux_init_abi): Call linux_init_abi.
2454 * microblaze-linux-tdep.c: Include linux-tdep.h.
2455 (microblaze_linux_init_abi): Call linux_init_abi.
2456 * mips-linux-tdep.c: Include linux-tdep.h.
2457 (mips_linux_init_abi): Call linux_init_abi.
2458 * mn10300-linux-tdep.c: Include linux-tdep.h.
2459 (am33_linux_init_osabi): Call linux_init_abi. Rename the
2460 'gdbinfo' parameter to 'info'.
2461 * ppc-linux-tdep.c: Include linux-tdep.h.
2462 (ppc_linux_init_abi): Call linux_init_abi.
2463 * sh-linux-tdep.c: Include linux-tdep.h.
2464 (sh_linux_init_abi): Call linux_init_abi.
2465 * sparc-linux-tdep.c: Include linux-tdep.h.
2466 (sparc32_linux_init_abi): Call linux_init_abi.
2467 * sparc64-linux-tdep.c: Include linux-tdep.h.
2468 (sparc64_linux_init_abi): Call linux_init_abi.
2469 * xtensa-linux-tdep.c: Include linux-tdep.h.
2470 (xtensa_linux_init_abi): Call linux_init_abi.
2471 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): New.
2472 (i386_cygwin_init_abi): Install it as gdbarch_core_pid_to_str
2473 callback.
2474
bc043ef3
DE
24752010-08-03 Doug Evans <dje@google.com>
2476
2477 * breakpoint.c (bpdisp_text): Constify bpdisps.
2478 * solib-svr4.c (solib_break_names): Constify.
2479 (bkpt_names, main_name_list): Constify.
2480 (match_main): Constify soname arg.
63cdd227
DE
2481 (bfd_lookup_symbol): Remove unnecessary forward decl.
2482 Constify symname arg.
bc043ef3
DE
2483 (enable_break): Constify bkpt_namep.
2484 * symtab.c (search_symbols): Constify types, types2, types3, types4.
2485 (symtab_symbol_info): Constify classnames.
2486
585d1eb8
PM
24872010-08-03 Phil Muldoon <pmuldoon@redhat.com>
2488
2489 * NEWS: Document Python value inferior function calls.
2490
2de00c64
DE
24912010-08-02 Doug Evans <dje@google.com>
2492
2493 * dwarf2read.c (dwarf_attr_name): Add DW_AT_GNU_odr_signature.
2494
02d868e8
PP
24952010-07-31 Paul Pluzhnikov <ppluzhnikov@google.com>
2496
2497 * linux-thread-db.c (libthread_db_debug): New variable.
2498 (thread_db_find_new_threads_silently): Control verbosity with it.
2499 (try_thread_db_load_1, try_thread_db_load): Likewise.
2500 (find_new_threads_once): Likewise.
2501 (_initialize_thread_db): Set/show it.
2502
a19cae16
JK
25032010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
2504
2505 * common/signals.c (signals): Move the content to signals.def.
2506 Include it. Remove the INDENT comments.
2507
c2bbed2a
TT
25082010-07-30 Tom Tromey <tromey@redhat.com>
2509
2510 * Makefile.in (install-only): Install gdb-add-index.
2511 * gdb-add-index.sh: New file.
2512
f32b2f09
CR
25132010-07-31 Renquan Cheng <crq@gcc.gnu.org>
2514
2515 * MAINTAINERS: Add myself for write after approval privileges.
2516
1276c759
JK
25172010-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
2518
2519 * symfile.c (addr_section_name): New function.
2520 (addrs_section_compar): Use it.
2521 (addr_info_make_relative): Use it. Move variable sect_name into a more
2522 inner block. Make ".dynbss" and ".sdynbss" checks more strict.
2523
420697bb
TT
25242010-07-30 Tom Tromey <tromey@redhat.com>
2525
2526 * configure: Rebuild.
2527 * configure.ac: Add missing case for Python 2.7.
2528
d0d99561
DD
25292010-07-29 DJ Delorie <dj@redhat.com>
2530
2531 * rx-tdep.c (rx_analyze_prologue): Don't require branches to have
2532 conditions.
2533
0b29bdde
PA
25342010-07-29 Pedro Alves <pedro@codesourcery.com>
2535
2536 * PROBLEMS: Remove mention of all problems.
2537
110ed339
PA
25382010-07-28 Pedro Alves <pedro@codesourcery.com>
2539
2540 PR build/11848
2541 * configure.ac: Check for wresize.
2542 * configure, config.in: Regenerate.
2543 * tui/tui-win.c (make_visible_with_new_height): Wrap wresize call
2544 with HAVE_WRESIZE.
2545
326fd672
TT
25462010-07-28 Tom Tromey <tromey@redhat.com>
2547
2548 PR python/11060:
2549 * python/py-type.c (typy_legacy_template_argument): New function,
2550 extracted from typy_template_argument.
2551 (typy_template_argument): Use TYPE_TEMPLATE_ARGUMENT. Return a
2552 value when needed.
2553
4ac8c4da
TT
25542010-07-28 Oleg Nesterov <oleg@redhat.com>
2555
2556 * remote.c (readchar): Call pop_target in case of SERIAL_ERROR.
2557
053315c2
TT
25582010-07-27 Tom Tromey <tromey@redhat.com>
2559
2560 * dwarf2read.c (dwarf2_const_value_data): Never sign extend.
2561
3ce3b1ba
PA
25622010-07-28 Daniel Jacobowitz <dan@codesourcery.com>
2563
2564 * dwarf2read.c (read_subroutine_type): Improve THIS detection,
2565 handling DW_AT_object_pointer, and workaround GCC PR 43053.
2566
2bb4f988
TT
25672010-07-28 Tom Tromey <tromey@redhat.com>
2568
2569 * Makefile.in (HFILES_NO_SRCDIR): Remove link-warning.h.
2570
74232302
JB
25712010-07-28 Joel Brobecker <brobecker@adacore.com>
2572
2573 * remote.c (remote_download_tracepoint): Add missing gettext markup.
2574 * tracepoint.c (parse_static_tracepoint_marker_definition): Likewise.
2575
385d04dc
JB
25762010-07-28 Joel Brobecker <brobecker@adacore.com>
2577
2578 * breakpoint.c (breakpoint_re_set_one): Move call to set_language
2579 down, just before the block that parse the breakpoint addr_string.
2580
34eaf542
TT
25812010-07-28 Tom Tromey <tromey@redhat.com>
2582
2583 PR c++/9946:
2584 * symfile.c (reread_symbols): Clear template_symbols.
2585 * symtab.h (struct symbol) <is_cplus_template_function>: New
2586 field.
2587 (SYMBOL_IS_CPLUS_TEMPLATE_FUNCTION): New macro.
2588 (struct template_symbol): New.
2589 * symtab.c (lookup_symbol_aux_local): Use
2590 cp_lookup_symbol_imports_or_template.
2591 * objfiles.h (struct objfile) <template_symbols>: New field.
2592 * objfiles.c (relocate_one_symbol): New function.
2593 (objfile_relocate1): Use it. Relocate isolated symbols.
2594 * gdbtypes.h (struct cplus_struct_type) <n_template_arguments,
2595 template_arguments>: New fields.
2596 (TYPE_N_TEMPLATE_ARGUMENTS): New macro.
2597 (TYPE_TEMPLATE_ARGUMENTS): Likewise.
2598 (TYPE_TEMPLATE_ARGUMENT): Likewise.
2599 (lookup_typename): Update.
2600 * gdbtypes.c (lookup_typename): Constify "block" argument.
2601 * dwarf2read.c: Include vec.h.
2602 (symbolp): New typedef.
2603 (read_func_scope): Read template arguments. Allocate a
2604 template_symbol when needed.
2605 (read_structure_type): Read template arguments.
2606 (new_symbol_full): New function, from new_symbol. Handle
2607 DW_TAG_template_type_param and DW_TAG_template_value_param.
2608 (new_symbol): Rewrite as wrapper.
2609 * cp-support.h (cp_lookup_symbol_imports_or_template): Declare.
2610 * cp-namespace.c: Include language.h.
2611 (search_symbol_list): New function.
2612 (cp_lookup_symbol_imports_or_template): Likewise.
2613
d27b3be4
PA
26142010-07-28 Balazs Kezes <rlblaster@gmail.com>
2615
2616 * tui/tui-win.c (make_visible_with_new_height): Resize and move
2617 the command window to the new size and position.
2618
0036e657
PA
26192010-07-28 Balazs Kezes <rlblaster@gmail.com>
2620
a782f43e 2621 * tui/tui-win.c (tui_resize_all): Update the locator's origin's
0036e657
PA
2622 coordinates.
2623
36900355
PA
26242010-07-28 Balazs Kezes <rlblaster@gmail.com>
2625
a782f43e 2626 * tui/tui-io.c (tui_handle_resize_during_io): Call tui_resize_all
36900355 2627 after a detecting a resize.
a782f43e 2628 * tui/tui-win.c (tui_resize_all): Remove tui_set_win_resized_to
36900355
PA
2629 call.
2630
db5e03ae
PA
26312010-07-28 Pedro Alves <pedro@codesourcery.com>
2632
2633 * configure.ac: Check for resize_term.
2634 * configure, config.in: Regenerate.
2635
b71fff68
JB
26362010-07-27 Joel Brobecker <brobecker@adacore.com>
2637
2638 * MAINTAINERS (Write After Approval): Reorder a couple of entries.
2639
9b1c24c8
PA
26402010-07-27 Daniel Jacobowitz <dan@codesourcery.com>
2641
2642 * dwarf2read.c (read_string): Rename to ...
2643 (read_direct_string): ... this.
2644 (skip_one_die, read_attribute_value, dwarf_decode_line_header)
2645 (dwarf_decode_lines, dwarf_decode_macros): Adjust.
2646
00390b84
JK
26472010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2648
2649 * linux-nat.c (linux_nat_lp_status_is_event): New function.
2650 (count_events_callback, select_event_lwp_callback)
2651 (cancel_breakpoints_callback, linux_nat_wait_1): Use it.
2652
26ab7092
JK
26532010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2654
2655 * ia64-linux-nat.c (ia64_linux_status_is_event): New function.
2656 (_initialize_ia64_linux_nat): Install it.
2657 * linux-nat.c (sigtrap_is_event, linux_nat_status_is_event)
2658 (linux_nat_set_status_is_event): New.
2659 (stop_wait_callback, count_events_callback, select_event_lwp_callback)
2660 cancel_breakpoints_callback, linux_nat_filter_event)
2661 (linux_nat_wait_1): Use linux_nat_status_is_event.
2662 * linux-nat.h (linux_nat_set_status_is_event): New prototype.
2663
283e6a52
TT
26642010-07-27 Tom Tromey <tromey@redhat.com>
2665
2666 * NEWS: Mention labels, .gdb_index.
2667
53a71c06
CR
26682010-07-28 CHENG Renquan <rqcheng@smu.edu.sg>
2669
2670 * cli/cli-cmds.c (disassemble_command): Add support of disassemble
3422f666 2671 "start,+length" form of arguments.
53a71c06
CR
2672 * NEWS: Add "Changed commands" (disassemble) section for "Changes
2673 since GDB 7.1"; and merge two separated paragraphs of disassemble
2674 description in "Changes in GDB 7.0".
2675
c63a1f86
JK
26762010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2677
2678 * top.c (input_from_terminal_p): Return 0 on BATCH_FLAG.
2679 * utils.c (defaulted_query): Do not explicitly check for BATCH_FLAG.
2680 (fputs_maybe_filtered): Do not do filtering also on
2681 ! INPUT_FROM_TERMINAL_P.
2682
abebb8b0
JB
26832010-07-27 Joel Brobecker <brobecker@adacore.com>
2684
2685 * dwarf2read.c (dw2_find_pc_sect_symtab): Remove trailing newline
2686 in warning message.
2687
5374244e
PM
26882010-07-27 Phil Muldoon <pmuldoon@redhat.com>
2689
2690 * python/py-value.c (valpy_call): New Function.
2691
ac0b195c
KW
26922010-07-27 Ken Werner <ken.werner@de.ibm.com>
2693
889bf7c5 2694 * dwarf2read.c (dwarf2_read_index): Initialize the types_list and
ac0b195c
KW
2695 types_list_elements variables.
2696
09d8bd00
TT
26972010-07-26 Tom Tromey <tromey@redhat.com>
2698
2699 * dwarf2loc.c (locexpr_describe_location_piece): Also recognize
2700 TLS with DW_OP_const4u or DW_OP_const8u.
2701
9fe70b4f
TJB
27022010-07-26 Thiago Jung Bauermann <bauerman@br.ibm.com>
2703
2704 * ppc-linux-nat.c (store_vsx_register): Use PTRACE_GETVSXREGS to get
2705 VSX registers contents.
2706
caac4577
JG
27072010-07-26 Jerome Guitton <guitton@adacore.com>
2708
2709 * dwarf2read.c (add_partial_symbol): Do not add a global variable if
2710 its adress is null. Add comment to explain why.
2711 (new_symbol): Ditto.
2712
857d11d0
JK
27132010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2714
2715 * linux-nat.c (linux_nat_do_thread_registers): Convert STOP_SIGNAL to
2716 the host signal first.
2717
1fd400ff
TT
27182010-07-23 Tom Tromey <tromey@redhat.com>
2719
2720 * dwarf2read.c (struct dwarf2_per_objfile) <n_type_comp_units,
2721 type_comp_units>: New fields.
2722 (dw2_get_cu): New function.
2723 (create_cus_from_index): Remove unused argument.
2724 (create_signatured_type_hash_from_index): New function.
2725 (create_addrmap_from_index): Update.
2726 (dwarf2_read_index): Handle version 2.
2727 (dw2_find_last_source_symtab, dw2_forget_cached_source_info)
2728 (dw2_lookup_symtab, dw2_do_expand_symtabs_matching)
2729 (dw2_print_stats, dw2_expand_all_symtabs)
2730 (dw2_expand_symtabs_with_filename, dw2_find_symbol_file)
2731 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Update.
2732 (dwarf2_initialize_objfile): Call create_debug_types_hash_table.
2733 (allocate_signatured_type_hash_table): New function.
2734 (add_signatured_type_cu_to_list): Likewise.
2735 (create_debug_types_hash_table): Use them. Set type_comp_units.
2736 (read_signatured_type): Ensure section data is available.
2737 (add_address_entry): Don't record empty ranges.
2738 (struct signatured_type_index_data): New.
2739 (write_one_signatured_type): New function.
2740 (write_psymtabs_to_index): Write type CUs.
2741 (save_gdb_index_command): Update comment.
2742 (process_type_comp_unit): Move inititalization of
2743 from_debug_types...
2744 (create_debug_types_hash_table): ... here.
2745
3a674486
JK
27462010-07-23 Jan Kratochvil <jan.kratochvil@redhat.com>
2747
2748 * gdb_gcore.sh (tmpfile): Remove the variable, its initialization,
2749 cleanup and generating of gdb script to it.
2750 (gdb): Use redirection from /dev/null. Use --nx. Turn off pagination
2751 and terminal size. Convert $tmpfile to a series of -ex-es.
2752
54ec275a
KS
27532010-07-23 Keith Seitz <keiths@redhat.com>
2754
2755 * symtab.c (basic_lookup_transparent_type): Call pre-expand
2756 hook for STATIC_BLOCK types, too.
2757
8fd447e6
KS
27582010-07-23 Keith Seitz <keiths@redhat.com>
2759
2760 * dwarf2read.c: Remove unused typedef dwarf2_cu_per_cu_data_ptr
2761 and vector definition.
2762
25b72dde
JK
27632010-07-23 Jan Kratochvil <jan.kratochvil@redhat.com>
2764
2765 * linux-nat.c (cancel_breakpoint): Remove unused forward declaration.
2766
96d19272
JK
27672010-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2768
2769 * dwarf2read.c: Include completer.h.
2770 (save_gdb_index_command): Use matching usage command name.
2771 (_initialize_dwarf2_read): New variable c, initialize it by add_cmd.
2772 Set filename_completer for it.
2773
ca1f3406
TT
27742010-07-22 Tom Tromey <tromey@redhat.com>
2775
2776 * dwarf2read.c (create_debug_types_hash_table): Set objfile on
2777 type signature's per-CU data.
2778
ba25b921
PA
27792010-07-22 Pedro Alves <pedro@codesourcery.com>
2780
2781 * NEWS: Mention target reported shared libraries support by
2782 default.
2783
23bd0f7c
PA
27842010-07-21 Pedro Alves <pedro@codesourcery.com>
2785
2786 PR symtab/11827
2787
2788 Revert:
2789 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
2790 * dwarf2read.c (process_die): Also allow DW_TAG_const_type
2791 and DW_TAG_volatile_type.
2792 (new_symbol): Likewise.
2793
883df6dd
SW
27942010-07-21 Sami Wagiaalla <swagiaal@redhat.com>
2795
2796 * eval.c (evaluate_subexp_standard): Disabled evaluation of C++
2797 function symbols before overload resolution.
2798
269b11a2
PA
27992010-07-21 Pedro Alves <pedro@codesourcery.com>
2800
2801 * breakpoint.c (bptype_string): New, abstracted out from
2802 print_one_breakpoint_location.
2803 (print_one_breakpoint_location): Adjust.
2804 (breakpoint_1): Adjust the type column width dynamically.
2805
569b05a5
JK
28062010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2807
2808 * symfile.c (find_separate_debug_file_by_debuglink): Remove
2809 a gdb_assert call, new comment.
2810
ad34eb2f
JK
28112010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2812
2813 * linux-nat.c (linux_handle_extended_wait): Handle case when
2814 event == PTRACE_EVENT_CLONE && stopping && WSTOPSIG (status) != SIGSTOP.
2815
33355866
JK
28162010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2817
2818 Code cleanup.
2819 * linux-nat.c (linux_nat_wait_1): Reset STATUS after calling
2820 linux_nat_wait_1. Use always LP->STATUS afterwards.
2821
26590820
HZ
28222010-07-20 Hui Zhu <teawater@gmail.com>
2823
2824 * inf-ptrace.c (inf_ptrace_create_inferior): Initialize back_to.
2825 (inf_ptrace_attach): Ditto.
2826
c0edd9ed
JK
28272010-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2828
2829 Make core files the process_stratum.
2830 * corefile.c (core_target): New variable.
2831 (core_file_command): Remove variable t, use core_target.
2832 * corelow.c (core_ops): Make it static.
2833 (init_core_ops): Change to process_stratum. Initialize CORE_TARGET.
2834 * defs.h (make_cleanup_unpush_target): New prototype.
2835 * gdbarch.h: Regenerate.
2836 * gdbarch.sh (core_pid_to_str): Remove core_stratum from its comment.
2837 * gdbcore.h (core_target): New declaration.
2838 * inf-ptrace.c (inf_ptrace_create_inferior, inf_ptrace_attach): New
2839 variables ops_already_pushed and back_to. Use push_target,
2840 make_cleanup_unpush_target and discard_cleanups calls.
2841 * record.c (record_open): Replace core_stratum by a core_bfd check.
2842 * target.c (target_is_pushed): New function.
2843 (find_core_target): Remove.
2844 * target.h (enum strata) <core_stratum>: Remove.
2845 (target_is_pushed): New declaration.
2846 (find_core_target): Remove declaration.
2847 * tracepoint.c (init_tfile_ops) <to_stratum>: Remove comment.
2848 * utils.c (do_unpush_target, make_cleanup_unpush_target): New functions.
2849
f02253f1
HZ
28502010-07-19 Hui Zhu <teawater@gmail.com>
2851
2852 * breakpoint.c (single_step_breakpoints_inserted): New
2853 function.
2854 * breakpoint.h (single_step_breakpoints_inserted): Extern.
2855 * infrun.c (maybe_software_singlestep): Add check code.
2856 * record.c (record_resume): Add code for software single step.
2857 (record_wait): Ditto.
2858
78768c4a
JK
28592010-07-18 Jan Kratochvil <jan.kratochvil@redhat.com>
2860
2861 * linux-nat.c (linux_handle_extended_wait): Move variable new_lp into
2862 a more inner block. Remove its unused declaration initializer.
2863
431e49aa
TJB
28642010-07-16 Thiago Jung Bauermann <bauerman@br.ibm.com>
2865
2866 * NEWS: Mention support for the new ptrace interface and hardware
2867 accelerated watchpoint conditions on powerpc-linux.
2868
bd91e7ae
OS
28692010-07-16 Ozkan Sezer <sezeroz@gmail.com>
2870
2871 * target.c (debug_to_insert_breakpoint): Instead of casting to unsigned
2872 long and %ld, use core_addr_to_string() and %s to print CORE_ADDR vars
2873 and host_address_to_string() and %s for pointers.
2874 (debug_to_remove_breakpoint): Likewise.
2875 (debug_to_region_ok_for_hw_watchpoint): Likewise.
2876 (debug_to_can_accel_watchpoint_condition): Likewise.
2877 (debug_to_stopped_data_address): Likewise.
2878 (debug_to_watchpoint_addr_within_range): Likewise.
2879 (debug_to_insert_hw_breakpoint): Likewise.
2880 (debug_to_remove_hw_breakpoint): Likewise.
2881 (debug_to_insert_watchpoint): Likewise.
2882 (debug_to_remove_watchpoint): Likewise.
2883
29df156d
SW
28842010-07-16 Sami Wagiaalla <swagiaal@redhat.com>
2885
2886 * symtab.h (symbol_set_demangled_name): Now takes an optional objfile*
2887 argument.
2888 (cplus_specific): New struct.
2889 * symtab.c (symbol_set_demangled_name): Updated.
2890 Use cplus_specific for cplus symbols.
2891 (symbol_get_demangled_name): Retrive the name from the cplus_specific
2892 struct for cplus symbols.
2893 (symbol_init_language_specific): Set cplus_specific for cplus symbols.
2894 (symbol_set_names): Pass objfile to symbol_set_demangled_name.
2895 * symtab.c (symbol_init_cplus_specific): New function.
2896
b250c185
SW
28972010-07-16 Sami Wagiaalla <swagiaal@redhat.com>
2898
2899 * symtab.h (symbol_set_demangled_name): New function.
2900 (symbol_get_demangled_name): New function.
2901 * symtab.c (symbol_set_demangled_name): New function.
2902 (symbol_get_demangled_name): New function.
2903 (symbol_init_language_specific): Use demangled_name setter and getter.
2904 (symbol_set_names): Ditto.
2905 (symbol_natural_name): Ditto.
2906 (symbol_demangled_name): Ditto.
2907 * dwarf2read.c (new_symbol): Ditto.
2908
afa16725
SW
29092010-07-16 Sami Wagiaalla <swagiaal@redhat.com>
2910
2911 * symtab.h: Renamed cplus_specific to mangled_lang.
2912 * symtab.c (symbol_init_language_specific): Updated.
2913 (symbol_set_names): Updated.
2914 (symbol_natural_name): Updated.
2915 (symbol_demangled_name): Updated.
2916 * ada-lang.c (ada_decode_symbol): Updated.
2917 * dwarf2read.c (new_symbol): Updated.
2918
3cbaedff
KW
29192010-07-14 Ken Werner <ken.werner@de.ibm.com>
2920
2921 * valops.c (value_assign): Do not call to value_coerce_to_target.
2922 (value_must_coerce_to_target): Return 0 in case of TYPE_VECTOR.
2923
c932f1be
KW
29242010-07-14 Ken Werner <ken.werner@de.ibm.com>
2925
2926 * MAINTAINERS: Add myself for write after approval privileges.
2927
91158a56
TT
29282010-07-13 Emmanuel Thomé <Emmanuel.Thome@gmail.com>
2929
2930 * c-valprint.c (c_val_print): Add embedded_offset to address in
2931 call to val_print_array_elements.
2932
b3b272e1
TT
29332010-07-13 Tom Tromey <tromey@redhat.com>
2934
2935 * dwarf2read.c (dwarf2_read_index): Correctly set 'total_size'.
2936
bb3fa9d0
TT
29372010-07-13 Tom Tromey <tromey@redhat.com>
2938
2939 * dwarf2read.c (dwarf2_per_cu_text_offset): Fix reference to
2940 objfile.
2941
dd786858
TT
29422010-07-13 Tom Tromey <tromey@redhat.com>
2943
2944 * symfile.c (set_initial_language): Update.
2945 (deduce_language_from_filename): Argument type now const.
2946 * symtab.h (find_main_filename): Update.
2947 (deduce_language_from_filename): Update.
2948 * symtab.c (find_main_filename): Make result const.
2949 * dwarf2read.c (dw2_find_symbol_file): Change return type.
2950 * psymtab.c (find_symbol_file_from_partial): Change return type.
2951 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
2952 Make result const.
2953
9291a0cd
TT
29542010-07-13 Tom Tromey <tromey@redhat.com>
2955
2956 * breakpoint.c (save_cmdlist): No longer static.
2957 * gdbcmd.h (save_cmdlist): Declare.
2958 * symfile.c (symbol_file_add_with_addrs_or_offsets): Set
2959 OBJF_READNOW on objfile if readnow_symbol_files.
2960 * elfread.c (elf_symfile_read): Use dwarf2_initialize_objfile.
2961 (elf_sym_fns_gdb_index): New global.
2962 * dwarf2read.c: Include exceptions.h.
2963 (offset_type): New.
2964 (struct mapped_index): New.
2965 (dwarf2_per_cu_data_ptr): New typedef.
2966 (struct dwarf2_per_objfile) <using_index, index_table, gdb_index>:
2967 New fields.
2968 (GDB_INDEX_SECTION): New define.
2969 (struct dwarf2_per_cu_quick_data): New.
2970 (struct dwarf2_per_cu_data) <objfile>: New field.
2971 <psymtab>: Removed.
2972 <v>: New field.
2973 (byte_swap): New function.
2974 (MAYBE_SWAP): New macro.
2975 (INDEX_SUFFIX): New macro.
2976 (dw2_do_instantiate_symtab): New function.
2977 (dw2_instantiate_symtab): Likewise.
2978 (create_cus_from_index): Likewise.
2979 (create_addrmap_from_index): Likewise.
2980 (mapped_index_string_hash): Likewise.
2981 (find_slot_in_mapped_hash): Likewise.
2982 (dwarf2_read_index): Likewise.
2983 (dw2_setup): Likewise.
2984 (dw2_require_line_header): Likewise.
2985 (dw2_require_full_path): Likewise.
2986 (dw2_find_last_source_symtab): Likewise.
2987 (dw2_forget_cached_source_info): Likewise.
2988 (dw2_lookup_symtab): Likewise.
2989 (dw2_lookup_symbol): Likewise.
2990 (dw2_do_expand_symtabs_matching): Likewise.
2991 (dw2_pre_expand_symtabs_matching): Likewise.
2992 (dw2_print_stats): Likewise.
2993 (dw2_dump): Likewise.
2994 (dw2_relocate): Likewise.
2995 (dw2_expand_symtabs_for_function): Likewise.
2996 (dw2_expand_all_symtabs): Likewise.
2997 (dw2_expand_symtabs_with_filename): Likewise.
2998 (dw2_find_symbol_file): Likewise.
2999 (dw2_map_ada_symtabs): Likewise.
3000 (dw2_expand_symtabs_matching): Likewise.
3001 (dw2_find_pc_sect_symtab): Likewise.
3002 (dw2_map_symbol_names): Likewise.
3003 (dw2_map_symbol_filenames): Likewise.
3004 (dw2_has_symbols): Likewise.
3005 (dwarf2_gdb_index_functions): New global.
3006 (dwarf2_initialize_objfile): New function.
3007 (process_psymtab_comp_unit): Update.
3008 (add_partial_subprogram): Likewise.
3009 (dwarf2_psymtab_to_symtab): Likewise.
3010 (psymtab_to_symtab_1): Use dw2_do_instantiate_symtab.
3011 (process_full_comp_unit): Update.
3012 (find_file_and_directory): New function.
3013 (read_file_scope): Use find_file_and_directory.
3014 (dwarf2_per_cu_objfile): Update.
3015 (dwarf2_per_cu_addr_size): Update.
3016 (dwarf2_per_cu_offset_size): Update.
3017 (dwarf2_free_objfile): Free the index, if needed.
3018 (dwarf2_per_objfile_free): Unmap the index, if needed.
3019 (struct strtab_entry): New.
3020 (hash_strtab_entry): New function.
3021 (eq_strtab_entry): Likewise.
3022 (create_strtab): Likewise.
3023 (add_string): Likewise.
3024 (struct symtab_index_entry): New.
3025 (struct mapped_symtab): New.
3026 (hash_symtab_entry): New function.
3027 (eq_symtab_entry): Likewise.
3028 (delete_symtab_entry): Likewise.
3029 (create_index_table): Likewise.
3030 (create_mapped_symtab): Likewise.
3031 (cleanup_mapped_symtab): Likewise.
3032 (find_slot): Likewise.
3033 (hash_expand): Likewise.
3034 (add_index_entry): Likewise.
3035 (add_indices_to_cpool): Likewise.
3036 (write_hash_table): Likewise.
3037 (add_address_entry): Likewise.
3038 (write_psymbols): Likewise.
3039 (write_obstack): Likewise.
3040 (unlink_if_set): Likewise.
3041 (write_psymtabs_to_index): Likewise.
3042 (save_gdb_index_command): Likewise.
3043 (_initialize_dwarf2_read): Install "save gdb-index"
3044 command.
3045 (create_all_comp_units): Initialize 'objfile' field of CU.
3046 (dwarf2_locate_sections): Check for .gdb_index.
3047 * psymtab.h (dwarf2_gdb_index_functions): Declare.
3048 * symfile.h (dwarf2_initialize_objfile): Declare.
3049
58b6ab13
TT
30502010-07-13 Tom Tromey <tromey@redhat.com>
3051
3052 * symtab.c (lookup_symbol_aux_symtabs): Call pre-expand hook.
3053 (basic_lookup_transparent_type): Likewise.
3054 * symfile.h (struct quick_symbol_functions)
3055 <pre_expand_symtabs_matching>: New field.
3056 * psymtab.c (pre_expand_symtabs_matching_psymtabs): New function.
3057 (psym_functions): Update.
3058
0f5238ed
TT
30592010-07-13 Tom Tromey <tromey@redhat.com>
3060
3061 PR breakpoints/8357:
3062 * symtab.h (domain_enum_tag) <LABEL_DOMAIN>: Update comment.
3063 * linespec.c (decode_line_1): Update comment. Call decode_label.
3064 (decode_label): New function.
3065 (symbol_found): Handle LOC_LABEL.
3066 * dwarf2read.c (new_symbol) <DW_TAG_label>: Set symbol's type and
3067 domain. Call add_symbol_to_list.
3068
9aa1f1e3
TT
30692010-07-13 Tom Tromey <tromey@redhat.com>
3070
3071 * dwarf2loc.h (dwarf2_per_cu_text_offset): Declare.
3072 * dwarf2loc.c (find_location_expression): Use
3073 dwarf2_per_cu_text_offset.
3074 (dwarf2_evaluate_loc_desc): Likewise.
3075 (dwarf2_loc_desc_needs_frame): Likewise.
3076 (compile_dwarf_to_ax): Likewise.
3077 (loclist_describe_location): Likewise.
3078 * dwarf2read.c (dwarf2_per_cu_text_offset): New function.
3079 (dwarf2_per_cu_objfile): Update comment.
3080
953ac07e
JK
30812010-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
3082
3083 * dwarf2read.c (read_subrange_type): Call read_subrange_type.
3084 * p-lang.c (pascal_printstr): Likewise.
3085
f04e4012
TT
30862010-07-09 Tom Tromey <tromey@redhat.com>
3087
3088 * python/py-prettyprint.c (gdbpy_get_display_hint): Don't use
3089 'hint' if it is NULL.
3090
f4dfd9c0
HZ
30912010-07-09 Hui Zhu <teawater@gmail.com>
3092
3093 * source.c (print_source_lines_base): Add check for noprint.
3094
7e6e39e5
JB
30952010-07-08 Joel Brobecker <brobecker@adacore.com>
3096
3097 * python/python-config.py: Resync with Python 2.7 version of this
3098 script.
3099
76b8507d
JB
31002010-07-08 Joel Brobecker <brobecker@adacore.com>
3101
3102 * NEWS: Fix typo in section name (s/GDB 7.1/GDB 7.2).
3103
797054e6
JB
31042010-07-07 Joel Brobecker <brobecker@adacore.com>
3105
3106 * NEWS: Create a new section for the next release branch.
3107 Rename the section of the current branch, now that it has
3108 been cut.
3109
c80befee 31102010-07-07 Joel Brobecker <brobecker@adacore.com>
3111
3112 GDB 7.2 branch created (branch timestamp: 2010-07-07 17:00 UTC)
3113 * version.in: Bump version to 7.2.50.20100707-cvs.
3114
ac56253d
TT
31152010-07-07 Tom Tromey <tromey@redhat.com>
3116
3117 * dwarf2read.c (dwarf2_const_value) <DW_form_addr>: Create a
3118 LOC_COMPUTED symbol.
3119 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Set new field.
3120 (dwarf2_loc_desc_needs_frame): Likewise.
3121 (compile_dwarf_to_ax) <DW_OP_addr>: Use offset.
3122 * dwarf2expr.h (struct dwarf_expr_context) <offset>: New field.
3123 * dwarf2expr.c (execute_stack_op) <DW_OP_addr>: Use offset.
3124 * dwarf2-frame.c (execute_stack_op): Set 'offset' field. Add
3125 'offset' argument.
3126 (struct dwarf2_frame_cache) <text_offset>: New field.
3127 (dwarf2_frame_cache): Set new field.
3128 (dwarf2_frame_prev_register): Update.
3129 (dwarf2_frame_sniffer): Update.
3130 (dwarf2_frame_base_sniffer): Update.
3131 (dwarf2_frame_find_fde): Add 'out_offset' argument.
3132
0cf6dd15
TJB
31332010-07-07 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
3134 Thiago Jung Bauermann <bauerman@br.ibm.com>
3135
3136 Support for hw accelerated condition watchpoints in booke powerpc.
3137
3138 * breakpoint.c (fetch_watchpoint_value): Rename to fetch_subexp_value
3139 and move to eval.c. Change callers.
3140 (insert_bp_location): Pass watchpoint condition in
3141 target_insert_watchpoint.
3142 (remove_breakpoint_1) Pass watchpoint condition in
3143 target_remove_watchpoint.
3144 (watchpoint_locations_match): Call
3145 target_can_accel_watchpoint_condition.
3146 * eval.c: Include wrapper.h.
3147 (fetch_subexp_value): Moved from breakpoint.c.
3148 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint):
3149 Formatting fix.
3150 (can_use_watchpoint_cond_accel): New function.
3151 (calculate_dvc): Likewise.
3152 (num_memory_accesses): Likewise.
3153 (check_condition): Likewise.
3154 (ppc_linux_can_accel_watchpoint_condition): Likewise
3155 (ppc_linux_insert_watchpoint): Call can_use_watchpoint_cond_accel,
3156 check_condition and calculate_dvc.
3157 (ppc_linux_remove_watchpoint): Likewise.
3158 (_initialize_ppc_linux_nat): Set to_can_accel_watchpoint_condition to
3159 ppc_linux_can_accel_watchpoint_condition
3160 * target.c (debug_to_insert_watchpoint): Add argument for watchpoint
3161 condition.
3162 (debug_to_remove_watchpoint): Likewise.
3163 (debug_to_can_accel_watchpoint_condition): New function.
3164 (update_current_target): Set to_can_accel_watchpoint_condition.
3165 (setup_target_debug): Set to_can_accel_watchpoint_condition.
3166 * target.h: Add opaque declaration for struct expression.
3167 (struct target_ops) <to_insert_watchpoint>,
3168 <to_remove_watchpoint>: Add new arguments to pass the watchpoint
3169 <to_can_accel_watchpoint_condition>: New member.
3170 condition. Update all callers and implementations.
3171 (target_can_accel_watchpoint_condition): New macro.
3172 * value.c (free_value_chain): New function.
3173 * value.h (fetch_subexp_value): New prototype.
3174 (free_value_chain): Likewise.
3175
2f2241f1
UW
31762010-07-07 Ulrich Weigand <uweigand@de.ibm.com>
3177
3178 * linux-nat.c (linux_nat_do_thread_registers): Use section size
3179 from gdbarch_core_regset_sections also for .reg if present.
3180
3181 * amd64-linux-tdep.c (amd64_linux_regset_sections): Fix incorrect
3182 section size for .reg.
3183 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
3184 (ppc_linux_vmx_regset_sections): Likewise.
3185 (ppc_linux_fp_regset_sections): Likewise.
3186 (ppc64_linux_vsx_regset_sections): New variable.
3187 (ppc64_linux_vmx_regset_sections): Likewise.
3188 (ppc64_linux_fp_regset_sections): Likewise.
3189 (ppc_linux_init_abi): Install core_regset_section lists appropriate
3190 for current word size.
3191
1fd7cdc2
JB
31922010-07-06 Joel Brobecker <brobecker@adacore.com>
3193
3194 * server.c (myresume): Make static.
3195
11763c18
TT
31962010-07-06 Tom Tromey <tromey@redhat.com>
3197
3198 * configure, config.in: Rebuild.
3199 * configure.ac (HAVE_LIBPYTHON2_7): New define.
3200 * python/python-internal.h: Handle HAVE_LIBPYTHON2_7.
3201
a6cc4789
AS
32022010-07-06 Andreas Schwab <schwab@linux-m68k.org>
3203
3204 * breakpoint.c (_initialize_breakpoint): Add "cl" as alias for
3205 "clear".
3206
f9e9243a
UW
32072010-07-06 Ken Werner <ken.werner@de.ibm.com>
3208
3209 * gdbtypes.h (floatformats_ieee_half): Add declaration.
3210 * gdbtypes.c (floatformats_ieee_half): New variable.
3211 * doublest.c (floatformat_from_length): Set format to
3212 gdbarch_half_format if length matches.
3213 * gdbarch.sh (half_bit): New architecture method.
3214 (half_format): Likewise.
3215 * gdbarch.h: Regenerate.
3216 * gdbarch.c: Likewise.
3217
4e5799b6
JK
32182010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3219 Joel Brobecker <brobecker@adacore.com>
3220
3221 Fix re-run of PIE executable, PR shlibs/11776.
3222 * solib-svr4.c (svr4_relocate_main_executable) <symfile_objfile>: Remove
3223 the part of pre-set SYMFILE_OBJFILE->SECTION_OFFSETS.
3224
86e4bafc
JK
32252010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3226 Joel Brobecker <brobecker@adacore.com>
3227
3228 * auxv.c (memory_xfer_auxv): Update attach comment.
3229 * solib-svr4.c (svr4_special_symbol_handling): Remove the call to
3230 svr4_relocate_main_executable.
3231 (svr4_solib_create_inferior_hook): Make the call to
3232 svr4_relocate_main_executable unconditional.
3233
3cd07d20
JK
32342010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3235 Joel Brobecker <brobecker@adacore.com>
3236
3237 * auxv.c (ld_so_xfer_auxv): Do not error on failed read of data_address.
3238
0a1e94c7
JK
32392010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3240 Joel Brobecker <brobecker@adacore.com>
3241
3242 Fix attaching to PIEs prelinked on the disk after the process was
3243 started.
3244 * solib-svr4.c (svr4_exec_displacement): New variable arch_size.
3245 Verify it against bfd_get_arch_size. Try to match arbitrary
3246 displacement for the phdrs comparison.
3247
5387647f
TT
32482010-07-02 Tom Tromey <tromey@redhat.com>
3249
3250 PR exp/11780:
3251 * libunwind-frame.c (libunwind_frame_prev_register): Don't set
3252 value as optimized-out.
3253
38b6c3b3
TJB
32542010-07-02 Ulrich Weigand <uweigand@de.ibm.com>
3255 Thiago Jung Bauermann <bauerman@br.ibm.com>
3256
3257 * breakpoint.c (can_use_hardware_watchpoint): Answer "what does this
3258 represent?" question in comment. Change comment to a proper sentence.
3259
a17ac5b0
TT
32602010-07-02 Ken Werner <ken.werner@de.ibm.com>
3261
3262 * c-valprint.c (c_val_print): Fix printing of character vectors.
3263
bddaafad
JK
32642010-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3265
3266 * spu-tdep.c (spu_catch_start): Adjust the caller of changed
3267 create_breakpoint prototype.
3268
d41c0fc8
PA
32692010-07-01 Pedro Alves <pedro@codesourcery.com>
3270
3271 * breakpoint.c (BREAK_ARGS_HELP, _initialize_breakpoint): Clarify
3272 usefulness suggestion of multiple breakpoints at same location.
3273
dc10affe
PA
32742010-07-01 Pedro Alves <pedro@codesourcery.com>
3275
3276 * breakpoint.c (BREAK_ARGS_HELP): Add missing `the'.
3277
cabe9ab6
PA
32782010-07-01 Pedro Alves <pedro@codesourcery.com>
3279
3280 * dwarf2loc.c (locexpr_tracepoint_var_ref)
3281 (loclist_tracepoint_var_ref): Handle optimized out values.
3282
cce7e648
PA
32832010-07-01 Pedro Alves <pedro@codesourcery.com>
3284
3285 * breakpoint.c (update_watchpoint, _initialize_breakpoint): Remove
3286 unnecessary space in string.
3287 * filesystem.c (_initialize_filesystem): Ditto.
3288 * frame.c (_initialize_frame): Ditto.
3289 * infcmd.c (step_once): Ditto.
3290 * infrun.c (_initialize_infrun): Ditto.
3291 * linux-nat.c (linux_child_follow_fork): Ditto.
3292 * maint.c (maintenance_deprecate): Ditto.
3293 * memattr.c (_initialize_mem): Ditto.
3294 * mips-tdep.c (_initialize_mips_tdep): Ditto.
3295 * monitor.c (monitor_open): Ditto.
3296 * procfs.c (procfs_xfer_memory): Ditto.
3297 * reverse.c (bookmarks_info): Ditto.
3298 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs): Ditto.
3299 * stack.c (_initialize_stack): Ditto.
3300 * tracepoint.c (_initialize_tracepoint): Ditto.
3301 * xtensa-tdep.c (xtensa_supply_gregset,
3302 xtensa_regset_from_core_section): Ditto.
3303
b65c7efe
TT
33042010-07-01 Tom Tromey <tromey@redhat.com>
3305
3306 * value.h (struct lval_funcs) <check_any_valid>: Rename from
3307 check_all_valid.
3308 * value.c (value_entirely_optimized_out): Invert result. Update
3309 for new function name.
3310
0fb4aa4b
PA
33112010-07-01 Pedro Alves <pedro@codesourcery.com>
3312
3313 Static tracepoints support.
3314
3315 * NEWS: Mention new support for static tracepoints.
3316 (New packets): Mention qTfSTM, qTsSTM, qTSTMat and
3317 qXfer:statictrace:read.
3318 (New features in the GDB remote stub, GDBserver): Mention static
3319 tracepoints support using an UST based backend.
3320 (New commands): Mention "info static-tracepoint-markers" and
3321 "strace".
3322 * breakpoint.c (is_marker_spec): New.
3323 (is_tracepoint): Handle static tracepoints.
3324 (validate_commands_for_breakpoint): Static tracepoints can't do
3325 while-stepping.
3326 (static_tracepoints_here): New.
3327 (bpstat_what): Handle static tracepoints.
3328 (print_one_breakpoint_location, allocate_bp_location, mention):
3329 Ditto.
3330 (create_breakpoint_sal): Ditto.
3331 (decode_static_tracepoint_spec): New.
3332 (create_breakpoint): Replace `hardwareflag', and `traceflag' with
3333 `type_wanted'. Adjust. Handle static tracepoint marker
3334 locations.
3335 (break_command_1): Adjust.
3336 (update_static_tracepoint): New.
3337 (update_breakpoint_locations): Handle static tracepoints.
3338 (breakpoint_re_set_one): Handle static tracepoint marker
3339 locations.
3340 (disable_command, enable_command): Handle static tracepoints.
3341 (trace_command, ftrace_command): Adjust.
3342 (strace_command): New.
3343 (create_tracepoint_from_upload): Adjust.
3344 (save_breakpoints): Handle static tracepoints.
3345 (_initialize_breakpoint): Install the "strace" command.
3346 * breakpoint.h (enum bptype): New bp_static_tracepoint type.
3347 (struct breakpoint): New fields static_trace_marker_id and
3348 static_trace_marker_id_idx.
3349 (breakpoints_here_p): Declare.
3350 (create_breakpoint): Adjust.
3351 (static_tracepoints_here): Declare.
3352 * remote.c (struct remote_state) <static_tracepoints>: New field.
3353 (PACKET_qXfer_statictrace_read, PACKET_StaticTracepoints): New.
3354 (remote_static_tracepoint_marker_at): New.
3355 (remote_static_tracepoint_markers_by_strid): New.
3356 (remote_static_tracepoint_feature): New.
3357 (remote_disconnected_tracing_feature): Handle "StaticTracepoints".
3358 (remote_xfer_partial): Handle TARGET_OBJECT_STATIC_TRACE_DATA.
3359 (remote_supports_static_tracepoints): New.
3360 (remote_download_tracepoint): Download static tracepoints.
3361 (init_remote_ops): Install remote_static_tracepoint_marker_at and
3362 remote_static_tracepoint_markers_by_strid.
3363 (_initialize_remote): Install set|show remote static-tracepoints,
3364 and set|show remote read-sdata-object commands.
3365 * target.c (update_current_target): Inherit and default
3366 to_static_tracepoint_marker_at, and
3367 to_static_tracepoint_markers_by_strid.
3368 * target.h (static_tracepoint_marker): Forward declare.
3369 (enum target_object): New object TARGET_OBJECT_STATIC_TRACE_DATA.
889bf7c5 3370 (static_tracepoint_marker_p): New typedef.
0fb4aa4b
PA
3371 (DEF_VEC_P(static_tracepoint_marker_p)): New VEC type.
3372 (struct target_ops): New fields to_static_tracepoint_marker_at and
3373 to_static_tracepoint_markers_by_strid.
3374 (target_static_tracepoint_marker_at)
3375 (target_static_tracepoint_markers_by_strid): New.
3376 * tracepoint.c: Include source.h.
3377 (validate_actionline): Handle $_sdata.
3378 (struct collection_list): New field strace_data.
3379 (add_static_trace_data): New.
3380 (clear_collection_list): Clear strace_data.
3381 (stringify_collection_list): Account for a possible static trace
3382 data collection.
3383 (encode_actions_1): Encode an $_sdata collection.
3384 (parse_tracepoint_definition): Handle static tracepoints.
3385 (parse_static_tracepoint_marker_definition): New.
3386 (release_static_tracepoint_marker): New.
3387 (print_one_static_tracepoint_marker): New.
3388 (info_static_tracepoint_markers_command): New.
3389 (sdata_make_value): New.
3390 (_initialize_tracepoint): Create the $_sdata convenience variable.
3391 Add the "info static-tracepoint-markers" command.
3392 Mention $_sdata in the "collect" command's help output.
3393 * tracepoint.h (struct static_tracepoint_marker): New.
3394 (parse_static_tracepoint_marker_definition)
3395 (release_static_tracepoint_marker): Declare.
3396 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
3397 * python/py-breakpoint.c (bppy_new): Adjust.
3398
aac63f0f
JB
33992010-06-30 Joel Brobecker <brobecker@adacore.com>
3400
3401 * python/python-internal.h (_XOPEN_SOURCE): Undefine before
3402 including Python.h.
3403
e68994a7
DE
34042010-06-29 Doug Evans <dje@google.com>
3405
3863f96c
DE
3406 PR gdb/11702
3407 * dwarf2read.c (dwarf2_add_field): Only create a symbol if
3408 DW_AT_external is present.
3409
254e6b9e
DE
3410 PR gdb/11702
3411 * NEWS: Add entry.
3412 * dwarf2read.c (dwarf2_add_field): If DW_AT_const_value is present,
3413 create a symbol for the field and record the value.
3414 (new_symbol): Handle DW_TAG_member.
3415 * gdbtypes.c (field_is_static): Remove FIXME.
3416 * symtab.c (search_symbols): When searching for VARIABLES_DOMAIN,
3417 only ignore LOC_CONST symbols that are enums.
3418
6e70227d
DE
3419 * dwarf2read.c: Remove trailing whitespace.
3420
e68994a7
DE
3421 Delete FIELD_LOC_KIND_DWARF_BLOCK, unused.
3422 * gdbtypes.h (enum field_loc_kind): Delete FIELD_LOC_KIND_DWARF_BLOCK.
3423 (struct main_type, field loc): Delete dwarf_block.
3424 (FIELD_DWARF_BLOCK): Delete.
3425 (SET_FIELD_DWARF_BLOCK): Delete.
3426 (TYPE_FIELD_DWARF_BLOCK): Delete.
3427 * gdb-gdb.py (StructMainTypePrettyPrinter.struct_field_location_img):
3428 Update.
3429
a480d2f6
HZ
34302010-06-29 Hui Zhu <teawater@gmail.com>
3431
3432 * record.c (set_record_pic_cmdlist,
3433 show_record_pic_cmdlist): New variables.
3434 (set_record_pic_command,
3435 show_record_pic_command): New functions.
3436 (record_pic_function, record_pic_line, record_pic_enum,
3437 set_record_pic_type, record_pic_hide_nofunction,
3438 record_pic_hide_nosource, record_pic_hide_same): New variables.
3439 (record_pic_fputs): New function.
3440 (function_list, node_list, edge_list): New struct.
3441 (function_list, node_list, edge_list): New variables.
3442 (record_pic_cleanups, record_pic_node,
3443 record_pic_edge, cmd_record_pic): New functions.
3444 (_initialize_record): Add new commands for record pic.
3445
a0d7a4ff
JK
34462010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3447
3448 * dwarf2read.c (read_structure_type) <fi.typedef_field_list>: Call
3449 ALLOCATE_CPLUS_STRUCT_TYPE.
3450
595939de 34512010-06-28 Phil Muldoon <pmuldoon@redhat.com>
889bf7c5
PA
3452 Tom Tromey <tromey@redhat.com>
3453 Thiago Jung Bauermann <bauerman@br.ibm.com>
595939de
PM
3454
3455 * value.c (pack_unsigned_long): New function.
3456 (value_from_ulongest): New function.
3457 * value.h (value_from_ulongest): Declare.
3458 * python/python.c (_initialize_python): Call
3459 gdbpy_initialize_thread and gdbpy_initialize_inferior.
3460 * python/python-internal.h: Define thread_object.
3461 (gdbpy_inferiors, gdbpy_selected_thread)
3462 (frame_info_to_frame_object, create_thread_object)
3463 (find_thread_object, find_inferior_object)
3464 (gdbpy_initialize_thread, gdbpy_initialize_inferiors)
3465 (gdbpy_is_value_object, get_addr_from_python): Declare.
3466 * python/py-value.c (builtin_type_upylong): Define.
3467 (convert_value_from_python): Add logic for ulongest.
3468 (gdbpy_is_value_object): New function.
3469 * python/py-utils.c (get_addr_from_python): New function.
3470 * python/py-frame.c (frame_info_to_frame_object): Return a PyObject.
3471 (gdbpy_selected_frame): Use PyObject over frame_info.
3472 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-inferior and
3473 py-infthread.
3474 (SUBDIR_PYTHON_SRCS): Likewise.
3475 (py-inferior.o): New Rule.
3476 (py-infthread.o): New Rule.
3477 * python/py-inferior.c: New File.
3478 * python/py-infthread.c: New File.
3479
98751a41
JK
34802010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3481
3482 * c-typeprint.c (c_type_print_base): For no fields check include also
3483 TYPE_TYPEDEF_FIELD_COUNT. Print new typedefs section.
3484 * dwarf2read.c (struct typedef_field_list)
3485 (struct field_info) <typedef_field_list, typedef_field_list_count>: New.
3486 (dwarf2_add_typedef): New.
3487 (read_structure_type): Call dwarf2_add_typedef for DW_TAG_typedef.
3488 Copy also FI.TYPEDEF_FIELD_LIST.
3489 * gdbtypes.h (struct typedef_field)
3490 (struct cplus_struct_type) <typedef_field, typedef_field_count>
3491 (TYPE_TYPEDEF_FIELD_ARRAY, TYPE_TYPEDEF_FIELD, TYPE_TYPEDEF_FIELD_NAME)
3492 (TYPE_TYPEDEF_FIELD_TYPE, TYPE_TYPEDEF_FIELD_COUNT): New.
3493
41f62f39
JK
34942010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3495
3496 * cp-namespace.c (cp_lookup_nested_type): New variable
3497 concatenated_name. Turn the current return condition into a reverse
3498 one. Call also lookup_static_symbol_aux on the constructed qualified
3499 name.
3500 * symtab.c (lookup_symbol_aux): Move variable objfile and searching in
3501 other files into a called ...
3502 (lookup_static_symbol_aux): ... new function here.
3503 * symtab.h (lookup_static_symbol_aux): New prototype.
3504 * valops.c (value_maybe_namespace_elt): Call also
3505 lookup_static_symbol_aux if we failed otherwise.
3506
af53d231
JK
35072010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3508
3509 Fix PR c++/11703 and PR gdb/1448.
3510 * c-exp.y (yylex) <last_was_coloncolon && first_was_coloncolon>: Add
3511 FIRST_ITER check.
3512
9655fd1a
JK
35132010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3514
3515 Fix modification of cplus_struct_default.
3516 * dwarf2read.c (dwarf2_add_member_fn) <no DW_AT_vtable_elem_location>:
3517 Call ALLOCATE_CPLUS_STRUCT_TYPE.
3518 * gdbtypes.c (cplus_struct_default): New empty initializer, comment it.
3519
9279c692
JB
35202010-06-28 Joel Brobecker <brobecker@adacore.com>
3521
3522 * NEWS: Add entry announcing the python directory.
3523
d3f41bb1
TT
35242010-06-28 Tom Tromey <tromey@redhat.com>
3525
3526 * dwarf2read.c (read_structure_type): Allocate null cleanup later.
3527
23e7acfb
DE
35282010-06-28 Doug Evans <dje@google.com>
3529
3530 * breakpoint.c (breakpoint_sals_to_pc): Delete arg address, unused.
3531 All callers updated.
3532
6036c742
JK
35332010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3534
3535 * cp-valprint.c (cp_print_value_fields) <recurse == 0>: Call
3536 obstack_begin after each obstack_free.
3537
9f18a3b3
DE
35382010-06-27 Doug Evans <dje@google.com>
3539
1596cb5d
DE
3540 * value.c (value_static_field): Use `switch' instead of `if'.
3541 Assert-fail if passed invalid TYPE_FIELD_LOC_KIND.
3542
9f18a3b3
DE
3543 * valops.c (search_struct_field): Fix typo in error message.
3544
43dabe42
UW
35452010-06-26 Ulrich Weigand <uweigand@de.ibm.com>
3546
3547 * dwarf2expr.c (execute_stack_op): Place preprocessor
3548 directives at the start of the source line.
3549
0f3bb72e
PH
35502010-06-25 Paul Hilfinger <hilfinger@adacore.com>
3551
6036c742
JK
3552 * defs.h (make_command_stats_cleanup): Declare.
3553 (set_display_time): Declare.
3554 (set_display_space): Declare.
3555 * event-top.c (command_handler): Use make_command_stats_cleanup.
3556 * main.c (display_time, display_space): Move definitions to utils.c.
3557 (captured_main): Use make_command_stats_cleanup to get start-up
3558 statistics.
3559 Use set_display_time and set_display_space for processing OPT_STATISTICS
3560 case.
3561 * maint.c (maintenance_time_display): Use set_display_time.
3562 (maintenance_space_display): Use set_display_space.
3563 * top.c (execute_command): Remove obsolete 'maint time' code.
3564 (command_loop): Use make_command_stats_cleanup.
3565 * utils.c (struct cmd_stats): Structure for storing initial time
3566 and space usage.
3567 (display_time, display_space): Move definitions here from utils.c.
3568 (set_display_time): New function.
3569 (set_display_space): New function.
3570 (make_command_stats_cleanup): New function.
3571 (report_command_stats): New auxiliary function for
3572 make_command_stats_cleanup.
0f3bb72e 3573
070c8028
UW
35742010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
3575
3576 * solib-spu.c (append_ocl_sos): Fix xsnprintf statement for
3577 hosts where CORE_ADDR is long long.
3578
bc9f0842
TT
35792010-06-25 Tom Tromey <tromey@redhat.com>
3580
3581 PR python/10808:
3582 * python/python.c (execute_gdb_command): Add keywords. Accept
3583 "to_string" argument.
3584 (struct restore_ui_file_closure): New.
3585 (restore_ui_file): New function.
3586 (make_cleanup_restore_ui_file): Likewise.
3587 (GdbMethods) <execute>: Update.
3588
c0cc4c83
UW
35892010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
3590
3591 * s390-tdep.c (s390_push_dummy_call): Error on stack overflow
3592 during inferior call stack frame setup.
3593
f1d8ee66
UW
35942010-06-25 Ken Werner <ken.werner@de.ibm.com>
3595
3596 * solib-spu.c: Include "exception.h".
3597 (ocl_program_data_key): New variable.
3598 (append_ocl_sos): New function.
3599 (ocl_enable_break): Likewise.
3600 (spu_current_sos): Call append_ocl_sos.
3601 (spu_solib_loaded): Call ocl_enable_break.
3602 (_initialize_spu_solib): Register ocl_program_data_key.
3603
19c0c0f8
UW
36042010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
3605
3606 * cp-support.c (reset_directive_searched): New function.
3607 (make_symbol_overload_list_using): Prevent recursive calls.
3608
0f6a939d
PM
36092010-06-25 Phil Muldoon <pmuldoon@redhat.com>
3610
3611 * printcmd.c (print_variable_and_value): Print error message on
3612 caught exception.
3613
f2c7657e
UW
36142010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
3615
3616 * dwarf2expr.h (struct dwarf_value_location): Use ULONGEST as type
3617 of stack values.
3618 (struct dwarf_expr_piece): Rename "expr" member to "mem". Add new
3619 "value" member.
3620 (dwarf_expr_push): Change input type to ULONGEST.
3621 (dwarf_expr_fetch): Change return type to ULONGEST.
3622 (dwarf_expr_fetch_address): Add prototype.
3623 (dwarf2_read_address): Remove prototype.
3624 * dwarf2expr.c (dwarf_expr_push): Use ULONGEST as type of stack values.
3625 Truncate stack values to ctx->addr_size bytes.
3626 (dwarf_expr_fetch): Change return value to ULONGEST.
3627 (dwarf_expr_fetch_address): New function.
3628 (add_piece): Use dwarf_expr_fetch_address instead of dwarf_expr_fetch
3629 when appropriate. Update for struct dwarf_expr_piece changes.
3630 (dwarf2_read_address): Remove.
3631 (unsigned_address_type): Remove.
3632 (signed_address_type): Remove.
3633 (execute_stack_op): Use dwarf_expr_fetch_address instead of
3634 dwarf_expr_fetch when appropriate. Use ULONGEST as type of stack
3635 values. Perform operations on ULONGEST instead of on GDB values,
3636 sign-extending from ctx->addr_size bytes as needed. Read DW_OP_addr
3637 values and DW_OP_deref results as unsigned integers.
3638 * dwarf2loc.c (read_pieced_value): Update for struct dwarf_expr_piece
3639 changes.
3640 (write_pieced_value): Likewise.
3641 (dwarf2_evaluate_loc_desc): Use dwarf_expr_fetch_address instead of
3642 dwarf_expr_fetch when appropriate.
3643 (compile_dwarf_to_ax): Read DW_OP_addr values as unsigned integers.
3644 * dwarf2-frame.c (execute_stack_op): Use dwarf_expr_fetch_address
3645 instead of dwarf_expr_fetch when appropriate.
3646
b1d61bc9
PM
36472010-06-25 Pierre Muller <muller@ics.u-strasbg.fr>
3648
3649 * c-typeprint.c (c_print_typedef): Append new type name for typedefs.
3650
b14285f6
JB
36512010-06-24 Joel Brobecker <brobecker@adacore.com>
3652
3653 * python/python.c (_initialize_python): Add new "constant"
3654 PYTHONDIR in gdb module. Insert this path at the head of
3655 sys.path. Set gdb.__path__ to gdb.PYTHONDIR + '/gdb' and
3656 exec its __init__.py script if it exists in that directory.
3657
fd60dc69
KB
36582010-06-24 Kevin Buettner <kevinb@redhat.com>
3659
3660 * rx-tdep.c (RX_ACC_REGNUM): Define.
3661 (RX_NUM_REGS): Redefine to 26.
3662 (rx_register_name): Add register "acc". Change order of several
3663 registers. Change name of "vct" register to "fintv" to match RX
3664 documentation.
3665 (rx_register_type): Add case for RX_ACC_REGNUM.
3666
18430289
TT
36672010-06-24 Tom Tromey <tromey@redhat.com>
3668
3669 * psymtab.c (lookup_partial_symbol): Mark definition as static.
3670
40618926
JK
36712010-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3672 Tom Tromey <tromey@redhat.com>
3673
3674 Fix GDB startup on readonly filesystem.
3675 * charset.c (find_charset_names): Use PEX_USE_PIPES for pex_init.
3676
628fe4e4
JK
36772010-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3678 Pedro Alves <pedro@codesourcery.com>
3679
3680 Fix PR 9436.
3681 * breakpoint.c (handle_jit_event): New function.
3682 (bpstat_what): Remove enum class, kc, ss, sn, sgl, slr, clr, sr, shl,
3683 jit, err, table and bs_class. New variables shlib_event, jit_event,
3684 this_action and bptype. Change bs_class assignments to this_action
3685 assignments. new unhandled bptype internal error. Move here
3686 shlib_event and jit_event handling from handle_inferior_event.
3687 * breakpoint.h (enum bpstat_what_main_action): Extend the comment.
3688 Reorder items. Remove BPSTAT_WHAT_CHECK_SHLIBS and
3689 BPSTAT_WHAT_CHECK_JIT.
3690 * inferior.h (debug_infrun, stop_on_solib_events): New declarations.
3691 * infrun.c (debug_infrun, stop_on_solib_events): Remove static.
3692 (handle_inferior_event): Reinitialize frame and gdbarch after
3693 bpstat_what call. Move BPSTAT_WHAT_CHECK_SHLIBS and
3694 BPSTAT_WHAT_CHECK_JIT handling to bpstat_what. Reinitialize even
3695 gdbarch when frame gets reinitialized.
3696
f1421989
HZ
36972010-06-24 Hui Zhu <teawater@gmail.com>
3698
3699 * printcmd.c (ui_printf): New function.
3700 (printf_command): Call ui_printf.
3701 (_initialize_printcmd): New command "eval".
3702
d03285ec
UW
37032010-06-23 Ulrich Weigand <uweigand@de.ibm.com>
3704
3705 * infrun.c (handle_inferior_event): Handle presence of single-step
3706 breakpoints for TARGET_WAITKIND_FORKED and TARGET_WAITKIND_VFORKED.
3707 Cancel single-step breakpoints for TARGET_WAITKIND_EXITED,
3708 TARGET_WAITKIND_SIGNALED, and TARGET_WAITKIND_EXECD.
3709 * breakpoint.c (detach_single_step_breakpoints): New function.
3710 (detach_breakpoints): Call it.
3711 (cancel_single_step_breakpoints): New function.
3712 * breakpoint.h (cancel_single_step_breakpoints): Add prototype.
3713
3714 * spu-tdep.c (spu_memory_remove_breakpoint): New function.
3715 (spu_gdbarch_init): Install it.
3716
38f6b338
JK
37172010-06-23 Jan Kratochvil <jan.kratochvil@redhat.com>
3718
3719 * configure.ac: Always set RDYNAMIC at least as `-rdynamic'.
3720 * configure: Regenerate.
3721
bb08c432
HZ
37222010-06-22 Hui Zhu <teawater@gmail.com>
3723
3724 * i386-tdep.c (i386_record_lea_modrm): Change warning to query.
3725 (i386_process_record): Ditto.
3726 * record.c (record_memory_query): New variable.
3727 (_initialize_record): New command "set record memory-query".
3728 * record.h (record_memory_query): New extern.
3729
b55078be
DE
37302010-06-21 Doug Evans <dje@google.com>
3731
3732 * i386-tdep.h (i386_displaced_step_copy_insn): Declare.
3733 * i386-tdep.c (i386_displaced_step_copy_insn): New function.
3734 (i386_syscall_p): Change type of lengthp to int.
3735 (i386_displaced_step_fixup): Handle kernels that run one past a
3736 syscall insn.
3737 * i386-linux-tdep.c (i386_linux_init_abi): Use
3738 i386_displaced_step_copy_insn instead of
3739 simple_displaced_step_copy_insn.
3740
75079b2b
TT
37412010-06-21 Tom Tromey <tromey@redhat.com>
3742
3743 * dwarf2read.c (read_base_type): Handle DW_ATE_UTF.
3744 (dwarf_type_encoding_name): Likewise.
3745
b00fdb78
TT
37462010-06-21 Tom Tromey <tromey@redhat.com>
3747
3748 * p-valprint.c (pascal_val_print): Use TYPE_ERROR_NAME.
3749 * p-typeprint.c (pascal_type_print_base): Use TYPE_ERROR_NAME.
3750 * m2-valprint.c (m2_val_print): Use TYPE_ERROR_NAME.
3751 * gdbtypes.h (TYPE_ERROR_NAME): New macro.
3752 * f-valprint.c (f_val_print): Use TYPE_ERROR_NAME.
3753 * f-typeprint.c (f_type_print_base): Use TYPE_ERROR_NAME.
3754 * dwarf2read.c (tag_type_to_type): Create a new error type on
3755 failure.
3756 * c-valprint.c (c_val_print): Use TYPE_ERROR_NAME.
3757 * c-typeprint.c (c_type_print_base): Use TYPE_ERROR_NAME.
3758
84951ab5
MS
37592010-06-21 Michael Snyder <msnyder@vmware.com>
3760
889bf7c5 3761 * breakpoint.c (_initialize_breakpoint): Use add_prefix_cmd,
84951ab5
MS
3762 not add_abbrev_prefix_cmd, for "enable breakpoints".
3763
d4a087c7
UW
37642010-06-21 Ulrich Weigand <uweigand@de.ibm.com>
3765
3766 * dwarf2loc.c (find_location_expression): Add relocation offset
3767 to base-address-selection entry base addresses. Read addresses
3768 (and offsets) as signed/unsigned integers, depending on the
3769 BFD's sign_extend_vma flag. Do not call dwarf2_read_address.
3770 (loclist_describe_location): Likewise.
3771 (disassemble_dwarf_expression): Read DW_OP_addr operand as
3772 unsigned integer. Do not call dwarf2_read_address.
3773 (locexpr_describe_location): Likewise for DW_OP_GNU_push_tls_address.
3774
13def385
UW
37752010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
3776
3777 * spu-tdep.c (spu_frame_unwind_cache): Use LSLR register
3778 value instead of hard-coded SPU_LS_SIZE.
3779 (spu_software_single_step): Likewise.
3780 * spu-tdep.h (SPU_LS_SIZE): Remove.
3781
d2ed6730
UW
37822010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
3783
3784 * spu-multiarch.c (spu_xfer_partial): Wrap around local store
3785 limit on local store memory accesses.
3786 * spu-linux-nat.c (spu_xfer_partial): Likewise.
3787 * spu-tdep.c (spu_lslr): Remove.
3788 (spu_pointer_to_address): Do not truncate addresses.
3789 (spu_integer_to_address): Likewise.
3790 (spu_overlay_new_objfile): Use SPU_OVERLAY_LMA.
3791 * spu-tdep.h: Add comments.
3792 (SPUADDR_SPU): Respect SPU_OVERLAY_LMA bit.
3793 (SPU_OVERLAY_LMA): Define.
3794
6aed2dbc
SS
37952010-06-18 Stan Shebs <stan@codesourcery.com>
3796
a61408f8
SS
3797 * osdata.c (get_osdata): Warn separately if target does not report
3798 type list.
3799 (info_osdata_command): Allow empty type, report error if target
3800 does not return available types of OS data.
3801 * linux-nat.c (linux_nat_xfer_osdata): Report list of OS data
3802 types if no annex supplied.
3803
6aed2dbc
SS
3804 * thread.c (thread_id_make_value): Make a value representing the
3805 current thread.
3806 (_initialize_thread): Create $_thread.
3807
ec61707d
JB
38082010-06-17 Joel Brobecker <brobecker@adacore.com>
3809
3810 * dwarf2read.c (psymtabs_addrmap_cleanup): Add empty line after
3811 last local variable declaration. No real code change.
3812
60606b2c
TT
38132010-06-17 Tom Tromey <tromey@redhat.com>
3814
3815 * dwarf2read.c (psymtabs_addrmap_cleanup): New function.
3816 (dwarf2_build_psymtabs_hard): Use it. Create addrmap on a
3817 temporary obstack.
3818
65d79d4b
SDJ
38192010-06-16 Sergio Durigan Junior <sergiodj@redhat.com>
3820 Jan Kratochvil <jan.kratochvil@redhat.com>
3821
3822 * breakpoint.c: Include parser-defs.h.
3823 (watchpoint_exp_is_const): New function.
3824 (watch_command_1): Call watchpoint_exp_is_const to check
3825 if the expression is constant.
3826
0407b3f1
AS
38272010-06-15 Andreas Schwab <schwab@linux-m68k.org>
3828
3829 * configure.ac: Check for RDYNAMIC also for cross builds.
3830 * configure: Regenerate.
3831
98d64339
PA
38322010-06-15 Pedro Alves <pedro@codesourcery.com>
3833
3834 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
3835 (SFILES): Remove solib-null.c, add solib-target.c.
3836 (COMMON_OBS): Remove solib-null.o, add solib-target.o.
3837 (ALLDEPFILES): Remove solib-target.c.
3838 * solib-target.c (_initialize_solib_target): Set
3839 current_target_so_ops to solib_target_so_ops if not already set.
3840 * solib-null.c: Delete.
3841
6a271cae
PA
38422010-06-14 Pedro Alves <pedro@codesourcery.com>
3843
3844 * NEWS: Mention GDBserver's JIT compilation of tracepoint
3845 bytecode.
3846
1e9beacb
UW
38472010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
3848
3849 * cp-valprint.c (cp_print_static_field): Members of
3850 dont_print_stat_array_obstack are of type "struct type *".
3851 (_initialize_cp_valprint): Likewise.
3852
21a176fb
UW
38532010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
3854
3855 * frame.c (frame_register_unwind): Do not access contents
3856 of "optimized out" unwound register value.
3857
25b524e8
JK
38582010-06-14 Jan Kratochvil <jan.kratochvil@redhat.com>
3859
3860 * ada-lang.h (ada_print_type): Make varstring const.
3861 * ada-typeprint.c (print_func_type): Make name const.
3862 (ada_print_type): Make varstring const.
3863 * c-lang.h (c_print_type): Make varstring const.
3864 * c-typeprint.c (c_print_type): Likewise.
3865 * f-lang.h (f_print_type): Likewise.
3866 * f-typeprint.c (f_print_type): Likewise.
3867 * jv-lang.h (java_print_type): Likewise.
3868 * jv-typeprint.c (java_print_type): Likewise.
3869 * language.c (unk_lang_print_type): Likewise.
3870 * language.h (struct language_defn) <la_print_type>: Likewise.
3871 * m2-lang.h (m2_print_type): Likewise.
3872 * m2-typeprint.c (m2_print_type): Likewise.
3873 * p-lang.h (pascal_print_type): Likewise.
3874 * p-typeprint.c (pascal_print_type): Likewise.
3875
d914c394
SS
38762010-06-11 Stan Shebs <stan@codesourcery.com>
3877
3878 Add per-operation permission flags.
3879
3880 * target.h (struct target_ops): New method to_set_permissions.
3881 (target_set_permissions): New macro.
3882 (target_insert_breakpoint): Change macro to function.
3883 (target_remove_breakpoint): Ditto.
3884 (target_stop): Ditto.
3885 (may_write_registers): Declare.
3886 (may_write_memory): Declare.
3887 (may_insert_breakpoints): Declare.
3888 (may_insert_tracepoints): Declare.
3889 (may_insert_fast_tracepoints): Declare.
3890 (may_stop): Declare.
3891 * target.c (may_write_registers, may_write_registers_1): New globals.
3892 (may_write_memory, may_write_memory_1): New globals.
3893 (may_insert_breakpoints, may_insert_breakpoints_1): New globals.
3894 (may_insert_tracepoints, may_insert_tracepoints_1): New globals.
3895 (may_insert_fast_tracepoints, may_insert_fast_tracepoints_1): New
3896 globals.
3897 (may_stop, may_stop_1): New global.
3898 (target_xfer_partial): Test for write permission.
3899 (target_store_registers): Ditto.
3900 (target_insert_breakpoint): New function.
3901 (target_remove_breakpoint): New function.
3902 (target_stop): New function.
3903 (_initialize_targets): Add new set/show variables.
3904 (set_write_memory_permission): New function.
3905 (update_target_permissions): New function.
3906 (set_target_permissions): New function.
3907 (update_current_target): Default to_set_permissions.
3908 (_initialize_targets): Use new globals and setter function.
3909 * tracepoint.c (start_tracing): Test for permission.
3910 * inferior.h (update_observer_mode): Declare.
3911 * infrun.c (non_stop_1): Define earlier.
3912 (observer_mode, observer_mode_1): New globals.
3913 (set_observer_mode, show_observer_mode): New functions.
3914 (update_observer_mode): New function.
3915 (_initialize_infrun): Define "set observer" command.
3916 * remote.c (PACKET_QAllow): New optional packet.
3917 (remote_protocol_features): Add QAllow.
3918 (remote_set_permissions): New function.
3919 (remote_start_remote): Call it.
3920 (init_remote_ops): Add it to target vector.
3921 (_initialize_remote): Add config command for QAllow.
3922
aec5aa8b
TT
39232010-06-11 Tom Tromey <tromey@redhat.com>
3924
3925 * dwarf2read.c (dwarf2_add_member_fn): Handle correct form of
3926 DW_AT_vtable_elem_location even when GCC extension is seen.
3927
0e03807e
TT
39282010-06-11 Tom Tromey <tromey@redhat.com>
3929
3930 PR gdb/9977, PR exp/11636:
3931 * value.h (value_offset): Update.
3932 (struct lval_funcs) <check_validity>: New field.
3933 <copy_closure>: Make argument const.
3934 (value_computed_closure): Update.
3935 (value_contents_for_printing): Declare.
3936 (value_bits_valid): Likewise.
3937 (val_print): Likewise.
3938 (set_value_component_location): Update.
3939 (value_entirely_optimized_out): Declare.
3940 * value.c (value_offset): Argument now const.
3941 (require_not_optimized_out): New function.
3942 (value_contents_for_printing): New function.
3943 (value_contents_all): Call require_not_optimized_out.
3944 (value_contents): Likewise.
3945 (value_bits_valid): New function.
3946 (value_computed_closure): Argument now const.
3947 (set_value_component_location): Make 'whole' argument const.
3948 (value_entirely_optimized_out): New function.
3949 (value_bitsize): Argument now 'const'.
3950 (value_bitpos): Likewise.
3951 (value_type): Likewise.
3952 * valprint.h (val_print_array_elements): Update.
3953 * valprint.c (val_print): Add 'val' argument. Use
3954 valprint_check_validity.
3955 (valprint_check_validity): New function.
3956 (value_check_printable): Use value_entirely_optimized_out.
3957 (common_val_print): Update.
3958 (value_print): Likewise.
3959 (val_print_array_elements): Add 'val' argument.
3960 * valops.c (value_fetch_lazy): Use value_contents_for_printing,
3961 value_bits_valid. Reinit frame cache for lval_computed.
3962 * sh64-tdep.c (sh64_do_register): Update.
3963 * scm-valprint.c (scm_val_print): Add 'val' argument.
3964 * scm-lang.h (scm_val_print): Update.
3965 * python/python.h (apply_val_pretty_printer): Update.
3966 * python/py-prettyprint.c (apply_val_pretty_printer): Add 'val'
3967 argument. Call set_value_component_location.
3968 * printcmd.c (print_scalar_formatted): Update.
3969 * p-valprint.c (pascal_val_print): Add 'val' argument.
3970 (pascal_object_print_value_fields): Likewise.
3971 (pascal_object_print_value): Likewise.
3972 (pascal_object_print_static_field): Update.
3973 * p-lang.h (pascal_val_print): Update.
3974 (pascal_object_print_value_fields): Update.
3975 * mt-tdep.c (mt_registers_info): Update.
3976 * mi/mi-main.c (get_register): Update.
3977 (mi_cmd_data_evaluate_expression): Use common_val_print.
3978 * m2-valprint.c (m2_print_array_contents): Add 'val' argument.
3979 (m2_print_unbounded_array): Likewise.
3980 (m2_val_print): Likewise.
3981 * m2-lang.h (m2_val_print): Update.
3982 * language.h (struct language_defn) <la_val_print>: Add 'val'
3983 argument.
3984 (LA_VAL_PRINT): Likewise.
3985 * language.c (unk_lang_val_print): Add 'val' argument.
3986 * jv-valprint.c (java_print_value_fields): Add 'val' argument.
3987 (java_val_print): Likewise.
3988 * jv-lang.h (java_val_print): Add 'val' argument.
3989 * infcmd.c (default_print_registers_info): Update.
3990 * f-valprint.c (f77_print_array_1): Add 'val' argument.
3991 (f77_print_array): Likewise.
3992 (f_val_print): Likewise.
3993 * f-lang.h (f_val_print): Add 'val' argument.
3994 * dwarf2loc.c (read_pieced_value): Use value_bitsize and
3995 value_bitpos.
3996 <DWARF_VALUE_OPTIMIZED_OUT>: Don't print warning. Call
3997 set_value_optimized_out.
3998 (write_pieced_value): Use value_bitsize and value_bitpos.
3999 <default>: Don't exit loop.
4000 (check_pieced_value_validity): New function.
4001 (pieced_value_funcs): Reference check_pieced_value_validity,
4002 check_pieced_value_invalid.
4003 (copy_pieced_value_closure): Update.
4004 (check_pieced_value_bits): New function.
4005 (check_pieced_value_invalid): New function.
4006 * d-valprint.c (dynamic_array_type): Add 'val' argument.
4007 (d_val_print): Likewise.
4008 * d-lang.h (d_val_print): Update.
4009 * cp-valprint.c (cp_print_value_fields): Add 'val' argument.
4010 (cp_print_value_fields_rtti): Likewise.
4011 (cp_print_value): Likewise.
4012 (cp_print_static_field): Update.
4013 * c-valprint.c (c_val_print): Add 'val' argument.
4014 (c_value_print): Update.
4015 * c-lang.h (c_val_print): Update.
4016 (cp_print_value_fields): Likewise.
4017 (cp_print_value_fields_rtti): Likewise.
4018 * ada-valprint.c (struct ada_val_print_args): Remove.
4019 (val_print_packed_array_elements): Add 'val' argument.
4020 (ada_val_print): Likewise. Rewrite.
4021 (ada_val_print_stub): Remove.
4022 (ada_val_print_array): Add 'val' argument.
4023 (ada_val_print_1): Likewise.
4024 (print_variant_part): Likewise.
4025 (ada_value_print): Update.
4026 (print_record): Add 'val' argument.
4027 (print_field_values): Likewise.
4028 * ada-lang.h (ada_val_print): Update.
4029
3cf03773
TT
40302010-06-11 Tom Tromey <tromey@redhat.com>
4031
4032 * vec.h (VEC_cleanup): New macro.
4033 (DEF_VEC_ALLOC_FUNC_I): Update.
4034 (DEF_VEC_ALLOC_FUNC_P): Likewise.
4035 (DEF_VEC_ALLOC_FUNC_O): Likewise.
4036 * dwarf2loc.c (struct axs_var_loc): Remove.
4037 (unimplemented): New function.
4038 (translate_register): Likewise.
4039 (access_memory): Likewise.
4040 (compile_dwarf_to_ax): Likewise.
4041 (dwarf2_tracepoint_var_loc): Remove.
4042 (dwarf2_tracepoint_var_access): Likewise.
4043 (dwarf2_tracepoint_var_ref): Likewise.
4044 (locexpr_tracepoint_var_ref): Use compile_dwarf_to_ax.
4045 (loclist_tracepoint_var_ref): Likewise.
4046 * dwarf2expr.h (dwarf_expr_require_composition): Declare.
4047 * dwarf2expr.c (dwarf_expr_require_composition): Rename from
4048 require_composition. No longer static.
4049 (execute_stack_op): Update.
4050 * ax-gdb.h (trace_kludge): Declare.
4051
2bdf28a0
JK
40522010-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4053
4054 * breakpoint.c (breakpoint_restore_shadows): New OWNER comment.
4055 (should_be_inserted): Return zero also on NULL OWNER.
4056 (breakpoint_program_space_exit): New OWNER comment.
4057 (insert_breakpoint_locations): Extend comment for OWNER.
4058 (remove_breakpoint_1, remove_breakpoint): Assert on OWNER.
4059 (breakpoint_init_inferior, breakpoint_here_p, breakpoint_thread_match):
4060 New OWNER comment.
4061 (print_it_typical): Return PRINT_UNKNOWN on NULL OWNER.
4062 (watchpoint_check): New assert on BREAKPOINT_AT and OWNER.
4063 (bpstat_check_location): New assert on OWNER.
4064 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions): Move BL
4065 and B initializations to the code block. New assert on them.
4066 (print_one_breakpoint_location): New OWNER comment.
4067 (watchpoint_locations_match): Assert on OWNER.
4068 (breakpoint_locations_match): Move HW_POINT1 and HW_POINT2
4069 initializations to the code block. New assert on OWNER.
4070 (set_breakpoint_location_function): New assert on OWNER.
4071 (disable_breakpoints_in_shlibs, disable_breakpoints_in_unloaded_shlib)
4072 (bp_location_compare, update_global_location_list)
4073 (update_global_location_list): New OWNER comment.
4074
5b9a19af
UW
40752010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
4076
4077 * Makefile.in (HFILES_NO_SRCDIR): Remove config/i386/nm-linux.h
4078
669211f5
UW
40792010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
4080
4081 * config/nm-linux.h (struct target_ops): Remove forward declaration.
4082 (lin_thread_get_thread_signals): Remove prototype.
4083 (GET_THREAD_SIGNALS): Remove.
4084 * linux-nat.h (lin_thread_get_thread_signals): Add prototype.
4085 * linux-thread-db.c (check_thread_signals): Directly call
4086 lin_thread_get_thread_signals; do not check GET_THREAD_SIGNALS.
4087
b7a8b4ef
UW
40882010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
4089
4090 * gregset.h (GDB_FPXREGSET_T): Remove.
4091 (gdb_fpxregset_t): Likewise.
4092 (supply_fpxregset): Remove prototype.
4093 (fill_fpxregset): Likewise.
4094 * i386-linux-nat.c (supply_fpxregset): Remove.
4095 (fill_fpxregset): Likewise.
4096 (fetch_fpxregs): Inline supply_fpxregset call.
4097 (store_fpxregs): Inline fill_fpxregset call.
4098
4099 * config/i386/linux.mh: Set NAT_FILE to config/nm-linux.h.
4100 * config/i386/nm-linux.h: Remove file.
4101
82892036
MS
41022010-06-09 Michael Snyder <msnyder@vmware.com>
4103
4104 * target.c (update_current_target): Fix spelling error in comment.
4105 (target_mourn_inferior): Fix spelling error in error message.
4106
5ddb52fa
PH
41072010-06-08 Paul Hilfinger <hilfingr@adacore.com>
4108
4109 * dictionary.h (dict_iter_name_first, dict_iter_name_next): Refer to
4110 SYMBOL_SEARCH_NAME, not SYMBOL_BEST_NAME, in comments.
4111
0f2caa1b
MS
41122010-06-08 Michael Snyder <msnyder@vmware.com>
4113
4114 * remote.c (remote_close): Set inferior_ptid to null_ptid.
4115
3bebe2f2
JK
41162010-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4117
4118 * configure.ac <"${have_libpython}" != no>: New workaround of
4119 python#4434.
4120 * configure: Regenerate.
4121
eaaffdf4
HZ
41222010-06-08 Hui Zhu <teawater@gmail.com>
4123
4124 * record.c (record_wait): Move signal out of replay code.
4125
5c631832
JK
41262010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4127
4128 Fix PR 10640.
4129 * dwarf2-frame.c (no_dwarf_call): New function.
4130 (execute_stack_op): Set CTX->DWARF_CALL.
4131 * dwarf2expr.c (execute_stack_op) <DW_OP_call2, DW_OP_call4>: New.
4132 * dwarf2expr.h (struct dwarf_expr_context) <dwarf_call>: New.
4133 (struct dwarf_expr_context) <get_subr>: Remove the #if0-ed field.
4134 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call): New functions.
4135 (dwarf2_evaluate_loc_desc): Initialize CTX->DWARF_CALL.
4136 (needs_frame_dwarf_call): New function.
4137 (dwarf2_loc_desc_needs_frame): Initialize CTX->DWARF_CALL.
4138 * dwarf2read.c (follow_die_offset): Based on former follow_die_ref.
4139 Update the comment. Move variables die, offset and error call to ...
4140 (follow_die_ref): ... a new function.
4141 (dwarf2_fetch_die_location_block): New function.
4142 * dwarf2loc.h (dwarf2_fetch_die_location_block): New prototype.
4143
17ea53c3
JK
41442010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4145
4146 * dwarf2loc.c (struct dwarf_expr_baton) Replace objfile by per_cu.
4147 (dwarf_expr_tls_address): Use per_cu instead of objfile.
4148 (dwarf2_evaluate_loc_desc): Drop initialization of BATON.OBJFILE.
4149 Initialize new BATON.PER_CU. Adjust CTX->GDBARCH initialization for
4150 this change.
4151 (struct needs_frame_baton): New field per_cu.
4152 (dwarf2_loc_desc_needs_frame): Initialize new BATON.PER_CU.
4153 * dwarf2read.c (struct dwarf2_per_cu_data) <cu>: Extend the comment.
4154
245040d7
SW
41552010-06-07 Sami Wagiaalla <swagiaal@redhat.com>
4156
4157 * cp-support.c (make_symbol_overload_list_namespace): Only search
4158 static and global blocks.
4159 (make_symbol_overload_list_block): New function.
4160 (make_symbol_overload_list): Separate namespace search from block
4161 search.
4162 (make_symbol_overload_list_qualified): Use
4163 make_symbol_overload_list_block.
4164
4c3376c8
SW
41652010-06-07 Sami Wagiaalla <swagiaal@redhat.com>
4166
4167 * value.h: Created oload_search_type enum.
4168 (find_overload_match): Use oload_search_type enum.
4169 * valops.c (find_overload_match): Support combined member and
4170 non-member search.
4171 * eval.c (evaluate_subexp_standard): Calls to
4172 find_overload_match now use oload_search_type enum.
4173 (oload_method_static): Verify index is a proper value.
4174 * valarith.c (value_user_defined_cpp_op): Search for and handle
4175 both member and non-member operators.
4176 (value_user_defined_cpp_op): New function.
4177 (value_user_defined_op): New function.
4178 (value_x_unop): Use value_user_defined_op.
4179 (value_x_binop): Ditto.
4180 * cp-support.c (make_symbol_overload_list_using): Added block
4181 iteration.
4182 Add check for namespace aliases and imported declarations.
4183
ee55da67
JK
41842010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4185
4186 * breakpoint.h (owner): Extend the comment.
4187
1a2ab13a
JK
41882010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4189
4190 Clear stale specific bp_location from former whole breakpoint.
4191 * breakpoint.c (delete_breakpoint): Move the stale referencing clear
4192 code ...
4193 (free_bp_location): ... here. Rename there the called function to
4194 bpstat_remove_bp_location_callback.
4195 (bpstat_remove_breakpoint_callback): Rename to ...
4196 (bpstat_remove_bp_location_callback): ... here, change DATA resolution
4197 to struct bp_location. Change the called function to
4198 bpstat_remove_bp_location. Create new declaration for the function.
4199 (bpstat_remove_breakpoint): Rename to ...
4200 (bpstat_remove_bp_location): ..., change the parameter to loc, adjust
4201 code for the new parameter type.
4202
16d6b4b7
NS
42032010-06-07 Nathan Sidwell <nathan@codesourcery.com>
4204
4205 * README: Make version-agnostic.
4206
7e314c57
JK
42072010-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4208
4209 Fix duplicate types for single DIE.
4210 * dwarf2read.c (read_structure_type): Move set_descriptive_type after
4211 set_die_type.
4212 (read_array_type): Remove type initialization. Recheck get_die_type
4213 after initial die_type. Move set_die_type before set_descriptive_type.
4214 (read_set_type): New variable domain_type. Recheck get_die_type after
4215 initial die_type. Move attr initialization later.
4216 (read_tag_pointer_type, read_tag_reference_type): New variable
4217 target_type. Recheck get_die_type after initial die_type.
4218 (read_tag_ptr_to_member_type): Recheck get_die_type after initial
4219 die_type and die_containing_type.
4220 (read_tag_const_type, read_tag_volatile_type, read_subroutine_type):
4221 Recheck get_die_type after initial die_type.
4222 (read_subrange_type): Recheck get_die_type after initial die_type.
4223 Move set_die_type before set_descriptive_type.
4224 (set_die_type): Extend the function comment. Call complaint if DIE has
4225 some type already set.
4226
2f296114
VP
42272010-06-05 Vladimir Prus <vladimir@codesourcery.com>
4228
4229 * mi/mi-main.c (mi_cmd_list_thread_groups): Adjust
4230 for current naming of thread groups (iN, not N).
4231
554794dc
SDJ
42322010-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
4233
4234 * ada-lang.c (ada_operator_length): Constify `struct expression'.
4235 * parse.c (operator_length): Likewise.
4236 (operator_length_standard): Likewise.
4237 * parser-defs.h (operator_length): Likewise.
4238 (operator_length_standard): Likewise.
4239 (struct exp_descriptor <operator_length>): Likewise.
4240
967cf477
DE
42412010-06-04 Doug Evans <dje@google.com>
4242
bddaacb9 4243 Add support for enabling/disabling individual pretty-printers.
967cf477
DE
4244 * python/py-prettyprint.c (search_pp_list): Skip disabled printers.
4245 * python/python-internal.h (gdbpy_enabled_cst): Declare.
4246 * python/python.c (gdbpy_enabled_cst): Define.
4247 (_initialize_python): Initialize gdbpy_enabled_cst.
4248 * NEWS: Add entry.
4249
2dec564e
JK
42502010-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4251
4252 * breakpoint.c (update_global_location_list): Fix comment typo.
4253
44b5680a
HZ
42542010-06-04 Hui Zhu <teawater@gmail.com>
4255
4256 * dwarf2loc.c (disassemble_dwarf_expression): Change ul to l.
4257
e7a30f46
DE
42582010-06-03 Doug Evans <dje@google.com>
4259
4260 * configure.ac: Don't fail if python is unusable when
4261 configured with --with-python=auto.
4262 * configure: Regenerate.
4263
84b4420f
SW
42642010-06-03 Sami Wagiaalla <swagiaal@redhat.com>
4265
889bf7c5 4266 * dwarf2read.c (new_symbol): Remove redundant naming of symbol.
84b4420f 4267
df178451
PM
42682010-06-03 Pierre Muller <muller@ics.u-strasbg.fr>
4269
4270 * valprint.h (get_array_bounds): Change low and high parameter types
4271 to LONGEST *.
0407b3f1 4272 * valprint.c (get_array_bounds): Use get_discrete_bounds call to
df178451
PM
4273 compute bounds.
4274 (val_print_array_elements): Adapt to change above.
4275 * ada-valprint.c (print_optional_low_bound): Adapt to change above.
4276 * p-valprint.c (pascal_val_print): Likewise.
4277
fd5700c7
JK
42782010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4279
4280 * symfile.c (init_filename_language_table): New extensions .for, .FOR,
4281 .ftn, .FTN, .fpp, .FPP, .f90, .F90, .f95, .F95, .f03, .F03, .f08 and
4282 .F08.
4283
f55ee35c
JK
42842010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4285
4286 Support DW_TAG_module as separate namespaces.
4287 * dwarf2read.c (typename_concat): New parameter physname.
4288 (read_module_type): New function and declaration.
4289 (scan_partial_symbols): Scan also DW_TAG_module children.
4290 (partial_die_parent_scope): Accept scope even from DW_TAG_module. Pass
4291 to typename_concat backward compatible physname value 0.
4292 (partial_die_full_name, read_namespace_type): Pass to typename_concat
4293 backward compatible physname value 0.
4294 (add_partial_module, read_module): Remove FIXME comment.
4295 (process_die) <DW_TAG_module>: Set PROCESSING_HAS_NAMESPACE_INFO.
4296 (die_needs_namespace) <DW_TAG_variable>: Allow returning true even for
4297 DIEs under DW_TAG_module.
4298 (dwarf2_compute_name): Move the ada block for DW_AT_linkage_name and
4299 DW_AT_MIPS_linkage_name first, extend it for language_fortran
4300 && physname and return there instead of just setting NAME. Extend
4301 the main block for language_fortran. Pass physname parameter to the
4302 typename_concat call.
4303 (read_import_statement, read_func_scope, get_scope_pc_bounds)
4304 (load_partial_dies, determine_prefix): Support also DW_TAG_module.
4305 (new_symbol): Fill in cplus_specific.demangled_name if it is still
4306 missing from SYMBOL_SET_NAMES in the language_fortran case.
4307 (new_symbol) <DW_TAG_variable>: Force LOC_UNRESOLVED for gfortran module
4308 variables.
4309 (read_type_die) <DW_TAG_module>: New.
4310 (MAX_SEP_LEN): Increase to 7.
4311 (typename_concat): New parameter physname. New variable lead. Support
4312 also language_fortran.
4313 * f-exp.y (yylex): Consider : also as a symbol name character class.
4314 * f-lang.c: Include cp-support.h.
4315 (f_word_break_characters, f_make_symbol_completion_list): New functions.
4316 (f_language_defn): Use cp_lookup_symbol_nonlocal,
4317 f_word_break_characters and f_make_symbol_completion_list.
4318 * f-typeprint.c (f_type_print_base) <TYPE_CODE_MODULE>: New.
4319 * gdbtypes.h (enum type_code) <TYPE_CODE_MODULE>: New.
4320 * symtab.c (symbol_init_language_specific): Support language_fortran.
4321 (symbol_find_demangled_name): New comment on language_fortran.
4322 (symbol_natural_name, symbol_demangled_name): Use demangled_name even
4323 for language_fortran.
4324 (lookup_symbol_aux_local): Check imports also for language_fortran.
4325 (default_make_symbol_completion_list): Rename to ...
4326 (default_make_symbol_completion_list_break_on): ... this name. New
4327 parameter break_on, use it.
4328 (default_make_symbol_completion_list): New stub.
4329 * symtab.h (default_make_symbol_completion_list_break_on): New
4330 prototype.
4331
cb91c06a
JB
43322010-06-02 Joel Brobecker <brobecker@adacore.com>
4333
4334 * remote.c (remote_get_noisy_reply): Remove trailing "\n" in call
4335 to error.
4336
5c315b68
JK
43372010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4338
4339 * dwarf2read.c (typename_concat): Add const to the variable sep.
4340
9eae7c52
TT
43412010-06-02 Tom Tromey <tromey@redhat.com>
4342
4343 * dwarf2loc.h (dwarf2_per_cu_data): Declare.
4344 * dwarf2read.c (dwarf_stack_op_name): No longer static. Return
4345 type is const. Add 'def' argument. Add missing operators, remove
4346 unhandled ones.
4347 (decode_locdesc): Update.
4348 (dwarf2_always_disassemble): New global.
4349 (show_dwarf2_always_disassemble): New function.
4350 (_initialize_dwarf2_read): Add always-disassemble.
4351 (dwarf2_per_cu_offset_size): New function.
4352 * dwarf2loc.c (dwarf2_always_disassemble): Declare.
4353 (piece_end_p): New function.
4354 (locexpr_describe_location_piece): Replace 'size' argument with
4355 'end'. Use piece_end_p. Rewrite recognition of TLS. Recognize
4356 some constants. Remove errors.
4357 (disassemble_dwarf_expression): New function.
4358 (locexpr_describe_location_1): Use disassemble_dwarf_expression.
4359 Add 'offset_size' argument.
4360 (loclist_describe_location): Change output formatting.
4361 * dwarf2expr.h (dwarf_stack_op_name): Declare.
4362
7d3fe98e
SW
43632010-06-02 Sami Wagiaalla <swagiaal@redhat.com>
4364
4365 * cp-support.c (make_symbol_overload_list_adl_namespace): Handle
4366 anonymous type case.
4367
e77813c8
PM
43682010-06-02 Pierre Muller <muller@ics.u-strasbg.fr>
4369
4370 * dwarf2read.c (read_subrange_type): Handle missing base type
4371 according to Dwarf-2 specifications.
4372
7cf3118a
SDJ
43732010-06-01 Sergio Durigan Junior <sergiodj@redhat.com>
4374
4375 * expprint.c (print_subexp_standard): Remove exp_opcodes BINOP_INCL,
4376 BINOP_EXCL.
4377 (op_name_standard): Remove exp_opcodes BINOP_INCL, BINOP_EXCL,
4378 UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH.
4379 (dump_subexp_body_standard): Remove exp_opcodes BINOP_INCL,
4380 BINOP_EXCL, UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD,
4381 UNOP_CHMAX, UNOP_CHMIN.
4382 * expression.h (enum exp_opcode) <BINOP_INCL, BINOP_EXCL,
4383 UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD, UNOP_CHMAX,
4384 UNOP_CHMIN>: Remove opcodes.
4385
ae4d0c03
PM
43862010-06-01 Pierre Muller <muller@ics.u-strasbg.fr>
4387
4388 * dwarf2read.c (read_func_scope): Do not complain for
4389 external function if bounds are not found.
4390
fa593d66
PA
43912010-06-01 Pedro Alves <pedro@codesourcery.com>
4392
4393 * NEWS: Mention gdbserver fast tracepoints support.
4394
cd44747c
PM
43952010-05-31 Pierre Muller <muller@ics.u-strasbg.fr>
4396
4397 * windows-nat.c (GetConsoleFontSize, GetCurrentConsoleFont):
4398 New macros.
4399 (windows_set_console_info): New function.
4400 (windows_create_inferior): Call windows_set_console_info
4401 if NEW_CONSOLE is true.
4402 (bad_GetCurrentConsoleFont, bad_GetConsoleFontSize): New functions.
4403 (_initialize_loadable): Initialize GetConsoleFontSize and
4404 GetCurrentConsoleFont.
4405
f6528abd
JK
44062010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4407
4408 * Makefile.in (RDYNAMIC): New.
4409 (SFILES): Add proc-service.list.
4410 * config/alpha/alpha-linux.mh (NAT_CDEPS): New.
4411 (LOADLIBES): Replace -rdynamic by $(RDYNAMIC).
4412 * config/arm/linux.mh: Likewise.
4413 * config/i386/linux.mh: Likewise.
4414 * config/i386/linux64.mh: Likewise.
4415 * config/ia64/linux.mh: Likewise.
4416 * config/m32r/linux.mh: Likewise.
4417 * config/m68k/linux.mh: Likewise.
4418 * config/mips/linux.mh: Likewise.
4419 * config/pa/linux.mh: Likewise.
4420 * config/powerpc/linux.mh: Likewise.
4421 * config/powerpc/ppc64-linux.mh: Likewise.
4422 * config/s390/s390.mh: Likewise.
4423 * config/sparc/linux.mh: Likewise.
4424 * config/sparc/linux64.mh: Likewise.
4425 * config/xtensa/linux.mh: Likewise.
4426 * configure.ac: New RDYNAMIC on native host and GCC.
4427 (solaris*): Replace -Wl,-export-dynamic by $RDYNAMIC.
4428 * configure: Regenerate.
4429 * proc-service.list: New.
4430
ca2a87a0
JK
44312010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4432
4433 * linux-nat.c (linux_nat_core_of_thread_1): Fix crash on invalid
4434 CONTENT.
4435
1e225492
JK
44362010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4437
4438 * linux-nat.c (linux_nat_wait_1): Do not call
4439 linux_nat_core_of_thread_1 on TARGET_WAITKIND_EXITED or
4440 TARGET_WAITKIND_SIGNALLED.
4441
e802dbe0
JB
44422010-05-27 Joel Brobecker <brobecker@adacore.com>
4443
4444 * ada-lang.c (ada_inferior_data): New struct.
4445 (ada_inferior_data): New static global.
4446 (ada_inferior_data_cleanup, get_ada_inferior_data, ada_inferior_exit)
4447 (ada_get_tsd_type): New functions.
4448 (ada_tag_name_2): Use ada_get_tsd_type instead of ada_find_any_type
4449 to look the tsd type up.
4450 (_initialize_ada_language): Attach ada_inferior_exit to inferior_exit
4451 event. Set ada_inferior_data.
4452
176a6961
PA
44532010-05-27 Pedro Alves <pedro@codesourcery.com>
4454
4455 * remote.c (unpack_varlen_hex): Remove forward declaration.
4456 (remote_console_output): Make static, and add forward declaration.
4457 * remote.h: Drop FIXME comment.
4458 (unpack_varlen_hex): Declare.
4459 (remote_console_output, remote_cisco_objfile_relocate)
4460 (deprecated_target_resume_hook, deprecated_target_wait_loop_hook):
4461 Delete declarations.
4462 * tracepoint.c: Include "remote.h".
4463 (unpack_varlen_hex): Delete declaration.
4464
88bfdde4
TT
44652010-05-27 Tom Tromey <tromey@redhat.com>
4466
4467 * dwarf2loc.c (struct piece_closure) <refc>: New field.
4468 (allocate_piece_closure): Initialize refc.
4469 (copy_pieced_value_closure): Use refc.
4470 (free_pieced_value_closure): Likewise.
4471
8c6363cf
TT
44722010-05-27 Tom Tromey <tromey@redhat.com>
4473
4474 * arm-tdep.c (push_stack_item): 'contents' now const.
4475 (arm_push_dummy_call): Make 'val' const. Use value_contents, not
4476 value_contents_writeable. Introduce new temporary.
4477
7ecb917e
TT
44782010-05-27 Tom Tromey <tromey@redhat.com>
4479
4480 * findcmd.c (parse_find_args): Use value_contents, not
4481 value_contents_raw.
4482
f42a0a33
TT
44832010-05-27 Tom Tromey <tromey@redhat.com>
4484
4485 * alpha-tdep.c (alpha_push_dummy_call): Make alpha_arg.contents
4486 const. Use value_contents, not value_contents_writeable.
4487
12b795ad
JB
44882010-05-27 Joel Brobecker <brobecker@adacore.com>
4489
4490 * ada-lang.c (ensure_lval): Replace call to value_contents_raw
4491 by call to value_contents.
4492
5a2e11c7
OS
44932010-05-27 Ozkan Sezer <sezeroz@gmail.com>
4494
4495 * MAINTAINERS: Add myself for write after approval privileges.
4496
ec685c5e
DE
44972010-05-26 Doug Evans <dje@google.com>
4498
0c4a4063
DE
4499 Allow python to find its files if moved from original location.
4500 * acinclude.m4 (GDB_AC_DEFINE_RELOCATABLE): New function.
4501 (GDB_AC_WITH_DIR): Call it.
4502 * configure.ac: Define WITH_PYTHON_PATH if we can find the
4503 python installation directory.
4504 * config.in: Regenerate.
4505 * configure: Regenerate.
4506 * defs.h (python_libdir): Declare.
4507 * main.c (python_libdir): Define.
4508 (captured_main): Initialize python_libdir.
4509 * python/python.c (_initialize_python): #ifdef WITH_PYTHON_PATH,
4510 call Py_SetProgramName to make sure python can find its libraries
4511 and modules.
4512
ec685c5e
DE
4513 * configure.ac: Try to use python's distutils to fetch compilation
4514 parameters.
4515 * configure: Regenerate.
4516 * python/python-config.py: New file.
4517
363a6e9f
OS
45182010-05-26 Ozkan Sezer <sezeroz@gmail.com>
4519
4520 * ser-tcp.c (net_open): Check error return from socket() call by its
4521 equality to -1 not by it being negative.
4522 (net_close): Likewise.
4523
dde08ee1
PA
45242010-05-26 Pedro Alves <pedro@codesourcery.com>
4525
4526 * NEWS: Mention the `qRelocInsn' feature.
4527 * gdbarch.sh (relocate_instruction): New.
4528 * amd64-tdep.c (rip_relative_offset): New.
4529 (append_insns): New.
4530 (amd64_relocate_instruction): New.
4531 (amd64_init_abi): Install it.
4532 * i386-tdep.c (append_insns): New.
4533 (i386_relocate_instruction): New.
4534 (i386_gdbarch_init): Install it.
4535 * remote.c (remote_get_noisy_reply): Handle qRelocInsn requests.
4536 * gdbarch.h, gdbarch.c: Regenerate.
4537
947bb88f
TT
45382010-05-26 Tom Tromey <tromey@redhat.com>
4539
4540 * dwarf2loc.h (struct dwarf2_locexpr_baton) <data>: Now const.
4541 (struct dwarf2_loclist_baton) <data>: Likewise.
4542 * dwarf2loc.c (find_location_expression): Constify return type.
4543 (dwarf2_evaluate_loc_desc): Make 'data' argument const.
4544 (dwarf2_loc_desc_needs_frame): Likewise.
4545 (loclist_read_variable): Constify.
4546 (loclist_describe_location): Likewise.
4547 (loclist_tracepoint_var_ref): Likewise.
4548
0d45f56e
TT
45492010-05-25 Tom Tromey <tromey@redhat.com>
4550
4551 * dwarf2loc.c (dwarf_expr_frame_base): Constify.
4552 (dwarf_expr_frame_base_1): Likewise.
4553 (read_pieced_value): Update.
4554 (needs_frame_frame_base): Constify.
4555 (dwarf2_tracepoint_var_loc): Likewise.
4556 (dwarf2_tracepoint_var_access): Likewise.
4557 (locexpr_describe_location_piece): Likewise.
4558 (locexpr_describe_location_1): Likewise.
4559 * dwarf2expr.h (struct dwarf_expr_context) <get_frame_base>:
4560 Constify.
4561 (data): Now const.
4562 (struct dwarf_expr_piece) <v.literal.data>: Likewise.
4563 (dwarf_expr_eval, read_uleb128, read_sleb128)
4564 (dwarf2_read_address): Update.
4565 * dwarf2expr.c (dwarf_expr_eval): Constify.
4566 (read_uleb128): Likewise.
4567 (read_sleb128): Likewise.
4568 (dwarf2_read_address): Likewise.
4569 (require_composition): Likewise.
4570 (execute_stack_op): Likewise.
4571 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <loc.exp>: Now a
4572 "const gdb_byte *".
4573 * dwarf2-frame.c (struct dwarf2_frame_state_reg_info) <cfa_exp>:
4574 Now const.
4575 (no_get_frame_base): Constify.
4576 (execute_stack_op): Likewise.
4577 (execute_cfa_program): Likewise.
4578 (read_encoded_value): Likewise.
4579
07ca107c
DE
45802010-05-25 Doug Evans <dje@google.com>
4581
e34838f0
DE
4582 * ser-pipe.c (pipe_open): Ignore SIGINTs in child.
4583
01f69b38
DE
4584 * event-loop.h (GDB_READABLE, GDB_WRITABLE, GDB_EXCEPTION): Move to ...
4585 * event-loop.c: ... here.
4586 * tui/tui-io.c (tui_readline_output): Rename parameter `code' to
4587 `error' for clarity.
4588 (tui_getc): Pass correct value for `error' parameter to
4589 tui_readline_output.
4590
07ca107c
DE
4591 Add python gdb.GdbError and gdb.string_to_argv.
4592 * NEWS: Document them.
4593 * python/py-cmd.c (cmdpy_function): Don't print a traceback if
4594 the exception is gdb.GdbError. Print a second traceback if there's
4595 an error computing the error message.
4596 (gdbpy_string_to_argv): New function.
4597 * python/py-utils.c (gdbpy_obj_to_string): New function.
4598 (gdbpy_exception_to_string): New function.
4599 * python/python-internal.h (gdbpy_string_to_argv): Declare.
4600 (gdbpy_obj_to_string, gdbpy_exception_to_string): Declare.
4601 (gdbpy_gdberror_exc): Declare.
4602 * python/python.c (gdbpy_gdberror_exc): New global.
4603 (_initialize_python): Initialize gdbpy_gdberror_exc and create
4604 gdb.GdbError.
4605 (GdbMethods): Add string_to_argv.
4606
5572ce1f
PM
46072010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
4608
4609 * windows-nat.c (display_selector): Call GetLastError to give better
4610 failure explanation.
4611
acd5838a
PA
46122010-05-24 Pedro Alves <pedro@codesourcery.com>
4613
4614 * config.in: Regenerate.
4615
b26a4dcb
JK
46162010-05-23 Jan Kratochvil <jan.kratochvil@redhat.com>
4617
4618 Code cleanup.
4619 * target.c (push_target): Return only void. Remove the return value
4620 comment.
4621 * target.h (push_target): Return only void.
4622
f434ba03
PA
46232010-05-23 Pedro Alves <pedro@codesourcery.com>
4624
4625 Update gnulib from latest git.
4626 (250b80067c1e1d8faa0c42fb572f721975b929c5)
4627
4628 * gnulib/memcmp.c: Removed.
4629 * gnulib/memchr.valgrind: New.
4630 * gnulib/stddef.in.h: New.
4631 * gnulib/Makefile.am: Updated.
4632 * gnulib/memchr.c: Updated.
4633 * gnulib/memmem.c: Updated.
4634 * gnulib/stdint.in.h: Updated.
4635 * gnulib/str-two-way.h: Updated.
4636 * gnulib/string.in.h: Updated.
4637 * gnulib/wchar.in.h: Updated.
4638
4639 * gnulib/extra/link-warning.h: Removed.
4640 * gnulib/extra/c++defs.h: New.
4641 * gnulib/extra/warn-on-use.h: New.
4642 * gnulib/extra/arg-nonnull.h: Updated.
4643
4644 * gnulib/m4/extensions.m4: Updated.
4645 * gnulib/m4/gnulib-cache.m4: Updated.
4646 * gnulib/m4/gnulib-common.m4: Updated.
4647 * gnulib/m4/gnulib-comp.m4: Updated.
4648 * gnulib/m4/gnulib-tool.m4: Updated.
4649 * gnulib/m4/include_next.m4: Updated.
4650 * gnulib/m4/longlong.m4: Updated.
4651 * gnulib/m4/memchr.m4: Updated.
4652 * gnulib/m4/memmem.m4: Updated.
4653 * gnulib/m4/stdint.m4: Updated.
4654 * gnulib/m4/string_h.m4: Updated.
4655 * gnulib/m4/memcmp.m4: Removed.
4656 * gnulib/m4/onceonly_2_57.m4: Removed.
4657 * gnulib/m4/00gnulib.m4: New.
4658 * gnulib/m4/mmap-anon.m4: New.
4659 * gnulib/m4/multiarch.m4: New.
4660 * gnulib/m4/onceonly.m4: New.
4661 * gnulib/m4/stddef_h.m4: New.
4662 * gnulib/m4/warn-on-use.m4: New.
4663 * gnulib/m4/wchar.m4: Removed.
4664 * gnulib/m4/wchar_h.m4: New.
4665 * gnulib/m4/wchar_t.m4: New.
4666 * gnulib/m4/wint_t.m4: New.
4667
4668 * aclocal.m4: Regenerate.
4669 * config.in: Likewise.
4670 * configure: Likewise.
4671 * gnulib/Makefile.in: Likewise.
4672
d3b1e874
TT
46732010-05-21 Tom Tromey <tromey@redhat.com>
4674
4675 * dwarf2loc.c (extract_bits_primitive): New function.
4676 (extract_bits): Likewise.
4677 (insert_bits): Likewise.
4678 (copy_bitwise): Likewise.
4679 (read_pieced_value): Do all operations in bits.
4680 (write_pieced_value): Likewise.
4681 * dwarf2expr.h (struct dwarf_expr_piece) <offset>: New field.
4682 * dwarf2expr.c (add_piece): New arguments bit_piece, offset.
4683 Always use xrealloc to resize piece array.
4684 (execute_stack_op) <DW_OP_reg0>: Handle DW_OP_bit_piece.
4685 <DW_OP_piece>: Update.
4686 <DW_OP_bit_piece>: New case.
4687
cb826367
TT
46882010-05-21 Tom Tromey <tromey@redhat.com>
4689
4690 * dwarf2loc.c (read_pieced_value): Exit loop when result is full.
4691 <DWARF_VALUE_OPTIMIZED_OUT>: New case.
4692 * dwarf2expr.h (enum dwarf_value_location)
4693 <DWARF_VALUE_OPTIMIZED_OUT>: New constant.
4694 * dwarf2expr.c (dwarf_expr_stack_empty_p): New function.
4695 (add_piece): Handle empty piece.
4696 (execute_stack_op) <DW_OP_piece>: Handle
4697 DWARF_VALUE_OPTIMIZED_OUT.
4698
74de6778
TT
46992010-05-21 Tom Tromey <tromey@redhat.com>
4700
4701 * eval.c (evaluate_subexp_standard) <BINOP_SUBSCRIPT>: Call
4702 evaluate_subexp, not evaluate_subexp_with_coercion.
4703
f346a30d
PM
47042010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
4705
4706 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
4707 attribute.
4708
afd74c5f
TT
47092010-05-21 Tom Tromey <tromey@redhat.com>
4710
4711 * dwarf2loc.c (read_pieced_value): Work properly when 'v' has an
4712 offset.
4713 (write_pieced_value): Likewise.
4714
90e7c2c5
PM
47152010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
4716
4717 * dwarf2read.c (process_die): Also allow DW_TAG_const_type
4718 and DW_TAG_volatile_type.
4719 (new_symbol): Likewise.
4720
8148cf8d
PM
47212010-05-20 Pierre Muller <muller@ics.u-strasbg.fr>
4722
4723 * p-valprint.c (pascal_val_print): Call get_array_bounds
4724 to obtain the number of elements in an array.
4725
3a1d4620
DE
47262010-05-19 Doug Evans <dje@google.com>
4727
0bf0f8c4
DE
4728 * python.c (gdbpy_print_stack): Ensure output ends with a newline.
4729
3a1d4620
DE
4730 * python.c (source_python_script): Add comment.
4731 (source_python_script_for_objfile): Remove unnecessary call to
4732 gdbpy_print_stack.
4733
dc21167c
JK
47342010-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4735 Sergio Durigan Junior <sergiodj@redhat.com>
4736
4737 Code cleanup.
4738 * parse.c (exp_iterate): Use operator_length wrapper function.
4739
5b4ee69b
MS
47402010-05-18 Michael Snyder <msnyder@vmware.com>
4741
4742 * ada-lang.c: White space.
4743 * ada-typeprint.c: White space.
4744 * ada-valprint.c: White space.
4745 * addrmap.c: White space.
4746 * auxv.c: White space.
4747 * ax-gdb.c: White space.
4748
e17c9e56
HZ
47492010-05-18 Hui Zhu <teawater@gmail.com>
4750
4751 * linux-fork.c (inferior_call_waitpid_cleanup): Add check
4752 for oldfp.
4753 (inferior_call_waitpid): Move make_cleanup out of check.
4754 Check the return of waitpid.
4755 (delete_checkpoint_command): Add pptid to save fi->parent_ptid.
4756
a109c7c1
MS
47572010-05-17 Michael Snyder <msnyder@vmware.com>
4758
1c5313c5
MS
4759 * tui/tui.c: White space.
4760 * tui/tui-data.c: White space.
4761 * tui/tui-disasm.c: White space.
4762 * tui/tui-file.c: White space.
4763 * tui/tui-interp.c: White space.
4764 * tui/tui-main.c: White space.
4765 * tui/tui-out.c: White space.
4766 * tui/tui-regs.c: White space.
4767 * tui/tui-source.c: White space.
4768 * tui/tui-stack.c: White space.
4769 * tui/tui-win.c: White space.
4770 * tui/tui-winsource.c: White space.
4771
f4a14ae6
MS
4772 * procfs.c: White space.
4773
d59b6f6c
MS
4774 * python/py-auto-load.c: White space.
4775 * python/py-block.c: White space.
4776 * python/py-breakpoint.c: White space.
4777 * python/py-cmd.c: White space.
4778 * python/py-function.c: White space.
4779 * python/py-lazy-string.c: White space.
4780 * python/py-objfile.c: White space.
4781 * python/py-param.c: White space.
4782 * python/py-prettyprint.c: White space.
4783 * python/py-progspace.c: White space.
4784 * python/py-symtab.c: White space.
4785 * python/python.c: White space.
4786 * python/py-type.c: White space.
4787 * python/py-utils.c: White space.
4788 * python/py-value.c: White space.
4789
102040f0
MS
4790 * mi/mi-cmd-break.c: White space.
4791 * mi/mi-cmd-env.c: White space.
4792 * mi/mi-cmds.c: White space.
4793 * mi/mi-cmd-stack.c: White space.
4794 * mi/mi-cmd-var.c: White space.
4795 * mi/mi-console.c: White space.
4796 * mi/mi-getopt.c: White space.
4797 * mi/mi-interp.c: White space.
4798 * mi/mi-main.c: White space.
4799 * mi/mi-out.c: White space.
4800 * mi/mi-parse.c: White space.
4801
cdb27c12
MS
4802 * cli/cli-cmds.c: White space.
4803 * cli/cli-decode.c: White space.
4804 * cli/cli-dump.c: White space.
4805 * cli/cli-interp.c: White space.
4806 * cli/cli-logging.c: White space.
4807 * cli/cli-script.c: White space.
4808 * cli/cli-setshow.c: White space.
4809
a109c7c1
MS
4810 * valarith.c: White space.
4811 * valops.c: White space.
4812 * valprint.c: White space.
4813 * value.c: White space.
4814 * varobj.c: White space.
4815 * xcoffread.c: White space.
4816 * xml-support.c: White space.
4817 * xml-tdesc.c: White space.
4818
3872d37d
AS
48192010-05-17 Andreas Schwab <schwab@redhat.com>
4820
4821 PR gdb/11092
4822 * c-lang.c (c_printstr): Compute real length of NUL terminated
4823 string at first.
4824
0cce5bd9
JB
48252010-05-17 Joel Brobecker <brobecker@adacore.com>
4826
4827 * parse.c (parse_exp_in_context): When block is not NULL, use
4828 its associated language to parse the expression instead of
4829 the current_language.
4830
5f19d646
JB
48312010-05-17 Joel Brobecker <brobecker@adacore.com>
4832
4833 * jv-lang.c (java_lookup_class): Remove commented out code.
4834 (type_from_class): Likewise.
4835 (java_op_print_tab): Remove commented-out elements.
4836
28c85d6c
JB
48372010-05-17 Joel Brobecker <brobecker@adacore.com>
4838
4839 * ada-lang.c (to_fixed_range_type): The the raw index type as
4840 argument instead of the raw type name. Remove orig_type parameter.
4841 Update calls throughout.
4842 (ada_fixup_array_indexes_type): New function.
4843 (ada_array_bound_from_type): Add call to ada_fixup_array_indexes_type.
4844 * ada-lang.h (ada_fixup_array_indexes_type): Add declaration.
4845 * ada-typeprint.c (print_range_type): Renames print_range_type_named.
4846 Remove name parameter.
4847 (print_array_type): Add call to ada_fixup_array_indexes_type.
4848 Update calls to print_range_type.
4849 (ada_print_type): Update calls to print_range_type.
4850
d09039dd
PM
48512010-05-17 Pierre Muller <muller@ics.u-strasbg.fr>
4852
4853 * dwarf2read.c (read_set_type): Set type length if
4854 DW_AT_byte_size attribute is present.
4855
7a081a30
PM
48562010-05-17 Pierre Muller <muller@ics.u-strasbg.fr>
4857
4858 * p-valprint.c (pascal_val_print): Handle set type if range limits
4859 are undefined but size is known.
4860
77382aee
PA
48612010-05-17 Pedro Alves <pedro@codesourcery.com>
4862
4863 * procfs.c: Reformat.
4864
433759f7
MS
48652010-05-16 Michael Snyder <msnyder@vmware.com>
4866
5d502164
MS
4867 * target.c: White space.
4868 * target-descriptions.c: White space.
4869 * target-memory.c: White space.
4870 * thread.c: White space.
4871 * top.c: White space.
4872 * tracepoint.c: White space.
4873 * trad-frame.c: White space.
4874 * tramp-frame.c: White space.
4875 * ui-file.c: White space.
4876 * ui-out.c: White space.
4877 * user-regs.c: White space.
4878 * utils.c: White space.
4879
433759f7
MS
4880 * scm-exp.c: White space.
4881 * scm-lang.c: White space.
4882 * scm-valprint.c: White space.
4883 * sentinel-frame.c: White space.
4884 * ser-base.c: White space.
4885 * ser-go32.c: White space.
4886 * serial.c: White space.
4887 * ser-mingw.c: White space.
4888 * ser-pipe.c: White space.
4889 * ser-tcp.c: White space.
4890 * ser-unix.c: White space.
4891 * solib.c: White space.
4892 * solib-darwin.c: White space.
4893 * solib-frv.c: White space.
4894 * solib-irix.c: White space.
4895 * solib-osf.c: White space.
4896 * solib-pa64.c: White space.
4897 * solib-som.c: White space.
4898 * solib-spu.c: White space.
4899 * solib-svr4.c: White space.
4900 * solib-target.c: White space.
4901 * source.c: White space.
4902 * stabsread.c: White space.
4903 * stack.c: White space.
4904 * std-regs.c: White space.
4905 * symfile.c: White space.
4906 * symmisc.c: White space.
4907 * symtab.c: White space.
4908
dd304d53
MS
49092010-05-16 Michael Snyder <msnyder@vmware.com>
4910
4911 * source.c (_initialize_source): Add "rev" as an abbreviation
4912 for the "reverse-search" command.
4913
a744cf53
MS
49142010-05-16 Michael Snyder <msnyder@vmware.com>
4915
123f5f96
MS
4916 * record.c: White space.
4917 * regcache.c: White space.
4918 * reggroups.c: White space.
4919 * remote-fileio.c: White space.
4920 * remote-m32r-sdi.c: White space.
4921 * remote-mips.c: White space.
4922 * remote-sim.c: White space.
a744cf53
MS
4923 * remote.c: White space.
4924 (process_g_packet): Remove orphan braces.
4925
b8d56208
MS
49262010-05-15 Michael Snyder <msnyder@vmware.com>
4927
ad3bbd48
MS
4928 * parse.c: White space.
4929 * p-lang.c: White space.
4930 * posix-hdep.c: White space.
4931 * printcmd.c: White space.
4932 * progspace.c: White space.
4933 * prologue-value.c: White space.
4934 * psymtab.c: White space.
4935 * p-typeprint.c: White space.
4936 * p-valprint.c: White space.
4937
5cc80db3
MS
4938 * objc-lang.c: White space.
4939 * objfiles.c: White space.
4940 * observer.c: White space.
4941 * osabi.c: White space.
4942 * osdata.c: White space.
4943
b8d56208
MS
4944 * m2-lang.c: White space.
4945 * m2-valprint.c: White space.
4946 * macrocmd.c: White space.
4947 * macroexp.c: White space.
4948 * macroscope.c: White space.
4949 * macrotab.c: White space.
4950 * main.c: White space.
4951 * maint.c: White space.
4952 * mdebugread.c: White space.
4953 * memattr.c: White space.
4954 * minsyms.c: White space.
4955 * monitor.c: White space.
4956
9a619af0
MS
49572010-05-14 Michael Snyder <msnyder@vmware.com>
4958
e0881a8e
MS
4959 * jv-lang.c: White space.
4960 * jv-typeprint.c: White space.
4961 * jv-valprint.c: White space.
4962 * language.c: White space.
4963 * libunwind-frame.c: White space.
4964 * linespec.c: White space.
4965 * linux-nat.c: White space.
4966 * linux-record.c: White space.
4967 * linux-thread-db.c: White space.
4968
abbb1732
MS
4969 * infcall.c: White space.
4970 * inf-child.c: White space.
4971 * infcmd.c: White space.
4972 * inferior.c: White space.
4973 * inf-loop.c: White space.
4974 * inflow.c: White space.
4975 * inline-frame.c: White space.
4976 * interps.c: White space.
4977
d8734c88
MS
4978 * gcore.c: White space.
4979 * gdb.c: White space.
4980 * gdbtypes.c: White space.
4981 * gnu-nat.c: White space.
4982 * gnu-v2-abi.c: White space.
4983 * gnu-v3-abi.c: White space.
4984
bb9bcb69
MS
4985 * findcmd.c: White space.
4986 * findvar.c: White space.
4987 * fork-child.c: White space.
4988 * frame-base.c: White space.
4989 * frame.c: White space.
4990 * frame-unwind.c: White space.
4991 * f-valprint.c: White space.
4992
d7f9d729
MS
4993 * elfread.c: White space.
4994 * environ.c: White space.
4995 * eval.c: White space.
4996 * event-loop.c: White space.
4997 * event-top.c: White space.
4998 * exceptions.c: White space.
4999 * exec.c: White space.
5000 * expprint.c: White space.
5001
9a619af0
MS
5002 * dbxread.c: White space.
5003 * dcache.c: White space.
5004 * disasm.c: White space.
5005 * doublest.c: White space.
5006 * dsrec.c: White space.
5007 * dummy-frame.c: White space.
5008 * dwarf2expr.c: White space.
5009 * dwarf2-frame.c: White space.
5010 * dwarf2loc.c: White space.
5011 * dwarf2read.c: White space.
5012
88d4aea7
PM
50132010-05-14 Phil Muldoon <pmuldoon@redhat.com>
5014
889bf7c5 5015 PR python/11482
88d4aea7
PM
5016
5017 * python/py-value.c (valpy_hash): New function.
5018 (value_object_type): Register valpy_hash.
5019
7a298875 50202010-05-14 Hui Zhu <teawater@gmail.com>
0407b3f1 5021 Michael Snyder <msnyder@vmware.com>
7a298875
HZ
5022
5023 * linux-fork.c (gdbthread.h): New include.
5024 (fork_info): Add parent_ptid.
5025 (inferior_call_waitpid_cleanup, inferior_call_waitpid): New
5026 functions.
5027 (delete_checkpoint_command): Call inferior_call_waitpid.
5028 (checkpoint_command): Set parent_ptid.
5029
c14feecc
MS
50302010-05-13 Michael Snyder <msnyder@vmware.com>
5031
6595d32b
MS
5032 * dictionary.c: Re-indent to GNU coding standard.
5033
c5504eaf
MS
5034 * charset.c: White space.
5035 * c-lang.c: White space.
5036 * cli-out.c: White space.
5037 * coffread.c: White space.
5038 * complaints.c: White space.
5039 * completer.c: White space.
5040 * corefile.c: White space.
5041 * corelow.c: White space.
5042 * cp-abi.c: White space.
5043 * cp-namespace.c: White space.
5044 * cp-support.c: White space.
5045 * cp-valprint.c: White space.
5046 * c-typeprint.c: White space.
5047 * c-valprint.c: White space.
cc59ec59
MS
5048 * blockframe.c: White space.
5049 * breakpoint.c: White space.
5050 * buildsym.c: White space.
5051 * blockframe.c: White space.
b6de9da4 5052 * bcache.c: White space.
05c547f6
MS
5053 * gdbarch.sh: White space, add blank lines.
5054 * arch-utils.c: Ditto.
5055 * gdbarch.c: Regenerate.
1c4d3f96 5056 * frame.c: White space, add blank lines.
f89b749f
MS
5057 * stack.c: White space, add blank lines.
5058 (initialize_stack): Remove long-dead code.
c14feecc 5059
a2d33775
JK
50602010-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5061
5062 Code cleanup.
5063 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Change the parameter to type.
5064 (locexpr_read_variable, loclist_read_variable): Update the callers.
5065
33ac96f0
JK
50662010-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5067
5068 Code cleanup.
5069 * dwarf2read.c (die_type, die_descriptive_type): Remove variable type.
5070 Remove check of NULL returned by tag_type_to_type.
5071 (die_containing_type): Remove variable type. Remove type_die variable
5072 initialization. Remove check of NULL returned by tag_type_to_type.
5073
f5a010c0
PM
50742010-05-11 Pierre Muller <muller@ics.u-strasbg.fr>
5075
5076 PR exp/11530.
5077 * gdbtypes.c (lookup_struct_elt_type): Also lookup
5078 names of unnamed structures or unions.
5079
bf701c2c
PM
50802010-05-11 Pierre Muller <muller@ics.u-strasbg.fr>
5081
5082 * procfs.c (proc_watchpoint_address): New function.
0407b3f1 5083 (procfs_stopped_by_watchpoint): Remove useless check after
bf701c2c
PM
5084 find_procinfo_or_die call.
5085 (procfs_stopped_data_address): New function.
5086 (procfs_use_watchpoints): Register new watchpoint related function.
5087
d02691ef
TT
50882010-05-11 Tom Tromey <tromey@redhat.com>
5089
5090 * eval.c (evaluate_subexp_standard): Revert inadvertent change.
5091
e0627e85
MS
50922010-05-10 Michael Snyder <msnyder@vmware.com>
5093
5094 * utils.c: White space cleanup.
5095
cc73bb8c
TT
50962010-05-10 Tom Tromey <tromey@redhat.com>
5097
5098 * eval.c (ptrmath_type_p): Add 'lang' argument.
5099 (evaluate_subexp_standard): Update.
5100 (evaluate_subexp_with_coercion): Update.
5101 * language.h (CAST_IS_CONVERSION): Add 'LANG' argument.
5102
c02866a0
MS
51032010-05-10 Michael Snyder <msnyder@vmware.com>
5104
5105 * utils.c (do_fclose_cleanup) Restore local variable.
5106
06280d23
DE
51072010-05-09 Doug Evans <dje@google.com>
5108
5109 * record.c (init_record_core_ops): Rename record_core to record-core.
5110
fa07e785
JB
51112010-05-08 Joel Brobecker <brobecker@adacore.com>
5112
5113 Implement task switching on pa-hpux.
5114 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): New function.
5115 (inf_ttrace_target): Set t->to_get_ada_task_ptid.
5116
4c680d1d
PM
51172010-05-08 Pierre Muller <muller@ics.u-strasbg.fr>
5118
5119 * valops.c (find_overload_match): Add missing i18n markup.
5120
28e176a6
PM
51212010-05-08 Pierre Muller <muller@ics.u-strasbg.fr>
5122
5123 * p-exp.y (exp : SIZEOF '(' exp ')'): New rule.
5124
48cb83fd
JK
51252010-05-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5126
5127 * dwarf2read.c (typename_concat): Use (char *) NULL terminated stdarg
5128 list for the obconcat call.
5129 * mdebugread.c (parse_symbol): Likewise.
5130 * stabsread.c (define_symbol, read_member_functions, read_cpp_abbrev):
5131 Likewise.
5132 * symfile.c (obconcat): Replace the s1, s2 and s3 parameters by `...'.
5133 New variable ap. Remove variables len and val.
5134 * symfile.h (obconcat): Likewise for the prototype.
5135
f92adf3c
MS
51362010-05-07 Michael Snyder <msnyder@vmware.com>
5137
5138 * python/python.c (execute_gdb_command): Remove unused variables.
5139 * python/py-block.c (gdbpy_block_for_pc): Remove unused variable.
0407b3f1 5140 * python/py-breakpoint.c (gdbpy_breakpoint_created):
f92adf3c
MS
5141 Remove unused variable.
5142 * python/py-cmd.c (cmdpy_function): Remove unused variable.
5143 (cmdpy_completer): Remove unused variable.
5144 * python/py-frame.c (frapy_find_sal): Remove unused variable.
5145 * python/py-function.c (fnpy_call): Remove unused variable.
5146 * python/py-objfile.c (objfile_to_objfile_object):
5147 Remove unused variable.
5148 * python/py-param.c (parmpy_init): Remove unused variable.
0407b3f1 5149 * python/py-prettyprint.c (apply_varobj_pretty_printer):
f92adf3c
MS
5150 Remove unused variable.
5151 (gdbpy_default_visualizer): Remove unused variable.
5152 * python/py-progspace.c (pspace_to_pspace_object):
5153 Remove unused variable.
0407b3f1 5154 * python/py-symtab.c (symtab_and_line_to_sal_object):
f92adf3c 5155 Remove unused variable.
0407b3f1 5156 * python/py-type.c (typy_template_argument):
f92adf3c
MS
5157 Remove unused variable.
5158 * python/py-value.c (valpy_string): Remove unused variable.
5159 (convert_value_from_python): Remove unused variables.
5160
d160942f
MS
51612010-05-07 Michael Snyder <msnyder@vmware.com>
5162
5163 * valops.c (value_cast_pointers): Restore unused variable 'type1',
5164 and use it to compute variable 't1'.
5165
587542ab
JB
51662010-05-07 Joel Brobecker <brobecker@adacore.com>
5167
5168 * ada-lang.c (assign_aggregate): Remove unused variable.
5169
7322dca9
SW
51702010-05-07 Sami Wagiaalla <swagiaal@redhat.com>
5171
5172 PR C++/7943:
5173 * valops.c (find_overload_match): Handle fsym == NULL case.
5174 Add int no_adl argument.
5175 (find_oload_champ_namespace_loop): Call make_symbol_overload_list_adl
5176 when appropriate.
5177 Add int no_adl argument.
5178 (find_oload_champ_namespace): Add int no_adl argument.
5179 * parse.c (operator_length_standard): Return length for OP_ADL_FUNC
5180 expression.
5181 * expprint.c (op_name_standard): Added string for OP_ADL_FUNC case.
5182 * eval.c (evaluate_subexp_standard): Added OP_ADL_FUNC case.
5183 Evaluate arguments and use them to perform ADL lookup.
5184 Pass no_adl argument to find_overload_match.
5185 Disable adl lookup when evaluating a fully qualified OP_FUNCALL.
5186 * cp-support.h: Added prototype for
5187 make_symbol_overload_list_namespace.
5188 * cp-support.c (make_symbol_overload_list_namespace): New function.
5189 (make_symbol_overload_list_adl_namespace): New function.
5190 (make_symbol_overload_list_adl): New function.
5191 (make_symbol_overload_list_using): Moved code to add function to
5192 overload set to make_symbol_overload_list_namespace.
5193 * c-exp.y: create UNKNOWN_CPP_NAME token.
5194 Add parse rule for ADL functions.
5195 (classify_name): Recognize an UNKNOWN_CPP_NAME.
5196
3f1f6884
JK
51972010-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
5198
5199 * fbsd-nat.c (fbsd_make_corefile_notes): Add cast to NULL used as
5200 sentinel.
5201
3caf13b4
JB
52022010-05-07 Joel Brobecker <brobecker@adacore.com>
5203
5204 Implement task switching on solaris targets.
5205 * sol-thread.c (thread_db_find_thread_from_tid)
5206 (sol_get_ada_task_ptid): New functions.
5207 (init_sol_thread_ops): Set sol_thread_ops.to_get_ada_task_ptid.
5208
94b0dee1
PA
52092010-05-07 Pedro Alves <pedro@codesourcery.com>
5210
5211 * remote.c (remote_query_supported_append): Use reconcat.
5212 (remote_query_supported): Install a cleanup. Use reconcat.
5213
1408c251
PA
52142010-05-07 Pedro Alves <pedro@codesourcery.com>
5215
5216 * gdbarch.sh (qsupported): Delete.
5217 * gdbarch.h, gdbarch.c: Regenerate.
5218 * remote.c (remote_query_supported): Remove use of
5219 gdbarch_qsupported.
5220
f8e50cfe
SDJ
52212010-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
5222
5223 * xml-syscall.c (syscall_start_syscalls_info): Remove unused
5224 function.
5225
8ea13695
MS
52262010-05-06 Michael Snyder <msnyder@vmware.com>
5227
c6913b7d
MS
5228 * xml-support.c (xinclude_start_include): Delete unused variable.
5229 (xml_process_xincludes): Delete unused variable.
5230 * xml-syscall.c (syscall_parse_xml): Delete unused variable.
5231 * target-descriptions.c (tdesc_gdb_type): Delete unused variable.
5232 (tdesc_find_arch_register): Delete unused variable.
5233 (tdesc_use_registers): Delete unused variable.
5234 * xml-tdesc.c (tdesc_start_target): Delete unused variable.
5235 * inferior.c (print_inferior): Delete unused variable.
5236 * record.c (record_open_1): Delete unused variable.
5237 (record_restore): Delete unused variable.
5238 (cmd_record_save): Delete unused variable.
5239 * gcore.c (derive_heap_segment): Delete unused variable.
5240 (objfile_find_memory_regions): Use unused variable.
5241 * jit.c (jit_inferior_init): Delete unused variable.
5242 * progspace.c (clone_program_space): Delete unused variable.
5243 (pspace_empty_p): Delete unused variable.
0407b3f1
AS
5244
5245 * frame-unwind.c (frame_unwind_find_by_frame):
1c5465ac
MS
5246 Delete unused variable.
5247 * gnu-v2-abi.c (gnuv2_value_rtti_type): Delete unused variable.
5248 * cp-support.c (mangled_name_to_comp): Delete unused variable.
5249 (method_name_from_physname): Delete unused variable.
5250 (cp_func_name): Delete unused variable.
5251 (cp_validate_operator): Delete unused variable.
0407b3f1 5252 * cp-namespace.c (cp_scan_for_anonymous_namespaces):
1c5465ac 5253 Delete unused variable.
0407b3f1 5254 * trad-frame.c (trad_frame_get_prev_register):
1c5465ac
MS
5255 Delete unused variable.
5256 * tramp-frame.c (tramp_frame_cache): Delete unused variable.
5257
1be757cf
MS
5258 * serial.c (serial_for_fd): Delete unused variable.
5259 * mdebugread.c (psymtab_to_symtab_1): Delete unused variable.
5260 * top.c (execute_command): Delete unused variable.
5261 (init_main): Delete unused variable.
5262 * utils.c (do_fclose_cleanup): Delete unused variable.
5263 (do_all_inferior_continuations): Delete unused variable.
5264 (initialize_utils): Delete unused variable.
5265 (internal_problem_mode): Delete unused global.
5266 * frame.c (get_prev_frame): Delete unused global.
5267 (get_frame_locals_address): Delete unused global.
5268 (get_frame_args_address): Delete unused global.
5269
9216103f
MS
5270 * p-typeprint.c (pascal_type_print_base): Delete unused variable.
5271 (pascal_type_print_varspec_prefix): Delete unused variable.
5272 * f-typeprint.c (f_type_print_base): Delete unused variable.
5273 (f_type_print_varspec_suffix): Delete unused variable.
5274 * m2-typeprint.c (m2_print_type): Delete unused variable.
5275 (m2_long_set): Delete unused variable.
5276 * ada-valprint.c (ada_val_print_1): Delete unused variable.
5277 * d-valprint.c (dynamic_array_type): Delete unused variable.
0407b3f1 5278 * f-valprint.c (f77_get_dynamic_length_of_aggregate):
9216103f
MS
5279 Delete unused variable.
5280 (f77_create_arrayprint_offset_tbl): Delete unused variable.
5281 * m2-valprint.c (m2_val_print): Delete unused variable.
5282
34fa1d9d
MS
5283 * ui-out.c (ui_out_field_int): Delete unused variable.
5284 (ui_out_field_fmt_int): Delete unused variable.
5285 * varobj.c (varobj_list_children): Delete unused variable.
5286 (varobj_set_value): Delete unused variable.
5287 (install_new_value_visualizer): Delete unused variable.
5288 (varobj_set_visualizer): Delete unused variable.
5289 (varobj_update): Delete unused variable.
5290 (varobj_editable_p): Delete unused variable.
5291 (c_value_of_root): Delete unused variable.
5292 (cplus_describe_child): Delete unused variable.
5293
b5385fc0
MS
5294 * ada-lang.c (add_defn_to_vec): Delete unused variable.
5295 (decode_constrained_packed_array_type): Delete unused variable.
5296 (add_defn_to_vec): Delete unused variable.
5297 (symbol_completion_match): Delete unused variable.
5298 (value_tag_from_contents_and_address): Delete unused variable.
5299 (ada_evaluate_subexp): Delete unused variable.
5300 * c-lang.c (classify_type): Delete unused variable.
5301 * f-lang.c (f_printstr): Delete unused variable.
5302 * objc-lang.c (objc_printstr): Delete unused variable.
5303 * ada-tasks.c (get_known_tasks_addr): Delete unused variable.
5304 * jv-lang.c (type_from_class): ifdef unused variable.
5305 (java_class_name_from_physname): Delete unused variable.
5306 * m2-lang.c (m2_printstr): Delete unused variable.
5307
4fc06681
MS
5308 * objfiles.c (objfile_relocate): Delete unused variable.
5309 * maint.c (_initialize_maint_cmds): Delete unused variable.
5310 * demangle.c (_initialize_demangler): Delete unused variable.
5311 * corefile.c (reopen_exec_file): Delete unused variable.
5312 * dwarf2expr.c (dwarf2_read_address): Delete unused variable.
5313 * dwarf2-frame.c (decode_frame_entry): Delete unused variable.
5314
6b4398f7
MS
5315 * osabi.c (_initialize_gdb_osabi): Delete unused variable.
5316 * memattr.c (mem_delete): Delete unused variable.
5317 (invalidate_target_mem_regions): Delete unused variable.
5318 * mem-break.c (default_memory_insert_breakpoint):
5319 Delete unused variable.
5320 * target.c (target_get_osdata): Delete unused variable.
5321 * parse.c (length_of_subexp): Delete unused variable.
5322 (prefixify_subexp): Delete unused variable.
5323 (exp_iterate): Delete unused variable.
5324 * reverse.c (delete_bookmark_command): Delete unused variable.
5325
308d96ed
MS
5326 * macrocmd.c (_initialize_macrocmd): Delete unused variable.
5327 * macroexp.c (gather_arguments): Delete unused variable.
5328 (substitute_args): Delete unused variable.
5329 * completer.c (gdb_completer_loc_break_characters): Unused, delete.
5330 * gdbarch.sh (gdbarch_printable_names): Delete unused variable.
5331 (_initialize_gdbarch): Delete unused variable.
5332 * gdbarch.c, gdbarch.h: Regenerate.
0407b3f1 5333 * arch-utils.c (initialize_current_architecture):
308d96ed
MS
5334 Delete unused variable.
5335 (_initialize_gdbarch_utils): Delete unused variable.
5336 * gdbtypes.c (make_cv_type): Delete unused variable.
5337 (make_type_with_address_space): Delete unused variable.
5338
167e4384
MS
5339 * linespec.c (decode_compound): Delete unused variable.
5340 * dictionary.c (iterator_next_hashed): Delete unused variable.
5341 * infcall.c (call_function_by_hand): Delete unused variable.
5342 * infcmd.c (step_1): Delete unused variable.
5343 (registers_info): Delete unused variable.
5344 (attach_command): Delete unused variable.
5345 * infrun.c (follow_exec): Delete unused variable.
5346 (handle_step_into_function_backwards): Delete unused variable.
5347 (_initialize_infrun): Delete unused variable.
5348 * stack.c (parse_frame_specification_1): Delete unused variable.
5349 (frame_info): Delete unused variable.
5350 (backtrace_command_1): Delete unused variable.
5351 (catch_info): Delete unused variable.
5352
8f78b329
MS
5353 * eval.c (evaluate_subexp_standard): Delete unused variable.
5354 * valops.c (value_cast_pointers): Delete unused variable.
5355 (value_dynamic_cast): Delete unused variable.
5356 (value_array): Delete unused variable.
5357 (find_overload_match): Delete unused variable.
5358 * valarith.c (value_subscript): Delete unused variable.
5359 (value_binop): Delete unused variable.
5360 * valprint.c (_initialize_valprint): Delete unused variable.
5361 * printcmd.c (print_command_1): Delete unused variable.
5362 (address_info): Delete unused variable.
5363 (printf_command): Delete unused variable.
5364
8ea13695
MS
5365 * auxv.c (target_auxv_search): Delete unused variable.
5366 * blockframe.c (get_frame_block): Delete unused variable.
5367 * regcache.c (regcache_cpy): Delete unused variable.
5368 (regcache_cpy_no_passthrough): Delete unused variable.
5369 * charset.c (wchar_iterate): Delete unused variable.
5370 (find_charset_names): Delete unused variable.
5371 (_initialize_charset): Delete unused variable.
0407b3f1 5372 * disasm.c (do_mixed_source_and_assembly):
8ea13695 5373 Delete unused variable.
0407b3f1 5374 * source.c (set_default_source_symtab_and_line):
8ea13695
MS
5375 Delete unused variable.
5376 (set_substitute_path_command): Delete unused variable.
5377 * value.c (preserve_values): Delete unused variable.
5378 (value_from_double): Delete unused variable.
5379
afe38095
MS
53802010-05-05 Michael Snyder <msnyder@vmware.com>
5381
952a6d41
MS
5382 * psymtab.c (lookup_partial_symbol): Delete unused variable.
5383 (find_last_source_symtab_from_partial): Delete unused variable.
5384 * symfile.c (place_section): Delete unused variable.
5385 (default_symfile_offsets): Delete unused variable.
5386 (get_debug_link_info): Delete unused variable.
5387 (find_separate_debug_file_by_debuglink): Delete unused variable.
5388 (add_symbol_file_command): Delete unused variable.
5389 (symfile_find_segment_sections): Delete unused variable.
5390 * symmisc.c (free_symtab): Delete unused variable.
5391 (dump_symtab_1): Delete unused variable.
5392 * symtab.c (lookup_symbil_aux_quick): Delete unused variable.
5393 (find_pc_sect_symtab): Delete unused variable.
5394 (skip_prologue_using_lineinfo): Delete unused variable.
5395 (sources_info): Delete unused variable.
5396 (completion_list_add_name): Delete unused variable.
5397 (expand_line_sal): Delete unused variable.
5398
0407b3f1 5399 * breakpoint.c (validate_commands_for_breakpoint):
afe38095
MS
5400 Delete unused variables.
5401 (insert_catchpoint): Delete unused variable.
5402 (update_watchpoint): Delete unused variable.
5403 (insert_bp_location): Delete unused variable.
5404 (insert_breakpoint_locations): Delete unused variable.
5405 (remove_breakpoint_1): Delete unused variable.
5406 (software_breakpoint_inserted_here_p): Delete unused variable.
5407 (watchpoints_triggered): Delete unused variable.
5408 (bpstat_check_watchpoint): Delete unused variable.
5409 (bpstat_stop_status): Delete unused variable.
5410 (print_one_breakpoint_location): Delete unused variable.
5411 (allocate_bp_location): Delete unused variable.
5412 (create_breakpoint): Delete unused variable.
5413 (watch_command_1): Delete unused variable.
5414 (catch_exception_command_1): Delete unused variable.
5415 (catch_ada_exception_command): Delete unused variable.
5416 (delete_breakpoint): Delete unused variable.
5417 (breakpoint_re_set_one): Delete unused variable.
5418 (do_enable_breakpoint): Delete unused variable.
5419
eda5a4d7
PA
54202010-05-06 Pedro Alves <pedro@codesourcery.com>
5421
5422 * amd64-tdep.c: Include disasm.h.
5423 (amd64_insn_length_fprintf, amd64_insn_length_init_dis)
5424 (amd64_insn_length): Moved to disasm.c and renamed.
5425 (fixup_riprel): Adjust.
5426 * disasm.c (do_ui_file_delete): New.
5427 (gdb_insn_length): New.
5428 (gdb_buffered_insn_length_fprintf)
5429 (gdb_buffered_insn_length_init_dis)
5430 (gdb_buffered_insn_length): New, moved from amd64-tdep.c, and
5431 renamed.
5432 * disasm.h (gdb_insn_length): Declare.
5433 (gdb_buffered_insn_length): Declare.
5434
02357a4a
PA
54352010-05-06 Pedro Alves <pedro@codesourcery.com>
5436
5437 * remote.c (clear_threads_parsing_context): New.
5438 (remote_threads_info): Delete unused null_cleanup. Install a
5439 cleanup to clear the threads_parsing_context in case parsing
5440 throws.
5441
8c5630cb
MS
54422010-05-05 Michael Snyder <msnyder@vmware.com>
5443
5444 * c-exp.y (parse_string_or_char): Delete unused variable.
5445 (c_lex): Delete unused variable.
5446 * cp-name-parser.y (cpname_lex): Delete unused variable.
5447 * ada-exp.y (find_primitive_type): Delete unused variable.
5448 (write_var_or_type): Delete unused variable.
5449 * jv-exp.y (java_parse): Delete unused variable.
5450 (push_expression_name): Delete unused variable.
5451 * p-exp.y (pascal_lex): Delete unused variable.
5452
46c162d4
PA
54532010-05-05 Pedro Alves <pedro@codesourcery.com>
5454
5455 * remote.c (remote_threads_info): Really revert previous previous
5456 change.
5457
0043e6a5
MS
54582010-05-05 Michael Snyder <msnyder@vmware.com>
5459
fa238c03
MS
5460 * elfread.c (elf_symtab_read): Delete unused variable.
5461 (find_separate_debug_file_by_buildid): Delete unused variables.
5462 (elf_symfile_read): Delete unused variable.
5463
5464 * coffread.c (coff_symfile_read): Delete unused variables.
5465
5466 * coff-pe-read.c (add_pe_exported_sym): Delete unused variable.
5467 (read_pe_exported_syms): Delete unused variable.
5468
5469 * stabsread.c (define_symbol): Delete unused variable.
5470
5471 * dwarf2read.c (read_type_comp_unit_head): Delete unused variable.
5472 (process_psymtab_comp_unit): Delete unused variable.
5473 (dwarf2_build_psymtabs_hard): Delete unused variable.
5474 (load_partial_comp_unit): Delete unused variable.
5475 (create_all_comp_units): Delete unused variable.
5476 (scan_partial_symbols): Delete unused variable.
5477 (add_partial_symbol): Delete unused variable.
5478 (add_partial_namespace): Delete unused variable.
5479 (add_partial_enumeration): Delete unused variable.
5480 (load_full_comp_unit): Delete unused variable.
5481 (process_full_comp_unit): Delete unused variable.
5482 (read_file_scope): Delete unused variable.
5483 (read_type_unit_scope): Delete unused variable.
5484 (process_structure_scope): Delete unused variable.
5485 (process_enumeration_scope): Delete unused variable.
5486 (read_tag_ptr_to_member_type): Delete unused variable.
5487 (read_typedef): Delete unused variable.
5488 (read_partial_die): Delete unused variable.
5489 (decode_locdesc): Delete unused variable.
5490 (zeroed_partial_die): Delete unused global variable.
5491
0407b3f1 5492 * tui/tui-interp.c (_initialize_tui_interp):
0043e6a5 5493 Delete unused variable.
0407b3f1 5494 * tui/tui-regs.c tui_display_registers_from):
0043e6a5
MS
5495 Delete unused variable.
5496 (tui_check_register_values): Delete unused variable.
5497 (tui_register_format): Delete unused variable.
5498 * tui/tui-win.c (_initialize_tui_win): Delete unused variable.
0407b3f1 5499 * tui/tui-windata.c (tui_display_data_from_line):
0043e6a5
MS
5500 Delete unused variables.
5501 (tui_vertical_data_scroll): Delete unused variables.
5502
75721c66
MS
55032010-05-05 Michael Snyder <msnyder@vmware.com>
5504
c31a71f4
MS
5505 * remote.c (remote_threads_info): Revert questionable part of
5506 the previous change.
5507
55082010-05-05 Michael Snyder <msnyder@vmware.com>
5509
5510 * mi/mi-out.c (mi_table_begin): Delete unused variable.
5511 * mi/mi-cmd-var.c (print_varobj): Delete unused variable.
5512 (mi_cmd_var_list_children): Delete unused variable.
5513 (varobj_update_one): Delete unused variable.
5514 * mi/mi-cmd-break.c (mi_cmd_break_insert): Delete unused variables.
0407b3f1 5515 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals):
c31a71f4
MS
5516 Delete unused variable.
5517 (mi_cmd_stack_list_variables): Delete unused variable.
5518 (list_args_or_locals): Delete unused variable.
0407b3f1 5519 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file):
c31a71f4
MS
5520 Delete unused variables.
5521 (mi_cmd_file_list_exec_source_files): Delete unused variable.
0407b3f1 5522 * mi/mi-cmd-target.c (mi_cmd_target_file_delete):
c31a71f4
MS
5523 Delete unused variable.
5524 * mi/mi-interp.c (mi_interpreter_exec): Delete unused variable.
5525 (mi_cmd_interpreter_exec): Delete unused variable.
5526 (mi_on_normal_stop): Delete unused variable.
5527 * mi/mi-main.c (run_one_inferior): Delete unused variable.
5528 (print_one_inferior): Delete unused variables.
5529 (mi_execute_command): Delete unused variable.
5530 (mi_cmd_execute): Delete unused variable.
5531 (timestamp): Delete unused variable.
5532
5533 * cli/cli-dump.c (dump_memory_to_file): Delete unused variable.
d36fc00b 5534 (restore_binary_file): Delete unused variable.
c31a71f4
MS
5535 * cli/cli-decode.c (deprecated_cmd_warning): Delete unused variables.
5536 * cli/cli-script.c (define_command): Delete unused variables.
d36fc00b
MS
5537 (recurse_read_control_structure): Delete unused variable.
5538 (script_from_file): Delete unused variable.
c31a71f4 5539 * cli/cli-cmds.c (complete_command): Delete unused variable.
d36fc00b
MS
5540 (disassemble_command): Delete unused variable.
5541
5542 * ax-gdb.c (gen_struct_elt_for_reference): Delete unused variables.
0407b3f1 5543 * tracepoint.c (delete_trace_variable_command):
d36fc00b
MS
5544 Delete unused variables.
5545 (encode_actions_1): Delete unused variables.
5546 (start_tracing): Delete unused variable.
5547 (trace_status_mi): Delete unused variable.
5548 (tfind_1): Delete unused variable.
5549 (trace_find_pc_command): Delete unused variable.
5550 (trace_find_line_command): Delete unused variables.
5551 (trace_find_range_command): Delete unused variables.
5552 (trace_find_outside_command): Delete unused variables.
5553 (parse_tracepoint_definition): Delete unused variables.
5554 (tfile_fetch_registers): Delete unused variable.
5555
9128a503
MS
5556 * dcache.c (dcache_init): Delete unused variable.
5557 (dcache_info): Delete unused variable.
5558
aa369b55 5559 * remote.c (remote_threads_info): Delete unused variable.
9128a503 5560 (process_stop_reply) :Delete unused variable.
aa369b55
MS
5561 (remote_get_trace_status): Delete unused variables.
5562
9e9547e4
MS
5563 * linux-thread-db.c (add_thread_db_info): Delete unused variable.
5564 (thread_from_lwp): Delete unused variable.
5565 (enable_thread_event_reporting): Delete unused variable.
5566 (check_for_thread_db): Delete unused variables.
5567 (thread_db_find_new_threads_2): Delete unused variable.
0407b3f1 5568
9e9547e4
MS
5569 * linux-fork.c (info_checkpoints_command): Delete unused variables.
5570 (checkpoint_command): Delete unused variable.
5571 (linux_fork_context): Delete unused variables.
5572
fa238c03 5573 * linux-nat.c (linux_parent_pid): Delete unused global variable.
75083f7e
MS
5574 (linux_tracefork_child): Delete unused variable.
5575 (linux_child_follow_fork): Delete unused variable.
5576 (linux_nat_detach): Delete unused variable.
5577 (linux_handle_extended_wait): Delete unused variable.
5578 (linux_nat_has_pending_sigint): Delete unused variable.
5579 (linux_nat_find_memory_regions): Delete unused variable.
5580 (linux_nat_make_corefile_notes): Delete unused variables.
5581 (linux_nat_info_proc_cmd): Delete unused variable.
5582 (linux_proc_pending_signals): Delete unused variable.
5583 (linux_nat_stop_lwp): Delete unused variables.
5584 (_initialize_linux_nat): Delete unused variable.
5585
fa238c03 5586 * ser-pipe.c (pipe_ops): Delete unused global variable.
2d148b94 5587
0407b3f1 5588 * linux-record.c (record_linux_system_call):
e0f069a3
MS
5589 Delete unused variables.
5590
789d24f0
MS
5591 * corelow.c (core_xfer_partial): Delete unused variables.
5592
1cd337a5 5593 * solib-svr4.c (find_program_interpreter): Delete unused variable.
0407b3f1 5594 (svr4_solib_create_inferior_hook): Add ifdef around
1cd337a5
MS
5595 conditionally-used variable declarations.
5596
b00e3f56
MS
5597 * solib.c (solib_find): Delete unused variable.
5598 (free_so_symbols): Delete unused variable.
5599 (info_sharedlibrary_command): Delete unused variable.
5600 (reload_shared_libraries_1): Delete unused variable.
5601 (_initialize_solib): Delete unused variable.
5602
90f62196
MS
5603 * i386-tdep.c (i386_supply_xstateregset) Delete unused variable.
5604 (i386_collect_xstateregset): Delete unused variable.
5605 * i387-tdep.c (i387_print_float_info): Delete unused variable.
5606
75721c66
MS
5607 * features/i386/i386-mmx.c (initialize_tdesc_i386_mmx):
5608 Delete unused variable 'type'.
5609
af33db37
JB
56102010-05-05 Joel Brobecker <brobecker@adacore.com>
5611
90f62196 5612 * gdbtypes.h (MAX_OF_TYPE, MIN_OF_TYPE): Delete macros. *
63db82b2
JB
5613 ada-lang.c: Remove comment mentioning these macros.
5614 * m2-exp.y: Delete commented out code.
af33db37 5615
0497f5b0
JB
56162010-05-05 Joel Brobecker <brobecker@adacore.com>
5617
5618 * sparc-tdep.c (sparc_structure_or_union_p): Return non-zero
5619 for array types.
5620 * sparc64-tdep.c (sparc64_structure_or_union_p): Likewise.
5621
6e39997a
PM
56222010-05-04 Pierre Muller <muller@ics.u-strasbg.fr>
5623
5624 ARI fix: Remove ATTRIBUTE_UNUSED throughout.
0407b3f1 5625 * arm-linux-tdep.c (arm_linux_cleanup_svc): Remove
6e39997a
PM
5626 ATTRIBUTE_UNUSED.
5627 (cleanup_kernel_helper_return): Likewise.
5628 * arm-tdep.c (copy_unmodified): Likewise.
5629 (copy_preload): Likewise.
5630 (copy_copro_load_store): Likewise.
5631 (cleanup_branch): Likewise.
5632 (copy_b_bl_blx): Likewise.
5633 (copy_bx_blx_reg): Likewise.
5634 (copy_alu_imm): Likewise.
5635 (copy_alu_reg): Likewise.
5636 (copy_alu_shifted_reg): Likewise.
5637 (cleanup_load): Likewise.
5638 (cleanup_store): Likewise.
5639 (cleanup_block_load_pc): Likewise.
5640 (cleanup_svc): Likewise.
5641 (copy_undef): Likewise.
5642 (copy_unpred): Likewise.
5643 * remote.c (register_remote_support_xml): Likewise.
5644
1412f70b
HZ
56452010-05-05 Hui Zhu <teawater@gmail.com>
5646
5647 * gdbarch.h (gdbarch_has_dos_based_file_system): Update comment.
5648
c4f7c687
MK
56492010-05-04 Mark Kettenis <kettenis@gnu.org>
5650
5651 * remote.c (register_remote_support_xml)
5652 (remote_query_supported_append, remote_query_supported): Add cast
5653 to NULL used as sentinel.
5654 * tracepoint.c (tvariables_info_1): Likewise.
5655 * utils.c (add_internal_problem_command): Likewise.
5656
63b4f126
MGD
56572010-05-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
5658
5659 * dwarf2loc.c (read_pieced_value, write_pieced_value,
5660 dwarf2_evaluate_loc_desc): Handle not being able to access DWARF
5661 registers gracefully.
5662
2f1bdd26
MGD
56632010-05-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
5664
0407b3f1 5665 * exec.c (print_section_info): Display entry point without arch
2f1bdd26
MGD
5666 specific parts.
5667
e1c34c5d
PM
56682010-05-04 Pierre Muller <muller@ics.u-strasbg.fr>
5669
5670 PR exp/11349.
5671 * printcmd.c (x_command): Only dereference once implicitly for
5672 TYPE_CODE_REF.
5673
ae462839
DE
56742010-05-03 Doug Evans <dje@google.com>
5675
5676 * event-loop.c (gdb_timer): Delete unused global.
5677 (create_timer): Update.
5678
1ac77ea1
JK
56792010-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5680
5681 * cp-namespace.c (cp_lookup_symbol_imports): Support ALIAS for the
5682 CURRENT->DECLARATION case.
5683 * cp-support.h (struct using_direct): Provide extended comment.
5684
7c54a108
MK
56852010-05-03 Mark Kettenis <kettenis@gnu.org>
5686
5687 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Renamed from
5688 HPPABSD_SIZEOF_GREGS.
5689 (HPPAOBSD_SIZEOF_FPREGS): New define.
5690 (hppaobsd_supply_gregset): Renamed from hppabsd_supply_gregset.
5691 (hppaobsd_supply_fpregset): New function.
5692 (hppaobsd_gregset): Renamed from hppabsd_gregset.
5693 (hppaobsd_fpregset): New variable.
5694 (hppaobsd_regset_from_core_section): Handle floating-point registers.
5695 (_initialize_hppabsd_tdep): Remove spurious blank line.
5696
278582cb
PM
56972010-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
5698
5699 PR pascal/11349.
5700 * p-valprint.c (pascal_value_print): Always dereference a value with
5701 type code TYPE_CODE_REF.
0407b3f1 5702
f0223081
PA
57032010-05-03 Pedro Alves <pedro@codesourcery.com>
5704
5705 * remote.c (remote_notice_signals): New.
5706 (remote_start_remote): In non-stop mode, update the remote end on
5707 which signals it can silently pass.
5708 (init_remote_ops): Install remote_notice_signals.
5709
c25c4a8b
JK
57102010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5711
5712 * cli/cli-cmds.h (error_no_arg): Remove. Move the comment ...
5713 * command.h (error_no_arg): ... here. Remove NORETURN, change
5714 ATTR_NORETURN to ATTRIBUTE_NORETURN.
5715 * defs.h (NORETURN, ATTR_NORETURN): Remove.
5716 (perror_with_name, verror, error, error_stream, vfatal, fatal)
5717 (internal_verror, internal_error, nomem): Remove NORETURN, change
5718 ATTR_NORETURN to ATTRIBUTE_NORETURN.
5719 * exceptions.c (throw_exception, deprecated_throw_reason, throw_verror)
5720 (throw_vfatal, throw_error): Remove NORETURN.
5721 (throw_it): Remove NORETURN, change ATTR_NORETURN to ATTRIBUTE_NORETURN.
5722 * exceptions.h (throw_exception, throw_verror, throw_vfatal)
5723 (throw_error, deprecated_throw_reason): Remove NORETURN, change
5724 ATTR_NORETURN to ATTRIBUTE_NORETURN.
5725 * linespec.c (cplusplus_error): Remove NORETURN, change ATTR_NORETURN
5726 to ATTRIBUTE_NORETURN for prototype, for the definition only remove
5727 NORETURN.
5728 * remote-mips.c (mips_error): Change NORETURN to ATTRIBUTE_NORETURN.
5729 * remote-sim.c (gdb_os_error): Change ATTR_NORETURN to
5730 ATTRIBUTE_NORETURN.
5731 * target.c (tcomplain): Likewise.
5732 * target.h (noprocess): Remove NORETURN, change ATTR_NORETURN to
5733 ATTRIBUTE_NORETURN.
5734 * utils.c (verror, error, vfatal, fatal, error_stream, internal_verror)
5735 (internal_error, perror_with_name, nomem): Remove NORETURN.
5736 * xml-support.h (gdb_xml_error): Change ATTR_NORETURN to
5737 ATTRIBUTE_NORETURN.
5738
a0b31db1
JK
57392010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5740
5741 * ada-lang.c (lim_warning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
5742 * amd64-tdep.c (amd64_insn_length_fprintf): Likewise.
5743 * cli-out.c (cli_field_fmt): New ATTRIBUTE_PRINTF.
5744 (cli_message, out_field_fmt): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
5745 * complaints.c (find_complaint): New ATTRIBUTE_PRINTF.
5746 (vcomplaint): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
5747 * complaints.h (complaint, internal_complaint): Likewise.
5748 * defs.h: Change ATTR_FORMAT to ATTRIBUTE_PRINTF in the top comment.
5749 (ATTR_FORMAT): Remove.
5750 (query, nquery, yquery, vprintf_filtered, vfprintf_filtered)
5751 (fprintf_filtered, fprintfi_filtered, printf_filtered, printfi_filtered)
5752 (vprintf_unfiltered, vfprintf_unfiltered, fprintf_unfiltered)
5753 (printf_unfiltered, xasprintf, xvasprintf, xstrprintf, xstrvprintf)
5754 (xsnprintf, verror, error, vfatal, fatal, internal_verror)
5755 (internal_error, internal_vwarning, internal_warning, warning)
5756 (vwarning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
5757 * disasm.c (fprintf_disasm): Likewise.
5758 * exceptions.c (throw_it): Likewise.
5759 * exceptions.h (exception_fprintf, throw_verror, throw_vfatal)
5760 (throw_error): Likewise.
5761 * language.h (type_error, range_error): Likewise.
5762 * linespec.c (cplusplus_error): Likewise.
5763 * mi/mi-interp.c (mi_interp_query_hook): Likewise.
5764 * mi/mi-out.c (mi_field_fmt, mi_message): Likewise.
5765 * monitor.c (monitor_debug): Likewise.
5766 * parser-defs.h (parser_fprintf): Likewise.
5767 * serial.h (serial_printf): Likewise.
5768 * tui/tui-hooks.c (tui_query_hook): Likewise.
5769 * ui-out.c (default_field_fmt, default_message, uo_field_fmt)
5770 (uo_message): Likewise.
5771 * ui-out.h (ui_out_field_fmt, ui_out_message): Likewise.
5772 * utils.c (vfprintf_maybe_filtered, internal_vproblem, defaulted_query):
5773 Likewise.
5774 * xml-support.h (gdb_xml_debug, gdb_xml_error): Likewise.
5775
02a45ac0
PA
57762010-05-02 Pedro Alves <pedro@codesourcery.com>
5777
5778 * cli-out.c (cli_table_begin, cli_table_body, cli_table_end)
5779 (cli_table_header, cli_begin, cli_end, cli_field_int)
5780 (cli_field_skip, cli_field_string, cli_field_fmt, cli_spaces)
5781 (cli_text, cli_message, cli_wrap_hint, cli_flush, cli_redirect):
5782 Delete forward declarations.
5783 (cli_ui_out_impl): Move below the callbacks.
5784 (_initialize_cli_out): Delete.
5785
1915ef4f
PA
57862010-05-02 Pedro Alves <pedro@codesourcery.com>
5787
5788 * README: Use consistent `GDB' and `GDBserver' spellings.
5789
0dfb946f
JK
57902010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5791
5792 * cli/cli-dump.h (parse_and_eval_with_error): Remove the declaration.
5793
4d533103
PA
57942010-05-01 Pedro Alves <pedro@codesourcery.com>
5795
5796 * infrun.c (prepare_for_detach): In non-stop, context switch to
5797 the thread that got the event before handling the event.
5798
705b5767
TT
57992010-04-30 Tom Tromey <tromey@redhat.com>
5800
5801 * symtab.c (symbol_set_names): Fix typo.
5802
3c0ee1a4
PM
58032010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
5804
5805 * python/py-param.c (parm_constants): Avoid ARI warning
5806 by adding ARI comment.
5807 (parmpy_init): Likewise.
5808
ea1fae46
PM
58092010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
5810
5811 * windows-tdep.c (windows_get_tlb_type): Remember last GDBARCH
5812 and created type for re-use.
5813
c24d0242
PM
58142010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
5815
5816 * NEWS: Mention gdbserver support for x86_64 Windows 64-bit.
5817
a26d8d11
DE
58182010-04-29 Doug Evans <dje@google.com>
5819
5820 * ser-base.h (reschedule): Delete prototype.
5821 * ser-base.c (reschedule): Make static.
5822
f8624c62
MGD
58232010-04-29 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
5824
5825 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Remove.
5826 (ARM_LINUX_JB_PC_FPA): Add, offset of PC in longjmp buffer for FPA.
0407b3f1 5827 (ARM_LINUX_JB_PC_EABI): Add, offset of PC in longjmp buffer for
f8624c62 5828 EABI.
0407b3f1 5829 (arm_linux_init_abi): Set up JB_PC field dependent on FP model in
f8624c62
MGD
5830 use.
5831
e66408ed
PA
58322010-04-29 Pedro Alves <pedro@codesourcery.com>
5833
5834 PR gdb/11557
5835
5836 * regcache.c (registers_changed): Rename to ...
5837 (registers_changed_ptid): ... this, and only delete register cache
5838 entries matching the ptid filter argument.
5839 (registers_changed): Reimplement on top of registers_changed_ptid.
5840 * regcache.h (registers_changed_ptid): Declare.
5841 * target.c (target_resume): Flush register caches.
5842
d7b32ed3 58432010-04-29 Phil Muldoon <pmuldoon@redhat.com>
0407b3f1
AS
5844 Tom Tromey <tromey@redhat.com>
5845 Thiago Jung Bauermann <bauerman@br.ibm.com>
5846
5847 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-parameter.
5848 (SUBDIR_PYTHON_SRCS): Likewise.
5849 (py-parameter.o): New rule.
5850 * python/py-parameter.c: New file.
5851 * python/python-internal.h (gdbpy_initialize_parameter)
5852 (gdbpy_parameter, gdbpy_parameter_value)
5853 (gdbpy_parse_command_name): Declare.
5854 * python/py-cmd.c (parse_command_name): Rename to
5855 gdbpy_parse_command_name.
5856 (gdbpy_parse_command_name): Accept a starting list parameter and
5857 use over cmdlist.
5858 (cmdpy_init): Use gdbpy_parse_command_name.
5859 * python/python.c (parameter_to_python): Rename to
5860 gdbpy_parameter_to_python. Accept enum var_types and value.
5861 (gdbpy_parameter): Use gdbpy_parameter_value.
5862 (_initialize_python): Call gdbpy_initialize_parameters.
d7b32ed3 5863
ce72ce41
MGD
58642010-04-29 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
5865
5866 * MAINTAINERS: Add myself for write after approval privileges.
5867
6aecb9c2
JB
58682010-04-29 Mihail Zenkov <mihail.zenkov@gmail.com>
5869
5870 D language support.
5871 * Makefile.in (SFILES): Add d-lang.c d-valprint.c.
5872 (COMMON_OBS): Add d-lang.o d-valprint.o.
5873 (HFILES_NO_SRCDIR): Add d-lang.h.
5874 * NEWS: Mention D language support.
5875 * c-lang.c (c_emit_char, exp_descriptor_c): Make public.
5876 * c-lang.h (c_emit_char, exp_descriptor_c): Add declaration.
5877 * d-lang.c: New file.
5878 * d-lang.h: New file.
5879 * d-valprint.c: New file.
5880 * defs.h (enum language): Add language_d.
5881 * dwarf2read.c (set_cu_language): Add DW_LANG_D.
5882 * language.c (binop_result_type, integral_type, character_type)
5883 (string_type, boolean_type, structured_type): Add language_d.
5884 * symfile.c (init_filename_language_table): Add language_d.
5885 * symtab.c: Include d-lang.h.
5886 (symbol_init_language_specific, symbol_find_demangled_name)
5887 (symbol_natural_name, lookup_symbol_in_language)
5888 (symbol_demangled_name, symbol_matches_domain): Add language_d.
5889
6f992fbf
JB
58902010-04-27 Joel Brobecker <brobecker@adacore.com>
5891
5892 * solib-svr4.c (solib_svr4_r_map): Expand function description.
5893
dde59185
JB
58942010-04-27 Joel Brobecker <brobecker@adacore.com>
5895
5896 * symfile.c (init_filename_language_table): Register .dg files
5897 with language_ada.
5898
d09ce91e
JB
58992010-04-27 Joel Brobecker <brobecker@adacore.com>
5900
5901 * gdbtypes.h (struct main_type): Expand comment about target_type
5902 field.
5903
67f1675e
JB
59042010-04-27 Pedro Alves <pedro@codesourcery.com>
5905 Tristan Gingold <gingold@adacore.com>
02aeec7b
JB
5906
5907 * symfile.c (reread_symbols): Also search for file in libraries.
5908 Update comment.
5909
dfd0fe27
JB
59102010-04-27 Joel Brobecker <brobecker@adacore.com>
5911
5912 * configure.tgt: Treat x86-lynxos targets as x86 bareboard targets
5913 in terms of configuration.
5914
0133421a
JK
59152010-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5916
5917 * objfiles.c: Include solist.h.
5918 (free_all_objfiles): New variable so. Check stale solist objfiles.
5919 * symfile.c (symbol_file_clear): Swap the order of free_all_objfiles
5920 and no_shared_libraries.
5921
e78f4312
JB
59222010-04-27 Joel Brobecker <brobecker@adacore.com>
5923
5924 ARI warning fix.
5925 * python/py-auto-load.c (source_section_scripts): Remove trailing
5926 new-line in i18n string.
5927
9214d371
DE
59282010-04-26 Doug Evans <dje@google.com>
5929
5930 * serial.c (serial_write): Handle serial_debug_p akin to serial_read.
5931
3f172e24
TT
59322010-04-26 Tom Tromey <tromey@redhat.com>
5933
5934 * cli/cli-decode.c (complete_on_cmdlist): Make two passes over the
5935 command list.
5936
e790e06e
PM
59372010-04-26 Pierre Muller <muller@ics.u-strasbg.fr>
5938
5939 Removal of config/i386/nm-i386sol2.h native configuration file.
5940 * config/i386/nm-i386sol2.h: Remove file.
5941 * config/i386/i386sol2.mh: Remove NAT_FILE definition.
5942 * config/i386/sol2-64.mh: Idem.
88562582
PM
5943 * config/djgpp/fnchange.lst: Remove reference to that file.
5944 * Makefile.in (HFILES_NO_SRCDIR): Idem.
e790e06e 5945
b7da9e9f
PM
59462010-04-26 Pierre Muller <muller@ics.u-strasbg.fr>
5947
5948 PR breakpoints/11531.
5949 * config/i386/nm-i386sol2.h (CANNOT_STEP_HW_WATCHPOINTS): Remove
5950 macro definition and related comment.
5951 * infrun.c (CANNOT_STEP_HW_WATCHPOINTS): Remove macro.
5952 (resume): Remove code and comment related to this macro.
5953
72f6eb52
JK
59542010-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
5955
5956 * cp-namespace.c (cp_lookup_symbol_in_namespace): Fix alloca size.
5957 Fix whitespace.
5958
ab38a727
PA
59592010-04-24 Pedro Alves <pedro@codesourcery.com>
5960
5961 * defs.h: Adjust comment.
5962 * filesystem.h, filesystem.c: New files.
5963 * Makefile.in (SFILES): Add filesystem.c.
5964 (COMMON_OBS): Add filesystem.o.
5965 * solib.c (solib_find): Handle DOS-based filesystems. Handle
5966 different target and host path flavours.
5967 * arm-symbian-tdep.c (arm_symbian_init_abi): Set
5968 has_dos_based_file_system on the gdbarch.
5969 * arm-wince-tdep.c (arm_wince_init_abi): Ditto.
5970 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Ditto.
5971 * i386-tdep.c (i386_go32_init_abi): Ditto.
5972 * gdbarch.sh (has_dos_based_file_system): New.
5973 * gdbarch.h, gdbarch.c: Regenerate.
5974 * NEWS: Mention improved support for remote targets with DOS-based
5975 filesystems. Mention new `set/show target-file-system-kind'
5976 commands.
5977
35c9c7ba
SS
59782010-04-23 Stan Shebs <stan@codesourcery.com>
5979
5980 * ax.h (struct agent_expr): Merge in agent_reqs fields, add some
5981 comments.
5982 (struct agent_reqs): Remove.
5983 (ax_reg_mask): Declare.
5984 * ax-general.c (new_agent_expr): Add gdbarch argument, set new fields.
5985 (free_agent_expr): Free reg_mask.
5986 (ax_print): Add scope and register mask info.
5987 (ax_reqs): Remove agent_reqs argument, use agent expression
5988 fields, and move part of register mask computation to...
5989 (ax_reg_mask): New function.
5990 * ax-gdb.c (gen_trace_static_fields): Call it.
5991 (gen_traced_pop): Ditto.
5992 (is_nontrivial_conversion): Add dummy gdbarch to new_agent_expr.
5993 (gen_trace_for_var): Pass gdbarch to new_agent_expr.
5994 (gen_trace_for_expr): Ditto, and clear optimized_out flag.
5995 (gen_eval_for_expr): Ditto, and require an rvalue.
5996 (agent_command): Call ax_reqs.
5997 (agent_eval_command): Ditto.
5998 * tracepoint.c (report_agent_reqs_errors): Use agent expression fields.
5999 (validate_action_line): Ditto.
6000 (collect_symbol): Ditto.
6001 (encode_actions_1): Ditto.
6002
492928e4
JK
60032010-04-23 Daniel Jacobowitz <dan@codesourcery.com>
6004 Paul Pluzhnikov <ppluzhnikov@google.com>
6005 Jan Kratochvil <jan.kratochvil@redhat.com>
6006
6007 Fix deadlock on looped list of loaded shared objects.
6008 * solib-svr4.c (LM_PREV): New function.
6009 (IGNORE_FIRST_LINK_MAP_ENTRY): Use it.
6010 (svr4_current_sos): Check for correct l_prev. New variables prev_lm
6011 and next_lm. Clear prev_lm for solib_svr4_r_ldsomap.
6012 * config/djgpp/fnchange.lst: Add translation for solib-corrupted.exp.
6013
66d09542
DE
60142010-04-23 Doug Evans <dje@google.com>
6015
88a1906b
DE
6016 * configure.ac (CONFIG_SRCS): Add py-auto-load.o even if not using
6017 python.
6018 * configure: Regenerate.
6019 * main.c: #include "python/python.h".
6020 (captured_main): Defer loading auto-loaded scripts until after
6021 local_gdbinit has been sourced.
6022 * python/py-auto-load.c (gdbpy_global_auto_load): New global.
6023 (load_auto_scripts_for_objfile): New function.
6024 (auto_load_new_objfile): Call it.
6025 * python/python.h (gdbpy_global_auto_load): Declare.
6026 (load_auto_scripts_for_objfile): Declare.
6027
66d09542
DE
6028 Add support for auto-loading scripts from .debug_gdb_scripts section.
6029 * NEWS: Add entry for .debug_gdb_scripts.
6030 * Makefile.in SUBDIR_PYTHON_OBS): Add py-auto-load.o.
6031 (SUBDIR_PYTHON_SRCS): Add py-auto-load.c.
6032 (py-auto-load.o): New rule.
6033 * cli/cli-cmds.c (find_and_open_script): Make externally visible.
6034 * cli/cli-cmds.h (find_and_open_script): Update prototype.
6035 * python/py-auto-load.c: New file.
6036 * python/python-internal.h: #include <stdio.h>.
6037 (set_python_list, show_python_list): Declare.
6038 (gdbpy_initialize_auto_load): Declare.
6039 (source_python_script_for_objfile): Declare.
6040 * python/python.c: Remove #include of observer.h.
6041 (gdbpy_auto_load): Moved to py-auto-load.c.
6042 (GDBPY_AUTO_FILENAME): Ditto.
6043 (gdbpy_new_objfile): Delete.
6044 (source_python_script_for_objfile): New function.
6045 (set_python_list, show_python_list): Make externally visible.
6046 (_initialize_python): Move "auto-load" command to py-auto-load.c
6047 and observer_attach_new_objfile to py-auto-load.c.
6048
3a48e6ff 60492010-04-23 Jerome Guitton <guitton@adacore.com>
0407b3f1 6050
3a48e6ff
JG
6051 * alpha-tdep.c (INSN_OPCODE, MEM_RA, MEM_RB, MEM_DISP, BR_RA)
6052 (OPR_FUNCTION, OPR_HAS_IMMEDIATE, OPR_RA, OPR_RC, OPR_LIT): New macros.
6053 (lda_opcode, stq_opcode, bne_opcode, subq_opcode, subq_function):
6054 New constants.
6055 (alpha_heuristic_analyze_probing_loop): New function.
6056 (alpha_heuristic_frame_unwind_cache): In the prologue analysis, detect
6057 and handle cases when a stack probe loop is generated.
6058 * alpha-mdebug-tdep.c (alpha_mdebug_frameless): New function.
6059 (alpha_mdebug_max_frame_size_exceeded): New function.
6060 (alpha_mdebug_after_prologue): Use alpha_mdebug_frameless.
6061 (alpha_mdebug_frame_sniffer, alpha_mdebug_frame_base_sniffer):
6062 Return 0 when the maximum debuggable frame size has been exceeded.
6063
e4166a49
JB
60642010-04-23 Joel Brobecker <brobecker@adacore.com>
6065
6066 Fix ARI warning.
6067 * ppc-linux-nat.c (booke_cmp_hw_point): Do not mark inline.
6068
8bd10a10
CM
60692010-04-20 Chris Moller <cmoller@redhat.com>
6070
6071 PR 10179
6072
6073 * symtab.c (rbreak_command): Added code to include a filename
6074 specification in the rbreak argument.
6075 * NEWS: Added a brief description of filename-qualified rbreak.
6076
c0201579
JK
60772010-04-22 Jan Kratochvil <jan.kratochvil@redhat.com>
6078
6079 Fix crashes on dangling display expressions.
6080 * ada-lang.c (ada_operator_check): New function.
6081 (ada_exp_descriptor): Fill-in the field operator_check.
6082 * c-lang.c (exp_descriptor_c): Fill-in the field operator_check.
6083 * jv-lang.c (exp_descriptor_java): Likewise.
6084 * m2-lang.c (exp_descriptor_modula2): Likewise.
6085 * scm-lang.c (exp_descriptor_scm): Likewise.
6086 * parse.c (exp_descriptor_standard): Likewise.
6087 (operator_check_standard): New function.
6088 (exp_iterate, exp_uses_objfile_iter, exp_uses_objfile): New functions.
6089 * parser-defs.h (struct exp_descriptor): New field operator_check.
6090 (operator_check_standard, exp_uses_objfile): New declarations.
6091 * printcmd.c: Remove the inclusion of solib.h.
6092 (display_uses_solib_p): Remove the function.
6093 (clear_dangling_display_expressions): Call lookup_objfile_from_block
6094 and exp_uses_objfile instead of display_uses_solib_p.
6095 * solist.h (struct so_list) <objfile>: New comment.
6096 * symtab.c (lookup_objfile_from_block): Remove the static qualifier.
6097 * symtab.h (lookup_objfile_from_block): New declaration.
6098 (struct general_symbol_info) <obj_section>: Extend the comment.
6099
6ffbb7ab
TJB
61002010-04-22 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
6101 Thiago Jung Bauermann <bauerman@br.ibm.com>
6102
6103 * ppc-linux-nat.c (PTRACE_GET_DEBUGREG): Update comment.
6104 (PPC_PTRACE_GETWDBGINFO, PPC_PTRACE_SETHWDEBUG, PPC_PTRACE_DELHWDEBUG,
6105 ppc_debug_info, PPC_DEBUG_FEATURE_INSN_BP_RANGE,
6106 PPC_DEBUG_FEATURE_INSN_BP_MASK, PPC_DEBUG_FEATURE_DATA_BP_RANGE,
6107 PPC_DEBUG_FEATURE_DATA_BP_MASK, ppc_hw_breakpoint,
6108 PPC_BREAKPOINT_TRIGGER_EXECUTE, PPC_BREAKPOINT_TRIGGER READ,
6109 PPC_BREAKPOINT_TRIGGER_WRITE, PPC_BREAKPOINT_TRIGGER_RW,
6110 PPC_BREAKPOINT_MODE_EXACT PPC_BREAKPOINT_MODE_RANGE_INCLUSIVE,
6111 PPC_BREAKPOINT_MODE_RANGE_EXCLUSIVE, PPC_BREAKPOINT_MODE_MASK,
6112 PPC_BREAKPOINT_CONDITION_NONE, PPC_BREAKPOINT_CONDITION_AND,
6113 PPC_BREAKPOINT_CONDITION_EXACT, PPC_BREAKPOINT_CONDITION_OR,
6114 PPC_BREAKPOINT_CONDITION_AND_OR, PPC_BREAKPOINT_CONDITION_BE_ALL,
6115 PPC_BREAKPOINT_CONDITION_BE_SHIFT, PPC_BREAKPOINT_CONDITION_BE):
6116 Define, in case <ptrace.h> doesn't provide it.
6117 (booke_debug_info): New variable.
6118 (max_slots_number): Ditto.
6119 (hw_break_tuple): New struct.
6120 (thread_points): Ditto.
6121 (ppc_threads): New variable.
6122 (PPC_DEBUG_CURRENT_VERSION): New define.
6123 (have_ptrace_new_debug_booke): New function.
6124 (ppc_linux_check_watch_resources): Renamed to ...
6125 (ppc_linux_can_use_hw_breakpoint): ... this. Handle BookE processors.
6126 (ppc_linux_region_ok_for_hw_watchpoint): Handle BookE processors.
6127 (booke_cmp_hw_point): New function.
6128 (booke_find_thread_points_by_tid): Ditto.
6129 (booke_insert_point): Ditto.
6130 (booke_remove_point): Ditto.
6131 (ppc_linux_insert_hw_breakpoint): Ditto.
6132 (ppc_linux_remove_hw_breakpoint): Ditto.
6133 (get_trigger_type): Ditto.
6134 (ppc_linux_insert_watchpoint): Handle BookE processors.
6135 (ppc_linux_remove_watchpoint): Ditto.
6136 (ppc_linux_new_thread): Ditto.
6137 (ppc_linux_thread_exit): New function..
6138 (ppc_linux_stopped_data_address): Handle BookE processors.
6139 (ppc_linux_watchpoint_addr_within_range): Ditto.
6140 (_initialize_ppc_linux_nat): Initialize to_insert_hw_breakpoint and
6141 to_remove_hw_breakpoint fields of the target operations struct.
6142 Add observe for the thread_exit event.
6143
be0d2954
L
61442010-04-22 H.J. Lu <hongjiu.lu@intel.com>
6145
6146 * i386-linux-nat.c (regmap): Removed.
6147 (fetch_register): Replace regmap with
6148 i386_linux_gregset_reg_offset.
6149 (store_register): Likewise.
6150 (supply_gregset): Likewise.
6151 (fill_gregset): Likewise.
6152
6153 * i386-linux-tdep.c (i386_linux_gregset_reg_offset): Make it
6154 global.
6155
6156 * i386-linux-tdep.h (i386_linux_gregset_reg_offset): New.
6157
f56dcb88
CM
61582010-04-22 Chris Moller <cmoller@redhat.com>
6159
6160 * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
758afad7
L
6161 method of popping recursion-detection stack with a method based on
6162 obstack_object_size(). (Similar to the PR9167 patch below, but for
f56dcb88
CM
6163 the static array obstack rather than the static member obstack.)
6164
6cd6a2ae
L
61652010-04-22 H.J. Lu <hongjiu.lu@intel.com>
6166
6167 * amd64-linux-nat.c (amd64_linux_gregset64_reg_offset): Removed.
6168 (_initialize_amd64_linux_nat): Replace
6169 amd64_linux_gregset64_reg_offset with
6170 amd64_linux_gregset_reg_offset.
6171
6172 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Make it
6173 global.
6174
6175 * amd64-tdep.h (amd64_linux_gregset_reg_offset): New.
6176
621791b8
PM
61772010-04-22 Pierre Muller <muller@ics.u-strasbg.fr>
6178
6179 PR stabs/11479.
6180 * stabsread.c (set_length_in_type_chain): New function.
6181 (read_struct_type): Call set_length_in_type_chain function.
6182 (read_enum_type): Idem.
6183
105c2d85
SS
61842010-04-21 Stan Shebs <stan@codesourcery.com>
6185 Nathan Sidwell <nathan@codesourcery.com>
6186
6187 * tracepoint.c (trace_save): Open in binary mode.
6188
9a22f0d0
PM
61892010-04-22 Pierre Muller <muller@ics.u-strasbg.fr>
6190
6191 * gdbtypes.h (builtin_type): Add builtin_char16 and builtin_char32
6192 fields.
0407b3f1 6193 * gdbtypes.c (gdbtypes_post_init): Set builtin_char16 and
9a22f0d0
PM
6194 builtin_char32 fields.
6195 * printcmd.c (decode_format): Set char size to '\0'
6196 for strings unless explicit size is given.
6197 (print_formatted): Correct calculation of NEXT_ADDRESS
6198 for 16 or 32 bit strings.
6199 (do_examine): Do not force byte size for strings.
6200 Use builtin_char16 and builtin_char32 types to display
0407b3f1 6201 16 or 32 bit-wide strings.
9a22f0d0
PM
6202 (x_command): Set LAST_SIZE to 'b' for string type.
6203
f335d1b3
L
62042010-04-21 H.J. Lu <hongjiu.lu@intel.com>
6205
6206 PR corefiles/11523
6207 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
6208 XCR0 first.
6209
6210 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Return 0 if
6211 there is no .reg-xstate section.
6212 (i386_linux_core_read_description): Check XCR0 first.
6213
a9789a6b
MF
62142010-04-21 Mike Frysinger <vapier@gentoo.org>
6215
6216 * gdb/sparc-tdep.c (sparc32_store_return_value): Add gdb_assert ()
6217 for len <= 8.
6218
0b66f317
CM
62192010-04-21 Chris Moller <cmoller@redhat.com>
6220
6221 PR 9167
6222 * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
32d7376d
L
6223 method of popping recursion-detection stack with a method based on
6224 obstack_object_size().
0b66f317 6225
6e354e5e
PM
62262010-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
6227
6228 PR pascal/11492.
6229 * p-valprint.c (pascal_val_print): Fix default printing of integer
6230 arrays.
6231
57174f31
PM
62322010-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
6233
6234 Fix compilation warning on gcc-4.1.2.
6235 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Initialize
6236 local variable`pc' to zero.
6237
6fbc7cd8
JB
62382010-04-20 Joel Brobecker <brobecker@adacore.com>
6239
6240 Implement thread support with core files on alpha-tru64.
6241 * dec-thread.c (dec_thread_find_new_threads): New function,
6242 extracted from resync_thread_list.
6243 (resync_thread_list): Add OPS parameter. Replace extracted-out
6244 code by call to dec_thread_find_new_threads.
6245 (dec_thread_wait): Update call to resync_thread_list.
6246 (init_dec_thread_ops): Set dec_thread_ops.to_find_new_threads.
6247
438c98a1
JB
62482010-04-20 Joel Brobecker <brobecker@adacore.com>
6249
6250 * ada-lang.c (value_pointer): New function.
6251 (make_array_descriptor): Call value_pointer to convert addresses to
6252 pointers.
6253
2971b56b
JB
62542010-04-20 Joel Brobecker <brobecker@adacore.com>
6255
6256 * rs6000-aix-tdep.c: #include exceptions.h.
6257 (rs6000_convert_from_func_ptr_addr): If an exception is thrown
6258 while reading the memory at ADDR, then ADDR cannot be a function
6259 descriptor.
6260
be942545
JB
62612010-04-20 Joel Brobecker <brobecker@adacore.com>
6262
6263 * ada-typeprint.c (ada_print_typedef): New function.
6264 * ada-lang.h (ada_print_typedef): Add declaration.
6265 * ada-lang.c (ada_language_defn): set la_print_typdef field
6266 to ada_print_typedef.
6267
1ca8fce0
JB
62682010-04-20 Joel Brobecker <brobecker@adacore.com>
6269
6270 * procfs.c (procfs_address_to_host_pointer): Only define when used.
6271
e9ef4f39
JB
62722010-04-20 Joel Brobecker <brobecker@adacore.com>
6273
6274 * procfs.c (iterate_over_mappings_cb_ftype): New typedef.
6275 (iterate_over_mappings): Adjust function profile. Add declaration.
6276 (insert_dbx_link_bpt_in_region, info_mappings_callback):
6277 Adjust accordingly.
6278
e294797a
JB
62792010-04-20 Joel Brobecker <brobecker@adacore.com>
6280
6281 * procfs.c (solib_mappings_callback): Move function up to avoid
6282 a compiler warning.
6283
a223f1e7
JB
62842010-04-20 Joel Brobecker <brobecker@adacore.com>
6285
6286 * procfs.c (find_signalled_thread, find_stop_signal): Move
6287 these functions down to define them only when used.
6288
0c3acc09
JB
62892010-04-20 Joel Brobecker <brobecker@adacore.com>
6290
6291 * valprint.c (common_val_print): Fix the value before extracting
6292 its contents.
6293 * ada-lang.c (ada_to_fixed_value): Make this function extern.
6294 * ada-lang.h (ada_to_fixed_value): New function declaration.
6295 * ada-valprint.c (ada_value_print): Use ada_to_fixed_value
6296 to avoid code duplication and fix a bug in the handling of
6297 fixed types contents.
6298
31ef98ae
TT
62992010-04-20 Tom Tromey <tromey@redhat.com>
6300
6301 * dwarf2read.c (dwarf2_compute_name): Handle DW_AT_linkage_name.
6302 (read_partial_die): Likewise.
6303 (dwarf_attr_name): Likewise.
6304
ec31cde5 63052010-04-20 Chris Moller <cmoller@redhat.com>
0407b3f1 6306
ec31cde5
CM
6307 PR 10867
6308
6309 * cp-valprint.c (global): Adding new static array recursion
6310 detection obstack.
6311 (cp_print_value_fields, cp_print_static_field): Added new static
6312 array recursion detection code.
6313
e0e0e543
MK
63142010-04-20 Mark Kettenis <kettenis@gnu.org>
6315
6316 * i386-linux-tdep.c (i386_linux_regset_sections): Size of the
6317 general-purpose register set should be 68 instead of 144.
6318 (i386_linux_sse_regset_sections): Likewise.
6319 (i386_linux_avx_regset_sections): Likewise.
6320
08922a10
SS
63212010-04-20 Stan Shebs <stan@codesourcery.com>
6322 Nathan Sidwell <nathan@codesourcery.com>
6323
6324 * dwarf2loc.c (struct axs_var_loc): New struct.
6325 (dwarf2_tracepoint_var_loc): New function.
6326 (dwarf2_tracepoint_var_access): New function.
6327 (dwarf2_tracepoint_var_ref): Use dwarf2_tracepoint_var_loc, deal
6328 with DW_OP_piece.
6329 (locexpr_describe_location_piece): New function.
6330 (locexpr_describe_location_1): New function.
6331 (locexpr_describe_location): Call it, update signature.
6332 (loclist_describe_location): Rewrite to loop over locations,
6333 update signature.
6334 * symtab.h (struct symbol_computed_ops): Add address to
6335 describe_location arguments, return void.
6336 * printcmd.c (address_info): Get context PC, pass to computed
6337 location description.
6338 * tracepoint.c (scope_info): Ditto.
6339 * ax-gdb.c (trace_kludge): Export.
6340
2dc7f7b3
TT
63412010-04-20 Tom Tromey <tromey@redhat.com>
6342
6343 * dwarf2-frame.c (decode_frame_entry_1): Handle CIE version 4.
6344 (struct dwarf2_cie) <segment_size>: New field.
6345 * dwarf2read.c (partial_read_comp_unit_head): Accept DWARF 4.
6346 (skip_one_die): Handle DW_FORM_flag_present, DW_FORM_sec_offset,
6347 DW_FORM_exprloc.
6348 (read_attribute_value): Handle DW_FORM_flag_present,
6349 DW_FORM_sec_offset, DW_FORM_exprloc.
6350 (dump_die_shallow): Likewise.
6351 (attr_form_is_section_offset): Handle DW_FORM_sec_offset.
6352 (dwarf2_const_value): Handle DW_FORM_exprloc.
6353 (attr_form_is_block): Likewise.
6354 (struct line_header) <maximum_ops_per_instruction>: New field.
6355 (dwarf_decode_line_header): Set new field.
6356 (dwarf_decode_lines): Handle new field.
6357
ce4b0682
SDJ
63582010-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6359
6360 * f-exp.y: Add new production to recognize the `logical*8' type.
6361 (LOGICAL_S8_KEYWORD): New token.
6362 * f-lang.c (enum f_primitive_types)
6363 <f_primitive_type_logical_s8>: New field.
6364 (f_language_arch_info): Handling `logical*8' type.
6365 (build_fortran_types): Building `logical*8' type.
6366 * f-lang.h (struct builtin_f_type) <builtin_logical_s8>: New field.
6367
ff9f22f1
DE
63682010-04-19 Doug Evans <dje@google.com>
6369
6370 * ser-base.c (generic_readchar): Watch for EOF in read of error_fd.
6371 * ser-pipe.c (pipe_open): Fix file descriptor leaks.
6372 (pipe_close): Ditto.
6373
437125bd
PM
63742010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6375
6376 * configure.tgt (x86_64-*-mingw*): Set BUILD_GDBSERVER to yes.
6377
e8e6c82e
PM
63782010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6379
6380 * windows-tdep.c (windows_get_tlb_type): Change current_seh.handle
6381 type to void function.
6382
4136fdd2
SS
63832010-04-19 Stan Shebs <stan@codesourcery.com>
6384 Vladimir Prus <vladimir@codesourcery.com>
6385
6386 * tracepoint.c (tfind_1): Add missing newline, report exit from
6387 tfind mode as such.
6388 * target.c (update_current_target): Make default
6389 to_trace_find return -1.
6390
0c4b2e63
MF
63912010-04-19 Mike Frysinger <vapier@gentoo.org>
6392
6393 * objc-lang.c (find_methods): Move symname check up.
6394
78076abc
PA
63952010-04-19 Pedro Alves <pedro@codesourcery.com>
6396
6397 * ada-lang.c (print_recreate_exception)
6398 <ex_catch_exception_unhandled>: It's "catch exception unhandled",
6399 not "catch unhandled".
6400
6149aea9
PA
64012010-04-19 Pedro Alves <pedro@codesourcery.com>
6402
6403 PR breakpoints/8554.
6404
6405 Implement `save-breakpoints'.
6406
6407 * breakpoint.c (save_cmdlist): New.
6408 (breakpoint_set_cmdlist, breakpoint_show_cmdlist): Moved up close
6409 to save_cmdlist.
6410 (print_recreate_catch_fork): New.
6411 (catch_fork_breakpoint_ops): Install it.
6412 (print_recreate_catch_vfork): New.
6413 (catch_vfork_breakpoint_ops): Install it.
6414 (print_recreate_catch_syscall): New.
6415 (catch_syscall_breakpoint_ops): Install it.
6416 (print_recreate_catch_exec): New.
6417 (catch_exec_breakpoint_ops): Install it.
6418 (print_recreate_exception_catchpoint): New.
6419 (gnu_v3_exception_catchpoint_ops): Install it.
6420 (save_breakpoints): New, based on tracepoint_save_command, but
6421 handle all breakpoint types.
6422 (save_breakpoints_command): New.
6423 (tracepoint_save_command): Rename to...
6424 (save_tracepoints_command): ... this, and reimplement using
6425 save_breakpoints.
6426 (save_command): New.
6427 (_initialize_breakpoints): Install the "save" command prefix.
6428 Install the "save breakpoints" command. Make "save-tracepoints" a
6429 deprecated alias for "save tracepoints".
6430 * breakpoint.h (struct breakpoint_ops): New field `print_recreate'.
6431 * ada-lang.c (print_recreate_exception): New.
6432 (print_recreate_catch_exception): New.
6433 (catch_exception_breakpoint_ops): Install it.
6434 (print_recreate_catch_exception_unhandled): New.
6435 (catch_exception_unhandled_breakpoint_ops): Install it.
6436 (print_recreate_catch_assert): New.
6437 (catch_assert_breakpoint_ops): Install it.
6438
6439 * NEWS: Mention the new `save breakpoints' command. Mention the
6440 new `save tracepoints' alias and that `save-tracepoints' is now
6441 deprecated.
6442
0a8fce9a
PA
64432010-04-18 Pedro Alves <pedro@codesourcery.com>
6444
6445 PR tui/9217
6446
6447 * tui/tui-out.c: Include cli-out.h.
6448 (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
6449 (tui_begin, tui_end, tui_field_int, tui_field_skip)
6450 (tui_field_string, tui_field_fmt, tui_spaces, tui_text)
6451 (tui_message, tui_wrap_hint, tui_flush): Delete forward
6452 declarations.
6453 (struct ui_out_data): Rename to...
6454 (struct tui_ui_out_data): ... this. Remove `stream' and
6455 `suppress_output' fields, and inherit cli_ui_out_data.
6456 (tui_out_data): New typedef.
6457 (tui_ui_out_impl): Don't initialize fields staticaly.
6458 (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
6459 (tui_begin, tui_end): Delete.
6460 (tui_field_int): Adjust to delegate most work to the base type.
6461 (tui_field_skip): Delete.
6462 (tui_field_string, tui_field_fmt): Adjust comment. Adjust to
6463 delegate most work to the base type.
6464 (tui_spaces): Delete.
6465 (tui_text): Adjust to delegate most work to the base type.
6466 (tui_message): Delete.
6467 (tui_wrap_hint): Delete.
6468 (tui_flush): Delete.
6469 (out_field_fmt): Delete.
6470 (field_separator): Delete.
6471 (tui_out_new): Adjust to initialize the base type.
6472 (_initialize_tui_out): Initialize tui_ui_out_impl.
6473 * cli-out.c (struct ui_out_data): Moved out to cli-out.h, renamed
6474 cli_ui_out_data.
6475 (cli_out_data): Adjust.
6476 (cli_ui_out_impl): Make extern.
6477 (cli_table_header, cli_field_int, cli_field_skip): Use
6478 uo_field_string instead of cli_field_string.
6479 (cli_redirect): Adjust to use cli_out_data.
6480 (cli_out_data_ctor): New.
6481 (cli_out_new): Use it.
6482 * cli-out.h (struct ui_file): Remove forward declaration.
6483 (struct cli_ui_out_data): New, moved from cli-out.c, and renamed.
6484 (cli_ui_out_impl): Declare.
6485 (cli_out_data_ctor): Declare.
6486 * ui-out.c (struct ui_out) <data>: Change type to void pointer.
6487 (uo_field_string): No longer static.
6488 (ui_out_data): Change return type to void pointer.
6489 (ui_out_new): Change `data' parameter type to void pointer.
6490 * ui-out.h (struct ui_out_data): Don't forward declare.
6491 (ui_out_data): Change return type to void pointer.
6492 (ui_out_new): Change `data' parameter type to void pointer.
6493 (uo_field_string): Declare.
6494
172240dd
PA
64952010-04-17 Pedro Alves <pedro@codesourcery.com>
6496
6497 * ui-file.c (tee_file_isatty): Return whether `tee->one' is a tty,
6498 instead of always false.
6499
ed41462c
L
65002010-04-17 H.J. Lu <hongjiu.lu@intel.com>
6501
6502 PR corefiles/11511
6503 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Support
6504 orig_rax.
6505
cc60f2e3
PA
65062010-04-17 Pedro Alves <pedro@codesourcery.com>
6507
6508 * breakpoint.c (watchpoints_triggered): Use
6509 is_hardware_watchpoint.
6510 (watchpoints_triggered): Ditto.
6511 (bpstat_check_location): Use is_watchpoint and
6512 is_hardware_watchpoint.
6513 (bpstat_check_watchpoint): Use is_watchpoint and
6514 is_hardware_watchpoint.
6515 (bpstat_stop_status): Fix comment.
6516 (user_settable_breakpoint): Use is_watchpoint.
6517 (hw_watchpoint_used_count): Use is_hardware_watchpoint.
6518 (disable_watchpoints_before_interactive_call_start): Use
6519 is_watchpoint.
6520 (enable_watchpoints_after_interactive_call_stop): Use
6521 is_watchpoint.
6522 (clear_command): Use is_watchpoint.
6523 (do_enable_breakpoint): Use is_watchpoint.
6524
cb7db0f2
MF
65252010-04-16 Mike Frysinger <vapier@gentoo.org>
6526
6527 * solib-frv.c (enable_break1_done): Delete.
6528 (enable_break2): Do not check enable_break1_done. Move the
6529 enable_break2_done setting and call to
6530 remove_solib_event_breakpoints() to the end. Return without
6531 warning when the contents of _dl_debug_addr are 0.
6532 (enable_break): Do not set enable_break1_done.
6533 (frv_clear_solib): Likewise.
6534
d77b48cf
KB
65352010-04-16 Kevin Buettner <kevinb@redhat.com>
6536
6537 * m32c-tdep.c (m32c_m16c_address_to_pointer): Print warning
6538 instead of an error if no PLT entry is found. Return a
6539 potentially useful result.
6540 (m32c_m16c_pointer_to_address): Add code to search for function
6541 address when no .plt entry is found.
6542
f90824dc
SS
65432010-04-16 Stan Shebs <stan@codesourcery.com>
6544
6545 * tracepoint.c (trace_variable_command): Run a cleanup.
6546
9b79b476
PM
65472010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
6548
6549 * p-lang.c (pascal_one_char): Do not restrict C to 0..255 range.
6550
711e434b
PM
65512010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
6552
6553 Support for Windows OS Thread Information Block.
6554 * NEWS: Document new feature.
6555 * remote.c (PACKET_qGetTIBAddr): New enum element.
6556 (remote_get_tib_address): New function.
6557 (init_remote_ops): Set to_get_tib_address field
6558 to remote_get_tib_address.
6559 (_initialize_remote): Add add_packet_config_cmd
6560 for PACKET_qGetTIBAddr.
6561 * target.c (update_current_target): Set default value for
6562 new to_get_tib_address field.
6563 * target.h (target_ops): New field to_get_tib_address.
6564 (target_get_tib_address): New macro.
6565 * windows-nat.c (thread_info): Add thread_local_base field.
6566 (windows_add_thread): Add tlb argument of type 'void *'.
6567 (fake_create_process): Adapt windows_add_thread call.
6568 (get_windows_debug_event): Idem.
6569 (windows_get_tib_address): New function.
6570 (init_windows_ops): Set to_get_tib_address field
6571 to remote_get_tib_address.
6572 (_initialize_windows_nat): Replace info_w32_cmdlist
6573 initialization by a call to init_w32_command_list.
6574 (info_w32_command, info_w32_cmdlist): Removed from here...
6575 to windows-tdep.c file.
6576 * windows-tdep.h (info_w32_cmdlist): Declare.
0407b3f1 6577 (init_w32_command_list): New external function
711e434b
PM
6578 declaration.
6579 * windows-tdep.c: Add several headers.
6580 (info_w32_cmdlist): to here, made global.
6581 (thread_information_32): New struct.
6582 (thread_information_64): New struct.
6583 (TIB_NAME): New char array.
6584 (MAX_TIB32, MAX_TIB64, FULL_TIB_SIZE): New constants.
6585 (maint_display_all_tib): New static variable.
6586 (windows_get_tlb_type): New function.
6587 (tlb_value_read, tlb_value_write): New functions.
6588 (tlb_value_funcs): New static struct.
6589 (tlb_make_value): New function.
6590 (display_one_tib): New function.
6591 (display_tib): New function.
6592 (show_maint_show_all_tib):New function.
6593 (info_w32_command): Moved from windows-nat.c.
6594 (init_w32_command_list): New function.
6595 (_initialize_windows_tdep): New function.
6596 New "maint set/show show-all-tib" command
6597 New "$_tlb" internal variable.
6598
cae3f17b
JB
65992010-04-16 Joel Brobecker <brobecker@adacore.com>
6600
6601 * tui/tui-regs.c (tui_display_register): Add comment about
6602 a couple of casts.
6603 * tui/tui-stack.c (tui_show_locator_content): Ditto.
6604
2ce6d6bf
SS
66052010-04-15 Stan Shebs <stan@codesourcery.com>
6606
6607 * frame.c: Include tracepoint.h.
6608 (get_current_frame): Allow a trace frame to be an alternate source
6609 of stack frame data.
6610 * tracepoint.c (tfind_1): Don't try to get current stack frame if
6611 it won't succeed.
6612
7e559477
PA
66132010-04-15 Pedro Alves <pedro@codesourcery.com>
6614
6615 * ppc-linux-tdep.c (bsd_uthread_solib_loaded): Always pass 0 for
6616 flags.
6617 * solib-spu.c (spu_solib_loaded): Always pass 0 for flags.
6618
3f7b2faa
DE
66192010-04-15 Doug Evans <dje@google.com>
6620
fa33c3cd
DE
6621 * NEWS: Add entry for python program space support.
6622 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-progspace.o.
6623 (SUBDIR_PYTHON_SRCS): Add py-progspace.c.
6624 (py-progspace.o): New rule.
6625 * python/py-prettyprint.c (find_pretty_printer_from_objfiles): New
6626 function.
6627 (find_pretty_printer_from_progspace): New function.
6628 (find_pretty_printer_from_gdb): New function.
6629 (find_pretty_printer): Rewrite.
6630 * python/py-progspace.c: New file.
6631 * python/python-internal.h (program_space): Add forward decl.
6632 (pspace_to_pspace_object, pspy_get_printers): Declare.
6633 (gdbpy_initialize_pspace): Declare.
6634 * python/python.c: #include "progspace.h".
6635 (gdbpy_get_current_progspace, gdbpy_progspaces): New functions.
6636 (_initialize_python): Call gdbpy_initialize_pspace.
6637 (GdbMethods): Add current_progspace, progspaces.
6638
3f7b2faa
DE
6639 Add -s option to source command.
6640 * NEWS: Document new option.
6641 * cli/cli-cmds.c (find_and_open_script): Add function comment.
6642 Delete from_tty and cleanupp args. Split filep arg into file and
6643 full_pathp. New arg search_path.
6644 (source_script_from_stream): New function.
6645 (source_script_with_search): New function.
6646 (source_script): Rewrite.
6647 (source_command): Parse "-s" option.
6648 (init_cli_cmds): Add "-s" docs to source command help, and reformat.
6649 * python/python.c (source_python_script): Make file arg a const char *.
6650 Don't call fclose, leave for caller.
6651 * python/python.h (source_python_script): Update.
6652
a86988f2
PA
66532010-04-14 Daniel Jacobowitz <dan@codesourcery.com>
6654 Pedro Alves <pedro@codesourcery.com>
6655
6656 Avoid rereading shared libraries that haven't changed.
6657
6658 * solib.c (free_so_symbols): New function, from ...
6659 (free_so): ... here. Call it.
6660 (solib_read_symbols): Don't warn here if symbols have already been
6661 loaded.
6662 (solib_add): Warn here instead, if a pattern was specified.
6663 (reload_shared_libraries_1): New.
6664 (reload_shared_libraries): Rewrite to not fetch the library list.
6665
e6d9b9c2
DE
66662010-04-14 Doug Evans <dje@google.com>
6667
589390d6 6668 * source.c (openp): Strip DOS drive letter if present before
e6d9b9c2
DE
6669 concatenating string to search path.
6670
516ba659
PA
66712010-04-14 Pedro Alves <pedro@codesourcery.com>
6672
6673 * objfiles.h (gdb_bfd_close_or_warn): Declare.
6674 * objfiles.c (gdb_bfd_close_or_warn): New.
6675 * corelow.c: Include objfiles.h
6676 (core_close): Use gdb_bfd_close_or_warn.
6677 * elfread.c (build_id_verify): Ditto.
6678 * exec.c (exec_close, exec_close_1): Ditto.
6679
048d532d
PA
66802010-04-14 Daniel Jacobowitz <dan@codesourcery.com>
6681 Pedro Alves <pedro@codesourcery.com>
6682
6683 Group errors for many missing shared libraries.
6684
6685 * solist.h (struct so_list): Remove from_tty.
6686 * solib.c (solib_bfd_open): Return NULL if we failed to open a BFD.
6687 (solib_map_sections): Take so_list argument. Return 0 if we
6688 failed to open a BFD. Add target sections here.
6689 (symbol_add_stub): Delete.
6690 (solib_read_symbols): Inline symbol_add_stub. Use current flags,
6691 not from_tty copied from the so_list. Don't warn a second time
6692 for a missing library.
6693 (update_solib_list): Don't save from_tty. Use TRY_CATCH. Do not
6694 add to the section table here. Print out a single warning for all
6695 missing libraries.
6696 * bsd-uthread.c (bsd_uthread_solib_loaded): Always pass 0 for
6697 flags.
6698
044c0f87
PM
66992010-04-14 Phil Muldoon <pmuldoon@redhat.com>
6700
6701 * python/py-block.c (gdbpy_block_for_pc): Use i8n to encompass
6702 error/warning messages. Capitalize and use complete sentences.
6703 (blpy_block_syms_iternext): Likewise.
6704 * python/py-cmd.c (parse_command_name, cmdpy_init): Likewise.
6705 * python/py-frame.c (FRAPY_REQUIRE_VALID, frapy_block)
6706 (frame_info_to_frame_object, frapy_read_var)
6707 (gdbpy_frame_stop_reason_string): Likewise.
6708 * python/py-lazy-string.c (stpy_convert_to_value)
6709 (gdbpy_create_lazy_string_object): Likewise.
6710 * python/py-objfile.c (objfpy_set_printers): Likewise.
6711 * python/py-prettyprint.c (gdbpy_default_visualizer): Likewise.
6712 * python/python.c (parameter_to_python): Likewise.
6713 * python/py-type.c (typy_range, typy_target): Likewise.
6714 * python/py-value.c (valpy_cast, valpy_length, valpy_getitem)
6715 (valpy_richcompare, valpy_int, valpy_long, valpy_float): Likewise.
6716
6717
79f283fe
PM
67182010-04-14 Phil Muldoon <pmuldoon@redhat.com>
6719
6720 PR python/11381
6721
6722 * python/py-prettyprint.c (pretty_print_one_value): Test for
6723 Py_None.
6724 (print_string_repr): Test for Py_None. Set flags accordingly.
6725 Return value depending on return type.
6726 (print_children): Take a value indicating whether data was printed
6727 before this function was called. Alter output accordingly.
6728 (apply_val_pretty_printer): Capture return value from
6729 print_string_repr and pass to print_children.
6730
4ac5d44e
MK
67312010-04-13 Mark Kettenis <kettenis@gnu.org>
6732
e1caee70 6733 PR corefiles/11481
4ac5d44e
MK
6734 * i386-linux-tdep.c (i386_linux_regset_sections): Remove extended
6735 register note sections.
6736 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
6737 New variables.
6738 (i386_linux_init_abi): Install list of supported register note
6739 sections that matches the target description.
6740
ad91cd99
PA
67412010-04-13 Pedro Alves <pedro@codesourcery.com>
6742
6743 * remote.c (remote_get_noisy_reply): Don't error out on empty
6744 replies.
6745 (remote_start_remote): Update and merge tracepoints and trace
6746 state variables as long as the target supports tracepoints.
6747 (remote_trace_init): Fix prototype.
6748 (remote_download_trace_state_variable): Validate reply.
6749 (remote_trace_set_readonly_regions): Fix prototype.
6750 (remote_trace_start): Fix prototype. Check for empty reply.
6751 (remote_get_trace_status): Small cleanup.
6752 (remote_trace_stop): Fix prototype. Check for empty reply.
6753 (remote_trace_find): Check for empty reply.
6754 (remote_save_trace_data): Validate reply.
6755 (remote_set_disconnected_tracing): Check for empty reply, and
6756 validate reply.
6757 (remote_set_circular_trace_buffer): Ditto.
6758
ae3bccd4
PM
67592010-04-13 Pierre Muller <muller@ics.u-strasbg.fr>
6760
6761 Suppress unused value warning during compilation.
6762 * tui/tui-regs.c (tui_display_register): Cast wstandout and wstandend
6763 calls to void.
6764 * tui/tui-stack.c (tui_show_locator_content): Likewise.
6765
523136f2
SS
67662010-04-12 Stan Shebs <stan@codesourcery.com>
6767
6768 * tracepoint.c (tfile_xfer_partial): Check read result.
6769
0d18d720
MF
67702010-04-12 Mike Frysinger <vapier@gentoo.org>
6771
6772 * remote-m32r-sdi.c (m32r_files_info): Add const to local "file" var.
6773 * remote-sim.c (gdbsim_files_info): Likewise.
6774
3b273a55
RE
67752010-04-12 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
6776
6777 * arm-tdep.h (gdb_regnum): Add ARM_FPSCR_REGNUM
6778 * arm-linux-nat.c (arm_linux_vfp_register_count): New
6779 variable.
6780 (fetch_vfp_registers): New function to fetch VFP registers.
6781 (store_vfp_registers): New function to store VFP registers.
6782 (arm_linux_fetch_inferior_registers): Add support for VFP
6783 registers.
6784 (arm_linux_store_inferior_registers): Likewise.
6785 (arm_linux_read_description): Likewise.
6786 (_initialize_arm_linux_nat): Delay initialising iWMMX tdesc
6787 until we need it.
6788
778c7095
L
67892010-04-11 H.J. Lu <hongjiu.lu@intel.com>
6790
6791 * amd64-tdep.c (amd64_supply_xstateregset): Remove the unused
6792 tdep.
6793 (amd64_collect_xstateregset): Likewise.
6794
2114d44c
SS
67952010-04-09 Stan Shebs <stan@codesourcery.com>
6796
87290684
SS
6797 * tracepoint.c (trace_status_mi): Report frames created.
6798
2114d44c
SS
6799 * tracepoint.c (trace_dump_command): Include default-collect
6800 expressions.
6801
86da934b
UW
68022010-04-09 Ulrich Weigand <uweigand@de.ibm.com>
6803
6804 * symtab.c (find_function_start_sal): Never return SAL pointing
6805 before function start address, even if line info is missing.
6806
2d6e647a 68072010-04-09 Pedro Alves <pedro@codesourcery.com>
d337e9f0
PA
6808
6809 * NEWS: Mention tracepoints support.
6810
a97153c7
PA
68112010-04-09 Pedro Alves <pedro@codesourcery.com>
6812
6813 * tracepoint.c (trace_status_mi): Report disconnected tracing and
6814 circular trace buffer statuses.
6815
7a66d603
JK
68162010-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6817
6818 * config/djgpp/fnchange.lst: Fix typo in translations for
6819 symbol-without-target_section.exp and symbol-without-target_section.c.
6820
2566ad2d
PA
68212010-04-09 Pedro Alves <pedro@codesourcery.com>
6822
6823 * breakpoint.c (condition_command): Pass condition expression to
6824 set_breakpoint_condition stripped from breakpoint number.
6825
adc36818
PM
68262010-04-09 Phil Muldoon <pmuldoon@redhat.com>
6827 Thiago Jung Bauermann <bauerman@br.ibm.com>
2566ad2d 6828 Tom Tromey <tromey@redhat.com>
adc36818
PM
6829
6830 * breakpoint.c (condition_command): Simplify. Move condition
6831 setting code to ...
6832 (set_breakpoint_condition): ... here. New function.
6833 * breakpoint.h (set_breakpoint_condition): Declare.
6834 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpoint.
6835 (SUBDIR_PYTHON_SRCS): Likewise.
6836 (py-breakpoint.o): New rule.
6837 * python/py-breakpoint.c: New file.
6838 * python/python-internal.h (gdbpy_breakpoints)
6839 (gdbpy_initialize_breakpoints): Declare.
6840 (GDB_PY_SET_HANDLE_EXCEPTION) Define.
6841
219f2f23
PA
68422010-04-09 Pedro Alves <pedro@codesourcery.com>
6843
6844 * regformats/regdat.sh: Include server.h. Don't include
6845 regcache.h.
6846
33da3f1c
SS
68472010-04-08 Stan Shebs <stan@codesourcery.com>
6848 Pedro Alves <pedro@codesourcery.com>
6849
6850 * tracepoint.h (struct trace_status): New fields disconnected_tracing
6851 and circular_buffer.
6852 (disconnect_tracing): Rename from disconnect_or_stop_tracing.
6853 * tracepoint.c (trace_status_command): Display target's status for
6854 disconnected tracing and circular buffer.
6855 (disconnect_tracing): Rename from disconnect_or_stop_tracing, add
6856 query for non-disconnected-tracing case, remove the stop_tracing
6857 call.
6858 (tfile_open): Clear disconnected and circular buffer status.
6859 (trace_save): Save disconnected and circular buffer status.
6860 (parse_trace_status): Parse disconnected and circular buffer status,
6861 also recognize disconnected as a stop reason.
6862 * remote.c (remote_set_disconnected_tracing): Only set
6863 QTDisconnected if the remote end supports disconnected tracing.
6864 Warn otherwise, if trying to enable disconnected tracing.
6865 * infcmd.c (detach_command): Update disconnect_tracing call.
6866 * cli/cli-cmds.c (quit_command): Ditto.
6867
4e4d8374
L
68682010-04-08 H.J. Lu <hongjiu.lu@intel.com>
6869
6870 * i387-tdep.c (i387_collect_xsave): Replace abort with
6871 internal_error.
6872
ad443146
SS
68732010-04-08 Stan Shebs <stan@codesourcery.com>
6874
6875 * breakpoint.c (default_collect_info): New function.
6876 (breakpoints_info): Call it.
6877 (maintenance_info_breakpoints): Ditto.
6878 (tracepoints_info): Ditto.
6879
40936b0d
L
68802010-04-08 H.J. Lu <hongjiu.lu@intel.com>
6881
6882 * i387-tdep.c (i387_collect_xsave): Re-indent.
6883
3a13a53b
L
68842010-04-08 H.J. Lu <hongjiu.lu@intel.com>
6885
6886 * i386-linux-nat.c (have_ptrace_getfpxregs): Initialize to -1
6887 if HAVE_PTRACE_GETFPXREGS is defined.
6888 (i386_linux_read_description): Set have_ptrace_getfpxregs and
6889 have_ptrace_getregset to 0 if ptrace PTRACE_GETFPXREGS failed.
6890
6891 * i386-linux-tdep.c: Include "features/i386/i386-mmx-linux.c"
6892 (i386_linux_core_read_description): Return tdesc_i386_mmx_linux
6893 if .reg-xfp section doesn't exist.
6894 (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_mmx_linux.
6895
6896 * i386-linux-tdep.h (tdesc_i386_mmx_linux): New.
6897
6898 * i386-tdep.c: Include "features/i386/i386-mmx.c".
6899 (i386_go32_init_abi): Set tdesc to tdesc_i386_mmx.
6900 (i386_validate_tdesc_p): Make org.gnu.gdb.i386.sse optional. Set
6901 xcr0 to I386_XSTATE_X87_MASK if SSE isn't available.
6902 (i386_gdbarch_init): Update comments.
6903 (_initialize_i386_tdep): Call initialize_tdesc_i386_mmx.
6904
6905 * common/i386-xstate.h (I386_XSTATE_X87_MASK): New.
6906
6907 * config/djgpp/fnchange.lst: Add i386 MMX XML files.
6908
6909 * features/Makefile (i386/i386-mmx-expedite): New.
6910 (i386/i386-mmx-linux-expedite): Likewise.
6911 ($(outdir)/i386/i386-mmx.dat): Likewise.
6912 ($(outdir)/i386/i386-mmx-linux.dat): Likewise.
6913
6914 * features/i386/i386-mmx-linux.c: New.
6915 * features/i386/i386-mmx-linux.xml: Likewise.
6916 * features/i386/i386-mmx.c: Likewise.
6917 * features/i386/i386-mmx.xml: Likewise.
6918 * regformats/i386/i386-mmx-linux.dat: Likewise.
6919 * regformats/i386/i386-mmx.dat: Likewise.
6920
6921 * features/Makefile (WHICH): Add i386/i386-mmx and
6922 i386/i386-mmx-linux.
6923
08001717
DE
69242010-04-08 Doug Evans <dje@google.com>
6925
6926 * source.c (openp): Skip $cdir in PATH.
6927
fff5cc64
PM
69282010-04-08 Phil Muldoon <pmuldoon@redhat.com>
6929
6930 PR python/11417
fff5cc64 6931 * python/py-lazy-string.c (stpy_convert_to_value): Check for
3a13a53b
L
6932 a NULL address.
6933 (gdbpy_create_lazy_string_object): Allow strings with a NULL
6934 address and a zero length.
fff5cc64 6935
f8c4f480
HZ
69362010-04-08 Hui Zhu <teawater@gmail.com>
6937
6938 * i386-tdep.c (i386_process_record): Add support for insn
6939 rdtsc.
6940
eb5cda86
DE
69412010-04-07 Doug Evans <dje@google.com>
6942
6943 * python/python.c (source_python_script): Use ensure_python_env
6944 to prepare environment for script.
6945
a055a187
L
69462010-04-07 H.J. Lu <hongjiu.lu@intel.com>
6947
6948 * amd64-linux-nat.c: Include "regset.h", "elf/common.h",
6949 <sys/uio.h> and "i386-xstate.h".
6950 (PTRACE_GETREGSET): New.
6951 (PTRACE_SETREGSET): Likewise.
6952 (have_ptrace_getregset): Likewise.
6953 (amd64_linux_gregset64_reg_offset): Include 16 upper YMM
6954 registers.
6955 (amd64_linux_gregset32_reg_offset): Include 8 upper YMM
6956 registers.
6957 (amd64_linux_fetch_inferior_registers): Support PTRACE_GETFPREGS.
6958 (amd64_linux_store_inferior_registers): Likewise.
6959 (amd64_linux_read_description): Check and enable AVX target
6960 descriptions.
6961
6962 * amd64-linux-tdep.c: Include "regset.h", "i386-linux-tdep.h"
6963 and "features/i386/amd64-avx-linux.c".
6964 (amd64_linux_regset_sections): New.
6965 (amd64_linux_core_read_description): Check and enable AVX
6966 target description.
6967 (amd64_linux_init_abi): Set xsave_xcr0_offset. Call
6968 set_gdbarch_core_regset_sections.
6969 (_initialize_amd64_linux_tdep): Call
6970 initialize_tdesc_amd64_avx_linux.
6971
6972 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Replace
6973 AMD64_MXCSR_REGNUM with AMD64_YMM15H_REGNUM.
6974 (tdesc_amd64_avx_linux): New.
6975 (amd64_linux_update_xstateregset): Likewise.
6976
6977 * amd64-tdep.c: Include "features/i386/amd64-avx.c".
6978 (amd64_ymm_names): New.
6979 (amd64_ymmh_names): Likewise.
6980 (amd64_register_name): Likewise.
6981 (amd64_supply_xstateregset): Likewise.
6982 (amd64_collect_xstateregset): Likewise.
6983 (amd64_supply_xsave): Likewise.
6984 (amd64_collect_xsave): Likewise.
6985 (AMD64_NUM_REGS): Removed.
6986 (amd64_dwarf_reg_to_regnum): Return %ymmN register number for
6987 %xmmN if AVX is available.
6988 (amd64_pseudo_register_name): Support pseudo YMM registers.
6989 (amd64_regset_from_core_section): Support .reg-xstate section.
6990 (amd64_init_abi): Set ymmh_register_names, num_ymm_regs
6991 and ymm0h_regnum. Call set_gdbarch_register_name.
6992 (amd64_init_abi): Call initialize_tdesc_amd64_avx.
6993
6994 * amd64-tdep.h (amd64_regnum): Add AMD64_YMM0H_REGNUM and
6995 AMD64_YMM15H_REGNUM.
6996 (AMD64_NUM_REGS): New.
6997 (amd64_supply_xsave): Likewise.
6998 (amd64_collect_xsave): Likewise.
6999 (amd64_register_name): Removed.
7000 (amd64_register_type): Likewise.
7001
31aeac78
L
70022010-04-07 H.J. Lu <hongjiu.lu@intel.com>
7003
7004 * i387-tdep.c: Include "i386-xstate.h".
7005 (XSAVE_XSTATE_BV_ADDR): New.
7006 (xsave_avxh_offset): Likewise.
7007 (XSAVE_AVXH_ADDR): Likewise.
7008 (i387_supply_xsave): Likewise.
7009 (i387_collect_xsave): Likewise.
7010
7011 * i387-tdep.h (I387_NUM_YMM_REGS): New.
7012 (I387_YMM0H_REGNUM): Likewise.
7013 (I387_YMMENDH_REGNUM): Likewise.
7014 (i387_supply_xsave): Likewise.
7015 (i387_collect_xsave): Likewise.
7016
c131fcee
L
70172010-04-07 H.J. Lu <hongjiu.lu@intel.com>
7018
7019 * i386-linux-nat.c: Include "regset.h", "elf/common.h",
7020 <sys/uio.h> and "i386-xstate.h".
7021 (PTRACE_GETREGSET): New.
7022 (PTRACE_SETREGSET): Likewise.
7023 (fetch_xstateregs): Likewise.
7024 (store_xstateregs): Likewise.
7025 (GETXSTATEREGS_SUPPLIES): Likewise.
7026 (regmap): Include 8 upper YMM registers.
7027 (i386_linux_fetch_inferior_registers): Support XSAVE extended
7028 state.
7029 (i386_linux_store_inferior_registers): Likewise.
7030 (i386_linux_read_description): Check and enable AVX target
7031 descriptions.
7032
7033 * i386-linux-tdep.c: Include "regset.h", "i387-tdep.h",
7034 "i386-xstate.h" and "features/i386/i386-avx-linux.c".
7035 (i386_linux_regset_sections): Add ".reg-xstate".
7036 (i386_linux_gregset_reg_offset): Include 8 upper YMM registers.
7037 (i386_linux_core_read_xcr0): New.
7038 (i386_linux_core_read_description): Check and enable AVX target
7039 description.
7040 (i386_linux_init_abi): Set xsave_xcr0_offset.
7041 (_initialize_i386_linux_tdep): Call
7042 initialize_tdesc_i386_avx_linux.
7043
7044 * i386-linux-tdep.h (I386_LINUX_ORIG_EAX_REGNUM): Replace
7045 I386_SSE_NUM_REGS with I386_AVX_NUM_REGS.
7046 (i386_linux_core_read_xcr0): New.
7047 (tdesc_i386_avx_linux): Likewise.
7048 (I386_LINUX_XSAVE_XCR0_OFFSET): Likewise.
7049
7050 * i386-tdep.c: Include "i386-xstate.h" and
7051 "features/i386/i386-avx.c".
7052 (i386_ymm_names): New.
7053 (i386_ymmh_names): Likewise.
7054 (i386_ymmh_regnum_p): Likewise.
7055 (i386_ymm_regnum_p): Likewise.
7056 (i386_xmm_regnum_p): Likewise.
7057 (i386_register_name): Likewise.
7058 (i386_ymm_type): Likewise.
7059 (i386_supply_xstateregset): Likewise.
7060 (i386_collect_xstateregset): Likewise.
7061 (i386_sse_regnum_p): Removed.
7062 (i386_pseudo_register_name): Support pseudo YMM registers.
7063 (i386_pseudo_register_type): Likewise.
7064 (i386_pseudo_register_read): Likewise.
7065 (i386_pseudo_register_write): Likewise.
7066 (i386_dbx_reg_to_regnum): Return %ymmN register number for
7067 %xmmN if AVX is available.
7068 (i386_regset_from_core_section): Support .reg-xstate section.
7069 (i386_register_reggroup_p): Supper upper YMM and YMM registers.
7070 (i386_process_record): Replace i386_sse_regnum_p with
7071 i386_xmm_regnum_p.
7072 (i386_validate_tdesc_p): Support org.gnu.gdb.i386.avx feature.
7073 Set ymmh_register_names, num_ymm_regs, ymm0h_regnum and xcr0.
8d95cc3b 7074 (i386_gdbarch_init): Set xstateregset. Set xsave_xcr0_offset.
c131fcee
L
7075 Call set_gdbarch_register_name. Replace I386_SSE_NUM_REGS with
7076 I386_AVX_NUM_REGS. Set ymmh_register_names, ymm0h_regnum and
7077 num_ymm_regs. Add num_ymm_regs to set_gdbarch_num_pseudo_regs.
7078 Set ymm0_regnum.
7079 (_initialize_i386_tdep): Call initialize_tdesc_i386_avx.
7080
7081 * i386-tdep.h (gdbarch_tdep): Add xstateregset, ymm0_regnum,
7082 xcr0, xsave_xcr0_offset, ymm0h_regnum, ymmh_register_names and
7083 i386_ymm_type.
7084 (i386_regnum): Add I386_YMM0H_REGNUM, and I386_YMM7H_REGNUM.
7085 (I386_AVX_NUM_REGS): New.
7086 (i386_xmm_regnum_p): Likewise.
7087 (i386_ymm_regnum_p): Likewise.
7088 (i386_ymmh_regnum_p): Likewise.
7089
7090 * common/i386-xstate.h: New.
7091
98adf0f3
L
70922010-04-07 H.J. Lu <hongjiu.lu@intel.com>
7093
7094 * config/djgpp/fnchange.lst: Add x86 AVX XML files.
7095
7096 * features/Makefile (WHICH): Add i386/i386-avx,
7097 i386/i386-avx-linux, i386/x86-64-avx and i386/x86-64-avx-linux.
7098 (i386/i386-avx-expedite): New.
7099 (i386/i386-avx-linux-expedite): Likewise.
7100 (i386/x86-64-avx-expedite):Likewise.
7101 (i386/x86-64-avx-linux-expedite): Likewise.
7102 ($(outdir)/i386/i386-avx.dat): New dependency.
7103 ($(outdir)/i386/i386-avx-linux.dat): Likewise.
7104 ($(outdir)/i386/x86-avx-64.dat): Likewise.
7105 ($(outdir)/i386/x86-64-avx-linux.dat): Likewise.
7106
7107 * features/i386/32bit-avx.xml: New.
7108 * features/i386/64bit-avx.xml: Likewise.
7109 * features/i386/i386-avx-linux.c: Likewise.
7110 * features/i386/i386-avx-linux.xml: Likewise.
7111 * features/i386/i386-avx.c: Likewise.
7112 * features/i386/i386-avx.xml: Likewise.
7113 * features/i386/x86-64-avx-linux.c: Likewise.
7114 * features/i386/x86-64-avx-linux.xml: Likewise.
7115 * features/i386/x86-64-avx.c: Likewise.
7116 * features/i386/x86-64-avx.xml: Likewise.
7117 * regformats/i386/i386-avx-linux.dat: Likewise.
7118 * regformats/i386/i386-avx.dat: Likewise.
7119 * regformats/i386/x86-64-avx-linux.dat: Likewise.
7120 * regformats/i386/x86-64-avx.dat: Likewise.
7121
05159abe
DE
71222010-04-07 Doug Evans <dje@google.com>
7123
7124 * top.c (source_file_name): Make const char *.
7125 * top.h (source_file_name): Update.
7126 * cli/cli-script.c (source_cleanup_lines_args): Make old_file
7127 const char *.
7128 (script_from_file): Change `file' arg to const char *.
7129 * cli/cli-script.h (script_from_file): Update.
7130
96e39866
DE
71312010-04-06 Doug Evans <dje@google.com>
7132
7133 * cli/cli-cmds.c (source_command): Run cleanups.
7134
3149d8c1
SS
71352010-04-06 Stan Shebs <stan@codesourcery.com>
7136
7137 * defs.h (char_ptr): Move typedef here from...
7138 * ada-lang.c (char_ptr): Remove.
7139 * charset.c (char_ptr): Remove.
7140 * tracepoint.h (struct uploaded_string): Remove.
7141 (struct uploaded_tp): Use vectors for string arrays.
7142 * tracepoint.c (trace_save): Use vectors of actions.
7143 (parse_tracepoint_definition): Ditto.
7144 (get_uploaded_tp): Clear vectors.
7145 * breakpoint.c (create_tracepoint_from_upload): Use vectors.
7146 (next_cmd): Change to an int.
7147 (read_next_cmd): Use vector of command strings.
7148
4cc23ede
DE
71492010-04-06 Doug Evans <dje@google.com>
7150
7151 * top.h (source_script, cd_command): Delete.
7152 * main.c: #include "cli/cli-cmds.h"
7153
bd333fb7
KB
71542010-04-06 Kevin Buettner <kevinb@redhat.com>
7155
7156 * m32c-tdep.c (make_types): When calling `arch_type', pass size of
7157 type in bytes, not bits.
7158
ec8a089a
PM
71592010-04-06 Pierre Muller <muller@ics.u-strasbg.fr>
7160
7161 * stabsread.c (define_symbol): Add support for char
7162 and string constants.
7163
2244ba2e
PM
71642010-04-06 Pierre Muller <muller@ics.u-strasbg.fr>
7165
7166 Remove remaining "%ll" uses.
7167 * go32-nat.c (go32_pte_for_address): Replace "0x%llx" using
7168 hex_string call.
7169 * rs6000-nat.c (rs6000_ptrace64): Idem.
7170 * solib-pa64.c (pa64_current_sos): Idem.
7171 * solib-spu.c (spu_current_sos): Idem.
7172 * linux-nat.c (linux_nat_find_memory_regions): Replace "%lld" using
7173 plongest call.
7174 * nto-procfs.c (procfs_meminfo): Replace "0x%016llx" using
7175 phex (VAR, 8) call.
7176 * sh64-tdep.c (sh64_show_media_regs): Idem.
7177
fce3c1f0
SS
71782010-04-05 Stan Shebs <stan@codesourcery.com>
7179
7180 * tracepoint.c: Include gdbcore.h.
7181 (tfile_xfer_partial): Return partial results, also try reading
7182 from executable.
7183 (tfile_has_all_memory): New function.
7184 (init_tfile_ops): Use it.
7185
626ea16d
SDJ
71862010-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
7187
7188 PR gdb/10736:
7189 * xml-syscall.c (my_gdb_datadir): New variable to keep track of
7190 the changes in data-directory.
7191 (init_sysinfo): Reload the syscall XML file if the data-directory
7192 has changed.
7193
1f7ccab2
JK
71942010-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7195
7196 Code cleanup.
7197 * breakpoint.c (bpstat_stop_status): Use bpstat_causes_stop.
7198
d77f58be
SS
71992010-04-04 Stan Shebs <stan@codesourcery.com>
7200 Nathan Sidwell <nathan@codesourcery.com>
7201
7202 * breakpoint.c (breakpoint_1): Add filter argument, return number of
7203 breakpoints printed.
7204 (is_hardware_watchpoint): Make argument const.
7205 (is_watchpoint): Ditto.
7206 (is_tracepoint): Merge of tracepoint_type and breakpoint_is_tracepoint,
7207 use it everywhere.
7208 (breakpoints_info): Pass NULL to breakpoint_1.
7209 (maintenance_info_breakpoints): Ditto.
7210 (watchpoints_info): New function.
7211 (tracepoints_info): Use breakpoint_1 filter.
7212 (set_ignore_count): Warn that tracepoint ignore count will be ignored.
7213 (_initialize_breakpoint): Make "info watchpoints" its own command.
7214 * breakpoint.h (is_tracepoint): Rename from breakpoint_is_tracepoint.
7215 * mi/mi-cmd-break.c (mi_cmd_break_commands): Use is_tracepoint.
7216
af54718e
SS
72172010-04-04 Stan Shebs <stan@codesourcery.com>
7218
7219 * tracepoint.c (tfile_fetch_registers): Add fallback case.
7220
74d1f91e
JK
72212010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7222
7223 * infcmd.c (run_command_1): Call proceed with regcache_read_pc address.
7224 * config/djgpp/fnchange.lst: Add translation for break-entry.exp.
7225
91d91ceb
JK
72262010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7227
7228 * breakpoint.c (bpstat_find_step_resume_breakpoint): Remove.
7229 * breakpoint.h (bpstat_find_step_resume_breakpoint): Remove.
7230
60531b24
JK
72312010-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7232
7233 * dwarf2read.c (read_namespace_type): Use common "return set_die_type"
7234 code form.
7235
a3c4230a
HZ
72362010-04-02 Hui Zhu <teawater@gmail.com>
7237
7238 * i386-tdep.c (OT_DQUAD): New enum.
7239 (i386_process_record): Add code for MMX, 3DNow!, SSE, SSE2,
7240 SSE3, SSSE3 and SSE4.
7241
b15758fe
HZ
72422010-04-02 Hui Zhu <teawater@gmail.com>
7243
7244 * i386-tdep.c (i386_record_lea_modrm_addr): Remove useless
7245 "*addr = 0".
7246
afd02f27
PA
72472010-04-02 Pedro Alves <pedro@codesourcery.com>
7248
7249 * tracepoint.c (trace_dump_actions): New, factored out from
7250 trace_dump_command, and adjusted to recurse into while-stepping's
7251 action list.
7252 (trace_dump_command): Use it.
7253
5cea2a26
PA
72542010-04-02 Pedro Alves <pedro@codesourcery.com>
7255
7256 * breakpoint.h (struct counted_command_line): Moved definition to
7257 breakpoint.c, and forward declare.
7258 (breakpoint_commands): Declare.
7259 * breakpoint.c (struct counted_command_line): Moved here.
7260 (breakpoint_commands): New.
7261 * tracepoint.c (encode_actions): Use breakpoint_commands.
7262 * remote.c (remote_download_tracepoint): Ditto.
7263
7c47795c
L
72642010-04-01 H.J. Lu <hongjiu.lu@intel.com>
7265
7266 * remote.c (remote_parse_stop_reply): Use hex_string instead
7267 of phex_nz for error.
7268
fff87407
SS
72692010-04-01 Stan Shebs <stan@codesourcery.com>
7270 Nathan Sidwell <nathan@codesourcery.com>
7271
7272 * tracepoint.h (enum actionline_type): Remove.
7273 (validate_actionline): Change return to void.
7274 * tracepoint.c (report_agent_reqs_errors): New function.
7275 (validate_actionline): Call it, change return to void, report errors
7276 more consistently.
7277 (collect_symbol): Call report_agent_reqs_errors.
7278 (encode_actions_1): Ditto.
7279 (encode_actions): Don't expect a result from validate_actionline.
7280
615bcdef
SS
72812010-04-01 Stan Shebs <stan@codesourcery.com>
7282
7283 * tracepoint.c (trace_start_command): Confirm if trace is running.
7284 (trace_stop_command): Error if trace not running.
7285
fe01d668
L
72862010-04-01 H.J. Lu <hongjiu.lu@intel.com>
7287
7288 * amd64-tdep.c (amd64_byte_names): Add "ah", "bh", "ch", "dh".
7289 (AMD64_NUM_LOWER_BYTE_REGS): New.
7290 (amd64_pseudo_register_read): Handle "ah", "bh", "ch", "dh".
7291 (amd64_pseudo_register_write): Likewise.
7292 (amd64_init_abi): Set num_byte_regs to 20.
7293
86b17b60
PA
72942010-04-01 Pedro Alves <pedro@codesourcery.com>
7295
7296 * breakpoint.c (multi_start, multi_end, last_was_multi): Delete.
7297 (prev_breakpoint_count): New.
7298 (set_breakpoint_count): Adjust.
7299 (rbreak_start_breakpoint_count): New.
7300 (start_rbreak_breakpoints): Adjust.
7301 (end_rbreak_breakpoints): Adjust.
7302 (struct commands_info) <arg>: New field.
7303 (do_map_commands_command): Tweak output to include breakpoint spec
7304 range.
7305 (commands_command_1): Adjust. Avoid setting an xfree cleanup if
7306 ARG was empty on entry. Set INFO's arg.
7307 (create_breakpoint): Adjust.
7308
7309 * NEWS: Clarify `commands' changes.
7310
2c58c0a9
PA
73112010-04-01 Pedro Alves <pedro@codesourcery.com>
7312
7313 * tracepoint.c: Include stack.h.
7314 (struct add_local_symbols_data): New.
7315 (do_collect_symbol): New.
7316 (add_local_symbols): Rewrite using iterate_over_block_arg_vars and
7317 iterate_over_block_local_vars.
7318 * stack.c (print_block_frame_locals): Rewrite as ...
7319 (iterate_over_block_locals): ... this. Take a callback function
7320 pointer and generic data pointer, and call that instead of
7321 print_variable_and_value.
7322 (struct print_variable_and_value_data): New.
7323 (do_print_variable_and_value): New.
7324 (iterate_over_block_local_vars): New, abstracted out from
7325 print_frame_local_vars.
7326 (print_frame_local_vars): Rewrite using
7327 iterate_over_block_local_vars.
7328 (iterate_over_block_arg_vars): New, abstracted out from
7329 print_frame_arg_vars.
7330 (print_frame_arg_vars): Rewrite using iterate_over_block_arg_vars.
7331 * stack.h (iterate_over_block_arg_local_vars_cb): New typedef.
7332 (iterate_over_block_arg_vars, iterate_over_block_local_vars): Declare.
7333
d476da0e
RE
73342010-03-31 Richard Earnshaw <rearnsha@arm.com>
7335
7336 * arm-tdep.c (thumb_get_next_pc_raw): Correctly detect TBH
8d95cc3b 7337 instructions. Use the PC+4 if the base of the TBB or TBH is the
d476da0e
RE
7338 PC register.
7339
8072405b
JK
73402010-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
7341
7342 Fix crash on reading wrong function declaration DWARF.
7343 * dwarf2read.c (read_subroutine_type): New variable void_type.
7344 Pre-fill all TYPE_FIELD_TYPEs. Move nparams and iparams initialization
7345 more close to their use.
7346
8bf6485c
SS
73472010-03-31 Stan Shebs <stan@codesourcery.com>
7348
7349 * breakpoint.c (tracepoint_save_command): Include variables,
8d95cc3b 7350 conditionals, tracepoint types, and default-collect.
8bf6485c
SS
7351 * tracepoint.c (save_trace_state_variables): New function.
7352 * tracepoint.h (save_trace_state_variables): Declare it.
7353
2ae2a0b7
PM
73542010-03-31 Pierre Muller <muller@ics.u-strasbg.fr>
7355
1a161f72 7356 * remote.c (end_thread): ARI fix: Use xstrdup instead of strdup.
2ae2a0b7 7357
86ffb506
KS
73582010-03-30 Keith Seitz <keiths@redhat.com>
7359
7360 * c-typeprint.c (c_type_print_args): Don't print "void"
7361 for java, regardless of whether it is TYPE_PROTOTYPED.
7362 Use the passed-in language instead of current_language.
7363 (c_type_print_varspec_suffix): Use current_language instead
7364 of assuming language_c.
7365 * jv-typeprint.c (java_type_print_base): (bz 9320) Strip off
7366 any return type specifier from the physname.
7367
956c2c8b
PA
73682010-03-30 Pedro Alves <pedro@codesourcery.com>
7369
7370 * tui/tui-interp.c (tui_is_toplevel): New.
7371 (tui_init): Set it.
7372 (tui_allowed_p): New.
7373 * tui/tui.c (tui_enable): Check if the TUI is allowed before
7374 enabling it.
7375 * tui/tui.h (tui_allowed_p): Declare.
7376
98e5a990
TT
73772010-03-30 Ozkan Sezer <sezeroz@gmail.com>
7378
7379 * serial.h: Include winsock2.h before windows.h.
7380
c8d5aac9
L
73812010-03-30 H.J. Lu <hongjiu.lu@intel.com>
7382
7383 * NEWS: Mention xmlRegisters= in qSupported packet.
7384
7385 * i386-tdep.c: Include "remote.h".
7386 (_initialize_i386_tdep): Call register_remote_support_xml.
7387
7388 * remote.c (remote_support_xml): New.
7389 (register_remote_support_xml): Likewise.
7390 (remote_query_supported_append): Likewise.
7391 (remote_query_supported): Support remote_support_xml.
7392
7393 * remote.h (register_remote_support_xml): New.
7394
76a2b958
SS
73952010-03-29 Stan Shebs <stan@codesourcery.com>
7396
42e08e69
SS
7397 * tracepoint.c (trace_find_line_command): Remove dead code.
7398
409873ef
SS
7399 * tracepoint.h (struct uploaded_string): New struct.
7400 (struct uploaded_tp): New fields for source strings.
7401 * breakpoint.c (this_utp, next_cmd): New globals.
7402 (read_uploaded_action): New function.
7403 (create_tracepoint_from_upload): Fill in more parts
7404 of a tracepoint.
7405 * tracepoint.c (encode_source_string): New function.
7406 (trace_save): Write out source strings, fix error checks.
7407 (parse_tracepoint_definition): Add source string parsing.
7408 * remote.c (PACKET_TracepointSource): New packet type.
7409 (remote_download_command_source): New function.
7410 (remote_download_tracepoint): Download source pieces also.
7411 (_initialize_remote): Add packet config command.
7412
a0405854
SS
7413 * tracepoint.c (collect_symbol): Send LOC_UNRESOLVED symbols to
7414 expression handler.
7415
76a2b958
SS
7416 * tracepoint.c (start_tracing): Check tracepoints before sending
7417 commands to target, don't start if all tracepoints disabled.
7418
d350db38
PA
74192010-03-28 Pedro Alves <pedro@codesourcery.com>
7420
12f2d601 7421 * cli/cli-script.c (process_next_line): Handle 'stepping'.
d350db38 7422
8b9b7ef8
SS
74232010-03-26 Stan Shebs <stan@codesourcery.com>
7424
7425 * tracepoint.c (disconnect_or_stop_tracing): Get out of tfind mode.
7426
9766ced4
SS
74272010-03-26 Tom Tromey <tromey@redhat.com>
7428
7429 * breakpoint.c (commands_command_1): Duplicate 'arg'.
7430
059acae7
UW
74312010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
7432
7433 * breakpoint.c (expand_line_sal_maybe): Always call skip_prologue_sal.
7434 (skip_prologue_sal): Remove local definition.
7435 (resolve_sal_pc): Remove now unnecessary code.
7436 * linespec.c (minsym_found): Call skip_prologue_sal.
7437 * symtab.c (find_function_start_pc): Remove.
7438 (find_function_start_sal): Extract prologue skipping into ...
7439 (skip_prologue_sal): ... this new function. Handle code both
7440 with and without debug info. Respect SAL's explicit_pc and
7441 explicit_line flags. Inline old find_function_start_pc.
7442 * symtab.h (find_function_start_pc): Remove.
7443 (skip_prologue_sal): Add prototype.
7444
4a811a97
UW
74452010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
7446
7447 * dwarf2read.c (read_func_scope): Also scan specification DIEs
7448 for DW_TAG_imported_module children.
7449
907af001
UW
74502010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
7451
7452 * dwarf2read.c (dwarf2_name): Work around GCC bugzilla debug/41828 by
7453 ignoring spurious DW_AT_name attributes for unnamed structs or unions.
7454 * completer.c (add_struct_fields): Fix inverted logic.
7455
dde2d684
UW
74562010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
7457
7458 * breakpoint.c (bpstat_clear_actions): Reset bs->commands_left.
7459
a609a0c8
PA
74602010-03-26 Pedro Alves <pedro@codesourcery.com>
7461
7462 * tracepoint.c (current_trace_status): Don't make sure error_desc
7463 is non-NULL here.
7464 (parse_trace_status): Release a previous error_desc string, and
7465 set it to NULL by default. If stop reason is tracepoint_error,
7466 make sure error_desc is not left NULL.
7467
610197fd
PA
74682010-03-26 Pedro Alves <pedro@codesourcery.com>
7469
7470 * tracepoint.c (trace_save): Remove X from tracepoint error
7471 description.
7472
99b5e152
PA
74732010-03-26 Pedro Alves <pedro@codesourcery.com>
7474
7475 * tracepoint.c (parse_trace_status): Don't allow plain strings in
7476 the terror description. Don't expect an X prefix.
7477
6c28cbf2
SS
74782010-03-25 Stan Shebs <stan@codesourcery.com>
7479
7480 * tracepoint.h (trace_stop_reason): Add tracepoint_error.
7481 (struct trace_status): New field error_desc.
7482 * tracepoint.c (stop_reason_names): Add terror.
7483 (current_trace_status): Ensure non-NULL error description.
7484 (trace_status_command): Add error report.
7485 (trace_status_mi): Ditto.
7486 (trace_save): Add special case for error description.
7487 (parse_trace_status): Add case for errors.
7488
418835cc
KS
74892010-03-25 Keith Seitz <keiths@redhat.com>
7490
7491 * dwarf2read.c (read_subroutine_type): If the compilation unit
7492 language is Java, mark any formal parameter named "this" as
7493 artificial (GCC/43521).
7494 (dwarf2_name): Add special handling for Java constructors.
7495
aa7d318d
TT
74962010-03-25 Tom Tromey <tromey@redhat.com>
7497
7498 PR gdb/11327, PR gdb/11328, PR breakpoints/11368:
7499 * infrun.c (handle_inferior_event): Change initialization of
7500 stop_stack_dummy.
7501 (handle_inferior_event): Change assignment to stop_stack_dummy.
7502 (normal_stop): Update use of stop_stack_dummy.
7503 (struct inferior_status) <stop_stack_dummy>: Change type.
7504 * inferior.h (stop_stack_dummy): Update.
7505 * infcmd.c (stop_stack_dummy): Change type.
7506 * infcall.c (cleanup_delete_std_terminate_breakpoint): New
7507 function.
7508 (call_function_by_hand): Call set_std_terminate_breakpoint.
7509 Rewrite std::terminate handling.
7510 * breakpoint.h (enum bptype) <bp_std_terminate,
7511 bp_std_terminate_master>: New.
7512 (enum stop_stack_kind): New.
7513 (struct bpstat_what) <call_dummy>: Change type.
7514 (set_std_terminate_breakpoint, delete_std_terminate_breakpoint):
7515 Declare.
7516 * breakpoint.c (create_std_terminate_master_breakpoint): New
7517 function.
7518 (update_breakpoints_after_exec): Handle bp_std_terminate_master.
7519 Call create_std_terminate_master_breakpoint.
7520 (print_it_typical): Handle new breakpoint kinds.
7521 (bpstat_stop_status): Handle bp_std_terminate_master.
7522 (bpstat_what): Correctly set call_dummy field. Handle
7523 bp_std_terminate_master and bp_std_terminate.
7524 (print_one_breakpoint_location): Update.
7525 (allocate_bp_location): Update.
7526 (set_std_terminate_breakpoint): New function.
7527 (delete_std_terminate_breakpoint): Likewise.
7528 (create_thread_event_breakpoint): Update.
7529 (delete_command): Update.
7530 (breakpoint_re_set_one): Update.
7531 (breakpoint_re_set): Call create_std_terminate_master_breakpoint.
7532
82ccf5a5
JK
75332010-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7534
7535 * symfile.c (build_section_addr_info_from_bfd): New.
7536 (build_section_addr_info_from_objfile): Base it on
7537 build_section_addr_info_from_bfd.
7538 (addrs_section_compar, addrs_section_sort): New.
7539 (addr_info_make_relative): New variables my_cleanup, abfd_addrs,
7540 addrs_sorted, abfd_addrs_sorted and addrs_to_abfd_addrs. Build
7541 addrs_to_abfd_addrs. Use it for recalculating ADDRS.
7542
737c4c52
MS
75432010-03-24 Michael Snyder <msnyder@localhost.localdomain>
7544
8d95cc3b 7545 * elfread.c (find_separate_debug_file_by_buildid):
737c4c52
MS
7546 Remove unused local variable.
7547
95a42b64
TT
75482010-03-24 Tom Tromey <tromey@redhat.com>
7549
7550 PR breakpoints/9352:
7551 * NEWS: Mention changes to `commands' and `rbreak'.
7552 * symtab.c (do_end_rbreak_breakpoints): New function.
7553 (rbreak_command): Call start_rbreak_breakpoints; arrange to call
7554 end_rbreak_breakpoints.
7555 * breakpoint.c (breakpoint_count, tracepoint_count): Now static.
7556 (set_breakpoint_count): Likewise. Clear last_was_multi.
7557 (multi_start, multi_end, last_was_multi): New globals.
7558 (start_rbreak_breakpoints, end_rbreak_breakpoints): New
7559 functions.
7560 (struct commands_info): New
7561 (do_map_commands_command): New function.
7562 (commands_command_1): New function.
7563 (commands_command): Use it.
7564 (commands_from_control_command): Likewise.
7565 (do_delete_breakpoint): New function.
7566 (delete_command): Use it.
7567 (map_breakpoint_numbers): Add 'data' argument. Pass to callback.
7568 (do_map_disable_breakpoint): New function.
7569 (disable_command): Use it.
7570 (do_map_enable_breakpoint): New function.
7571 (enable_command): Use it.
7572 (enable_once_breakpoint): Add argument.
7573 (enable_once_command): Update.
7574 (enable_delete_breakpoint): Add argument.
7575 (enable_delete_command): Update.
7576 (break_command_really): Set last_was_multi when needed.
7577 (check_tracepoint_command): Fix formatting.
7578 (validate_commands_for_breakpoint): New function.
7579 (breakpoint_set_commands): Use it.
7580 (tracepoint_save_command): Update.
7581 * breakpoint.h (start_rbreak_breakpoints, end_rbreak_breakpoints):
7582 Declare.
7583
9add0f1b
TT
75842010-03-24 Tom Tromey <tromey@redhat.com>
7585
7586 * breakpoint.h (struct counted_command_line): New struct.
7587 (struct breakpoint) <commands>: Change type.
7588 (struct bpstats) <commands>: Change type.
7589 <commands_left>: New field.
7590 * breakpoint.c (alloc_counted_command_line): New function.
7591 (incref_counted_command_line): Likewise.
7592 (decref_counted_command_line): Likewise.
7593 (do_cleanup_counted_command_line): Likewise.
7594 (make_cleanup_decref_counted_command_line): Likewise.
7595 (breakpoint_set_commands): Use decref_counted_command_line and
7596 alloc_counted_command_line.
7597 (commands_command): Don't error if breakpoint commands are
7598 executing.
7599 (commands_from_control_command): Likewise.
7600 (bpstat_free): Update.
7601 (bpstat_copy): Likewise.
7602 (bpstat_clear_actions): Likewise.
7603 (bpstat_do_actions_1): Likewise.
7604 (bpstat_stop_status): Likewise.
7605 (print_one_breakpoint_location): Likewise.
7606 (delete_breakpoint): Likewise.
7607 (bpstat_alloc): Initialize new field.
7608 (tracepoint_save_command): Update.
7609 * tracepoint.c (encode_actions): Update.
7610 (trace_dump_command): Update.
7611
a6c727b2
DJ
76122010-03-24 Daniel Jacobowitz <dan@codesourcery.com>
7613
7614 * dwarf2-frame.c (dwarf2_frame_find_quirks): Use producer_is_realview.
7615 * dwarf2read.c (load_full_comp_unit): Read DW_AT_producer.
7616 (read_structure_type): For RealView, set TYPE_STUB on structures with
7617 no byte size and no children.
7618 (read_subroutine_type): Mark functions as prototyped by default.
7619 * symtab.c (producer_is_realview): New function.
7620 * symtab.h (expand_line_sal): Fix declaration formatting.
7621 (producer_is_realview): Declare.
7622
0d39a070
DJ
76232010-03-24 Daniel Jacobowitz <dan@codesourcery.com>
7624
7625 * arm-tdep.c (skip_prologue_function): New function.
7626 (submask, bit, bits, sbits, BranchDest): Move higher in the file.
7627 (thumb_analyze_prologue): Document return value. Recognize more
7628 Thumb instructions, skippable calls, and some Thumb-2 instructions.
7629 Add debug output.
7630 (arm_skip_prologue): Remove call dummy check. Check the prologue
7631 for non-GNU compilers.
7632 (arm_instruction_changes_pc): New function.
7633 (arm_analyze_prologue): New function, broken out from
7634 arm_scan_prologue. Recognize more ARM instructions and skippable
7635 calls. Update comments. Handle NULL cache. Return the address
7636 of the first unrecognized instruction. Do not skip past other
7637 instructions which change control flow. Add debug output.
7638 (arm_scan_prologue): Use arm_analyze_prologue.
7639 (ARM_PC_32): Delete.
7640 (shifted_reg_val): Simplify ARM_PC_32 check.
7641
4baf5cf4
VP
76422010-03-24 Vladimir Prus <vladimir@codesourcery.com>
7643
7644 * tracepoint.c (tvariables_info_1): Actually compute
7645 the number of rows in the result.
7646
4a5e7a5b
PA
76472010-03-24 Pedro Alves <pedro@codesourcery.com>
7648
7649 * remote.c (crc32): Constify `buf' parameter.
7650 (remote_verify_memory): New, abstracted out from...
7651 (compare_sections_command): ... this. Remove hardcoded target
7652 checks.
7653 (init_remote_ops): Install remote_verify_memory.
7654 * target.c (target_verify_memory): New.
7655 * target.h (struct target_ops) <to_verify_memory>: New field.
7656 (target_verify_memory): Declare.
7657
011aacb0
VP
76582010-03-24 Vladimir Prus <vladimir@codesourcery.com>
7659
7660 Implement -trace-save.
7661
7662 * mi-cmds.h (mi_cmds_trace_save): Declare.
7663 * mi-cmds.c (mi_cmds): Register -trace-save.
7664 * mi/mi-main.c (mi_cmd_trace_save): New.
7665 * remote.c (remote_save_trace_data): Take const parameter.
7666 * target.h (struct target_ops::to_save_trace_data): Take
7667 const parameter.
7668 * target.c (update_current_target): Adjust to the above.
7669 * tracepoint.c (trave_save): New, extracted from
7670 (trace_save_command): ...this.
7671 (tfile_trace_find): Remove message that is unnecessary now
7672 that 'tfind' reports found frame.
7673 * tracepoint.h (trace_save): Declare.
7674
f197e0f1
VP
76752010-03-24 Vladimir Prus <vladimir@codesourcery.com>
7676
7677 Implement -trace-find.
7678
7679 * mi/mi-cmds.c (mi_cmds): Register -trace-find.
7680 * mi/mi-cmds.h (mi_cmd_trace_find): Declare.
7681 * mi/mi-main.c (mi_cmd_trace_find): New.
7682 * target.h (struct target_ops): Document to_trace_find.
7683 * tracepoint.h (tfind_1): Declare.
7684 * tracepoint.c (finish_tfind_command): Rename to...
7685 (tfind_1): ...this.
7686 * remote.c (remote_trace_find): Return -1 if target say
7687 there's no frame. Improve error diagnostics.
7688
40e1c229
VP
76892010-03-24 Vladimir Prus <vladimir@codesourcery.com>
7690
7691 -trace-define-variable and -trace-list-variables.
7692
7693 * tracepoint.c (create_trace_state_variable): Make
7694 private copy of name, as opposed to assuming the
7695 pointer lives forever.
7696 (tvariables_info_1): New.
7697 (tvariables_info): Use the above.
7698 * tracepoint.h (create_trace_state_variable, tvariables_info_1):
7699 Declare.
7700 * mi/mi-cmds.c (mi_cmds): Register -trace-define-variable
7701 and -trace-list-variables.
7702 * mi/mi-cmds.h (mi_cmd_trace_define_variable)
7703 (mi_cmd_trace_list_variables): New.
7704 * mi/mi-main.c (mi_cmd_trace_define_variable)
7705 (mi_cmd_trace_list_variables): New.
7706
9b4c786c
VP
77072010-03-24 Vladimir Prus <vladimir@codesourcery.com>
7708
7709 Implement -break-passcount.
7710
7711 * mi/mi-cmd-break.c (mi_cmd_break_passcount): New.
7712 * mi/mi-cmds.c (mi_cmds): Register -break-passcount.
7713 * mi/mi-cmds.h (mi_cmd_break_passcount): Declare.
7714
f224b49d
VP
77152010-03-24 Vladimir Prus <vladimir@codesourcery.com>
7716
7717 -trace-start/-trace-end/-trace-status.
7718
7719 * mi/mi-cmds.c (mi_cmds): Register -trace-start, -trace-status
7720 and -trace-stop.
7721 * mi/mi-cmds.h (mi_cmd_trace_start, mi_cmd_trace_status)
7722 (mi_cmd_trace_stop): Declare.
7723 * mi/mi-main.c (mi_cmd_trace_start, mi_cmd_trace_status)
7724 (mi_cmd_trace_stop): New.
7725 * tracepoint.c (start_tracing): New, extracted from...
7726 (trace_start_command): ...this.
7727 (trace_status_mi): New.
7728 * tracepoint.h (struct trace_status): Document
7729 stopping_tracepoint.
7730 (start_tracing, stop_tracing, trace_status_mi): Declare.
7731
6534d786
VP
77322010-03-24 Vladimir Prus <vladimir@codesourcery.com>
7733
7734 Implement creating tracepoints with -break-insert.
7735
7736 * mi/mi-cmd-break.c (mi_cmd_break_insert): Handle -a
7737 to mean that tracepoint should be created.
7738
51661e93
VP
77392010-03-24 Vladimir Prus <vladimir@codesourcery.com>
7740
7741 * breakpoint.c (check_no_tracepoint_commands): Use
7742 current spelling of 'teval'.
7743
a7bdde9e
VP
77442010-03-24 Vladimir Prus <vladimir@codesourcery.com>
7745
7746 Unify actions and commands
7747
7748 * defs.h (read_command_lines, read_command_lines_1): New
7749 parameters validator and closure.
7750 * tracepoint.h (struct action_line): Remove.
7751 * breakpoint.h (struct breakpoint): Remove the 'actions'
7752 field.
7753 * defs.h (enum command_control_type): New value
7754 while_stepping_control.
7755 (struct command_line): Add comments.
7756 * breakpoint.c (breakoint_is_tracepoint): New.
7757 (breakpoint_set_commands): For tracepoints,
7758 verify the commands are permissible.
7759 (check_tracepoint_commands): New.
7760 (commands_command): Require that each new line is validated using
7761 check_tracepoint_command, if we set commands for a tracepoint.
7762 (create_tracepoint_from_upload): Likewise.
7763 (print_one_breakpoint_location): Remove the code to print
7764 actions specifically.
7765 (tracepoint_save_command): Relay to print_command_lines.
7766 * cli/cli-script.c (process_next_line): New parameters validator
7767 and closure. Handle 'while-stepping'. Call validator if not null.
7768 (read_command_lines, read_command_lines1): Likewise.
7769 (recurse_read_control_structure): New parameters validator and
7770 closure. Handle while_stepping_control.
7771 (print_command_lines): Handle while-stepping.
7772 (get_command_line, define_command, document_command): Adjust.
7773 * remote.c (remote_download_tracepoint): Adjust.
7774 * tracepoint.c (make_cleanup_free_actions, read_actions)
7775 (free_actions, do_free_actions_cleanup): Remove.
7776 (trace_actions_command): Use read_command_lines.
7777 (validate_actionline): Use error in one place.
7778 (encode_actions_1): New, extracted from...
7779 (encode_actions): ...this. Also use cleanups for exception
7780 safety.
7781 (trace_dump_command): Adjust.
7782 * mi/mi-cmd-break (mi_cmd_break_commands): Validate commands if
7783 it's tracepoint.
7784
64e3cf3d
MF
77852010-03-23 Mike Frysinger <vapier@gentoo.org>
7786
7787 * Makefile.in (OPCODES_CFLAGS): Add -I$(OPCODES_SRC)/..
7788
52e9fde8
SS
77892010-03-22 Stan Shebs <stan@codesourcery.com>
7790
7791 * value.c (value_static_field): Be lazy about the field's value.
7792
508ccb1f
TT
77932010-03-22 Reid Kleckner <reid@kleckner.net>
7794
7795 PR gdb/11094
7796 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): Add
7797 bp_jit_event.
7798 (disable_breakpoints_in_shlibs): Likewise.
7799
acebe513
UW
78002010-03-22 Ulrich Weigand <uweigand@de.ibm.com>
7801
7802 * dwarf2read.c (partial_die_parent_scope): Work around buggy
7803 GCC 4.1 debug info generation (GCC PR c++/28460).
7804 (determine_prefix): Likewise.
7805
957b8b5a
DJ
78062010-03-20 Daniel Jacobowitz <dan@codesourcery.com>
7807
7808 * tui/tui-disasm.c (tui_get_begin_asm_address): Default to
7809 get_current_arch.
7810 * tui/tui-layout.c (extract_display_start_addr): Likewise.
7811
3b11a015
SS
78122010-03-19 Stan Shebs <stan@codesourcery.com>
7813
7814 * ax-gdb.c (gen_fetch): Handle bool.
7815 (gen_usual_unary): Ditto.
7816 (gen_cast): Ditto.
7817 (gen_equal): New function.
7818 (gen_less): New function.
7819 (gen_expr_binop_rest): Call them, also return integer type from
7820 logical operations.
7821 (gen_expr): Ditto.
7822
20781792
TT
78232010-03-19 Tom Tromey <tromey@redhat.com>
7824
7825 * jv-lang.c (jv_dynamics_objfile_data_key)
7826 (jv_type_objfile_data_key): New globals.
7827 (class_symtab): Move earlier.
7828 (jv_per_objfile_free): New function.
7829 (get_dynamics_objfile): Call set_objfile_data. Add 'gdbarch'
7830 parameter.
7831 Remove ancient #if 1.
7832 (add_class_symbol): Remove redundant declaration.
7833 (java_lookup_class): Use alloc_type, not alloc_type_arch.
7834 (java_link_class_type): Mark as static. Update.
7835 (jv_clear_object_type): New function.
7836 (set_java_object_type): Likewise.
7837 (get_java_object_type): Use set_java_object_type.
7838 (is_object_type): Likewise.
7839 (_initialize_java_language): Register new objfile keys.
7840 (get_java_class_symtab): Add 'gdbarch' parameter.
7841 (add_class_symtab_symbol): Update.
7842 (type_from_class): Update.
7843
cf3e25ca
SS
78442010-03-19 Stan Shebs <stan@codesourcery.com>
7845
8d95cc3b 7846 * ax-general.c (ax_const_l): Fix a sizing bug.
cf3e25ca 7847
f1ae44c9 78482010-03-18 Joel Brobecker <brobecker@adacore.com>
7849
7850 GDB 7.1 released.
7851
4daf5ac0
SS
78522010-03-18 Stan Shebs <stan@codesourcery.com>
7853 Pedro Alves <pedro@codesourcery.com>
7854
7855 * target.h (struct target_ops): New method
7856 to_set_circular_trace_buffer.
7857 (target_set_circular_trace_buffer): New macro.
7858 * target.c (update_current_target): Add
7859 to_set_circular_trace_buffer, fix to_set_disconnected_tracing
7860 default behavior.
7861 * remote.c (remote_set_circular_trace_buffer): New function.
7862 (init_remote_ops): Add it to vector.
7863 * tracepoint.h (struct trace_status): New field traceframes_created,
7864 change buffer_size and buffer_free to int.
7865 * tracepoint.c (circular_trace_buffer): New global.
7866 (start_tracing): Send values of disconnected tracing and circular
7867 trace buffer settings.
7868 (set_circular_trace_buffer): New function.
7869 (parse_trace_state): Handle total space and frames created.
7870 (trace_status_command): Display total space and total frames
7871 created.
7872 (trace_save): Write out new status values.
7873 (parse_trace_status): Set traceframe_count, traceframes_created,
7874 buffer_free and buffer_size to -1 by default.
7875 (_initialize_tracepoint): New setshow for circular-trace-buffer.
7876 * NEWS: Mention the circular trace buffer option.
7877
40c549d6
TT
78782010-03-18 Tom Tromey <tromey@redhat.com>
7879
7880 * infcmd.c (finish_command_continuation): Wrap print_return_value
7881 in TRY_CATCH.
7882
e8d05480
JB
78832010-03-18 Joel Brobecker <brobecker@adacore.com>
7884
7885 * dwarf2read.c (add_partial_subprogram): Make sure the subprogram
7886 DIE has a name before creating the associated partial symbol.
7887 (read_func_scope): Emit a complaint if the subprogram does not
7888 have a name or when we can't extract the subprogram PC bounds.
7889
441b986a
UW
78902010-03-18 Ulrich Weigand <uweigand@de.ibm.com>
7891
7892 * mi/mi-main.c (mi_cmd_list_thread_groups): Use get_current_arch
7893 instead of selected frame architecture.
7894
4247603b
PA
78952010-03-18 Pedro Alves <pedro@codesourcery.com>
7896
7897 * infcmd.c (until_command): Use ERROR_NO_INFERIOR. Ensure there's
7898 a valid selected thread, and that it is not running.
7899 (advance_command): Ditto.
7900 (finish_command): Ditto.
7901
400c6af0
SS
79022010-03-17 Stan Shebs <stan@codesourcery.com>
7903
3a96536b
SS
7904 * ax-gdb.c (require_rvalue): Disallow non-scalars.
7905
573cda03
SS
7906 * infcall.c: Include tracepoint.h.
7907 (call_function_by_hand): Disallow calls in tfind mode.
7908 * infcmd.c: Include tracepoint.h.
7909 (ensure_not_tfind_mode): New function.
7910 (continue_1): Call it.
7911 (step_1) Ditto.
7912 (jump_command): Ditto.
7913 (signal_command): Ditto.
7914 (advance_command): Ditto.
7915 (until_command): Ditto.
7916 (finish_command): Ditto.
7917 * tracepoint.h (disconnect_or_stop_tracing): Declare.
7918
400c6af0
SS
7919 * ax-gdb.h (struct axs_value): New field optimized_out.
7920 (gen_trace_for_var): Add gdbarch argument.
7921 * ax-gdb.c (gen_trace_static_fields): New function.
7922 (gen_traced_pop): Call it, add gdbarch argument.
7923 (gen_trace_for_expr): Update call to it.
7924 (gen_trace_for_var): Ditto, and report optimized-out variables.
7925 (gen_struct_ref_recursive): Check for optimized-out value.
7926 (gen_struct_elt_for_reference): Ditto.
7927 (gen_static_field): Pass gdbarch instead of expression, assume
7928 optimization if field not found.
7929 (gen_var_ref): Set the optimized_out flag.
7930 (gen_expr): Error on optimized-out variable.
7931 * tracepoint.c (collect_symbol): Handle struct-valued vars as
7932 expressions, skip optimized-out variables with computed locations.
7933 * dwarf2loc.c (dwarf2_tracepoint_var_ref): Flag instead of
7934 erroring out if location expression missing.
7935 (loclist_tracepoint_var_ref): Don't error out here.
7936
a3b2a86b
TT
79372010-03-17 Tom Tromey <tromey@redhat.com>
7938
7939 * dwarf2read.c (dwarf2_get_section_info): Handle case where no
7940 DWARF data is available.
7941
38963c97
DJ
79422010-03-17 Daniel Jacobowitz <dan@codesourcery.com>
7943
7944 * symfile.c (generic_load): Reset breakpoints after loading.
7945
ddabfc73
TT
79462010-03-17 Tom Tromey <tromey@redhat.com>
7947
7948 * linux-nat.c (linux_nat_detach): Check debug_linux_nat.
7949
d8c09fb5
JK
79502010-03-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7951
7952 * spu-tdep.c (spu_catch_start): Replace set_breakpoint call with the
7953 create_breakpoint call, adjust the parameters.
7954
bbb0eef6
JK
79552010-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7956 Chandru <chandru@in.ibm.com>
7957
7958 * dwarf2read.c (read_subrange_type): Set TYPE_HIGH_BOUND_UNDEFINED.
7959 * valarith.c (value_subscripted_rvalue): Suppress error if
7960 TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED.
7961
46956e39
HZ
79622010-03-16 Holger Hans Peter Freyther <zecke@selfish.org>
7963
7964 * linux-record.c (record_linux_msghdr): Remove unintended semicolons.
7965
b8d088ac
JB
79662010-03-16 Joel Brobecker <brobecker@adacore.com>
7967
7968 * ada-tasks.c (task_command_1): Check that the task ptid is valid
7969 before doing the associated thread switch.
7970
322be962
DJ
79712010-03-16 Daniel Jacobowitz <dan@codesourcery.com>
7972
7973 * MAINTAINERS: Update my email address.
7974
8cdf0e15
VP
79752010-03-16 Vladimir Prus <vladimir@codesourcery.com>
7976
7977 Simplify MI breakpoint setting.
7978
7979 * breakpoint.c (break_command_really): Make nonstatic and
7980 rename to...
7981 (create_breakpoint): ...this. Rename prior function by this name
7982 to...
7983 (create_breakpoint_sal): ...this.
7984 (create_breakpoints): Rename to...
7985 (create_breakpoints_sal): ...this.
7986 (set_breakpoint): Remove.
7987 * breakpoint.h: Adjust to above changes.
7988 * mi/mi-cmd-break.c (mi_cmd_break_insert): Simplify.
7989
b6e7192f
SS
79902010-03-15 Stan Shebs <stan@codesourcery.com>
7991
7992 * ax-gdb.c: Include cp-support.h.
7993 (find_field): Remove.
7994 (gen_primitive_field): New function.
7995 (gen_struct_ref_recursive): New function.
7996 (gen_struct_ref): Rewrite to call gen_struct_ref_recursive instead
7997 of find_field.
7998 (gen_static_field): New function.
7999 (gen_struct_elt_for_reference): New.
8000 (gen_namespace_elt): New.
8001 (gen_maybe_namespace_elt): New.
8002 (gen_aggregate_elt_ref): New.
8003 (gen_expr): Add OP_SCOPE, display opcode name in error message.
8004
1054b214
TT
80052010-03-15 Tom Tromey <tromey@redhat.com>
8006
8007 * dwarf2read.c (die_needs_namespace): Also return 0 for
8008 DW_TAG_subprogram.
8009
13387711
SW
80102010-03-15 Sami Wagiaalla <swagiaal@redhat.com>
8011
8012 PR c++/7936:
8013 * cp-support.h: Added char *declaration element to using_direct
8014 data struct.
8015 (cp_add_using): Added char *declaration argument.
8016 (cp_add_using_directive): Ditto.
8017 (cp_lookup_symbol_imports): made extern.
8018 * cp-namespace.c: Updated with the above changes.
8019 * dwarf2read.c (read_import_statement): Ditto.
8020 (read_namespace): Ditto.
8021 (read_import_statement): Support import declarations.
8022 * cp-namespace.c (cp_lookup_symbol_imports): Check for imported
8023 declarations.
8024 Added support for 'declaration_only' search.
8025 (cp_lookup_symbol_namespace): Attempt to search for the name as
8026 is before consideration of imports.
8027 * symtab.c (lookup_symbol_aux_local): Added a 'declaration_only'
8028 search at every block level search.
8029 Now takes language argument.
8030 (lookup_symbol_aux): Updated.
8031
6e31430b
TT
80322010-03-15 Tom Tromey <tromey@redhat.com>
8033
8034 * c-exp.y (name_not_typename): Add 'operator' clause.
8035
4dea3bb7 80362010-03-15 Ralf Corsepius <ralf.corsepius@rtems.org> (tiny change)
bf307134
JB
8037
8038 * configure.ac: Exit if ${gdb_target_obs}" is not set.
8039 * configure: Regenerate.
8040
4d9743af
JK
80412010-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8042
8043 * symfile.c (addr_info_make_relative): Ignore also missing ".dynbss"
8044 and ".sdynbss". Update the comment.
8045
f75150fe
JZ
80462010-03-15 Jie Zhang <jie@codesourcery.com>
8047
8048 * MAINTAINERS: Update my email address.
8049
3c13bc11
DJ
80502010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
8051
8052 * gdbtypes.h (TYPE_IS_OPAQUE): Correct HAVE_CPLUS_STRUCT check.
8053
43484f03
DJ
80542010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
8055
8056 * charset.c [USE_WIN32API]: Include <windows.h>.
8057 (_initialize_charset): Correct type of w32_host_default_charset.
8058
5f25d77d
PA
80592010-03-14 Pedro Alves <pedro@codesourcery.com>
8060
8061 * infrun.c (ptid_match): Don't assert that PTID is not a pid ptid.
8062
1c809c68
TT
80632010-03-12 Tom Tromey <tromey@redhat.com>
8064
8065 PR c++/9708:
8066 * dwarf2read.c (die_needs_namespace) <DW_TAG_variable>: A variable
8067 in a lexical block does not need a namespace.
8068 (new_symbol) <DW_TAG_variable>: Put extern variables on
8069 list_in_scope in all cases.
8070
948103cf
SS
80712010-03-12 Stan Shebs <stan@codesourcery.com>
8072
8073 * ax-gdb.c (gen_expr): Add shift expressions.
8074 (gen_expr_binop_rest): Ditto.
8075
00ae8fef
SW
80762010-03-12 Sami Wagiaalla <swagiaal@redhat.com>
8077
8078 * buildsym.c (finish_block): Reset using_directives pointer
8079 after block initialization.
8080
9cad29ac
L
80812010-03-12 H.J. Lu <hongjiu.lu@intel.com>
8082
8083 * amd64-tdep.c (amd64_word_names): Replace "sp" with "".
8084 * i386-tdep.c (i386_word_names): Likewise.
8085
2f4d8875
PA
80862010-03-12 Pedro Alves <pedro@codesourcery.com>
8087
8088 * target.c (memory_xfer_partial): Don't use the stack cache if
8089 inspecting trace frames.
8090 * tracepoint.c (finish_tfind_command): Invalidate the target
8091 dcache.
8092
ccf26247
JK
80932010-03-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8094
8095 * solib-svr4.c (LM_ADDR_CHECK) <info_verbose>: Use printf_unfiltered
8096 for the PIC displacement, print also the displacement value.
8097 (svr4_exec_displacement): Print DISPLACEMENT if INFO_VERBOSE.
8098
477c84a7
KB
80992010-03-10 Kevin Buettner <kevinb@redhat.com>
8100
8101 * remote-mips.c (close_ports, mips_initialize_cleanups)
8102 (mips_exit_cleanups, mips_send_command, mips_open, pmon_open)
8103 (ddb_open, lsi_open, mips_remove_breakpoint, mips_remove_watchpoint)
8104 (mips_stopped_by_watchpoint, send_srec, pmon_checkset)
8105 (pmon_make_fastrec, pmon_check_ack, mips_expect_download)
8106 (pmon_check_entry_address, pmon_check_total, pmon_end_download)
8107 (pmon_download, pmon_load_fast, _initialize_remote_mips): Add
8108 comments describing each of these functions.
8109 (mips_enter_debug, mips_exit_debug, common_open)
8110 (mips_signal_from_protocol, pmon_makeb64, pmon_zeroset): Add
8111 blank line after the comment describing the function.
8112
01c30d6e
JK
81132010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8114
8115 * solib-svr4.c (svr4_exec_displacement): Return now success, new
8116 parameter displacementp. Update comment.
8117 (svr4_relocate_main_executable): Return if non-zero SECTION_OFFSETS
8118 element exists. Return if svr4_exec_displacement was not successful.
8119 Update comment.
8120
09919ac2
JK
81212010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8122 Daniel Jacobowitz <dan@codesourcery.com>
8123
8124 * solib-svr4.c (read_program_header): Support type == -1 to read
8125 all program headers.
8126 (read_program_headers_from_bfd): New function.
8127 (svr4_static_exec_displacement): Remove and move the comment ...
8128 (svr4_exec_displacement): ... here. Remove variable found. New
8129 variable displacement. Check also DYNAMIC. Verify DISPLACEMENT
8130 alignment for ELF targets. Compare target vs. exec_bfd PHDRs for ELF
8131 targets using read_program_headers_from_bfd. Remove the call of
8132 svr4_static_exec_displacement.
8133
d146bf1e
TT
81342010-03-10 Tom Tromey <tromey@redhat.com>
8135
8136 * dwarf2read.c (struct pubnames_header): Remove.
8137 (_PUBNAMES_HEADER): Remove.
8138 (_ACTUAL_PUBNAMES_HEADER_SIZE): Remove.
8139 (struct aranges_header): Remove.
8140 (_ARANGES_HEADER, _ACTUAL_ARANGES_HEADER_SIZE): Remove.
8141 (struct dwarf2_per_objfile) <pubnames, aranges>: Remove.
8142 (PUBNAMES_SECTION): Remove.
8143 (ARANGES_SECTION): Remove.
8144 (dwarf2_locate_sections): Don't handle pubnames or aranges.
8145 (dwarf2_build_psymtabs): Remove dead code.
8146 (dwarf2_build_psymtabs_easy): Remove.
8147
be391dca
TT
81482010-03-10 Tom Tromey <tromey@redhat.com>
8149
8150 * elfread.c (elf_symfile_read): Don't call
8151 dwarf2_build_frame_info.
8152 * dwarf2read.c (struct dwarf2_section_info) <readin>: New field.
8153 (struct dwarf2_per_objfile) <objfile>: New field.
8154 (dwarf2_has_info): Now idempotent. Set objfile field.
8155 (dwarf2_read_section): Check and set readin field. Call
8156 posix_madvise.
8157 (dwarf2_build_psymtabs): Don't read all sections.
8158 (read_type_comp_unit_head): Read types section.
8159 (create_debug_types_hash_table): Likewise.
8160 (init_cu_die_reader): Add asserts.
8161 (process_type_comp_unit): Add assert.
8162 (dwarf2_build_psymtabs_hard): Read info section.
8163 (load_partial_comp_unit): Add assert.
8164 (create_all_comp_units): Read info section.
8165 (load_full_comp_unit): Likewise.
8166 (dwarf2_ranges_read): Read ranges section.
8167 (dwarf2_record_block_ranges): Add assert.
8168 (dwarf2_read_abbrevs): Read abbrev section.
8169 (read_indirect_string): Read str section.
8170 (dwarf_decode_line_header): Read line section.
8171 (read_signatured_type_at_offset): Read types section.
8172 (dwarf_decode_macros): Read macinfo section.
8173 (dwarf2_symbol_mark_computed): Read loc section.
8174 * dwarf2-frame.c (dwarf2_frame_find_fde): Call
8175 dwarf2_build_frame_info.
8176 (dwarf2_build_frame_info): Unconditionally set
8177 dwarf2_frame_objfile_data on the objfile.
8178 * configure.ac: Check for posix_madvise.
8179 * config.in, configure: Rebuild.
8180
ccefe4c4
TT
81812010-03-10 Tom Tromey <tromey@redhat.com>
8182
e38df1d0
TT
8183 * xcoffread.c (xcoff_start_psymtab): Update.
8184 (xcoff_end_psymtab): Update.
8185 * psymtab.c (allocate_psymtab): Remove dead code.
8186 * psympriv.h (struct partial_symtab) <read_symtab_private>: Now
8187 void*.
8188 * mdebugread.c (parse_partial_symbols): Update.
8189 (new_psymtab): Likewise.
8190 * dwarf2read.c (process_psymtab_comp_unit): Update.
8191 (psymtab_to_symtab_1): Update.
8192 * dbxread.c (start_psymtab): Update.
8193 (end_psymtab): Likewise.
8194
be391dca 81952010-03-10 Tom Tromey <tromey@redhat.com>
e38df1d0 8196
ccefe4c4
TT
8197 * xcoffread.c: Include psymtab.h.
8198 (xcoff_sym_fns): Update.
8199 * symtab.h (struct partial_symbol): Remove.
8200 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.
8201 (struct partial_symtab): Remove.
8202 (PSYMTAB_TO_SYMTAB): Remove.
8203 (lookup_partial_symbol, lookup_partial_symtab, find_pc_psymtab)
8204 (find_pc_sect_psymtab): Remove.
8205 (find_pc_sect_symtab_via_partial): Declare.
8206 (find_pc_psymtab, find_pc_sect_psymbol, psymtab_to_symtab)
8207 (find_main_psymtab): Remove.
8208 (find_main_filename): Declare.
8209 (fixup_psymbol_section): Remove.
8210 (fixup_section): Declare.
8211 * symtab.c: Include psymtab.h.
8212 (lookup_symtab): Use lookup_symtab method.
8213 (lookup_partial_symtab): Remove.
8214 (find_pc_sect_psymtab_closer): Remove.
8215 (find_pc_sect_psymtab): Remove.
8216 (find_pc_sect_symtab_via_partial): New function.
8217 (find_pc_psymtab, find_pc_sect_psymbol, find_pc_psymbol): Remove.
8218 (fixup_section): No longer static.
8219 (fixup_psymbol_section): Remove.
8220 (lookup_symbol_aux): Use lookup_symbol_aux_quick.
8221 (lookup_global_symbol_from_objfile): Likewise.
8222 (lookup_symbol_aux_psymtabs): Remove.
8223 (lookup_symbol_aux_quick): New function.
8224 (lookup_symbol_global): Use lookup_symbol_aux_quick.
8225 (lookup_partial_symbol): Remove.
8226 (basic_lookup_transparent_type_quick): New function.
8227 (basic_lookup_transparent_type): Use it.
8228 (find_main_psymtab): Remove.
8229 (find_main_filename): New function.
8230 (find_pc_sect_symtab): Use find_pc_sect_symtab method.
8231 (find_line_symtab): Use expand_symtabs_with_filename method.
8232 (output_partial_symbol_filename): New function.
8233 (sources_info): Use map_partial_symbol_filenames.
8234 (struct search_symbols_data): New type.
8235 (search_symbols_file_matches): New function.
8236 (search_symbols_name_matches): Likewise.
8237 (search_symbols): Use expand_symtabs_matching method.
8238 (struct add_name_data): Rename from add_macro_name_data.
8239 (add_macro_name): Update.
8240 (add_partial_symbol_name): New function.
8241 (default_make_symbol_completion_list): Use
8242 map_partial_symbol_names.
8243 (struct add_partial_symbol_name): New type.
8244 (maybe_add_partial_symtab_filename): New function.
8245 (make_source_files_completion_list): Use
8246 map_partial_symbol_filenames.
8247 (expand_line_sal): Use expand_symtabs_with_filename method.
8248 * symmisc.c: Include psymtab.h.
8249 (print_objfile_statistics): Use print_stats method.
8250 (dump_objfile): Use dump method.
8251 (dump_psymtab, maintenance_print_psymbols)
8252 (maintenance_info_psymtabs, maintenance_check_symtabs)
8253 (extend_psymbol_list): Remove.
8254 * symfile.h (struct quick_symbol_functions): New struct.
8255 (struct sym_fns) <qf>: New field.
8256 (sort_pst_symbols): Remove.
8257 (increment_reading_symtab): Declare.
8258 * symfile.c: Include psymtab.h.
8259 (compare_psymbols, sort_pst_symbols): Remove.
8260 (psymtab_to_symtab): Remove.
8261 (increment_reading_symtab): New function.
8262 (symbol_file_add_with_addrs_or_offsets): Use expand_all_symtabs
8263 method.
8264 (set_initial_language): Use find_main_filename.
8265 (allocate_psymtab, discard_psymtab, cashier_psymtab): Remove.
8266 (free_named_symtabs): Remove unused code.
8267 (start_psymtab_common, add_psymbol_to_bcache)
8268 (append_psymbol_to_list, add_psymbol_to_list, init_psymbol_list):
8269 Remove.
8270 * stack.c: Include psymtab.h, symfile.h.
8271 (backtrace_command_1): Use find_pc_sect_symtab_via_partial.
8272 * source.h (psymtab_to_fullname): Don't declare.
8273 * source.c: Include psymtab.h.
8274 (select_source_symtab): Use find_last_source_symtab method.
8275 (forget_cached_source_info): Use forget_cached_source_info
8276 method.
8277 (find_and_open_source): No longer static.
8278 (psymtab_to_fullname): Remove.
8279 * somread.c: Include psymtab.h.
8280 (som_sym_fns): Update.
8281 * psympriv.h: New file.
8282 * psymtab.h: New file.
8283 * psymtab.c: New file.
8284 * objfiles.h: (ALL_OBJFILE_PSYMTABS): Remove.
8285 (ALL_PSYMTABS, ALL_PSPACE_PSYMTABS): Likewise.
8286 * objfiles.c: Include psymtab.h.
8287 (objfile_relocate1): Use relocate method.
8288 (objfile_has_partial_symbols): Use has_symbols method.
8289 * mipsread.c: Include psymtab.h.
8290 (ecoff_sym_fns): Update.
8291 * mi/mi-cmd-file.c: Include psymtab.h.
8292 (print_partial_file_name): New function.
8293 (mi_cmd_file_list_exec_source_files): Use
8294 map_partial_symbol_filenames.
8295 * mdebugread.c: Include psympriv.h.
8296 * machoread.c: Include psympriv.h.
8297 (macho_sym_fns): Update.
8298 * m2-exp.y (yylex): Use lookup_symtab.
8299 * elfread.c: Include psympriv.h.
8300 (elf_sym_fns): Update.
8301 * dwarf2read.c: Include psympriv.h.
8302 * dbxread.c: Include psympriv.h.
8303 (aout_sym_fns): Update.
8304 * cp-support.c: Include psymtab.h.
8305 (read_in_psymtabs): Remove.
8306 (make_symbol_overload_list_qualified): Use
8307 expand_symtabs_for_function method.
8308 * coffread.c: Include psympriv.h.
8309 (coff_sym_fns): Update.
8310 * blockframe.c: Include psymtab.h.
8311 (find_pc_partial_function): Use find_pc_sect_symtab method.
8312 * ada-lang.h (ada_update_initial_language): Update.
8313 * ada-lang.c: Include psymtab.h.
8314 (ada_update_initial_language): Remove 'main_pst' argument.
8315 (ada_lookup_partial_symbol): Remove.
8316 (struct ada_psym_data): New type.
8317 (ada_add_psyms): New function.
8318 (ada_add_non_local_symbols): Use map_ada_symtabs method.
8319 (struct add_partial_datum): New type.
8320 (ada_add_partial_symbol_completions): New function.
8321 (ada_make_symbol_completion_list): Use map_partial_symbol_names.
8322 (ada_exception_support_info_sniffer): Update.
8323 * Makefile.in (SFILES): Add psymtab.c.
8324 (COMMON_OBS): Add psymtab.o.
8325 (HFILES_NO_SRCDIR): Add psymtab.h, psympriv.h.
8326
7d8500b7
PM
83272010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
8328
8329 * remote-fileio.c (cygwin_conv_path): Define macro for old cygwin API.
8330
c0cc3a76
SW
83312010-03-10 Sami Wagiaalla <swagiaal@redhat.com>
8332
8333 PR C++/11236:
8334 * cp-namespace.c (cp_add_using): Deleted.
8335 (cp_add_using_directive): Use obstack allocations.
8336 Merged the function cp_add_using into this one.
8337 Added 'struct obstack *' argument.
8338 (cp_scan_for_anonymous_namespaces): Updated.
8339 * cp-support.h: Updated.
8340 * dwarf2read.c (read_import_statement): Updated.
8341 (read_namespace): Updated.
8342
452fa064
CF
83432010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
8344
8345 * windows-nat.c (cygwin_conv_path): Remove old macro.
8346
60e1c644
PA
83472010-03-10 Pedro Alves <pedro@codesourcery.com>
8348
8349 * breakpoint.c (condition_command): Handle watchpoint conditions.
8350 (is_hardware_watchpoint): Add comment.
8351 (is_watchpoint): New.
8352 (update_watchpoint): Don't reparse the watchpoint's condition
8353 unless necessary.
8354 (WP_IGNORE): New.
8355 (watchpoint_check): Use it.
8356 (bpstat_check_watchpoint): Handle it.
8357 (bpstat_check_breakpoint_conditions): Evaluate watchpoint local
8358 conditions in a frame where it makes sense.
8359 (watch_command_1): Store the innermost block of the condition
8360 expression.
8361 (delete_breakpoint): Delete the watchpoint condition expression.
8362 * breakpoint.h (struct bp_location) <cond>: Update comment.
8363 (struct breakpoint): New field `cond_exp_valid_block'.
8364
af6b7be1
JB
83652010-03-09 Joel Brobecker <brobecker@adacore.com>
8366
8367 Adjust handling of Ada DIEs after dwarf2_physname patch.
8368 * dwarf2read.c (dwarf2_compute_name): Add handling of Ada DIEs.
8369
60c5c021
CF
83702010-03-09 Christopher Faylor <me+cygwin@cgf.cx>
8371 Pierre Muller <muller@ics.u-strasbg.fr>
8372
8373 * windows-nat.c (cygwin_conv_path): Redefine to properly convert
8374 from/to posix/win32.
8375 (windows_make_so): Use non-Cygwin 1.7 specific function.
8376 (windows_create_inferior): Make sure that cygallargs points to
8377 original args in non Cygwin 1.7. case.
8378
60a1502a
MS
83792010-03-09 Michael Snyder <msnyder@vmware.com>
8380
8381 * i386-tdep.c (i386_record_lea_modrm_addr): Use extract_signed_int
8382 after target_read_memory to get host byte order.
8383 (i386_process_record): Ditto.
8384
94af9270
KS
83852010-03-09 Keith Seitz <keiths@redhat.com>
8386
8387 Based on work from Daniel Jacobowitz <dan@codesourcery.com>
8388 * c-typeprint.c (cp_type_print_method_args): For non-static methods,
8389 print out const or volatile qualifiers, too.
8390 (c_type_print_args): Add parameters show_artificial and language.
8391 Skip artificial parameters when requested.
8392 Use the appropriate language printer.
8393 (c_type_print_varspec): Tell c_type_print_args to skip artificial
8394 parameters and pass language_c.
8395 * dwarf2read.c (die_list): New file global.
8396 (struct partial_die_info): Update comments for name field.
8397 (pdi_needs_namespace): Renamed to ...
8398 (die_needs_namespace): ... this. Rewrite.
8399 (dwarf2_linkage_name): Remove.
8400 (add_partial_symbol): Do not predicate the call to
8401 partial_die_full_name based on pdi_needs_namespace.
8402 Remove call to cp_check_possible_namespace_symbols and associated
8403 outdated comments.
8404 (guess_structure_name): Do not inspect child subprogram DIEs.
8405 (dwarf2_fullname): Update comments.
8406 Use die_needs_namespace to assist in computing the name.
8407 (read_func_scope): Use dwarf2_name to get the DIE's name.
8408 Use dwarf2_physname to get the "linkage name" of the DIE.
8409 (dwarf2_add_member_field): Use dwarf2_physname instead of
8410 dwarf2_linkage_name.
8411 (read_structure_type): For structs and classes, set TYPE_NAME, too.
8412 (determine_class): Remove.
8413 (read_partial_die): Ignore DW_AT_MIPS_linkage_name for all languages
8414 except Ada.
8415 (new_symbol): Unconditionally call dwarf2_name.
8416 Compute the "linkage name" using dwarf2_physname.
8417 Use dwarf2_name instead of dwarf2_full_name for enumerator DIEs.
8418 When determining to scan for anonymous C++ namespaces, ignore
8419 the linkage name.
8420 (dwarf2_physname): New function.
8421 (dwarf2_full_name): Move content to new function and call
8422 that.
8423 (dwarf2_compute_name): "New" function.
8424 (_initialize_dwarf2_read): Initialize die_list.
8425 * gnu-v3-eabi.c (gnu_v3_find_method_in): Remove unused variable
8426 physname.
8427 (gnu_v3_print_method_ptr): Use the physname for virtual methods
8428 without a demangled name.
8429 Print out type information for non-virtual methods.
c8d5aac9 8430 * linespec.c (decode_line_1): Force ANY string using "::" (or
94af9270 8431 "." for java) to use decode_compound, and clean up any stray quoting.
c8d5aac9
L
8432 If we found a file symtab, re-evaluate whether the remainder is_quoted.
8433 (decode_compound): Stop consuming at an open parenthesis.
8434 Keep template parameters.
8435 Keep any overload information.
8436 Keep keywords like "const".
8437 Remove paren_pointer.
8438 Move is_quoted check from set_flags to here.
8439 Remove #if 0 code from 2000. Ten years is long enough.
8440 (find_method): Before comparing symbol names, canonicalize the string
8441 from the user.
8442 If a specific overload is requested, find it. Otherwise throw an error.
94af9270
KS
8443 (find_method_overload_end): New function.
8444 (set_flags): Remove.
c8d5aac9
L
8445 (decode_compound): Assume that parentheses are matched.
8446 It's a lot easier.
94af9270
KS
8447 * symtab.c (symbol_find_demangled_name): Add DMGL_VERBOSE flag
8448 to cplus_demangle.
8449 * linespec.c (decode_line_1): Keep important keywords like
8450 "const" and "volatile".
8451 * symtab.h (SYMBOL_CPLUS_DEMANGLED_NAME): Remove.
8452 * typeprint.h (c_type_print_args): Add declaration.
8453 * ui-file.c (do_ui_file_obsavestring): New function.
8454 (ui_file_obsavestring): New function.
8455 * ui-file.h (ui_file_obsavestring): Add declaration.
8456 * valops.c (find_overload_match): Resolve the object to
8457 a non-pointer type.
8458 If the object is a data member, search the object for the member
8459 and return with staticp set.
8460 Use SYMBOL_NATURAL_NAME instead of SYMBOL_CPLUS_DEMANGLED_NAME.
8461 Do not attempt to extract a function name from non-function types.
8462 If the extracted function name and the original name are the same,
8463 we don't have a C++ method.
8464
8d95cc3b
PA
8465 From Jan Kratochvil <jan.kratochvil@redhat.com>:
8466 * dwarf2read.c (new_symbol <DW_TAG_enumerator>): Call dwarf2_full_name.
94af9270
KS
8467
8468 * ada-lang.c (ada_lookup_symbol): Remove linkage_name parameters
8469 and arguments from symbol lookups.
8470 * ax-gdb.c (gen_expr): Likewise.
8471 * cp-namespace.c (cp_lookup_symbol_nonlocal, lookup_namespace_scope,
8472 cp_lookup_symbol_namespace, lookup_symbol_file, lookup_nested_type,
8473 lookup_possible_namespace_symbol): Likewise.
8474 * cp-support.c (read_in_psymtabs): Likewise.
8475 * cp-support.h (cp_lookup_symbol_nonlocal): Likewise.
8476 * language.h (la_lookup_symbol_nonlocal): Likewise.
8477 * scm-valprint.c (scm_inferior_print): Likewise.
8478 * solib-darwin.c (darwin_relocate_section_addresses): Likewise.
8479 * solib-svr.c (elf_lookup_lib): Likewise.
8480 * solib.c (show_auto_solib_add): Likewise.
8481 * solist.h (lookup_lib_global, solib_global_lookup): Likewise.
8482 * symmisc.c (maintenance_check_symtabs): Likewise.
8483 * symtab.c (lookup_symbol_in_language, lookup_symbol_aux,
8484 lookup_symbol_aux_local, lookup_symbol_aux_block,
8485 lookup_symbol_from_objfile, lookup_symbol_aux_symtabs,
8486 lookup_symbol_aux_psymtabs,basic_lookup_symbol_nonlocal,
8487 lookup_symbol_static, lookup_symbol_global, symbol_matches_domain,
8488 basic_lookup_transparent_type, find_main_psymtab,
8489 lookup_block_symbol): Likewise.
8490 * symtab.h (basic_lookp_symbol_nonlocal, lookup_symbol_static,
8491 lookup_symbol_global, lookup_symbol_aux_block,
8492 lookup_symbol_partial_symbol, lookup_block_symbol,
8493 lookup_global_symbol, value_maybe_namespace_elt): Likewise.
8494
9cb74f47
PM
84952010-03-09 Pierre Muller <muller@ics.u-strasbg.fr>
8496
8497 * python/python-internal.h: Include symtab.h.
8498
af6b7be1
JB
84992010-03-09 Joel Brobecker <brobecker@adacore.com>
8500 Pierre Muller <muller@ics.u-strasbg.fr>
e13eedd5
PM
8501
8502 * p-lang.c (is_pascal_string_type): Remove unneeded parentheses.
8503 * p-valprint.c (pascal_val_print): Remove undeed block and fix
8504 indentation.
8505
bad56014
TT
85062010-03-08 Tom Tromey <tromey@redhat.com>
8507
8508 * breakpoint.c (breakpoint_1): Add "QUIT".
8509
08105857
PA
85102010-03-08 Daniel Jacobowitz <dan@codesourcery.com>
8511 Pedro Alves <pedro@codesourcery.com>
8512
8513 * solib.c (solib_find): Replace extension if
8514 solib_symbols_extension is set in the target gdbarch.
8515 * arm-symbian-tdep.c (arm_symbian_init_abi): Set
8516 solib_symbols_extension to "sym".
8517 * gdbarch.sh (solib_symbols_extension): New variable.
8518 (pstring): New function.
8519 * gdbarch.h, gdbarch.c: Regenerate.
8520
7c953934
TT
85212010-03-08 Tom Tromey <tromey@redhat.com>
8522
8523 PR cli/9591:
8524 * NEWS: Update.
8525 * utils.c: Include main.h.
8526 (fputs_maybe_filtered): Don't paginate if `batch_flag'.
8527 (defaulted_query): Use default answer if `batch_flag'.
8528 * main.h (batch_flag): Declare.
8529 * main.c (batch_flag): New global.
8530 (captured_main): Remove 'batch'. Update.
8531
bbd2783e
KB
85322010-03-08 Kevin Buettner <kevinb@redhat.com>
8533
8534 From Richard Sandiford, Martin M. Hunt, Corinna Vinschen,
8535 and Kevin Buettner:
8536
8537 * remote-mips.c (rockhopper_ops): New target_ops struct.
8538 (MON_ROCKHOPPER): New mips_monitor_type.
8539 (read_hex_value): New function.
8540 (mips_request): Send 8-byte values with a 'T' packet. Read the
8d95cc3b 8541 packet argument as a string and use read_hex_value to parse it.
bbd2783e
KB
8542 (mips_exit_debug): Wait for response when using MON_ROCKHOPPER.
8543 (rockhopper_open): New function.
8544 (mips_wait): Read the PC, FP and SP fields as strings. Use
8545 read_hex_value to parse them and mips_set_register to commit them.
8546 (mips_set_register): New function.
8547 (mips_fetch_registers): Do not cast register value to "unsigned"
8548 when reading a MON_ROCKHOPPER 't' packet. Use mips_set_register.
8549 (mips_store_registers): Use a 'T' packet to set registers when
8550 using MON_ROCKHOPPER.
8551 (pmon_end_download): Don't run initEther if using MON_ROCKHOPPER
8552 and expect the total to be printed before the entry address.
8553 (_initialize_remote_mips): Initialize and add rockhopper_ops.
8554
566f3d17
KB
85552010-03-08 Kevin Buettner <kevinb@redhat.com>
8556
8557 * remote-mips.c (mips_fetch_word): Add new parameter, `valp'.
8558 Change return value to int. Store value fetched in location
8559 addressed by `val'. Use function's return value as success
8560 or failure indicator. Adjust all callers.
8561
9c8ee2ab 85622010-03-08 Pierre Muller <muller@ics.u-strasbg.fr>
f72d4b77
PM
8563
8564 * p-lang.c (is_pascal_string_type): Check that TYPE arg is non NULL.
8565
7155de5a
HZ
85662010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8567 Hui Zhu <teawater@gmail.com>
8568
8569 * record.c (record_open_1): Check tmp_to_stopped_by_watchpoint and
8570 tmp_to_stopped_data_address.
8571 (record_open): Reset tmp_to_stopped_by_watchpoint and
8572 tmp_to_stopped_data_address.
8573 * target.c (init_dummy_target): Add to_stopped_by_watchpoint and
8574 to_stopped_data_address.
8575
580879fc
HZ
85762010-03-08 Hui Zhu <teawater@gmail.com>
8577
8578 * i386-tdep.c (i386_process_record): Initialize regnum.
8579
b0fcb67f
JK
85802010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8581
8582 * symfile.c (addr_info_make_relative): New variable sect_name, use it.
8583 Do not warn on ".gnu.liblist" and ".gnu.conflict".
8584
08597104
JB
85852010-03-08 Joel Brobecker <brobecker@adacore.com>
8586
8587 Memory error when reading wrong core file.
8588 * solib-svr4.c (solib_svr4_r_map): catch and print all exception
8589 errors while reading the inferior memory, and return zero if
8590 an exception was raised.
8591
425b824a
MS
85922010-03-07 Michael Snyder <msnyder@vmware.com>
8593
ec6dbf37
MS
8594 * record.c (record_restore): Rename tmpu8 to rectype.
8595
648d0c8b
MS
8596 * i386-tdep.c (i386_record_lea_modrm_addr): Rename local variables
8597 tmpu8, tmpi16, tmpi32, tmpulongest to addr8, addr16, addr32, addr64.
8598
8599 (i386_record_push): Rename local tmpulongest to addr.
8600
8601 (i386_process_record): Rename local tmpulongest to addr.
8602
8603 Rename local variables tmpu16, tmpu32, tmpu64 to addr16, addr32,
8604 addr64.
955db0c0
MS
8605
8606 Rename local variable tmpu8 to opcode8 and regnum.
425b824a 8607
10760264
JB
86082010-03-07 Joel Brobecker <brobecker@adacore.com>
8609
8610 * remote.c (remote_get_ada_task_ptid): New function.
c8d5aac9 8611 (init_remote_ops): Set remote_ops.to_get_ada_task_ptid.
10760264 8612
b3c613f2
CF
86132010-03-06 Christopher Faylor <me+cygwin@cgf.cx>
8614
8615 * windows-nat.c: Reorganize #ifdef __CYGWIN__ considerations into one
8616 block. Define helper macros to reduce ifdefs in code.
8617 (get_module_name): Use cygwin_buf_t for buffer and __PMAX for buffer
8618 size. Call unadorned GetModuleFileNameEx rather than
8619 GetModuleFileNameEx*.
8620 (windows_make_so): Use __PMAX to denote maximum buffer size and
8621 cygwin_buf_t for buffer type. Use GetSystemDirectory{W,A} as
8622 appropriate.
8623 (get_image_name): Use __PMAX to denote maximum buffer size.
8624 (handle_load_dll): Likewise.
8625 (windows_pid_to_exec_file): Likewise.
8626 (windows_create_inferior): Add many accommodations for older Cygwin and
8627 non-Cygwin.
8628 (bad_GetModuleFileNameExW): Control inclusion of this function based on
8629 __USEWIDE conditional.
8630 (bad_GetModuleFileNameExA): Likewise.
8631 (_initialize_loadable): Just use real function names without the dyn_
8632 part since they are defined earlier.
8633
f870a310
TT
86342010-03-05 Corinna Vinschen <vinschen@redhat.com>
8635 Tom Tromey <tromey@redhat.com>
8636
8637 * utils.c (host_char_to_target): Add 'gdbarch' argument.
8638 (parse_escape): Likewise.
8639 * python/py-utils.c (unicode_to_target_string): Update.
8640 (unicode_to_target_python_string): Update.
8641 (target_string_to_unicode): Update.
8642 * printcmd.c (printf_command): Update.
8643 * p-exp.y (yylex): Update.
8644 * objc-exp.y (yylex): Update.
8645 * mi/mi-parse.c: Include charset.h.
8646 (mi_parse_escape): New function.
8647 (mi_parse_argv): Use it.
8648 * jv-exp.y (yylex): Update.
8649 * i386-cygwin-tdep.c (i386_cygwin_auto_wide_charset): New
8650 function.
8651 (i386_cygwin_init_abi): Call set_gdbarch_auto_wide_charset.
8652 * gdbarch.sh (auto_charset, auto_wide_charset): New.
8653 * gdbarch.c: Rebuild.
8654 * gdbarch.h: Rebuild.
8655 * defs.h (parse_escape): Update.
8656 * cli/cli-setshow.c: Include arch-utils.h.
8657 (do_setshow_command): Update.
8658 * cli/cli-cmds.c (echo_command): Update.
8659 * charset.h (target_charset, target_wide_charset): Update.
8660 * charset.c: Include arch-utils.h.
8661 (target_charset_name): Default to "auto".
8662 (target_wide_charset_name): Likewise.
8663 (show_target_charset_name): Handle "auto".
8664 (show_target_wide_charset_name): Likewise.
8665 (be_le_arch): New global.
8666 (set_be_le_names): Add 'gdbarch' argument.
8667 (validate): Likewise. Don't call set_be_le_names.
8668 (set_charset_sfunc, set_host_charset_sfunc)
8669 (set_target_charset_sfunc, set_target_wide_charset_sfunc):
8670 Update.
8671 (target_charset): Add 'gdbarch' argument.
8672 (target_wide_charset): Likewise. Remove 'byte_order' argument.
8673 (auto_target_charset_name): New global.
8674 (default_auto_charset, default_auto_wide_charset): New functions.
8675 (_initialize_charset): Set auto_target_charset_name. Allow "auto"
8676 for target charsets. Copy result of nl_langinfo. Use GetACP if
8677 USE_WIN32API.
8678 * c-lang.c (charset_for_string_type): Add 'gdbarch' argument,
8679 remove 'byte_order' argument. Update.
8680 (classify_type): Likewise.
8681 (c_emit_char): Update.
8682 (c_printchar): Update.
8683 (c_printstr): Update.
8684 (c_get_string): Update.
8685 (evaluate_subexp_c): Update.
8686 * arch-utils.h (default_auto_charset, default_auto_wide_charset):
8687 Declare.
8688 * python/python.c (gdbpy_target_charset): New function.
8689 (gdbpy_target_wide_charset): Likewise.
8690 (GdbMethods): Update.
8691 * NEWS: Update.
8692
4e7386b0
UW
86932010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
8694
8695 * symfile.c (build_section_addr_info_from_objfile): Do not mask
8696 off high address bits.
8697
aab48ede
UW
86982010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
8699
8700 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Extract
8701 address as UnsignedLongLong, not LongLong.
8702
8eeafb51 87032010-03-05 Kevin Buettner <kevinb@redhat.com>
c8d5aac9 8704 Pedro Alves <pedro@codesourcery.com>
8eeafb51
KB
8705
8706 * remote-mips.c (gdbthread.h): Include.
8707 (remote_mips_ptid): Declare.
8708 (mips_error): Only mourn the inferior when inferior_ptid is non-null.
8709 (common_open): Set inferior_ptid, add it as an inferior, and
8710 as a thread too. Delete FIXME comment regarding start_remote().
8711 (mips_close): Invoke generic_mourn_inferior().
8712 (mips_kill): Make sure that target_mourn_inferior is invoked.
8713 (mips_mourn_inferior): Don't invoke generic_mourn_inferior, as
8714 it's now invoked from mips_close().
8715 (mips_load): Don't null out inferior_ptid. Don't call
8716 clear_symtab_users().
8717 (mips_thread_alive, mips_pid_to_str): New functions.
8718 (_initialize_remote_mips): Initialize remote_mips_ptid. Initialize
8719 to_thread_alive and to_pid_to_str operations.
8720
ae411497
TT
87212010-03-04 Tom Tromey <tromey@redhat.com>
8722
8723 * dwarf2read.c (skip_one_die) <DW_FORM_ref_addr>: Use offset size
8724 in DWARF 3 and later.
8725 (read_attribute_value) <DW_FORM_ref_addr>: Likewise.
8726
0e0b460e
KS
87272010-03-04 Keith Seitz <keiths@redhat.com>
8728
8729 * linespec.c (decode_line_1): Update comments for is_quote_enclosed.
8730 If the filename portion of the linespec was quoted, recheck the
8731 remainder for additional quoting.
8732 (locate_first_half): Skip over completer chars, too.
8733
1b93ff13
TT
87342010-03-04 Tom Tromey <tromey@redhat.com>
8735
8736 * printcmd.c (printf_command): Pass dummy argument to
8737 printf_filtered.
8738
fc36e839
DE
87392010-03-04 Doug Evans <dje@google.com>
8740
111f853c
DE
8741 * arm-tdep.c (arm_make_stub_cache): Delete unused locals reg,
8742 unwound_fp.
8743
fc36e839
DE
8744 * arm-tdep.c (arm_stub_unwind_sniffer): Add comment.
8745
c7437ca6
PA
87462010-03-04 Pedro Alves <pedro@codesourcery.com>
8747
8748 * breakpoint.c (update_watchpoint): Create a sentinel location if
8749 the software watchpoint isn't watching any memory.
8750 (breakpoint_address_bits): Skip dummy software watchpoint locations.
8751
58dadb1b
PA
87522010-03-04 Pedro Alves <pedro@codesourcery.com>
8753
8754 * utils.c (fputs_maybe_filtered): Check if there's already a top
8755 level interpreter before dereferencing it. If there isn't one,
8756 don't paginate either.
8757
50e98be4
DJ
87582010-03-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
8759
8760 * arm-tdep.c (arm_pc_is_thumb): Add heuristic that tries to get
8761 the state right when single stepping.
8762 (arm_get_next_pc_raw, thumb_get_next_pc_raw): New functions.
8763 Get the next PC along with the instruction state.
8764 (thumb_get_next_pc): Remove.
8765 (arm_get_next_pc): Modified to use arm_get_next_pc_raw.
8766
2e3ceee9
HZ
87672010-03-04 Hui Zhu <teawater@gmail.com>
8768
8769 * i386-tdep.c (i386_process_record): Change "addr" to "tmpu64".
8770
390a8aca
PA
87712010-03-03 Pedro Alves <pedro@codesourcery.com>
8772
8773 * utils.c (fputs_maybe_filtered): Always disable pagination if the
8774 top level interpreter is MI.
8775
9355b391
SS
87762010-03-03 Stan Shebs <stan@codesourcery.com>
8777
8778 * remote.c (remote_download_tracepoint): Iterate over locations.
8779 * tracepoint.c (validate_actionline): Ditto.
8780 (encode_actions): Add location argument.
8781 (trace_dump_command): Check all locations to see if stepping
8782 frame.
390a8aca 8783
8685c86f
L
87842010-03-03 H.J. Lu <hongjiu.lu@intel.com>
8785 Eli Zaretskii <eliz@gnu.org>
8786
8787 * NEWS: Add X86 general purpose registers section.
8788
e8f781e2
TT
87892010-03-03 Tom Tromey <tromey@redhat.com>
8790
8791 PR mi/11098:
8792 * varobj.c (install_new_value): Handle case where new print_value
8793 is NULL.
8794
a0e0ef55
TT
87952010-03-03 Dainis Jonitis <jonitis@gmail.com>
8796
8797 PR gdb/11345:
8798 * printcmd.c (printf_command): Print end of format string using
8799 printf_filtered.
8800
a58d7472
TT
88012010-03-02 Tom Tromey <tromey@redhat.com>
8802
8803 * mi/mi-cmd-break.c (mi_read_next_line): Add missing 'void'.
8804 * defs.h (read_command_lines_1): Add missing 'void'.
8805 * cli/cli-script.c (recurse_read_control_structure): Add missing
8806 'void'.
8807 (read_next_line): Likewise.
8808 (read_command_lines_1): Likewise.
8809
ce50d78b
UW
88102010-03-02 Ulrich Weigand <uweigand@de.ibm.com>
8811
8812 * spu-tdep.c (spu_analyze_prologue): Track instruction to
8813 store backchain as part of prologue.
8814
7e9af34a
DJ
88152010-03-02 Daniel Jacobowitz <dan@codesourcery.com>
8816
8817 * progspace.c (update_address_spaces): Update inferior address spaces
8818 also.
8819
01637564
DE
88202010-03-02 Doug Evans <dje@google.com>
8821
8822 * dwarf2read.c (add_partial_subprogram): Add missing baseaddr to
8823 lowpc,highpc args to addrmap_set_empty.
8824
1ba53b71
L
88252010-03-02 H.J. Lu <hongjiu.lu@intel.com>
8826
8827 * amd64-tdep.c (amd64_byte_names): New.
8828 (amd64_word_names): Likewise.
8829 (amd64_dword_names): Likewise.
8830 (amd64_pseudo_register_name): Likewise.
8831 (amd64_pseudo_register_read): Likewise.
8832 (amd64_pseudo_register_write): Likewise.
8833 (amd64_init_abi): Set num_byte_regs, num_word_regs, num_dword_regs
8834 and num_mmx_regs. Call set_gdbarch_pseudo_register_read,
8835 set_gdbarch_pseudo_register_write and
8836 set_tdesc_pseudo_register_name. Don't call
8837 set_gdbarch_num_pseudo_regs. Don't set mm0_regnum.
8838
8839 * i386-tdep.c (i386_num_mmx_regs): Removed.
8840 (i386_num_pseudo_regs): Likewise.
8841 (i386_byte_names): New.
8842 (i386_word_names): Likewise.
8843 (i386_byte_regnum_p): Likewise.
8844 (i386_word_regnum_p): Likewise.
8845 (i386_mmx_regnum_p): Updated.
8846 (i386_pseudo_register_name): Make it global. Handle byte and
8847 word pseudo-registers.
8848 (i386_pseudo_register_read): Likewise.
8849 (i386_pseudo_register_write): Likewise.
8850 (i386_pseudo_register_type): Handle byte, word and dword
8851 pseudo-registers
8852 (i386_register_reggroup_p): Don't include pseudo
8853 registers, except for MXX, in any register groups. Don't
8854 include pseudo byte, word, dword registers in general_reggroup.
8855 (i386_gdbarch_init): Set num_byte_regs, num_word_regs,
8856 num_dword_regs, al_regnum, ax_regnum and eax_regnum. Put MMX
8857 pseudo-registers after word pseudo-registers. Call
8858 set_gdbarch_num_pseudo_regs after calling gdbarch_init_osabi.
8859
8860 * i386-tdep.h (gdbarch_tdep): Add num_mmx_regs, num_byte_regs,
8861 al_regnum, num_word_regs, ax_regnum, num_dword_regs and
8862 eax_regnum.
8863 (i386_byte_regnum_p): New.
8864 (i386_word_regnum_p): Likewise.
8865 (i386_dword_regnum_p): Likewise.
8866 (i386_pseudo_register_name): Likewise.
8867 (i386_pseudo_register_read): Likewise.
8868 (i386_pseudo_register_write): Likewise.
8869
a6f5ef51
L
88702010-03-01 H.J. Lu <hongjiu.lu@intel.com>
8871
8872 * target-descriptions.c (tdesc_type): Remove
8873 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
8874 (tdesc_predefined_types): Likewise.
8875 (tdesc_gdb_type): Likewise. Pass NULL to append_flags_type_flag
8876 if flag name is empty.
8877 (maint_print_c_tdesc_cmd): Handle TDESC_TYPE_FLAGS.
8878
8879 * features/i386/32bit-core.xml: Define i386_eflags.
8880 * features/i386/64bit-core.xml: Likewise.
8881
8882 * features/i386/32bit-sse.xml: Define i386_mxcsr.
8883 * features/i386/64bit-sse.xml: Likewise.
8884
8885 * features/i386/amd64-linux.c: Regenerated.
8886 * features/i386/amd64.c: Likewise.
8887 * features/i386/i386-linux.c: Likewise.
8888 * features/i386/i386.c: Likewise.
8889
f5dff777
DJ
88902010-03-01 Daniel Jacobowitz <dan@codesourcery.com>
8891
8892 * gdbtypes.c (append_composite_type_field_raw): New.
8893 (append_composite_type_field_aligned): Use the new function.
8894 * gdbtypes.h (append_composite_type_field_raw): Declare.
8895 * target-descriptions.c (struct tdesc_type_field): Add start and end.
8896 (struct tdesc_type_flag): New type.
8897 (struct tdesc_type): Add TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS to
8898 kind. Add size to u.u. Add u.f for flags.
8899 (tdesc_gdb_type): Handle TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS.
8900 (tdesc_free_type): Likewise.
8901 (tdesc_create_struct, tdesc_set_struct_size, tdesc_create_flags): New.
8902 (tdesc_add_field): Handle TDESC_TYPE_STRUCT.
8903 (tdesc_add_bitfield, tdesc_add_flag): New.
8904 * target-descriptions.h (tdesc_create_struct, tdesc_set_struct_size)
8905 (tdesc_create_flags, tdesc_add_bitfield, tdesc_add_flag): Declare.
8906 * xml-tdesc.c (struct tdesc_parsing_data): Rename current_union to
8907 current_type. Add current_type_size and current_type_is_flags.
8908 (tdesc_start_union): Clear the new fields.
8909 (tdesc_start_struct, tdesc_start_flags): New.
8910 (tdesc_start_field): Handle struct fields, including bitfields.
8911 (field_attributes): Make type optional. Add start and end.
8912 (union_children): Rename to struct_union_children.
8913 (union_attributes): Rename to struct_union_attributes. Add optional
8914 size.
8915 (flags_attributes): New.
8916 (feature_children): Add struct and flags.
8917 * features/gdb-target.dtd: Add flags and struct to features.
8918 Make field type optional. Add field start and end.
8919
90884b2b
L
89202010-03-01 H.J. Lu <hongjiu.lu@intel.com>
8921
8922 * amd64-linux-nat.c (AMD64_LINUX_USER64_CS): New.
8923 (amd64_linux_read_description): Likewise.
8924 (_initialize_amd64_linux_nat): Set to_read_description to
8925 amd64_linux_read_description.
8926
8927 * amd64-linux-tdep.c: Include "features/i386/amd64-linux.c".
8928 (amd64_linux_register_name): Removed.
8929 (amd64_linux_register_type): Likewise.
8930 (amd64_linux_core_read_description): New.
8931 (amd64_linux_init_abi): Set target description to
8932 tdesc_amd64_linux if needed. Support orig_rax in target
8933 description. Don't call set_gdbarch_register_name nor
8934 set_gdbarch_register_type. Call
8935 set_gdbarch_core_read_description.
8936 (_initialize_amd64_linux_tdep): Call
8937 initialize_tdesc_amd64_linux.
8938
8939 * amd64-linux-tdep.h (tdesc_amd64_linux): New.
8940
8941 * amd64-tdep.c: Include "features/i386/amd64.c".
8942 (amd64_register_names): Removed.
8943 (amd64_register_name): Likewise.
8944 (amd64_register_type): Likewise.
8945 (amd64_init_abi): Set num_core_regs and register_names. Set
8d95cc3b 8946 target description to tdesc_amd64 if needed. Don't call
90884b2b
L
8947 set_gdbarch_register_name nor set_gdbarch_register_type.
8948 (_initialize_amd64_tdep): New.
8949
8950 * i386-linux-nat.c (i386_linux_read_description): New.
8951 (_initialize_i386_linux_nat): Set to_read_description to
8952 i386_linux_read_description.
8953
8954 * i386-linux-tdep.c: Include "features/i386/i386-linux.c".
8955 (i386_linux_register_name): Removed.
8956 (i386_linux_core_read_description): New.
8957 (i386_linux_read_description): Likewise.
8958 (i386_linux_init_abi): Don't call set_gdbarch_register_name.
8959 Set target description to tdesc_i386_linux if needed. Support
8960 orig_eax. Set register_reggroup_p. Call
8961 set_gdbarch_core_read_description.
8962 (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_linux.
8963
8964 * i386-linux-tdep.h (tdesc_i386_linux): New.
8965
8966 * i386-nto-tdep.c (i386nto_regset_id): Replace I386_NUM_FREGS
8967 with I387_NUM_REGS.
8968
8969 * i386-tdep.c: Include "features/i386/i386.c".
8970 (i386_register_names): Make it const.
8971 (i386_mmx_names): Likewise.
8972 (i386_num_register_names): Removed.
8973 (i386_register_name): Likewise.
8974 (i386_eflags_type): Likewise.
8975 (i386_mxcsr_type): Likewise.
8976 (i386_sse_type): Likewise.
8977 (i386_register_type): Likewise.
8978 (i387_ext_type): Call tdesc_find_type instead of arch_float_type.
8979 (i386_pseudo_register_name): New.
8980 (i386_pseudo_register_type): Likewise.
8981 (i386_mmx_type): Make it static.
8982 (i386_gdbarch_init): Check arch. Replace I386_NUM_FREGS with
8983 I387_NUM_REGS. Set num_core_regs and register_names. Don't
8984 call set_gdbarch_register_name nor set_gdbarch_register_type.
8985 Set register_reggroup_p. Set target description to tdesc_i386
8986 if needed. Call set_tdesc_pseudo_register_type,
8987 set_tdesc_pseudo_register_name and tdesc_use_registers.
8988 (_initialize_i386_tdep): Call initialize_tdesc_i386.
8989 initialize_tdesc_x86_64.
8990
8991 * i386-tdep.h (gdbarch_tdep): Remove i386_eflags_type,
8992 i386_mxcsr_type and i386_sse_type. Add num_core_regs,
8993 register_names, tdesc and register_reggroup_p.
8994 (I386_NUM_FREGS): Removed.
8995 (i386_eflags_type): Likewise.
8996 (i386_mxcsr_type): Likewise.
8997 (i386_mmx_type): Likewise.
8998 (i386_sse_type): Likewise.
8999 (i386_register_name): Likewise.
9000 (i386_regnum): Add I386_MXCSR_REGNUM.
9001 (I386_SSE_NUM_REGS): Defined with I386_MXCSR_REGNUM.
9002
9003 * i387-tdep.h (I387_NUM_REGS): New.
9004
9005 * regformats/i386/i386-linux.dat: Generated.
9006 * regformats/i386/i386.dat: Likewise.
9007 * regformats/i386/amd64-linux.dat: Likewise.
9008 * regformats/i386/amd64.dat: Likewise.
9009
9010 * regformats/reg-i386-linux.dat: Removed.
9011 * regformats/reg-i386.dat: Likewise.
9012 * regformats/reg-x86-64-linux.dat: Likewise.
9013 * regformats/reg-x86-64.dat: Likewise.
9014
d0d0ab16
CV
90152010-03-01 Corinna Vinschen <vinschen@redhat.com>
9016
9017 * remote-fileio.c (remote_fileio_func_rename): Use Cygwin 1.7
9018 cygwin_conv_path API rather than the deprecated
9019 cygwin_conv_to_full_posix_path.
9020 * windows-nat.c:
9021 (GetModuleFileNameExA): Undefine for Cygwin.
9022 (GetModuleFileNameExW): Define for Cygwin.
9023 (get_module_name): Change size of pathbuf to PATH_MAX for Cygwin.
9024 Call GetModuleFileNameExW and convert path to POSIX using
9025 cygwin_conv_path.
9026 (windows_make_so): Always define p. Drop unused variable m.
9027 Don't use Win32 functions to check file existance, rather use
9028 access on Cygwin. Fetch system directory using GetSystemDirectoryW.
9029 Use canonicalize_file_name to get full path.
9030 (get_image_name): Use wcstombs, rather than WideCharToMultiByte
9031 to convert Unicode pathname to multibyte on Cygwin. Otherwise,
9032 use correct target buffer size in call to WideCharToMultiByte.
9033 (handle_load_dll): Change size of dll_buf to PATH_MAX for Cygwin.
9034 (windows_pid_to_exec_file): Change size of path to PATH_MAX for Cygwin.
9035 (windows_create_inferior): Convert all paths and arguments to wchar_t
9036 and use CreateProcessW on Cygwin.
9037 (_initialize_windows_nat): Disable DOS-style path warning on Cygwin.
9038 (bad_GetModuleFileNameExA): Undefine for Cygwin.
9039 (bad_GetModuleFileNameExW): Define for Cygwin.
9040 (_initialize_loadable): Load GetModuleFileNameExW into
9041 dyn_GetModuleFileNameExW on Cygwin. Don't load ANSI function on Cygwin.
9042
dc00d89f
PM
90432010-02-28 Phil Muldoon <pmuldoon@redhat.com>
9044
9045 PR python/11036
9046 * python/py-frame.c (frapy_read_var): Add block argument and logic
9047 to cope with user provided blocks.
9048
0e095b7e
JK
90492010-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9050
9051 * infcall.c (call_function_by_hand): Remove gdb_assert on sp and old_sp.
9052 New comment.
9053
2f9e05b4
CV
90542010-02-28 Corinna Vinschen <vinschen@redhat.com>
9055
9056 * Makefile.in (SUBDIR_MI_OBS): Move mi-common.o from here...
9057 (COMMON_OBS): ... to here since it's used unconditionally.
9058 (SUBDIR_MI_SRCS): Move mi/mi-common.c from here...
9059 (SFILES): To here.
9060
eb195664
DD
90612010-02-26 David Daney <ddaney@caviumnetworks.com>
9062
9063 * mips-linux-tdep.c: Update struct sigframe comments.
9064 (SIGFRAME_CODE_OFFSET): Delete macro.
9065 (mips_linux_o32_sigframe_init): Calculate sigcontext_base using
9066 this_frame's sp.
9067 (mips_linux_n32n64_sigframe_init): Same.
9068
97b0f3e2
KB
90692010-02-26 Kevin Buettner <kevinb@redhat.com>
9070
9071 * remote-mips.c (mips_load): Don't use pseudo-register when
9072 invalidating regcache.
9073
4069ebbe
DJ
90742010-02-26 Daniel Jacobowitz <dan@codesourcery.com>
9075
9076 * arm-tdep.c (thumb_get_next_pc): Correct conditional branch opcode.
9077
05071a4d
PA
90782010-02-26 Pedro Alves <pedro@codesourcery.com>
9079
9080 * NEWS: Add "New targets" section, and mention ARM Symbian
9081 support.
9082
6063c216
UW
90832010-02-26 Ulrich Weigand <uweigand@de.ibm.com>
9084
9085 * dwarf2loc.c (struct piece_closure): Remove ARCH member,
9086 add ADDR_SIZE member.
9087 (allocate_piece_closure): Update.
9088 (copy_pieced_value_closure): Likewise.
9089 (dwarf2_evaluate_loc_desc): Likewise.
9090 (read_pieced_value): Use DWARF address size instead of
9091 GDB's gdbarch_addr_bit as size of values on the DWARF stack.
9092
5107b149 90932010-02-26 Phil Muldoon <pmuldoon@redhat.com>
c8d5aac9 9094 Tom Tromey <tromey@redhat.com>
5107b149
PM
9095
9096 * python/py-type.c (typy_lookup_typename): Add in block argument.
9097 If provided restrict lookup to specified blocks.
9098 (gdbpy_lookup_type): Likewise.
9099 (typy_lookup_type): Likewise.
9100
78664fa3 91012010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
8d95cc3b 9102
78664fa3
PA
9103 Symbian config
9104
9105 gdb/
9106 * arm-symbian-tdep.c: New.
9107 * configure.tgt (arm*-*-symbianelf*): New target.
9108 (*-*-symbianelf*): New OS.
9109 * osabi.c (gdb_osabi_names): Add Symbian.
9110 * defs.h (gdb_osabi): Add GDB_OSABI_SYMBIAN.
9111 * Makefile.in (ALL_TARGET_OBJS): Add arm-symbian-tdep.o.
9112 (ALLDEPFILES): Add arm-symbian-tdep.c.
9113
eb73e134
DJ
91142010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
9115
9116 * symfile.c (find_lowest_section): Include SEC_ALLOC sections.
9117
46ef47e5
PA
91182010-02-24 Pedro Alves <pedro@codesourcery.com>
9119
9120 * mi/mi-main.c (mi_cmd_execute): Fix typo.
9121
f3e9a817 91222010-02-24 Phil Muldoon <pmuldoon@redhat.com>
8d95cc3b 9123 Tom Tromey <tromey@redhat.com>
f3e9a817
PM
9124 Thiago Jung Bauermann <bauerman@br.ibm.com>
9125
9126 * python/python.c (_initialize_python): Call
9127 gdbpy_initialize_symtabs, gdbpy_initialize_symbols and
9128 gdbpy_initialize_blocks.
9129 * python/python-internal.h: Declare struct symbol, block and
9130 symtab_and_line. Declare block_object_type and
9131 symbol_object_type
9132 (gdbpy_lookup_symbol gdbpy_block_for_pc)
9133 (symtab_and_line_to_sal_object, symtab_to_symtab_object)
9134 (symbol_to_symbol_object, block_to_block_object)
9135 (gdbpy_initialize_symtabs,gdbpy_initialize_symbols)
9136 (gdbpy_initialize_blocks ): Declare.
9137 * python/py-frame.c (frapy_block, frapy_function, frapy_find_sal)
9138 (frapy_select): Add methods.
9139 (frapy_read_var): Add symbol branch.
9140 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-symbol, py-symtab,
9141 py-block.
9142 (SUBDIR_PYTHON_SRCS): Likewise.
9143 (py-symbol.o): New rule.
9144 (py-symtab.o): Likewise.
9145 (py-block.o): Likewise.
9146 * python/py-symbol.c: New file.
9147 * python/py-symtab.c: Likewise.
9148 * python/py-block.c: Likewise.
9149
24291992
PA
91502010-02-24 Pedro Alves <pedro@codesourcery.com>
9151
9152 PR gdb/11321
9153
9154 * inferior.h (prepare_for_detach): Declare.
9155 (struct inferior) <detaching>: New field.
9156 * infrun.c (prepare_for_detach): New.
9157 (handle_inferior_event) <random signal>: Don't stop if detaching.
9158 * target.c (target_detach): Call prepare_for_detach.
9159
fc1cf338
PA
91602010-02-24 Pedro Alves <pedro@codesourcery.com>
9161
9162 Per-process displaced stepping queue.
9163
9164 * infrun.c (displaced_step_ptid, displaced_step_request_queue)
9165 (displaced_step_gdbarch, displaced_step_closure,
9166 (displaced_step_original, displaced_step_copy): Move globals to
9167 this...
9168 (struct displaced_step_inferior_state): ... new structure.
9169 (displaced_step_inferior_states): New global.
9170 (get_displaced_stepping_state, add_displaced_stepping_state)
9171 (remove_displaced_stepping_state, infrun_inferior_exit): New
9172 functions.
9173 (displaced_step_clear): Add displaced_step_inferior_state
9174 parameter, and adjust to handle it.
9175 (displaced_step_clear_cleanup): Parameter is now a
9176 displaced_step_inferior_state. Adjust.
9177 (displaced_step_prepare): Adjust.
9178 (displaced_step_fixup, displaced_step_fixup)
9179 (infrun_thread_ptid_changed, resume): Adjust.
9180 (init_wait_for_inferior): Don't call displaced_step_clear.
9181 (infrun_thread_stop_requested): Rewrite.
9182 (_initialize_infrun): Install infrun_inferior_exit as
9183 inferior_exit observer.
9184
0723dbf5
PA
91852010-02-24 Pedro Alves <pedro@codesourcery.com>
9186
9187 * inferior.h (ptid_match): Declare.
9188 * infrun.c (ptid_match): New.
9189 * remote.c (queued_stop_reply): Rewrite and use ptid_match.
9190 (handle_notification): Add debug output.
9191 * linux-nat.c (ptid_match): Delete.
9192
09de9781
DM
91932010-02-24 David S. Miller <davem@davemloft.net>
9194
9195 * gdb_ptrace.h (PT_SYSCALL): If PTRACE_SYSCALL is available, use it.
9196 * syscalls/sparc-linux.xml: New.
9197 * syscalls/sparc64-linux.xml: New.
9198 * Makefile.in (XML_SYSCALL_FILES): Add new syscall XML files.
9199 * sparc-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC32): Define.
9200 (sparc32_linux_get_syscall_number): New function.
9201 (sparc32_linux_init_abi): Set syscall XML file name and hook up
9202 syscall number fetcher.
9203 * sparc64-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC64): Define.
9204 (sparc64_linux_get_syscall_number): New function.
9205 (sparc64_linux_init_abi): Set syscall XML file name and hook up
9206 syscall number fetcher.
9207
a79b8f6e
VP
92082010-02-24 Vladimir Prus <vladimir@codesourcery.com>
9209
9210 Multiexec MI
9211
9212 * breakpoint.c (clear_syscall_counts): Take struct inferior*.
9213 * inferior.c (add_inferior_silent): Notify inferior_added
9214 observer.
9215 (delete_inferior_1): Notify inferior_removed observer.
9216 (exit_inferior_1): Pass inferior, not pid, to observer.
9217 (inferior_appeared): Likewise.
9218 (add_inferior_with_spaces): New.
9219 (add_inferior_command): Use the above.
9220 * inferior.h (delete_inferior_1, add_inferior_with_spaces):
9221 Declare.
9222
9223 * inflow.c (inflow_inferior_exit): Likewise.
9224 * jit.c (jit_inferior_exit_hook): Likewise.
9225
9226 * mi/mi-cmds.c (mi_cmds): Register add-inferior and
9227 remove-inferior.
9228 * mi/mi-cmds.h (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
9229 * mi/mi-interp.c (mi_inferior_added, mi_inferior_removed): New.
9230 (report_initial_inferior): New.
9231 (mi_inferior_removed): Register the above. Make sure
9232 inferior_added observer is called on the first inferior.
9233 (mi_new_thread, mi_thread_exit): Thread group is now identified by
9234 inferior number, not pid.
9235 (mi_solib_loaded, mi_solib_unloaded): Report which inferiors are
9236 affected.
9237 * mi/mi-main.c (current_context): New.
9238 (proceed_thread_callback): Use typed closure.
9239 Proceed everything if pid is 0. Most implementation split into
9240 (proceed_thread): ... this.
9241 (run_one_inferior): New.
9242 (mi_cmd_exec_continue, mi_cmd_exec_interrupt, mi_cmd_exec_run):
9243 Adjust for multiexec behaviour.
9244 (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
9245 (mi_cmd_execute): Handle the 'thread-group' option here.
9246 Do some extra checks.
9247 * mi-parse.c (mi_parse): Handle the --all and --thread-group
9248 options.
9249 * mi-parse.h (struct mi_parse): New fields all and thread_group.
9250
115d30f9
VP
92512010-02-24 Vladimir Prus <vladimir@codesourcery.com>
9252
9253 Make -exec-run a proper MI commands.
9254
9255 * mi/mi-cmds.h (mi_cmd_exec_run): Declare.
9256 * mi/mi-cmds.c (mi_cmds): Adjust.
9257 * mi/mi-main.c (mi_cmd_exec_run): New.
9258
06cd862c
PA
92592010-02-24 Pedro Alves <pedro@codesourcery.com>
9260 Stan Shebs <stan@codesourcery.com>
9261
9262 * tracepoint.h (set_traceframe_number)
9263 (cleanup_restore_current_traceframe): Declare.
9264 * tracepoint.c (set_traceframe_number): New.
9265 (struct current_traceframe_cleanup): New.
9266 (do_restore_current_traceframe_cleanup)
9267 (restore_current_traceframe_cleanup_dtor)
9268 (make_cleanup_restore_current_traceframe): New.
9269 * infrun.c: Include tracepoint.h.
9270 (fetch_inferior_event): Switch out and in of tfind mode.
9271
ab92d69b
PA
92722010-02-24 Pedro Alves <pedro@codesourcery.com>
9273
9274 * breakpoint.c (breakpoint_init_inferior): Also delete
9275 bp_shlib_event breakpoints.
9276 * solib-frv.c (enable_break): Remove call to
9277 remove_solib_event_breakpoints.
9278 * solib-svr4.c (enable_break): Ditto.
9279 * solib-darwin.c (darwin_solib_create_inferior_hook): Ditto.
9280 * solib-pa64.c (pa64_solib_create_inferior_hook): Ditto.
9281 * solib-som.c (som_solib_create_inferior_hook): Ditto.
9282 * solib-spu.c (spu_enable_break): Ditto.
9283
e707a91d
PA
92842010-02-23 Harald Koenig <H.Koenig@science-computing.de>
9285
9286 * c-exp.y (token_and_value): s/union YYSTYPE/YYSTYPE.
9287
cfce2ea2
PA
92882010-02-23 Harald Koenig <H.Koenig@science-computing.de>
9289
9290 * varobj.c (varobj_update): Avoid non-constants in initializers.
9291
05566b3b
TT
92922010-02-23 Tom Tromey <tromey@redhat.com>
9293
9294 * dwarf2loc.c (read_pieced_value) <DWARF_VALUE_STACK>: Correctly
9295 handle big-endian values.
9296 (dwarf2_evaluate_loc_desc) <DWARF_VALUE_STACK>: Likewise.
9297
85d721b8
PA
92982010-02-22 Pedro Alves <pedro@codesourcery.com>
9299
9300 PR9605
9301
9302 gdb/
9303 * breakpoint.c (insert_bp_location): If inserting the read
9304 watchpoint failed, fallback to an access watchpoint.
9305 (bpstat_check_watchpoint): Stop for read watchpoint triggers even
9306 if the value changed, if not watching the same memory for writes.
9307 (watchpoint_locations_match): Add comment.
9308 (update_global_location_list): Copy the location's watchpoint type.
9309 * i386-nat.c (i386_length_and_rw_bits): It's an internal error to
9310 handle read watchpoints here.
9311 (i386_insert_watchpoint): Read watchpoints aren't supported.
9312 * remote.c (remote_insert_watchpoint): Return 1 for unsupported
9313 packets.
9314 * target.h (target_insert_watchpoint): Update description.
9315
48ea67a7
TT
93162010-02-19 Tom Tromey <tromey@redhat.com>
9317
9318 * p-typeprint.c (pascal_type_print_varspec_prefix): Update.
9319 * m2-typeprint.c (m2_print_type): Update.
9320 * gdbtypes.c (recursive_dump_type): Update.
9321 (copy_type_recursive): Update.
9322 * c-typeprint.c (c_type_print_varspec_prefix): Update.
9323 (c_type_print_base): Update.
9324 * gdbtypes.h (TYPE_CODE_TEMPLATE, TYPE_CODE_TEMPLATE_ARG):
9325 Remove.
9326 (struct cplus_struct_type) <ntemplate_args>: Remove.
9327 <struct template_arg>: Remove.
9328 <is_dynamic>: Move earlier.
9329 (TYPE_TEMPLATE_ARGS): Remove.
9330 (TYPE_NTEMPLATE_ARGS): Remove.
9331 (TYPE_TEMPLATE_ARG): Remove.
9332
48e32051
TT
93332010-02-19 Tom Tromey <tromey@redhat.com>
9334
9335 PR c++/8693, PR c++/9496:
9336 * cp-namespace.c (cp_lookup_nested_type): Handle TYPE_CODE_UNION.
9337 * c-exp.y (lex_one_token): Rename from yylex. Don't call
9338 write_dollar_variable. Don't try to classify NAME tokens.
9339 (token_and_value): New type.
9340 (token_fifo, popping, name_obstack): New globals.
9341 (classify_name): New function.
9342 (classify_inner_name): Likewise.
9343 (yylex): Likewise.
9344 (VARIABLE): Now has type sval.
9345 (exp : VARIABLE): Call write_dollar_variable.
9346 (qualified_name): Use TYPENAME, not typebase. Add production for
9347 multiple "::" instances.
9348 (variable): Use name_not_typename.
9349 (qualified_type): Remove.
9350 (typebase): Update.
9351
672d9c23
JK
93522010-02-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9353
9354 * symfile.c (addr_info_make_relative): Extend comment. Move SECT to
9355 a more inner block. Initialize ADDR by LOWER_OFFSET only if it was
9356 found by bfd_get_section_by_name.
9357 * symfile.h (struct section_addr_info) <sectindex>: New comment.
9358
bfbf3774
JB
93592010-02-19 Joel Brobecker <brobecker@adacore.com>
9360
9361 * NEWS: Add new "[...] since 7.1" section. Rename the "[...] since
9362 7.0 section" into "Changes in 7.1".
9363
6756b09b 93642010-02-19 Joel Brobecker <brobecker@adacore.com>
9365
9366 GDB 7.1 branch created (branch timestamp: 2010-02-18 20:00 UTC)
9367 * version.in: Bump version to 7.1.50.20100219-cvs.
9368
202b96c1
PA
93692010-02-18 Harald Koenig <H.Koenig@science-computing.de>
9370
9371 * mi/mi-main.c (mi_cmd_exec_jump): Drop unneeded `return'.
9372 * symfile.c (symfile_map_offsets_to_segments): Fix assertion.
9373
de2e5182
TT
93742010-02-17 Tom Tromey <tromey@redhat.com>
9375
9376 * NEWS: Add Python API Improvements section.
9377
7280022e
DJ
93782010-02-18 Daniel Jacobowitz <dan@codesourcery.com>
9379
9380 * NEWS: Correct typo.
9381
6f451e5e
TT
93822010-02-17 Tom Tromey <tromey@redhat.com>
9383
9384 * objfiles.c (gdb_bfd_ref): Handle abfd==NULL.
9385
012836ea
JK
93862010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
9387
9388 * symfile.c (build_section_addr_info_from_objfile): Include sections
9389 only if they are SEC_ALLOC or SEC_LOAD.
9390
d182d057
L
93912010-02-17 H.J. Lu <hongjiu.lu@intel.com>
9392
9393 PR shlibs/11293
9394 * solib-svr4.c (enable_break): Check size of CORE_ADDR instead
9395 of ULONGEST for address size.
9396
4eef138c
TT
93972010-02-17 Tom Tromey <tromey@redhat.com>
9398
9399 * NEWS: Add C++ improvements section.
9400
548a926a
UW
94012010-02-17 Ulrich Weigand <uweigand@de.ibm.com>
9402
9403 * python/python-internal.h [!WITH_THREAD] (PyGILState_Release,
9404 PyThreadState_Swap): Avoid "statement with no effect" warning.
9405
ad3a0e5b
JK
94062010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
9407
9408 * solib-svr4.c (enable_break <target_auxv_search>): New variable
9409 addr_bit. Adjust LOAD_ADDR sign for cross-arch inferiors.
9410
243e2c5d 94112010-02-17 Tristan Gingold <gingold@adacore.com>
b2319725 9412 Petr Hluzin <petr.hluzin@gmail.com>
243e2c5d
TG
9413
9414 * avr-tdep.c (avr_scan_prologue): Convert an if statement to a
9415 gdb_assert. Fix info->size for SIG prologue.
9416
275f2e57
DJ
94172010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
9418
9419 * infcmd.c (show_inferior_tty_command): Check for NULL.
9420 Correct output message.
9421
791dfb64
DJ
94222010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
9423
9424 * linespec.c (decode_line_1): Handle FILE:FUNCTION even if
9425 FUNCTION contains parentheses. Improve removal of a trailing
9426 single quote.
9427
14d1346b
DJ
94282010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
9429
9430 * gcore.c (do_bfd_delete_cleanup): New function.
9431 (gcore_command): Use it. Discard the cleanup after success.
9432 (gcore_copy_callback): Delete dead code.
9433
e76ab67f
DJ
94342010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
9435
9436 * symfile.c (addr_info_make_relative): Always use
9437 find_lowest_section.
9438
71dee663
SW
94392010-02-16 Sami Wagiaalla <swagiaal@redhat.com>
9440
9441 * NEWS: Added entry for namespace fixes.
9442
a9854bd5
TT
94432010-02-15 Tom Tromey <tromey@redhat.com>
9444
9445 * dwarf2read.c (guess_structure_name): Allocate name on the
9446 objfile obstack.
9447
fd9e29b5
TT
94482010-02-15 Tom Tromey <tromey@redhat.com>
9449
9450 * c-typeprint.c (c_type_print_base): Reverse order of test.
9451
4e1fc9c9
JK
94522010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9453
9454 * solib-svr4.c (LM_ADDR_CHECK): New variable minpagesize. Optionally
9455 initialize it from ELF BFD. Extend the prelink condition by it.
9456
74164c56
JK
94572010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9458
9459 * defs.h (parse_pid_to_attach): New.
9460 * utils.c (parse_pid_to_attach): New.
9461 * darwin-nat.c (darwin_attach): Replace ARGS parsing by parse_pid.
9462 * gnu-nat.c (gnu_attach): Likewise.
9463 * nto-procfs.c (procfs_attach): Likewise.
9464 * procfs.c (procfs_attach): Likewise.
9465 * windows-nat.c (windows_attach): Likewise.
9466 * inf-ptrace.c (inf_ptrace_attach): Likewise. Remove variable dummy.
9467 * inf-ttrace.c (inf_ttrace_attach): Likewise.
9468 * remote.c (extended_remote_attach_1): Likewise. New comment on getpid
9469 check.
9470
bf6adea8
MM
94712010-02-14 Masaki Muranaka <monaka@monami-software.com>
9472
9473 * MAINTAINERS: Add myself for write after approval privileges.
9474
28f34a8f
JK
94752010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9476
9477 * solib-svr4.c: (LM_ADDR_CHECK): Move variable align to a more inner
9478 block.
9479
701ed6dc
JK
94802010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9481
9482 * solib-svr4.c: (LM_ADDR_CHECK): Print successful prelink adjustment
9483 only if INFO_VERBOSE.
9484
e5829bee
MS
94852010-02-12 Tomas Holmberg <th@virtutech.com>
9486
9487 * mi/mi-main.c: Added the --reverse flag to the following MI
9488 commands: exec-continue, exec-finish, exec-next, exec-step,
9489 exec-next-instruction, exec-step-instruction. This is to
9490 support reverse execution over the MI interface to gdb.
9491
081dfbf7
PA
94922010-02-12 Pedro Alves <pedro@codesourcery.com>
9493
9494 * tracepoint.c (_initialize_tracepoint): Specify that the address
9495 range of `tfind outsize' is exclusive, and that the address range
9496 of `tfind range' is inclusive, in the commands' help strings.
9497
ecc13e53
JB
94982010-02-12 Joel Brobecker <brobecker@adacore.com>
9499
9500 Spurious "dll not found" error messages on x64-windows.
9501 * windows-nat.c: Add include of complaints.h.
9502 (handle_unload_dll): Change dll-not-found error into a complaint.
9503
15c3d785
PA
95042010-02-12 Pedro Alves <pedro@codesourcery.com>
9505
9506 * breakpoint.c (allocate_bp_location): Use bp_loc_other for
9507 bp_tracepoint and bp_fast_tracepoint, not
9508 bp_loc_software_breakpoint.
9509 (update_global_location_list): Tracepoints are never duplicates of
9510 anything.
9511
fd9b8c24
PA
95122010-02-12 Pedro Alves <pedro@codesourcery.com>
9513
9514 * breakpoint.c (break_command_really): Change return type to int.
9515 Return false if no breakpoint was created, true otherwise.
9516 (trace_command): Don't set the tracepoint count if no tracepoint
9517 was created.
9518 (ftrace_command): Ditto.
9519 (create_tracepoint_from_upload): Bail out if the tracepoint wasn't
9520 created in the breakpoints table.
9521
5c0d192f
JK
95222010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
9523 Ulrich Weigand <uweigand@de.ibm.com>
9524
9525 * solib-svr4.c (LM_ADDR_CHECK): New comment on PPC-aware condition.
9526
5d5b640e
PA
95272010-02-11 Pedro Alves <pedro@codesourcery.com>
9528
9529 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out if
9530 the offset value isn't of integral type.
9531
e5a0a904
JK
95322010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
9533
9534 * breakpoint.c (delete_breakpoint) <bpt->related_breakpoint != NULL>:
9535 New.
9536
be636754
PA
95372010-02-11 Pedro Alves <pedro@codesourcery.com>
9538
9539 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out on
9540 non-subscriptable types.
9541 * valarith.c (binop_types_user_defined_p): New, abstracted out
9542 from ...
9543 (binop_user_defined_p): ... this.
9544 * value.h (binop_types_user_defined_p): Declare.
9545
10ef8d6a
PA
95462010-02-11 Pedro Alves <pedro@codesourcery.com>
9547
9548 * tracepoint.c (tfile_open): Remove spurious discard_cleanups.
9549 Merge uploaded TSVs before merging uploaded tracepoints.
9550
b1028c8e
PA
95512010-02-11 Pedro Alves <pedro@codesourcery.com>
9552
9553 * ax-gdb.c (gen_deref): Don't allow dereferencing void pointers.
9554
7a93fb82 95552010-02-11 Vladimir Prus <vladimir@codesourcery.com>
84d90c10 9556
7a93fb82
VP
9557 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Add extra
9558 whitespace character after a dot in comment.
9559 (mi_cmd_stack_list_arguments, mi_cmd_stack_list_variables):
9560 Likewise.
9561 (list_args_or_locals): For the 'all' (that is
9562 -stack-list-variables) case, always output list of tuples.
9563 Output 'arg' field if variable is argument.
84d90c10 9564
92981e24
TT
95652010-02-10 Tom Tromey <tromey@redhat.com>
9566
9567 * parser-defs.h (parser_debug): Declare.
9568 * parse.c (_initialize_parse): Install "debug parser" set/show
9569 command.
9570 (parser_debug): New global.
9571 (show_parserdebug): New function.
9572 * c-exp.y (c_parse): Set yydebug.
9573
9fd3625f
L
95742010-02-10 H.J. Lu <hongjiu.lu@intel.com>
9575
9576 * target-descriptions.c (tdesc_type): Add TDESC_TYPE_I387_EXT,
9577 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
9578 (tdesc_predefined_types): Add i387_ext, i386_eflags and
9579 i386_mxcsr.
9580 (tdesc_find_type): New.
9581 (tdesc_gdb_type): Use tdesc_find_type. Handle TDESC_TYPE_I387_EXT,
9582 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
9583
9584 * target-descriptions.h (tdesc_find_type): New.
9585
2fe842e5
MS
95862010-02-10 Michael Snyder <msnyder@vmware.com>
9587
9588 * gdb-gdb.py: Comment fix.
9589
f18b4cab
TG
95902010-02-09 Tristan Gingold <gingold@adacore.com>
9591
9592 * machoread.c (macho_symfile_relocate): New function.
9593 (macho_sym_fns): Use macho_symfile_relocate instead of
9594 default_symfile_relocate.
9595 (macho_oso_data): New type.
9596 (current_oso): New variable.
9597 (macho_add_oso_symfile): Do not compute section_addr_info, but
9598 instead set vma of sections.
9599 Do not set SYMFILE_VERBOSE to call symbol_file_add_from_bfd.
9600 Set and clear current_oso.
9601
31dbc1c5
JB
96022010-02-09 Joel Brobecker <brobecker@adacore.com>
9603
9604 Wrong type description for tagged type parameter.
9605 * ada-lang.c (ada_evaluate_subexp) [OP_VAR_VALUE]: When noside is
9606 EVAL_AVOID_SIDE_EFFECTS, also handle the case when type is a
9607 reference to a tagged type.
9608
399f313b
TG
96092010-02-09 Tristan Gingold <gingold@adacore.com>
9610
9611 * objfiles.c (objfile_separate_debug_iterate): Do not iterate on
9612 brothers of the parent.
9613
714f19d5
TT
96142010-02-08 Tom Tromey <tromey@redhat.com>
9615
9616 PR c++/8017:
9617 * value.h: Update.
9618 * valops.c (search_struct_field): Make 'name' const.
9619 (search_struct_method): Likewise.
9620 (find_method_list): Make 'method' const.
9621 (value_struct_elt): Make 'name' and 'err' const.
9622 (value_find_oload_method_list): Make 'method' const.
9623 (find_overload_match): Make 'name' const.
9624 * eval.c (evaluate_subexp_standard): New locals function,
9625 function_name.
9626 <OP_FUNCALL>: Handle OP_SCOPE specially.
9627
de0a0249
UW
96282010-02-08 Ulrich Weigand <uweigand@de.ibm.com>
9629
9630 * infrun.c (handle_inferior_event): Do not look up regcache
9631 for exited processes.
9632
8d95cc3b 96332010-02-08 Chris Moller <moller@mollerware.com>
83b10087
CM
9634
9635 PR gdb/10728
9636 * valarith.c (value_ptrdiff): Added a test for a zero type length,
8d95cc3b 9637 warn if found, and assume length = 1.
83b10087 9638
99903ae3
CM
96392010-02-08 Chris Moller <cmoller@redhat.com>
9640
9641 PR gdb/9067
9642 * cp-valprint.c (cp_print_value_fields) Fix use of obstacks.
6036c742 9643 (cp_print_static_field) Fix use of obstacks.
8d95cc3b 9644
e3e9f5a2
PA
96452010-02-08 Pedro Alves <pedro@codesourcery.com>
9646
9647 * linux-nat.c (linux_nat_resume): In non-stop, also only tag
9648 resumed LWPs as resumed.
9649 (linux_nat_wait_1): If there's no resumed LWP in the set of LWPs
9650 we're waiting for, bail out with TARGET_WAITKIND_IGNORE, instead
9651 of throwing an internal error. If an LWP of a process we're not
9652 waiting for reports a signal, don't force collecting a SIGSTOP,
9653 and if it was breakpoint hit in non-stop mode, cancel it. Don't
9654 go through all LWPs cancelling breakpoints in non-stop mode.
9655 (resume_stopped_resumed_lwps): New.
9656 (linux_nat_wait): Use it.
9657
46763423
L
96582010-02-07 H.J. Lu <hongjiu.lu@intel.com>
9659
9660 * features/Makefile (WHICH): Add i386/i386, i386/i386-linux,
9661 i386/amd64 and i386/amd64-linux.
9662 (i386/i386-expedite): New.
9663 (i386/i386-linux-expedite): Likewise.
9664 (i386/amd64-expedite):Likewise.
9665 (i386/amd64-linux-expedite): Likewise.
9666 ($(outdir)/i386/i386-linux.dat): Likewise.
9667 ($(outdir)/i386/amd64.dat): Likewise.
9668 ($(outdir)/i386/amd64-linux.dat): Likewise.
9669
9670 * features/i386/32bit-core.xml: New.
9671 * features/i386/32bit-linux.xml: Likewise.
9672 * features/i386/32bit-sse.xml: Likewise.
9673 * features/i386/64bit-core.xml: Likewise.
9674 * features/i386/64bit-linux.xml: Likewise.
9675 * features/i386/64bit-sse.xml: Likewise.
9676 * features/i386/i386-linux.xml: Likewise.
9677 * features/i386/i386.xml: Likewise.
9678 * features/i386/amd64-linux.xml: Likewise.
9679 * features/i386/amd64.xml: Likewise.
9680 * features/i386/i386-linux.c: Likewise.
9681 * features/i386/i386.c: Likewise.
9682 * features/i386/amd64-linux.c: Likewise.
9683 * features/i386/amd64.c: Likewise.
9684
82856980
SW
96852010-02-05 Sami Wagiaalla <swagiaal@redhat.com>
9686
9687 PR c++/7935:
9688 * cp-support.h: Added char* alias element to using_direct data
9689 struct.
9690 (cp_add_using): Added char* alias argument.
9691 (cp_add_using_directive): Ditto.
9692 * cp-namespace.c: Updated with the above changes.
9693 (cp_lookup_symbol_imports): Check for aliases.
9694 * dwarf2read.c (read_import_statement): Figure out local alias
9695 for the import and pass it on to cp_add_using.
9696 (read_namespace): Pass alias argument to cp_add_using.
9697
d18b8b7a
HZ
96982010-02-05 Hui Zhu <teawater@gmail.com>
9699
9700 * defs.h (gdb_bfd_errmsg): New extern.
9701 * exec.c (exec_file_attach): Change bfd_errmsg to
9702 gdb_bfd_errmsg.
9703 * utils.c (AMBIGUOUS_MESS1): New macro.
9704 (AMBIGUOUS_MESS2): New macro.
9705 (gdb_bfd_errmsg): New function.
9706
48379de6
DE
97072010-02-04 Doug Evans <dje@google.com>
9708
9709 * solib-svr4.c (enable_break): Add comment.
9710
4ee73e90
AG
97112010-02-04 Anthony Green <green@moxielogic.com>
9712
9713 * moxie-tdep.c (moxie_analyze_prologue): Fail protocol analysis
9714 gracefully.
9715
1a334831
TT
97162010-02-04 Tom Tromey <tromey@redhat.com>
9717
9718 * valops.c (search_struct_field): Account for
9719 value_embedded_offset. Fix check for virtual base past the end of
9720 the object. Use value_copy when making a slice of the value.
9721
1180b2c8
L
97222010-02-04 H.J. Lu <hongjiu.lu@intel.com>
9723
9724 PR tui/9622
9725 * tui/tui-interp.c (tui_init): Call tui_initialize_readline
9726 only if gdb_stdout is a tty.
9727
c3f08eb7
L
97282010-02-04 H.J. Lu <hongjiu.lu@intel.com>
9729
9730 * target-descriptions.c: Include "osabi.h".
9731 (maint_print_c_tdesc_cmd): Generate set_tdesc_osabi for valid
9732 OSABI.
9733
2d33f7b8
TG
97342010-02-04 Tristan Gingold <gingold@adacore.com>
9735
9736 * machoread.c (macho_add_oso): Renamed to macho_register_oso.
9737 (macho_symtab_read): Adjust calls to macho_add_oso.
9738 (macho_oso_symfile): Renamed to macho_symfile_read_all_oso.
9739 (macho_symfile_read): Adjust call to macho_oso_symfile.
9740 (macho_new_init): Move this function after declarations.
9741 (macho_symfile_init): Ditto.
9742 * darwin-nat-info.c (darwin_lib_gdb_ports): Remove.
9743 * darwin-nat.c (darwin_lookup_task): Remove unused prototype.
9744
11334b82
VP
97452010-02-04 Vladimir Prus <vladimir@codesourcery.com>
9746
9747 Include MI command in remotelog.
9748
9749 * mi/mi-main.c (mi_execute_command): Call target_log_command.
9750
ff97be06
L
97512010-02-03 H.J. Lu <hongjiu.lu@intel.com>
9752
9753 * remote.c (remote_state): Remove gdbarch.
9754 (init_remote_state): Don't set gdbarch.
9755 (remote_query_supported): Pass target_gdbarch instead of
9756 rs->gdbarch to gdbarch_qsupported.
9757
75cebea9
L
97582010-02-03 H.J. Lu <hongjiu.lu@intel.com>
9759
9760 * gdbarch.sh: Add qsupported.
9761
9762 * gdbarch.c: Regenerated.
9763 * gdbarch.h: Likewise.
9764
9765 * remote.c (remote_state): Add gdbarch.
9766 (init_remote_state): Set gdbarch.
9767 (remote_query_supported): Support gdbarch_qsupported.
9768
c1dec97b
DJ
97692010-02-03 Daniel Jacobowitz <dan@codesourcery.com>
9770
9771 * amd64fbsd-nat.c (amd64fbsd_supply_pcb): Also check for
9772 __FreeBSD_kernel_version.
9773
ac8035ab
TG
97742010-02-03 Tristan Gingold <gingold@adacore.com>
9775
9776 * symfile.h (struct sym_fns): Add sym_relocate field.
9777 (default_symfile_relocate): New prototype.
9778 (symfile_relocate_debug_section): First argument is now an objfile.
9779 * symfile.c (default_symfile_relocate): Rename from
9780 symfile_relocate_debug_section, first argument is now an objfile.
9781 (symfile_relocate_debug_section): New function.
9782 * coffread.c (coff_sym_fns): Set sym_relocate field.
9783 * somread.c (som_sym_fns): Ditto.
9784 * mipsread.c (ecoff_sym_fns): Ditto.
9785 * machoread.c (macho_sym_fns): Ditto.
9786 * elfread.c (elf_sym_fns): Ditto.
9787 * dwarf2read.c (dwarf2_read_section): Ditto.
9788 * xcoffread.c (xcoff_sym_fns): Ditto.
9789 * dbxread.c (aout_sym_fns): Ditto.
9790 (dbx_psymtab_to_symtab): Adjust call to symfile_relocate_debug_section.
9791 (elfstab_build_psymtabs): Ditto.
9792
be52b756
L
97932010-02-03 H.J. Lu <hongjiu.lu@intel.com>
9794
9795 * defs.h (MAX_REGISTER_SIZE): Increase to 32.
9796
9c3c02fd
TT
97972010-02-02 Tom Tromey <tromey@redhat.com>
9798
9799 * valops.c (value_cast_structs): Try downcasting using the RTTI
9800 type.
9801
f23f4c59
TT
98022010-02-02 Tom Tromey <tromey@redhat.com>
9803
9804 * gnu-v2-abi.c: Don't include gnu-v2-abi.h.
9805 (gnuv2_baseclass_offset): Now static.
9806 * Makefile.in (HFILES_NO_SRCDIR): Remove gnu-v2-abi.h.
9807 * gnu-v2-abi.h: Remove.
9808
0cc2414c
TT
98092010-02-02 Tom Tromey <tromey@redhat.com>
9810
9811 * m2-typeprint.c (m2_record_fields): Don't use
9812 TYPE_DECLARED_TYPE.
9813 * gdbtypes.h (TYPE_DECLARED_CLASS): New macro.
9814 (struct main_type) <flag_declared_class>: New field.
9815 (struct cplus_struct_type) <declared_type>: Remove.
9816 <ntemplate_args>: Move earlier.
9817 (DECLARED_TYPE_CLASS, DECLARED_TYPE_UNION, DECLARED_TYPE_STRUCT)
9818 (DECLARED_TYPE_TEMPLATE): Remove.
9819 (TYPE_DECLARED_TYPE): Remove.
9820 * gdbtypes.c (lookup_union): Don't use TYPE_DECLARED_TYPE.
9821 * dwarf2read.c (read_structure_type): Set TYPE_DECLARED_CLASS.
9822 * c-typeprint.c (c_type_print_base): Use TYPE_DECLARED_CLASS, not
9823 TYPE_DECLARED_TYPE.
9824
edf3d5f3
TT
98252010-02-02 Tom Tromey <tromey@redhat.com>
9826
9827 PR c++/11226, PR c++/9629, PR c++/9688, PR c++/8890:
9828 * valops.c (search_struct_field): Compute nbases after calling
9829 CHECK_TYPEDEF.
9830 (check_field): Call CHECK_TYPEDEF.
9831 * cp-valprint.c (cp_print_value): Pass correct address to
9832 baseclass_offset. Fix check for virtual base past the end of the
9833 object. Don't offset address passed to cp_print_value_fields or
9834 apply_val_pretty_printer.
9835 (cp_print_value_fields): Fix call to val_print.
9836 (cp_print_value_fields_rtti): New function.
9837 * c-valprint.c (c_val_print): Use cp_print_value_fields_rtti.
9838 * p-valprint.c (pascal_object_print_value_fields): Fix call to
9839 val_print.
9840 * python/py-prettyprint.c (apply_val_pretty_printer): Add embedded
9841 offset to address.
9842 * language.h (struct language_defn) <la_val_print>: Document.
9843 * c-lang.h (cp_print_value_fields_rtti): Declare.
9844
e4b7f41c
JK
98452010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9846
9847 PR libc/11214:
9848 * linux-low.c (linux_tracefork_child) [!(__UCLIBC__ && HAS_NOMMU)]: New.
9849 (linux_test_for_tracefork): Move `stack' into [__UCLIBC__ && HAS_NOMMU].
9850 (linux_test_for_tracefork) [!(__UCLIBC__ && HAS_NOMMU)]: New.
9851
7618e12b
DJ
98522010-02-01 Michael Matz <matz@suse.de>
9853 Daniel Jacobowitz <dan@codesourcery.com>
9854
e4b7f41c 9855 * i386-tdep.c (i386_frame_cache): Assume valid anonymous
7618e12b
DJ
9856 functions use a frame pointer.
9857
b381ea14
JK
98582010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9859
9860 * solib-svr4.c (scan_dyntag): New variable dyn_addr. Replace gdb_assert
9861 by a conditional setting DYN_ADDR. Use DYN_ADDR.
9862 * config/djgpp/fnchange.lst: Add translations for
9863 symbol-without-target_section.exp and symbol-without-target_section.c.
9864
0e05dfcb
DJ
98652010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
9866
9867 * gdbarch.sh: Set LANG and LC_ALL to C, not c.
9868 (remote_breakpoint_for_pc): Correct invalid_p check.
9869 * gdbarch.c: Regenerated.
9870
f9d67f43
DJ
98712010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
9872
9873 * arm-tdep.c (arm_find_mapping_symbol): New function, from
9874 arm_pc_is_thumb.
9875 (arm_pc_is_thumb): Use arm_find_mapping_symbol.
9876 (extend_buffer_earlier): New function.
9877 (MAX_IT_BLOCK_PREFIX, IT_SCAN_THRESHOLD): New constants.
9878 (arm_adjust_breakpoint_address): New function.
9879 (arm_gdbarch_init): Register arm_adjust_breakpoint_address.
9880
177321bd
DJ
98812010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
9882
9883 * arm-linux-tdep.c (arm_linux_thumb2_be_breakpoint)
9884 (arm_linux_thumb2_le_breakpoint): New constants.
9885 (arm_linux_init_abi): Set thumb2_breakpoint and
9886 thumb2_breakpoint_size.
9887 * arm-tdep.c (thumb_insn_size, thumb_advance_itstate): New functions.
9888 (thumb_get_next_pc): Add a comment. Rename IT to ITSTATE.
9889 Implement support for single stepping through IT blocks if
9890 a 32-bit Thumb breakpoint instruction is available.
9891 (arm_breakpoint_from_pc): If a 32-bit Thumb breakpoint instruction
9892 is available, use it when needed.
9893 (arm_remote_breakpoint_from_pc): New function.
9894 (arm_gdbarch_init): Register arm_remote_breakpoint_from_pc.
9895 * arm-tdep.h (struct gdbarch_tdep): Correct thumb_breakpoint
9896 comment. Add thumb2_breakpoint and thumb2_breakpoint_size.
9897
a1dcb23a
DJ
98982010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
9899
9900 * arch-utils.c (default_remote_breakpoint_from_pc): New function.
9901 * arch-utils.h (default_remote_breakpoint_from_pc): Declare.
9902 * gdbarch.c, gdbarch.h: Regenerated.
9903 * gdbarch.sh (remote_breakpoint_from_pc): New architecture method.
9904 * remote.c (remote_insert_breakpoint, remote_insert_hw_breakpoint): Use
9905 gdbarch_remote_breakpoint_from_pc.
9906
2b009048
DJ
99072010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
9908
9909 * infrun.c (prepare_to_proceed): Handle other signals which might
9910 match a breakpoint.
9911 (handle_inferior_event): Move the check for unusual breakpoint
9912 signals earlier.
9913
e4e2711a
JB
99142010-01-29 Paul Hilfinger <hilfinger@adacore.com>
9915
9916 amd64 - function returning record with field straddling 2 registers.
9917 * amd64-tdep.c (amd_classify_aggregate): Handle the case of
9918 a record of length <= 16 in which a field straddles the two
9919 eightbytes.
9920
cba6fab5
JB
99212010-01-29 Joel Brobecker <brobecker@adacore.com>
9922
9923 Implement return values on amd64-windows.
9924 * amd64-windows-tdep.c: #include gdbcore.h and regcache.h.
9925 (amd64_windows_return_value): New function.
9926 (amd64_windows_init_abi): Call set_gdbarch_return_value with
9927 amd64_windows_return_value.
9928
3af6ddfe
JB
99292010-01-29 Joel Brobecker <brobecker@adacore.com>
9930
9931 amd64-windows: 32 bytes allocated on stack by caller for integer
cba6fab5 9932 parameter registers.
3af6ddfe
JB
9933 * i386-tdep.h (struct gdbarch_tdep): Add new field
9934 integer_param_regs_saved_in_caller_frame.
9935 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
9936 tdep->integer_param_regs_saved_in_caller_frame to 1.
9937 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
9938 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
9939
80d19a06
JB
99402010-01-29 Joel Brobecker <brobecker@adacore.com>
9941
9942 amd64-windows: memory args passed by pointer during function calls.
9943 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
9944 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
9945 where tdep->memory_args_by_pointer is non-zero.
9946 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
9947 tdep->memory_args_by_pointer to 1.
9948
ba581dc1
JB
99492010-01-29 Joel Brobecker <brobecker@adacore.com>
9950
4966b6c2 9951 amd64-windows: Integer parameters in function calls.
ba581dc1
JB
9952 * i386-tdep.h (enum amd64_reg_class): New, moved here from
9953 amd64-tdep.c.
9954 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
9955 call_dummy_integer_regs, and classify.
9956 * amd64-tdep.h (amd64_classify): Add declaration.
9957 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
9958 (amd64_reg_class): Delete, moved to i386-tdep.h.
9959 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
9960 Replace call to amd64_classify by call to tdep->classify.
9961 (amd64_push_arguments): Get the list of registers to use for
9962 passing integer parameters from the gdbarch tdep structure,
9963 rather than using a hardcoded one. Replace calls to amd64_classify
9964 by calls to tdep->classify.
9965 (amd64_push_dummy_call): Get the register number used for
9966 the "hidden" argument from tdep->call_dummy_integer_regs.
9967 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
9968 and tdep->call_dummy_integer_regs. Set tdep->classify.
9969 * amd64-windows-tdep.c: Add include of gdbtypes.h.
9970 (amd64_windows_dummy_call_integer_regs): New static global.
9971 (amd64_windows_classify): New function.
9972 (amd64_windows_init_abi): Initialize tdep->call_dummy_num_integer_regs
9973 tdep->call_dummy_integer_regs and tdep->classify.
9974
d37346f0
DJ
99752010-01-28 Daniel Jacobowitz <dan@codesourcery.com>
9976
9977 * regcache.c (regcache_xmalloc): Add aspace argument. Use it
9978 for the new regcache. All callers updated.
9979 (regcache_cpy, regcache_cpy_no_passthrough): Do not set aspace here.
9980 (get_thread_arch_regcache): Do not set aspace here.
9981 * regcache.h (regcache_xmalloc): Update declaration.
9982
9983 * frame.c, infcall.c, ppc-linux-tdep.c: Calls to
9984 regcache_xmalloc updated.
9985
7434dadd
JB
99862010-01-28 Joel Brobecker <brobecker@adacore.com>
9987
9988 Another -Wunused-function error in procfs.c (sparc-solaris)
9989 * procfs.c (insert_dbx_link_breakpoint): Delete declaration. Move up.
9990 Only define if SYS_syssgi is defined.
9991 (remove_dbx_link_breakpoint): Delete declaration. Move up.
9992 (dbx_link_addr, insert_dbx_link_bpt_in_file)
9993 (insert_dbx_link_bpt_in_region): Move up. Only define if SYS_syssgi
9994 is itself defined.
9995
16d905e2
CF
99962010-01-27 Christopher Faylor <me+cygwin@cgf.cx>
9997
9998 * windows-nat.c (windows_initialization_done): New variable.
9999 (get_windows_debug_event): Issue error when process dies before
10000 completely initializing.
10001 (do_initial_windows_stuff): Set flag to indicate when we are done with
10002 the initial steps of attaching to the child.
10003
cd55e50f
JK
100042010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
10005
10006 * symtab.h (struct symbol <symtab>): New comment on NULL values.
10007
99cc78aa
DE
100082010-01-27 Doug Evans <dje@google.com>
10009
4c7dcb84
DE
10010 * solib-svr4.c (solib_break_names): Add __dl_rtld_db_dlactivity.
10011
99cc78aa
DE
10012 * breakpoint.c (bpstat_stop_status): Delete useless code.
10013
52334bf5
JK
100142010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
10015
10016 * printcmd.c (display_uses_solib_p): Remove variable section. Access
10017 objfile via SYMBOL_SYMTAB.
10018
708ead4e
TT
100192010-01-26 Tom Tromey <tromey@redhat.com>
10020
10021 PR exp/7643:
10022 * eval.c (evaluate_subexp_for_address) <UNOP_IND>: Call
10023 coerce_array on result.
10024
b14e635e
SW
100252010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
10026
10027 * cp-namespace.c (cp_lookup_symbol_namespace): Added
10028 search_parent argument.
10029 (cp_add_using): Initialize 'searched' field.
10030 (reset_directive_searched): New function.
10031 * cp-support.h: Add 'searched' field to using_direct struct.
10032 (cp_lookup_symbol_imports): Ditto.
10033 * cp-namespace.c (cp_lookup_symbol_imports): Ditto.
10034 Perform recursive search.
10035 Implement non parent search.
10036 * valops.c (value_maybe_namespace_elt): Updated.
10037
8540c487
SW
100382010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
10039
10040 PR gdb/10929:
10041 * dwarf2read.c (read_lexical_block_scope): Create blocks for
10042 scopes which contain using directives even if they contain no
10043 declarations.
10044 * symtab.c (lookup_symbol_aux): Pass lowest level block to
10045 la_lookup_symbol_nonlocal.
10046 * cp-namespace.c (cp_lookup_symbol_nonlocal): call
10047 cp_lookup_symbol_namespace.
10048 (cp_lookup_symbol_namespace): Perform an import lookup at every
10049 block level.
10050 (cp_lookup_symbol_imports): New function.
10051 (cp_lookup_symbol_in_namespace): New function.
10052
421d5d99
TT
100532010-01-25 Tom Tromey <tromey@redhat.com>
10054
10055 PR gdb/11049:
10056 * c-valprint.c (c_val_print): Fix test of extract_unsigned_integer
10057 result.
10058
6bcc772d
RO
100592010-01-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10060
10061 * configure.ac: Only use host_os part when disabling TUI on osf.
10062 Use test to check variables, prefix strings with x.
10063 * configure: Regenerate.
10064
10065 * solib-osf.c (osf_current_sos): Initialize tail.
10066
1c1238a5
TG
100672010-01-25 gingold <gingold@adacore.com>
10068
c8d5aac9
L
10069 * windows-nat.c (windows_continue): Use %x to print thread id.
10070 (get_windows_debug_event): Ditto.
1c1238a5 10071
0b92b5bb
TT
100722010-01-22 Tom Tromey <tromey@redhat.com>
10073
10074 PR symtab/11199:
10075 * dwarf2read.c (quirk_gcc_member_function_pointer): Change return
10076 type and arguments. Use smash_to_methodptr_type.
10077 (read_structure_type): Call quirk_gcc_member_function_pointer
10078 later.
10079 * gdbtypes.h (smash_to_methodptr_type): Declare.
10080 * gdbtypes.c (smash_to_methodptr_type): New function.
10081 (lookup_methodptr_type): Use it.
10082
0d5392b8
TT
100832010-01-21 Tom Tromey <tromey@redhat.com>
10084
10085 PR symtab/11198:
10086 * symtab.h (lookup_minimal_symbol_and_objfile): Declare.
10087 * minsyms.c (lookup_minimal_symbol_and_objfile): New function.
10088 * glibc-tdep.c (find_minsym_and_objfile): Remove.
10089 (glibc_skip_solib_resolver): Use
10090 lookup_minimal_symbol_and_objfile.
10091
e6d088ec
KT
100922010-01-21 Kai Tietz <kai.tietz@onevision.com>
10093
10094 * inflow.c (check_syscall): Guard by #if clause for GO32 and
10095 WIN32 targets.
10096
b966cb8a
TT
100972010-01-20 Tom Tromey <tromey@redhat.com>
10098
10099 PR backtrace/10770:
10100 * valarith.c (value_binop): Handle BINOP_GTR, BINOP_LEQ, and
10101 BINOP_GEQ. Handle BINOP_NOTEQUAL in the signed case.
10102 * dwarf2expr.c (new_dwarf_expr_context): Allocate
10103 dwarf_stack_values, not CORE_ADDRs.
10104 (execute_stack_op): Change DW_OP_div and comparison operators to
10105 use signed operands.
10106
3f81c18a
VP
101072010-01-20 Vladimir Prus <vladimir@codesourcery.com>
10108
10109 Per-inferior args and tty and environment.
10110
10111 * infcmd.c (inferior_args): Rename to ...
10112 (inferior_args_scratch): ... this.
10113 (inferior_io_terminal): Rename to ...
10114 (inferior_io_terminal_scratch): ... this.
10115 (inferior_argc, inferior_argv): Remove.
10116 (set_inferior_io_terminal, get_inferior_io_terminal): Store
10117 inside current_inferior().
10118 (set_inferior_tty_command, show_inferior_tty_command): New.
10119 (get_inferior_args, set_inferior_args): Store inside
10120 current_inferior().
10121 (notice_args_set): Likewise and rename to...
10122 (set_args_command): ... this.
10123 (set_inferior_args_vector): Likewise.
10124 (notice_args_read): Rename to...
10125 (show_args_command): ...new.
10126 (tty_command): Remove.
10127 (run_command_1): Don't free old args, as they are freed by
10128 set_inferior_arg now.
10129 (run_no_args_command): Likewise.
10130 (inferior_environ): Remove.
10131 (run_command_1): Use environment of the current inferior.
10132 (environment_info, set_environment_command)
10133 (unset_environment_command, path_info, path_command): Likewise.
10134 (_initialize_infcmd): Adjust for function and variable renames.
10135 Do not init inferior_environ.
10136 * inferior.h (set_inferior_arg): Adjust prototype.
10137 (struct inferior): New fields args, argc, argv, terminal, environment.
10138 (inferior_environ): Remove declaration.
10139 * inferior.c (free_inferior): Free new fields.
10140 (add_inferior_silent): Initialize 'environment' field.
10141 * main.c (captured_main): Set arguments only after the initial
10142 inferior has been created. Set set_inferior_io_terminal,
10143 not tty_command.
10144 * mi/mi-main.c (mi_cmd_env_path): Use environment of the current
10145 inferior.
10146 (_initialize_mi_cmd_env): Adjust for disappearance of global
10147 inferior_environ.
10148 * solib.c (solib_find): Use environment of the current inferior.
10149
d8b65138
JK
101502010-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10151
10152 * varobj.c (varobj_add_child, install_dynamic_child): Wrap into #if
10153 HAVE_PYTHON.
10154 (instantiate_pretty_printer): Move HAVE_PYTHON outside of the function.
10155
692465f1
JB
101562010-01-20 Joel Brobecker <brobecker@adacore.com>
10157
10158 Get rid of ada-lang.c:function_name_from_pc.
10159 * ada-lang.c: Add "stack.h" #include.
10160 (function_name_from_pc): Delete.
10161 (is_known_support_routine): Replace call to function_name_from_pc
10162 by call to find_frame_funname.
10163 (ada_unhandled_exception_name_addr_from_raise): Likewise.
10164
95519e0e
TT
101652010-01-19 Tom Tromey <tromey@redhat.com>
10166
10167 PR c++/11026:
10168 * dwarf2read.c (read_partial_die): Allocate partial DIE's name on
10169 objfile obstack.
10170
95c11dc7
TT
101712010-01-19 Tom Tromey <tromey@redhat.com>
10172
10173 * top.c (stop_sig, float_handler, do_nothing): Remove.
10174
a0f49112
JK
101752010-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
10176
10177 * breakpoint.c (watchpoint_check): Check the call
10178 gdbarch_in_function_epilogue_p before calling frame_find_by_id.
10179 Extend the comment.
8d95cc3b 10180 * config/djgpp/fnchange.lst: Add translations for
a0f49112
JK
10181 watchpoint-cond-gone.exp, watchpoint-cond-gone.c and
10182 watchpoint-cond-gone-stripped.c.
10183
ceeb3d5a
TT
101842010-01-19 Tom Tromey <tromey@redhat.com>
10185
10186 PR c++/8000:
10187 * dwarf2read.c (partial_die_parent_scope): Put enumeration type
10188 into parent scope, and enumerator into grandparent scope.
10189
2b71fc8e
JB
101902010-01-19 Joel Brobecker <brobecker@adacore.com>
10191
10192 * NEWS: Add entry for "set/show ada trust-PAD-over-XVS" commands.
10193
03564ed9
JB
101942010-01-19 Joel Brobecker <brobecker@adacore.com>
10195
10196 * configure.host: Make x86_64-*-solaris2.1[0-9]* an alias of
10197 i[34567]86-*-solaris2.1[0-9]*.
10198 * configure.tgt: Likewise.
10199
fb2e7cb4
JB
102002010-01-19 Joel Brobecker <brobecker@adacore.com>
10201
10202 * NEWS: Document the source command enhancement allowing it
10203 to load Python scripts. Document the "set/show script-extension"
10204 commands.
10205
1cb5e2a4
JB
102062010-01-19 Joel Brobecker <brobecker@adacore.com>
10207
10208 Add -Wunused-function to compile flags.
10209 * configure.ac: Add -Wunused-function to build_warnings.
10210 * configure: Regenerate.
10211
0ec6cd0c
JB
102122010-01-19 Joel Brobecker <brobecker@adacore.com>
10213
10214 "delete" ada-lex.c:input function, not used.
10215 * ada-lex.l: #define YY_NO_INPUT.
10216
b74845da
JB
102172010-01-19 Joel Brobecker <brobecker@adacore.com>
10218
10219 Delete free_named_symtabs and associated cleanup.
10220 * symfile.h (free_named_symtabs): Delete declaration.
10221 * symfile.c: Remove some commented out code (clear_symtab_users_once).
10222 (cashier_psymtab): Comment function out.
10223 Delete declaration.
10224 (free_named_symtabs): Delete.
10225 * coffread.c (coff_end_symtab): Remove call to free_named_symtabs.
10226 * dbxread.c (end_psymtab): Likewise.
10227 * dwarf2read.c (process_psymtab_comp_unit): Ditto.
10228 * exec.c (exec_close_1): Ditto.
10229 * xcoffread.c (xcoff_end_psymtab): Likewise.
10230
65c06092
JB
102312010-01-19 Joel Brobecker <brobecker@adacore.com>
10232
10233 * stack.c (print_block_frame_labels): Comment function out.
10234
d5cd6034
JB
102352010-01-19 Joel Brobecker <brobecker@adacore.com>
10236
10237 Delete unused or undefined functions.
10238 * breakpoint.c (ep_parse_optional_filename): Delete.
10239 * dcache.c (dcache_write_line): Remove declaration.
10240 * infrun.c (build_infrun): Remove declaration.
10241 * tracepoint.c (tracepoint_save_command): Remove declaration.
10242 * linux-nat.c (init_lwp_list): Delete. No longer used.
10243 * event-loop.c (check_async_signal_handlers): Delete declaration.
10244 * infrun.c (init_execution_control_state): Delete.
10245 (proceed): Update comment to avoid mentioning
10246 init_execution_control_state.
10247 * target.c (kill_or_be_killed, nosupport_runtime): Delete.
10248 * ada-lang.c (ada_to_static_fixed_value): Delete.
10249 * scm-lang.c (evaluate_subexp_scm): Delete declaration.
10250 * cp-namespace.c (cp_copy_usings): Delete.
10251 * xml-syscall.c (xml_number_of_syscalls): Delete.
10252 * progspace.c (find_program_space_by_num): Delete.
10253 * inflow.c (handle_sigio): Delete declaration.
10254 * hppa-tdep.c (hppa_alignof): Delete.
10255 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset)
10256 (mipsnbsd_core_osabi_sniffer): Delete.
10257
4e8f195d
TT
102582010-01-18 Tom Tromey <tromey@redhat.com>
10259
10260 PR c++/9680:
10261 * c-exp.y (REINTERPRET_CAST, DYNAMIC_CAST, STATIC_CAST)
10262 (CONST_CAST): New tokens.
10263 (exp): Add new productions.
10264 (ident_tokens): Add const_cast, dynamic_cast, static_cast, and
10265 reinterpret_cast.
10266 (is_cast_operator): New function.
10267 (yylex): Handle cast operators specially.
10268 * eval.c (evaluate_subexp_standard) <UNOP_DYNAMIC_CAST,
10269 UNOP_REINTERPRET_CAST>: New cases.
10270 * expprint.c (print_subexp_standard): Likewise.
10271 (op_name_standard): Likewise.
10272 (dump_subexp_body_standard): Likewise.
10273 * parse.c (operator_length_standard): Likewise.
10274 * expression.h (enum exp_opcode): New constants UNOP_DYNAMIC_CAST,
10275 UNOP_REINTERPRET_CAST.
10276 * gdbtypes.c (class_types_same_p): New function.
10277 (is_ancestor): Use it.
10278 (is_public_ancestor): New function.
10279 (is_unique_ancestor_worker): Likewise.
10280 (is_unique_ancestor): Likewise.
10281 * gdbtypes.h (class_types_same_p, is_public_ancestor)
10282 (is_unique_ancestor): Declare.
10283 * valops.c (value_reinterpret_cast): New function.
10284 (dynamic_cast_check_1): Likewise.
10285 (dynamic_cast_check_2): Likewise.
10286 (value_dynamic_cast): Likewise.
10287 * value.h (value_reinterpret_cast, value_dynamic_cast): Declare.
10288
d9c57d9f
JB
102892010-01-18 Joel Brobecker <brobecker@adacore.com>
10290
10291 Fix build failure when building without Python support.
10292 * python/python.c: Always include exceptions.h, even when HAVE_PYTHON
10293 is not defined.
10294
f80d3ff2
JB
102952010-01-18 Joel Brobecker <brobecker@adacore.com>
10296
10297 Use XVS field type instead of doing a parallel lookup.
10298 * ada-lang.c (ada_get_base_type): Follow the XVS field type
10299 if it is a reference type instead of doing a type lookup using
10300 the XVS field name.
10301
5bf03f13
JB
103022010-01-18 Joel Brobecker <brobecker@adacore.com>
10303
10304 Trust PAD types instead of using PAD___XVS.
10305 * ada-lang.c (trust_pad_over_xvs): New static variable.
10306 (ada_is_aligner_type): If !trust_pad_over_xvs and there is a
10307 parallel XVS type, follow the XVS type instead of the PAD type.
10308 (unwrap_value): Make sure that there is no parallel XVE type
10309 before returning the value as is.
10310 (set_ada_list, show_ada_list): New static variables.
10311 (set_ada_command, show_ada_command): New functions.
10312 (_initialize_ada_language): Add new "set/show ada" prefix commands.
10313 Add new "set/show ada trust-PAD-over-XVS" setting.
10314
973817a3
JB
103152010-01-18 Tom Tromey <tromey@redhat.com>
10316 Thiago Jung Bauermann <bauerman@br.ibm.com>
10317
10318 Allow "source" to load python scripts.
10319 * exceptions.h (enum errors): Add UNSUPPORTED_ERROR.
10320 * python/python.c (source_python_script): New function.
10321 * python/python.h (source_python_script): Add declaration.
10322 * cli/cli-cmds.c: #include exceptions.h and python/python.h.
10323 (script_ext_off, script_ext_soft, script_ext_strict)
10324 (script_ext_enums, script_ext_mode): New static constants.
10325 (show_script_ext_mode, find_and_open_script): New functions.
10326 (source_script): Enhance to handle Python scripts.
10327 (init_cli_cmds): Add set/show script-extension commands.
10328
98e03262
SS
103292010-01-16 Stan Shebs <stan@codesourcery.com>
10330
10331 * tracepoint.h (struct trace_status): Use unsigned long long
10332 instead of size_t.
10333 * tracepoint.c (trace_status_command): Fix printf directive.
10334 (trace_save_command): Check fwrite returns, fix printf directive.
10335 (trace_filename): New global.
10336 (tfile_open): Set it, check read returns.
10337 (tfile_close): Free trace_filename.
10338 (tfile_get_traceframe_address): Check read returns.
10339 (tfile_trace_find): Ditto.
10340 (tfile_fetch_registers): Ditto.
10341 (tfile_xfer_partial): Ditto.
10342 (tfile_get_trace_state_variable_value): Ditto.
10343
00bf0b85
SS
103442010-01-15 Stan Shebs <stan@codesourcery.com>
10345
10346 Add trace file support.
10347 * tracepoint.h (enum trace_stop_reason): New enum.
10348 (struct trace_status): New struct.
10349 (parse_trace_status): Declare.
10350 (struct uploaded_tp): Move here from remote.c,
10351 add fields for actions.
10352 (struct uploaded_tsv): New struct.
10353 * tracepoint.c (tfile_ops): New target vector.
10354 (trace_fd): New global.
10355 (tfile_open): New function.
10356 (tfile_close): New function.
10357 (tfile_files_info): New function.
10358 (tfile_get_trace_status): New function.
10359 (tfile_get_traceframe_address): New function.
10360 (tfile_trace_find): New function.
10361 (tfile_fetch_registers): New function.
10362 (tfile_xfer_partial): New function.
10363 (tfile_get_trace_state_variable_value): New function.
10364 (init_tfile_ops): New function.
10365 (_initialize_tracepoint): Call it, add tfile target.
10366 (trace_status): New global.
10367 (current_trace_status): New function.
10368 (trace_running_p): Remove, change all users to get from
10369 current_trace_status()->running.
10370 (get_trace_status): Remove.
10371 (trace_status_command): Call target_get_trace_status directly,
10372 report more detail including tracing stop reasons.
10373 (trace_find_command): Always allow tfind on a file.
10374 (trace_find_pc_command): Ditto.
10375 (trace_find_tracepoint_command): Ditto.
10376 (trace_find_line_command): Ditto.
10377 (trace_find_range_command): Ditto.
10378 (trace_find_outside_command): Ditto.
10379 (trace_frames_offset, cur_offset): Declare as off_t.
10380 (trace_regblock_size): Rename from reg_size, update users.
10381 (parse_trace_status): New function.
10382 (tfile_interp_line): New function.
10383 (disconnect_or_stop_tracing): Ensure current trace
10384 status before asking what to do.
10385 (stop_reason_names): New global.
10386 (trace_save_command): New command.
10387 (get_uploaded_tp): Move here from remote.c.
10388 (find_matching_tracepoint): Ditto.
10389 (merge_uploaded_tracepoints): New function.
10390 (parse_trace_status): Use stop_reason_names.
10391 (_initialize_tracepoint): Define tsave command.
10392 * target.h (target_ops): New fields to_save_trace_data,
10393 to_upload_tracepoints, to_upload_trace_state_variables,
10394 to_get_raw_trace_data, change to_get_trace_status
10395 to take a pointer to a status struct.
10396 (target_save_trace_data): New macro.
10397 (target_upload_tracepoints): New macro.
10398 (target_upload_trace_state_variables): New macro.
10399 (target_get_raw_trace_data): New macro.
10400 * target.c (update_current_target): Add new methods, change
10401 signature of to_get_trace_status.
10402 * remote.c (hex2bin): Make globally visible.
10403 (bin2hex): Ditto.
10404 (remote_download_trace_state_variable): Download name also.
10405 (remote_get_trace_status): Update parameter, use
10406 parse_trace_status.
10407 (remote_save_trace_data): New function.
10408 (remote_upload_tracepoints): New function.
10409 (remote_upload_trace_state_variables): New function.
10410 (remote_get_raw_trace_data): New function.
10411 (remote_start_remote): Use them.
10412 (_initialize_remote_ops): Add operations.
10413 * ax-gdb.c: Include breakpoint.h.
10414 * breakpoint.c (create_tracepoint_from_upload): Use
10415 break_command_really, return tracepoint, warn about unimplemented
10416 parts.
10417 * NEWS: Mention trace file addition.
10418
d904de5b
JK
104192010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10420
10421 Fix compilation warning on gcc-3.4.
10422 * exec.c (print_section_info): Move the `displacement' variable
10423 initialization to its declaration.
10424
64aa9731
JK
104252010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10426
10427 * gdb-gdb.py (StructMainTypePrettyPrinter): Fix TYPE_CODE_RANGE
10428 comparison.
10429
ca1f5def 104302010-01-15 Eric Botcazou <botcazou@adacore.com>
9f0dec2d
JB
10431
10432 "info tasks" broken by typedefs in ATCB type definitions.
10433 * ada-lang.c (ada_template_to_fixed_record_type_1): Add call to
10434 ada_check_typedef before retrieving the length of the type for
10435 regular fields.
10436
12ab9e09
JB
104372010-01-15 Joel Brobecker <brobecker@adacore.com>
10438
10439 Do not use name-based lookup for unconstrained packed arrays.
10440 * ada-lang.c (find_parallel_type_by_descriptive_type):
10441 Limit the fallback to name-based lookups to the case where
10442 the type is a constrained packed array.
10443
c389c3dc
JB
104442010-01-15 Joel Brobecker <brobecker@adacore.com>
10445
10446 Enhance gdb-gdb.py to handle main_type.type_specific.
10447 * gdb-gdb.py: Print the type-specific part of struct main_type.
10448
7991dee7
JK
104492010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10450
10451 * configure.ac (AC_CHECK_FUNCS): Check for setrlimit and getrlimit.
10452 * configure: Regenerate.
10453 * config.in: Regenerate.
10454 * utils.c: Include sys/resource.h.
10455 (dump_core, can_dump_core): New.
10456 (internal_vproblem): Update the comment. Check can_dump_core while
10457 setting dump_core_p. Replace two abort calls by dump_core calls.
10458
93c26624
JK
104592010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10460 Eli Zaretskii <eliz@gnu.org>
10461
10462 * NEWS: Document the PIE support.
10463
55235ad7
JK
104642010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10465
10466 * linux-tdep.c: Remove includes gdbcore.h, observer.h and elf-bfd.h.
10467 (check_is_pie_binary, _initialize_linux_tdep): Remove.
10468
41752192
JK
104692010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10470
10471 * solib-svr4.c (svr4_exec_displacement): New comment for entry_point.
10472 Replace exec_entry_point call by bfd_get_start_address.
10473
9f2982ff
JK
104742010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10475
10476 Support Valgrind attachments broken by the PIE support.
10477 * auxv.c: Include gdbcore.h.
10478 (procfs_xfer_auxv): Make static. Reduce its comment. Drop its
10479 parameters ops, object and annex. Remove their assertions.
10480 (ld_so_xfer_auxv, memory_xfer_auxv): New function.
10481 * auxv.h (procfs_xfer_auxv): Remove comment. Rename to ...
10482 (memory_xfer_auxv): ... here.
10483 * linux-nat.c (linux_xfer_partial): Rename procfs_xfer_auxv to
10484 memory_xfer_auxv.
10485 * procfs.c (procfs_xfer_partial): Likewise.
10486 * solib-svr4.c (svr4_relocate_main_executable): New prototype.
10487 (svr4_special_symbol_handling): Call svr4_relocate_main_executable.
10488 (svr4_solib_create_inferior_hook): Conditionalize the
10489 svr4_relocate_main_executable call.
10490
61f0d762
JK
104912010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10492
10493 * solib-svr4.c (scan_dyntag): Remove variable dyn_addr. New variable
10494 target_section. Find SECT in current_target_sections, gdb_assert it.
10495 (elf_lookup_lib_symbol): Pass the binary file if given symfile_objfile.
10496 New variable abfd.
10497 * symtab.c (lookup_objfile_from_block): Return the binary file instead
10498 of separate debug info file.
10499
51bee8e9
JK
105002010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10501
10502 Support PIEs with no symfile_objfile.
10503 * exec.c (print_section_info <abfd == exec_bfd>): Relocate Entry point.
10504 * solib-svr4.c (svr4_relocate_main_executable <exec_bfd>): New block.
10505
b8040f19
JK
105062010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10507
10508 * solib-svr4.c (svr4_relocate_main_executable): Move the static exec
10509 code part to ...
10510 (svr4_static_exec_displacement): ... a new function.
10511 (svr4_exec_displacement): New function.
10512 (svr4_relocate_main_executable): Call svr4_exec_displacement. Allocate
10513 new_offsets using alloca now. Remove variable old_chain and changed.
10514 Call objfile_relocate unconditionally now.
10515
eb90ce83
DE
105162010-01-14 Doug Evans <dje@google.com>
10517
10518 * gdbtypes.c (arch_flags_type): Fix comment.
10519 * gdbtypes.h (arch_composite_type): Fix comment.
10520
bdfed3bc
TG
105212009-01-14 Tristan Gingold <gingold@adacore.com>
10522
10523 * machoread.c (macho_add_oso_symfile): Add symfile_flags parameter.
10524 Call xstrdup for abfd->filename. Pass symfile_flags and objfile flags
10525 to symbol_file_add_from_bfd. Add OSO as separate objfile.
10526 (macho_oso_symfile): Add symfile_flags parameter. Pass it to
10527 macho_add_oso_symfile.
10528 (macho_symfile_read): Pass symfile_flags to macho_oso_symfile.
10529
1596ad23
JB
105302010-01-14 Joel Brobecker <brobecker@adacore.com>
10531
10532 Tru64: Dead threads are never deleted.
10533 * dec-thread.c (dec_thread_ptid_is_alive): New function.
10534 (dec_thread_count_gdb_threads): Fix counter increment.
10535 (dec_thread_add_gdb_thread): Fix *listp increment.
10536 (resync_thread_list): Fix bug in deletion of dead threads that
10537 caused all threads to be deleted, instead of just the dead ones.
10538
be759fcf
PM
105392010-01-13 Phil Muldoon <pmuldoon@redhat.com>
10540
10541 PR python/10705
10542
10543 * python/python-internal.h: Add lazy_string_object_type
10544 definition.
10545 (create_lazy_string_object, gdbpy_initialize_lazy_string)
10546 (gdbpy_is_lazystring, gdbpy_extract_lazy_string): Define.
10547 * python/py-value.c (valpy_lazy_string): New function.
10548 (convert_value_from_python): Add lazy string conversion.
10549 * python/py-prettyprint.c (pretty_print_one_value): Check if
10550 return is also a lazy string.
10551 (print_string_repr): Add lazy string printing branch.
10552 (print_children): Likewise.
10553 * python/py-lazy-string.c: New file. Implement lazy strings.
10554 * python/python.c (_initialize_python): Call
10555 gdbpy_initialize_lazy_string.
10556 * varobj.c (value_get_print_value): Add lazy string printing
10557 branch. Account for encoding.
10558 * c-lang.c (c_printstr): Account for new encoding argument. If
10559 encoding is NULL, find encoding suited for type, otherwise use
10560 user encoding.
10561 * language.h (language_defn): Add encoding argument.
10562 (LA_PRINT_STRING): Likewise.
10563 * language.c (unk_lang_printstr): Update to reflect new encoding
10564 argument to language_defn.
10565 * ada-lang.h (ada_printstr): Likewise.
10566 * c-lang.h (c_printstr): Likewise.
10567 * p-lang.h (pascal_printstr);
10568 * f-lang.c (f_printstr): Likewise.
10569 * m2-lang.c (m2_printstr): Likewise.
10570 * objc-lang.c (objc_printstr): Likewise.
10571 * p-lang.c (pascal_printstr): Likewise.
10572 * scm-lang.c (scm_printstr): Likewise.
10573 * c-valprint.c (c_val_print): Update LA_PRINT_STRING call for
10574 encoding argument.
10575 * ada-valprint.c (ada_printstr): Likewise.
10576 * f-valprint.c (f_val_print): Likewise
10577 * m2-valprint.c (m2_val_print): Likewise.
10578 * p-valprint.c (pascal_val_print): Likewise.
10579 * expprint.c (print_subexp_standard): Likewise.
10580 * valprint.c (val_print_string): Likewise.
10581 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-lazy-string.
10582 (SUBDIR_PYTHON_SRCS): Likewise.
10583 (py-lazy-string.o): New rule.
10584
1fe72117 105852010-01-13 Doug Evans <dje@google.com>
8eee9c5a
DE
10586
10587 * mi/mi-main.c (list_available_thread_groups): Avoid "may be used
10588 uninitialized" warning from gcc on local `tree'.
10589
dc146f7c
VP
105902010-01-13 Vladimir Prus <vladimir@codesourcery.com>
10591
10592 Implement core awareness.
10593
10594 * bcache.c (compare_ints): Remove
10595 (print_percentage): Use compare_positive_ints.
10596 * defs.h (compare_positive_ints): Declare.
10597 * linux-nat.h (struct lin_lwp): New field core.
10598 (linux_nat_core_of_thread_1): Declare.
10599 * linux-nat.c (add_lwp): Init the 'core' field.
10600 (linux_nat_wait_1): Record the core.
10601 (linux_nat_core_of_thread_1, linux_nat_core_of_thread): New.
10602 (linux_nat_add_target): Register the above.
10603 * linux-thread-db.c (update_thread_core): New.
10604 (thread_db_find_new_threads): Update core information for
10605 every thread.
10606 * remote.c (struct private_thread_info): New.
10607 (free_private_thread_info, demand_private_info): New.
10608 (PACKET_qXfer_threads, use_osdata_threads): New.
10609 (struct thread_item, threads_parsing_context
10610 (start_thread, end_thread, thread_attributes)
10611 (thread_children, threads_children, threads_elements): New.
10612 (remote_threads_info): Try qXfer:threads before anything
10613 else.
10614 (remote_protocol_packets): Register qXfer:threads.
10615 (remote_open_1): Init use_osdata_threads.
10616 (struct stop_reply): New field 'core'.
10617 (remote_parse_stop_reply): Parse core number.
10618 (process_stop_reply): Record core number.
10619 (remote_xfer_partial): Handle qXfer:threads.
10620 (remote_core_of_thread): New.
10621 (init_remote_ops): Register remote_core_of_thread.
10622 (_initialize_remote): Register qXfer:read.
10623 * target.c (target_core_of_thread): New
10624 * target.h (enum target_object): New value TARGET_OBJECT_THREADS.
10625 (struct target_ops): New field to_core_of_threads.
10626 (target_core_of_thread): Declare.
10627 * gdbthread.h (struct thread_info): New field private_dtor.
10628 * thread.c (print_thread_info): Report the core.
10629 * ui-out.c (MAX_UI_OUT_LEVELS): Increase.
10630 * utils.c (compare_positive_ints): New.
10631 * features/threads.dtd: New.
10632 * mi/mi-interp.c (mi_on_normal_stop): Report the core.
10633 * mi/mi-main.c (struct collect_cores_data, collect_cores)
10634 (do_nothing, free_vector_of_osdata_items)
10635 (splay_tree_int_comparator, free_splay_tree): New.
10636 (print_one_inferior_data): Implemented printing of selected
10637 inferiors. Collect and print cores.
10638 (output_cores): New.
10639 (mi_cmd_list_thread_groups): Support --recurse. Permit specifying
10640 thread groups together with --available.
10641
d30c5336
JK
106422010-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10643
10644 * configure: Regenerate (for _STRUCTURED_PROC).
10645
02893727
JB
106462010-01-12 Joel Brobecker <brobecker@adacore.com>
10647
10648 Delete dead function.
10649 * ada-lang.c (extract_string): Delete. No longer used.
10650
46ed2d6f
JB
106512010-01-12 Joel Brobecker <brobecker@adacore.com>
10652
10653 Fix -Wunused warning in dec-thread.c.
10654 * dec-thread.c (dec_thread_count_gdb_threads)
10655 (dec_thread_add_gdb_thread): Prevent -Wunused warning.
10656
606b8d1a
JB
106572010-01-12 Joel Brobecker <brobecker@adacore.com>
10658
10659 * ada-valprint.c (ada_print_floating): Remove trailing space.
10660
b4ba55a1
JB
106612010-01-12 Joel Brobecker <brobecker@adacore.com>
10662
10663 Add support for DW_AT_GNAT_descriptive_type.
10664 * gdbtypes.h (enum type_specific_kind): New enum.
10665 (struct main_type) [type_specific_field]: New component.
10666 [type_specific]: Add new component "gnat_stuff".
10667 (struct gnat_aux_type): New type.
10668 (INIT_CPLUS_SPECIFIC): Also set TYPE_SPECIFIC_FIELD (type).
10669 (HAVE_CPLUS_STRUCT): Also check TYPE_SPECIFIC_FIELD (type).
10670 (gnat_aux_default, allocate_gnat_aux_type): Add declaration.
10671 (INIT_GNAT_SPECIFIC, ALLOCATE_GNAT_AUX_TYPE, HAVE_GNAT_AUX_INFO)
10672 (TYPE_SPECIFIC_FIELD): New macros.
10673 (TYPE_CPLUS_SPECIFIC): Return cplus_struct_default if the given
10674 type does not hold any cplus-specific data.
10675 (TYPE_RAW_CPLUS_SPECIFIC): New macro.
10676 (TYPE_GNAT_SPECIFIC, TYPE_DESCRIPTIVE_TYPE): New macros.
10677 (TYPE_IS_OPAQUE): Use HAVE_CPLUS_STRUCT to check if type has
10678 cplus-specific data.
10679 * gdbtypes.c (allocate_cplus_struct_type): Minor stylistic rewrite.
10680 Set new component TYPE_SPECIFIC_FIELD (type).
10681 (gnat_aux_default): New constant.
10682 (allocate_gnat_aux_type): New function.
10683 (init_type): Add initialization the type-specific stuff for
10684 TYPE_CODE_FLT and TYPE_CODE_FUNC types.
10685 (print_gnat_stuff): New function.
10686 (recursive_dump_type): Use HAVE_CPLUS_STRUCT to check for cplus-
10687 specific data. Adjust code that prints the contents of the
10688 type-specific union using the TYPE_SPECIFIC_FIELD value.
10689 * dwarf2read.c (dwarf2_attach_fields_to_type): Do not allocate
10690 the type cplus stuff for Ada types.
10691 (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type):
10692 Error out if these routines are called with an Ada type.
10693 (read_structure_type, read_array_type, read_subrange_type):
10694 Add call to set_descriptive_type.
10695 (set_die_type): Initialize the gnat-specific data if necessary.
10696 (need_gnat_info, die_descriptive_type, set_descriptive_type):
10697 New functions.
10698 * ada-lang.c (decode_constrained_packed_array_type): Use
10699 decode_constrained_packed_array_type instead of doing a standard
10700 lookup to locate a parallel type.
10701 (find_parallel_type_by_descriptive_type): New function.
10702 (ada_find_parallel_type_with_name): New function.
10703 (ada_find_parallel_type): Reimplement using
10704 ada_find_parallel_type_with_name.
10705 * ada-valprint.c (print_field_values): Use HAVE_CPLUS_STRUCT
10706 to check if type has a cplus stuff.
10707 * linespec.c (total_number_of_methods): Likewise.
10708 * mdebugread.c (new_type): Likewise.
10709
b0f02ee9
JK
107102010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10711
10712 * NEWS: Document the 0b binary number prefix parsing.
10713
b260e109
JK
107142010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10715
10716 * objfiles.c (objfile_relocate1): Change the return type to int.
10717 Describe the new return value. Return non-zero if data changed.
10718 (objfile_relocate): New variable changed. Set it. Call
10719 breakpoint_re_set depending on CHANGED.
10720
b5cfddf5
JK
107212010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10722
10723 Implement binary numbers parsing.
10724 * c-exp.y (parse_number): New case 'b' and 'B'.
10725
e0ae4240
JK
107262010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10727 Tristan Gingold <gingold@adacore.com>
10728
10729 * solib.c (info_sharedlibrary_command): Replace
10730 objfile_has_partial_symbols and objfile_has_full_symbols calls by
10731 objfile_has_symbols.
10732
6e0e5977
JB
107332010-01-10 Joel Brobecker <brobecker@adacore.com>
10734
10735 * NEWS: Document the improvements made to the mips-irix port.
10736
7348c5e1
JB
107372010-01-09 Joel Brobecker <brobecker@adacore.com>
10738
10739 Fix the documentation of valprint.c:value_print.
10740 * valprint.c (value_print): Update the function description to
10741 mention that the syntax of the output follows the current_language,
10742 not necessarily C.
10743
567995e1
JK
107442010-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10745
10746 Fix displacement of separate debug info files.
10747 * objfiles.c (objfile_relocate): Rename to ...
10748 (objfile_relocate1): ... here and make it static. Extend the comment.
10749 (objfile_relocate): New function.
10750 * solib-spu.c (spu_relocate_main_executable): Explicitly check if
10751 SYMFILE_OBJFILE is NULL. Remove variables objfile and old_chain.
10752 Remove following of SEPARATE_DEBUG_OBJFILE. new_offsets is now
10753 allocated using alloca.
10754 * symfile.c (copy_section_addr_info): Remove.
10755 (build_section_addr_info_from_objfile): Make it global. New variables
10756 addr_bit and mask, use them.
10757 * symfile.h (build_section_addr_info_from_objfile): New prototype.
10758 (copy_section_addr_info): Remove.
10759
6d8eadbd
JB
107602010-01-09 Joel Brobecker <brobecker@adacore.com>
10761
10762 Signal unwinder for mips-irix N32.
10763 * mips-irix-tdep.c: #include mips-tdep.h, trad-frame.h, and
10764 tramp-frame.h.
10765 (SIGTRAMP_FRAME_SIZE, SIGCONTEXT_PC_OFF, SIGCONTEXT_REGS_OFF)
10766 (SIGCONTEXT_FPREGS_OFF, SIGCONTEXT_FPCSR_OFF, SIGCONTEXT_HI_OFF)
8d95cc3b
PA
10767 (SIGCONTEXT_LO_OFF): New macros.
10768 (mips_irix_n32_tramp_frame_init): New function.
6d8eadbd
JB
10769 (mips_irix_n32_tramp_frame): New static constant.
10770 (mips_irix_init_abi): Prepend the mips_irix_n32_tramp_frame unwinder.
10771
27087a3d
JB
107722010-01-09 Joel Brobecker <brobecker@adacore.com>
10773
10774 Breakpoint in shared library does not work on mips-irix.
10775 * procfs.c: #include "observer.h".
10776 (procfs_inferior_created): New function, moving here the code
10777 which unsets the syssgi syscall-exit notifications.
10778 (procfs_create_inferior): Remove the code which unsets the syssgi
10779 syscall-exit notifications. It is too early to do this here.
10780 (_initialize_procfs): Attach the procfs_inferior_created observer.
10781
f08877ba
JB
107822010-01-09 Joel Brobecker <brobecker@adacore.com>
10783
10784 Wrong return convention for arrays (mips-irix).
10785 * mips-tdep.c (mips_n32n64_return_value): Arrays whose size is
10786 128 bits or smaller are returned the same way as structs
10787 and unions of the the same size.
10788
e4b97d48
JB
107892010-01-09 Joel Brobecker <brobecker@adacore.com>
10790
10791 Cannot set the PC on mips-irix.
10792 * irix5-nat.c (fill_gregset): Check regno against the raw PC
10793 register number, no the cooked one.
10794
11377e68
JB
107952010-01-09 Joel Brobecker <brobecker@adacore.com>
10796
10797 Error while loading core file on mips-irix.
10798 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing
10799 if debugging from a core file.
10800
b2391021
JB
108012010-01-09 Joel Brobecker <brobecker@adacore.com>
10802
10803 GDB hangs when attaching to process on mips-irix.
10804 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing if
10805 attaching to a process.
10806
f2ec0ecf
JB
108072010-01-09 Joel Brobecker <brobecker@adacore.com>
10808
10809 Use the correct breakpoint instruction on mips-irix.
10810 * mips-tdep.c (mips_breakpoint_from_pc): Add new static variable
10811 containing the correct breakpoint instruction to use on mips-irix.
10812 Use it when the osabi is GDB_OSABI_IRIX.
10813
3c95f01c
JB
108142010-01-09 Joel Brobecker <brobecker@adacore.com>
10815
10816 -Wunused warning in procfs.c (mips-irix only).
10817 * procfs.c (gdb_praddset, gdb_prdelset): New macros. Use them
10818 throughout instead of using praddset and prdelset respectively.
10819
4b7703ad
JB
108202010-01-09 Joel Brobecker <brobecker@adacore.com>
10821
10822 GDB crash while stepping into function.
10823 * infrun.c (handle_inferior_event): Refetch the current frame
10824 after handling what.main_action, in case that pointer became
10825 dangling.
10826
12c89474
JB
108272010-01-09 Joel Brobecker <brobecker@adacore.com>
10828
10829 Fix build failure of solaris-hosted cross debuggers.
10830 * ada-valprint.c, parse.c: Include defs.h before including ctype.h.
10831
1a3fd262 108322010-01-09 Daniel Gutson <dgutson@codesourcery.com>
4c490650
JB
10833
10834 Fix build failure on sparc-solaris.
10835 * procfs.c: (procfs_do_thread_registers) Use elfcore_write_lwpstatus.
10836
75242ef4
JK
108372010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10838
10839 Move some symfile code into subroutines.
10840 * symfile.h (relative_addr_info_to_section_offsets)
10841 (addr_info_make_relative): New prototypes.
10842 * symfile.c (default_symfile_offsets): Move a part to ...
10843 (relative_addr_info_to_section_offsets): ... this new function.
10844 (default_symfile_offsets): Call it.
10845 (syms_from_objfile <!mainline && addrs && addrs->other[0].name>): Move
10846 this part to ...
10847 (addr_info_make_relative): ... this new function.
10848
268a4a75
JK
108492010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10850
10851 Add from_tty to solib_create_inferior_hook.
10852 * infcmd.c (post_create_inferior): Move solib_add after
10853 solib_create_inferior_hook. Pass from_tty to
10854 solib_create_inferior_hook. Call solib_add and SOLIB_ADD with
10855 0 from_tty and comment why.
10856 * infrun.c (follow_exec): Pass from_tty solib_create_inferior_hook as 0.
10857 * linux-nat.c (linux_child_follow_fork): Likewise.
10858 * nto-procfs.c (procfs_post_attach, procfs_create_inferior): Likewise.
10859 * solib-darwin.c (darwin_solib_create_inferior_hook): New parameter
10860 from_tty.
10861 * solib-frv.c (frv_solib_create_inferior_hook): Likewise.
10862 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
10863 * solib-null.c (null_solib_create_inferior_hook): Likewise.
10864 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
10865 * solib-pa64.c (pa64_solib_create_inferior_hook): Likewise.
10866 * solib-som.c (som_solib_create_inferior_hook): Likewise.
10867 * solib-spu.c (spu_solib_create_inferior_hook): New parameter from_tty.
10868 Pass it to svr4_so_ops.solib_create_inferior_hook.
10869 * solib-sunos.c (sunos_solib_create_inferior_hook): New parameter
10870 from_tty.
10871 * solib-svr4.c (enable_break): New parameter from_tty. Pass it to
10872 solib_add.
10873 (svr4_solib_create_inferior_hook): New parameter from_tty. Pass it to
10874 enable_break.
10875 * solib-target.c (solib_target_solib_create_inferior_hook): New
10876 parameter from_tty.
10877 * solib.c (solib_create_inferior_hook): New parameter from_tty. Pass
10878 it to ops->solib_create_inferior_hook.
10879 (reload_shared_libraries): Pass from_tty to solib_create_inferior_hook.
10880 Move solib_add after solib_create_inferior_hook, call it now with
10881 from_tty as 0. New comment there.
10882 * solib.h (solib_create_inferior_hook): New parameter from_tty.
10883 * solist.h (struct target_so_ops <solib_create_inferior_hook>):
10884 Likewise.
10885
cf00dfa7
VP
108862010-01-08 Vladimir Prus <vladimir@codesourcery.com>
10887
10888 Fix multiexec race.
10889 * infrun.c (handle_inferior_event): Use get_thread_regcache
10890 with events ptid, not get_current_regcache.
10891
f91e5ac3
JB
108922009-01-08 Joel Brobecker <brobecker@adacore.com>
10893
10894 GDB crash with empty executable name (MinGW).
10895 * source.c (openp): Add assert that parameter string is not NULL.
10896 if parameter string is an empty string, then return with a failure
10897 immediately.
10898
92b9ce5b
JB
108992009-01-08 Joel Brobecker <brobecker@adacore.com>
10900
10901 Get rid of support for VAX Floats.
10902 * ada-lang.h (ada_is_vax_floating_type, ada_vax_float_type_suffix)
10903 (ada_vax_float_print_function): Delete.
10904 * ada-lang.c (ada_is_vax_floating_type, ada_vax_float_type_suffix)
10905 (ada_vax_float_print_function): Delete.
10906 * ada-typeprint.c (print_vax_floating_point_type): Delete.
10907 (ada_print_type): Remove support for VAX floats.
10908 * ada-valprint.c (ada_val_print_1): Remove support for VAX floats.
10909
268a4a75 109102010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
d24d8548
JK
10911
10912 * stabsread.c (read_args): Handle zero arguments.
10913
f0f20949
JB
109142009-01-08 Joel Brobecker <brobecker@adacore.com>
10915
10916 Cannot find in-tree libiconv.a after reconfigure.
10917 * acinclude.m4 (AM_ICONV): If we find an in-tree libiconv.a
10918 that we can use, then cache the path to this archive.
10919 * configure: Regenerate.
10920
6b6218c5
SS
109212010-01-07 Stan Shebs <stan@codesourcery.com>
10922
35b1e5cc
SS
10923 Make tracepoint operations go through target vector.
10924 * target.h (enum trace_find_type): New enum.
10925 (struct target_ops): New fields to_trace_init,
10926 to_download_tracepoint, to_download_trace_state_variable,
10927 to_trace_set_readonly_regions, to_trace_start, to_get_trace_status,
10928 to_trace_stop, to_trace_find, to_get_trace_state_variable_value,
10929 to_set_disconnected_tracing.
10930 (target_trace_init): New macro.
10931 (target_download_tracepoint): New macro.
10932 (target_download_trace_state_variable): New macro.
10933 (target_trace_start): New macro.
10934 (target_trace_set_readonly_regions): New macro.
10935 (target_get_trace_status): New macro.
10936 (target_trace_stop): New macro.
10937 (target_trace_find): New macro.
10938 (target_get_trace_state_variable_value): New macro.
10939 (target_set_disconnected_tracing): New macro.
10940 * target.c (update_current_target): Inherit and set defaults for
10941 tracepoint operations.
10942 * tracepoint.c (default_collect): Make globally visible.
10943 (target_is_remote): Remove, along with all calls.
10944 (tvariables_info): Call target_get_trace_state_variable_value.
10945 (remote_set_transparent_ranges): Remove.
10946 (trace_start_command): Call target_trace_init,
10947 target_download_tracepoint, etc.
10948 (download_tracepoint): Remove.
10949 (trace_stop_command): Simplify.
10950 (stop_tracing): Call target_trace_stop.
10951 (get_trace_status): Call target_get_trace_status.
10952 (trace_status_command): Add case for targets that cannot trace.
10953 (finish_tfind_command): Change to take numerical arguments, call
10954 target_trace_find.
10955 (trace_find_command): Update call to finish_tfind_command.
10956 (trace_find_pc_command): Ditto.
10957 (trace_find_tracepoint_command): Ditto.
10958 (trace_find_line_command): Ditto.
10959 (trace_find_range_command): Ditto.
10960 (trace_find_outside_command): Ditto.
10961 (set_disconnected_tracing_value): Call
10962 target_set_disconnected_tracing.
10963 * remote.c: Add protocol encoding bits from tracepoint.c.
10964 (trace_error): Move from tracepoint.c.
10965 (remote_get_noisy_reply): Ditto.
10966 (free_actions_list_cleanup_wrapper): Ditto.
10967 (free_actions_list): Ditto.
10968 (remote_trace_init): New function.
10969 (remote_download_tracepoint): New function.
10970 (remote_download_trace_state_variable): New function.
10971 (remote_trace_set_readonly_regions): New function.
10972 (remote_trace_start): New function.
10973 (remote_get_trace_status): New function.
10974 (remote_trace_stop): New function.
10975 (remote_trace_find): New function.
10976 (remote_download_trace_state_variable): New function.
10977 (remote_set_disconnected_tracing): New function.
10978 (init_remote_ops): Add tracepoint operations.
10979
6b6218c5
SS
10980 * tracepoint.c (trace_dump_command): Don't decr_pc_after_break.
10981
089b4803
TG
109822010-01-07 Tristan Gingold <gingold@adacore.com>
10983
10984 * symfile.c (build_section_addr_info_from_objfile): New function.
10985 (symbol_file_add_separate): Don't use offsets from objfile but
10986 built an addr info.
10987
d5551862
SS
109882010-01-06 Stan Shebs <stan@codesourcery.com>
10989
10990 Support disconnected tracing.
10991 * infcmd.c (detach_command): Ask whether to stop tracing.
10992 * cli/cli-cmds.c (quit_command): Ditto.
10993 * breakpoint.h (struct breakpoint): New field number_on_target.
10994 * breakpoint.c (create_tracepoint_from_upload): New function.
10995 (get_tracepoint_by_number_on_target): New function.
10996 * remote.c (struct remote): New field disconnected_tracing.
10997 (remote_disconnected_tracing_feature): New function.
10998 (remote_protocol_features): Add DisconnectedTracing.
10999 (struct uploaded_tp): New struct.
11000 (uploaded_tps): New global.
11001 (get_uploaded_tp): New function.
11002 (find_matching_tracepoint): New function.
11003 (remote_get_tracing_state): New function.
11004 (remote_start_remote): Call it.
11005 * tracepoint.c (disconnected_tracing): New global.
11006 (trace_start_command): Initialize number_on_target.
11007 (stop_tracing): New function, split out from...
11008 (trace_stop_command): Call stop_tracing.
11009 (get_trace_status): New function, split out from...
11010 (trace_status_command): Call get_trace_status, add info on
11011 disconnection behavior.
11012 (disconnect_or_stop_tracing): New function.
11013 (finish_tfind_command): Translate from number on target.
11014 (trace_find_tracepoint_command): Translate to number on target.
11015 (send_disconnected_tracing_value): New function.
11016 (set_disconnected_tracing): New function.
11017 (_initialize_tracepoint): Add disconnected-tracing variable.
11018 * NEWS: Mention disconnected tracing.
11019
15d123c9
TG
110202010-01-06 Tristan Gingold <gingold@adacore.com>
11021
11022 * symtab.c (lookup_global_symbol_from_objfile): Rename objfile
11023 parameter to main_objfile. Iterate on all separate debug objfiles.
11024 * symfile.h (symbol_file_add_separate)
11025 (find_separate_debug_file_by_debuglink): Remove parameter names.
11026 * symfile.c (symbol_file_add_separate): Use add_separate_objfile.
11027 (reread_symbols): Use free_objfile_separate_debug.
11028 * objfiles.h (struct objfile): Add separate_debug_objfile_link.
11029 Adjust comment.
11030 (objfile_separate_debug_iterate, add_separate_debug_objfile)
11031 (free_objfile_separate_debug): New prototypes.
11032 * objfiles.c (objfile_separate_debug_iterate): New function.
11033 (add_separate_debug_objfile, free_objfile_separate_debug): New
11034 functions.
11035 (free_objfile): Use free_objfile_separate_debug. Adjust for
11036 multiple separate debug objfile.
11037 (objfile_has_symbols): Adjust comment. Iterate on all separate
11038 debug objfiles.
11039 * minsyms.c (lookup_minimal_symbol): Adjust for multiple separate
11040 debug objfile.
11041 (lookup_minimal_symbol_text): Ditto.
11042 (lookup_minimal_symbol_by_pc_name): Ditto.
11043 (lookup_minimal_symbol_solib_trampoline): Ditto.
11044 (lookup_minimal_symbol_by_pc_section_1): Iterate on all separate
11045 debug objfiles.
11046
7a697b8d
SS
110472010-01-05 Stan Shebs <stan@codesourcery.com>
11048
11049 Add fast tracepoints.
11050 * arch-utils.h (default_fast_tracepoint_valid_at): Declare.
11051 * arch-utils.c (default_fast_tracepoint_valid_at): New function.
11052 * breakpoint.h (enum bptype): Add bp_fast_tracepoint.
11053 * breakpoint.c (tracepoint_type): New function.
11054 (ALL_TRACEPOINTS): Use it.
11055 (should_be_inserted): Ditto.
11056 (bpstat_check_location): Ditto.
11057 (print_one_breakpoint_location): Ditto.
11058 (user_settable_breakpoint): Ditto.
11059 (set_breakpoint_location_function): Ditto.
11060 (disable_breakpoints_in_shlibs): Ditto.
11061 (delete_trace_command): Ditto.
11062 (print_it_typical): Add bp_fast_tracepoint case.
11063 (bpstat_what): Ditto.
11064 (print_one_breakpoint_location): Ditto.
11065 (allocate_bp_location): Ditto.
11066 (mention): Ditto.
11067 (breakpoint_re_set_one): Ditto.
11068 (disable_command): Ditto.
11069 (enable_command): Ditto.
11070 (check_fast_tracepoint_sals): New function.
11071 (break_command_really): Call it.
11072 (ftrace_command): New function.
11073 (_initialize_breakpoint): Add ftrace command.
11074 * gdbarch.sh (fast_tracepoint_valid_at): New.
11075 * gdbarch.h, gdbarch.c: Regenerate.
11076 * i386-tdep.c (i386_fast_tracepoint_valid_at): New function.
11077 (i386_gdbarch_init): Use it.
11078 * remote.c (struct remote_state): New field fast_tracepoints.
11079 (PACKET_FastTracepoints): New packet config type.
11080 (remote_fast_tracepoint_feature): New function.
11081 (remote_protocol_features): Add FastTracepoints.
11082 (remote_supports_fast_tracepoints): New function.
11083 (_initialize_remote): Add FastTracepoints.
11084 * tracepoint.c (download_tracepoint): Add fast tracepoint option.
11085 * NEWS: Mention fast tracepoints.
11086
737a160e
JB
110872010-01-06 Joel Brobecker <brobecker@adacore.com>
11088
11089 * gdb-gdb.py: New file.
11090
ce6cca6d
MS
110912010-01-05 Michael Snyder <msnyder@vmware.com>
11092
11093 * infrun.c (handle_inferior_event): Fix typo in comment.
11094
0d15807d
JK
110952010-01-05 Jan Kratochvil <jan.kratochvil@redhat.com>
11096
11097 * symfile.c (syms_from_objfile): Remove the !MAINLINE conditional.
11098
7803799a
UW
110992010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
11100
c8d5aac9 11101 * features/Makefile (WHICH): Add s390-linux32, s390-linux64,
7803799a
UW
11102 and s390x-linux64.
11103 (s390-linux32-expedite): Define.
11104 (s390-linux64-expedite): Define.
11105 (s390x-linux64-expedite): Define.
11106 * features/s390-acr.xml: New file.
11107 * features/s390-fpr.xml: New file.
11108 * features/s390-core32.xml: New file.
11109 * features/s390-core64.xml: New file.
11110 * features/s390x-core64.xml: New file.
11111 * features/s390-linux32.xml: New file.
11112 * features/s390-linux64.xml: New file.
11113 * features/s390x-linux64.xml: New file.
11114 * features/s390-linux32.c: New generated file.
11115 * features/s390-linux64.c: New generated file.
11116 * features/s390x-linux64.c: New generated file.
11117
11118 * regformats/s390-linux32.dat: New generated file.
11119 * regformats/s390-linux64.dat: New generated file.
11120 * regformats/s390x-linux64.dat: New generated file.
11121 * regformats/reg-s390.dat: Remove.
11122 * regformats/reg-s390x.dat: Remove.
11123
11124 * s390-nat.c: Include "auxv.h" and <elf.h>.
11125 (HWCAP_S390_HIGH_GPRS): Define if undefined.
11126 (s390_target_wordsize): New function.
11127 (s390_auxv_parse): Likewise.
11128 (s390_get_hwcap): Likewise.
11129 (s390_read_description): Likewise.
11130 (_initialize_s390_nat): Install s390_auxv_parse and
11131 s390_read_description.
11132
11133 * s390-tdep.c: Include "features/s390-linux32.c",
11134 "features/s390-linux64.c", and "features/s390x-linux64.c".
11135 (struct gdbarch_tdep): Add gpr_full_regnum, pc_regnum, and cc_regnum.
11136 (s390_register_call_saved): New function.
11137 (s390_register_name): Remove.
11138 (s390_register_type): Remove.
11139 (s390_dwarf_regmap): Add lower half GPR pseudo DWARF CFI regnums.
11140 (s390_dwarf_reg_to_regnum): Remap GPR regnums to full GPRs.
11141 (s390_adjust_frame_regnum): Remap GPR regnums to lower halves for CFI.
11142 (s390_pseudo_register_name): New function.
11143 (s390_pseudo_register_type): New function.
11144 (s390_pseudo_register_read): Handle both 32-bit and 64-bit cases.
11145 Handle full GPR pesudos and varying pseudo register numbers.
11146 (s390_pseudo_register_write): Likewise
11147 (s390x_pseudo_register_read): Remove.
11148 (s390x_pseudo_register_write): Likewise.
11149 (s390_register_group): Remove.
11150 (s390_pseudo_register_group): New function.
11151 (s390_regmap_gregset): Add GPR upper halves.
11152 (s390x_regmap_gregset): Likewise.
11153 (s390_regmap_fpregset): Likewise.
11154 (s390_regmap_upper): New global variable.
11155 (s390_upper_regset): New global variable.
11156 (s390_upper_regset_sections): New global variable.
11157 (s390_regset_from_core_section): Handle GPR upper halves.
11158 (s390_core_read_description): New function.
11159 (s390_prologue_frame_unwind_cache): Set up ABI call-saved/clobbered
11160 register information. Handle varying pseudo register numbers.
11161 (s390_backchain_frame_unwind_cache): Likewise.
11162 (s390_frame_prev_register): Unwind full GPRs to show lower halves.
11163 (s390_stub_frame_unwind_cache): Handle varying pseudo register numbers.
11164 (s390_sigtramp_frame_unwind_cache): Unwind PSWM and PSWA as well as
11165 PC and CC pseudos. Unwind upper halves and full GPRs as appropriate.
11166 Handle varying pseudo register numbers.
11167 (s390_unwind_pc): Handle varying pseudo register numbers.
11168 (s390_dwarf2_prev_register): New function.
11169 (s390_dwarf2_frame_init_reg): Set up ABI call-saved/clobbered
11170 register information. Handle varying pseudo register numbers.
11171 Install s390_dwarf2_prev_register to unwind full GPRs.
11172 (s390_gdbarch_init): Handle target descriptions. Assign varying
11173 pseudo register numbers. Install s390_adjust_frame_regnum.
11174 (_initialize_s390_tdep): Initialize target descriptions.
11175
11176 * s390-tdep.h (S390_R0_UPPER_REGNUM .. S390_R15_UPPER_REGNUM): Define.
11177 (S390_NUM_REGS): Redefine to include upper half registers.
11178 (S390_PC_REGNUM, S390_CC_REGNUM): Remove.
11179 (S390_NUM_PSEUDO_REGS, S390_NUM_TOTAL_REGS): Likewise.
11180 (tdesc_s390_linux32): Add declaration.
11181 (tdesc_s390_linux64): Likewise.
11182 (tdesc_s390x_linux64): Likewise.
11183
1b1818e4
UW
111842010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
11185
11186 * regset.h (struct core_regset_section): Add HUMAN_NAME.
11187 * i386-linux-tdep.c (i386_linux_regset_sections): Fill in HUMAN_NAME.
11188 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
11189 (ppc_linux_vmx_regset_sections): Likewise.
11190 (ppc_linux_fp_regset_sections): Likewise.
11191
11192 * corelow.c (get_core_register_section): Constify arguments.
11193 (get_core_registers): Use gdbarch_core_regset_sections instead
11194 of hard-coded platform-specific register section names.
11195
dcbf108f
UW
111962010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
11197
11198 * dwarf2loc.c (read_pieced_value): If a piece occupies part of
b3f41522 11199 a register, assume the least-significant part is used.
dcbf108f
UW
11200 (write_pieced_value): Likewise.
11201
704e9165
UW
112022010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
11203
11204 * printcmd.c: Include "arch-utils.h".
11205 (do_one_display): Re-parse expression if current architecture changed.
11206
c54eabfa
JK
112072010-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11208 Joel Brobecker <brobecker@adacore.com>
11209
11210 * gdbtypes.c (check_typedef): New comment on type length.
11211 * value.c (allocate_value_lazy): Remove the unused atype variable. New
11212 comment on type length.
11213 (value_primitive_field): Keep the original TYPE value, new comment.
11214
50cb2941
JK
112152010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
11216
11217 * cli/cli-script.c (process_next_line): Rename p1 as p_end and p2 as
11218 p_start. Change != comparisons to > and < comparisons.
11219
be66db07
JK
112202010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
11221
11222 * cli/cli-script.c (process_next_line): Check P2 overrun.
11223
abd775ce
JB
112242009-01-01 Joel Brobecker <brobecker@adacore.com>
11225
11226 Update the copyright hearder to add year 2010 for most GDB files.
11227
6479260d
JB
112282009-01-01 Joel Brobecker <brobecker@adacore.com>
11229
11230 Fix build failure in inf-ptrace.c.
11231 * inf-ptrace.c (inf_ptrace_follow_fork): Fix typo.
11232
4a70f654
JB
112332010-01-01 Joel Brobecker <brobecker@adacore.com>
11234
11235 * top.c (print_gdb_version): Update copyright year.
11236
595939de 112372010-01-01, 10 Joel Brobecker <brobecker@adacore.com>
b9ee2233
JB
11238
11239 Fix break *FUN'address thread NUM.
11240 * ada-lex.l (task): Expand rule to also match the thread keyword.
11241
70575d34
JB
112422010-01-01 Joel Brobecker <brobecker@adacore.com>
11243
11244 Fix break *FUN'address task NUM.
11245 * ada-lex.l (task): New rule.
11246 * ada-lang.c (valid_task_id): Make sure the Ada task list has
11247 been built before using it.
11248
e1e4d4a4 11249For older changes see ChangeLog-2009.
c906108c
SS
11250\f
11251Local Variables:
11252mode: change-log
11253left-margin: 8
11254fill-column: 74
11255version-control: never
57da7796 11256coding: utf-8
c906108c 11257End:
This page took 3.900749 seconds and 4 git commands to generate.