* rx.c (lsb_count): New.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
84f4c1fe
PM
12010-11-11 Phil Muldoon <pmuldoon@redhat.com>
2
3 * python/py-breakpoint.c (BPPY_REQUIRE_VALID): Check if bp is
4 NULL.
5 (BPPY_SET_REQUIRE_VALID): Ditto.
6 (bpnum_is_valid): Delete function.
7 (bppy_get_visibility): New function.
8 (bppy_new): Parse for, and validate internal keyword. Pass
9 internal keyword to breakpoint or watchpoint functions.
10 (build_bp_list): New function.
11 (gdbpy_breakpoints): Rewrite. Use build_bp_list and
12 iterate_over_breakpoints.
13 (gdbpy_breakpoint_created): Rewrite. Do not store breakpoints in a
14 look-aside vector.
15 (gdbpy_breakpoint_deleted): Rewrite, defer breakpoint management
16 to internal breakpoint chain.
17
18 * breakpoint.c (set_breakpoint_number): New function.
19 (breakpoint_1): Check if breakpoint number is more than zero.
20 (set_raw_breakpoint_without_location): Set py_bp_object to NULL.
21 (create_breakpoint_sal): Take a new parameter called internal.
22 Call set_breakpoint_number with internal parameter. Do not
23 mention internal breakpoints. All callers updated.
24 (create_breakpoint): Ditto.
25 (create_breakpoints_sal): Ditto.
26 (watch_command_1): Ditto.
27 (watch_command_wrapper): Take a new parameter called internal.
28 All callers updated.
29 (rwatch_command_wrapper): Ditto.
30 (awatch_command_wrapper): Ditto.
31 (save_breakpoints): Update breakpoint save condition check.
32 (iterate_over_breakpoints): New function.
33 * breakpoint.h: Add conditional python includes. Add py_bp_object
34 and comment to struct breakpoint. Update all callers.
35 * defs.h: Add PyObject definition for GDB builds without Python.
36
4dfea560
DE
372010-11-10 Doug Evans <dje@google.com>
38
f61a2da7
DE
39 * python/lib/gdb/command/pretty_printers.py
40 (do_enable_pretty_printer_1): Handle printer.subprinters is None.
41
4dfea560
DE
42 * value.c (set_value_enclosing_type): Renamed from
43 value_change_enclosing_type. All callers updated.
44 * value.h (set_value_enclosing_type): Update.
45 * valops.c (value_full_object): Always return a copy if we need to
46 make changes to the input value.
47
a1442452
PA
482010-11-09 Pedro Alves <pedro@codesourcery.com>
49
50 * breakpoint.c (watch_command_1): Get a pointer of the lazy
51 version of the expression's value, even if reading the value from
52 memory fails. When creating a -location watchpoint, get the
53 value's address from the lazy value pointer.
54
803b5f95
JK
552010-11-07 Jan Kratochvil <jan.kratochvil@redhat.com>
56
57 * infrun.c (restore_inferior_thread_state): Use
58 discard_inferior_thread_state to free the data.
59 (discard_inferior_thread_state): xfree also siginfo_data.
60
99e7ae30
DE
612010-11-05 Doug Evans <dje@google.com>
62
63 Make gdb.parameter("directories") work.
64 New command "set directories".
65 * NEWS: Document them.
66 * source.c (set_directories_command): New function.
67 (show_directories_1): Renamed from show_directories.
68 All callers updated.
69 (show_directories_command): New function.
70 (_initialize_source): Install "directories" as a set/show
71 variable instead of just a show command.
72
f4b8a18d
KW
732010-11-05 Ken Werner <ken.werner@de.ibm.com>
74
75 * NEWS: Mention OpenCL C language support.
76 * Makefile.in (SFILES): Add opencl-lang.c.
77 (COMMON_OBS): Add opencl-lang.o.
78 * opencl-lang.c: New File
79 * defs.h (enum language): Add language_opencl.
80 * dwarf2read.c (read_file_scope): Handle DW_AT_producer for the
81 IBM XL C OpenCL compiler.
82 * c-lang.h: Include "parser-defs.h".
83 (evaluate_subexp_c): Declare.
84 * c-lang.c (evaluate_subexp_c): Remove the static qualifier.
85 (c_op_print_tab): Add declaration.
86 * eval.c (binop_promote): Handle language_opencl.
87 * c-exp.y: Lookup the primitive types instead of referring to the
88 builtins.
89
075ff26d
JK
902010-11-05 Jan Kratochvil <jan.kratochvil@redhat.com>
91
92 Fix configure --enable-plugins --without-python.
93 * configure.ac (for ELF support in BFD) <"$plugins" = "yes">: New.
94 * configure: Regenerate.
95
14ad3217
JK
962010-11-05 Jan Kratochvil <jan.kratochvil@redhat.com>
97
98 * solib.c (solib_read_symbols): Call exception_fprintf even without
99 FROM_TTY. Print also so->so_name.
100
a9d5ef47
SW
1012010-11-04 Sami Wagiaalla <swagiaal@redhat.com>
102
103 * gdbtypes.h (struct rank): Created subrank.
104 * gdbtypes.c: Initialized subrank for all
105 'BADNESS' constants.
106 (distance_to_ancestor): New function.
107 (is_ancestor): Use distance_to_ancestor.
108 (is_public_ancestor): Ditto.
109 (sum_ranks): Handle subrank.
110 (compare_ranks): Ditto.
111 (rank_one_type): Subrank base conversions.
112
6403aeea
SW
1132010-11-04 Sami Wagiaalla <swagiaal@redhat.com>
114
115 * gdbtypes.h: Create struct rank.
116 Convert all 'BADNESS' macros to const struct rank declarations.
117 (sum_ranks): New function.
118 (compare_ranks): New function.
119 * valops.c (find_oload_champ): Updated.
120 (classify_oload_match): Use compare_ranks.
121 Improved comments.
122 (compare_parameters): Use compare_ranks.
123 * gdbtypes.c: Initialize 'BADNESS' constants.
124 (sum_ranks): New function.
125 (compare_ranks): New function.
126 (compare_badness): Use compare_ranks.
127 (rank_function): Use global constants instead of literals.
128 (rank_one_type): Ditto.
129 Return struct rank.
130 Use sum_ranks.
131
23fa7f66
DE
1322010-11-04 Doug Evans <dje@google.com>
133
134 * python/py-prettyprint.c (find_pretty_printer_from_gdb): Fix comment.
135 (find_pretty_printer): Fix comments.
136
608bcef2
HZ
1372010-11-04 Hui Zhu <teawater@gmail.com>
138
139 * tracepoint.c (remote_trace_set_readonly_regions): Change lma to vma.
140
9addb3b9
JB
1412010-11-03 Joel Brobecker <brobecker@adacore.com>
142
143 * ada-valprint.c (ada_val_print_array): Move variables `eltlen'
144 and `len' declaration and computation inside block where they
145 are being used.
146
75be741b
JB
1472010-11-03 Joel Brobecker <brobecker@adacore.com>
148
149 * valprint.c (val_print_array_elements): Put back handling of
150 empty arrays.
151
dbc98a8b
KW
1522010-11-03 Ken Werner <ken.werner@de.ibm.com>
153
154 * dwarf2read.c (read_array_type): Read the DW_AT_byte_size from the
155 DIE and set the length of the type.
156 * gdbtypes.h (get_array_bounds): Move here from valprint.h.
157 * gdbtypes.c (get_array_bounds): Move here from valprint.c and
158 return 0 if the corresponding bounds of the type are undefined.
159 * valprint.h (get_array_bounds): Move declaration to gdbtypes.h.
160 * valprint.c (get_array_bounds): Move implementation to gdbtypes.c.
161 (val_print_array_elements): Use get_array_bounds to compute the number
162 of array elements instead of dividing the length of the array by the
163 length of the element types.
164 * valarith.c (vector_binop): Likewise.
165 * valops.c (value_cast): Likewise.
166 * c-valprint.c (c_val_print): Likewise.
167 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
168
120bd360
KW
1692010-11-03 Ken Werner <ken.werner@de.ibm.com>
170
171 * valarith.c (value_pos, value_neg, value_complement): Handle
172 vector types.
173 * valops.c (value_one): Likewise.
174
c37f7098
KW
1752010-11-03 Ken Werner <ken.werner@de.ibm.com>
176
177 * value.h (value_non_lval): Declare.
178 * value.c (value_non_lval): New function.
179 * eval.c (evaluate_subexp_standard) <UNOP_POSTINCREMENT,
180 UNOP_POSTDECREMENT>: Call value_non_lval to ensure to return a
181 non-lvalue.
182
7b51bc51
DE
1832010-11-02 Doug Evans <dje@google.com>
184
185 New python module gdb.printing, and new commands info pretty-printer,
186 enable pretty-printer, disable pretty-printer.
187 * NEWS: Mention them.
188 * data-directory/Makefile.in (PYTHON_FILES): Add gdb/printing.py,
189 gdb/command/__init__.py, gdb/command/pretty_printers.py.
190 * python/lib/gdb/__init__.py: Install pretty-printer commands.
191 * python/lib/gdb/printing.py: New file.
192 * python/lib/gdb/command/__init__.py: New file.
193 * python/lib/gdb/command/pretty_printers.py: New file.
194
50c97f38
TT
1952010-11-02 Tom Tromey <tromey@redhat.com>
196
197 * NEWS: Mention Guile removal.
198 * defs.h (enum language) <language_scm>: Remove.
199 * Makefile.in (SFILES): Remove scm-exp.c, scm-lang.c,
200 scm-valprint.c.
201 (HFILES_NO_SRCDIR): Remove scm-lang.h, scm-tags.h.
202 (COMMON_OBS): Remove scm-exp.o, scm-lang.o, scm-valprint.o.
203 * scm-exp.c, scm-lang.c, scm-valprint.c, scm-lang.h, scm-tags.h:
204 Remove.
205
9dea9163
DE
2062010-11-02 Doug Evans <dje@google.com>
207
208 * top.c: #include "python/python.h".
209 (gdb_init): Add a comment regarding initialize_all_files.
210 Call finish_python_initialization at the end.
211 * python/python.h (finish_python_initialization): Declare.
212 * python/python.c (finish_python_initialization): New function.
213 (_initialize_python): Move python-implemented initialization there
214 and call it.
215 (GdbMethods): Use #ifdef HAVE_PYTHON for consistency.
216
a289b8f6
JK
2172010-11-02 Jan Kratochvil <jan.kratochvil@redhat.com>
218
219 Revert:
220 2010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
221 Pedro Alves <pedro@codesourcery.com>
222 * gdbthread.h (currently_stepping): New declaration.
223 * infrun.c (currently_stepping): Remove the forward declaration.
224 (currently_stepping): Make it global.
225 * linux-nat.c (resume_callback) <lp->stopped && lp->status == 0>: New
226 variables tp and step, initialized them. Pass STEP to to_resume.
227 Print also possibly "PTRACE_SINGLESTEP" if STEP. Initialize LP->STEP.
228 * remote.c (currently_stepping_callback): New.
229 (remote_vcont_resume)
230 <ptid_equal (ptid, minus_one_ptid) || ptid_is_pid (ptid)>:
231 New variable tp. Call currently_stepping_callback and step such
232 thread.
233
2209c807
HZ
2342010-11-01 Hui Zhu <teawater@gmail.com>
235
236 * tracepoint.c (tfile_xfer_partial): Change lma to vma.
237
0a2a54b8
HZ
2382010-10-28 Hui Zhu <teawater@gmail.com>
239
240 * tracepoint.c (trace_save): Change utp->actions to
241 utp->step_actions.
242
284a3db3
JB
2432010-10-26 Joel Brobecker <brobecker@adacore.com>
244
245 * (_FILE_OFFSET_BITS): Fix typo in comment.
246
aed1781d
JB
2472010-10-26 Joel Brobecker <brobecker@adacore.com>
248
249 * python/python-internal.h (_FILE_OFFSET_BITS): Undefine.
250 (PyEval_InitThreads): Remove duplicate. Define as nothing.
251 (PyEval_ReleaseLock): Define as nothing.
252
1e3fad37
JB
2532010-10-26 Joel Brobecker <brobecker@adacore.com>
254
255 * dwarf2read.c (psymtab_include_file_name): Replace call to strcmp
256 by call to FILENAME_CMP.
257
558b1900
JB
2582010-10-26 Joel Brobecker <brobecker@adacore.com>
259
260 * dictionary.c (dict_hash): Move assignment out of if condition.
261
f474844c
JZ
2622010-10-22 Jie Zhang <jie@codesourcery.com>
263
264 * Makefile.in (install): Remove dependency of install-only and
265 recursively invoke make for install-only.
266 * data-directory/Makefile.in: Add FLAGS_TO_PASS variable.
267 (install): Pass FLAGS_TO_PASS when recursively make install-only.
268
8991e9fa
HZ
2692010-10-20 Hui Zhu <teawater@gmail.com>
270
271 * tracepoint.c (tfile_get_traceframe_address): Call
272 extract_signed_integer.
273 (tfile_trace_find): Call extract_signed_integer and
274 extract_unsigned_integer. Change data_size to unsigned int.
275 (tfile_fetch_registers): Call extract_unsigned_integer.
276 (tfile_xfer_partial): Ditto.
277 (tfile_get_trace_state_variable_value): Call
278 extract_signed_integer and extract_unsigned_integer.
279
21bce120
VP
2802010-10-20 Vladimir Prus <vladimir@codesourcery.com>
281
282 * remote.c (remote_get_threadlist): If we got empty
283 response, bail out immediately, and don't emit any
284 warnings.
285
ad8b5167
UW
2862010-10-19 Ulrich Weigand <uweigand@de.ibm.com>
287
288 * arm-tdep.c (thumb_get_next_pc_raw): Handle Thumb-16 encoding
289 for "mov pc, REG" as well.
290 (thumb_instruction_changes_pc): Likewise.
291
79afc5ef
SW
2922010-10-19 Sami Wagiaalla <swagiaal@redhat.com>
293
294 PR C++/11500:
295 * valarith.c (value_x_unop): Handle STRUCTOP_PTR.
296 * eval.c (evaluate_subexp_standard): Check for overload of
297 'operator->'.
298 * valarith.c (value_x_binop): Throw NOT_FOUND_ERROR.
299 (value_x_unop): Ditto.
300 * valops.c: Include "exceptions.h".
301 (find_overload_match): Throw NOT_FOUND_ERROR.
302 (value_struct_elt): Ditto.
303
cca56ac7
TT
3042010-10-19 Tom Tromey <tromey@redhat.com>
305
306 * python/py-cmd.c (cmdpy_function): Unreference exception state.
307
026ffab7
SW
3082010-10-19 Sami Wagiaalla <swagiaal@redhat.com>
309
310 * gdbtypes.h: Introduce BOOL_PTR_CONVERSION_BADNESS.
311 * gdbtypes.c (rank_one_type): Use BOOL_PTR_CONVERSION_BADNESS
312 for conversion.
313 Make all other conversions illegal.
314
8c540a24
DE
3152010-10-18 Doug Evans <dje@google.com>
316
317 * c-typeprint.c (c_type_print_base, case TYPE_CODE_TYPEDEF): Verify
318 assumptions of when this case happens. Print "<unnamed typedef>".
319
3a772aa4
TT
3202010-10-18 Tom Tromey <tromey@redhat.com>
321
322 * valprint.c (val_print_string): Pass 'encoding' to
323 LA_PRINT_STRING.
324
01f8c46d
JK
3252010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
326
327 Fix the `stopped language detection' testcase for gcc-4.5.
328 * dwarf2read.c (read_partial_die): Set also LANGUAGE_OF_MAIN.
329 * symfile.c (set_initial_language): Move variable filename to a more
330 inner block. Prefer LANGUAGE_OF_MAIN.
331 * symtab.c (language_of_main): New variable.
332 (set_main_name): Always reset LANGUAGE_OF_MAIN.
333 * symtab.h (language_of_main): New declaration.
334
8aeb23f3
JK
3352010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
336 Pedro Alves <pedro@codesourcery.com>
337
338 * gdbthread.h (currently_stepping): New declaration.
339 * infrun.c (currently_stepping): Remove the forward declaration.
340 (currently_stepping): Make it global.
341 * linux-nat.c (resume_callback) <lp->stopped && lp->status == 0>: New
342 variables tp and step, initialized them. Pass STEP to to_resume.
343 Print also possibly "PTRACE_SINGLESTEP" if STEP. Initialize LP->STEP.
344 * remote.c (currently_stepping_callback): New.
345 (remote_vcont_resume)
346 <ptid_equal (ptid, minus_one_ptid) || ptid_is_pid (ptid)>:
347 New variable tp. Call currently_stepping_callback and step such
348 thread.
349
c1e56572
JK
3502010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
351
352 * infrun.c (follow_exec): Replace symbol_file_add_main by
353 symbol_file_add with SYMFILE_DEFER_BP_RESET, set_initial_language and
354 breakpoint_re_set.
355 * m32r-rom.c (m32r_load, m32r_upload_command): Use parameter 0 for
356 clear_symtab_users.
357 * objfiles.c (free_all_objfiles): Likewise.
358 * remote-m32r-sdi.c (m32r_load): Likewise.
359 * solib-som.c (som_solib_create_inferior_hook): Likewise.
360 * symfile.c (new_symfile_objfile): New comment for add_flags. Call
361 clear_symtab_users with ADD_FLAGS.
362 (reread_symbols): Use parameter 0 for clear_symtab_users.
363 (clear_symtab_users): New parameter add_flags. Do not call
364 breakpoint_re_set if SYMFILE_DEFER_BP_RESET.
365 (clear_symtab_users_cleanup): Use parameter 0 for clear_symtab_users.
366 * symtab.h (clear_symtab_users): New parameter add_flags.
367
3a182a69
JK
3682010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
369
370 Fix GCC false warning.
371 * varobj.c (value_get_print_value) <str_addr>: Initialize it.
372
3a9d7214
PM
3732010-10-16 Pierre Muller <muller@ics.u-strasbg.fr>
374
375 * p-typeprint.c (pascal_type_print_method_args): Fix problem in
376 display of type of method arguments.
377
09ca9e2e
TT
3782010-10-15 Tom Tromey <tromey@redhat.com>
379
380 PR python/11948:
381 * varobj.c (value_get_print_value): Use val_print_string to print
382 lazy strings.
383 * python/py-prettyprint.c (print_string_repr): Use
384 val_print_string to print lazy strings. Fix cleanup logic.
385 (print_children): Likewise.
386 * python/python-internal.h (gdbpy_extract_lazy_string): Update.
387 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Rewrite.
388 Change return type to 'void', add 'addr' argument.
389 * value.h (val_print_string): Update.
390 * valprint.c (val_print_string): Add 'encoding' argument.
391 * printcmd.c (print_formatted): Update.
392 * p-valprint.c (pascal_val_print): Update.
393 * m2-valprint.c (print_unpacked_pointer): Update.
394 (m2_print_array_contents): Likewise.
395 * jv-valprint.c (java_value_print): Update.
396 * f-valprint.c (f_val_print): Update.
397 * c-valprint.c (c_val_print): Update.
398 * auxv.c (fprint_target_auxv): Update.
399
92163a10
JK
4002010-10-15 Doug Evans <dje@google.com>
401 Jan Kratochvil <jan.kratochvil@redhat.com>
402
403 PR exp/12117
404 * gdbtypes.c (check_typedef): Clean up function comment.
405 Keep track of instance flags as we strip typedefs and create a new
406 type to preserve them if necessary.
407 * gdbtypes.h (type) <instance_flags>: Extend the comment.
408
dae71413
PM
4092010-10-15 Pierre Muller <muller@ics.u-strasbg.fr>
410
411 * p-lang.c (is_pascal_string_type): Use TYPE_FIELD_NAME accessor.
412
7062b0a0
SW
4132010-10-14 Sami Wagiaalla <swagiaal@redhat.com>
414
415 * gdbtypes.h: Create BASE_PTR_CONVERSION_BADNESS.
416 * gdbtypes.c (rank_one_type): Move type comparison code out of here
417 to...
418 (types_equal): ...here. And changed it as follows:
419 Outside of typedefs type must be of the same TYPE_CODE.
420 When compairing two pointers or references they are equal if their
421 targets are equal.
422 Correct pointer conversions.
423
5c3da5ea
PM
4242010-10-14 Pierre Muller <muller@ics.u-strasbg.fr>
425
426 * p-lang.c (is_pascal_string_type): Avoid crashes on structures
427 having fields without names.
428
577ce03a
TT
4292010-10-13 Tom Tromey <tromey@redhat.com>
430
431 * language.h (LA_PRINT_ARRAY_INDEX): Fix argument name.
432
a737a51b
DE
4332010-10-13 Doug Evans <dje@google.com>
434
0e3509db
DE
435 New python module gdb.types.
436 * NEWS: Document it.
437 * data-directory/Makefile.in (PYTHON_FILES): Add gdb/types.py.
438 * python/lib/gdb/types.py: New file.
439
a737a51b
DE
440 * c-typeprint.c: Whitespace cleanup.
441 (cp_type_print_method_args): Remove unnecessary forward decl.
442 (cp_type_print_derivation_info): Ditto.
443 (c_type_print_varspec_prefix): Mark as static at definition.
444 (c_type_print_modifier): Fix arg descriptions.
445
8dc78533
JK
4462010-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
447
448 * python/py-breakpoint.c (bppy_set_condition): New comment.
449 * python/py-cmd.c (cmdpy_function): Call also gdbpy_print_stack for
450 failed PyUnicode_Decode.
451 (cmdpy_completer): Skip element for failed
452 python_string_to_host_string.
453 (cmdpy_init): Return -1 on failed python_string_to_host_string.
454 * python/py-frame.c (frapy_read_var): Extend the function comment.
455 * python/py-function.c (fnpy_init): Return -1 on failed
456 python_string_to_host_string.
457 * python/py-inferior.c (infpy_read_memory, infpy_write_memory): Extend
458 the function comment.
459 (infpy_search_memory): Extend the function comment. Remove the
460 PyErr_SetString call on already set error state.
461 * python/py-param.c (set_parameter_value): Extend the function
462 comment. Return -1 on failed python_string_to_host_string, twice.
463 (set_attr): Extend the function comment.
464 (compute_enum_values): Extend the function comment. New variable
465 back_to. Protect self->enumeration by BACK_TO cleanups. Return 0 on
466 failed python_string_to_host_string.
467 (get_doc_string): Call gdbpy_print_stack on failed
468 python_string_to_host_string.
469 (parmpy_init): Extend the function comment.
470 * python/py-prettyprint.c (pretty_print_one_value): Likewise.
471 (gdbpy_get_display_hint, print_children): Call gdbpy_print_stack on
472 failed python_string_to_host_string.
473 * python/py-value.c (valpy_new, valpy_getitem, valpy_call)
474 (valpy_binop, valpy_richcompare): Extend the function comment.
475 * python/python.c
476 (struct python_env) <error_type, error_value, error_traceback>: New
477 fields.
478 (restore_python_env): Handle PyErr_Occurred. Call PyErr_Restore.
479 (ensure_python_env): Call PyErr_Fetch.
480 * varobj.c (update_dynamic_varobj_children): Call gdbpy_print_stack on
481 failed convert_value_from_python.
482 (value_get_print_value): Call gdbpy_print_stack on failed
483 python_string_to_target_python_string.
484
1bdb0c54
TT
4852010-10-12 Tom Tromey <tromey@redhat.com>
486
487 * python/py-prettyprint.c (search_pp_list): Fix error checking.
488
0526b37a
SW
4892010-10-12 Sami Wagiaalla <swagiaal@redhat.com>
490
491 * gdbtypes.c (do_is_ancestor): New function.
492 (is_ancestor): Use do_is_ancestor.
493 (is_public_ancestor): Use do_is_ancestor.
494
c1b5be38
PM
4952010-10-12 Pierre Muller <muller@ics.u-strasbg.fr>
496
497 * ser-go32.c (struct dos_ops): Add missing fdopen field.
498
68770265
MGD
4992010-10-12 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
500
501 * arm-tdep.c (arm_mode_strings): Add NULL entry at end of array.
502
64b00020
DE
5032010-10-11 Doug Evans <dje@google.com>
504
505 * c-typeprint.c (c_type_print_modifier): Add note that this prints
506 the address space id too.
507
43b8e241
JK
5082010-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
509
510 Fix attaching to re-prelinked executables on ppc64.
511 * solib-svr4.c (svr4_exec_displacement): New variable plt2_asect,
512 initialize it, try to adjust FILESZ field by it.
513
417b5110
DJ
5142010-10-08 Daniel Jacobowitz <dan@codesourcery.com>
515
516 * tracepoint.c (merge_uploaded_trace_state_variables): Only print
517 messages if info_verbose.
518
3bdf2bbd
KW
5192010-10-08 Ken Werner <ken.werner@de.ibm.com>
520
521 * valops.c (value_cast): Handle vector types.
522 * valarith.c (value_binop): Widen scalar to vector if appropriate.
523
ec3d575a
UW
5242010-10-08 Ulrich Weigand <uweigand@de.ibm.com>
525
526 * arm-tdep.c (thumb_expand_immediate): New function.
527 (thumb_instruction_changes_pc): Likewise.
528 (thumb2_instruction_changes_pc): Likewise.
529 (thumb_analyze_prologue): Handle 32-bit Thumb instructions during
530 prologue parsing. Improved support for optimized code.
531 (thumb_scan_prologue): Do not reply on line-number information,
532 use same heuristics as arm_scan_prologue insead.
533 (skip_prologue_function): Accept functions
534 "__tls_get_addr" and "__aeabi_read_tp".
535
4024ca99
UW
5362010-10-08 Ulrich Weigand <uweigand@de.ibm.com>
537 Daniel Jacobowitz <dan@codesourcery.com>
538
539 * arm-tdep.c (thumb_in_function_epilogue_p)
540 (arm_in_function_epilogue_p): New.
541 (arm_gdbarch_init): Install arm_in_function_epilogue_p as
542 gdbarch_in_function_epilogue_p callback.
543
855c153f
DE
5442010-10-07 Doug Evans <dje@google.com>
545
00e14314
DE
546 * cc-with-index.sh (output_file): Default to a.out.
547
3876f04e
DE
548 * dwarf2read.c (mapped_index): Rename member index_table to
549 symbol_table and index_table_slots to symbol_table_slots.
550 All uses updated.
551 (create_symbol_hash_table): Renamed from create_index_table.
552 All callers updated.
553 (add_indices_to_cpool): Rename arg index_table to symbol_hash_table.
554 (write_hash_table): Rename local index_table to symbol_hash_table.
555
855c153f
DE
556 * addrmap.h (addrmap_foreach_fn): New typedef.
557 (addrmap_foreach): Declare.
558 * addrmap.c (struct addrmap_funcs): New member foreach.
559 (addrmap_foreach): New function.
560 (addrmap_fixed_foreach): New function.
561 (addrmap_fixed_funcs): Update.
562 (struct mutable_foreach_data): New struct.
563 (addrmap_mutable_foreach_worker): New function.
564 (addrmap_mutable_foreach): New function.
565 (addrmap_mutable_funcs): Update.
566
1d2a4540
PH
5672010-10-07 Paul Hilfinger <hilfinger@adacore.com>
568
569 * dictionary.c (dict_hash): Revert to msymbol_hash_iw in
570 more cases.
571
40658b94
PH
5722010-10-07 Paul Hilfinger <hilfinger@adacore.com>
573
574 * ada-lang.c (full_match): Declare.
575 (ada_match_name): Rename to match_name (we should avoid prefixing static
576 symbols with "ada_").
577 (match_name): New name for ada_match_name.
578 (struct ada_psym_data): Remove and replace with...
579 (struct match_data): User data for map_matching_symbols.
580 (ada_add_psyms): Remove.
581 (aux_add_nonlocal_symbols): New function, used as callback for
582 map_matching_symbols.
583 (compare_names): Ordering function adopted from strcmp_iw for Ada-encoded
584 symbols.
585 (ada_add_non_local_symbols): Rename to add_nonlocal_symbols.
586 (add_nonlocal_symbols): Renamed from ada_add_non_local_symbols.
587 Rework to use map_matching_symbols instead of map_ada_symtabs.
588 (ada_lookup_symbol_list): Use add_nonlocal_symbols.
589 * psymtab.c: Include dependency on dictionary.h.
590 (match_partial_symbol): New function.
591 (ada_lookup_partial_symbol): Remove.
592 (map_block): New function, auxiliary to map_matching_symbols_psymtab.
593 (map_matching_symbols_psymtab): New function.
594 (psym_functions): Replace map_ada_symtabs with map_matching_symbols_psymtab.
595 * symfile.h: Replace map_ada_symtabs definition with map_matching_symbols.
596
c4d840bd
PH
5972010-10-06 Paul Hilfinger <hilfinger@adacore.com>
598
599 * ada-lang.c (ada_match_name): Use new API for wild_match.
40658b94
PH
600 (wild_match): Change API to be consistent with that of strcmp_iw;
601 return 0 for a match, and switch operand order.
602 (full_match): New function.
603 (ada_add_block_symbols): Use dict_iter_match_{first,next} for
604 matching to allow use of hashing.
605 * dictionary.c (struct dict_vector): Generalize iter_name_first,
606 iter_name_next ot iter_match_first, iter_match_next.
607 (iter_name_first_hashed): Replace with iter_match_first_hashed.
608 (iter_name_next_hashed): Replace with iter_match_next_hashed.
609 (iter_name_first_linear): Replace with iter_match_first_linear.
610 (iter_name_next_linear): Replace with iter_match_next_linear.
611 (dict_iter_name_first): Re-implement to use dict_iter_match_first.
612 (dict_iter_name_next): Re-implement to use dict_iter_match_next.
613 (dict_iter_match_first): New function.
614 (dict_iter_match_next): New function.
615 (dict_hash): New function.
616 * dictionary.h (dict_iter_match_first, dict_iter_match_next): Declare.
617 * psymtab.c (ada_lookup_partial_symbol): Use new wild_match API.
c4d840bd 618
543ecec7
DE
6192010-10-06 Doug Evans <dje@google.com>
620
621 * data-directory/Makefile.in: Remove @host_makefile_frag@, @frags@.
622
2f608a3a
KW
6232010-10-06 Ken Werner <ken.werner@de.ibm.com>
624
625 * dwarf2read.c (read_tag_const_type): Handle const arrays.
626
aa2e2d8d
DE
6272010-10-06 Doug Evans <dje@google.com>
628
9c9606fb
DE
629 * Makefile.in (REQUIRED_SUBDIRS): New var.
630 (subdir_do): Verify required subdir Makefiles exist.
631
aa2e2d8d
DE
632 Create subdir data-directory.
633 * Makefile.in (XML_SYSCALL_DIR, XML_SYSCALL_FILES): Moved to
634 data-directory/Makefile.in.
635 (SUBDIRS): Add data-directory.
636 (all): Remove xml-syscall-copy dependency.
637 (xml-syscall-copy): Moved to data-directory/Makefile.in as
638 stamp-syscalls.
639 (xml-syscall-install): Moved to data-directory/Makefile.in as
640 install-syscalls.
641 (install-only): Remove xml-syscall-install dependency.
642 (all-data-directory): New rule.
643 (data-directory/Makefile): New rule.
644 * configure.ac (AC_OUTPUT): Add data-directory/Makefile.
645 * configure: Regenerate.
646 * data-directory/Makefile.in: New file.
647 * python/lib/gdb/__init__.py: New file.
648
aa27d0b3
JB
6492010-10-06 Joel Brobecker <brobecker@adacore.com>
650
651 Fix ARI warnings in advance_wild_match.
652 * ada-lang.c (advance_wild_match): Delete local variable t2.
653 Adjust code accordingly. Minor reformatting.
654
2844d6b5
KW
6552010-10-06 Ken Werner <ken.werner@de.ibm.com>
656
657 * gdbtypes.h (struct main_type): Remove flag_nottext.
658 (enum type_flag_value): Remove TYPE_FLAG_NOTTEXT.
659 (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_NOTTEXT.
660 (TYPE_NOTTEXT): Use TYPE_INSTANCE_FLAG_NOTTEXT instead of flag_nottext.
661 * gdbtypes.c (make_vector_type): Use TYPE_INSTANCE_FLAG_NOTTEXT instead
662 of TYPE_FLAG_NOTTEXT.
663 (init_type): Remove the initialization of the flag_nottext field.
664 (gdbtypes_post_init): Use TYPE_INSTANCE_FLAG_NOTTEXT instead of
665 TYPE_FLAG_NOTTEXT.
666 * c-valprint.c (c_val_print): Remove TYPE_VECTOR check.
667
2fdf6df6
DE
6682010-10-04 Doug Evans <dje@google.com>
669
ea65fe05
DE
670 * cc-with-index.sh: New file.
671
2fdf6df6
DE
672 * dwarf2read.c (dw2_do_instantiate_symtab): Insert blank line after
673 function comment.
674 (dw2_instantiate_symtab, dw2_get_cu, extract_cu_value): Ditto.
675 (create_cus_from_index, create_addrmap_from_index): Ditto.
676 (mapped_index_string_hash, find_slot_in_mapped_hash): Ditto.
677 (dw2_setup, dw2_require_line_header, dw2_require_full_path): Ditto.
678 (dw2_do_expand_symtabs_matching): Ditto.
b89be57b
DE
679 (eq_strtab_entry, create_strtab, add_string): Ditto.
680 (hash_strtab_entry): Ditto.
681 (hash_symtab_entry, eq_symtab_entry, delete_symtab_entry): Ditto.
682 (create_index_table, create_mapped_symtab, find_slot): Ditto.
683 (hash_expand, add_index_entry, add_indices_to_cpool): Ditto.
684 (write_hash_table, add_address_entry, write_psymbols): Ditto.
685 (write_obstack, unlink_if_set, write_one_signatured_type): Ditto.
686 (write_psymtabs_to_index): Ditto.
2fdf6df6 687
40bc484c
JB
6882010-10-04 Joel Brobecker <brobecker@adacore.com>
689
690 * ada-lang.c: #include "value.h".
691 (ensure_lval): Delete advance declaration. Remove gdbarch and sp
692 arguments. Implement using value_allocate_space_in_inferior
693 instead of allocating memory from the stack.
694 (make_array_descriptor): Remove gdbarch and sp parameters. Update
695 calls to ensure_lval.
696 (ada_convert_actual): Remove gdbarch and sp parameters. Update
697 calls to make_array_descriptor and ensure_lval.
698 * ada-lang.h (ada_convert_actual): Update declaration.
699 * infcall.c (value_arg_coerce): Update call to ada_convert_actual.
700
f17618ea
DE
7012010-10-04 Doug Evans <dje@google.com>
702
703 * python/python.c (_initialize_python): Define new function
704 GdbSetPythonDirectory in python. Use it to update sys.path and
705 gdb.__path__.
706
83e3a93c
PH
7072010-10-03 Paul Hilfinger <hilfinger@adacore.com>
708
709 * gdb/ada-typeprint.c (print_selected_record_field_types): New function,
710 incorporating and generalizing print_record_field_types.
711 (print_record_field_types): Change return value and update comment.
712 Re-implement using print_selected_record_field_types.
713 (print_choices): Print "=>" here.
714 Handle case of unencoded variant branch.
715 (print_variant_clauses): Reformat comment.
716 Special-case unencoded variant branch.
717
7182010-10-03 Paul Hilfinger <hilfinger@adacore.com>
73589123
PH
719
720 * ada-lang.c (wild_match): Reimplement.
721 Change API to eliminate unused length argument, reverse arguments and
722 make 0 the 'true' return value.
723 (advance_wild_match): New auxiliary function for wild_match to improve
724 readability.
725 (ada_match_name, ada_add_block_symbols): Use new API for wild_match.
726 * psymtab.c (ada_lookup_partial_symbol, map_ada_symtabs): Use new
727 API for wild_match.
728 * symfile.h (map_ada_symtabs): Modify declaration to use new API for
729 wild_match.
730 * dwarf2read.c (dw2_map_ada_symtabs): Ditto.
731
11570e71
DE
7322010-10-01 Doug Evans <dje@google.com>
733
734 * dwarf2read.c (_initialize_dwarf2_read): Add usage info to help text
735 for `save gdb-index' command.
736
72b9f47f
TT
7372010-10-01 Tom Tromey <tromey@redhat.com>
738
739 * symfile.h (allocate_symtab): Update.
740 * symfile.c (allocate_symtab): Make 'filename' const.
741 * psymtab.c (add_psymbol_to_bcache): Make 'name' const.
742 (add_psymbol_to_list): Likewise.
743 * psympriv.h (struct partial_symtab) <filename, dirname>: Now
744 const.
745 (add_psymbol_to_list): Update.
746 * mdebugread.c (new_symtab): Make 'name' const.
747 (psymtab_to_symtab_1): Make 'filename' const.
748 * elfread.c (elfstab_offset_sections): Update.
749 * dwarf2read.c (dwarf_decode_lines): Make 'comp_dir' const.
750 (dwarf2_start_subfile): Make 'dirname' and 'comp_dir' const.
751 (psymtab_include_file_name): Update.
752 * dbxread.c (find_stab_function_addr): Make 'filename' const.
753 * buildsym.h (start_subfile): Update.
754 * buildsym.c (start_subfile): Make arguments const.
755
55e39473
MS
7562010-09-30 Ali Lakhia <lakhia@alumni.utexas.net>
757
758 * fork-child.c (breakup_args): Fix crash if shell forking is
759 disabled at compile time.
760
05e522ef
JB
7612010-10-01 Joel Brobecker <brobecker@adacore.com>
762
763 * ada-lang.c (desc_bounds): Add handling of the case where
764 the P_BOUNDS field is a pointer to a stub.
765 (desc_data_target_type): Same for P_ARRAY field.
766 (ada_check_typedef): Strip the typedef layers from the type
767 found by ada_find_any_type.
768
49a45ecf
JB
7692010-10-01 Joel Brobecker <brobecker@adacore.com>
770
771 * sparc-tdep.c (sparc32_frame_align): New function.
772 (sparc32_gdbarch_init): Set the frame_align gdbarch method.
773 * sparc64-tdep.c (sparc64_frame_align): New function.
774 (sparc64_gdbarch_init): Set the frame_align gdbarch method.
775
a5916a62
L
7762010-09-30 H.J. Lu <hongjiu.lu@intel.com>
777
778 * defs.h (MAX_REGISTER_SIZE): Set to 64.
779
00b5771c
TT
7802010-09-30 Tom Tromey <tromey@redhat.com>
781
782 * symfile.h (struct sym_fns) <next>: Remove.
783 (add_symtab_fns): Update.
784 * symfile.c (sym_fns_ptr): New typedef.
785 (symtab_fns): Now a VEC.
786 (add_symtab_fns): Update. Change argument type.
787 (find_sym_fns): Update. Change return type.
788 (get_symfile_segment_data): Update.
789 * objfiles.h (struct objfile) <sf>: Now const.
790 * somread.c (som_sym_fns): Now const. Update.
791 * xcoffread.c (xcoff_sym_fns): Now const. Update.
792 * mipsread.c (ecoff_sym_fns): Now const. Update.
793 * machoread.c (macho_sym_fns): Now const. Update.
794 * elfread.c (elf_sym_fns): Now const. Update.
795 (elf_sym_fns_gdb_index): Likewise.
796 * dbxread.c (aout_sym_fns): Now const. Update.
797 * coffread.c (coff_sym_fns): Now const. Update.
798
38f12cfc
TT
7992010-09-30 Tom Tromey <tromey@redhat.com>
800
801 * value.c (value_primitive_field): Take 'offset' into account for
802 packed field.
803
9ae8282d
TT
8042010-09-30 Tom Tromey <tromey@redhat.com>
805
806 * completer.c (count_struct_fields): Handle anonymous structs and
807 unions.
808 (add_struct_fields): Likewise.
809
e9e07ba6
JK
8102010-09-30 Jan Kratochvil <jan.kratochvil@redhat.com>
811
812 Fix printing parameters of inlined functions.
813 * ada-lang.c (is_known_support_routine)
814 (ada_unhandled_exception_name_addr_from_raise): Provide NULL parameter
815 for find_frame_funname.
816 * python/py-frame.c (frapy_name): Likewise.
817 * stack.c (find_frame_funname): New parameter funcp. Update the
818 function comment. Fill it in.
819 (print_frame): New variable func. Initialize it by
820 find_frame_funname. Print arguments only if FUNC is not NULL. Use
821 FUNC as the parameter of print_args_stub.
822 * stack.h (find_frame_funname): New parameter funcp. Remove the
823 function declaration comment.
824
cd2effb2
JK
8252010-09-30 Jan Kratochvil <jan.kratochvil@redhat.com>
826
827 PR corefiles/12071.
828 * inferior.c (have_live_inferiors): New variables old_chain, inf and
829 tp. Iterate INFERIOR_LIST and call target_has_execution.
830
bceffbf3
JK
8312010-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
832
833 Fix GDB crash on inferior calls with self-referencing classes.
834 * gnu-v3-abi.c (gnuv3_pass_by_reference): Do not call itself on static
835 member fields.
836
abc72ce4
DE
8372010-09-29 Doug Evans <dje@google.com>
838
839 Workaround for gcc/45682.
840 * dwarf2read.c (partial_die_info): New fields fixup_called,
841 linkage_name.
842 (guess_partial_die_structure_name): Renamed from guess_structure_name.
843 Move definition next to use. Use linkage_name to determine if class
844 is in a namespace. All callers updated.
845 (fixup_partial_die): Return early if already called.
846 Set fixup_called when done.
847 (guess_full_die_structure_name): New function.
848 (determine_prefix): Call it for class/struct/union dies if c++ and
849 .debug_types section is present and parent is DW_TAG_compile_unit.
850
0ac7be25
JB
8512010-09-28 Joel Brobecker <brobecker@adacore.com>
852
853 * configure.tgt (sparc-*-*): Set gdb_sim to ../sim/erc32/libsim.a.
854 (sparc-*-rtems*): Delete. Now redundant with sparc-*-*.
855
6e1bb179
JB
8562010-09-28 Joel Brobecker <brobecker@adacore.com>
857
858 * NEWS: Announce Ravenscar Profile support.
859
036b1ba8
JB
8602010-09-28 Joel Brobecker <brobecker@adacore.com>
861 Jerome Guitton <guitton@adacore.com>
862
863 * ravenscar-thread.c, ravenscar-thread.h, ravenscar-sparc-thread.c:
864 New files.
865 * configure.tgt (sparc-*-*): Add ravenscar-thread.o and
866 ravenscar-sparc-thread.o to gdb_target_obs.
867
474011fb
JB
8682010-09-28 Joel Brobecker <brobecker@adacore.com>
869
870 * ada-tasks.c (iterate_over_live_ada_tasks): New function.
871 * ada-lang.h (iterate_over_live_ada_tasks): Declare.
872
99e24b90
PM
8732010-09-27 Pierre Muller <muller@ics.u-strasbg.fr>
874
875 * amd64-windows-tdep.c (amd64_skip_main_prologue): New function.
876 (amd64_windows_init_abi): Register amd64_skip_main_prologue as gdbarch
877 skip_main_prologue method.
878
987d643c
TT
8792010-09-27 Tom Tromey <tromey@redhat.com>
880
881 * dwarf2read.c (dwarf2_read_index): Only allow version 3.
882 (write_psymbols): Add 'psyms_seen' and 'is_static' arguments.
883 Only emit a given psymbol once.
884 (struct signatured_type_index_data) <psyms_seen>: New field.
885 (write_one_signatured_type): Update.
886 (cleanup_htab): New function.
887 (write_psymtabs_to_index): Update. Create psyms_seen hash. Bump
888 version to 3.
889 (save_gdb_index_command): Update index documentation.
890
d3aff959
TT
8912010-09-27 Tom Tromey <tromey@redhat.com>
892
893 * bcache.c (expand_hash_table): Use hash_function, not hash.
894
716b65bf
TT
8952010-09-27 Tom Tromey <tromey@redhat.com>
896
897 * gdb_wchar.h: Change minimum libiconv to 0x108.
898
1736ad11
JK
8992010-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
900
901 Fix lost siginfo_t for inferior calls.
902 * infrun.c
903 (struct inferior_thread_state) <siginfo_gdbarch, siginfo_data>: New.
904 (save_inferior_thread_state): New variables regcache, gdbarch and
905 siginfo_data. Initialize SIGINFO_DATA if gdbarch_get_siginfo_type_p.
906 Move INF_STATE allocation later, pre-clear it. Initialize REGISTERS
907 using REGCACHE.
908 (restore_inferior_thread_state): New variables regcache and gdbarch.
909 Restore SIGINFO_DATA for matching GDBARCH. Restore REGISTERS using
910 REGCACHE. Free also SIGINFO_DATA.
911
4b5246aa
TT
9122010-09-24 Tom Tromey <tromey@redhat.com>
913
914 * dwarf2read.c (dw2_expand_symtabs_matching): Add missing
915 MAYBE_SWAPs.
916 (dw2_map_symbol_names): Likewise.
917
2a7d6a25
SW
9182010-09-24 Sami Wagiaalla <swagiaal@redhat.com>
919
920 * valops.c (find_oload_champ_namespace_loop): replace incorrect
921 discard_cleanups do_cleanups.
922
b53a1623
PA
9232010-09-24 Pedro Alves <pedro@codesourcery.com>
924
e6ee044d
PA
925 PR gdb/11842
926
b53a1623
PA
927 * amd64-linux-nat.c (compat_siginfo_from_siginfo)
928 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
929 si_code is < 0. Check for si_code == SI_TIMER before checking for
930 si_code < 0.
931
96a8853a
PA
9322010-09-24 Pedro Alves <pedro@codesourcery.com>
933
934 * objfiles.h (ALL_OBJSECTIONS): Handle breaks in the inner loop.
935
39383a48
JB
9362010-09-22 Joel Brobecker <brobecker@adacore.com>
937
938 * ada-tasks.c (read_atcb): Do not compute the task ptid when
939 debugging a core file.
940
d31d2fc3
JK
9412010-09-22 Jan Kratochvil <jan.kratochvil@redhat.com>
942
943 Code cleanup.
944 * objfiles.c (allocate_objfile) <objfile->name != NULL>: Remove.
945 (free_objfile) <objfile->name != NULL>: Remove the conditional around
946 xfree.
947 * objfiles.h (struct objfile) <name>: New comment it is never NULL.
948 * python/py-auto-load.c (auto_load_new_objfile) <!objfile->name>:
949 Remove.
950 * python/py-objfile.c (objfpy_get_filename) <obj->objfile->name>
951 Remove the conditional.
952 * python/py-progspace.c (pspy_get_filename) <objfile->name>: Likewise.
953
7f6130ff
JK
9542010-09-22 Jan Kratochvil <jan.kratochvil@redhat.com>
955
956 * main.c: Include objfiles.h.
957 (captured_main): New variable objfile. Call
958 load_auto_scripts_for_objfile for ALL_OBJFILES.
959
c2b0a229
JK
9602010-09-22 Jan Kratochvil <jan.kratochvil@redhat.com>
961
962 * dwarf2read.c (die_needs_namespace) <DW_TAG_variable>: Add also
963 DW_TAG_constant.
964
72929c62
JB
9652010-09-22 Joel Brobecker <brobecker@adacore.com>
966
967 * dwarf2read.c (scan_partial_symbols): Add handling of
968 DW_TAG_constant DIEs.
969 (add_partial_symbol, load_partial_dies, new_symbol): Likewise.
970
496c0e1b
JB
9712010-09-22 Joel Brobecker <brobecker@adacore.com>
972
973 * configure.ac: Add support for --enable-gdbserver.
974 * configure: Regenerate.
975
ec322823
SW
9762010-09-22 Sami Wagiaalla <swagiaal@redhat.com>
977
978 PR C++/12028
979 * valops.c (find_oload_champ_namespace_loop): removed incorrect
980 'old_cleanups' reassignment.
981
1558ab4c
JK
9822010-09-16 Jan Kratochvil <jan.kratochvil@redhat.com>
983
984 * charset.c (wchar_iterate) <EILSEQ>: Return any possibly converted
985 characters.
986
875b4ff5
PM
9872010-09-16 Phil Muldoon <pmuldoon@redhat.com>
988
989 PR mi/11407
990 * mi/mi-cmd-stack.c (list_args_or_locals): Catch exceptions from
991 read_var_value and common_val_print and print a warning.
992
65dedcb2
JK
9932010-09-15 Jan Kratochvil <jan.kratochvil@redhat.com>
994
995 * MAINTAINERS (GLOBAL MAINTAINERS) <Jan Kratochvil>: Move the entry to
996 keep the list in alphabetical order. Use longer e-mail address.
997
0e780a22
TT
9982010-09-15 Tom Tromey <tromey@redhat.com>
999
1000 * MAINTAINERS (GLOBAL MAINTAINERS): Add Jan Kratochvil.
1001
62234ccc
TT
10022010-09-15 Tom Tromey <tromey@redhat.com>
1003
1004 * charset.c (iconv_open): New define.
1005 (iconv): Likewise.
1006 (iconv_close): Likewise.
1007 (phony_iconv_open): Add "phony_" prefix.
1008 (phony_iconv_close): Likewise.
1009 (phony_iconv): Likewise.
1010 * gdb_wchar.h: Check _LIBICONV_VERSION, __STDC_ISO_10646__.
1011 Change how INTERMEDIATE_ENCODING is defined.
1012
4950bc1c
DE
10132010-09-15 Doug Evans <dje@google.com>
1014
1015 * dwarf2read.c (struct die_info): Fix comment.
1016
349126ea
AM
10172010-09-15 Alan Modra <amodra@gmail.com>
1018
1019 PR 4606
1020 * gcore.c (gcore_create_callback): Clear SEC_HAS_CONTENTS rather
1021 than setting SEC_NEVER_LOAD on sections that need not be copied.
1022
923c6a3d
TT
10232010-09-14 Tom Tromey <tromey@redhat.com>
1024
1025 * psympriv.h (add_psymbol_to_list, init_psymbol_list)
1026 (start_psymtab_common, allocate_psymtab, discard_psymtab):
1027 Declare.
1028 * symfile.h (extend_psymbol_list): Remove.
1029 (add_psymbol_to_list, init_psymbol_list, start_psymtab_common)
1030 (allocate_psymtab, discard_psymtab): Move to psympriv.h.
1031 * psymtab.c (extend_psymbol_list): Move earlier. Now static.
1032
a9e6a4bb
JK
10332010-09-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1034
1035 * dwarf2read.c (dw2_map_ada_symtabs): Remove the internal_error.
1036 Update the comment.
1037
7155d578
TT
10382010-09-14 Tom Tromey <tromey@redhat.com>
1039
1040 PR symtab/8399:
1041 * dwarf2loc.c (locexpr_describe_location_piece): Don't call error
1042 for unrecognized frame base expression.
1043
515ed532
TT
10442010-09-14 Tom Tromey <tromey@redhat.com>
1045
1046 PR exp/11803:
1047 * value.c (value_static_field): Use value_of_variable.
1048
b467f580
PM
10492010-09-14 Pierre Muller <muller@ics.u-strasbg.fr>
1050
1051 * m32r-rom.c: Replace winsock.h with winsock2.h header.
1052 * remote-m32r-sdi.c: Replace winsock.h by winsock2.h.
1053
450ca57c
SW
10542010-09-13 Sami Wagiaalla <swagiaal@redhat.com>
1055
1056 PR symtab/11992:
1057 * c-exp.y (classify_name): Check is_a_member_of_this before returning
1058 UNKNOWN_CPP_NAME.
1059
1aee7009
JB
10602010-09-13 Joel Brobecker <brobecker@adacore.com>
1061
1062 * NEWS: Add x86-lynxos to the list of platforms supported by
1063 gdbserver.
1064
5ec6ebf9
JB
10652010-09-13 Joel Brobecker <brobecker@adacore.com>
1066
1067 * NEWS: Announce GDBserver support for version 5.x of ppc-lynxos.
1068
1863c96c
TT
10692010-09-13 Tom Tromey <tromey@redhat.com>
1070
1071 * Makefile.in (HFILES_NO_SRCDIR): Add progspace.h.
1072
0c5acf93
L
10732010-09-13 H.J. Lu <hongjiu.lu@intel.com>
1074
1075 * i386-tdep.c (i386_ymm_type): Set type name to
1076 builtin_type_vec256i.
1077
1c6272a6
MS
10782010-09-12 Michael Snyder <msnyder@vmware.com>
1079
1080 * i386-tdep.c (i386_gdbarch_init): Fix typo in comments.
1081
e866c497
L
10822010-09-12 H.J. Lu <hongjiu.lu@intel.com>
1083
1084 * i386-tdep.c (i386_gdbarch_init): Fix typo in comments.
1085
9191d390
L
10862010-09-11 H.J. Lu <hongjiu.lu@intel.com>
1087
1088 * amd64-tdep.c (amd64_register_name): Removed.
1089 (amd64_init_abi): Don't call set_gdbarch_register_name.
1090
1091 * i386-tdep.c (i386_ymmh_regnum_p): Make it static.
1092
1093 * i386-tdep.h (i386_ymmh_regnum_p): Removed.
1094
8d4d924b
JK
10952010-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1096 Paul Bolle <pebolle@tiscali.nl>
1097
1098 Redirect also uiout and stdtarg{,err} in execute_command_to_string.
1099 * cli-logging.c (struct saved_output_files) <targerr>: New.
1100 (set_logging_redirect, pop_output_files, handle_redirections):
1101 Redirect also gdb_stdtargerr.
1102 * defs.h (struct ui_out, make_cleanup_ui_out_redirect_pop): New
1103 declarations.
1104 * event-top.c (gdb_setup_readline, gdb_disable_readline): Redirect
1105 also gdb_stdtargerr.
1106 * top.c (execute_command_to_string): Move make_cleanup_ui_file_delete
1107 to the top. Redirect also gdb_stdlog, gdb_stdtarg and gdb_stdtargerr.
1108 Use ui_out_redirect, register make_cleanup_ui_out_redirect_pop.
1109 * tui/tui-io.c (tui_setup_io): Redirect also gdb_stdtargerr.
1110 * utils.c (do_ui_out_redirect_pop, make_cleanup_ui_out_redirect_pop):
1111 New functions.
1112
3329c4b5
PM
11132010-09-10 Pierre Muller <muller@ics.u-strasbg.fr>
1114
1115 * hppa-tdep.c (unwind_command): Use host_address_to_string function
1116 to display a host address.
1117 * monitor.c (monitor_read_memory): Likewise.
1118 * xtensa-tdep.c (xtensa_push_dummy_call): Likewise.
1119
5e8db398
PM
11202010-09-10 Pierre Muller <muller@ics.u-strasbg.fr>
1121
1122 * coffread.c (struct coff_symbol): Change c_value type from `long' to
1123 `CORE_ADDRESS' as it might contain target addresses.
1124
37049e31
PM
11252010-09-10 Pierre Muller <muller@ics.u-strasbg.fr>
1126
1127 * alpha-mdebug-tdep.c (find_proc_desc): Use SYMBOL_VALUE_BYTES macro
1128 before cast to pointer to avoid warning.
1129
351a3e56
KB
11302010-09-09 Kevin Buettner <kevinb@redhat.com>
1131
1132 * v850-tdep.c (v850_gdbarch_init): Change the v850's `char'
1133 type to be signed.
349126ea 1134
6afafb54
UW
11352010-09-09 Ulrich Weigand <uweigand@de.ibm.com>
1136
1137 * dwarf2read.c (fixup_partial_die): Do not set dummy name for
1138 anonymous class partial DIEs.
1139
60430eff
DJ
11402010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
1141
1142 * dwarf2read.c (dwarf2_compute_name): Check that the first
1143 argument is a pointer.
1144
f1078f66
DJ
11452010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
1146
1147 * dwarf2read.c (read_func_scope, read_structure_type)
1148 (read_common_block): Check for a NULL return from new_symbol.
1149
82430852
JK
11502010-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1151
1152 * dwarf2read.c (dwarf2_read_index): Return on no SEC_HAS_CONTENTS.
1153
c767944b
DJ
11542010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
1155
1156 * dwarf2read.c (read_structure_type): Move processing of
1157 fields and member functions from here...
1158 (process_structure_scope): ... to here.
1159
561d3825
DJ
11602010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
1161
1162 * gnu-v3-abi.c (gnuv3_print_method_ptr): Do not use
1163 the domain type.
1164 (gnuv3_make_method_ptr): Likewise.
1165
9bd89d67
TT
11662010-09-08 Tom Tromey <tromey@redhat.com>
1167
1168 * breakpoint.c (create_breakpoint): Add missing _().
1169
1d040b0d
DE
11702010-09-08 Doug Evans <dje@google.com>
1171
1172 * dwarf2-frame.h (dwarf2_frame_build_info): Delete, unused.
1173
774b6a14
TT
11742010-09-08 Tom Tromey <tromey@redhat.com>
1175
1176 Revert:
1177 2010-09-01 Tom Tromey <tromey@redhat.com>
1178 * dwarf2read.c, gdbtypes.c, psymtab.c, symfile.h, symtab.c,
1179 symtab.h: Revert earlier change.
1180
fc956729
SW
11812010-09-09 Sami Wagiaalla <swagiaal@redhat.com>
1182
1183 * psymtab.c (add_psymbol_to_bcache): Initialize
1184 obj_section.
1185 memset psymbol.ginfo.value to 0.
1186
48f9886d
PA
11872010-09-06 Pedro Alves <pedro@codesourcery.com>
1188
1189 * infrun.c (resume): Extend comment on ignoring single-step
1190 requests on vfork parents waiting for a vfork-done.
1191
423ec54c
JK
11922010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1193 Pedro Alves <pedro@codesourcery.com>
1194
1195 * corelow.c (core_open): Use target_signal_from_host if CORE_GDBARCH
1196 is NULL.
1197 * fork-child.c (startup_inferior) <resume_signal>: Use enum
1198 target_signal type.
1199 * linux-nat.c (linux_nat_resume): Use target_signal_to_host before
1200 calling strsignal. Use enum target_signal type for saved_signo.
1201 (linux_handle_extended_wait) <signo>: Use enum target_signal type.
1202 (linux_nat_wait_1): Use enum target_signal type for signo. Use
1203 target_signal_to_host before calling strsignal.
1204 * remote-m32r-sdi.c (m32r_wait, m32r_detach): Replace 0 by
1205 TARGET_SIGNAL_0.
1206
a6eb9bc8
JK
12072010-09-06 Pedro Alves <pedro@codesourcery.com>
1208 Jan Kratochvil <jan.kratochvil@redhat.com>
1209
1210 * common/signals.c (ANY): Remove.
1211 (SET): No longer use ANY.
1212
74609e71
YQ
12132010-09-06 Yao Qi <yao@codesourcery.com>
1214
1215 * infrunc(resume): When inferior is waiting_for_vfork_done,
1216 clear step and don't use displaced stepping.
1217
8464be76
DJ
12182010-09-04 Daniel Jacobowitz <dan@codesourcery.com>
1219
1220 * breakpoint.c (can_use_hardware_watchpoint): Handle the first
1221 value specially.
1222
33d62d64
JK
12232010-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1224
1225 Code cleanup - split print_stop_reason.
1226 * infrun.c (enum inferior_stop_reason): Remove.
1227 (print_stop_reason): Remove by splitting into ...
1228 (print_exited_reason, print_signal_exited_reason)
1229 (print_no_history_reason, print_signal_received_reason)
1230 (print_end_stepping_range_reason): ... these new functions. Update
1231 the preceding comment.
1232 (handle_inferior_event): Change the calls to print_exited_reason,
1233 print_signal_exited_reason, print_no_history_reason,
1234 print_signal_received_reason, print_end_stepping_range_reason.
1235 (handle_step_into_function, handle_step_into_function_backward):
1236 Change the calls to print_end_stepping_range_reason.
1237
14dba4b4
JK
12382010-09-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1239
1240 * breakpoint.c (save_breakpoints): Use RETURN_MASK_ALL.
1241 * cli-out.c: Include vec.h.
1242 (cli_field_fmt, cli_spaces, cli_text, cli_message, cli_flush): New
1243 variable stream, initialize it, use it.
1244 (cli_redirect): New function comment. Replace the stream and
1245 original_stream fields by the new streams field. Remove the
1246 original_stream != NULL conditional, assert error on NULL instead.
1247 (out_field_fmt, field_separator): New variable stream, initialize it, use it.
1248 (cli_out_data_ctor): Assert non-NULL stream. Replace the stream and
1249 original_stream fields by the new streams field.
1250 (cli_out_set_stream): Replace the stream field by the new streams
1251 field.
1252 * cli-out.h: Include vec.h.
1253 (ui_filep): New typedef, call DEF_VEC_P for it.
1254 (struct cli_ui_out_data): Replace the stream and original_stream
1255 fields by the new streams field.
1256 * cli/cli-logging.c (set_logging_redirect): Call ui_out_redirect with
1257 NULL first. Extend the comment.
1258 (handle_redirections): Call ui_out_redirect with output.
1259 * python/py-breakpoint.c (bppy_get_commands): Move ui_out_redirect
1260 calls outside of the TRY_CATCH block.
1261
b04bc5d4 12622010-09-03 Joel Brobecker <brobecker@adacore.com>
1263
1264 GDB 7.2 released.
1265
080db4e0
JB
12662010-09-02 Joel Brobecker <brobecker@adacore.com>
1267
1268 Back out the following change:
1269 | 2010-06-29 Hui Zhu <teawater@gmail.com>
1270 | * record.c (set_record_pic_cmdlist,
1271 | show_record_pic_cmdlist): New variables.
1272 | (set_record_pic_command,
1273 | show_record_pic_command): New functions.
1274 | (record_pic_function, record_pic_line, record_pic_enum,
1275 | set_record_pic_type, record_pic_hide_nofunction,
1276 | record_pic_hide_nosource, record_pic_hide_same): New variables.
1277 | (record_pic_fputs): New function.
1278 | (function_list, node_list, edge_list): New struct.
1279 | (function_list, node_list, edge_list): New variables.
1280 | (record_pic_cleanups, record_pic_node,
1281 | record_pic_edge, cmd_record_pic): New functions.
1282 | (_initialize_record): Add new commands for record pic.
1283
0a4f61e3
DJ
12842010-09-02 Daniel Jacobowitz <dan@codesourcery.com>
1285
1286 * config.in, configure: Regenerated.
1287 * configure.ac: Check for waitpid.
1288 * ser-pipe.c (pipe_close): Wait for the program to exit.
1289
58b61394
JK
12902010-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1291
ba720883 1292 * cli/cli-logging.c: Include gdb_assert.h.
58b61394
JK
1293 (set_logging_overwrite): New function.
1294 (logging_redirect): New comment.
1295 (logging_no_redirect_file, set_logging_redirect)
1296 (pop_output_files) <logging_no_redirect_file>: New.
1297 (handle_redirections) <!logging_redirect>: New variable
1298 no_redirect_file. Remove file autoclose for tee_file_new. No longer
1299 discard cleanup for the close of former OUTPUT. Set
1300 LOGGING_NO_REDIRECT_FILE.
1301 (handle_redirections) <logging_redirect>: gdb_assert
1302 LOGGING_NO_REDIRECT_FILE.
1303 (show_logging_command) <logging_redirect handling>: Adjust messages
1304 for SAVED_FILENAME not NULL.
1305 (_initialize_cli_logging): Install set_logging_overwrite and
1306 set_logging_redirect.
1307
706774f2
JK
13082010-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1309
1310 * iq2000-tdep.c (iq2000_scan_prologue): Initialize SAL.END.
1311
9a35ccf7
JK
13122010-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1313
1314 * Makefile.in (GDB_WARN_CFLAGS_NO_FORMAT): Convert it to the no- form.
1315 (monitor.o): Replace $(INTERNAL_WARN_CFLAGS) by $(INTERNAL_CFLAGS) and
1316 add $(GDB_WARN_CFLAGS_NO_FORMAT).
1317 (printcmd.o): Replace $(INTERNAL_CFLAGS_BASE) by $(INTERNAL_CFLAGS).
1318
ba9b2ec3
YQ
13192010-09-02 Yao Qi <yao@codesourcery.com>
1320
1321 * linux-nat.c (status_to_str): Use WTERMSIG to extract the signal
1322 number from a WIFSIGNALED status.
1323
faf68db7
TT
13242010-09-01 Tom Tromey <tromey@redhat.com>
1325
1326 * symtab.h (lookup_type_symbol): Declare.
1327 * symtab.c (lookup_symbol_in_language_full): Rename from
1328 lookup_symbol_in_language. Add 'for_type' argument.
1329 (lookup_symbol_in_language): New function.
1330 (lookup_type_symbol): Likewise.
1331 (lookup_symbol_aux): Add 'for_type' argument.
1332 (match_symbol_aux): New function.
1333 (lookup_symbol_aux_symtabs): Use expand_one_symtab_matching.
1334 (match_transparent_type): New function.
1335 (basic_lookup_transparent_type): Use expand_one_symtab_matching.
1336 * symfile.h (struct quick_symbol_functions)
1337 <pre_expand_symtabs_matching>: Remove.
1338 <expand_one_symtab_matching>: New field.
1339 * psymtab.c (expand_one_symtab_matching_psymtabs): New function.
1340 (pre_expand_symtabs_matching_psymtabs): Remove.
1341 (psym_functions): Update.
1342 * gdbtypes.c (lookup_typename): Use lookup_type_symbol.
1343 * dwarf2read.c (dw2_lookup_symbol): Update comment.
1344 (dw2_pre_expand_symtabs_matching): Remove.
1345 (dw2_expand_one_symtab_matching): New function.
1346 (dwarf2_gdb_index_functions): Update.
1347
248c9dbc
JB
13482010-09-01 Joel Brobecker <brobecker@adacore.com>
1349
1350 * NEWS: Add entry announcing GDBserver support on powerpc-lynxos.
1351
f75d858b
MK
13522010-09-01 Marc Khouzam <marc.khouzam@ericsson.com>
1353
1354 * mi/mi-main.c (mi_cmd_list_target_features): Add `reverse'
1355 as a feature reported by -list-target-features.
1356
0482b03b
JB
13572010-09-01 Joel Brobecker <brobecker@adacore.com>
1358
1359 * features/Makefile (WHICH): Add rs6000/powerpc-32.
1360 (powerpc-32.o, powerpc-32.c): New rules.
1361 (clean): Also remove powerpc-32.c.
1362 * regformats/rs6000/powerpc-32.dat: Generate.
1363
710e1a31
SW
13642010-08-31 Sami Wagiaalla <swagiaal@redhat.com>
1365
1366 * symfile.c (reread_symbols): Use psymbol_bcache_free, and
1367 psymbol_bcache_init.
1368 * psymtab.h (psymbol_bcache_init): New function prototype.
1369 (psymbol_bcache_free): New function prototype.
1370 (psymbol_bcache_get_bcache): New function prototype.
1371 * psymtab.c (psymbol_bcache_init): New function.
1372 (psymbol_bcache_free): New function.
1373 (psymbol_bcache_full): New function.
1374 (psymbol_bcache_get_bcache): New function.
1375 (add_psymbol_to_bcache): use psymbol_bcache_full.
1376 * objfiles.h (psymbol_cache): Change type of psymbol_cache to
1377 psymbol_bcache.
1378 * symmisc.c (print_symbol_bcache_statistics): Updated.
1379 (print_objfile_statistics): Updated.
1380 * objfiles.c (allocate_objfile): Use psymbol_bcache_init to initialize
1381 psymbol_cache.
1382 (free_objfile): Use psymbol_bcache_free.
1383
64382290
TT
13842010-08-31 Tom Tromey <tromey@redhat.com>
1385
1386 PR c++/11961:
1387 * dwarf2read.c (new_symbol_full) <DW_TAG_template_type_param>:
1388 Don't set TYPE_NAME on the type.
1389
8bbed405
MS
13902010-08-31 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
1391
1392 * infrun.c (set_exec_direction_func): Error out if target does not
1393 support reverse execution.
1394
06253dd3
JK
13952010-08-31 Jan Kratochvil <jan.kratochvil@redhat.com>
1396
1397 Make linux_get_siginfo_type `type *' unique.
1398 * linux-tdep.c (linux_gdbarch_data_handle, struct linux_gdbarch_data)
1399 (init_linux_gdbarch_data, get_linux_gdbarch_data): New.
1400 (linux_get_siginfo_type): New variable linux_gdbarch_data. Initialize
1401 it. Use linux_gdbarch_data->siginfo_type as a persistent storage.
1402 (_initialize_linux_tdep): New.
1403
b8edc417
JK
14042010-08-31 Jan Kratochvil <jan.kratochvil@redhat.com>
1405
1406 Code cleanup.
1407 * defs.h (find_memory_region_ftype): New typedef.
1408 (exec_set_find_memory_regions): Use it.
1409 * exec.c (exec_set_find_memory_regions): Use find_memory_region_ftype.
1410 * fbsd-nat.c (fbsd_find_memory_regions): Likewise.
1411 * gcore.c (objfile_find_memory_regions): Likewise.
1412 * gnu-nat.c (gnu_find_memory_regions): Likewise.
1413 * linux-nat.c (linux_nat_find_memory_regions): Likewise.
1414 * procfs.c (iterate_over_mappings_cb_ftype): Remove.
1415 (iterate_over_mappings): Rename iterate_over_mappings_cb_ftype to
1416 find_memory_region_ftype.
1417 (insert_dbx_link_bpt_in_region): Likewise.
1418 (iterate_over_mappings): Likewise. Drop the comment part about the
1419 function prototype.
1420 (find_memory_regions_callback): Use find_memory_region_ftype.
1421 (proc_find_memory_regions): Likewise.
1422 (info_mappings_callback): Rename iterate_over_mappings_cb_ftype to
1423 find_memory_region_ftype.
1424 * target.c (dummy_find_memory_regions): Use find_memory_region_ftype.
1425 * target.h (struct target_ops) <to_find_memory_regions>: Likewise.
1426
cbd70537
SW
14272010-08-31 Sami Wagiaalla <swagiaal@redhat.com>
1428
1429 * psymtab.c (add_psymbol_to_bcache): Remove 'static' from
1430 'static partial_symbol psymbol'.
1431 (psymbol_hash): New function.
1432 (psymbol_compare): New function.
1433 * bcache.c (hash_continue): New.
1434 (hash): Use hash_continue.
1435 * bcache.c: Add hash_function and compare_function
1436 pointers to bcache struct.
1437 (bcache_full): Use bcache->hash_function, and
1438 bcache->compare_function.
1439 (bcache_compare): New function.
1440 (bcache_xmalloc): Take hash_function and
1441 compare_function arguments and initialize the
1442 bcach's pointers.
1443 Updated comment.
1444 * objfiles.c (allocate_objfile): Updated.
1445 * symfile.c (reread_symbols): Updated.
1446 * python/py-type.c (typy_richcompare): Updated.
1447
03f17ccf
TT
14482010-08-30 Andre Poenitz <andre.poenitz@nokia.com>
1449 Tom Tromey <tromey@redhat.com>
1450
1451 PR python/11792:
1452 * python/py-value.c (valpy_get_dynamic_type): New function.
1453 (value_object_getset): Add "dynamic_type".
1454 (valpy_get_type): Fail on error.
1455
25b41d01
YQ
14562010-08-30 Yao Qi <yao@codesourcery.com>
1457
1458 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): New.
1459 (arm_linux_syscall_next_pc): New.
1460 (arm_linux_copy_svc): Use arm_linux_sigreturn_return_addr instead.
1461 (arm_linux_init_abi): Initialize syscall_next_pc.
1462 * arm-tdep.c (thumb_get_next_pc_raw): Get next pc of SWI in Thumb mode.
1463 (arm_get_next_pc_raw): Get next pc of SWI in ARM mode.
1464 * arm-tdep.h (struct gdbarch_tdep): Add a function pointer syscall_next_pc.
1465 Declare arm_frame_is_thumb.
1466
5760d0ab
JK
14672010-08-30 Jan Kratochvil <jan.kratochvil@redhat.com>
1468
1469 Code cleanup.
1470 * breakpoint.c (bpstat_alloc): Remove unused prototype.
1471 (bpstat_alloc): Change parameters cbs to bs_link_pointer. Adjust the
1472 code.
1473 (bpstat_stop_status): Change root_bs into bs_head and bs_link. Adjust
1474 calls of bpstat_alloc. Remove explicit bs chain termination.
1475
46a96992
JK
14762010-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1477
1478 Code cleanup.
1479 * linux-nat.c (pull_pid_from_list): Rename status to statusp.
1480 (my_waitpid): Likewise.
1481
36374493
DE
14822010-08-27 Doug Evans <dje@google.com>
1483
1484 * dwarf2read.c (dw2_require_line_header): Read from .debug_types
1485 as appropriate.
1486
8b93c54c
TT
14872010-08-27 Tom Tromey <tromey@redhat.com>
1488
1489 * dwarf2read.c (dwarf2_attach_fields_to_type): Don't set
1490 TYPE_FIELD_IGNORE_BITS.
1491
16be1145
DE
14922010-08-27 Doug Evans <dje@google.com>
1493
1494 * dwarf2read.c (dwarf2_per_objfile_free): Reorganize buffers to match
1495 the order they're defined in. munmap .debug_types buffer.
1496
e254ef6a
DE
14972010-08-26 Doug Evans <dje@google.com>
1498
1499 * dwarf2read.c (dw2_require_full_path): Rename parameter cu to per_cu.
1500 (dw2_forget_cached_source_info): Rename local cu to per_cu.
1501 (dw2_lookup_symtab, dw2_do_expand_symtabs_matching): Ditto.
1502 (dw2_print_stats, dw2_expand_all_symtabs): Ditto.
1503 (dw2_expand_symtabs_with_filename, dw2_find_symbol_file): Ditto.
1504 (dw2_find_symbol_file, dw2_expand_symtabs_matching): Ditto.
1505 (dw2_map_symbol_filenames, dwarf2_initialize_objfile): Ditto.
1506 (dwarf2_free_objfile, write_one_signatured_type): Ditto.
1507 (write_psymtabs_to_index): Ditto.
1508
ae53ffa4
PA
15092010-08-26 Pedro Alves <pedro@codesourcery.com>
1510
1511 * NEWS: Mention libthread_db debugging with core files.
1512
c6da4cef
DE
15132010-08-26 Doug Evans <dje@google.com>
1514
1515 * dwarf2read.c (dwarf2_build_include_psymtabs): Remove unnecessary
1516 forward decl. Pass pst->dirname to dwarf_decode_lines.
1517 (psymtab_include_file_name): New function.
1518 (dwarf_decode_lines): Call it. Update comments.
1519
cd02d79d
PA
15202010-08-25 Pedro Alves <pedro@codesourcery.com>
1521
1522 * dwarf2read.c (inherit_abstract_dies): Handle origin die's
1523 compilation unit being different from target die's.
1524
673bfd45
DE
15252010-08-24 Doug Evans <dje@google.com>
1526
1527 PR symtab/11942
1528 * dwarf2read.c (dwarf2_per_objfile): New members debug_info_type_hash,
1529 debug_types_type_hash.
1530 (dwarf2_cu, dwarf2_per_cu_data): Delete member type_hash.
1531 All uses updated.
1532 (lookup_die_type): Renamed from tag_type_to_tag. First look in
1533 appropriate type_hash table. All callers updated.
1534 (allocate_signatured_type_table): Renamed from
1535 allocate_signatured_type_hash_table. All callers updated.
1536 (create_signatured_type_table_from_index): Renamed from
1537 create_signatured_type_hash_from_index. All callers updated.
1538 (read_die_type): Add comment. Move actual reading to ...
1539 (read_die_type_1): ... here. New function.
1540 (follow_die_ref_or_sig): Tweak comment.
1541 (set_die_type): Rewrite to use appropriate choice of
1542 debug_info_type_hash or debug_types_type_hash.
1543 (get_die_type_at_offset): New function.
1544 (get_die_type): Call it.
1545
e8fd65ef
JK
15462010-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1547
1548 * python/py-type.c (typy_richcompare): Initialize worklist.
1549
9779414d
DJ
15502010-08-24 Daniel Jacobowitz <dan@codesourcery.com>
1551 Kazu Hirata <kazu@codesourcery.com>
1552 Jonathan Larmour <jifl@eCosCentric.com>
1553
1554 * arm-tdep.c: Include features/arm-with-m.c.
1555 (arm_psr_thumb_bit): New. Update all uses of CPSR_T to
1556 call this function.
1557 (arm_pc_is_thumb): Add a gdbarch argument. Update all callers.
1558 Check is_m after force-mode.
1559 (arm_gdbarch_init): Check the binary before the target description.
1560 Add check for M profile attribute. If we have an M-profile device,
1561 but no target register description, use arm-with-m. Recognize the
1562 new org.gnu.gdb.arm.m-profile feature and its xpsr register.
1563 (_initialize_arm_tdep): Call initialize_tdesc_arm_with_m.
1564 * arm-tdep.h (XPSR_T): Define.
1565 (struct gdbarch_tdep): Add is_m member.
1566 * features/arm-m-profile.xml, features/arm-with-m.c,
1567 features/arm-with-m.xml: New files.
1568
9dc481d3
DE
15692010-08-23 Doug Evans <dje@google.com>
1570
1571 * dwarf2read.c (read_structure_type): Add comment.
1572 (read_enumeration_type): Add comment.
1573 (process_enumeration_scope): Move definition of some locals
1574 closer to their use.
1575 (read_namespace_type): Add comment.
e71ec853 1576 (set_die_type): Fix typo in comment.
9dc481d3 1577
f9ffd4bb
TT
15782010-08-23 Tom Tromey <tromey@redhat.com>
1579
1580 PR python/11145:
1581 * python/py-value.c: Include expression.h.
1582 (valpy_do_cast): New function.
1583 (valpy_cast): Use it.
1584 (valpy_dynamic_cast): New function.
1585 (valpy_reinterpret_cast): Likewise.
1586 (value_object_methods): Add dynamic_cast, reinterpret_cast.
1587
96f73ba5
TT
15882010-08-23 Tom Tromey <tromey@redhat.com>
1589
1590 PR python/11391:
1591 * python/py-value.c (valpy_nonzero): Don't throw error for other
1592 Value types.
1593
d839c8a4
TT
15942010-08-23 Tom Tromey <tromey@redhat.com>
1595
1596 PR python/10676:
1597 * python/py-type.c: Include bcache.h, vec.h.
1598 (struct type_equality_entry): New.
1599 (compare_strings): New function.
1600 (check_types_equal): Likewise.
1601 (check_types_worklist): Likewise.
1602 (typy_richcompare): Likewise.
1603 (type_object_type): Set tp_richcompare field.
1604
05d0e1e7
TT
16052010-08-23 Tom Tromey <tromey@redhat.com>
1606
1607 PR python/10953:
1608 * python/py-type.c (typy_fields): Call check_typedef.
1609 (typy_template_argument): Add TRY_CATCH.
1610
702c2711
TT
16112010-08-23 Tom Tromey <tromey@redhat.com>
1612
1613 PR python/11915:
1614 * python/py-type.c (typy_array): New function.
1615 (type_object_methods): Add "array".
1616
4a532131
PA
16172010-08-20 Pedro Alves <pedro@codesourcery.com>
1618
1619 * python/python.c: Include "serial.h".
1620 (gdbpy_event_fds): Change type to `struct serial *' a array from
1621 int array.
1622 (gdbpy_run_events): Change parameters. Use serial_readchar in
1623 place of read.
1624 (gdbpy_post_event): Use serial_write in place of write.
1625 (gdbpy_initialize_events): Use serial_pipe instead of pipe, and
1626 serial_async in place of add_file_handler.
1627
58f07bae
PA
16282010-08-20 Pedro Alves <pedro@codesourcery.com>
1629
1630 * serial.h (gdb_pipe, serial_pipe): Declare.
1631 * serial.c (serial_interface_lookup): Take a const char pointer.
1632 (serial_fdopen): Rename to ...
1633 (serial_fdopen_ops): ... this. Add an OPS parameter and use it.
1634 Call the OPS' fdopen function if there is one.
1635 (serial_fdopen): Rewrite as wrapper to serial_fdopen_ops.
1636 (serial_pipe): New.
1637 (struct serial_ops) <fdopen>: New field.
1638
1639 * ser-mingw.c (free_pipe_state):
1640 (free_pipe_state): Close output on non-pex pipes.
1641 (pipe_windows_fdopen): New.
1642 (gdb_pipe): New.
1643 (_initialize_ser_windows): Register pipe_windows_fdopen.
1644 * ser-go32.c (gdb_pipe): New.
1645 * ser-pipe.c (pipe_close): Close file descriptor even if there's
1646 no state pointer.
1647 (pipe_ops): Delete.
1648 (gdb_pipe): New.
1649
3da10d80
KS
16502010-08-20 Keith Seitz <keiths@redhat.com>
1651
1652 PR symtab/11465:
889bf7c5 1653 * dwarf2read.c (struct delayed_method_info): New struct.
3da10d80
KS
1654 (struct dwarf2_cu): Add vector method_list.
1655 (scan_partial_symbols): Count methods for union, class, structure,
1656 and interface types.
1657 (add_to_method_list): New function.
1658 (free_delayed_list): New function.
1659 (compute_delayed_physnames): New function.
1660 (process_full_comp_unit): Make a cleanup for the CU's delayed
1661 physname list, compute the delayed physnames, and free the
1662 the list.
1663 (dwarf2_add_member_fn): For C++ and Java, delay the computation
1664 of the physname until after the CU is read.
1665
1666 * dwarf2read.c (read_structure_type): Check if the current
1667 DIE's type was already completed after dwarf2_full_name
1668 was called.
889bf7c5 1669
ca11e899
SS
16702010-08-19 Stan Shebs <stan@codesourcery.com>
1671
1672 * NEWS: Mention some additional changes.
1673
4d2dc20a
TT
16742010-08-19 Tom Tromey <tromey@redhat.com>
1675
1676 * Makefile.in (install-python): Add DESTDIR.
1677
d30f5e1f
DE
16782010-08-19 Doug Evans <dje@google.com>
1679
1680 PR exp/11926
1681 * parser-defs.h (parse_float, parse_c_float): Declare.
1682 * parse.c (parse_float, parse_c_float): New function.
1683 * c-exp.y (parse_number): Call parse_c_float.
1684 * objc-exp.y (parse_number): Ditto.
1685 * p-exp.y (parse_number): Ditto. Use ANSI/ISO-style definition.
1686 * jv-exp.y (parse_number): Call parse_float, fix suffix handling.
1687
2837d59e
JB
16882010-08-19 Joel Brobecker <brobecker@adacore.com>
1689
1690 * psymtab.c (map_symbol_filenames_psymtab): Call FUN with
1691 the arguments in the correct order.
1692 * symtab.c (maybe_add_partial_symtab_filename): Declare
1693 the arguments in the correct order.
1694
35633fef
JK
16952010-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1696
1697 * varobj.c (varobj_create): Replace variable old_fi with old_id,
1698 initialize it by null_frame_id, wrap its usage by get_frame_id,
1699 frame_id_p and frame_find_by_id.
1700
94f7449c
TT
17012010-08-18 Tom Tromey <tromey@redhat.com>
1702
1703 PR python/11900:
1704 * configure: Rebuild.
1705 * configure.ac: Add install-python to CONFIG_INSTALL.
1706 * Makefile.in (install-python): New.
1707
f3574227
DE
17082010-08-18 Doug Evans <dje@google.com>
1709
1710 * gdb_assert.h (gdb_assert_not_reached): New macro.
1711 (gdb_assert_fail): Fix typo in comment.
1712 * avr-tdep.c (avr_return_value): Use gdb_assert_not_reached instead of
1713 gdb_assert (0).
1714 * darwin-nat.c (darwin_check_new_threads): Ditto.
1715 * dwarf2read.c (dwarf2_get_section_info): Ditto.
1716 (munmap_section_buffer): Ditto.
1717 * m32c-tdep.c (make_types): Ditto.
1718 (m32c_decode_srcdest4, m32c_decode_sd23, m32c_frame_base): Ditto.
1719 * macroexp.c (get_character_constant): Ditto.
1720 (get_string_literal): Ditto.
1721 * mep-tdep.c (mep_pseudo_cr_size): Ditto.
1722 (mep_pseudo_cr_index, mep_register_type): Ditto.
1723 (mep_pseudo_register_read, mep_pseudo_register_write): Ditto.
1724 (mep_get_insn, mep_analyze_prologue): Ditto.
1725 * objfiles.c (qsort_cmp): Ditto.
1726 * prologue-value.c (pv_is_identical): Ditto.
1727 * record.c (record_get_loc): Ditto.
1728 * value.c (value_static_field): Ditto.
1729 * xtensa-tdep.c (call0_track_op): Ditto.
1730
c92817ce
TT
17312010-08-18 Tom Tromey <tromey@redhat.com>
1732
1733 PR symtab/11919:
1734 * gdbtypes.c (lookup_struct_elt_type): Clean up error emission.
1735 * parse.c (parse_field_expression): Use RETURN_MASK_ERROR. Move
1736 name-copying lower. Document exception behavior.
1737 * completer.c (expression_completer): Catch exceptions from
1738 parse_field_expression.
1739
856d6f99
PA
17402010-08-18 Pedro Alves <pedro@codesourcery.com>
1741
1742 PR corefile/8210
1743
1744 * linux-thread-db.c (add_thread_db_info): Skip glibc/BZ5983
1745 workaround on core files.
1746 (try_thread_db_load_1): Don't try enabling thread event reporting
1747 on core files.
1748 (thread_db_load): Allow thread_db on core files.
1749 (attach_thread): Don't check thread signals on core files, nor try
1750 really attaching to the thread, nor enabling thread event event
1751 reporting.
1752 (thread_db_detach): Don't try disabing thread event reporting or
1753 removing thread event breakpoints when debugging a core file.
1754 (find_new_threads_callback): Don't try enabling thread event
1755 reporting on core files.
1756 (thread_db_find_new_threads_2): Don't look for a stopped lwp when
1757 debugging a core file.
1758 (thread_db_find_new_threads): Don't update thread
1759 cores (processors) when debugging a core (dump).
1760
261b8d08
PA
17612010-08-18 Pedro Alves <pedro@codesourcery.com>
1762
1763 PR corefile/8210
1764
1765 * corelow.c (add_to_thread_list): Don't use
1766 gdbarch_core_reg_section_encodes_pid. Use bfd_core_file_pid.
1767 (get_core_register_section): Don't use
1768 gdbarch_core_reg_section_encodes_pid.
1769
1770 * gdbarch.sh (core_reg_section_encodes_pid): Delete.
1771 * gdbarch.h, gdbarch.c: Regenerate.
1772 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Don't set
1773 gdbarch_core_reg_section_encodes_pid.
1774 * i386-sol2-tdep.c (i386_sol2_init_abi): Ditto.
1775 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Ditto.
1776 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Ditto.
1777
f9b42018
YQ
17782010-08-18 Yao Qi <yao@codesourcery.com>
1779
1780 * MAINTAINERS : Add myself under Write After Approval.
1781
def98928
TT
17822010-08-17 Tom Tromey <tromey@redhat.com>
1783
1784 * NEWS: Mention template parameter support.
1785
0807b50c
PA
17862010-08-17 Pedro Alves <pedro@codesourcery.com>
1787
1788 PR breakpoints/11371
1789
1790 * breakpoint.c (decref_bp_location): Assert the reference count is
1791 sane.
1792
f431efe5
PA
17932010-08-17 Pedro Alves <pedro@codesourcery.com>
1794
1795 PR breakpoints/11371
1796
1797 * breakpoint.c (breakpoint_init_inferior): Decrement the
1798 location's reference count instead of deleting right away.
1799 (bpstat_free): Decrement the location's reference count. Make
1800 static.
1801 (bpstat_copy): Increment the location's reference count.
1802 (bpstat_find_breakpoint): Adjust.
1803 (bpstat_num): Adjust.
1804 (print_it_typical): Adjust. Use the breakpoint pointer in the
1805 bpstat instead of the location's owner.
1806 (bpstat_alloc): Remove const qualifier from the 'bl' parameter.
1807 Adjust to record the location's owner in the bpstat.
1808 (watchpoint_check): Use the breakpoint pointer in the bpstat
1809 instead of the location's owner.
1810 (bpstat_check_breakpoint_conditions): Don't handle
1811 bp_watchpoint_scope here. Use the breakpoint pointer in the
1812 bpstat instead of the location's owner.
1813 (bpstat_stop_status): Defer inferior function calls to after
1814 building the bpstat list. Handle bp_watchpoint_scope here. Use
1815 the breakpoint pointer in the bpstat instead of the location's
1816 owner.
1817 (bpstat_what): Use the breakpoint pointer in the bpstat instead of
1818 the location's owner.
1819 (free_bp_location): Don't walk bpstats clearing locations.
1820 (incref_bp_location): New.
1821 (decref_bp_location): New.
1822 (breakpoint_auto_delete): Use the breakpoint pointer in the bpstat
1823 instead of the location's owner.
1824 (update_global_location_list): Clear the location's owner, and
1825 decrement the location's reference count instead of deleting it
1826 right away.
1827 (breakpoint_retire_moribund): Decrement the location's reference
1828 count instead of deleting it right away.
1829 (bpstat_remove_bp_location): Delete.
1830 (bpstat_remove_breakpoint): New.
1831 (bpstat_remove_bp_location_callback): Delete.
1832 (bpstat_remove_breakpoint_callback): New.
1833 (delete_breakpoint): Iterate over all threads' stop_bpstat's
1834 clearing references to the breakpoint that is being deleted.
1835
1836 * breakpoint.h (struct bp_location) <refc>: New field.
1837 <owner>: Update comments.
1838 (bpstat_free): Delete declaration.
1839 (struct bpstats): Change the type of the breakpoint_at field to
1840 struct breakpoint point, from struct bp_location pointer. Add new
1841 field bp_location_at.
1842
14c0d4e1
TT
18432010-08-16 Tom Tromey <tromey@redhat.com>
1844
1845 * NEWS: Fix typo.
1846
b56df873
TT
18472010-08-16 Tom Tromey <tromey@redhat.com>
1848
1849 * NEWS: Mention watch -location.
1850
d63d0675
JK
18512010-08-16 Jan Kratochvil <jan.kratochvil@redhat.com>
1852
1853 * breakpoint.c (update_watchpoint): Add source empty line. Prefer
1854 EXP_STRING_REPARSE to EXP_STRING.
1855 (watch_command_1): Set also EXP_STRING_REPARSE.
1856 (delete_breakpoint): Free also EXP_STRING_REPARSE.
1857 * breakpoint.h (struct breakpoint): New field exp_string_reparse.
1858 Update comment for exp_string.
1859
06a64a0b
TT
18602010-08-16 Tom Tromey <tromey@redhat.com>
1861
1862 * value.c (release_value): Clear 'next' pointer.
1863 * breakpoint.c (watch_command_1): Add 'just_location' argument.
1864 (watch_command_wrapper): Update.
1865 (watch_maybe_just_location): New function.
1866 (watch_command): Update.
1867 (rwatch_command_wrapper): Update.
1868 (rwatch_command): Update.
1869 (awatch_command_wrapper): Update.
1870 (awatch_command): Update.
1871 (check_for_argument): New function.
1872 (_initialize_breakpoint): Update help text.
1873
f96b8fa0
UW
18742010-08-14 Ulrich Weigand <uweigand@de.ibm.com>
1875
1876 * arm-tdep.c (arm_push_dummy_call): Handle pointers to
1877 typedef'ed function types correctly.
1878
4eb54052
TT
18792010-08-13 Tom Tromey <tromey@redhat.com>
1880
1881 * python/python-internal.h (gdbpy_get_hook_function): Don't
1882 declare.
1883
44be957e
JK
18842010-08-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1885
ba720883 1886 * cli/cli-logging.c (logging_overwrite, logging_redirect): Make them
44be957e
JK
1887 static.
1888
76d8b686
KW
18892010-08-13 Ken Werner <ken.werner@de.ibm.com>
1890
1891 * python/python.c (gdbpy_solib_name): Remove the const qualifier of
1892 the format strings to be compatible with Python 2.4.
1893
8dedea02
VP
18942010-08-13 Vladimir Prus <vladimir@codesourcery.com>
1895
1896 Easier and more stubborn MI memory read commands.
1897
1898 * mi/mi-cmds.c (mi_cmds): Register data-read-memory-bytes
1899 and data-write-memory-bytes.
1900 * mi/mi-cmds.h (mi_cmd_data_read_memory_bytes)
1901 (mi_cmd_data_write_memory_bytes): New.
1902 * mi/mi-main.c (mi_cmd_data_read_memory): Use regular target_read.
1903 (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory_bytes):
1904 New.
1905 (mi_cmd_list_features): Add "data-read-memory-bytes" feature.
1906 * target.c (target_read_until_error): Remove.
1907 (read_whatever_is_readable, free_memory_read_result_vector)
1908 (read_memory_robust): New.
1909 * target.h (target_read_until_error): Remove.
1910 (struct memory_read_result, free_memory_read_result_vector)
1911 (read_memory_robust): New.
1912
1d9ec526
HZ
19132010-08-13 Hui Zhu <teawater@gmail.com>
1914
1915 * dwarf2read.c (load_partial_comp_unit): Initialize free_cu_cleanup.
1916 (read_comp_unit): Initialize back_to.
1917
98bfdba5
PA
19182010-08-12 Daniel Jacobowitz <dan@codesourcery.com>
1919 Pedro Alves <pedro@codesourcery.com>
1920
1921 * dwarf2read.c: Include "c-lang.h" and "valprint.h".
1922 (struct dwarf2_per_objfile) <reading_partial_symbols>: New field.
1923 (struct partial_die_info) <has_template_arguments>: New field.
1924 <num_attrs>: Change type to unsigned char.
1925 <building_fullname>: New field.
1926 (dwarf2_build_psymtabs_hard): Set reading_partial_symbols. Only
1927 allocate a CU if we don't have one already. Add a cleanup for the
1928 CU.
1929 (partial_die_full_name): Handle template arguments not in
1930 DW_AT_name.
1931 (dwarf2_psymtab_to_symtab): Clear reading_partial_symbols.
1932 (load_full_comp_unit): Only allocate a CU if we don't have one
1933 already.
1934 (do_ui_file_peek_last): New.
1935 (dwarf2_compute_name): Handle template parameters not in
1936 DW_AT_name.
1937 (read_comp_unit): Read and free abbrevs if not read yet.
1938 (load_partial_dies): Handle template arguments not in DW_AT_name.
1939 (find_partial_die): If we have a CU, but no a partial dies yet,
1940 also read in the CU.
1941 (dwarf2_const_value_attr): New, abstracted out from
1942 dwarf2_const_value.
1943 (dwarf2_const_value, dwarf2_const_value_data): Adjust to use
1944 dwarf2_const_value_attr.
1945 (determine_prefix): Detect and break loops created by RCVT's debug
1946 info.
1947 (maybe_queue_comp_unit): Bail out early if reading partial
1948 symbols.
1949 (follow_die_offset): Load full CU if we have no dies.
1950 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Make public.
1951 * dwarf2loc.h (dwarf2_evaluate_loc_desc): Declare.
1952
ca5c20b6 19532010-08-11 Tom Tromey <tromey@redhat.com>
889bf7c5 1954 Phil Muldoon <pmuldoon@redhat.com>
ca5c20b6
PM
1955
1956 * python/python.c (gdbpy_run_events): New function.
1957 (gdbpy_post_event): Likewise.
1958 (gdbpy_initialize_events): Likewise.
1959 (_initialize_python): Call gdbpy_initialize_events.
1960
7346b668
KW
19612010-08-11 Ken Werner <ken.werner@de.ibm.com>
1962
1963 * gdb/valarith.c (vector_binop): New function.
1964 (scalar_binop): Likewise.
1965 (value_binop): Call scalar_binop or vector_binop depending on the types.
1966 * gdb/eval.c (ptrmath_type_p): Return 0 in case of TYPE_VECTOR.
1967 (evaluate_subexp_with_coercion): Add vector check to not convert vectors
1968 to pointers.
1969 * gdb/value.c (coerce_array): Add vector check to not coerce vectors.
1970
62183e15
TT
19712010-08-11 Brad Roberts <braddr@puremagic.com>
1972
1973 * d-lang.c (extract_identifiers): Handle multiple digits.
1974
39d7b0e2
JK
19752010-08-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1976
1977 Code cleanup.
1978 * dummy-frame.c (dummy_frame_unwinder): Remove its static qualifier.
1979 Rename to dummy_frame_unwind.
1980 (dummy_frame_unwind): Remove.
1981 * dummy-frame.h (dummy_frame_unwind): Reference directly the struct.
1982 * frame-unwind.c (frame_unwind_init): Use address of
1983 dummy_frame_unwind and inline_frame_unwind.
1984 * frame.c (create_sentinel_frame): Use address of
1985 sentinel_frame_unwind.
1986 * inline-frame.c (inline_frame_unwinder): Rename to
1987 inline_frame_unwind.
1988 (inline_frame_unwind): Remove.
1989 * inline-frame.h (inline_frame_unwind): Reference directly the struct.
1990 * sentinel-frame.c (sentinel_frame_unwinder): Rename to
1991 sentinel_frame_unwind.
1992 (sentinel_frame_unwind): Remove.
1993 * sentinel-frame.h (sentinel_frame_unwind): Reference directly the
1994 struct.
1995
9f9a8002
JK
19962010-08-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1997
1998 Code cleanup.
1999 * frame-unwind.c (frame_unwind_find_by_frame): Remove the return type
2000 and returned value. New comment from frame-unwind.h.
2001 * frame-unwind.h (frame_unwind_find_by_frame): Remove the return type.
2002 Extend the comment.
2003 * frame.c (get_frame_id, frame_unwind_register_value)
2004 (create_new_frame, get_prev_frame_1, frame_unwinder_is)
2005 (get_frame_type, frame_unwind_arch): Do not use the return value of
2006 frame_unwind_find_by_frame.
2007
cb2e07a6 20082010-08-11 Phil Muldoon <pmuldoon@redhat.com>
889bf7c5 2009 Thiago Jung Bauermann <bauerman@br.ibm.com>
cb2e07a6
PM
2010 Tom Tromey <tromey@redhat.com>
2011
2012 * python/python.c (gdbpy_solib_address): New function.
2013 (gdbpy_decode_line): Likewise.
2014
c29c521f
TT
20152010-08-10 Tom Tromey <tromey@redhat.com>
2016
2017 Revert gdb-add-index addition:
2018 * Makefile.in (install-only): Don't install gdb-add-index.
2019 * gdb-add-index.sh: Remove.
2020
0c012db1
KB
20212010-08-09 Kevin Buettner <kevinb@redhat.com>
2022
2023 * remote-sim.c (gdbsim_xfer_inferior_memory): Replace
2024 `target_has_execution' check with `to_has_memory' check.
2025 (gdbsim_has_all_memory, gdbsim_has_memory): New functions.
2026 (init_gdbsym_ops): Initialize relevant fields of `gdbsim_ops'
2027 with `gdbsim_has_all_memory' and `gdbsim_has_memory'.
2028
db04efe6
KB
20292010-08-09 Kevin Buettner <kevinb@redhat.com>
2030
2031 * remote-sim.c (program_loaded, gdbsim_desc, remote_sim_ptid)
2032 (resume_siggnal, resume_step): Move these static globals...
2033 (struct sim_inferior_data): ...into this new struct.
2034 (sim_inferior_data_key, next_pid, sim_argv, gdbsim_is_open):
2035 New static globals.
2036 (gdb_callback, callbacks_initialized): Move these globals to
2037 a point earlier in the file.
2038 (check_for_duplicate_sim_descriptor, get_sim_inferior_data)
2039 (get_sim_inferior_data_by_ptid, sim_inferior_data_cleanup)
2040 (gdbsim_close_inferior, gdbsim_resume_inferior)
2041 (gdbsim_stop_inferior): New functions.
2042 (SIM_INSTANCE_NOT_NEEDED, SIM_INSTANCE_NEEDED, INITIAL_PID):
2043 New constants.
2044 (gdbsim_fetch_register, gdbsim_store_register, gdbsim_load)
2045 (gdbsim_create_inferior, gdbsim_open, gdbsim_close, gdbsim_resume)
2046 (gdbsim_stop, gdbsim_cntrl_c, gdbsim_wait)
2047 (gdbsim_xfer_inferior_memory, gdbsim_files_info)
2048 (gdbsim_mourn_inferior, simulator_command, gdbsim_thread_alive,
2049 (gdbsim_pid_to_str): Invoke `get_sim_inferior_data' to set
2050 new local variable `sim_data' in each of these functions. Use
2051 `sim_data' to reference former globals `program_loaded',
2052 `gdbsim_desc', `remote_sim_ptid', `resume_siggnal', and
2053 `resume_step'.
2054 (gdbsim_open): Remove local variable `argv'. Put results of call
2055 to `gdb_buildargv' in `sim_argv' rather than in `argv'. Don't
2056 make a cleanup for it. Free it though when a sim instance cannot
2057 be obtained.
2058 (gdbsim_close): Free sim_argv and null it out as appropriate.
2059 Close sim instances in all inferiors.
2060 (gdbsim_cntrl_c): Stop all inferiors.
2061 (gdbsim_wait):
2062 (_initialize_remote_sim): Initialize `sim_inferior_data_key'.
2063
e37fd15a
SW
20642010-08-09 Sami Wagiaalla <swagiaal@redhat.com>
2065
2066 * dwarf2read.c (new_symbol): Add symbol to variable list at end of
2067 function after symbol construction is complete.
2068 Do the same for template symbol addition to template_symbols list.
2069
45c58896
SW
20702010-08-09 Sami Wagiaalla <swagiaal@redhat.com>
2071
2072 * symtab.c (symbol_get_demangled_name): Remove assertion and
2073 return NULL when language_specific.cplus_specific is not initialized.
2074 * stabsread.c (define_symbol): Set the name before calling
2075 cp_scan_for_anonymous_namespaces.
2076
33e5013e
SW
20772010-08-09 Sami Wagiaalla <swagiaal@redhat.com>
2078
2079 * symtab.h: Renamed SYMBOL_INIT_LANGUAGE_SPECIFIC to
2080 SYMBOL_SET_LANGUAGE.
2081 (symbol_init_language_specific): Renamed to symbol_set_language.
2082 * symtab.c (symbol_init_language_specific): Removed redundant check
2083 for language_cplus.
2084 Renamed to symbol_set_language.
2085 * stabsread.c (define_symbol): Updated.
2086 (read_enum_type): Updated
2087 * psymtab.c (add_psymbol_to_bcache): Updated.
2088 * minsyms.c (install_minimal_symbols): Updated.
2089 * coffread.c (process_coff_symbol): SYMBOL_SET_LANGUAGE instead of
2090 SYMBOL_LANGUAGE to set the language.
2091 * minsyms.c (prim_record_minimal_symbol_full): Ditto.
2092 * mdebugread.c (new_symbol): Ditto.
2093 * cp-namespace.c (check_one_possible_namespace_symbol): Ditto.
2094 * dwarf2read.c (new_symbol_full): Ditto.
2095 * jv-lang.c (add_class_symbol): Ditto.
2096
5da1313b
JK
20972010-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2098
2099 * defs.h (make_cleanup_restore_uinteger, make_cleanup_restore_ui_file)
2100 (make_cleanup_restore_page_info)
2101 (set_batch_flag_and_make_cleanup_restore_page_info): New declarations.
2102 * gdbcmd.h (execute_command_to_string): New declaration.
2103 * python/python.c (struct restore_ui_file_closure, restore_ui_file)
2104 (make_cleanup_restore_ui_file): Move to utils.c
2105 (execute_gdb_command) <to_string>: Move ...
2106 * top.c (execute_command_to_string): ... here. Call
2107 set_batch_flag_and_make_cleanup_restore_page_info.
2108 * utils.c (make_cleanup_restore_integer): New source file blank line.
2109 (make_cleanup_restore_uinteger): New.
2110 (struct restore_ui_file_closure, do_restore_ui_file)
2111 (make_cleanup_restore_ui_file): Move here from python/python.c.
2112 (init_page_info) <batch_flag>
2113 (do_restore_page_info_cleanup, make_cleanup_restore_page_info)
2114 (set_batch_flag_and_make_cleanup_restore_page_info): New.
2115
c820c52a
PA
21162010-08-06 Maciej W. Rozycki <macro@codesourcery.com>
2117
2118 * thread.c (add_thread_silent): Use null_ptid instead of
2119 minus_one_ptid while getting rid of stale inferior_ptid.
2120
8da614df
CV
21212010-08-06 Corinna Vinschen <vinschen@redhat.com>
2122
2123 * dwarf2-frame.c (struct dwarf2_cie): Add ptr_size member.
2124 Throughout, call read_encoded_value with ptr_size rather than addr_size.
2125 (decode_frame_entry_1): Remove redundant setting of
2126 addr_size. Call gdbarch_dwarf2_addr_size rather than gdbarch_ptr_bit
2127 to determine addr_size in Dwarf versions < 4. Set ptr_size dependent
2128 on examined frame section. Add comment to explain why.
2129 * gdbarch.sh (dwarf2_addr_size): Define as variable. Add lengthy
2130 comment to explain usage.
2131 * gdbarch.c: Regenerate.
2132 * gdbarch.h: Regenerate.
2133
2134 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set dwarf2_addr_size to 4.
2135
e4195b40
JK
21362010-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2137
2138 Code cleanup.
2139 * varobj.c (varobj_create): Move variables fi, old_fi and block to
2140 a more inner block.
2141
a3217aa0
PA
21422010-08-05 Pedro Alves <pedro@codesourcery.com>
2143
2144 * configure.tgt (alpha*-*-linux*, am33_2.0*-*-linux*, frv-*-*)
2145 (hppa*-*-linux*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
2146 (microblaze*-linux-*, mips*-*-linux*, sh*-*-linux*)
2147 (sparc-*-linux*, sparc64-*-linux*, xtensa*-*-linux*): Add
2148 linux-tdep.o to gdb_target_obs.
2149
e2b4a699 21502010-08-05 Marc Khouzam <marc.khouzam@ericsson.com>
889bf7c5
PA
2151
2152 * mi/mi-main.c (mi_cmd_remove_inferior): Properly access first
e2b4a699 2153 argument.
889bf7c5 2154
50e8a0d5
HZ
21552010-08-05 Hui Zhu <teawater@gmail.com>
2156
2157 * mips-linux-tdep.c(regset.h): New include.
2158 (mips_supply_gregset_wrapper, mips_fill_gregset_wrapper,
2159 mips_supply_fpregset_wrapper, mips_fill_fpregset_wrapper,
2160 mips64_supply_gregset_wrapper, mips64_fill_gregset_wrapper,
2161 mips64_supply_fpregset_wrapper, mips64_fill_fpregset_wrapper,
2162 mips_linux_regset_from_core_section): New functions.
2163 (fetch_core_registers, regset_core_fns): Deleted.
2164 (mips_linux_init_abi): Add mips_linux_regset_from_core_section.
2165 Deleted regset_core_fns.
2166 * mips-tdep.c(mips_gdbarch_init): Initialize tdep->gregset,
2167 tdep->gregset64, tdep->fpregset and tdep->fpregset64.
2168 * mips-tdep.h(gdbarch_tdep): Add gregset, gregset64, fpregset
2169 and fpregset64.
2170
70728992
PA
21712010-08-04 Pedro Alves <pedro@codesourcery.com>
2172
2173 * s390-tdep.c: Include linux-tdep.h.
2174 (s390_gdbarch_init): Call linux_init_abi.
2175
a5ee0f0c
PA
21762010-08-04 Pedro Alves <pedro@codesourcery.com>
2177
2178 * corelow.c (core_pid_to_str): Default to using normal_pid_to_str
2179 instead of printing "Thread" here.
2180 * linux-tdep.c: Include inferior.h.
2181 (linux_core_pid_to_str): New.
2182 (linux_init_abi): New.
2183 * linux-tdep.h (linux_init_abi): Declare.
2184 * alpha-linux-tdep.c: Include linux-tdep.h.
2185 (alpha_linux_init_abi): Call linux_init_abi.
2186 * amd64-linux-tdep.c (amd64_linux_init_abi): Call linux_init_abi.
2187 * arm-linux-tdep.c (arm_linux_init_abi): Call linux_init_abi.
2188 * frv-linux-tdep.c: Include linux-tdep.h
2189 (frv_linux_init_abi): Call linux_init_abi.
2190 * hppa-linux-tdep.c: Include linux-tdep.h
2191 (hppa_linux_init_abi): Call linux_init_abi.
2192 * i386-linux-tdep.c (i386_linux_init_abi): Call linux_init_abi.
2193 * ia64-linux-tdep.c: Include linux-tdep.h.
2194 (ia64_linux_init_abi): Call linux_init_abi.
2195 * m32r-linux-tdep.c: Include linux-tdep.h.
2196 (m32r_linux_init_abi): Call linux_init_abi.
2197 * m68klinux-tdep.c: Include linux-tdep.h.
2198 (m68k_linux_init_abi): Call linux_init_abi.
2199 * microblaze-linux-tdep.c: Include linux-tdep.h.
2200 (microblaze_linux_init_abi): Call linux_init_abi.
2201 * mips-linux-tdep.c: Include linux-tdep.h.
2202 (mips_linux_init_abi): Call linux_init_abi.
2203 * mn10300-linux-tdep.c: Include linux-tdep.h.
2204 (am33_linux_init_osabi): Call linux_init_abi. Rename the
2205 'gdbinfo' parameter to 'info'.
2206 * ppc-linux-tdep.c: Include linux-tdep.h.
2207 (ppc_linux_init_abi): Call linux_init_abi.
2208 * sh-linux-tdep.c: Include linux-tdep.h.
2209 (sh_linux_init_abi): Call linux_init_abi.
2210 * sparc-linux-tdep.c: Include linux-tdep.h.
2211 (sparc32_linux_init_abi): Call linux_init_abi.
2212 * sparc64-linux-tdep.c: Include linux-tdep.h.
2213 (sparc64_linux_init_abi): Call linux_init_abi.
2214 * xtensa-linux-tdep.c: Include linux-tdep.h.
2215 (xtensa_linux_init_abi): Call linux_init_abi.
2216 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): New.
2217 (i386_cygwin_init_abi): Install it as gdbarch_core_pid_to_str
2218 callback.
2219
bc043ef3
DE
22202010-08-03 Doug Evans <dje@google.com>
2221
2222 * breakpoint.c (bpdisp_text): Constify bpdisps.
2223 * solib-svr4.c (solib_break_names): Constify.
2224 (bkpt_names, main_name_list): Constify.
2225 (match_main): Constify soname arg.
63cdd227
DE
2226 (bfd_lookup_symbol): Remove unnecessary forward decl.
2227 Constify symname arg.
bc043ef3
DE
2228 (enable_break): Constify bkpt_namep.
2229 * symtab.c (search_symbols): Constify types, types2, types3, types4.
2230 (symtab_symbol_info): Constify classnames.
2231
585d1eb8
PM
22322010-08-03 Phil Muldoon <pmuldoon@redhat.com>
2233
2234 * NEWS: Document Python value inferior function calls.
2235
2de00c64
DE
22362010-08-02 Doug Evans <dje@google.com>
2237
2238 * dwarf2read.c (dwarf_attr_name): Add DW_AT_GNU_odr_signature.
2239
02d868e8
PP
22402010-07-31 Paul Pluzhnikov <ppluzhnikov@google.com>
2241
2242 * linux-thread-db.c (libthread_db_debug): New variable.
2243 (thread_db_find_new_threads_silently): Control verbosity with it.
2244 (try_thread_db_load_1, try_thread_db_load): Likewise.
2245 (find_new_threads_once): Likewise.
2246 (_initialize_thread_db): Set/show it.
2247
a19cae16
JK
22482010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
2249
2250 * common/signals.c (signals): Move the content to signals.def.
2251 Include it. Remove the INDENT comments.
2252
c2bbed2a
TT
22532010-07-30 Tom Tromey <tromey@redhat.com>
2254
2255 * Makefile.in (install-only): Install gdb-add-index.
2256 * gdb-add-index.sh: New file.
2257
f32b2f09
CR
22582010-07-31 Renquan Cheng <crq@gcc.gnu.org>
2259
2260 * MAINTAINERS: Add myself for write after approval privileges.
2261
1276c759
JK
22622010-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
2263
2264 * symfile.c (addr_section_name): New function.
2265 (addrs_section_compar): Use it.
2266 (addr_info_make_relative): Use it. Move variable sect_name into a more
2267 inner block. Make ".dynbss" and ".sdynbss" checks more strict.
2268
420697bb
TT
22692010-07-30 Tom Tromey <tromey@redhat.com>
2270
2271 * configure: Rebuild.
2272 * configure.ac: Add missing case for Python 2.7.
2273
d0d99561
DD
22742010-07-29 DJ Delorie <dj@redhat.com>
2275
2276 * rx-tdep.c (rx_analyze_prologue): Don't require branches to have
2277 conditions.
2278
0b29bdde
PA
22792010-07-29 Pedro Alves <pedro@codesourcery.com>
2280
2281 * PROBLEMS: Remove mention of all problems.
2282
110ed339
PA
22832010-07-28 Pedro Alves <pedro@codesourcery.com>
2284
2285 PR build/11848
2286 * configure.ac: Check for wresize.
2287 * configure, config.in: Regenerate.
2288 * tui/tui-win.c (make_visible_with_new_height): Wrap wresize call
2289 with HAVE_WRESIZE.
2290
326fd672
TT
22912010-07-28 Tom Tromey <tromey@redhat.com>
2292
2293 PR python/11060:
2294 * python/py-type.c (typy_legacy_template_argument): New function,
2295 extracted from typy_template_argument.
2296 (typy_template_argument): Use TYPE_TEMPLATE_ARGUMENT. Return a
2297 value when needed.
2298
4ac8c4da
TT
22992010-07-28 Oleg Nesterov <oleg@redhat.com>
2300
2301 * remote.c (readchar): Call pop_target in case of SERIAL_ERROR.
2302
053315c2
TT
23032010-07-27 Tom Tromey <tromey@redhat.com>
2304
2305 * dwarf2read.c (dwarf2_const_value_data): Never sign extend.
2306
3ce3b1ba
PA
23072010-07-28 Daniel Jacobowitz <dan@codesourcery.com>
2308
2309 * dwarf2read.c (read_subroutine_type): Improve THIS detection,
2310 handling DW_AT_object_pointer, and workaround GCC PR 43053.
2311
2bb4f988
TT
23122010-07-28 Tom Tromey <tromey@redhat.com>
2313
2314 * Makefile.in (HFILES_NO_SRCDIR): Remove link-warning.h.
2315
74232302
JB
23162010-07-28 Joel Brobecker <brobecker@adacore.com>
2317
2318 * remote.c (remote_download_tracepoint): Add missing gettext markup.
2319 * tracepoint.c (parse_static_tracepoint_marker_definition): Likewise.
2320
385d04dc
JB
23212010-07-28 Joel Brobecker <brobecker@adacore.com>
2322
2323 * breakpoint.c (breakpoint_re_set_one): Move call to set_language
2324 down, just before the block that parse the breakpoint addr_string.
2325
34eaf542
TT
23262010-07-28 Tom Tromey <tromey@redhat.com>
2327
2328 PR c++/9946:
2329 * symfile.c (reread_symbols): Clear template_symbols.
2330 * symtab.h (struct symbol) <is_cplus_template_function>: New
2331 field.
2332 (SYMBOL_IS_CPLUS_TEMPLATE_FUNCTION): New macro.
2333 (struct template_symbol): New.
2334 * symtab.c (lookup_symbol_aux_local): Use
2335 cp_lookup_symbol_imports_or_template.
2336 * objfiles.h (struct objfile) <template_symbols>: New field.
2337 * objfiles.c (relocate_one_symbol): New function.
2338 (objfile_relocate1): Use it. Relocate isolated symbols.
2339 * gdbtypes.h (struct cplus_struct_type) <n_template_arguments,
2340 template_arguments>: New fields.
2341 (TYPE_N_TEMPLATE_ARGUMENTS): New macro.
2342 (TYPE_TEMPLATE_ARGUMENTS): Likewise.
2343 (TYPE_TEMPLATE_ARGUMENT): Likewise.
2344 (lookup_typename): Update.
2345 * gdbtypes.c (lookup_typename): Constify "block" argument.
2346 * dwarf2read.c: Include vec.h.
2347 (symbolp): New typedef.
2348 (read_func_scope): Read template arguments. Allocate a
2349 template_symbol when needed.
2350 (read_structure_type): Read template arguments.
2351 (new_symbol_full): New function, from new_symbol. Handle
2352 DW_TAG_template_type_param and DW_TAG_template_value_param.
2353 (new_symbol): Rewrite as wrapper.
2354 * cp-support.h (cp_lookup_symbol_imports_or_template): Declare.
2355 * cp-namespace.c: Include language.h.
2356 (search_symbol_list): New function.
2357 (cp_lookup_symbol_imports_or_template): Likewise.
2358
d27b3be4
PA
23592010-07-28 Balazs Kezes <rlblaster@gmail.com>
2360
2361 * tui/tui-win.c (make_visible_with_new_height): Resize and move
2362 the command window to the new size and position.
2363
0036e657
PA
23642010-07-28 Balazs Kezes <rlblaster@gmail.com>
2365
a782f43e 2366 * tui/tui-win.c (tui_resize_all): Update the locator's origin's
0036e657
PA
2367 coordinates.
2368
36900355
PA
23692010-07-28 Balazs Kezes <rlblaster@gmail.com>
2370
a782f43e 2371 * tui/tui-io.c (tui_handle_resize_during_io): Call tui_resize_all
36900355 2372 after a detecting a resize.
a782f43e 2373 * tui/tui-win.c (tui_resize_all): Remove tui_set_win_resized_to
36900355
PA
2374 call.
2375
db5e03ae
PA
23762010-07-28 Pedro Alves <pedro@codesourcery.com>
2377
2378 * configure.ac: Check for resize_term.
2379 * configure, config.in: Regenerate.
2380
b71fff68
JB
23812010-07-27 Joel Brobecker <brobecker@adacore.com>
2382
2383 * MAINTAINERS (Write After Approval): Reorder a couple of entries.
2384
9b1c24c8
PA
23852010-07-27 Daniel Jacobowitz <dan@codesourcery.com>
2386
2387 * dwarf2read.c (read_string): Rename to ...
2388 (read_direct_string): ... this.
2389 (skip_one_die, read_attribute_value, dwarf_decode_line_header)
2390 (dwarf_decode_lines, dwarf_decode_macros): Adjust.
2391
00390b84
JK
23922010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2393
2394 * linux-nat.c (linux_nat_lp_status_is_event): New function.
2395 (count_events_callback, select_event_lwp_callback)
2396 (cancel_breakpoints_callback, linux_nat_wait_1): Use it.
2397
26ab7092
JK
23982010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2399
2400 * ia64-linux-nat.c (ia64_linux_status_is_event): New function.
2401 (_initialize_ia64_linux_nat): Install it.
2402 * linux-nat.c (sigtrap_is_event, linux_nat_status_is_event)
2403 (linux_nat_set_status_is_event): New.
2404 (stop_wait_callback, count_events_callback, select_event_lwp_callback)
2405 cancel_breakpoints_callback, linux_nat_filter_event)
2406 (linux_nat_wait_1): Use linux_nat_status_is_event.
2407 * linux-nat.h (linux_nat_set_status_is_event): New prototype.
2408
283e6a52
TT
24092010-07-27 Tom Tromey <tromey@redhat.com>
2410
2411 * NEWS: Mention labels, .gdb_index.
2412
53a71c06
CR
24132010-07-28 CHENG Renquan <rqcheng@smu.edu.sg>
2414
2415 * cli/cli-cmds.c (disassemble_command): Add support of disassemble
3422f666 2416 "start,+length" form of arguments.
53a71c06
CR
2417 * NEWS: Add "Changed commands" (disassemble) section for "Changes
2418 since GDB 7.1"; and merge two separated paragraphs of disassemble
2419 description in "Changes in GDB 7.0".
2420
c63a1f86
JK
24212010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2422
2423 * top.c (input_from_terminal_p): Return 0 on BATCH_FLAG.
2424 * utils.c (defaulted_query): Do not explicitly check for BATCH_FLAG.
2425 (fputs_maybe_filtered): Do not do filtering also on
2426 ! INPUT_FROM_TERMINAL_P.
2427
abebb8b0
JB
24282010-07-27 Joel Brobecker <brobecker@adacore.com>
2429
2430 * dwarf2read.c (dw2_find_pc_sect_symtab): Remove trailing newline
2431 in warning message.
2432
5374244e
PM
24332010-07-27 Phil Muldoon <pmuldoon@redhat.com>
2434
2435 * python/py-value.c (valpy_call): New Function.
2436
ac0b195c
KW
24372010-07-27 Ken Werner <ken.werner@de.ibm.com>
2438
889bf7c5 2439 * dwarf2read.c (dwarf2_read_index): Initialize the types_list and
ac0b195c
KW
2440 types_list_elements variables.
2441
09d8bd00
TT
24422010-07-26 Tom Tromey <tromey@redhat.com>
2443
2444 * dwarf2loc.c (locexpr_describe_location_piece): Also recognize
2445 TLS with DW_OP_const4u or DW_OP_const8u.
2446
9fe70b4f
TJB
24472010-07-26 Thiago Jung Bauermann <bauerman@br.ibm.com>
2448
2449 * ppc-linux-nat.c (store_vsx_register): Use PTRACE_GETVSXREGS to get
2450 VSX registers contents.
2451
caac4577
JG
24522010-07-26 Jerome Guitton <guitton@adacore.com>
2453
2454 * dwarf2read.c (add_partial_symbol): Do not add a global variable if
2455 its adress is null. Add comment to explain why.
2456 (new_symbol): Ditto.
2457
857d11d0
JK
24582010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2459
2460 * linux-nat.c (linux_nat_do_thread_registers): Convert STOP_SIGNAL to
2461 the host signal first.
2462
1fd400ff
TT
24632010-07-23 Tom Tromey <tromey@redhat.com>
2464
2465 * dwarf2read.c (struct dwarf2_per_objfile) <n_type_comp_units,
2466 type_comp_units>: New fields.
2467 (dw2_get_cu): New function.
2468 (create_cus_from_index): Remove unused argument.
2469 (create_signatured_type_hash_from_index): New function.
2470 (create_addrmap_from_index): Update.
2471 (dwarf2_read_index): Handle version 2.
2472 (dw2_find_last_source_symtab, dw2_forget_cached_source_info)
2473 (dw2_lookup_symtab, dw2_do_expand_symtabs_matching)
2474 (dw2_print_stats, dw2_expand_all_symtabs)
2475 (dw2_expand_symtabs_with_filename, dw2_find_symbol_file)
2476 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Update.
2477 (dwarf2_initialize_objfile): Call create_debug_types_hash_table.
2478 (allocate_signatured_type_hash_table): New function.
2479 (add_signatured_type_cu_to_list): Likewise.
2480 (create_debug_types_hash_table): Use them. Set type_comp_units.
2481 (read_signatured_type): Ensure section data is available.
2482 (add_address_entry): Don't record empty ranges.
2483 (struct signatured_type_index_data): New.
2484 (write_one_signatured_type): New function.
2485 (write_psymtabs_to_index): Write type CUs.
2486 (save_gdb_index_command): Update comment.
2487 (process_type_comp_unit): Move inititalization of
2488 from_debug_types...
2489 (create_debug_types_hash_table): ... here.
2490
3a674486
JK
24912010-07-23 Jan Kratochvil <jan.kratochvil@redhat.com>
2492
2493 * gdb_gcore.sh (tmpfile): Remove the variable, its initialization,
2494 cleanup and generating of gdb script to it.
2495 (gdb): Use redirection from /dev/null. Use --nx. Turn off pagination
2496 and terminal size. Convert $tmpfile to a series of -ex-es.
2497
54ec275a
KS
24982010-07-23 Keith Seitz <keiths@redhat.com>
2499
2500 * symtab.c (basic_lookup_transparent_type): Call pre-expand
2501 hook for STATIC_BLOCK types, too.
2502
8fd447e6
KS
25032010-07-23 Keith Seitz <keiths@redhat.com>
2504
2505 * dwarf2read.c: Remove unused typedef dwarf2_cu_per_cu_data_ptr
2506 and vector definition.
2507
25b72dde
JK
25082010-07-23 Jan Kratochvil <jan.kratochvil@redhat.com>
2509
2510 * linux-nat.c (cancel_breakpoint): Remove unused forward declaration.
2511
96d19272
JK
25122010-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2513
2514 * dwarf2read.c: Include completer.h.
2515 (save_gdb_index_command): Use matching usage command name.
2516 (_initialize_dwarf2_read): New variable c, initialize it by add_cmd.
2517 Set filename_completer for it.
2518
ca1f3406
TT
25192010-07-22 Tom Tromey <tromey@redhat.com>
2520
2521 * dwarf2read.c (create_debug_types_hash_table): Set objfile on
2522 type signature's per-CU data.
2523
ba25b921
PA
25242010-07-22 Pedro Alves <pedro@codesourcery.com>
2525
2526 * NEWS: Mention target reported shared libraries support by
2527 default.
2528
23bd0f7c
PA
25292010-07-21 Pedro Alves <pedro@codesourcery.com>
2530
2531 PR symtab/11827
2532
2533 Revert:
2534 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
2535 * dwarf2read.c (process_die): Also allow DW_TAG_const_type
2536 and DW_TAG_volatile_type.
2537 (new_symbol): Likewise.
2538
883df6dd
SW
25392010-07-21 Sami Wagiaalla <swagiaal@redhat.com>
2540
2541 * eval.c (evaluate_subexp_standard): Disabled evaluation of C++
2542 function symbols before overload resolution.
2543
269b11a2
PA
25442010-07-21 Pedro Alves <pedro@codesourcery.com>
2545
2546 * breakpoint.c (bptype_string): New, abstracted out from
2547 print_one_breakpoint_location.
2548 (print_one_breakpoint_location): Adjust.
2549 (breakpoint_1): Adjust the type column width dynamically.
2550
569b05a5
JK
25512010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2552
2553 * symfile.c (find_separate_debug_file_by_debuglink): Remove
2554 a gdb_assert call, new comment.
2555
ad34eb2f
JK
25562010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2557
2558 * linux-nat.c (linux_handle_extended_wait): Handle case when
2559 event == PTRACE_EVENT_CLONE && stopping && WSTOPSIG (status) != SIGSTOP.
2560
33355866
JK
25612010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2562
2563 Code cleanup.
2564 * linux-nat.c (linux_nat_wait_1): Reset STATUS after calling
2565 linux_nat_wait_1. Use always LP->STATUS afterwards.
2566
26590820
HZ
25672010-07-20 Hui Zhu <teawater@gmail.com>
2568
2569 * inf-ptrace.c (inf_ptrace_create_inferior): Initialize back_to.
2570 (inf_ptrace_attach): Ditto.
2571
c0edd9ed
JK
25722010-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2573
2574 Make core files the process_stratum.
2575 * corefile.c (core_target): New variable.
2576 (core_file_command): Remove variable t, use core_target.
2577 * corelow.c (core_ops): Make it static.
2578 (init_core_ops): Change to process_stratum. Initialize CORE_TARGET.
2579 * defs.h (make_cleanup_unpush_target): New prototype.
2580 * gdbarch.h: Regenerate.
2581 * gdbarch.sh (core_pid_to_str): Remove core_stratum from its comment.
2582 * gdbcore.h (core_target): New declaration.
2583 * inf-ptrace.c (inf_ptrace_create_inferior, inf_ptrace_attach): New
2584 variables ops_already_pushed and back_to. Use push_target,
2585 make_cleanup_unpush_target and discard_cleanups calls.
2586 * record.c (record_open): Replace core_stratum by a core_bfd check.
2587 * target.c (target_is_pushed): New function.
2588 (find_core_target): Remove.
2589 * target.h (enum strata) <core_stratum>: Remove.
2590 (target_is_pushed): New declaration.
2591 (find_core_target): Remove declaration.
2592 * tracepoint.c (init_tfile_ops) <to_stratum>: Remove comment.
2593 * utils.c (do_unpush_target, make_cleanup_unpush_target): New functions.
2594
f02253f1
HZ
25952010-07-19 Hui Zhu <teawater@gmail.com>
2596
2597 * breakpoint.c (single_step_breakpoints_inserted): New
2598 function.
2599 * breakpoint.h (single_step_breakpoints_inserted): Extern.
2600 * infrun.c (maybe_software_singlestep): Add check code.
2601 * record.c (record_resume): Add code for software single step.
2602 (record_wait): Ditto.
2603
78768c4a
JK
26042010-07-18 Jan Kratochvil <jan.kratochvil@redhat.com>
2605
2606 * linux-nat.c (linux_handle_extended_wait): Move variable new_lp into
2607 a more inner block. Remove its unused declaration initializer.
2608
431e49aa
TJB
26092010-07-16 Thiago Jung Bauermann <bauerman@br.ibm.com>
2610
2611 * NEWS: Mention support for the new ptrace interface and hardware
2612 accelerated watchpoint conditions on powerpc-linux.
2613
bd91e7ae
OS
26142010-07-16 Ozkan Sezer <sezeroz@gmail.com>
2615
2616 * target.c (debug_to_insert_breakpoint): Instead of casting to unsigned
2617 long and %ld, use core_addr_to_string() and %s to print CORE_ADDR vars
2618 and host_address_to_string() and %s for pointers.
2619 (debug_to_remove_breakpoint): Likewise.
2620 (debug_to_region_ok_for_hw_watchpoint): Likewise.
2621 (debug_to_can_accel_watchpoint_condition): Likewise.
2622 (debug_to_stopped_data_address): Likewise.
2623 (debug_to_watchpoint_addr_within_range): Likewise.
2624 (debug_to_insert_hw_breakpoint): Likewise.
2625 (debug_to_remove_hw_breakpoint): Likewise.
2626 (debug_to_insert_watchpoint): Likewise.
2627 (debug_to_remove_watchpoint): Likewise.
2628
29df156d
SW
26292010-07-16 Sami Wagiaalla <swagiaal@redhat.com>
2630
2631 * symtab.h (symbol_set_demangled_name): Now takes an optional objfile*
2632 argument.
2633 (cplus_specific): New struct.
2634 * symtab.c (symbol_set_demangled_name): Updated.
2635 Use cplus_specific for cplus symbols.
2636 (symbol_get_demangled_name): Retrive the name from the cplus_specific
2637 struct for cplus symbols.
2638 (symbol_init_language_specific): Set cplus_specific for cplus symbols.
2639 (symbol_set_names): Pass objfile to symbol_set_demangled_name.
2640 * symtab.c (symbol_init_cplus_specific): New function.
2641
b250c185
SW
26422010-07-16 Sami Wagiaalla <swagiaal@redhat.com>
2643
2644 * symtab.h (symbol_set_demangled_name): New function.
2645 (symbol_get_demangled_name): New function.
2646 * symtab.c (symbol_set_demangled_name): New function.
2647 (symbol_get_demangled_name): New function.
2648 (symbol_init_language_specific): Use demangled_name setter and getter.
2649 (symbol_set_names): Ditto.
2650 (symbol_natural_name): Ditto.
2651 (symbol_demangled_name): Ditto.
2652 * dwarf2read.c (new_symbol): Ditto.
2653
afa16725
SW
26542010-07-16 Sami Wagiaalla <swagiaal@redhat.com>
2655
2656 * symtab.h: Renamed cplus_specific to mangled_lang.
2657 * symtab.c (symbol_init_language_specific): Updated.
2658 (symbol_set_names): Updated.
2659 (symbol_natural_name): Updated.
2660 (symbol_demangled_name): Updated.
2661 * ada-lang.c (ada_decode_symbol): Updated.
2662 * dwarf2read.c (new_symbol): Updated.
2663
3cbaedff
KW
26642010-07-14 Ken Werner <ken.werner@de.ibm.com>
2665
2666 * valops.c (value_assign): Do not call to value_coerce_to_target.
2667 (value_must_coerce_to_target): Return 0 in case of TYPE_VECTOR.
2668
c932f1be
KW
26692010-07-14 Ken Werner <ken.werner@de.ibm.com>
2670
2671 * MAINTAINERS: Add myself for write after approval privileges.
2672
91158a56
TT
26732010-07-13 Emmanuel Thomé <Emmanuel.Thome@gmail.com>
2674
2675 * c-valprint.c (c_val_print): Add embedded_offset to address in
2676 call to val_print_array_elements.
2677
b3b272e1
TT
26782010-07-13 Tom Tromey <tromey@redhat.com>
2679
2680 * dwarf2read.c (dwarf2_read_index): Correctly set 'total_size'.
2681
bb3fa9d0
TT
26822010-07-13 Tom Tromey <tromey@redhat.com>
2683
2684 * dwarf2read.c (dwarf2_per_cu_text_offset): Fix reference to
2685 objfile.
2686
dd786858
TT
26872010-07-13 Tom Tromey <tromey@redhat.com>
2688
2689 * symfile.c (set_initial_language): Update.
2690 (deduce_language_from_filename): Argument type now const.
2691 * symtab.h (find_main_filename): Update.
2692 (deduce_language_from_filename): Update.
2693 * symtab.c (find_main_filename): Make result const.
2694 * dwarf2read.c (dw2_find_symbol_file): Change return type.
2695 * psymtab.c (find_symbol_file_from_partial): Change return type.
2696 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
2697 Make result const.
2698
9291a0cd
TT
26992010-07-13 Tom Tromey <tromey@redhat.com>
2700
2701 * breakpoint.c (save_cmdlist): No longer static.
2702 * gdbcmd.h (save_cmdlist): Declare.
2703 * symfile.c (symbol_file_add_with_addrs_or_offsets): Set
2704 OBJF_READNOW on objfile if readnow_symbol_files.
2705 * elfread.c (elf_symfile_read): Use dwarf2_initialize_objfile.
2706 (elf_sym_fns_gdb_index): New global.
2707 * dwarf2read.c: Include exceptions.h.
2708 (offset_type): New.
2709 (struct mapped_index): New.
2710 (dwarf2_per_cu_data_ptr): New typedef.
2711 (struct dwarf2_per_objfile) <using_index, index_table, gdb_index>:
2712 New fields.
2713 (GDB_INDEX_SECTION): New define.
2714 (struct dwarf2_per_cu_quick_data): New.
2715 (struct dwarf2_per_cu_data) <objfile>: New field.
2716 <psymtab>: Removed.
2717 <v>: New field.
2718 (byte_swap): New function.
2719 (MAYBE_SWAP): New macro.
2720 (INDEX_SUFFIX): New macro.
2721 (dw2_do_instantiate_symtab): New function.
2722 (dw2_instantiate_symtab): Likewise.
2723 (create_cus_from_index): Likewise.
2724 (create_addrmap_from_index): Likewise.
2725 (mapped_index_string_hash): Likewise.
2726 (find_slot_in_mapped_hash): Likewise.
2727 (dwarf2_read_index): Likewise.
2728 (dw2_setup): Likewise.
2729 (dw2_require_line_header): Likewise.
2730 (dw2_require_full_path): Likewise.
2731 (dw2_find_last_source_symtab): Likewise.
2732 (dw2_forget_cached_source_info): Likewise.
2733 (dw2_lookup_symtab): Likewise.
2734 (dw2_lookup_symbol): Likewise.
2735 (dw2_do_expand_symtabs_matching): Likewise.
2736 (dw2_pre_expand_symtabs_matching): Likewise.
2737 (dw2_print_stats): Likewise.
2738 (dw2_dump): Likewise.
2739 (dw2_relocate): Likewise.
2740 (dw2_expand_symtabs_for_function): Likewise.
2741 (dw2_expand_all_symtabs): Likewise.
2742 (dw2_expand_symtabs_with_filename): Likewise.
2743 (dw2_find_symbol_file): Likewise.
2744 (dw2_map_ada_symtabs): Likewise.
2745 (dw2_expand_symtabs_matching): Likewise.
2746 (dw2_find_pc_sect_symtab): Likewise.
2747 (dw2_map_symbol_names): Likewise.
2748 (dw2_map_symbol_filenames): Likewise.
2749 (dw2_has_symbols): Likewise.
2750 (dwarf2_gdb_index_functions): New global.
2751 (dwarf2_initialize_objfile): New function.
2752 (process_psymtab_comp_unit): Update.
2753 (add_partial_subprogram): Likewise.
2754 (dwarf2_psymtab_to_symtab): Likewise.
2755 (psymtab_to_symtab_1): Use dw2_do_instantiate_symtab.
2756 (process_full_comp_unit): Update.
2757 (find_file_and_directory): New function.
2758 (read_file_scope): Use find_file_and_directory.
2759 (dwarf2_per_cu_objfile): Update.
2760 (dwarf2_per_cu_addr_size): Update.
2761 (dwarf2_per_cu_offset_size): Update.
2762 (dwarf2_free_objfile): Free the index, if needed.
2763 (dwarf2_per_objfile_free): Unmap the index, if needed.
2764 (struct strtab_entry): New.
2765 (hash_strtab_entry): New function.
2766 (eq_strtab_entry): Likewise.
2767 (create_strtab): Likewise.
2768 (add_string): Likewise.
2769 (struct symtab_index_entry): New.
2770 (struct mapped_symtab): New.
2771 (hash_symtab_entry): New function.
2772 (eq_symtab_entry): Likewise.
2773 (delete_symtab_entry): Likewise.
2774 (create_index_table): Likewise.
2775 (create_mapped_symtab): Likewise.
2776 (cleanup_mapped_symtab): Likewise.
2777 (find_slot): Likewise.
2778 (hash_expand): Likewise.
2779 (add_index_entry): Likewise.
2780 (add_indices_to_cpool): Likewise.
2781 (write_hash_table): Likewise.
2782 (add_address_entry): Likewise.
2783 (write_psymbols): Likewise.
2784 (write_obstack): Likewise.
2785 (unlink_if_set): Likewise.
2786 (write_psymtabs_to_index): Likewise.
2787 (save_gdb_index_command): Likewise.
2788 (_initialize_dwarf2_read): Install "save gdb-index"
2789 command.
2790 (create_all_comp_units): Initialize 'objfile' field of CU.
2791 (dwarf2_locate_sections): Check for .gdb_index.
2792 * psymtab.h (dwarf2_gdb_index_functions): Declare.
2793 * symfile.h (dwarf2_initialize_objfile): Declare.
2794
58b6ab13
TT
27952010-07-13 Tom Tromey <tromey@redhat.com>
2796
2797 * symtab.c (lookup_symbol_aux_symtabs): Call pre-expand hook.
2798 (basic_lookup_transparent_type): Likewise.
2799 * symfile.h (struct quick_symbol_functions)
2800 <pre_expand_symtabs_matching>: New field.
2801 * psymtab.c (pre_expand_symtabs_matching_psymtabs): New function.
2802 (psym_functions): Update.
2803
0f5238ed
TT
28042010-07-13 Tom Tromey <tromey@redhat.com>
2805
2806 PR breakpoints/8357:
2807 * symtab.h (domain_enum_tag) <LABEL_DOMAIN>: Update comment.
2808 * linespec.c (decode_line_1): Update comment. Call decode_label.
2809 (decode_label): New function.
2810 (symbol_found): Handle LOC_LABEL.
2811 * dwarf2read.c (new_symbol) <DW_TAG_label>: Set symbol's type and
2812 domain. Call add_symbol_to_list.
2813
9aa1f1e3
TT
28142010-07-13 Tom Tromey <tromey@redhat.com>
2815
2816 * dwarf2loc.h (dwarf2_per_cu_text_offset): Declare.
2817 * dwarf2loc.c (find_location_expression): Use
2818 dwarf2_per_cu_text_offset.
2819 (dwarf2_evaluate_loc_desc): Likewise.
2820 (dwarf2_loc_desc_needs_frame): Likewise.
2821 (compile_dwarf_to_ax): Likewise.
2822 (loclist_describe_location): Likewise.
2823 * dwarf2read.c (dwarf2_per_cu_text_offset): New function.
2824 (dwarf2_per_cu_objfile): Update comment.
2825
953ac07e
JK
28262010-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
2827
2828 * dwarf2read.c (read_subrange_type): Call read_subrange_type.
2829 * p-lang.c (pascal_printstr): Likewise.
2830
f04e4012
TT
28312010-07-09 Tom Tromey <tromey@redhat.com>
2832
2833 * python/py-prettyprint.c (gdbpy_get_display_hint): Don't use
2834 'hint' if it is NULL.
2835
f4dfd9c0
HZ
28362010-07-09 Hui Zhu <teawater@gmail.com>
2837
2838 * source.c (print_source_lines_base): Add check for noprint.
2839
7e6e39e5
JB
28402010-07-08 Joel Brobecker <brobecker@adacore.com>
2841
2842 * python/python-config.py: Resync with Python 2.7 version of this
2843 script.
2844
76b8507d
JB
28452010-07-08 Joel Brobecker <brobecker@adacore.com>
2846
2847 * NEWS: Fix typo in section name (s/GDB 7.1/GDB 7.2).
2848
797054e6
JB
28492010-07-07 Joel Brobecker <brobecker@adacore.com>
2850
2851 * NEWS: Create a new section for the next release branch.
2852 Rename the section of the current branch, now that it has
2853 been cut.
2854
c80befee 28552010-07-07 Joel Brobecker <brobecker@adacore.com>
2856
2857 GDB 7.2 branch created (branch timestamp: 2010-07-07 17:00 UTC)
2858 * version.in: Bump version to 7.2.50.20100707-cvs.
2859
ac56253d
TT
28602010-07-07 Tom Tromey <tromey@redhat.com>
2861
2862 * dwarf2read.c (dwarf2_const_value) <DW_form_addr>: Create a
2863 LOC_COMPUTED symbol.
2864 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Set new field.
2865 (dwarf2_loc_desc_needs_frame): Likewise.
2866 (compile_dwarf_to_ax) <DW_OP_addr>: Use offset.
2867 * dwarf2expr.h (struct dwarf_expr_context) <offset>: New field.
2868 * dwarf2expr.c (execute_stack_op) <DW_OP_addr>: Use offset.
2869 * dwarf2-frame.c (execute_stack_op): Set 'offset' field. Add
2870 'offset' argument.
2871 (struct dwarf2_frame_cache) <text_offset>: New field.
2872 (dwarf2_frame_cache): Set new field.
2873 (dwarf2_frame_prev_register): Update.
2874 (dwarf2_frame_sniffer): Update.
2875 (dwarf2_frame_base_sniffer): Update.
2876 (dwarf2_frame_find_fde): Add 'out_offset' argument.
2877
0cf6dd15
TJB
28782010-07-07 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
2879 Thiago Jung Bauermann <bauerman@br.ibm.com>
2880
2881 Support for hw accelerated condition watchpoints in booke powerpc.
2882
2883 * breakpoint.c (fetch_watchpoint_value): Rename to fetch_subexp_value
2884 and move to eval.c. Change callers.
2885 (insert_bp_location): Pass watchpoint condition in
2886 target_insert_watchpoint.
2887 (remove_breakpoint_1) Pass watchpoint condition in
2888 target_remove_watchpoint.
2889 (watchpoint_locations_match): Call
2890 target_can_accel_watchpoint_condition.
2891 * eval.c: Include wrapper.h.
2892 (fetch_subexp_value): Moved from breakpoint.c.
2893 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint):
2894 Formatting fix.
2895 (can_use_watchpoint_cond_accel): New function.
2896 (calculate_dvc): Likewise.
2897 (num_memory_accesses): Likewise.
2898 (check_condition): Likewise.
2899 (ppc_linux_can_accel_watchpoint_condition): Likewise
2900 (ppc_linux_insert_watchpoint): Call can_use_watchpoint_cond_accel,
2901 check_condition and calculate_dvc.
2902 (ppc_linux_remove_watchpoint): Likewise.
2903 (_initialize_ppc_linux_nat): Set to_can_accel_watchpoint_condition to
2904 ppc_linux_can_accel_watchpoint_condition
2905 * target.c (debug_to_insert_watchpoint): Add argument for watchpoint
2906 condition.
2907 (debug_to_remove_watchpoint): Likewise.
2908 (debug_to_can_accel_watchpoint_condition): New function.
2909 (update_current_target): Set to_can_accel_watchpoint_condition.
2910 (setup_target_debug): Set to_can_accel_watchpoint_condition.
2911 * target.h: Add opaque declaration for struct expression.
2912 (struct target_ops) <to_insert_watchpoint>,
2913 <to_remove_watchpoint>: Add new arguments to pass the watchpoint
2914 <to_can_accel_watchpoint_condition>: New member.
2915 condition. Update all callers and implementations.
2916 (target_can_accel_watchpoint_condition): New macro.
2917 * value.c (free_value_chain): New function.
2918 * value.h (fetch_subexp_value): New prototype.
2919 (free_value_chain): Likewise.
2920
2f2241f1
UW
29212010-07-07 Ulrich Weigand <uweigand@de.ibm.com>
2922
2923 * linux-nat.c (linux_nat_do_thread_registers): Use section size
2924 from gdbarch_core_regset_sections also for .reg if present.
2925
2926 * amd64-linux-tdep.c (amd64_linux_regset_sections): Fix incorrect
2927 section size for .reg.
2928 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
2929 (ppc_linux_vmx_regset_sections): Likewise.
2930 (ppc_linux_fp_regset_sections): Likewise.
2931 (ppc64_linux_vsx_regset_sections): New variable.
2932 (ppc64_linux_vmx_regset_sections): Likewise.
2933 (ppc64_linux_fp_regset_sections): Likewise.
2934 (ppc_linux_init_abi): Install core_regset_section lists appropriate
2935 for current word size.
2936
1fd7cdc2
JB
29372010-07-06 Joel Brobecker <brobecker@adacore.com>
2938
2939 * server.c (myresume): Make static.
2940
11763c18
TT
29412010-07-06 Tom Tromey <tromey@redhat.com>
2942
2943 * configure, config.in: Rebuild.
2944 * configure.ac (HAVE_LIBPYTHON2_7): New define.
2945 * python/python-internal.h: Handle HAVE_LIBPYTHON2_7.
2946
a6cc4789
AS
29472010-07-06 Andreas Schwab <schwab@linux-m68k.org>
2948
2949 * breakpoint.c (_initialize_breakpoint): Add "cl" as alias for
2950 "clear".
2951
f9e9243a
UW
29522010-07-06 Ken Werner <ken.werner@de.ibm.com>
2953
2954 * gdbtypes.h (floatformats_ieee_half): Add declaration.
2955 * gdbtypes.c (floatformats_ieee_half): New variable.
2956 * doublest.c (floatformat_from_length): Set format to
2957 gdbarch_half_format if length matches.
2958 * gdbarch.sh (half_bit): New architecture method.
2959 (half_format): Likewise.
2960 * gdbarch.h: Regenerate.
2961 * gdbarch.c: Likewise.
2962
4e5799b6
JK
29632010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2964 Joel Brobecker <brobecker@adacore.com>
2965
2966 Fix re-run of PIE executable, PR shlibs/11776.
2967 * solib-svr4.c (svr4_relocate_main_executable) <symfile_objfile>: Remove
2968 the part of pre-set SYMFILE_OBJFILE->SECTION_OFFSETS.
2969
86e4bafc
JK
29702010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2971 Joel Brobecker <brobecker@adacore.com>
2972
2973 * auxv.c (memory_xfer_auxv): Update attach comment.
2974 * solib-svr4.c (svr4_special_symbol_handling): Remove the call to
2975 svr4_relocate_main_executable.
2976 (svr4_solib_create_inferior_hook): Make the call to
2977 svr4_relocate_main_executable unconditional.
2978
3cd07d20
JK
29792010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2980 Joel Brobecker <brobecker@adacore.com>
2981
2982 * auxv.c (ld_so_xfer_auxv): Do not error on failed read of data_address.
2983
0a1e94c7
JK
29842010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2985 Joel Brobecker <brobecker@adacore.com>
2986
2987 Fix attaching to PIEs prelinked on the disk after the process was
2988 started.
2989 * solib-svr4.c (svr4_exec_displacement): New variable arch_size.
2990 Verify it against bfd_get_arch_size. Try to match arbitrary
2991 displacement for the phdrs comparison.
2992
5387647f
TT
29932010-07-02 Tom Tromey <tromey@redhat.com>
2994
2995 PR exp/11780:
2996 * libunwind-frame.c (libunwind_frame_prev_register): Don't set
2997 value as optimized-out.
2998
38b6c3b3
TJB
29992010-07-02 Ulrich Weigand <uweigand@de.ibm.com>
3000 Thiago Jung Bauermann <bauerman@br.ibm.com>
3001
3002 * breakpoint.c (can_use_hardware_watchpoint): Answer "what does this
3003 represent?" question in comment. Change comment to a proper sentence.
3004
a17ac5b0
TT
30052010-07-02 Ken Werner <ken.werner@de.ibm.com>
3006
3007 * c-valprint.c (c_val_print): Fix printing of character vectors.
3008
bddaafad
JK
30092010-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3010
3011 * spu-tdep.c (spu_catch_start): Adjust the caller of changed
3012 create_breakpoint prototype.
3013
d41c0fc8
PA
30142010-07-01 Pedro Alves <pedro@codesourcery.com>
3015
3016 * breakpoint.c (BREAK_ARGS_HELP, _initialize_breakpoint): Clarify
3017 usefulness suggestion of multiple breakpoints at same location.
3018
dc10affe
PA
30192010-07-01 Pedro Alves <pedro@codesourcery.com>
3020
3021 * breakpoint.c (BREAK_ARGS_HELP): Add missing `the'.
3022
cabe9ab6
PA
30232010-07-01 Pedro Alves <pedro@codesourcery.com>
3024
3025 * dwarf2loc.c (locexpr_tracepoint_var_ref)
3026 (loclist_tracepoint_var_ref): Handle optimized out values.
3027
cce7e648
PA
30282010-07-01 Pedro Alves <pedro@codesourcery.com>
3029
3030 * breakpoint.c (update_watchpoint, _initialize_breakpoint): Remove
3031 unnecessary space in string.
3032 * filesystem.c (_initialize_filesystem): Ditto.
3033 * frame.c (_initialize_frame): Ditto.
3034 * infcmd.c (step_once): Ditto.
3035 * infrun.c (_initialize_infrun): Ditto.
3036 * linux-nat.c (linux_child_follow_fork): Ditto.
3037 * maint.c (maintenance_deprecate): Ditto.
3038 * memattr.c (_initialize_mem): Ditto.
3039 * mips-tdep.c (_initialize_mips_tdep): Ditto.
3040 * monitor.c (monitor_open): Ditto.
3041 * procfs.c (procfs_xfer_memory): Ditto.
3042 * reverse.c (bookmarks_info): Ditto.
3043 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs): Ditto.
3044 * stack.c (_initialize_stack): Ditto.
3045 * tracepoint.c (_initialize_tracepoint): Ditto.
3046 * xtensa-tdep.c (xtensa_supply_gregset,
3047 xtensa_regset_from_core_section): Ditto.
3048
b65c7efe
TT
30492010-07-01 Tom Tromey <tromey@redhat.com>
3050
3051 * value.h (struct lval_funcs) <check_any_valid>: Rename from
3052 check_all_valid.
3053 * value.c (value_entirely_optimized_out): Invert result. Update
3054 for new function name.
3055
0fb4aa4b
PA
30562010-07-01 Pedro Alves <pedro@codesourcery.com>
3057
3058 Static tracepoints support.
3059
3060 * NEWS: Mention new support for static tracepoints.
3061 (New packets): Mention qTfSTM, qTsSTM, qTSTMat and
3062 qXfer:statictrace:read.
3063 (New features in the GDB remote stub, GDBserver): Mention static
3064 tracepoints support using an UST based backend.
3065 (New commands): Mention "info static-tracepoint-markers" and
3066 "strace".
3067 * breakpoint.c (is_marker_spec): New.
3068 (is_tracepoint): Handle static tracepoints.
3069 (validate_commands_for_breakpoint): Static tracepoints can't do
3070 while-stepping.
3071 (static_tracepoints_here): New.
3072 (bpstat_what): Handle static tracepoints.
3073 (print_one_breakpoint_location, allocate_bp_location, mention):
3074 Ditto.
3075 (create_breakpoint_sal): Ditto.
3076 (decode_static_tracepoint_spec): New.
3077 (create_breakpoint): Replace `hardwareflag', and `traceflag' with
3078 `type_wanted'. Adjust. Handle static tracepoint marker
3079 locations.
3080 (break_command_1): Adjust.
3081 (update_static_tracepoint): New.
3082 (update_breakpoint_locations): Handle static tracepoints.
3083 (breakpoint_re_set_one): Handle static tracepoint marker
3084 locations.
3085 (disable_command, enable_command): Handle static tracepoints.
3086 (trace_command, ftrace_command): Adjust.
3087 (strace_command): New.
3088 (create_tracepoint_from_upload): Adjust.
3089 (save_breakpoints): Handle static tracepoints.
3090 (_initialize_breakpoint): Install the "strace" command.
3091 * breakpoint.h (enum bptype): New bp_static_tracepoint type.
3092 (struct breakpoint): New fields static_trace_marker_id and
3093 static_trace_marker_id_idx.
3094 (breakpoints_here_p): Declare.
3095 (create_breakpoint): Adjust.
3096 (static_tracepoints_here): Declare.
3097 * remote.c (struct remote_state) <static_tracepoints>: New field.
3098 (PACKET_qXfer_statictrace_read, PACKET_StaticTracepoints): New.
3099 (remote_static_tracepoint_marker_at): New.
3100 (remote_static_tracepoint_markers_by_strid): New.
3101 (remote_static_tracepoint_feature): New.
3102 (remote_disconnected_tracing_feature): Handle "StaticTracepoints".
3103 (remote_xfer_partial): Handle TARGET_OBJECT_STATIC_TRACE_DATA.
3104 (remote_supports_static_tracepoints): New.
3105 (remote_download_tracepoint): Download static tracepoints.
3106 (init_remote_ops): Install remote_static_tracepoint_marker_at and
3107 remote_static_tracepoint_markers_by_strid.
3108 (_initialize_remote): Install set|show remote static-tracepoints,
3109 and set|show remote read-sdata-object commands.
3110 * target.c (update_current_target): Inherit and default
3111 to_static_tracepoint_marker_at, and
3112 to_static_tracepoint_markers_by_strid.
3113 * target.h (static_tracepoint_marker): Forward declare.
3114 (enum target_object): New object TARGET_OBJECT_STATIC_TRACE_DATA.
889bf7c5 3115 (static_tracepoint_marker_p): New typedef.
0fb4aa4b
PA
3116 (DEF_VEC_P(static_tracepoint_marker_p)): New VEC type.
3117 (struct target_ops): New fields to_static_tracepoint_marker_at and
3118 to_static_tracepoint_markers_by_strid.
3119 (target_static_tracepoint_marker_at)
3120 (target_static_tracepoint_markers_by_strid): New.
3121 * tracepoint.c: Include source.h.
3122 (validate_actionline): Handle $_sdata.
3123 (struct collection_list): New field strace_data.
3124 (add_static_trace_data): New.
3125 (clear_collection_list): Clear strace_data.
3126 (stringify_collection_list): Account for a possible static trace
3127 data collection.
3128 (encode_actions_1): Encode an $_sdata collection.
3129 (parse_tracepoint_definition): Handle static tracepoints.
3130 (parse_static_tracepoint_marker_definition): New.
3131 (release_static_tracepoint_marker): New.
3132 (print_one_static_tracepoint_marker): New.
3133 (info_static_tracepoint_markers_command): New.
3134 (sdata_make_value): New.
3135 (_initialize_tracepoint): Create the $_sdata convenience variable.
3136 Add the "info static-tracepoint-markers" command.
3137 Mention $_sdata in the "collect" command's help output.
3138 * tracepoint.h (struct static_tracepoint_marker): New.
3139 (parse_static_tracepoint_marker_definition)
3140 (release_static_tracepoint_marker): Declare.
3141 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
3142 * python/py-breakpoint.c (bppy_new): Adjust.
3143
aac63f0f
JB
31442010-06-30 Joel Brobecker <brobecker@adacore.com>
3145
3146 * python/python-internal.h (_XOPEN_SOURCE): Undefine before
3147 including Python.h.
3148
e68994a7
DE
31492010-06-29 Doug Evans <dje@google.com>
3150
3863f96c
DE
3151 PR gdb/11702
3152 * dwarf2read.c (dwarf2_add_field): Only create a symbol if
3153 DW_AT_external is present.
3154
254e6b9e
DE
3155 PR gdb/11702
3156 * NEWS: Add entry.
3157 * dwarf2read.c (dwarf2_add_field): If DW_AT_const_value is present,
3158 create a symbol for the field and record the value.
3159 (new_symbol): Handle DW_TAG_member.
3160 * gdbtypes.c (field_is_static): Remove FIXME.
3161 * symtab.c (search_symbols): When searching for VARIABLES_DOMAIN,
3162 only ignore LOC_CONST symbols that are enums.
3163
6e70227d
DE
3164 * dwarf2read.c: Remove trailing whitespace.
3165
e68994a7
DE
3166 Delete FIELD_LOC_KIND_DWARF_BLOCK, unused.
3167 * gdbtypes.h (enum field_loc_kind): Delete FIELD_LOC_KIND_DWARF_BLOCK.
3168 (struct main_type, field loc): Delete dwarf_block.
3169 (FIELD_DWARF_BLOCK): Delete.
3170 (SET_FIELD_DWARF_BLOCK): Delete.
3171 (TYPE_FIELD_DWARF_BLOCK): Delete.
3172 * gdb-gdb.py (StructMainTypePrettyPrinter.struct_field_location_img):
3173 Update.
3174
a480d2f6
HZ
31752010-06-29 Hui Zhu <teawater@gmail.com>
3176
3177 * record.c (set_record_pic_cmdlist,
3178 show_record_pic_cmdlist): New variables.
3179 (set_record_pic_command,
3180 show_record_pic_command): New functions.
3181 (record_pic_function, record_pic_line, record_pic_enum,
3182 set_record_pic_type, record_pic_hide_nofunction,
3183 record_pic_hide_nosource, record_pic_hide_same): New variables.
3184 (record_pic_fputs): New function.
3185 (function_list, node_list, edge_list): New struct.
3186 (function_list, node_list, edge_list): New variables.
3187 (record_pic_cleanups, record_pic_node,
3188 record_pic_edge, cmd_record_pic): New functions.
3189 (_initialize_record): Add new commands for record pic.
3190
a0d7a4ff
JK
31912010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3192
3193 * dwarf2read.c (read_structure_type) <fi.typedef_field_list>: Call
3194 ALLOCATE_CPLUS_STRUCT_TYPE.
3195
595939de 31962010-06-28 Phil Muldoon <pmuldoon@redhat.com>
889bf7c5
PA
3197 Tom Tromey <tromey@redhat.com>
3198 Thiago Jung Bauermann <bauerman@br.ibm.com>
595939de
PM
3199
3200 * value.c (pack_unsigned_long): New function.
3201 (value_from_ulongest): New function.
3202 * value.h (value_from_ulongest): Declare.
3203 * python/python.c (_initialize_python): Call
3204 gdbpy_initialize_thread and gdbpy_initialize_inferior.
3205 * python/python-internal.h: Define thread_object.
3206 (gdbpy_inferiors, gdbpy_selected_thread)
3207 (frame_info_to_frame_object, create_thread_object)
3208 (find_thread_object, find_inferior_object)
3209 (gdbpy_initialize_thread, gdbpy_initialize_inferiors)
3210 (gdbpy_is_value_object, get_addr_from_python): Declare.
3211 * python/py-value.c (builtin_type_upylong): Define.
3212 (convert_value_from_python): Add logic for ulongest.
3213 (gdbpy_is_value_object): New function.
3214 * python/py-utils.c (get_addr_from_python): New function.
3215 * python/py-frame.c (frame_info_to_frame_object): Return a PyObject.
3216 (gdbpy_selected_frame): Use PyObject over frame_info.
3217 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-inferior and
3218 py-infthread.
3219 (SUBDIR_PYTHON_SRCS): Likewise.
3220 (py-inferior.o): New Rule.
3221 (py-infthread.o): New Rule.
3222 * python/py-inferior.c: New File.
3223 * python/py-infthread.c: New File.
3224
98751a41
JK
32252010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3226
3227 * c-typeprint.c (c_type_print_base): For no fields check include also
3228 TYPE_TYPEDEF_FIELD_COUNT. Print new typedefs section.
3229 * dwarf2read.c (struct typedef_field_list)
3230 (struct field_info) <typedef_field_list, typedef_field_list_count>: New.
3231 (dwarf2_add_typedef): New.
3232 (read_structure_type): Call dwarf2_add_typedef for DW_TAG_typedef.
3233 Copy also FI.TYPEDEF_FIELD_LIST.
3234 * gdbtypes.h (struct typedef_field)
3235 (struct cplus_struct_type) <typedef_field, typedef_field_count>
3236 (TYPE_TYPEDEF_FIELD_ARRAY, TYPE_TYPEDEF_FIELD, TYPE_TYPEDEF_FIELD_NAME)
3237 (TYPE_TYPEDEF_FIELD_TYPE, TYPE_TYPEDEF_FIELD_COUNT): New.
3238
41f62f39
JK
32392010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3240
3241 * cp-namespace.c (cp_lookup_nested_type): New variable
3242 concatenated_name. Turn the current return condition into a reverse
3243 one. Call also lookup_static_symbol_aux on the constructed qualified
3244 name.
3245 * symtab.c (lookup_symbol_aux): Move variable objfile and searching in
3246 other files into a called ...
3247 (lookup_static_symbol_aux): ... new function here.
3248 * symtab.h (lookup_static_symbol_aux): New prototype.
3249 * valops.c (value_maybe_namespace_elt): Call also
3250 lookup_static_symbol_aux if we failed otherwise.
3251
af53d231
JK
32522010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3253
3254 Fix PR c++/11703 and PR gdb/1448.
3255 * c-exp.y (yylex) <last_was_coloncolon && first_was_coloncolon>: Add
3256 FIRST_ITER check.
3257
9655fd1a
JK
32582010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3259
3260 Fix modification of cplus_struct_default.
3261 * dwarf2read.c (dwarf2_add_member_fn) <no DW_AT_vtable_elem_location>:
3262 Call ALLOCATE_CPLUS_STRUCT_TYPE.
3263 * gdbtypes.c (cplus_struct_default): New empty initializer, comment it.
3264
9279c692
JB
32652010-06-28 Joel Brobecker <brobecker@adacore.com>
3266
3267 * NEWS: Add entry announcing the python directory.
3268
d3f41bb1
TT
32692010-06-28 Tom Tromey <tromey@redhat.com>
3270
3271 * dwarf2read.c (read_structure_type): Allocate null cleanup later.
3272
23e7acfb
DE
32732010-06-28 Doug Evans <dje@google.com>
3274
3275 * breakpoint.c (breakpoint_sals_to_pc): Delete arg address, unused.
3276 All callers updated.
3277
6036c742
JK
32782010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3279
3280 * cp-valprint.c (cp_print_value_fields) <recurse == 0>: Call
3281 obstack_begin after each obstack_free.
3282
9f18a3b3
DE
32832010-06-27 Doug Evans <dje@google.com>
3284
1596cb5d
DE
3285 * value.c (value_static_field): Use `switch' instead of `if'.
3286 Assert-fail if passed invalid TYPE_FIELD_LOC_KIND.
3287
9f18a3b3
DE
3288 * valops.c (search_struct_field): Fix typo in error message.
3289
43dabe42
UW
32902010-06-26 Ulrich Weigand <uweigand@de.ibm.com>
3291
3292 * dwarf2expr.c (execute_stack_op): Place preprocessor
3293 directives at the start of the source line.
3294
0f3bb72e
PH
32952010-06-25 Paul Hilfinger <hilfinger@adacore.com>
3296
6036c742
JK
3297 * defs.h (make_command_stats_cleanup): Declare.
3298 (set_display_time): Declare.
3299 (set_display_space): Declare.
3300 * event-top.c (command_handler): Use make_command_stats_cleanup.
3301 * main.c (display_time, display_space): Move definitions to utils.c.
3302 (captured_main): Use make_command_stats_cleanup to get start-up
3303 statistics.
3304 Use set_display_time and set_display_space for processing OPT_STATISTICS
3305 case.
3306 * maint.c (maintenance_time_display): Use set_display_time.
3307 (maintenance_space_display): Use set_display_space.
3308 * top.c (execute_command): Remove obsolete 'maint time' code.
3309 (command_loop): Use make_command_stats_cleanup.
3310 * utils.c (struct cmd_stats): Structure for storing initial time
3311 and space usage.
3312 (display_time, display_space): Move definitions here from utils.c.
3313 (set_display_time): New function.
3314 (set_display_space): New function.
3315 (make_command_stats_cleanup): New function.
3316 (report_command_stats): New auxiliary function for
3317 make_command_stats_cleanup.
0f3bb72e 3318
070c8028
UW
33192010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
3320
3321 * solib-spu.c (append_ocl_sos): Fix xsnprintf statement for
3322 hosts where CORE_ADDR is long long.
3323
bc9f0842
TT
33242010-06-25 Tom Tromey <tromey@redhat.com>
3325
3326 PR python/10808:
3327 * python/python.c (execute_gdb_command): Add keywords. Accept
3328 "to_string" argument.
3329 (struct restore_ui_file_closure): New.
3330 (restore_ui_file): New function.
3331 (make_cleanup_restore_ui_file): Likewise.
3332 (GdbMethods) <execute>: Update.
3333
c0cc4c83
UW
33342010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
3335
3336 * s390-tdep.c (s390_push_dummy_call): Error on stack overflow
3337 during inferior call stack frame setup.
3338
f1d8ee66
UW
33392010-06-25 Ken Werner <ken.werner@de.ibm.com>
3340
3341 * solib-spu.c: Include "exception.h".
3342 (ocl_program_data_key): New variable.
3343 (append_ocl_sos): New function.
3344 (ocl_enable_break): Likewise.
3345 (spu_current_sos): Call append_ocl_sos.
3346 (spu_solib_loaded): Call ocl_enable_break.
3347 (_initialize_spu_solib): Register ocl_program_data_key.
3348
19c0c0f8
UW
33492010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
3350
3351 * cp-support.c (reset_directive_searched): New function.
3352 (make_symbol_overload_list_using): Prevent recursive calls.
3353
0f6a939d
PM
33542010-06-25 Phil Muldoon <pmuldoon@redhat.com>
3355
3356 * printcmd.c (print_variable_and_value): Print error message on
3357 caught exception.
3358
f2c7657e
UW
33592010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
3360
3361 * dwarf2expr.h (struct dwarf_value_location): Use ULONGEST as type
3362 of stack values.
3363 (struct dwarf_expr_piece): Rename "expr" member to "mem". Add new
3364 "value" member.
3365 (dwarf_expr_push): Change input type to ULONGEST.
3366 (dwarf_expr_fetch): Change return type to ULONGEST.
3367 (dwarf_expr_fetch_address): Add prototype.
3368 (dwarf2_read_address): Remove prototype.
3369 * dwarf2expr.c (dwarf_expr_push): Use ULONGEST as type of stack values.
3370 Truncate stack values to ctx->addr_size bytes.
3371 (dwarf_expr_fetch): Change return value to ULONGEST.
3372 (dwarf_expr_fetch_address): New function.
3373 (add_piece): Use dwarf_expr_fetch_address instead of dwarf_expr_fetch
3374 when appropriate. Update for struct dwarf_expr_piece changes.
3375 (dwarf2_read_address): Remove.
3376 (unsigned_address_type): Remove.
3377 (signed_address_type): Remove.
3378 (execute_stack_op): Use dwarf_expr_fetch_address instead of
3379 dwarf_expr_fetch when appropriate. Use ULONGEST as type of stack
3380 values. Perform operations on ULONGEST instead of on GDB values,
3381 sign-extending from ctx->addr_size bytes as needed. Read DW_OP_addr
3382 values and DW_OP_deref results as unsigned integers.
3383 * dwarf2loc.c (read_pieced_value): Update for struct dwarf_expr_piece
3384 changes.
3385 (write_pieced_value): Likewise.
3386 (dwarf2_evaluate_loc_desc): Use dwarf_expr_fetch_address instead of
3387 dwarf_expr_fetch when appropriate.
3388 (compile_dwarf_to_ax): Read DW_OP_addr values as unsigned integers.
3389 * dwarf2-frame.c (execute_stack_op): Use dwarf_expr_fetch_address
3390 instead of dwarf_expr_fetch when appropriate.
3391
b1d61bc9
PM
33922010-06-25 Pierre Muller <muller@ics.u-strasbg.fr>
3393
3394 * c-typeprint.c (c_print_typedef): Append new type name for typedefs.
3395
b14285f6
JB
33962010-06-24 Joel Brobecker <brobecker@adacore.com>
3397
3398 * python/python.c (_initialize_python): Add new "constant"
3399 PYTHONDIR in gdb module. Insert this path at the head of
3400 sys.path. Set gdb.__path__ to gdb.PYTHONDIR + '/gdb' and
3401 exec its __init__.py script if it exists in that directory.
3402
fd60dc69
KB
34032010-06-24 Kevin Buettner <kevinb@redhat.com>
3404
3405 * rx-tdep.c (RX_ACC_REGNUM): Define.
3406 (RX_NUM_REGS): Redefine to 26.
3407 (rx_register_name): Add register "acc". Change order of several
3408 registers. Change name of "vct" register to "fintv" to match RX
3409 documentation.
3410 (rx_register_type): Add case for RX_ACC_REGNUM.
3411
18430289
TT
34122010-06-24 Tom Tromey <tromey@redhat.com>
3413
3414 * psymtab.c (lookup_partial_symbol): Mark definition as static.
3415
40618926
JK
34162010-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3417 Tom Tromey <tromey@redhat.com>
3418
3419 Fix GDB startup on readonly filesystem.
3420 * charset.c (find_charset_names): Use PEX_USE_PIPES for pex_init.
3421
628fe4e4
JK
34222010-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3423 Pedro Alves <pedro@codesourcery.com>
3424
3425 Fix PR 9436.
3426 * breakpoint.c (handle_jit_event): New function.
3427 (bpstat_what): Remove enum class, kc, ss, sn, sgl, slr, clr, sr, shl,
3428 jit, err, table and bs_class. New variables shlib_event, jit_event,
3429 this_action and bptype. Change bs_class assignments to this_action
3430 assignments. new unhandled bptype internal error. Move here
3431 shlib_event and jit_event handling from handle_inferior_event.
3432 * breakpoint.h (enum bpstat_what_main_action): Extend the comment.
3433 Reorder items. Remove BPSTAT_WHAT_CHECK_SHLIBS and
3434 BPSTAT_WHAT_CHECK_JIT.
3435 * inferior.h (debug_infrun, stop_on_solib_events): New declarations.
3436 * infrun.c (debug_infrun, stop_on_solib_events): Remove static.
3437 (handle_inferior_event): Reinitialize frame and gdbarch after
3438 bpstat_what call. Move BPSTAT_WHAT_CHECK_SHLIBS and
3439 BPSTAT_WHAT_CHECK_JIT handling to bpstat_what. Reinitialize even
3440 gdbarch when frame gets reinitialized.
3441
f1421989
HZ
34422010-06-24 Hui Zhu <teawater@gmail.com>
3443
3444 * printcmd.c (ui_printf): New function.
3445 (printf_command): Call ui_printf.
3446 (_initialize_printcmd): New command "eval".
3447
d03285ec
UW
34482010-06-23 Ulrich Weigand <uweigand@de.ibm.com>
3449
3450 * infrun.c (handle_inferior_event): Handle presence of single-step
3451 breakpoints for TARGET_WAITKIND_FORKED and TARGET_WAITKIND_VFORKED.
3452 Cancel single-step breakpoints for TARGET_WAITKIND_EXITED,
3453 TARGET_WAITKIND_SIGNALED, and TARGET_WAITKIND_EXECD.
3454 * breakpoint.c (detach_single_step_breakpoints): New function.
3455 (detach_breakpoints): Call it.
3456 (cancel_single_step_breakpoints): New function.
3457 * breakpoint.h (cancel_single_step_breakpoints): Add prototype.
3458
3459 * spu-tdep.c (spu_memory_remove_breakpoint): New function.
3460 (spu_gdbarch_init): Install it.
3461
38f6b338
JK
34622010-06-23 Jan Kratochvil <jan.kratochvil@redhat.com>
3463
3464 * configure.ac: Always set RDYNAMIC at least as `-rdynamic'.
3465 * configure: Regenerate.
3466
bb08c432
HZ
34672010-06-22 Hui Zhu <teawater@gmail.com>
3468
3469 * i386-tdep.c (i386_record_lea_modrm): Change warning to query.
3470 (i386_process_record): Ditto.
3471 * record.c (record_memory_query): New variable.
3472 (_initialize_record): New command "set record memory-query".
3473 * record.h (record_memory_query): New extern.
3474
b55078be
DE
34752010-06-21 Doug Evans <dje@google.com>
3476
3477 * i386-tdep.h (i386_displaced_step_copy_insn): Declare.
3478 * i386-tdep.c (i386_displaced_step_copy_insn): New function.
3479 (i386_syscall_p): Change type of lengthp to int.
3480 (i386_displaced_step_fixup): Handle kernels that run one past a
3481 syscall insn.
3482 * i386-linux-tdep.c (i386_linux_init_abi): Use
3483 i386_displaced_step_copy_insn instead of
3484 simple_displaced_step_copy_insn.
3485
75079b2b
TT
34862010-06-21 Tom Tromey <tromey@redhat.com>
3487
3488 * dwarf2read.c (read_base_type): Handle DW_ATE_UTF.
3489 (dwarf_type_encoding_name): Likewise.
3490
b00fdb78
TT
34912010-06-21 Tom Tromey <tromey@redhat.com>
3492
3493 * p-valprint.c (pascal_val_print): Use TYPE_ERROR_NAME.
3494 * p-typeprint.c (pascal_type_print_base): Use TYPE_ERROR_NAME.
3495 * m2-valprint.c (m2_val_print): Use TYPE_ERROR_NAME.
3496 * gdbtypes.h (TYPE_ERROR_NAME): New macro.
3497 * f-valprint.c (f_val_print): Use TYPE_ERROR_NAME.
3498 * f-typeprint.c (f_type_print_base): Use TYPE_ERROR_NAME.
3499 * dwarf2read.c (tag_type_to_type): Create a new error type on
3500 failure.
3501 * c-valprint.c (c_val_print): Use TYPE_ERROR_NAME.
3502 * c-typeprint.c (c_type_print_base): Use TYPE_ERROR_NAME.
3503
84951ab5
MS
35042010-06-21 Michael Snyder <msnyder@vmware.com>
3505
889bf7c5 3506 * breakpoint.c (_initialize_breakpoint): Use add_prefix_cmd,
84951ab5
MS
3507 not add_abbrev_prefix_cmd, for "enable breakpoints".
3508
d4a087c7
UW
35092010-06-21 Ulrich Weigand <uweigand@de.ibm.com>
3510
3511 * dwarf2loc.c (find_location_expression): Add relocation offset
3512 to base-address-selection entry base addresses. Read addresses
3513 (and offsets) as signed/unsigned integers, depending on the
3514 BFD's sign_extend_vma flag. Do not call dwarf2_read_address.
3515 (loclist_describe_location): Likewise.
3516 (disassemble_dwarf_expression): Read DW_OP_addr operand as
3517 unsigned integer. Do not call dwarf2_read_address.
3518 (locexpr_describe_location): Likewise for DW_OP_GNU_push_tls_address.
3519
13def385
UW
35202010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
3521
3522 * spu-tdep.c (spu_frame_unwind_cache): Use LSLR register
3523 value instead of hard-coded SPU_LS_SIZE.
3524 (spu_software_single_step): Likewise.
3525 * spu-tdep.h (SPU_LS_SIZE): Remove.
3526
d2ed6730
UW
35272010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
3528
3529 * spu-multiarch.c (spu_xfer_partial): Wrap around local store
3530 limit on local store memory accesses.
3531 * spu-linux-nat.c (spu_xfer_partial): Likewise.
3532 * spu-tdep.c (spu_lslr): Remove.
3533 (spu_pointer_to_address): Do not truncate addresses.
3534 (spu_integer_to_address): Likewise.
3535 (spu_overlay_new_objfile): Use SPU_OVERLAY_LMA.
3536 * spu-tdep.h: Add comments.
3537 (SPUADDR_SPU): Respect SPU_OVERLAY_LMA bit.
3538 (SPU_OVERLAY_LMA): Define.
3539
6aed2dbc
SS
35402010-06-18 Stan Shebs <stan@codesourcery.com>
3541
a61408f8
SS
3542 * osdata.c (get_osdata): Warn separately if target does not report
3543 type list.
3544 (info_osdata_command): Allow empty type, report error if target
3545 does not return available types of OS data.
3546 * linux-nat.c (linux_nat_xfer_osdata): Report list of OS data
3547 types if no annex supplied.
3548
6aed2dbc
SS
3549 * thread.c (thread_id_make_value): Make a value representing the
3550 current thread.
3551 (_initialize_thread): Create $_thread.
3552
ec61707d
JB
35532010-06-17 Joel Brobecker <brobecker@adacore.com>
3554
3555 * dwarf2read.c (psymtabs_addrmap_cleanup): Add empty line after
3556 last local variable declaration. No real code change.
3557
60606b2c
TT
35582010-06-17 Tom Tromey <tromey@redhat.com>
3559
3560 * dwarf2read.c (psymtabs_addrmap_cleanup): New function.
3561 (dwarf2_build_psymtabs_hard): Use it. Create addrmap on a
3562 temporary obstack.
3563
65d79d4b
SDJ
35642010-06-16 Sergio Durigan Junior <sergiodj@redhat.com>
3565 Jan Kratochvil <jan.kratochvil@redhat.com>
3566
3567 * breakpoint.c: Include parser-defs.h.
3568 (watchpoint_exp_is_const): New function.
3569 (watch_command_1): Call watchpoint_exp_is_const to check
3570 if the expression is constant.
3571
0407b3f1
AS
35722010-06-15 Andreas Schwab <schwab@linux-m68k.org>
3573
3574 * configure.ac: Check for RDYNAMIC also for cross builds.
3575 * configure: Regenerate.
3576
98d64339
PA
35772010-06-15 Pedro Alves <pedro@codesourcery.com>
3578
3579 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
3580 (SFILES): Remove solib-null.c, add solib-target.c.
3581 (COMMON_OBS): Remove solib-null.o, add solib-target.o.
3582 (ALLDEPFILES): Remove solib-target.c.
3583 * solib-target.c (_initialize_solib_target): Set
3584 current_target_so_ops to solib_target_so_ops if not already set.
3585 * solib-null.c: Delete.
3586
6a271cae
PA
35872010-06-14 Pedro Alves <pedro@codesourcery.com>
3588
3589 * NEWS: Mention GDBserver's JIT compilation of tracepoint
3590 bytecode.
3591
1e9beacb
UW
35922010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
3593
3594 * cp-valprint.c (cp_print_static_field): Members of
3595 dont_print_stat_array_obstack are of type "struct type *".
3596 (_initialize_cp_valprint): Likewise.
3597
21a176fb
UW
35982010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
3599
3600 * frame.c (frame_register_unwind): Do not access contents
3601 of "optimized out" unwound register value.
3602
25b524e8
JK
36032010-06-14 Jan Kratochvil <jan.kratochvil@redhat.com>
3604
3605 * ada-lang.h (ada_print_type): Make varstring const.
3606 * ada-typeprint.c (print_func_type): Make name const.
3607 (ada_print_type): Make varstring const.
3608 * c-lang.h (c_print_type): Make varstring const.
3609 * c-typeprint.c (c_print_type): Likewise.
3610 * f-lang.h (f_print_type): Likewise.
3611 * f-typeprint.c (f_print_type): Likewise.
3612 * jv-lang.h (java_print_type): Likewise.
3613 * jv-typeprint.c (java_print_type): Likewise.
3614 * language.c (unk_lang_print_type): Likewise.
3615 * language.h (struct language_defn) <la_print_type>: Likewise.
3616 * m2-lang.h (m2_print_type): Likewise.
3617 * m2-typeprint.c (m2_print_type): Likewise.
3618 * p-lang.h (pascal_print_type): Likewise.
3619 * p-typeprint.c (pascal_print_type): Likewise.
3620
d914c394
SS
36212010-06-11 Stan Shebs <stan@codesourcery.com>
3622
3623 Add per-operation permission flags.
3624
3625 * target.h (struct target_ops): New method to_set_permissions.
3626 (target_set_permissions): New macro.
3627 (target_insert_breakpoint): Change macro to function.
3628 (target_remove_breakpoint): Ditto.
3629 (target_stop): Ditto.
3630 (may_write_registers): Declare.
3631 (may_write_memory): Declare.
3632 (may_insert_breakpoints): Declare.
3633 (may_insert_tracepoints): Declare.
3634 (may_insert_fast_tracepoints): Declare.
3635 (may_stop): Declare.
3636 * target.c (may_write_registers, may_write_registers_1): New globals.
3637 (may_write_memory, may_write_memory_1): New globals.
3638 (may_insert_breakpoints, may_insert_breakpoints_1): New globals.
3639 (may_insert_tracepoints, may_insert_tracepoints_1): New globals.
3640 (may_insert_fast_tracepoints, may_insert_fast_tracepoints_1): New
3641 globals.
3642 (may_stop, may_stop_1): New global.
3643 (target_xfer_partial): Test for write permission.
3644 (target_store_registers): Ditto.
3645 (target_insert_breakpoint): New function.
3646 (target_remove_breakpoint): New function.
3647 (target_stop): New function.
3648 (_initialize_targets): Add new set/show variables.
3649 (set_write_memory_permission): New function.
3650 (update_target_permissions): New function.
3651 (set_target_permissions): New function.
3652 (update_current_target): Default to_set_permissions.
3653 (_initialize_targets): Use new globals and setter function.
3654 * tracepoint.c (start_tracing): Test for permission.
3655 * inferior.h (update_observer_mode): Declare.
3656 * infrun.c (non_stop_1): Define earlier.
3657 (observer_mode, observer_mode_1): New globals.
3658 (set_observer_mode, show_observer_mode): New functions.
3659 (update_observer_mode): New function.
3660 (_initialize_infrun): Define "set observer" command.
3661 * remote.c (PACKET_QAllow): New optional packet.
3662 (remote_protocol_features): Add QAllow.
3663 (remote_set_permissions): New function.
3664 (remote_start_remote): Call it.
3665 (init_remote_ops): Add it to target vector.
3666 (_initialize_remote): Add config command for QAllow.
3667
aec5aa8b
TT
36682010-06-11 Tom Tromey <tromey@redhat.com>
3669
3670 * dwarf2read.c (dwarf2_add_member_fn): Handle correct form of
3671 DW_AT_vtable_elem_location even when GCC extension is seen.
3672
0e03807e
TT
36732010-06-11 Tom Tromey <tromey@redhat.com>
3674
3675 PR gdb/9977, PR exp/11636:
3676 * value.h (value_offset): Update.
3677 (struct lval_funcs) <check_validity>: New field.
3678 <copy_closure>: Make argument const.
3679 (value_computed_closure): Update.
3680 (value_contents_for_printing): Declare.
3681 (value_bits_valid): Likewise.
3682 (val_print): Likewise.
3683 (set_value_component_location): Update.
3684 (value_entirely_optimized_out): Declare.
3685 * value.c (value_offset): Argument now const.
3686 (require_not_optimized_out): New function.
3687 (value_contents_for_printing): New function.
3688 (value_contents_all): Call require_not_optimized_out.
3689 (value_contents): Likewise.
3690 (value_bits_valid): New function.
3691 (value_computed_closure): Argument now const.
3692 (set_value_component_location): Make 'whole' argument const.
3693 (value_entirely_optimized_out): New function.
3694 (value_bitsize): Argument now 'const'.
3695 (value_bitpos): Likewise.
3696 (value_type): Likewise.
3697 * valprint.h (val_print_array_elements): Update.
3698 * valprint.c (val_print): Add 'val' argument. Use
3699 valprint_check_validity.
3700 (valprint_check_validity): New function.
3701 (value_check_printable): Use value_entirely_optimized_out.
3702 (common_val_print): Update.
3703 (value_print): Likewise.
3704 (val_print_array_elements): Add 'val' argument.
3705 * valops.c (value_fetch_lazy): Use value_contents_for_printing,
3706 value_bits_valid. Reinit frame cache for lval_computed.
3707 * sh64-tdep.c (sh64_do_register): Update.
3708 * scm-valprint.c (scm_val_print): Add 'val' argument.
3709 * scm-lang.h (scm_val_print): Update.
3710 * python/python.h (apply_val_pretty_printer): Update.
3711 * python/py-prettyprint.c (apply_val_pretty_printer): Add 'val'
3712 argument. Call set_value_component_location.
3713 * printcmd.c (print_scalar_formatted): Update.
3714 * p-valprint.c (pascal_val_print): Add 'val' argument.
3715 (pascal_object_print_value_fields): Likewise.
3716 (pascal_object_print_value): Likewise.
3717 (pascal_object_print_static_field): Update.
3718 * p-lang.h (pascal_val_print): Update.
3719 (pascal_object_print_value_fields): Update.
3720 * mt-tdep.c (mt_registers_info): Update.
3721 * mi/mi-main.c (get_register): Update.
3722 (mi_cmd_data_evaluate_expression): Use common_val_print.
3723 * m2-valprint.c (m2_print_array_contents): Add 'val' argument.
3724 (m2_print_unbounded_array): Likewise.
3725 (m2_val_print): Likewise.
3726 * m2-lang.h (m2_val_print): Update.
3727 * language.h (struct language_defn) <la_val_print>: Add 'val'
3728 argument.
3729 (LA_VAL_PRINT): Likewise.
3730 * language.c (unk_lang_val_print): Add 'val' argument.
3731 * jv-valprint.c (java_print_value_fields): Add 'val' argument.
3732 (java_val_print): Likewise.
3733 * jv-lang.h (java_val_print): Add 'val' argument.
3734 * infcmd.c (default_print_registers_info): Update.
3735 * f-valprint.c (f77_print_array_1): Add 'val' argument.
3736 (f77_print_array): Likewise.
3737 (f_val_print): Likewise.
3738 * f-lang.h (f_val_print): Add 'val' argument.
3739 * dwarf2loc.c (read_pieced_value): Use value_bitsize and
3740 value_bitpos.
3741 <DWARF_VALUE_OPTIMIZED_OUT>: Don't print warning. Call
3742 set_value_optimized_out.
3743 (write_pieced_value): Use value_bitsize and value_bitpos.
3744 <default>: Don't exit loop.
3745 (check_pieced_value_validity): New function.
3746 (pieced_value_funcs): Reference check_pieced_value_validity,
3747 check_pieced_value_invalid.
3748 (copy_pieced_value_closure): Update.
3749 (check_pieced_value_bits): New function.
3750 (check_pieced_value_invalid): New function.
3751 * d-valprint.c (dynamic_array_type): Add 'val' argument.
3752 (d_val_print): Likewise.
3753 * d-lang.h (d_val_print): Update.
3754 * cp-valprint.c (cp_print_value_fields): Add 'val' argument.
3755 (cp_print_value_fields_rtti): Likewise.
3756 (cp_print_value): Likewise.
3757 (cp_print_static_field): Update.
3758 * c-valprint.c (c_val_print): Add 'val' argument.
3759 (c_value_print): Update.
3760 * c-lang.h (c_val_print): Update.
3761 (cp_print_value_fields): Likewise.
3762 (cp_print_value_fields_rtti): Likewise.
3763 * ada-valprint.c (struct ada_val_print_args): Remove.
3764 (val_print_packed_array_elements): Add 'val' argument.
3765 (ada_val_print): Likewise. Rewrite.
3766 (ada_val_print_stub): Remove.
3767 (ada_val_print_array): Add 'val' argument.
3768 (ada_val_print_1): Likewise.
3769 (print_variant_part): Likewise.
3770 (ada_value_print): Update.
3771 (print_record): Add 'val' argument.
3772 (print_field_values): Likewise.
3773 * ada-lang.h (ada_val_print): Update.
3774
3cf03773
TT
37752010-06-11 Tom Tromey <tromey@redhat.com>
3776
3777 * vec.h (VEC_cleanup): New macro.
3778 (DEF_VEC_ALLOC_FUNC_I): Update.
3779 (DEF_VEC_ALLOC_FUNC_P): Likewise.
3780 (DEF_VEC_ALLOC_FUNC_O): Likewise.
3781 * dwarf2loc.c (struct axs_var_loc): Remove.
3782 (unimplemented): New function.
3783 (translate_register): Likewise.
3784 (access_memory): Likewise.
3785 (compile_dwarf_to_ax): Likewise.
3786 (dwarf2_tracepoint_var_loc): Remove.
3787 (dwarf2_tracepoint_var_access): Likewise.
3788 (dwarf2_tracepoint_var_ref): Likewise.
3789 (locexpr_tracepoint_var_ref): Use compile_dwarf_to_ax.
3790 (loclist_tracepoint_var_ref): Likewise.
3791 * dwarf2expr.h (dwarf_expr_require_composition): Declare.
3792 * dwarf2expr.c (dwarf_expr_require_composition): Rename from
3793 require_composition. No longer static.
3794 (execute_stack_op): Update.
3795 * ax-gdb.h (trace_kludge): Declare.
3796
2bdf28a0
JK
37972010-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3798
3799 * breakpoint.c (breakpoint_restore_shadows): New OWNER comment.
3800 (should_be_inserted): Return zero also on NULL OWNER.
3801 (breakpoint_program_space_exit): New OWNER comment.
3802 (insert_breakpoint_locations): Extend comment for OWNER.
3803 (remove_breakpoint_1, remove_breakpoint): Assert on OWNER.
3804 (breakpoint_init_inferior, breakpoint_here_p, breakpoint_thread_match):
3805 New OWNER comment.
3806 (print_it_typical): Return PRINT_UNKNOWN on NULL OWNER.
3807 (watchpoint_check): New assert on BREAKPOINT_AT and OWNER.
3808 (bpstat_check_location): New assert on OWNER.
3809 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions): Move BL
3810 and B initializations to the code block. New assert on them.
3811 (print_one_breakpoint_location): New OWNER comment.
3812 (watchpoint_locations_match): Assert on OWNER.
3813 (breakpoint_locations_match): Move HW_POINT1 and HW_POINT2
3814 initializations to the code block. New assert on OWNER.
3815 (set_breakpoint_location_function): New assert on OWNER.
3816 (disable_breakpoints_in_shlibs, disable_breakpoints_in_unloaded_shlib)
3817 (bp_location_compare, update_global_location_list)
3818 (update_global_location_list): New OWNER comment.
3819
5b9a19af
UW
38202010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
3821
3822 * Makefile.in (HFILES_NO_SRCDIR): Remove config/i386/nm-linux.h
3823
669211f5
UW
38242010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
3825
3826 * config/nm-linux.h (struct target_ops): Remove forward declaration.
3827 (lin_thread_get_thread_signals): Remove prototype.
3828 (GET_THREAD_SIGNALS): Remove.
3829 * linux-nat.h (lin_thread_get_thread_signals): Add prototype.
3830 * linux-thread-db.c (check_thread_signals): Directly call
3831 lin_thread_get_thread_signals; do not check GET_THREAD_SIGNALS.
3832
b7a8b4ef
UW
38332010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
3834
3835 * gregset.h (GDB_FPXREGSET_T): Remove.
3836 (gdb_fpxregset_t): Likewise.
3837 (supply_fpxregset): Remove prototype.
3838 (fill_fpxregset): Likewise.
3839 * i386-linux-nat.c (supply_fpxregset): Remove.
3840 (fill_fpxregset): Likewise.
3841 (fetch_fpxregs): Inline supply_fpxregset call.
3842 (store_fpxregs): Inline fill_fpxregset call.
3843
3844 * config/i386/linux.mh: Set NAT_FILE to config/nm-linux.h.
3845 * config/i386/nm-linux.h: Remove file.
3846
82892036
MS
38472010-06-09 Michael Snyder <msnyder@vmware.com>
3848
3849 * target.c (update_current_target): Fix spelling error in comment.
3850 (target_mourn_inferior): Fix spelling error in error message.
3851
5ddb52fa
PH
38522010-06-08 Paul Hilfinger <hilfingr@adacore.com>
3853
3854 * dictionary.h (dict_iter_name_first, dict_iter_name_next): Refer to
3855 SYMBOL_SEARCH_NAME, not SYMBOL_BEST_NAME, in comments.
3856
0f2caa1b
MS
38572010-06-08 Michael Snyder <msnyder@vmware.com>
3858
3859 * remote.c (remote_close): Set inferior_ptid to null_ptid.
3860
3bebe2f2
JK
38612010-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3862
3863 * configure.ac <"${have_libpython}" != no>: New workaround of
3864 python#4434.
3865 * configure: Regenerate.
3866
eaaffdf4
HZ
38672010-06-08 Hui Zhu <teawater@gmail.com>
3868
3869 * record.c (record_wait): Move signal out of replay code.
3870
5c631832
JK
38712010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3872
3873 Fix PR 10640.
3874 * dwarf2-frame.c (no_dwarf_call): New function.
3875 (execute_stack_op): Set CTX->DWARF_CALL.
3876 * dwarf2expr.c (execute_stack_op) <DW_OP_call2, DW_OP_call4>: New.
3877 * dwarf2expr.h (struct dwarf_expr_context) <dwarf_call>: New.
3878 (struct dwarf_expr_context) <get_subr>: Remove the #if0-ed field.
3879 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call): New functions.
3880 (dwarf2_evaluate_loc_desc): Initialize CTX->DWARF_CALL.
3881 (needs_frame_dwarf_call): New function.
3882 (dwarf2_loc_desc_needs_frame): Initialize CTX->DWARF_CALL.
3883 * dwarf2read.c (follow_die_offset): Based on former follow_die_ref.
3884 Update the comment. Move variables die, offset and error call to ...
3885 (follow_die_ref): ... a new function.
3886 (dwarf2_fetch_die_location_block): New function.
3887 * dwarf2loc.h (dwarf2_fetch_die_location_block): New prototype.
3888
17ea53c3
JK
38892010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3890
3891 * dwarf2loc.c (struct dwarf_expr_baton) Replace objfile by per_cu.
3892 (dwarf_expr_tls_address): Use per_cu instead of objfile.
3893 (dwarf2_evaluate_loc_desc): Drop initialization of BATON.OBJFILE.
3894 Initialize new BATON.PER_CU. Adjust CTX->GDBARCH initialization for
3895 this change.
3896 (struct needs_frame_baton): New field per_cu.
3897 (dwarf2_loc_desc_needs_frame): Initialize new BATON.PER_CU.
3898 * dwarf2read.c (struct dwarf2_per_cu_data) <cu>: Extend the comment.
3899
245040d7
SW
39002010-06-07 Sami Wagiaalla <swagiaal@redhat.com>
3901
3902 * cp-support.c (make_symbol_overload_list_namespace): Only search
3903 static and global blocks.
3904 (make_symbol_overload_list_block): New function.
3905 (make_symbol_overload_list): Separate namespace search from block
3906 search.
3907 (make_symbol_overload_list_qualified): Use
3908 make_symbol_overload_list_block.
3909
4c3376c8
SW
39102010-06-07 Sami Wagiaalla <swagiaal@redhat.com>
3911
3912 * value.h: Created oload_search_type enum.
3913 (find_overload_match): Use oload_search_type enum.
3914 * valops.c (find_overload_match): Support combined member and
3915 non-member search.
3916 * eval.c (evaluate_subexp_standard): Calls to
3917 find_overload_match now use oload_search_type enum.
3918 (oload_method_static): Verify index is a proper value.
3919 * valarith.c (value_user_defined_cpp_op): Search for and handle
3920 both member and non-member operators.
3921 (value_user_defined_cpp_op): New function.
3922 (value_user_defined_op): New function.
3923 (value_x_unop): Use value_user_defined_op.
3924 (value_x_binop): Ditto.
3925 * cp-support.c (make_symbol_overload_list_using): Added block
3926 iteration.
3927 Add check for namespace aliases and imported declarations.
3928
ee55da67
JK
39292010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3930
3931 * breakpoint.h (owner): Extend the comment.
3932
1a2ab13a
JK
39332010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3934
3935 Clear stale specific bp_location from former whole breakpoint.
3936 * breakpoint.c (delete_breakpoint): Move the stale referencing clear
3937 code ...
3938 (free_bp_location): ... here. Rename there the called function to
3939 bpstat_remove_bp_location_callback.
3940 (bpstat_remove_breakpoint_callback): Rename to ...
3941 (bpstat_remove_bp_location_callback): ... here, change DATA resolution
3942 to struct bp_location. Change the called function to
3943 bpstat_remove_bp_location. Create new declaration for the function.
3944 (bpstat_remove_breakpoint): Rename to ...
3945 (bpstat_remove_bp_location): ..., change the parameter to loc, adjust
3946 code for the new parameter type.
3947
16d6b4b7
NS
39482010-06-07 Nathan Sidwell <nathan@codesourcery.com>
3949
3950 * README: Make version-agnostic.
3951
7e314c57
JK
39522010-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3953
3954 Fix duplicate types for single DIE.
3955 * dwarf2read.c (read_structure_type): Move set_descriptive_type after
3956 set_die_type.
3957 (read_array_type): Remove type initialization. Recheck get_die_type
3958 after initial die_type. Move set_die_type before set_descriptive_type.
3959 (read_set_type): New variable domain_type. Recheck get_die_type after
3960 initial die_type. Move attr initialization later.
3961 (read_tag_pointer_type, read_tag_reference_type): New variable
3962 target_type. Recheck get_die_type after initial die_type.
3963 (read_tag_ptr_to_member_type): Recheck get_die_type after initial
3964 die_type and die_containing_type.
3965 (read_tag_const_type, read_tag_volatile_type, read_subroutine_type):
3966 Recheck get_die_type after initial die_type.
3967 (read_subrange_type): Recheck get_die_type after initial die_type.
3968 Move set_die_type before set_descriptive_type.
3969 (set_die_type): Extend the function comment. Call complaint if DIE has
3970 some type already set.
3971
2f296114
VP
39722010-06-05 Vladimir Prus <vladimir@codesourcery.com>
3973
3974 * mi/mi-main.c (mi_cmd_list_thread_groups): Adjust
3975 for current naming of thread groups (iN, not N).
3976
554794dc
SDJ
39772010-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
3978
3979 * ada-lang.c (ada_operator_length): Constify `struct expression'.
3980 * parse.c (operator_length): Likewise.
3981 (operator_length_standard): Likewise.
3982 * parser-defs.h (operator_length): Likewise.
3983 (operator_length_standard): Likewise.
3984 (struct exp_descriptor <operator_length>): Likewise.
3985
967cf477
DE
39862010-06-04 Doug Evans <dje@google.com>
3987
bddaacb9 3988 Add support for enabling/disabling individual pretty-printers.
967cf477
DE
3989 * python/py-prettyprint.c (search_pp_list): Skip disabled printers.
3990 * python/python-internal.h (gdbpy_enabled_cst): Declare.
3991 * python/python.c (gdbpy_enabled_cst): Define.
3992 (_initialize_python): Initialize gdbpy_enabled_cst.
3993 * NEWS: Add entry.
3994
2dec564e
JK
39952010-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3996
3997 * breakpoint.c (update_global_location_list): Fix comment typo.
3998
44b5680a
HZ
39992010-06-04 Hui Zhu <teawater@gmail.com>
4000
4001 * dwarf2loc.c (disassemble_dwarf_expression): Change ul to l.
4002
e7a30f46
DE
40032010-06-03 Doug Evans <dje@google.com>
4004
4005 * configure.ac: Don't fail if python is unusable when
4006 configured with --with-python=auto.
4007 * configure: Regenerate.
4008
84b4420f
SW
40092010-06-03 Sami Wagiaalla <swagiaal@redhat.com>
4010
889bf7c5 4011 * dwarf2read.c (new_symbol): Remove redundant naming of symbol.
84b4420f 4012
df178451
PM
40132010-06-03 Pierre Muller <muller@ics.u-strasbg.fr>
4014
4015 * valprint.h (get_array_bounds): Change low and high parameter types
4016 to LONGEST *.
0407b3f1 4017 * valprint.c (get_array_bounds): Use get_discrete_bounds call to
df178451
PM
4018 compute bounds.
4019 (val_print_array_elements): Adapt to change above.
4020 * ada-valprint.c (print_optional_low_bound): Adapt to change above.
4021 * p-valprint.c (pascal_val_print): Likewise.
4022
fd5700c7
JK
40232010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4024
4025 * symfile.c (init_filename_language_table): New extensions .for, .FOR,
4026 .ftn, .FTN, .fpp, .FPP, .f90, .F90, .f95, .F95, .f03, .F03, .f08 and
4027 .F08.
4028
f55ee35c
JK
40292010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4030
4031 Support DW_TAG_module as separate namespaces.
4032 * dwarf2read.c (typename_concat): New parameter physname.
4033 (read_module_type): New function and declaration.
4034 (scan_partial_symbols): Scan also DW_TAG_module children.
4035 (partial_die_parent_scope): Accept scope even from DW_TAG_module. Pass
4036 to typename_concat backward compatible physname value 0.
4037 (partial_die_full_name, read_namespace_type): Pass to typename_concat
4038 backward compatible physname value 0.
4039 (add_partial_module, read_module): Remove FIXME comment.
4040 (process_die) <DW_TAG_module>: Set PROCESSING_HAS_NAMESPACE_INFO.
4041 (die_needs_namespace) <DW_TAG_variable>: Allow returning true even for
4042 DIEs under DW_TAG_module.
4043 (dwarf2_compute_name): Move the ada block for DW_AT_linkage_name and
4044 DW_AT_MIPS_linkage_name first, extend it for language_fortran
4045 && physname and return there instead of just setting NAME. Extend
4046 the main block for language_fortran. Pass physname parameter to the
4047 typename_concat call.
4048 (read_import_statement, read_func_scope, get_scope_pc_bounds)
4049 (load_partial_dies, determine_prefix): Support also DW_TAG_module.
4050 (new_symbol): Fill in cplus_specific.demangled_name if it is still
4051 missing from SYMBOL_SET_NAMES in the language_fortran case.
4052 (new_symbol) <DW_TAG_variable>: Force LOC_UNRESOLVED for gfortran module
4053 variables.
4054 (read_type_die) <DW_TAG_module>: New.
4055 (MAX_SEP_LEN): Increase to 7.
4056 (typename_concat): New parameter physname. New variable lead. Support
4057 also language_fortran.
4058 * f-exp.y (yylex): Consider : also as a symbol name character class.
4059 * f-lang.c: Include cp-support.h.
4060 (f_word_break_characters, f_make_symbol_completion_list): New functions.
4061 (f_language_defn): Use cp_lookup_symbol_nonlocal,
4062 f_word_break_characters and f_make_symbol_completion_list.
4063 * f-typeprint.c (f_type_print_base) <TYPE_CODE_MODULE>: New.
4064 * gdbtypes.h (enum type_code) <TYPE_CODE_MODULE>: New.
4065 * symtab.c (symbol_init_language_specific): Support language_fortran.
4066 (symbol_find_demangled_name): New comment on language_fortran.
4067 (symbol_natural_name, symbol_demangled_name): Use demangled_name even
4068 for language_fortran.
4069 (lookup_symbol_aux_local): Check imports also for language_fortran.
4070 (default_make_symbol_completion_list): Rename to ...
4071 (default_make_symbol_completion_list_break_on): ... this name. New
4072 parameter break_on, use it.
4073 (default_make_symbol_completion_list): New stub.
4074 * symtab.h (default_make_symbol_completion_list_break_on): New
4075 prototype.
4076
cb91c06a
JB
40772010-06-02 Joel Brobecker <brobecker@adacore.com>
4078
4079 * remote.c (remote_get_noisy_reply): Remove trailing "\n" in call
4080 to error.
4081
5c315b68
JK
40822010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4083
4084 * dwarf2read.c (typename_concat): Add const to the variable sep.
4085
9eae7c52
TT
40862010-06-02 Tom Tromey <tromey@redhat.com>
4087
4088 * dwarf2loc.h (dwarf2_per_cu_data): Declare.
4089 * dwarf2read.c (dwarf_stack_op_name): No longer static. Return
4090 type is const. Add 'def' argument. Add missing operators, remove
4091 unhandled ones.
4092 (decode_locdesc): Update.
4093 (dwarf2_always_disassemble): New global.
4094 (show_dwarf2_always_disassemble): New function.
4095 (_initialize_dwarf2_read): Add always-disassemble.
4096 (dwarf2_per_cu_offset_size): New function.
4097 * dwarf2loc.c (dwarf2_always_disassemble): Declare.
4098 (piece_end_p): New function.
4099 (locexpr_describe_location_piece): Replace 'size' argument with
4100 'end'. Use piece_end_p. Rewrite recognition of TLS. Recognize
4101 some constants. Remove errors.
4102 (disassemble_dwarf_expression): New function.
4103 (locexpr_describe_location_1): Use disassemble_dwarf_expression.
4104 Add 'offset_size' argument.
4105 (loclist_describe_location): Change output formatting.
4106 * dwarf2expr.h (dwarf_stack_op_name): Declare.
4107
7d3fe98e
SW
41082010-06-02 Sami Wagiaalla <swagiaal@redhat.com>
4109
4110 * cp-support.c (make_symbol_overload_list_adl_namespace): Handle
4111 anonymous type case.
4112
e77813c8
PM
41132010-06-02 Pierre Muller <muller@ics.u-strasbg.fr>
4114
4115 * dwarf2read.c (read_subrange_type): Handle missing base type
4116 according to Dwarf-2 specifications.
4117
7cf3118a
SDJ
41182010-06-01 Sergio Durigan Junior <sergiodj@redhat.com>
4119
4120 * expprint.c (print_subexp_standard): Remove exp_opcodes BINOP_INCL,
4121 BINOP_EXCL.
4122 (op_name_standard): Remove exp_opcodes BINOP_INCL, BINOP_EXCL,
4123 UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH.
4124 (dump_subexp_body_standard): Remove exp_opcodes BINOP_INCL,
4125 BINOP_EXCL, UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD,
4126 UNOP_CHMAX, UNOP_CHMIN.
4127 * expression.h (enum exp_opcode) <BINOP_INCL, BINOP_EXCL,
4128 UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD, UNOP_CHMAX,
4129 UNOP_CHMIN>: Remove opcodes.
4130
ae4d0c03
PM
41312010-06-01 Pierre Muller <muller@ics.u-strasbg.fr>
4132
4133 * dwarf2read.c (read_func_scope): Do not complain for
4134 external function if bounds are not found.
4135
fa593d66
PA
41362010-06-01 Pedro Alves <pedro@codesourcery.com>
4137
4138 * NEWS: Mention gdbserver fast tracepoints support.
4139
cd44747c
PM
41402010-05-31 Pierre Muller <muller@ics.u-strasbg.fr>
4141
4142 * windows-nat.c (GetConsoleFontSize, GetCurrentConsoleFont):
4143 New macros.
4144 (windows_set_console_info): New function.
4145 (windows_create_inferior): Call windows_set_console_info
4146 if NEW_CONSOLE is true.
4147 (bad_GetCurrentConsoleFont, bad_GetConsoleFontSize): New functions.
4148 (_initialize_loadable): Initialize GetConsoleFontSize and
4149 GetCurrentConsoleFont.
4150
f6528abd
JK
41512010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4152
4153 * Makefile.in (RDYNAMIC): New.
4154 (SFILES): Add proc-service.list.
4155 * config/alpha/alpha-linux.mh (NAT_CDEPS): New.
4156 (LOADLIBES): Replace -rdynamic by $(RDYNAMIC).
4157 * config/arm/linux.mh: Likewise.
4158 * config/i386/linux.mh: Likewise.
4159 * config/i386/linux64.mh: Likewise.
4160 * config/ia64/linux.mh: Likewise.
4161 * config/m32r/linux.mh: Likewise.
4162 * config/m68k/linux.mh: Likewise.
4163 * config/mips/linux.mh: Likewise.
4164 * config/pa/linux.mh: Likewise.
4165 * config/powerpc/linux.mh: Likewise.
4166 * config/powerpc/ppc64-linux.mh: Likewise.
4167 * config/s390/s390.mh: Likewise.
4168 * config/sparc/linux.mh: Likewise.
4169 * config/sparc/linux64.mh: Likewise.
4170 * config/xtensa/linux.mh: Likewise.
4171 * configure.ac: New RDYNAMIC on native host and GCC.
4172 (solaris*): Replace -Wl,-export-dynamic by $RDYNAMIC.
4173 * configure: Regenerate.
4174 * proc-service.list: New.
4175
ca2a87a0
JK
41762010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4177
4178 * linux-nat.c (linux_nat_core_of_thread_1): Fix crash on invalid
4179 CONTENT.
4180
1e225492
JK
41812010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4182
4183 * linux-nat.c (linux_nat_wait_1): Do not call
4184 linux_nat_core_of_thread_1 on TARGET_WAITKIND_EXITED or
4185 TARGET_WAITKIND_SIGNALLED.
4186
e802dbe0
JB
41872010-05-27 Joel Brobecker <brobecker@adacore.com>
4188
4189 * ada-lang.c (ada_inferior_data): New struct.
4190 (ada_inferior_data): New static global.
4191 (ada_inferior_data_cleanup, get_ada_inferior_data, ada_inferior_exit)
4192 (ada_get_tsd_type): New functions.
4193 (ada_tag_name_2): Use ada_get_tsd_type instead of ada_find_any_type
4194 to look the tsd type up.
4195 (_initialize_ada_language): Attach ada_inferior_exit to inferior_exit
4196 event. Set ada_inferior_data.
4197
176a6961
PA
41982010-05-27 Pedro Alves <pedro@codesourcery.com>
4199
4200 * remote.c (unpack_varlen_hex): Remove forward declaration.
4201 (remote_console_output): Make static, and add forward declaration.
4202 * remote.h: Drop FIXME comment.
4203 (unpack_varlen_hex): Declare.
4204 (remote_console_output, remote_cisco_objfile_relocate)
4205 (deprecated_target_resume_hook, deprecated_target_wait_loop_hook):
4206 Delete declarations.
4207 * tracepoint.c: Include "remote.h".
4208 (unpack_varlen_hex): Delete declaration.
4209
88bfdde4
TT
42102010-05-27 Tom Tromey <tromey@redhat.com>
4211
4212 * dwarf2loc.c (struct piece_closure) <refc>: New field.
4213 (allocate_piece_closure): Initialize refc.
4214 (copy_pieced_value_closure): Use refc.
4215 (free_pieced_value_closure): Likewise.
4216
8c6363cf
TT
42172010-05-27 Tom Tromey <tromey@redhat.com>
4218
4219 * arm-tdep.c (push_stack_item): 'contents' now const.
4220 (arm_push_dummy_call): Make 'val' const. Use value_contents, not
4221 value_contents_writeable. Introduce new temporary.
4222
7ecb917e
TT
42232010-05-27 Tom Tromey <tromey@redhat.com>
4224
4225 * findcmd.c (parse_find_args): Use value_contents, not
4226 value_contents_raw.
4227
f42a0a33
TT
42282010-05-27 Tom Tromey <tromey@redhat.com>
4229
4230 * alpha-tdep.c (alpha_push_dummy_call): Make alpha_arg.contents
4231 const. Use value_contents, not value_contents_writeable.
4232
12b795ad
JB
42332010-05-27 Joel Brobecker <brobecker@adacore.com>
4234
4235 * ada-lang.c (ensure_lval): Replace call to value_contents_raw
4236 by call to value_contents.
4237
5a2e11c7
OS
42382010-05-27 Ozkan Sezer <sezeroz@gmail.com>
4239
4240 * MAINTAINERS: Add myself for write after approval privileges.
4241
ec685c5e
DE
42422010-05-26 Doug Evans <dje@google.com>
4243
0c4a4063
DE
4244 Allow python to find its files if moved from original location.
4245 * acinclude.m4 (GDB_AC_DEFINE_RELOCATABLE): New function.
4246 (GDB_AC_WITH_DIR): Call it.
4247 * configure.ac: Define WITH_PYTHON_PATH if we can find the
4248 python installation directory.
4249 * config.in: Regenerate.
4250 * configure: Regenerate.
4251 * defs.h (python_libdir): Declare.
4252 * main.c (python_libdir): Define.
4253 (captured_main): Initialize python_libdir.
4254 * python/python.c (_initialize_python): #ifdef WITH_PYTHON_PATH,
4255 call Py_SetProgramName to make sure python can find its libraries
4256 and modules.
4257
ec685c5e
DE
4258 * configure.ac: Try to use python's distutils to fetch compilation
4259 parameters.
4260 * configure: Regenerate.
4261 * python/python-config.py: New file.
4262
363a6e9f
OS
42632010-05-26 Ozkan Sezer <sezeroz@gmail.com>
4264
4265 * ser-tcp.c (net_open): Check error return from socket() call by its
4266 equality to -1 not by it being negative.
4267 (net_close): Likewise.
4268
dde08ee1
PA
42692010-05-26 Pedro Alves <pedro@codesourcery.com>
4270
4271 * NEWS: Mention the `qRelocInsn' feature.
4272 * gdbarch.sh (relocate_instruction): New.
4273 * amd64-tdep.c (rip_relative_offset): New.
4274 (append_insns): New.
4275 (amd64_relocate_instruction): New.
4276 (amd64_init_abi): Install it.
4277 * i386-tdep.c (append_insns): New.
4278 (i386_relocate_instruction): New.
4279 (i386_gdbarch_init): Install it.
4280 * remote.c (remote_get_noisy_reply): Handle qRelocInsn requests.
4281 * gdbarch.h, gdbarch.c: Regenerate.
4282
947bb88f
TT
42832010-05-26 Tom Tromey <tromey@redhat.com>
4284
4285 * dwarf2loc.h (struct dwarf2_locexpr_baton) <data>: Now const.
4286 (struct dwarf2_loclist_baton) <data>: Likewise.
4287 * dwarf2loc.c (find_location_expression): Constify return type.
4288 (dwarf2_evaluate_loc_desc): Make 'data' argument const.
4289 (dwarf2_loc_desc_needs_frame): Likewise.
4290 (loclist_read_variable): Constify.
4291 (loclist_describe_location): Likewise.
4292 (loclist_tracepoint_var_ref): Likewise.
4293
0d45f56e
TT
42942010-05-25 Tom Tromey <tromey@redhat.com>
4295
4296 * dwarf2loc.c (dwarf_expr_frame_base): Constify.
4297 (dwarf_expr_frame_base_1): Likewise.
4298 (read_pieced_value): Update.
4299 (needs_frame_frame_base): Constify.
4300 (dwarf2_tracepoint_var_loc): Likewise.
4301 (dwarf2_tracepoint_var_access): Likewise.
4302 (locexpr_describe_location_piece): Likewise.
4303 (locexpr_describe_location_1): Likewise.
4304 * dwarf2expr.h (struct dwarf_expr_context) <get_frame_base>:
4305 Constify.
4306 (data): Now const.
4307 (struct dwarf_expr_piece) <v.literal.data>: Likewise.
4308 (dwarf_expr_eval, read_uleb128, read_sleb128)
4309 (dwarf2_read_address): Update.
4310 * dwarf2expr.c (dwarf_expr_eval): Constify.
4311 (read_uleb128): Likewise.
4312 (read_sleb128): Likewise.
4313 (dwarf2_read_address): Likewise.
4314 (require_composition): Likewise.
4315 (execute_stack_op): Likewise.
4316 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <loc.exp>: Now a
4317 "const gdb_byte *".
4318 * dwarf2-frame.c (struct dwarf2_frame_state_reg_info) <cfa_exp>:
4319 Now const.
4320 (no_get_frame_base): Constify.
4321 (execute_stack_op): Likewise.
4322 (execute_cfa_program): Likewise.
4323 (read_encoded_value): Likewise.
4324
07ca107c
DE
43252010-05-25 Doug Evans <dje@google.com>
4326
e34838f0
DE
4327 * ser-pipe.c (pipe_open): Ignore SIGINTs in child.
4328
01f69b38
DE
4329 * event-loop.h (GDB_READABLE, GDB_WRITABLE, GDB_EXCEPTION): Move to ...
4330 * event-loop.c: ... here.
4331 * tui/tui-io.c (tui_readline_output): Rename parameter `code' to
4332 `error' for clarity.
4333 (tui_getc): Pass correct value for `error' parameter to
4334 tui_readline_output.
4335
07ca107c
DE
4336 Add python gdb.GdbError and gdb.string_to_argv.
4337 * NEWS: Document them.
4338 * python/py-cmd.c (cmdpy_function): Don't print a traceback if
4339 the exception is gdb.GdbError. Print a second traceback if there's
4340 an error computing the error message.
4341 (gdbpy_string_to_argv): New function.
4342 * python/py-utils.c (gdbpy_obj_to_string): New function.
4343 (gdbpy_exception_to_string): New function.
4344 * python/python-internal.h (gdbpy_string_to_argv): Declare.
4345 (gdbpy_obj_to_string, gdbpy_exception_to_string): Declare.
4346 (gdbpy_gdberror_exc): Declare.
4347 * python/python.c (gdbpy_gdberror_exc): New global.
4348 (_initialize_python): Initialize gdbpy_gdberror_exc and create
4349 gdb.GdbError.
4350 (GdbMethods): Add string_to_argv.
4351
5572ce1f
PM
43522010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
4353
4354 * windows-nat.c (display_selector): Call GetLastError to give better
4355 failure explanation.
4356
acd5838a
PA
43572010-05-24 Pedro Alves <pedro@codesourcery.com>
4358
4359 * config.in: Regenerate.
4360
b26a4dcb
JK
43612010-05-23 Jan Kratochvil <jan.kratochvil@redhat.com>
4362
4363 Code cleanup.
4364 * target.c (push_target): Return only void. Remove the return value
4365 comment.
4366 * target.h (push_target): Return only void.
4367
f434ba03
PA
43682010-05-23 Pedro Alves <pedro@codesourcery.com>
4369
4370 Update gnulib from latest git.
4371 (250b80067c1e1d8faa0c42fb572f721975b929c5)
4372
4373 * gnulib/memcmp.c: Removed.
4374 * gnulib/memchr.valgrind: New.
4375 * gnulib/stddef.in.h: New.
4376 * gnulib/Makefile.am: Updated.
4377 * gnulib/memchr.c: Updated.
4378 * gnulib/memmem.c: Updated.
4379 * gnulib/stdint.in.h: Updated.
4380 * gnulib/str-two-way.h: Updated.
4381 * gnulib/string.in.h: Updated.
4382 * gnulib/wchar.in.h: Updated.
4383
4384 * gnulib/extra/link-warning.h: Removed.
4385 * gnulib/extra/c++defs.h: New.
4386 * gnulib/extra/warn-on-use.h: New.
4387 * gnulib/extra/arg-nonnull.h: Updated.
4388
4389 * gnulib/m4/extensions.m4: Updated.
4390 * gnulib/m4/gnulib-cache.m4: Updated.
4391 * gnulib/m4/gnulib-common.m4: Updated.
4392 * gnulib/m4/gnulib-comp.m4: Updated.
4393 * gnulib/m4/gnulib-tool.m4: Updated.
4394 * gnulib/m4/include_next.m4: Updated.
4395 * gnulib/m4/longlong.m4: Updated.
4396 * gnulib/m4/memchr.m4: Updated.
4397 * gnulib/m4/memmem.m4: Updated.
4398 * gnulib/m4/stdint.m4: Updated.
4399 * gnulib/m4/string_h.m4: Updated.
4400 * gnulib/m4/memcmp.m4: Removed.
4401 * gnulib/m4/onceonly_2_57.m4: Removed.
4402 * gnulib/m4/00gnulib.m4: New.
4403 * gnulib/m4/mmap-anon.m4: New.
4404 * gnulib/m4/multiarch.m4: New.
4405 * gnulib/m4/onceonly.m4: New.
4406 * gnulib/m4/stddef_h.m4: New.
4407 * gnulib/m4/warn-on-use.m4: New.
4408 * gnulib/m4/wchar.m4: Removed.
4409 * gnulib/m4/wchar_h.m4: New.
4410 * gnulib/m4/wchar_t.m4: New.
4411 * gnulib/m4/wint_t.m4: New.
4412
4413 * aclocal.m4: Regenerate.
4414 * config.in: Likewise.
4415 * configure: Likewise.
4416 * gnulib/Makefile.in: Likewise.
4417
d3b1e874
TT
44182010-05-21 Tom Tromey <tromey@redhat.com>
4419
4420 * dwarf2loc.c (extract_bits_primitive): New function.
4421 (extract_bits): Likewise.
4422 (insert_bits): Likewise.
4423 (copy_bitwise): Likewise.
4424 (read_pieced_value): Do all operations in bits.
4425 (write_pieced_value): Likewise.
4426 * dwarf2expr.h (struct dwarf_expr_piece) <offset>: New field.
4427 * dwarf2expr.c (add_piece): New arguments bit_piece, offset.
4428 Always use xrealloc to resize piece array.
4429 (execute_stack_op) <DW_OP_reg0>: Handle DW_OP_bit_piece.
4430 <DW_OP_piece>: Update.
4431 <DW_OP_bit_piece>: New case.
4432
cb826367
TT
44332010-05-21 Tom Tromey <tromey@redhat.com>
4434
4435 * dwarf2loc.c (read_pieced_value): Exit loop when result is full.
4436 <DWARF_VALUE_OPTIMIZED_OUT>: New case.
4437 * dwarf2expr.h (enum dwarf_value_location)
4438 <DWARF_VALUE_OPTIMIZED_OUT>: New constant.
4439 * dwarf2expr.c (dwarf_expr_stack_empty_p): New function.
4440 (add_piece): Handle empty piece.
4441 (execute_stack_op) <DW_OP_piece>: Handle
4442 DWARF_VALUE_OPTIMIZED_OUT.
4443
74de6778
TT
44442010-05-21 Tom Tromey <tromey@redhat.com>
4445
4446 * eval.c (evaluate_subexp_standard) <BINOP_SUBSCRIPT>: Call
4447 evaluate_subexp, not evaluate_subexp_with_coercion.
4448
f346a30d
PM
44492010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
4450
4451 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
4452 attribute.
4453
afd74c5f
TT
44542010-05-21 Tom Tromey <tromey@redhat.com>
4455
4456 * dwarf2loc.c (read_pieced_value): Work properly when 'v' has an
4457 offset.
4458 (write_pieced_value): Likewise.
4459
90e7c2c5
PM
44602010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
4461
4462 * dwarf2read.c (process_die): Also allow DW_TAG_const_type
4463 and DW_TAG_volatile_type.
4464 (new_symbol): Likewise.
4465
8148cf8d
PM
44662010-05-20 Pierre Muller <muller@ics.u-strasbg.fr>
4467
4468 * p-valprint.c (pascal_val_print): Call get_array_bounds
4469 to obtain the number of elements in an array.
4470
3a1d4620
DE
44712010-05-19 Doug Evans <dje@google.com>
4472
0bf0f8c4
DE
4473 * python.c (gdbpy_print_stack): Ensure output ends with a newline.
4474
3a1d4620
DE
4475 * python.c (source_python_script): Add comment.
4476 (source_python_script_for_objfile): Remove unnecessary call to
4477 gdbpy_print_stack.
4478
dc21167c
JK
44792010-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4480 Sergio Durigan Junior <sergiodj@redhat.com>
4481
4482 Code cleanup.
4483 * parse.c (exp_iterate): Use operator_length wrapper function.
4484
5b4ee69b
MS
44852010-05-18 Michael Snyder <msnyder@vmware.com>
4486
4487 * ada-lang.c: White space.
4488 * ada-typeprint.c: White space.
4489 * ada-valprint.c: White space.
4490 * addrmap.c: White space.
4491 * auxv.c: White space.
4492 * ax-gdb.c: White space.
4493
e17c9e56
HZ
44942010-05-18 Hui Zhu <teawater@gmail.com>
4495
4496 * linux-fork.c (inferior_call_waitpid_cleanup): Add check
4497 for oldfp.
4498 (inferior_call_waitpid): Move make_cleanup out of check.
4499 Check the return of waitpid.
4500 (delete_checkpoint_command): Add pptid to save fi->parent_ptid.
4501
a109c7c1
MS
45022010-05-17 Michael Snyder <msnyder@vmware.com>
4503
1c5313c5
MS
4504 * tui/tui.c: White space.
4505 * tui/tui-data.c: White space.
4506 * tui/tui-disasm.c: White space.
4507 * tui/tui-file.c: White space.
4508 * tui/tui-interp.c: White space.
4509 * tui/tui-main.c: White space.
4510 * tui/tui-out.c: White space.
4511 * tui/tui-regs.c: White space.
4512 * tui/tui-source.c: White space.
4513 * tui/tui-stack.c: White space.
4514 * tui/tui-win.c: White space.
4515 * tui/tui-winsource.c: White space.
4516
f4a14ae6
MS
4517 * procfs.c: White space.
4518
d59b6f6c
MS
4519 * python/py-auto-load.c: White space.
4520 * python/py-block.c: White space.
4521 * python/py-breakpoint.c: White space.
4522 * python/py-cmd.c: White space.
4523 * python/py-function.c: White space.
4524 * python/py-lazy-string.c: White space.
4525 * python/py-objfile.c: White space.
4526 * python/py-param.c: White space.
4527 * python/py-prettyprint.c: White space.
4528 * python/py-progspace.c: White space.
4529 * python/py-symtab.c: White space.
4530 * python/python.c: White space.
4531 * python/py-type.c: White space.
4532 * python/py-utils.c: White space.
4533 * python/py-value.c: White space.
4534
102040f0
MS
4535 * mi/mi-cmd-break.c: White space.
4536 * mi/mi-cmd-env.c: White space.
4537 * mi/mi-cmds.c: White space.
4538 * mi/mi-cmd-stack.c: White space.
4539 * mi/mi-cmd-var.c: White space.
4540 * mi/mi-console.c: White space.
4541 * mi/mi-getopt.c: White space.
4542 * mi/mi-interp.c: White space.
4543 * mi/mi-main.c: White space.
4544 * mi/mi-out.c: White space.
4545 * mi/mi-parse.c: White space.
4546
cdb27c12
MS
4547 * cli/cli-cmds.c: White space.
4548 * cli/cli-decode.c: White space.
4549 * cli/cli-dump.c: White space.
4550 * cli/cli-interp.c: White space.
4551 * cli/cli-logging.c: White space.
4552 * cli/cli-script.c: White space.
4553 * cli/cli-setshow.c: White space.
4554
a109c7c1
MS
4555 * valarith.c: White space.
4556 * valops.c: White space.
4557 * valprint.c: White space.
4558 * value.c: White space.
4559 * varobj.c: White space.
4560 * xcoffread.c: White space.
4561 * xml-support.c: White space.
4562 * xml-tdesc.c: White space.
4563
3872d37d
AS
45642010-05-17 Andreas Schwab <schwab@redhat.com>
4565
4566 PR gdb/11092
4567 * c-lang.c (c_printstr): Compute real length of NUL terminated
4568 string at first.
4569
0cce5bd9
JB
45702010-05-17 Joel Brobecker <brobecker@adacore.com>
4571
4572 * parse.c (parse_exp_in_context): When block is not NULL, use
4573 its associated language to parse the expression instead of
4574 the current_language.
4575
5f19d646
JB
45762010-05-17 Joel Brobecker <brobecker@adacore.com>
4577
4578 * jv-lang.c (java_lookup_class): Remove commented out code.
4579 (type_from_class): Likewise.
4580 (java_op_print_tab): Remove commented-out elements.
4581
28c85d6c
JB
45822010-05-17 Joel Brobecker <brobecker@adacore.com>
4583
4584 * ada-lang.c (to_fixed_range_type): The the raw index type as
4585 argument instead of the raw type name. Remove orig_type parameter.
4586 Update calls throughout.
4587 (ada_fixup_array_indexes_type): New function.
4588 (ada_array_bound_from_type): Add call to ada_fixup_array_indexes_type.
4589 * ada-lang.h (ada_fixup_array_indexes_type): Add declaration.
4590 * ada-typeprint.c (print_range_type): Renames print_range_type_named.
4591 Remove name parameter.
4592 (print_array_type): Add call to ada_fixup_array_indexes_type.
4593 Update calls to print_range_type.
4594 (ada_print_type): Update calls to print_range_type.
4595
d09039dd
PM
45962010-05-17 Pierre Muller <muller@ics.u-strasbg.fr>
4597
4598 * dwarf2read.c (read_set_type): Set type length if
4599 DW_AT_byte_size attribute is present.
4600
7a081a30
PM
46012010-05-17 Pierre Muller <muller@ics.u-strasbg.fr>
4602
4603 * p-valprint.c (pascal_val_print): Handle set type if range limits
4604 are undefined but size is known.
4605
77382aee
PA
46062010-05-17 Pedro Alves <pedro@codesourcery.com>
4607
4608 * procfs.c: Reformat.
4609
433759f7
MS
46102010-05-16 Michael Snyder <msnyder@vmware.com>
4611
5d502164
MS
4612 * target.c: White space.
4613 * target-descriptions.c: White space.
4614 * target-memory.c: White space.
4615 * thread.c: White space.
4616 * top.c: White space.
4617 * tracepoint.c: White space.
4618 * trad-frame.c: White space.
4619 * tramp-frame.c: White space.
4620 * ui-file.c: White space.
4621 * ui-out.c: White space.
4622 * user-regs.c: White space.
4623 * utils.c: White space.
4624
433759f7
MS
4625 * scm-exp.c: White space.
4626 * scm-lang.c: White space.
4627 * scm-valprint.c: White space.
4628 * sentinel-frame.c: White space.
4629 * ser-base.c: White space.
4630 * ser-go32.c: White space.
4631 * serial.c: White space.
4632 * ser-mingw.c: White space.
4633 * ser-pipe.c: White space.
4634 * ser-tcp.c: White space.
4635 * ser-unix.c: White space.
4636 * solib.c: White space.
4637 * solib-darwin.c: White space.
4638 * solib-frv.c: White space.
4639 * solib-irix.c: White space.
4640 * solib-osf.c: White space.
4641 * solib-pa64.c: White space.
4642 * solib-som.c: White space.
4643 * solib-spu.c: White space.
4644 * solib-svr4.c: White space.
4645 * solib-target.c: White space.
4646 * source.c: White space.
4647 * stabsread.c: White space.
4648 * stack.c: White space.
4649 * std-regs.c: White space.
4650 * symfile.c: White space.
4651 * symmisc.c: White space.
4652 * symtab.c: White space.
4653
dd304d53
MS
46542010-05-16 Michael Snyder <msnyder@vmware.com>
4655
4656 * source.c (_initialize_source): Add "rev" as an abbreviation
4657 for the "reverse-search" command.
4658
a744cf53
MS
46592010-05-16 Michael Snyder <msnyder@vmware.com>
4660
123f5f96
MS
4661 * record.c: White space.
4662 * regcache.c: White space.
4663 * reggroups.c: White space.
4664 * remote-fileio.c: White space.
4665 * remote-m32r-sdi.c: White space.
4666 * remote-mips.c: White space.
4667 * remote-sim.c: White space.
a744cf53
MS
4668 * remote.c: White space.
4669 (process_g_packet): Remove orphan braces.
4670
b8d56208
MS
46712010-05-15 Michael Snyder <msnyder@vmware.com>
4672
ad3bbd48
MS
4673 * parse.c: White space.
4674 * p-lang.c: White space.
4675 * posix-hdep.c: White space.
4676 * printcmd.c: White space.
4677 * progspace.c: White space.
4678 * prologue-value.c: White space.
4679 * psymtab.c: White space.
4680 * p-typeprint.c: White space.
4681 * p-valprint.c: White space.
4682
5cc80db3
MS
4683 * objc-lang.c: White space.
4684 * objfiles.c: White space.
4685 * observer.c: White space.
4686 * osabi.c: White space.
4687 * osdata.c: White space.
4688
b8d56208
MS
4689 * m2-lang.c: White space.
4690 * m2-valprint.c: White space.
4691 * macrocmd.c: White space.
4692 * macroexp.c: White space.
4693 * macroscope.c: White space.
4694 * macrotab.c: White space.
4695 * main.c: White space.
4696 * maint.c: White space.
4697 * mdebugread.c: White space.
4698 * memattr.c: White space.
4699 * minsyms.c: White space.
4700 * monitor.c: White space.
4701
9a619af0
MS
47022010-05-14 Michael Snyder <msnyder@vmware.com>
4703
e0881a8e
MS
4704 * jv-lang.c: White space.
4705 * jv-typeprint.c: White space.
4706 * jv-valprint.c: White space.
4707 * language.c: White space.
4708 * libunwind-frame.c: White space.
4709 * linespec.c: White space.
4710 * linux-nat.c: White space.
4711 * linux-record.c: White space.
4712 * linux-thread-db.c: White space.
4713
abbb1732
MS
4714 * infcall.c: White space.
4715 * inf-child.c: White space.
4716 * infcmd.c: White space.
4717 * inferior.c: White space.
4718 * inf-loop.c: White space.
4719 * inflow.c: White space.
4720 * inline-frame.c: White space.
4721 * interps.c: White space.
4722
d8734c88
MS
4723 * gcore.c: White space.
4724 * gdb.c: White space.
4725 * gdbtypes.c: White space.
4726 * gnu-nat.c: White space.
4727 * gnu-v2-abi.c: White space.
4728 * gnu-v3-abi.c: White space.
4729
bb9bcb69
MS
4730 * findcmd.c: White space.
4731 * findvar.c: White space.
4732 * fork-child.c: White space.
4733 * frame-base.c: White space.
4734 * frame.c: White space.
4735 * frame-unwind.c: White space.
4736 * f-valprint.c: White space.
4737
d7f9d729
MS
4738 * elfread.c: White space.
4739 * environ.c: White space.
4740 * eval.c: White space.
4741 * event-loop.c: White space.
4742 * event-top.c: White space.
4743 * exceptions.c: White space.
4744 * exec.c: White space.
4745 * expprint.c: White space.
4746
9a619af0
MS
4747 * dbxread.c: White space.
4748 * dcache.c: White space.
4749 * disasm.c: White space.
4750 * doublest.c: White space.
4751 * dsrec.c: White space.
4752 * dummy-frame.c: White space.
4753 * dwarf2expr.c: White space.
4754 * dwarf2-frame.c: White space.
4755 * dwarf2loc.c: White space.
4756 * dwarf2read.c: White space.
4757
88d4aea7
PM
47582010-05-14 Phil Muldoon <pmuldoon@redhat.com>
4759
889bf7c5 4760 PR python/11482
88d4aea7
PM
4761
4762 * python/py-value.c (valpy_hash): New function.
4763 (value_object_type): Register valpy_hash.
4764
7a298875 47652010-05-14 Hui Zhu <teawater@gmail.com>
0407b3f1 4766 Michael Snyder <msnyder@vmware.com>
7a298875
HZ
4767
4768 * linux-fork.c (gdbthread.h): New include.
4769 (fork_info): Add parent_ptid.
4770 (inferior_call_waitpid_cleanup, inferior_call_waitpid): New
4771 functions.
4772 (delete_checkpoint_command): Call inferior_call_waitpid.
4773 (checkpoint_command): Set parent_ptid.
4774
c14feecc
MS
47752010-05-13 Michael Snyder <msnyder@vmware.com>
4776
6595d32b
MS
4777 * dictionary.c: Re-indent to GNU coding standard.
4778
c5504eaf
MS
4779 * charset.c: White space.
4780 * c-lang.c: White space.
4781 * cli-out.c: White space.
4782 * coffread.c: White space.
4783 * complaints.c: White space.
4784 * completer.c: White space.
4785 * corefile.c: White space.
4786 * corelow.c: White space.
4787 * cp-abi.c: White space.
4788 * cp-namespace.c: White space.
4789 * cp-support.c: White space.
4790 * cp-valprint.c: White space.
4791 * c-typeprint.c: White space.
4792 * c-valprint.c: White space.
cc59ec59
MS
4793 * blockframe.c: White space.
4794 * breakpoint.c: White space.
4795 * buildsym.c: White space.
4796 * blockframe.c: White space.
b6de9da4 4797 * bcache.c: White space.
05c547f6
MS
4798 * gdbarch.sh: White space, add blank lines.
4799 * arch-utils.c: Ditto.
4800 * gdbarch.c: Regenerate.
1c4d3f96 4801 * frame.c: White space, add blank lines.
f89b749f
MS
4802 * stack.c: White space, add blank lines.
4803 (initialize_stack): Remove long-dead code.
c14feecc 4804
a2d33775
JK
48052010-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4806
4807 Code cleanup.
4808 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Change the parameter to type.
4809 (locexpr_read_variable, loclist_read_variable): Update the callers.
4810
33ac96f0
JK
48112010-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4812
4813 Code cleanup.
4814 * dwarf2read.c (die_type, die_descriptive_type): Remove variable type.
4815 Remove check of NULL returned by tag_type_to_type.
4816 (die_containing_type): Remove variable type. Remove type_die variable
4817 initialization. Remove check of NULL returned by tag_type_to_type.
4818
f5a010c0
PM
48192010-05-11 Pierre Muller <muller@ics.u-strasbg.fr>
4820
4821 PR exp/11530.
4822 * gdbtypes.c (lookup_struct_elt_type): Also lookup
4823 names of unnamed structures or unions.
4824
bf701c2c
PM
48252010-05-11 Pierre Muller <muller@ics.u-strasbg.fr>
4826
4827 * procfs.c (proc_watchpoint_address): New function.
0407b3f1 4828 (procfs_stopped_by_watchpoint): Remove useless check after
bf701c2c
PM
4829 find_procinfo_or_die call.
4830 (procfs_stopped_data_address): New function.
4831 (procfs_use_watchpoints): Register new watchpoint related function.
4832
d02691ef
TT
48332010-05-11 Tom Tromey <tromey@redhat.com>
4834
4835 * eval.c (evaluate_subexp_standard): Revert inadvertent change.
4836
e0627e85
MS
48372010-05-10 Michael Snyder <msnyder@vmware.com>
4838
4839 * utils.c: White space cleanup.
4840
cc73bb8c
TT
48412010-05-10 Tom Tromey <tromey@redhat.com>
4842
4843 * eval.c (ptrmath_type_p): Add 'lang' argument.
4844 (evaluate_subexp_standard): Update.
4845 (evaluate_subexp_with_coercion): Update.
4846 * language.h (CAST_IS_CONVERSION): Add 'LANG' argument.
4847
c02866a0
MS
48482010-05-10 Michael Snyder <msnyder@vmware.com>
4849
4850 * utils.c (do_fclose_cleanup) Restore local variable.
4851
06280d23
DE
48522010-05-09 Doug Evans <dje@google.com>
4853
4854 * record.c (init_record_core_ops): Rename record_core to record-core.
4855
fa07e785
JB
48562010-05-08 Joel Brobecker <brobecker@adacore.com>
4857
4858 Implement task switching on pa-hpux.
4859 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): New function.
4860 (inf_ttrace_target): Set t->to_get_ada_task_ptid.
4861
4c680d1d
PM
48622010-05-08 Pierre Muller <muller@ics.u-strasbg.fr>
4863
4864 * valops.c (find_overload_match): Add missing i18n markup.
4865
28e176a6
PM
48662010-05-08 Pierre Muller <muller@ics.u-strasbg.fr>
4867
4868 * p-exp.y (exp : SIZEOF '(' exp ')'): New rule.
4869
48cb83fd
JK
48702010-05-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4871
4872 * dwarf2read.c (typename_concat): Use (char *) NULL terminated stdarg
4873 list for the obconcat call.
4874 * mdebugread.c (parse_symbol): Likewise.
4875 * stabsread.c (define_symbol, read_member_functions, read_cpp_abbrev):
4876 Likewise.
4877 * symfile.c (obconcat): Replace the s1, s2 and s3 parameters by `...'.
4878 New variable ap. Remove variables len and val.
4879 * symfile.h (obconcat): Likewise for the prototype.
4880
f92adf3c
MS
48812010-05-07 Michael Snyder <msnyder@vmware.com>
4882
4883 * python/python.c (execute_gdb_command): Remove unused variables.
4884 * python/py-block.c (gdbpy_block_for_pc): Remove unused variable.
0407b3f1 4885 * python/py-breakpoint.c (gdbpy_breakpoint_created):
f92adf3c
MS
4886 Remove unused variable.
4887 * python/py-cmd.c (cmdpy_function): Remove unused variable.
4888 (cmdpy_completer): Remove unused variable.
4889 * python/py-frame.c (frapy_find_sal): Remove unused variable.
4890 * python/py-function.c (fnpy_call): Remove unused variable.
4891 * python/py-objfile.c (objfile_to_objfile_object):
4892 Remove unused variable.
4893 * python/py-param.c (parmpy_init): Remove unused variable.
0407b3f1 4894 * python/py-prettyprint.c (apply_varobj_pretty_printer):
f92adf3c
MS
4895 Remove unused variable.
4896 (gdbpy_default_visualizer): Remove unused variable.
4897 * python/py-progspace.c (pspace_to_pspace_object):
4898 Remove unused variable.
0407b3f1 4899 * python/py-symtab.c (symtab_and_line_to_sal_object):
f92adf3c 4900 Remove unused variable.
0407b3f1 4901 * python/py-type.c (typy_template_argument):
f92adf3c
MS
4902 Remove unused variable.
4903 * python/py-value.c (valpy_string): Remove unused variable.
4904 (convert_value_from_python): Remove unused variables.
4905
d160942f
MS
49062010-05-07 Michael Snyder <msnyder@vmware.com>
4907
4908 * valops.c (value_cast_pointers): Restore unused variable 'type1',
4909 and use it to compute variable 't1'.
4910
587542ab
JB
49112010-05-07 Joel Brobecker <brobecker@adacore.com>
4912
4913 * ada-lang.c (assign_aggregate): Remove unused variable.
4914
7322dca9
SW
49152010-05-07 Sami Wagiaalla <swagiaal@redhat.com>
4916
4917 PR C++/7943:
4918 * valops.c (find_overload_match): Handle fsym == NULL case.
4919 Add int no_adl argument.
4920 (find_oload_champ_namespace_loop): Call make_symbol_overload_list_adl
4921 when appropriate.
4922 Add int no_adl argument.
4923 (find_oload_champ_namespace): Add int no_adl argument.
4924 * parse.c (operator_length_standard): Return length for OP_ADL_FUNC
4925 expression.
4926 * expprint.c (op_name_standard): Added string for OP_ADL_FUNC case.
4927 * eval.c (evaluate_subexp_standard): Added OP_ADL_FUNC case.
4928 Evaluate arguments and use them to perform ADL lookup.
4929 Pass no_adl argument to find_overload_match.
4930 Disable adl lookup when evaluating a fully qualified OP_FUNCALL.
4931 * cp-support.h: Added prototype for
4932 make_symbol_overload_list_namespace.
4933 * cp-support.c (make_symbol_overload_list_namespace): New function.
4934 (make_symbol_overload_list_adl_namespace): New function.
4935 (make_symbol_overload_list_adl): New function.
4936 (make_symbol_overload_list_using): Moved code to add function to
4937 overload set to make_symbol_overload_list_namespace.
4938 * c-exp.y: create UNKNOWN_CPP_NAME token.
4939 Add parse rule for ADL functions.
4940 (classify_name): Recognize an UNKNOWN_CPP_NAME.
4941
3f1f6884
JK
49422010-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4943
4944 * fbsd-nat.c (fbsd_make_corefile_notes): Add cast to NULL used as
4945 sentinel.
4946
3caf13b4
JB
49472010-05-07 Joel Brobecker <brobecker@adacore.com>
4948
4949 Implement task switching on solaris targets.
4950 * sol-thread.c (thread_db_find_thread_from_tid)
4951 (sol_get_ada_task_ptid): New functions.
4952 (init_sol_thread_ops): Set sol_thread_ops.to_get_ada_task_ptid.
4953
94b0dee1
PA
49542010-05-07 Pedro Alves <pedro@codesourcery.com>
4955
4956 * remote.c (remote_query_supported_append): Use reconcat.
4957 (remote_query_supported): Install a cleanup. Use reconcat.
4958
1408c251
PA
49592010-05-07 Pedro Alves <pedro@codesourcery.com>
4960
4961 * gdbarch.sh (qsupported): Delete.
4962 * gdbarch.h, gdbarch.c: Regenerate.
4963 * remote.c (remote_query_supported): Remove use of
4964 gdbarch_qsupported.
4965
f8e50cfe
SDJ
49662010-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
4967
4968 * xml-syscall.c (syscall_start_syscalls_info): Remove unused
4969 function.
4970
8ea13695
MS
49712010-05-06 Michael Snyder <msnyder@vmware.com>
4972
c6913b7d
MS
4973 * xml-support.c (xinclude_start_include): Delete unused variable.
4974 (xml_process_xincludes): Delete unused variable.
4975 * xml-syscall.c (syscall_parse_xml): Delete unused variable.
4976 * target-descriptions.c (tdesc_gdb_type): Delete unused variable.
4977 (tdesc_find_arch_register): Delete unused variable.
4978 (tdesc_use_registers): Delete unused variable.
4979 * xml-tdesc.c (tdesc_start_target): Delete unused variable.
4980 * inferior.c (print_inferior): Delete unused variable.
4981 * record.c (record_open_1): Delete unused variable.
4982 (record_restore): Delete unused variable.
4983 (cmd_record_save): Delete unused variable.
4984 * gcore.c (derive_heap_segment): Delete unused variable.
4985 (objfile_find_memory_regions): Use unused variable.
4986 * jit.c (jit_inferior_init): Delete unused variable.
4987 * progspace.c (clone_program_space): Delete unused variable.
4988 (pspace_empty_p): Delete unused variable.
0407b3f1
AS
4989
4990 * frame-unwind.c (frame_unwind_find_by_frame):
1c5465ac
MS
4991 Delete unused variable.
4992 * gnu-v2-abi.c (gnuv2_value_rtti_type): Delete unused variable.
4993 * cp-support.c (mangled_name_to_comp): Delete unused variable.
4994 (method_name_from_physname): Delete unused variable.
4995 (cp_func_name): Delete unused variable.
4996 (cp_validate_operator): Delete unused variable.
0407b3f1 4997 * cp-namespace.c (cp_scan_for_anonymous_namespaces):
1c5465ac 4998 Delete unused variable.
0407b3f1 4999 * trad-frame.c (trad_frame_get_prev_register):
1c5465ac
MS
5000 Delete unused variable.
5001 * tramp-frame.c (tramp_frame_cache): Delete unused variable.
5002
1be757cf
MS
5003 * serial.c (serial_for_fd): Delete unused variable.
5004 * mdebugread.c (psymtab_to_symtab_1): Delete unused variable.
5005 * top.c (execute_command): Delete unused variable.
5006 (init_main): Delete unused variable.
5007 * utils.c (do_fclose_cleanup): Delete unused variable.
5008 (do_all_inferior_continuations): Delete unused variable.
5009 (initialize_utils): Delete unused variable.
5010 (internal_problem_mode): Delete unused global.
5011 * frame.c (get_prev_frame): Delete unused global.
5012 (get_frame_locals_address): Delete unused global.
5013 (get_frame_args_address): Delete unused global.
5014
9216103f
MS
5015 * p-typeprint.c (pascal_type_print_base): Delete unused variable.
5016 (pascal_type_print_varspec_prefix): Delete unused variable.
5017 * f-typeprint.c (f_type_print_base): Delete unused variable.
5018 (f_type_print_varspec_suffix): Delete unused variable.
5019 * m2-typeprint.c (m2_print_type): Delete unused variable.
5020 (m2_long_set): Delete unused variable.
5021 * ada-valprint.c (ada_val_print_1): Delete unused variable.
5022 * d-valprint.c (dynamic_array_type): Delete unused variable.
0407b3f1 5023 * f-valprint.c (f77_get_dynamic_length_of_aggregate):
9216103f
MS
5024 Delete unused variable.
5025 (f77_create_arrayprint_offset_tbl): Delete unused variable.
5026 * m2-valprint.c (m2_val_print): Delete unused variable.
5027
34fa1d9d
MS
5028 * ui-out.c (ui_out_field_int): Delete unused variable.
5029 (ui_out_field_fmt_int): Delete unused variable.
5030 * varobj.c (varobj_list_children): Delete unused variable.
5031 (varobj_set_value): Delete unused variable.
5032 (install_new_value_visualizer): Delete unused variable.
5033 (varobj_set_visualizer): Delete unused variable.
5034 (varobj_update): Delete unused variable.
5035 (varobj_editable_p): Delete unused variable.
5036 (c_value_of_root): Delete unused variable.
5037 (cplus_describe_child): Delete unused variable.
5038
b5385fc0
MS
5039 * ada-lang.c (add_defn_to_vec): Delete unused variable.
5040 (decode_constrained_packed_array_type): Delete unused variable.
5041 (add_defn_to_vec): Delete unused variable.
5042 (symbol_completion_match): Delete unused variable.
5043 (value_tag_from_contents_and_address): Delete unused variable.
5044 (ada_evaluate_subexp): Delete unused variable.
5045 * c-lang.c (classify_type): Delete unused variable.
5046 * f-lang.c (f_printstr): Delete unused variable.
5047 * objc-lang.c (objc_printstr): Delete unused variable.
5048 * ada-tasks.c (get_known_tasks_addr): Delete unused variable.
5049 * jv-lang.c (type_from_class): ifdef unused variable.
5050 (java_class_name_from_physname): Delete unused variable.
5051 * m2-lang.c (m2_printstr): Delete unused variable.
5052
4fc06681
MS
5053 * objfiles.c (objfile_relocate): Delete unused variable.
5054 * maint.c (_initialize_maint_cmds): Delete unused variable.
5055 * demangle.c (_initialize_demangler): Delete unused variable.
5056 * corefile.c (reopen_exec_file): Delete unused variable.
5057 * dwarf2expr.c (dwarf2_read_address): Delete unused variable.
5058 * dwarf2-frame.c (decode_frame_entry): Delete unused variable.
5059
6b4398f7
MS
5060 * osabi.c (_initialize_gdb_osabi): Delete unused variable.
5061 * memattr.c (mem_delete): Delete unused variable.
5062 (invalidate_target_mem_regions): Delete unused variable.
5063 * mem-break.c (default_memory_insert_breakpoint):
5064 Delete unused variable.
5065 * target.c (target_get_osdata): Delete unused variable.
5066 * parse.c (length_of_subexp): Delete unused variable.
5067 (prefixify_subexp): Delete unused variable.
5068 (exp_iterate): Delete unused variable.
5069 * reverse.c (delete_bookmark_command): Delete unused variable.
5070
308d96ed
MS
5071 * macrocmd.c (_initialize_macrocmd): Delete unused variable.
5072 * macroexp.c (gather_arguments): Delete unused variable.
5073 (substitute_args): Delete unused variable.
5074 * completer.c (gdb_completer_loc_break_characters): Unused, delete.
5075 * gdbarch.sh (gdbarch_printable_names): Delete unused variable.
5076 (_initialize_gdbarch): Delete unused variable.
5077 * gdbarch.c, gdbarch.h: Regenerate.
0407b3f1 5078 * arch-utils.c (initialize_current_architecture):
308d96ed
MS
5079 Delete unused variable.
5080 (_initialize_gdbarch_utils): Delete unused variable.
5081 * gdbtypes.c (make_cv_type): Delete unused variable.
5082 (make_type_with_address_space): Delete unused variable.
5083
167e4384
MS
5084 * linespec.c (decode_compound): Delete unused variable.
5085 * dictionary.c (iterator_next_hashed): Delete unused variable.
5086 * infcall.c (call_function_by_hand): Delete unused variable.
5087 * infcmd.c (step_1): Delete unused variable.
5088 (registers_info): Delete unused variable.
5089 (attach_command): Delete unused variable.
5090 * infrun.c (follow_exec): Delete unused variable.
5091 (handle_step_into_function_backwards): Delete unused variable.
5092 (_initialize_infrun): Delete unused variable.
5093 * stack.c (parse_frame_specification_1): Delete unused variable.
5094 (frame_info): Delete unused variable.
5095 (backtrace_command_1): Delete unused variable.
5096 (catch_info): Delete unused variable.
5097
8f78b329
MS
5098 * eval.c (evaluate_subexp_standard): Delete unused variable.
5099 * valops.c (value_cast_pointers): Delete unused variable.
5100 (value_dynamic_cast): Delete unused variable.
5101 (value_array): Delete unused variable.
5102 (find_overload_match): Delete unused variable.
5103 * valarith.c (value_subscript): Delete unused variable.
5104 (value_binop): Delete unused variable.
5105 * valprint.c (_initialize_valprint): Delete unused variable.
5106 * printcmd.c (print_command_1): Delete unused variable.
5107 (address_info): Delete unused variable.
5108 (printf_command): Delete unused variable.
5109
8ea13695
MS
5110 * auxv.c (target_auxv_search): Delete unused variable.
5111 * blockframe.c (get_frame_block): Delete unused variable.
5112 * regcache.c (regcache_cpy): Delete unused variable.
5113 (regcache_cpy_no_passthrough): Delete unused variable.
5114 * charset.c (wchar_iterate): Delete unused variable.
5115 (find_charset_names): Delete unused variable.
5116 (_initialize_charset): Delete unused variable.
0407b3f1 5117 * disasm.c (do_mixed_source_and_assembly):
8ea13695 5118 Delete unused variable.
0407b3f1 5119 * source.c (set_default_source_symtab_and_line):
8ea13695
MS
5120 Delete unused variable.
5121 (set_substitute_path_command): Delete unused variable.
5122 * value.c (preserve_values): Delete unused variable.
5123 (value_from_double): Delete unused variable.
5124
afe38095
MS
51252010-05-05 Michael Snyder <msnyder@vmware.com>
5126
952a6d41
MS
5127 * psymtab.c (lookup_partial_symbol): Delete unused variable.
5128 (find_last_source_symtab_from_partial): Delete unused variable.
5129 * symfile.c (place_section): Delete unused variable.
5130 (default_symfile_offsets): Delete unused variable.
5131 (get_debug_link_info): Delete unused variable.
5132 (find_separate_debug_file_by_debuglink): Delete unused variable.
5133 (add_symbol_file_command): Delete unused variable.
5134 (symfile_find_segment_sections): Delete unused variable.
5135 * symmisc.c (free_symtab): Delete unused variable.
5136 (dump_symtab_1): Delete unused variable.
5137 * symtab.c (lookup_symbil_aux_quick): Delete unused variable.
5138 (find_pc_sect_symtab): Delete unused variable.
5139 (skip_prologue_using_lineinfo): Delete unused variable.
5140 (sources_info): Delete unused variable.
5141 (completion_list_add_name): Delete unused variable.
5142 (expand_line_sal): Delete unused variable.
5143
0407b3f1 5144 * breakpoint.c (validate_commands_for_breakpoint):
afe38095
MS
5145 Delete unused variables.
5146 (insert_catchpoint): Delete unused variable.
5147 (update_watchpoint): Delete unused variable.
5148 (insert_bp_location): Delete unused variable.
5149 (insert_breakpoint_locations): Delete unused variable.
5150 (remove_breakpoint_1): Delete unused variable.
5151 (software_breakpoint_inserted_here_p): Delete unused variable.
5152 (watchpoints_triggered): Delete unused variable.
5153 (bpstat_check_watchpoint): Delete unused variable.
5154 (bpstat_stop_status): Delete unused variable.
5155 (print_one_breakpoint_location): Delete unused variable.
5156 (allocate_bp_location): Delete unused variable.
5157 (create_breakpoint): Delete unused variable.
5158 (watch_command_1): Delete unused variable.
5159 (catch_exception_command_1): Delete unused variable.
5160 (catch_ada_exception_command): Delete unused variable.
5161 (delete_breakpoint): Delete unused variable.
5162 (breakpoint_re_set_one): Delete unused variable.
5163 (do_enable_breakpoint): Delete unused variable.
5164
eda5a4d7
PA
51652010-05-06 Pedro Alves <pedro@codesourcery.com>
5166
5167 * amd64-tdep.c: Include disasm.h.
5168 (amd64_insn_length_fprintf, amd64_insn_length_init_dis)
5169 (amd64_insn_length): Moved to disasm.c and renamed.
5170 (fixup_riprel): Adjust.
5171 * disasm.c (do_ui_file_delete): New.
5172 (gdb_insn_length): New.
5173 (gdb_buffered_insn_length_fprintf)
5174 (gdb_buffered_insn_length_init_dis)
5175 (gdb_buffered_insn_length): New, moved from amd64-tdep.c, and
5176 renamed.
5177 * disasm.h (gdb_insn_length): Declare.
5178 (gdb_buffered_insn_length): Declare.
5179
02357a4a
PA
51802010-05-06 Pedro Alves <pedro@codesourcery.com>
5181
5182 * remote.c (clear_threads_parsing_context): New.
5183 (remote_threads_info): Delete unused null_cleanup. Install a
5184 cleanup to clear the threads_parsing_context in case parsing
5185 throws.
5186
8c5630cb
MS
51872010-05-05 Michael Snyder <msnyder@vmware.com>
5188
5189 * c-exp.y (parse_string_or_char): Delete unused variable.
5190 (c_lex): Delete unused variable.
5191 * cp-name-parser.y (cpname_lex): Delete unused variable.
5192 * ada-exp.y (find_primitive_type): Delete unused variable.
5193 (write_var_or_type): Delete unused variable.
5194 * jv-exp.y (java_parse): Delete unused variable.
5195 (push_expression_name): Delete unused variable.
5196 * p-exp.y (pascal_lex): Delete unused variable.
5197
46c162d4
PA
51982010-05-05 Pedro Alves <pedro@codesourcery.com>
5199
5200 * remote.c (remote_threads_info): Really revert previous previous
5201 change.
5202
0043e6a5
MS
52032010-05-05 Michael Snyder <msnyder@vmware.com>
5204
fa238c03
MS
5205 * elfread.c (elf_symtab_read): Delete unused variable.
5206 (find_separate_debug_file_by_buildid): Delete unused variables.
5207 (elf_symfile_read): Delete unused variable.
5208
5209 * coffread.c (coff_symfile_read): Delete unused variables.
5210
5211 * coff-pe-read.c (add_pe_exported_sym): Delete unused variable.
5212 (read_pe_exported_syms): Delete unused variable.
5213
5214 * stabsread.c (define_symbol): Delete unused variable.
5215
5216 * dwarf2read.c (read_type_comp_unit_head): Delete unused variable.
5217 (process_psymtab_comp_unit): Delete unused variable.
5218 (dwarf2_build_psymtabs_hard): Delete unused variable.
5219 (load_partial_comp_unit): Delete unused variable.
5220 (create_all_comp_units): Delete unused variable.
5221 (scan_partial_symbols): Delete unused variable.
5222 (add_partial_symbol): Delete unused variable.
5223 (add_partial_namespace): Delete unused variable.
5224 (add_partial_enumeration): Delete unused variable.
5225 (load_full_comp_unit): Delete unused variable.
5226 (process_full_comp_unit): Delete unused variable.
5227 (read_file_scope): Delete unused variable.
5228 (read_type_unit_scope): Delete unused variable.
5229 (process_structure_scope): Delete unused variable.
5230 (process_enumeration_scope): Delete unused variable.
5231 (read_tag_ptr_to_member_type): Delete unused variable.
5232 (read_typedef): Delete unused variable.
5233 (read_partial_die): Delete unused variable.
5234 (decode_locdesc): Delete unused variable.
5235 (zeroed_partial_die): Delete unused global variable.
5236
0407b3f1 5237 * tui/tui-interp.c (_initialize_tui_interp):
0043e6a5 5238 Delete unused variable.
0407b3f1 5239 * tui/tui-regs.c tui_display_registers_from):
0043e6a5
MS
5240 Delete unused variable.
5241 (tui_check_register_values): Delete unused variable.
5242 (tui_register_format): Delete unused variable.
5243 * tui/tui-win.c (_initialize_tui_win): Delete unused variable.
0407b3f1 5244 * tui/tui-windata.c (tui_display_data_from_line):
0043e6a5
MS
5245 Delete unused variables.
5246 (tui_vertical_data_scroll): Delete unused variables.
5247
75721c66
MS
52482010-05-05 Michael Snyder <msnyder@vmware.com>
5249
c31a71f4
MS
5250 * remote.c (remote_threads_info): Revert questionable part of
5251 the previous change.
5252
52532010-05-05 Michael Snyder <msnyder@vmware.com>
5254
5255 * mi/mi-out.c (mi_table_begin): Delete unused variable.
5256 * mi/mi-cmd-var.c (print_varobj): Delete unused variable.
5257 (mi_cmd_var_list_children): Delete unused variable.
5258 (varobj_update_one): Delete unused variable.
5259 * mi/mi-cmd-break.c (mi_cmd_break_insert): Delete unused variables.
0407b3f1 5260 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals):
c31a71f4
MS
5261 Delete unused variable.
5262 (mi_cmd_stack_list_variables): Delete unused variable.
5263 (list_args_or_locals): Delete unused variable.
0407b3f1 5264 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file):
c31a71f4
MS
5265 Delete unused variables.
5266 (mi_cmd_file_list_exec_source_files): Delete unused variable.
0407b3f1 5267 * mi/mi-cmd-target.c (mi_cmd_target_file_delete):
c31a71f4
MS
5268 Delete unused variable.
5269 * mi/mi-interp.c (mi_interpreter_exec): Delete unused variable.
5270 (mi_cmd_interpreter_exec): Delete unused variable.
5271 (mi_on_normal_stop): Delete unused variable.
5272 * mi/mi-main.c (run_one_inferior): Delete unused variable.
5273 (print_one_inferior): Delete unused variables.
5274 (mi_execute_command): Delete unused variable.
5275 (mi_cmd_execute): Delete unused variable.
5276 (timestamp): Delete unused variable.
5277
5278 * cli/cli-dump.c (dump_memory_to_file): Delete unused variable.
d36fc00b 5279 (restore_binary_file): Delete unused variable.
c31a71f4
MS
5280 * cli/cli-decode.c (deprecated_cmd_warning): Delete unused variables.
5281 * cli/cli-script.c (define_command): Delete unused variables.
d36fc00b
MS
5282 (recurse_read_control_structure): Delete unused variable.
5283 (script_from_file): Delete unused variable.
c31a71f4 5284 * cli/cli-cmds.c (complete_command): Delete unused variable.
d36fc00b
MS
5285 (disassemble_command): Delete unused variable.
5286
5287 * ax-gdb.c (gen_struct_elt_for_reference): Delete unused variables.
0407b3f1 5288 * tracepoint.c (delete_trace_variable_command):
d36fc00b
MS
5289 Delete unused variables.
5290 (encode_actions_1): Delete unused variables.
5291 (start_tracing): Delete unused variable.
5292 (trace_status_mi): Delete unused variable.
5293 (tfind_1): Delete unused variable.
5294 (trace_find_pc_command): Delete unused variable.
5295 (trace_find_line_command): Delete unused variables.
5296 (trace_find_range_command): Delete unused variables.
5297 (trace_find_outside_command): Delete unused variables.
5298 (parse_tracepoint_definition): Delete unused variables.
5299 (tfile_fetch_registers): Delete unused variable.
5300
9128a503
MS
5301 * dcache.c (dcache_init): Delete unused variable.
5302 (dcache_info): Delete unused variable.
5303
aa369b55 5304 * remote.c (remote_threads_info): Delete unused variable.
9128a503 5305 (process_stop_reply) :Delete unused variable.
aa369b55
MS
5306 (remote_get_trace_status): Delete unused variables.
5307
9e9547e4
MS
5308 * linux-thread-db.c (add_thread_db_info): Delete unused variable.
5309 (thread_from_lwp): Delete unused variable.
5310 (enable_thread_event_reporting): Delete unused variable.
5311 (check_for_thread_db): Delete unused variables.
5312 (thread_db_find_new_threads_2): Delete unused variable.
0407b3f1 5313
9e9547e4
MS
5314 * linux-fork.c (info_checkpoints_command): Delete unused variables.
5315 (checkpoint_command): Delete unused variable.
5316 (linux_fork_context): Delete unused variables.
5317
fa238c03 5318 * linux-nat.c (linux_parent_pid): Delete unused global variable.
75083f7e
MS
5319 (linux_tracefork_child): Delete unused variable.
5320 (linux_child_follow_fork): Delete unused variable.
5321 (linux_nat_detach): Delete unused variable.
5322 (linux_handle_extended_wait): Delete unused variable.
5323 (linux_nat_has_pending_sigint): Delete unused variable.
5324 (linux_nat_find_memory_regions): Delete unused variable.
5325 (linux_nat_make_corefile_notes): Delete unused variables.
5326 (linux_nat_info_proc_cmd): Delete unused variable.
5327 (linux_proc_pending_signals): Delete unused variable.
5328 (linux_nat_stop_lwp): Delete unused variables.
5329 (_initialize_linux_nat): Delete unused variable.
5330
fa238c03 5331 * ser-pipe.c (pipe_ops): Delete unused global variable.
2d148b94 5332
0407b3f1 5333 * linux-record.c (record_linux_system_call):
e0f069a3
MS
5334 Delete unused variables.
5335
789d24f0
MS
5336 * corelow.c (core_xfer_partial): Delete unused variables.
5337
1cd337a5 5338 * solib-svr4.c (find_program_interpreter): Delete unused variable.
0407b3f1 5339 (svr4_solib_create_inferior_hook): Add ifdef around
1cd337a5
MS
5340 conditionally-used variable declarations.
5341
b00e3f56
MS
5342 * solib.c (solib_find): Delete unused variable.
5343 (free_so_symbols): Delete unused variable.
5344 (info_sharedlibrary_command): Delete unused variable.
5345 (reload_shared_libraries_1): Delete unused variable.
5346 (_initialize_solib): Delete unused variable.
5347
90f62196
MS
5348 * i386-tdep.c (i386_supply_xstateregset) Delete unused variable.
5349 (i386_collect_xstateregset): Delete unused variable.
5350 * i387-tdep.c (i387_print_float_info): Delete unused variable.
5351
75721c66
MS
5352 * features/i386/i386-mmx.c (initialize_tdesc_i386_mmx):
5353 Delete unused variable 'type'.
5354
af33db37
JB
53552010-05-05 Joel Brobecker <brobecker@adacore.com>
5356
90f62196 5357 * gdbtypes.h (MAX_OF_TYPE, MIN_OF_TYPE): Delete macros. *
63db82b2
JB
5358 ada-lang.c: Remove comment mentioning these macros.
5359 * m2-exp.y: Delete commented out code.
af33db37 5360
0497f5b0
JB
53612010-05-05 Joel Brobecker <brobecker@adacore.com>
5362
5363 * sparc-tdep.c (sparc_structure_or_union_p): Return non-zero
5364 for array types.
5365 * sparc64-tdep.c (sparc64_structure_or_union_p): Likewise.
5366
6e39997a
PM
53672010-05-04 Pierre Muller <muller@ics.u-strasbg.fr>
5368
5369 ARI fix: Remove ATTRIBUTE_UNUSED throughout.
0407b3f1 5370 * arm-linux-tdep.c (arm_linux_cleanup_svc): Remove
6e39997a
PM
5371 ATTRIBUTE_UNUSED.
5372 (cleanup_kernel_helper_return): Likewise.
5373 * arm-tdep.c (copy_unmodified): Likewise.
5374 (copy_preload): Likewise.
5375 (copy_copro_load_store): Likewise.
5376 (cleanup_branch): Likewise.
5377 (copy_b_bl_blx): Likewise.
5378 (copy_bx_blx_reg): Likewise.
5379 (copy_alu_imm): Likewise.
5380 (copy_alu_reg): Likewise.
5381 (copy_alu_shifted_reg): Likewise.
5382 (cleanup_load): Likewise.
5383 (cleanup_store): Likewise.
5384 (cleanup_block_load_pc): Likewise.
5385 (cleanup_svc): Likewise.
5386 (copy_undef): Likewise.
5387 (copy_unpred): Likewise.
5388 * remote.c (register_remote_support_xml): Likewise.
5389
1412f70b
HZ
53902010-05-05 Hui Zhu <teawater@gmail.com>
5391
5392 * gdbarch.h (gdbarch_has_dos_based_file_system): Update comment.
5393
c4f7c687
MK
53942010-05-04 Mark Kettenis <kettenis@gnu.org>
5395
5396 * remote.c (register_remote_support_xml)
5397 (remote_query_supported_append, remote_query_supported): Add cast
5398 to NULL used as sentinel.
5399 * tracepoint.c (tvariables_info_1): Likewise.
5400 * utils.c (add_internal_problem_command): Likewise.
5401
63b4f126
MGD
54022010-05-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
5403
5404 * dwarf2loc.c (read_pieced_value, write_pieced_value,
5405 dwarf2_evaluate_loc_desc): Handle not being able to access DWARF
5406 registers gracefully.
5407
2f1bdd26
MGD
54082010-05-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
5409
0407b3f1 5410 * exec.c (print_section_info): Display entry point without arch
2f1bdd26
MGD
5411 specific parts.
5412
e1c34c5d
PM
54132010-05-04 Pierre Muller <muller@ics.u-strasbg.fr>
5414
5415 PR exp/11349.
5416 * printcmd.c (x_command): Only dereference once implicitly for
5417 TYPE_CODE_REF.
5418
ae462839
DE
54192010-05-03 Doug Evans <dje@google.com>
5420
5421 * event-loop.c (gdb_timer): Delete unused global.
5422 (create_timer): Update.
5423
1ac77ea1
JK
54242010-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5425
5426 * cp-namespace.c (cp_lookup_symbol_imports): Support ALIAS for the
5427 CURRENT->DECLARATION case.
5428 * cp-support.h (struct using_direct): Provide extended comment.
5429
7c54a108
MK
54302010-05-03 Mark Kettenis <kettenis@gnu.org>
5431
5432 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Renamed from
5433 HPPABSD_SIZEOF_GREGS.
5434 (HPPAOBSD_SIZEOF_FPREGS): New define.
5435 (hppaobsd_supply_gregset): Renamed from hppabsd_supply_gregset.
5436 (hppaobsd_supply_fpregset): New function.
5437 (hppaobsd_gregset): Renamed from hppabsd_gregset.
5438 (hppaobsd_fpregset): New variable.
5439 (hppaobsd_regset_from_core_section): Handle floating-point registers.
5440 (_initialize_hppabsd_tdep): Remove spurious blank line.
5441
278582cb
PM
54422010-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
5443
5444 PR pascal/11349.
5445 * p-valprint.c (pascal_value_print): Always dereference a value with
5446 type code TYPE_CODE_REF.
0407b3f1 5447
f0223081
PA
54482010-05-03 Pedro Alves <pedro@codesourcery.com>
5449
5450 * remote.c (remote_notice_signals): New.
5451 (remote_start_remote): In non-stop mode, update the remote end on
5452 which signals it can silently pass.
5453 (init_remote_ops): Install remote_notice_signals.
5454
c25c4a8b
JK
54552010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5456
5457 * cli/cli-cmds.h (error_no_arg): Remove. Move the comment ...
5458 * command.h (error_no_arg): ... here. Remove NORETURN, change
5459 ATTR_NORETURN to ATTRIBUTE_NORETURN.
5460 * defs.h (NORETURN, ATTR_NORETURN): Remove.
5461 (perror_with_name, verror, error, error_stream, vfatal, fatal)
5462 (internal_verror, internal_error, nomem): Remove NORETURN, change
5463 ATTR_NORETURN to ATTRIBUTE_NORETURN.
5464 * exceptions.c (throw_exception, deprecated_throw_reason, throw_verror)
5465 (throw_vfatal, throw_error): Remove NORETURN.
5466 (throw_it): Remove NORETURN, change ATTR_NORETURN to ATTRIBUTE_NORETURN.
5467 * exceptions.h (throw_exception, throw_verror, throw_vfatal)
5468 (throw_error, deprecated_throw_reason): Remove NORETURN, change
5469 ATTR_NORETURN to ATTRIBUTE_NORETURN.
5470 * linespec.c (cplusplus_error): Remove NORETURN, change ATTR_NORETURN
5471 to ATTRIBUTE_NORETURN for prototype, for the definition only remove
5472 NORETURN.
5473 * remote-mips.c (mips_error): Change NORETURN to ATTRIBUTE_NORETURN.
5474 * remote-sim.c (gdb_os_error): Change ATTR_NORETURN to
5475 ATTRIBUTE_NORETURN.
5476 * target.c (tcomplain): Likewise.
5477 * target.h (noprocess): Remove NORETURN, change ATTR_NORETURN to
5478 ATTRIBUTE_NORETURN.
5479 * utils.c (verror, error, vfatal, fatal, error_stream, internal_verror)
5480 (internal_error, perror_with_name, nomem): Remove NORETURN.
5481 * xml-support.h (gdb_xml_error): Change ATTR_NORETURN to
5482 ATTRIBUTE_NORETURN.
5483
a0b31db1
JK
54842010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5485
5486 * ada-lang.c (lim_warning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
5487 * amd64-tdep.c (amd64_insn_length_fprintf): Likewise.
5488 * cli-out.c (cli_field_fmt): New ATTRIBUTE_PRINTF.
5489 (cli_message, out_field_fmt): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
5490 * complaints.c (find_complaint): New ATTRIBUTE_PRINTF.
5491 (vcomplaint): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
5492 * complaints.h (complaint, internal_complaint): Likewise.
5493 * defs.h: Change ATTR_FORMAT to ATTRIBUTE_PRINTF in the top comment.
5494 (ATTR_FORMAT): Remove.
5495 (query, nquery, yquery, vprintf_filtered, vfprintf_filtered)
5496 (fprintf_filtered, fprintfi_filtered, printf_filtered, printfi_filtered)
5497 (vprintf_unfiltered, vfprintf_unfiltered, fprintf_unfiltered)
5498 (printf_unfiltered, xasprintf, xvasprintf, xstrprintf, xstrvprintf)
5499 (xsnprintf, verror, error, vfatal, fatal, internal_verror)
5500 (internal_error, internal_vwarning, internal_warning, warning)
5501 (vwarning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
5502 * disasm.c (fprintf_disasm): Likewise.
5503 * exceptions.c (throw_it): Likewise.
5504 * exceptions.h (exception_fprintf, throw_verror, throw_vfatal)
5505 (throw_error): Likewise.
5506 * language.h (type_error, range_error): Likewise.
5507 * linespec.c (cplusplus_error): Likewise.
5508 * mi/mi-interp.c (mi_interp_query_hook): Likewise.
5509 * mi/mi-out.c (mi_field_fmt, mi_message): Likewise.
5510 * monitor.c (monitor_debug): Likewise.
5511 * parser-defs.h (parser_fprintf): Likewise.
5512 * serial.h (serial_printf): Likewise.
5513 * tui/tui-hooks.c (tui_query_hook): Likewise.
5514 * ui-out.c (default_field_fmt, default_message, uo_field_fmt)
5515 (uo_message): Likewise.
5516 * ui-out.h (ui_out_field_fmt, ui_out_message): Likewise.
5517 * utils.c (vfprintf_maybe_filtered, internal_vproblem, defaulted_query):
5518 Likewise.
5519 * xml-support.h (gdb_xml_debug, gdb_xml_error): Likewise.
5520
02a45ac0
PA
55212010-05-02 Pedro Alves <pedro@codesourcery.com>
5522
5523 * cli-out.c (cli_table_begin, cli_table_body, cli_table_end)
5524 (cli_table_header, cli_begin, cli_end, cli_field_int)
5525 (cli_field_skip, cli_field_string, cli_field_fmt, cli_spaces)
5526 (cli_text, cli_message, cli_wrap_hint, cli_flush, cli_redirect):
5527 Delete forward declarations.
5528 (cli_ui_out_impl): Move below the callbacks.
5529 (_initialize_cli_out): Delete.
5530
1915ef4f
PA
55312010-05-02 Pedro Alves <pedro@codesourcery.com>
5532
5533 * README: Use consistent `GDB' and `GDBserver' spellings.
5534
0dfb946f
JK
55352010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5536
5537 * cli/cli-dump.h (parse_and_eval_with_error): Remove the declaration.
5538
4d533103
PA
55392010-05-01 Pedro Alves <pedro@codesourcery.com>
5540
5541 * infrun.c (prepare_for_detach): In non-stop, context switch to
5542 the thread that got the event before handling the event.
5543
705b5767
TT
55442010-04-30 Tom Tromey <tromey@redhat.com>
5545
5546 * symtab.c (symbol_set_names): Fix typo.
5547
3c0ee1a4
PM
55482010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
5549
5550 * python/py-param.c (parm_constants): Avoid ARI warning
5551 by adding ARI comment.
5552 (parmpy_init): Likewise.
5553
ea1fae46
PM
55542010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
5555
5556 * windows-tdep.c (windows_get_tlb_type): Remember last GDBARCH
5557 and created type for re-use.
5558
c24d0242
PM
55592010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
5560
5561 * NEWS: Mention gdbserver support for x86_64 Windows 64-bit.
5562
a26d8d11
DE
55632010-04-29 Doug Evans <dje@google.com>
5564
5565 * ser-base.h (reschedule): Delete prototype.
5566 * ser-base.c (reschedule): Make static.
5567
f8624c62
MGD
55682010-04-29 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
5569
5570 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Remove.
5571 (ARM_LINUX_JB_PC_FPA): Add, offset of PC in longjmp buffer for FPA.
0407b3f1 5572 (ARM_LINUX_JB_PC_EABI): Add, offset of PC in longjmp buffer for
f8624c62 5573 EABI.
0407b3f1 5574 (arm_linux_init_abi): Set up JB_PC field dependent on FP model in
f8624c62
MGD
5575 use.
5576
e66408ed
PA
55772010-04-29 Pedro Alves <pedro@codesourcery.com>
5578
5579 PR gdb/11557
5580
5581 * regcache.c (registers_changed): Rename to ...
5582 (registers_changed_ptid): ... this, and only delete register cache
5583 entries matching the ptid filter argument.
5584 (registers_changed): Reimplement on top of registers_changed_ptid.
5585 * regcache.h (registers_changed_ptid): Declare.
5586 * target.c (target_resume): Flush register caches.
5587
d7b32ed3 55882010-04-29 Phil Muldoon <pmuldoon@redhat.com>
0407b3f1
AS
5589 Tom Tromey <tromey@redhat.com>
5590 Thiago Jung Bauermann <bauerman@br.ibm.com>
5591
5592 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-parameter.
5593 (SUBDIR_PYTHON_SRCS): Likewise.
5594 (py-parameter.o): New rule.
5595 * python/py-parameter.c: New file.
5596 * python/python-internal.h (gdbpy_initialize_parameter)
5597 (gdbpy_parameter, gdbpy_parameter_value)
5598 (gdbpy_parse_command_name): Declare.
5599 * python/py-cmd.c (parse_command_name): Rename to
5600 gdbpy_parse_command_name.
5601 (gdbpy_parse_command_name): Accept a starting list parameter and
5602 use over cmdlist.
5603 (cmdpy_init): Use gdbpy_parse_command_name.
5604 * python/python.c (parameter_to_python): Rename to
5605 gdbpy_parameter_to_python. Accept enum var_types and value.
5606 (gdbpy_parameter): Use gdbpy_parameter_value.
5607 (_initialize_python): Call gdbpy_initialize_parameters.
d7b32ed3 5608
ce72ce41
MGD
56092010-04-29 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
5610
5611 * MAINTAINERS: Add myself for write after approval privileges.
5612
6aecb9c2
JB
56132010-04-29 Mihail Zenkov <mihail.zenkov@gmail.com>
5614
5615 D language support.
5616 * Makefile.in (SFILES): Add d-lang.c d-valprint.c.
5617 (COMMON_OBS): Add d-lang.o d-valprint.o.
5618 (HFILES_NO_SRCDIR): Add d-lang.h.
5619 * NEWS: Mention D language support.
5620 * c-lang.c (c_emit_char, exp_descriptor_c): Make public.
5621 * c-lang.h (c_emit_char, exp_descriptor_c): Add declaration.
5622 * d-lang.c: New file.
5623 * d-lang.h: New file.
5624 * d-valprint.c: New file.
5625 * defs.h (enum language): Add language_d.
5626 * dwarf2read.c (set_cu_language): Add DW_LANG_D.
5627 * language.c (binop_result_type, integral_type, character_type)
5628 (string_type, boolean_type, structured_type): Add language_d.
5629 * symfile.c (init_filename_language_table): Add language_d.
5630 * symtab.c: Include d-lang.h.
5631 (symbol_init_language_specific, symbol_find_demangled_name)
5632 (symbol_natural_name, lookup_symbol_in_language)
5633 (symbol_demangled_name, symbol_matches_domain): Add language_d.
5634
6f992fbf
JB
56352010-04-27 Joel Brobecker <brobecker@adacore.com>
5636
5637 * solib-svr4.c (solib_svr4_r_map): Expand function description.
5638
dde59185
JB
56392010-04-27 Joel Brobecker <brobecker@adacore.com>
5640
5641 * symfile.c (init_filename_language_table): Register .dg files
5642 with language_ada.
5643
d09ce91e
JB
56442010-04-27 Joel Brobecker <brobecker@adacore.com>
5645
5646 * gdbtypes.h (struct main_type): Expand comment about target_type
5647 field.
5648
67f1675e
JB
56492010-04-27 Pedro Alves <pedro@codesourcery.com>
5650 Tristan Gingold <gingold@adacore.com>
02aeec7b
JB
5651
5652 * symfile.c (reread_symbols): Also search for file in libraries.
5653 Update comment.
5654
dfd0fe27
JB
56552010-04-27 Joel Brobecker <brobecker@adacore.com>
5656
5657 * configure.tgt: Treat x86-lynxos targets as x86 bareboard targets
5658 in terms of configuration.
5659
0133421a
JK
56602010-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5661
5662 * objfiles.c: Include solist.h.
5663 (free_all_objfiles): New variable so. Check stale solist objfiles.
5664 * symfile.c (symbol_file_clear): Swap the order of free_all_objfiles
5665 and no_shared_libraries.
5666
e78f4312
JB
56672010-04-27 Joel Brobecker <brobecker@adacore.com>
5668
5669 ARI warning fix.
5670 * python/py-auto-load.c (source_section_scripts): Remove trailing
5671 new-line in i18n string.
5672
9214d371
DE
56732010-04-26 Doug Evans <dje@google.com>
5674
5675 * serial.c (serial_write): Handle serial_debug_p akin to serial_read.
5676
3f172e24
TT
56772010-04-26 Tom Tromey <tromey@redhat.com>
5678
5679 * cli/cli-decode.c (complete_on_cmdlist): Make two passes over the
5680 command list.
5681
e790e06e
PM
56822010-04-26 Pierre Muller <muller@ics.u-strasbg.fr>
5683
5684 Removal of config/i386/nm-i386sol2.h native configuration file.
5685 * config/i386/nm-i386sol2.h: Remove file.
5686 * config/i386/i386sol2.mh: Remove NAT_FILE definition.
5687 * config/i386/sol2-64.mh: Idem.
88562582
PM
5688 * config/djgpp/fnchange.lst: Remove reference to that file.
5689 * Makefile.in (HFILES_NO_SRCDIR): Idem.
e790e06e 5690
b7da9e9f
PM
56912010-04-26 Pierre Muller <muller@ics.u-strasbg.fr>
5692
5693 PR breakpoints/11531.
5694 * config/i386/nm-i386sol2.h (CANNOT_STEP_HW_WATCHPOINTS): Remove
5695 macro definition and related comment.
5696 * infrun.c (CANNOT_STEP_HW_WATCHPOINTS): Remove macro.
5697 (resume): Remove code and comment related to this macro.
5698
72f6eb52
JK
56992010-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
5700
5701 * cp-namespace.c (cp_lookup_symbol_in_namespace): Fix alloca size.
5702 Fix whitespace.
5703
ab38a727
PA
57042010-04-24 Pedro Alves <pedro@codesourcery.com>
5705
5706 * defs.h: Adjust comment.
5707 * filesystem.h, filesystem.c: New files.
5708 * Makefile.in (SFILES): Add filesystem.c.
5709 (COMMON_OBS): Add filesystem.o.
5710 * solib.c (solib_find): Handle DOS-based filesystems. Handle
5711 different target and host path flavours.
5712 * arm-symbian-tdep.c (arm_symbian_init_abi): Set
5713 has_dos_based_file_system on the gdbarch.
5714 * arm-wince-tdep.c (arm_wince_init_abi): Ditto.
5715 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Ditto.
5716 * i386-tdep.c (i386_go32_init_abi): Ditto.
5717 * gdbarch.sh (has_dos_based_file_system): New.
5718 * gdbarch.h, gdbarch.c: Regenerate.
5719 * NEWS: Mention improved support for remote targets with DOS-based
5720 filesystems. Mention new `set/show target-file-system-kind'
5721 commands.
5722
35c9c7ba
SS
57232010-04-23 Stan Shebs <stan@codesourcery.com>
5724
5725 * ax.h (struct agent_expr): Merge in agent_reqs fields, add some
5726 comments.
5727 (struct agent_reqs): Remove.
5728 (ax_reg_mask): Declare.
5729 * ax-general.c (new_agent_expr): Add gdbarch argument, set new fields.
5730 (free_agent_expr): Free reg_mask.
5731 (ax_print): Add scope and register mask info.
5732 (ax_reqs): Remove agent_reqs argument, use agent expression
5733 fields, and move part of register mask computation to...
5734 (ax_reg_mask): New function.
5735 * ax-gdb.c (gen_trace_static_fields): Call it.
5736 (gen_traced_pop): Ditto.
5737 (is_nontrivial_conversion): Add dummy gdbarch to new_agent_expr.
5738 (gen_trace_for_var): Pass gdbarch to new_agent_expr.
5739 (gen_trace_for_expr): Ditto, and clear optimized_out flag.
5740 (gen_eval_for_expr): Ditto, and require an rvalue.
5741 (agent_command): Call ax_reqs.
5742 (agent_eval_command): Ditto.
5743 * tracepoint.c (report_agent_reqs_errors): Use agent expression fields.
5744 (validate_action_line): Ditto.
5745 (collect_symbol): Ditto.
5746 (encode_actions_1): Ditto.
5747
492928e4
JK
57482010-04-23 Daniel Jacobowitz <dan@codesourcery.com>
5749 Paul Pluzhnikov <ppluzhnikov@google.com>
5750 Jan Kratochvil <jan.kratochvil@redhat.com>
5751
5752 Fix deadlock on looped list of loaded shared objects.
5753 * solib-svr4.c (LM_PREV): New function.
5754 (IGNORE_FIRST_LINK_MAP_ENTRY): Use it.
5755 (svr4_current_sos): Check for correct l_prev. New variables prev_lm
5756 and next_lm. Clear prev_lm for solib_svr4_r_ldsomap.
5757 * config/djgpp/fnchange.lst: Add translation for solib-corrupted.exp.
5758
66d09542
DE
57592010-04-23 Doug Evans <dje@google.com>
5760
88a1906b
DE
5761 * configure.ac (CONFIG_SRCS): Add py-auto-load.o even if not using
5762 python.
5763 * configure: Regenerate.
5764 * main.c: #include "python/python.h".
5765 (captured_main): Defer loading auto-loaded scripts until after
5766 local_gdbinit has been sourced.
5767 * python/py-auto-load.c (gdbpy_global_auto_load): New global.
5768 (load_auto_scripts_for_objfile): New function.
5769 (auto_load_new_objfile): Call it.
5770 * python/python.h (gdbpy_global_auto_load): Declare.
5771 (load_auto_scripts_for_objfile): Declare.
5772
66d09542
DE
5773 Add support for auto-loading scripts from .debug_gdb_scripts section.
5774 * NEWS: Add entry for .debug_gdb_scripts.
5775 * Makefile.in SUBDIR_PYTHON_OBS): Add py-auto-load.o.
5776 (SUBDIR_PYTHON_SRCS): Add py-auto-load.c.
5777 (py-auto-load.o): New rule.
5778 * cli/cli-cmds.c (find_and_open_script): Make externally visible.
5779 * cli/cli-cmds.h (find_and_open_script): Update prototype.
5780 * python/py-auto-load.c: New file.
5781 * python/python-internal.h: #include <stdio.h>.
5782 (set_python_list, show_python_list): Declare.
5783 (gdbpy_initialize_auto_load): Declare.
5784 (source_python_script_for_objfile): Declare.
5785 * python/python.c: Remove #include of observer.h.
5786 (gdbpy_auto_load): Moved to py-auto-load.c.
5787 (GDBPY_AUTO_FILENAME): Ditto.
5788 (gdbpy_new_objfile): Delete.
5789 (source_python_script_for_objfile): New function.
5790 (set_python_list, show_python_list): Make externally visible.
5791 (_initialize_python): Move "auto-load" command to py-auto-load.c
5792 and observer_attach_new_objfile to py-auto-load.c.
5793
3a48e6ff 57942010-04-23 Jerome Guitton <guitton@adacore.com>
0407b3f1 5795
3a48e6ff
JG
5796 * alpha-tdep.c (INSN_OPCODE, MEM_RA, MEM_RB, MEM_DISP, BR_RA)
5797 (OPR_FUNCTION, OPR_HAS_IMMEDIATE, OPR_RA, OPR_RC, OPR_LIT): New macros.
5798 (lda_opcode, stq_opcode, bne_opcode, subq_opcode, subq_function):
5799 New constants.
5800 (alpha_heuristic_analyze_probing_loop): New function.
5801 (alpha_heuristic_frame_unwind_cache): In the prologue analysis, detect
5802 and handle cases when a stack probe loop is generated.
5803 * alpha-mdebug-tdep.c (alpha_mdebug_frameless): New function.
5804 (alpha_mdebug_max_frame_size_exceeded): New function.
5805 (alpha_mdebug_after_prologue): Use alpha_mdebug_frameless.
5806 (alpha_mdebug_frame_sniffer, alpha_mdebug_frame_base_sniffer):
5807 Return 0 when the maximum debuggable frame size has been exceeded.
5808
e4166a49
JB
58092010-04-23 Joel Brobecker <brobecker@adacore.com>
5810
5811 Fix ARI warning.
5812 * ppc-linux-nat.c (booke_cmp_hw_point): Do not mark inline.
5813
8bd10a10
CM
58142010-04-20 Chris Moller <cmoller@redhat.com>
5815
5816 PR 10179
5817
5818 * symtab.c (rbreak_command): Added code to include a filename
5819 specification in the rbreak argument.
5820 * NEWS: Added a brief description of filename-qualified rbreak.
5821
c0201579
JK
58222010-04-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5823
5824 Fix crashes on dangling display expressions.
5825 * ada-lang.c (ada_operator_check): New function.
5826 (ada_exp_descriptor): Fill-in the field operator_check.
5827 * c-lang.c (exp_descriptor_c): Fill-in the field operator_check.
5828 * jv-lang.c (exp_descriptor_java): Likewise.
5829 * m2-lang.c (exp_descriptor_modula2): Likewise.
5830 * scm-lang.c (exp_descriptor_scm): Likewise.
5831 * parse.c (exp_descriptor_standard): Likewise.
5832 (operator_check_standard): New function.
5833 (exp_iterate, exp_uses_objfile_iter, exp_uses_objfile): New functions.
5834 * parser-defs.h (struct exp_descriptor): New field operator_check.
5835 (operator_check_standard, exp_uses_objfile): New declarations.
5836 * printcmd.c: Remove the inclusion of solib.h.
5837 (display_uses_solib_p): Remove the function.
5838 (clear_dangling_display_expressions): Call lookup_objfile_from_block
5839 and exp_uses_objfile instead of display_uses_solib_p.
5840 * solist.h (struct so_list) <objfile>: New comment.
5841 * symtab.c (lookup_objfile_from_block): Remove the static qualifier.
5842 * symtab.h (lookup_objfile_from_block): New declaration.
5843 (struct general_symbol_info) <obj_section>: Extend the comment.
5844
6ffbb7ab
TJB
58452010-04-22 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
5846 Thiago Jung Bauermann <bauerman@br.ibm.com>
5847
5848 * ppc-linux-nat.c (PTRACE_GET_DEBUGREG): Update comment.
5849 (PPC_PTRACE_GETWDBGINFO, PPC_PTRACE_SETHWDEBUG, PPC_PTRACE_DELHWDEBUG,
5850 ppc_debug_info, PPC_DEBUG_FEATURE_INSN_BP_RANGE,
5851 PPC_DEBUG_FEATURE_INSN_BP_MASK, PPC_DEBUG_FEATURE_DATA_BP_RANGE,
5852 PPC_DEBUG_FEATURE_DATA_BP_MASK, ppc_hw_breakpoint,
5853 PPC_BREAKPOINT_TRIGGER_EXECUTE, PPC_BREAKPOINT_TRIGGER READ,
5854 PPC_BREAKPOINT_TRIGGER_WRITE, PPC_BREAKPOINT_TRIGGER_RW,
5855 PPC_BREAKPOINT_MODE_EXACT PPC_BREAKPOINT_MODE_RANGE_INCLUSIVE,
5856 PPC_BREAKPOINT_MODE_RANGE_EXCLUSIVE, PPC_BREAKPOINT_MODE_MASK,
5857 PPC_BREAKPOINT_CONDITION_NONE, PPC_BREAKPOINT_CONDITION_AND,
5858 PPC_BREAKPOINT_CONDITION_EXACT, PPC_BREAKPOINT_CONDITION_OR,
5859 PPC_BREAKPOINT_CONDITION_AND_OR, PPC_BREAKPOINT_CONDITION_BE_ALL,
5860 PPC_BREAKPOINT_CONDITION_BE_SHIFT, PPC_BREAKPOINT_CONDITION_BE):
5861 Define, in case <ptrace.h> doesn't provide it.
5862 (booke_debug_info): New variable.
5863 (max_slots_number): Ditto.
5864 (hw_break_tuple): New struct.
5865 (thread_points): Ditto.
5866 (ppc_threads): New variable.
5867 (PPC_DEBUG_CURRENT_VERSION): New define.
5868 (have_ptrace_new_debug_booke): New function.
5869 (ppc_linux_check_watch_resources): Renamed to ...
5870 (ppc_linux_can_use_hw_breakpoint): ... this. Handle BookE processors.
5871 (ppc_linux_region_ok_for_hw_watchpoint): Handle BookE processors.
5872 (booke_cmp_hw_point): New function.
5873 (booke_find_thread_points_by_tid): Ditto.
5874 (booke_insert_point): Ditto.
5875 (booke_remove_point): Ditto.
5876 (ppc_linux_insert_hw_breakpoint): Ditto.
5877 (ppc_linux_remove_hw_breakpoint): Ditto.
5878 (get_trigger_type): Ditto.
5879 (ppc_linux_insert_watchpoint): Handle BookE processors.
5880 (ppc_linux_remove_watchpoint): Ditto.
5881 (ppc_linux_new_thread): Ditto.
5882 (ppc_linux_thread_exit): New function..
5883 (ppc_linux_stopped_data_address): Handle BookE processors.
5884 (ppc_linux_watchpoint_addr_within_range): Ditto.
5885 (_initialize_ppc_linux_nat): Initialize to_insert_hw_breakpoint and
5886 to_remove_hw_breakpoint fields of the target operations struct.
5887 Add observe for the thread_exit event.
5888
be0d2954
L
58892010-04-22 H.J. Lu <hongjiu.lu@intel.com>
5890
5891 * i386-linux-nat.c (regmap): Removed.
5892 (fetch_register): Replace regmap with
5893 i386_linux_gregset_reg_offset.
5894 (store_register): Likewise.
5895 (supply_gregset): Likewise.
5896 (fill_gregset): Likewise.
5897
5898 * i386-linux-tdep.c (i386_linux_gregset_reg_offset): Make it
5899 global.
5900
5901 * i386-linux-tdep.h (i386_linux_gregset_reg_offset): New.
5902
f56dcb88
CM
59032010-04-22 Chris Moller <cmoller@redhat.com>
5904
5905 * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
758afad7
L
5906 method of popping recursion-detection stack with a method based on
5907 obstack_object_size(). (Similar to the PR9167 patch below, but for
f56dcb88
CM
5908 the static array obstack rather than the static member obstack.)
5909
6cd6a2ae
L
59102010-04-22 H.J. Lu <hongjiu.lu@intel.com>
5911
5912 * amd64-linux-nat.c (amd64_linux_gregset64_reg_offset): Removed.
5913 (_initialize_amd64_linux_nat): Replace
5914 amd64_linux_gregset64_reg_offset with
5915 amd64_linux_gregset_reg_offset.
5916
5917 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Make it
5918 global.
5919
5920 * amd64-tdep.h (amd64_linux_gregset_reg_offset): New.
5921
621791b8
PM
59222010-04-22 Pierre Muller <muller@ics.u-strasbg.fr>
5923
5924 PR stabs/11479.
5925 * stabsread.c (set_length_in_type_chain): New function.
5926 (read_struct_type): Call set_length_in_type_chain function.
5927 (read_enum_type): Idem.
5928
105c2d85
SS
59292010-04-21 Stan Shebs <stan@codesourcery.com>
5930 Nathan Sidwell <nathan@codesourcery.com>
5931
5932 * tracepoint.c (trace_save): Open in binary mode.
5933
9a22f0d0
PM
59342010-04-22 Pierre Muller <muller@ics.u-strasbg.fr>
5935
5936 * gdbtypes.h (builtin_type): Add builtin_char16 and builtin_char32
5937 fields.
0407b3f1 5938 * gdbtypes.c (gdbtypes_post_init): Set builtin_char16 and
9a22f0d0
PM
5939 builtin_char32 fields.
5940 * printcmd.c (decode_format): Set char size to '\0'
5941 for strings unless explicit size is given.
5942 (print_formatted): Correct calculation of NEXT_ADDRESS
5943 for 16 or 32 bit strings.
5944 (do_examine): Do not force byte size for strings.
5945 Use builtin_char16 and builtin_char32 types to display
0407b3f1 5946 16 or 32 bit-wide strings.
9a22f0d0
PM
5947 (x_command): Set LAST_SIZE to 'b' for string type.
5948
f335d1b3
L
59492010-04-21 H.J. Lu <hongjiu.lu@intel.com>
5950
5951 PR corefiles/11523
5952 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
5953 XCR0 first.
5954
5955 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Return 0 if
5956 there is no .reg-xstate section.
5957 (i386_linux_core_read_description): Check XCR0 first.
5958
a9789a6b
MF
59592010-04-21 Mike Frysinger <vapier@gentoo.org>
5960
5961 * gdb/sparc-tdep.c (sparc32_store_return_value): Add gdb_assert ()
5962 for len <= 8.
5963
0b66f317
CM
59642010-04-21 Chris Moller <cmoller@redhat.com>
5965
5966 PR 9167
5967 * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
32d7376d
L
5968 method of popping recursion-detection stack with a method based on
5969 obstack_object_size().
0b66f317 5970
6e354e5e
PM
59712010-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
5972
5973 PR pascal/11492.
5974 * p-valprint.c (pascal_val_print): Fix default printing of integer
5975 arrays.
5976
57174f31
PM
59772010-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
5978
5979 Fix compilation warning on gcc-4.1.2.
5980 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Initialize
5981 local variable`pc' to zero.
5982
6fbc7cd8
JB
59832010-04-20 Joel Brobecker <brobecker@adacore.com>
5984
5985 Implement thread support with core files on alpha-tru64.
5986 * dec-thread.c (dec_thread_find_new_threads): New function,
5987 extracted from resync_thread_list.
5988 (resync_thread_list): Add OPS parameter. Replace extracted-out
5989 code by call to dec_thread_find_new_threads.
5990 (dec_thread_wait): Update call to resync_thread_list.
5991 (init_dec_thread_ops): Set dec_thread_ops.to_find_new_threads.
5992
438c98a1
JB
59932010-04-20 Joel Brobecker <brobecker@adacore.com>
5994
5995 * ada-lang.c (value_pointer): New function.
5996 (make_array_descriptor): Call value_pointer to convert addresses to
5997 pointers.
5998
2971b56b
JB
59992010-04-20 Joel Brobecker <brobecker@adacore.com>
6000
6001 * rs6000-aix-tdep.c: #include exceptions.h.
6002 (rs6000_convert_from_func_ptr_addr): If an exception is thrown
6003 while reading the memory at ADDR, then ADDR cannot be a function
6004 descriptor.
6005
be942545
JB
60062010-04-20 Joel Brobecker <brobecker@adacore.com>
6007
6008 * ada-typeprint.c (ada_print_typedef): New function.
6009 * ada-lang.h (ada_print_typedef): Add declaration.
6010 * ada-lang.c (ada_language_defn): set la_print_typdef field
6011 to ada_print_typedef.
6012
1ca8fce0
JB
60132010-04-20 Joel Brobecker <brobecker@adacore.com>
6014
6015 * procfs.c (procfs_address_to_host_pointer): Only define when used.
6016
e9ef4f39
JB
60172010-04-20 Joel Brobecker <brobecker@adacore.com>
6018
6019 * procfs.c (iterate_over_mappings_cb_ftype): New typedef.
6020 (iterate_over_mappings): Adjust function profile. Add declaration.
6021 (insert_dbx_link_bpt_in_region, info_mappings_callback):
6022 Adjust accordingly.
6023
e294797a
JB
60242010-04-20 Joel Brobecker <brobecker@adacore.com>
6025
6026 * procfs.c (solib_mappings_callback): Move function up to avoid
6027 a compiler warning.
6028
a223f1e7
JB
60292010-04-20 Joel Brobecker <brobecker@adacore.com>
6030
6031 * procfs.c (find_signalled_thread, find_stop_signal): Move
6032 these functions down to define them only when used.
6033
0c3acc09
JB
60342010-04-20 Joel Brobecker <brobecker@adacore.com>
6035
6036 * valprint.c (common_val_print): Fix the value before extracting
6037 its contents.
6038 * ada-lang.c (ada_to_fixed_value): Make this function extern.
6039 * ada-lang.h (ada_to_fixed_value): New function declaration.
6040 * ada-valprint.c (ada_value_print): Use ada_to_fixed_value
6041 to avoid code duplication and fix a bug in the handling of
6042 fixed types contents.
6043
31ef98ae
TT
60442010-04-20 Tom Tromey <tromey@redhat.com>
6045
6046 * dwarf2read.c (dwarf2_compute_name): Handle DW_AT_linkage_name.
6047 (read_partial_die): Likewise.
6048 (dwarf_attr_name): Likewise.
6049
ec31cde5 60502010-04-20 Chris Moller <cmoller@redhat.com>
0407b3f1 6051
ec31cde5
CM
6052 PR 10867
6053
6054 * cp-valprint.c (global): Adding new static array recursion
6055 detection obstack.
6056 (cp_print_value_fields, cp_print_static_field): Added new static
6057 array recursion detection code.
6058
e0e0e543
MK
60592010-04-20 Mark Kettenis <kettenis@gnu.org>
6060
6061 * i386-linux-tdep.c (i386_linux_regset_sections): Size of the
6062 general-purpose register set should be 68 instead of 144.
6063 (i386_linux_sse_regset_sections): Likewise.
6064 (i386_linux_avx_regset_sections): Likewise.
6065
08922a10
SS
60662010-04-20 Stan Shebs <stan@codesourcery.com>
6067 Nathan Sidwell <nathan@codesourcery.com>
6068
6069 * dwarf2loc.c (struct axs_var_loc): New struct.
6070 (dwarf2_tracepoint_var_loc): New function.
6071 (dwarf2_tracepoint_var_access): New function.
6072 (dwarf2_tracepoint_var_ref): Use dwarf2_tracepoint_var_loc, deal
6073 with DW_OP_piece.
6074 (locexpr_describe_location_piece): New function.
6075 (locexpr_describe_location_1): New function.
6076 (locexpr_describe_location): Call it, update signature.
6077 (loclist_describe_location): Rewrite to loop over locations,
6078 update signature.
6079 * symtab.h (struct symbol_computed_ops): Add address to
6080 describe_location arguments, return void.
6081 * printcmd.c (address_info): Get context PC, pass to computed
6082 location description.
6083 * tracepoint.c (scope_info): Ditto.
6084 * ax-gdb.c (trace_kludge): Export.
6085
2dc7f7b3
TT
60862010-04-20 Tom Tromey <tromey@redhat.com>
6087
6088 * dwarf2-frame.c (decode_frame_entry_1): Handle CIE version 4.
6089 (struct dwarf2_cie) <segment_size>: New field.
6090 * dwarf2read.c (partial_read_comp_unit_head): Accept DWARF 4.
6091 (skip_one_die): Handle DW_FORM_flag_present, DW_FORM_sec_offset,
6092 DW_FORM_exprloc.
6093 (read_attribute_value): Handle DW_FORM_flag_present,
6094 DW_FORM_sec_offset, DW_FORM_exprloc.
6095 (dump_die_shallow): Likewise.
6096 (attr_form_is_section_offset): Handle DW_FORM_sec_offset.
6097 (dwarf2_const_value): Handle DW_FORM_exprloc.
6098 (attr_form_is_block): Likewise.
6099 (struct line_header) <maximum_ops_per_instruction>: New field.
6100 (dwarf_decode_line_header): Set new field.
6101 (dwarf_decode_lines): Handle new field.
6102
ce4b0682
SDJ
61032010-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6104
6105 * f-exp.y: Add new production to recognize the `logical*8' type.
6106 (LOGICAL_S8_KEYWORD): New token.
6107 * f-lang.c (enum f_primitive_types)
6108 <f_primitive_type_logical_s8>: New field.
6109 (f_language_arch_info): Handling `logical*8' type.
6110 (build_fortran_types): Building `logical*8' type.
6111 * f-lang.h (struct builtin_f_type) <builtin_logical_s8>: New field.
6112
ff9f22f1
DE
61132010-04-19 Doug Evans <dje@google.com>
6114
6115 * ser-base.c (generic_readchar): Watch for EOF in read of error_fd.
6116 * ser-pipe.c (pipe_open): Fix file descriptor leaks.
6117 (pipe_close): Ditto.
6118
437125bd
PM
61192010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6120
6121 * configure.tgt (x86_64-*-mingw*): Set BUILD_GDBSERVER to yes.
6122
e8e6c82e
PM
61232010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6124
6125 * windows-tdep.c (windows_get_tlb_type): Change current_seh.handle
6126 type to void function.
6127
4136fdd2
SS
61282010-04-19 Stan Shebs <stan@codesourcery.com>
6129 Vladimir Prus <vladimir@codesourcery.com>
6130
6131 * tracepoint.c (tfind_1): Add missing newline, report exit from
6132 tfind mode as such.
6133 * target.c (update_current_target): Make default
6134 to_trace_find return -1.
6135
0c4b2e63
MF
61362010-04-19 Mike Frysinger <vapier@gentoo.org>
6137
6138 * objc-lang.c (find_methods): Move symname check up.
6139
78076abc
PA
61402010-04-19 Pedro Alves <pedro@codesourcery.com>
6141
6142 * ada-lang.c (print_recreate_exception)
6143 <ex_catch_exception_unhandled>: It's "catch exception unhandled",
6144 not "catch unhandled".
6145
6149aea9
PA
61462010-04-19 Pedro Alves <pedro@codesourcery.com>
6147
6148 PR breakpoints/8554.
6149
6150 Implement `save-breakpoints'.
6151
6152 * breakpoint.c (save_cmdlist): New.
6153 (breakpoint_set_cmdlist, breakpoint_show_cmdlist): Moved up close
6154 to save_cmdlist.
6155 (print_recreate_catch_fork): New.
6156 (catch_fork_breakpoint_ops): Install it.
6157 (print_recreate_catch_vfork): New.
6158 (catch_vfork_breakpoint_ops): Install it.
6159 (print_recreate_catch_syscall): New.
6160 (catch_syscall_breakpoint_ops): Install it.
6161 (print_recreate_catch_exec): New.
6162 (catch_exec_breakpoint_ops): Install it.
6163 (print_recreate_exception_catchpoint): New.
6164 (gnu_v3_exception_catchpoint_ops): Install it.
6165 (save_breakpoints): New, based on tracepoint_save_command, but
6166 handle all breakpoint types.
6167 (save_breakpoints_command): New.
6168 (tracepoint_save_command): Rename to...
6169 (save_tracepoints_command): ... this, and reimplement using
6170 save_breakpoints.
6171 (save_command): New.
6172 (_initialize_breakpoints): Install the "save" command prefix.
6173 Install the "save breakpoints" command. Make "save-tracepoints" a
6174 deprecated alias for "save tracepoints".
6175 * breakpoint.h (struct breakpoint_ops): New field `print_recreate'.
6176 * ada-lang.c (print_recreate_exception): New.
6177 (print_recreate_catch_exception): New.
6178 (catch_exception_breakpoint_ops): Install it.
6179 (print_recreate_catch_exception_unhandled): New.
6180 (catch_exception_unhandled_breakpoint_ops): Install it.
6181 (print_recreate_catch_assert): New.
6182 (catch_assert_breakpoint_ops): Install it.
6183
6184 * NEWS: Mention the new `save breakpoints' command. Mention the
6185 new `save tracepoints' alias and that `save-tracepoints' is now
6186 deprecated.
6187
0a8fce9a
PA
61882010-04-18 Pedro Alves <pedro@codesourcery.com>
6189
6190 PR tui/9217
6191
6192 * tui/tui-out.c: Include cli-out.h.
6193 (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
6194 (tui_begin, tui_end, tui_field_int, tui_field_skip)
6195 (tui_field_string, tui_field_fmt, tui_spaces, tui_text)
6196 (tui_message, tui_wrap_hint, tui_flush): Delete forward
6197 declarations.
6198 (struct ui_out_data): Rename to...
6199 (struct tui_ui_out_data): ... this. Remove `stream' and
6200 `suppress_output' fields, and inherit cli_ui_out_data.
6201 (tui_out_data): New typedef.
6202 (tui_ui_out_impl): Don't initialize fields staticaly.
6203 (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
6204 (tui_begin, tui_end): Delete.
6205 (tui_field_int): Adjust to delegate most work to the base type.
6206 (tui_field_skip): Delete.
6207 (tui_field_string, tui_field_fmt): Adjust comment. Adjust to
6208 delegate most work to the base type.
6209 (tui_spaces): Delete.
6210 (tui_text): Adjust to delegate most work to the base type.
6211 (tui_message): Delete.
6212 (tui_wrap_hint): Delete.
6213 (tui_flush): Delete.
6214 (out_field_fmt): Delete.
6215 (field_separator): Delete.
6216 (tui_out_new): Adjust to initialize the base type.
6217 (_initialize_tui_out): Initialize tui_ui_out_impl.
6218 * cli-out.c (struct ui_out_data): Moved out to cli-out.h, renamed
6219 cli_ui_out_data.
6220 (cli_out_data): Adjust.
6221 (cli_ui_out_impl): Make extern.
6222 (cli_table_header, cli_field_int, cli_field_skip): Use
6223 uo_field_string instead of cli_field_string.
6224 (cli_redirect): Adjust to use cli_out_data.
6225 (cli_out_data_ctor): New.
6226 (cli_out_new): Use it.
6227 * cli-out.h (struct ui_file): Remove forward declaration.
6228 (struct cli_ui_out_data): New, moved from cli-out.c, and renamed.
6229 (cli_ui_out_impl): Declare.
6230 (cli_out_data_ctor): Declare.
6231 * ui-out.c (struct ui_out) <data>: Change type to void pointer.
6232 (uo_field_string): No longer static.
6233 (ui_out_data): Change return type to void pointer.
6234 (ui_out_new): Change `data' parameter type to void pointer.
6235 * ui-out.h (struct ui_out_data): Don't forward declare.
6236 (ui_out_data): Change return type to void pointer.
6237 (ui_out_new): Change `data' parameter type to void pointer.
6238 (uo_field_string): Declare.
6239
172240dd
PA
62402010-04-17 Pedro Alves <pedro@codesourcery.com>
6241
6242 * ui-file.c (tee_file_isatty): Return whether `tee->one' is a tty,
6243 instead of always false.
6244
ed41462c
L
62452010-04-17 H.J. Lu <hongjiu.lu@intel.com>
6246
6247 PR corefiles/11511
6248 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Support
6249 orig_rax.
6250
cc60f2e3
PA
62512010-04-17 Pedro Alves <pedro@codesourcery.com>
6252
6253 * breakpoint.c (watchpoints_triggered): Use
6254 is_hardware_watchpoint.
6255 (watchpoints_triggered): Ditto.
6256 (bpstat_check_location): Use is_watchpoint and
6257 is_hardware_watchpoint.
6258 (bpstat_check_watchpoint): Use is_watchpoint and
6259 is_hardware_watchpoint.
6260 (bpstat_stop_status): Fix comment.
6261 (user_settable_breakpoint): Use is_watchpoint.
6262 (hw_watchpoint_used_count): Use is_hardware_watchpoint.
6263 (disable_watchpoints_before_interactive_call_start): Use
6264 is_watchpoint.
6265 (enable_watchpoints_after_interactive_call_stop): Use
6266 is_watchpoint.
6267 (clear_command): Use is_watchpoint.
6268 (do_enable_breakpoint): Use is_watchpoint.
6269
cb7db0f2
MF
62702010-04-16 Mike Frysinger <vapier@gentoo.org>
6271
6272 * solib-frv.c (enable_break1_done): Delete.
6273 (enable_break2): Do not check enable_break1_done. Move the
6274 enable_break2_done setting and call to
6275 remove_solib_event_breakpoints() to the end. Return without
6276 warning when the contents of _dl_debug_addr are 0.
6277 (enable_break): Do not set enable_break1_done.
6278 (frv_clear_solib): Likewise.
6279
d77b48cf
KB
62802010-04-16 Kevin Buettner <kevinb@redhat.com>
6281
6282 * m32c-tdep.c (m32c_m16c_address_to_pointer): Print warning
6283 instead of an error if no PLT entry is found. Return a
6284 potentially useful result.
6285 (m32c_m16c_pointer_to_address): Add code to search for function
6286 address when no .plt entry is found.
6287
f90824dc
SS
62882010-04-16 Stan Shebs <stan@codesourcery.com>
6289
6290 * tracepoint.c (trace_variable_command): Run a cleanup.
6291
9b79b476
PM
62922010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
6293
6294 * p-lang.c (pascal_one_char): Do not restrict C to 0..255 range.
6295
711e434b
PM
62962010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
6297
6298 Support for Windows OS Thread Information Block.
6299 * NEWS: Document new feature.
6300 * remote.c (PACKET_qGetTIBAddr): New enum element.
6301 (remote_get_tib_address): New function.
6302 (init_remote_ops): Set to_get_tib_address field
6303 to remote_get_tib_address.
6304 (_initialize_remote): Add add_packet_config_cmd
6305 for PACKET_qGetTIBAddr.
6306 * target.c (update_current_target): Set default value for
6307 new to_get_tib_address field.
6308 * target.h (target_ops): New field to_get_tib_address.
6309 (target_get_tib_address): New macro.
6310 * windows-nat.c (thread_info): Add thread_local_base field.
6311 (windows_add_thread): Add tlb argument of type 'void *'.
6312 (fake_create_process): Adapt windows_add_thread call.
6313 (get_windows_debug_event): Idem.
6314 (windows_get_tib_address): New function.
6315 (init_windows_ops): Set to_get_tib_address field
6316 to remote_get_tib_address.
6317 (_initialize_windows_nat): Replace info_w32_cmdlist
6318 initialization by a call to init_w32_command_list.
6319 (info_w32_command, info_w32_cmdlist): Removed from here...
6320 to windows-tdep.c file.
6321 * windows-tdep.h (info_w32_cmdlist): Declare.
0407b3f1 6322 (init_w32_command_list): New external function
711e434b
PM
6323 declaration.
6324 * windows-tdep.c: Add several headers.
6325 (info_w32_cmdlist): to here, made global.
6326 (thread_information_32): New struct.
6327 (thread_information_64): New struct.
6328 (TIB_NAME): New char array.
6329 (MAX_TIB32, MAX_TIB64, FULL_TIB_SIZE): New constants.
6330 (maint_display_all_tib): New static variable.
6331 (windows_get_tlb_type): New function.
6332 (tlb_value_read, tlb_value_write): New functions.
6333 (tlb_value_funcs): New static struct.
6334 (tlb_make_value): New function.
6335 (display_one_tib): New function.
6336 (display_tib): New function.
6337 (show_maint_show_all_tib):New function.
6338 (info_w32_command): Moved from windows-nat.c.
6339 (init_w32_command_list): New function.
6340 (_initialize_windows_tdep): New function.
6341 New "maint set/show show-all-tib" command
6342 New "$_tlb" internal variable.
6343
cae3f17b
JB
63442010-04-16 Joel Brobecker <brobecker@adacore.com>
6345
6346 * tui/tui-regs.c (tui_display_register): Add comment about
6347 a couple of casts.
6348 * tui/tui-stack.c (tui_show_locator_content): Ditto.
6349
2ce6d6bf
SS
63502010-04-15 Stan Shebs <stan@codesourcery.com>
6351
6352 * frame.c: Include tracepoint.h.
6353 (get_current_frame): Allow a trace frame to be an alternate source
6354 of stack frame data.
6355 * tracepoint.c (tfind_1): Don't try to get current stack frame if
6356 it won't succeed.
6357
7e559477
PA
63582010-04-15 Pedro Alves <pedro@codesourcery.com>
6359
6360 * ppc-linux-tdep.c (bsd_uthread_solib_loaded): Always pass 0 for
6361 flags.
6362 * solib-spu.c (spu_solib_loaded): Always pass 0 for flags.
6363
3f7b2faa
DE
63642010-04-15 Doug Evans <dje@google.com>
6365
fa33c3cd
DE
6366 * NEWS: Add entry for python program space support.
6367 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-progspace.o.
6368 (SUBDIR_PYTHON_SRCS): Add py-progspace.c.
6369 (py-progspace.o): New rule.
6370 * python/py-prettyprint.c (find_pretty_printer_from_objfiles): New
6371 function.
6372 (find_pretty_printer_from_progspace): New function.
6373 (find_pretty_printer_from_gdb): New function.
6374 (find_pretty_printer): Rewrite.
6375 * python/py-progspace.c: New file.
6376 * python/python-internal.h (program_space): Add forward decl.
6377 (pspace_to_pspace_object, pspy_get_printers): Declare.
6378 (gdbpy_initialize_pspace): Declare.
6379 * python/python.c: #include "progspace.h".
6380 (gdbpy_get_current_progspace, gdbpy_progspaces): New functions.
6381 (_initialize_python): Call gdbpy_initialize_pspace.
6382 (GdbMethods): Add current_progspace, progspaces.
6383
3f7b2faa
DE
6384 Add -s option to source command.
6385 * NEWS: Document new option.
6386 * cli/cli-cmds.c (find_and_open_script): Add function comment.
6387 Delete from_tty and cleanupp args. Split filep arg into file and
6388 full_pathp. New arg search_path.
6389 (source_script_from_stream): New function.
6390 (source_script_with_search): New function.
6391 (source_script): Rewrite.
6392 (source_command): Parse "-s" option.
6393 (init_cli_cmds): Add "-s" docs to source command help, and reformat.
6394 * python/python.c (source_python_script): Make file arg a const char *.
6395 Don't call fclose, leave for caller.
6396 * python/python.h (source_python_script): Update.
6397
a86988f2
PA
63982010-04-14 Daniel Jacobowitz <dan@codesourcery.com>
6399 Pedro Alves <pedro@codesourcery.com>
6400
6401 Avoid rereading shared libraries that haven't changed.
6402
6403 * solib.c (free_so_symbols): New function, from ...
6404 (free_so): ... here. Call it.
6405 (solib_read_symbols): Don't warn here if symbols have already been
6406 loaded.
6407 (solib_add): Warn here instead, if a pattern was specified.
6408 (reload_shared_libraries_1): New.
6409 (reload_shared_libraries): Rewrite to not fetch the library list.
6410
e6d9b9c2
DE
64112010-04-14 Doug Evans <dje@google.com>
6412
589390d6 6413 * source.c (openp): Strip DOS drive letter if present before
e6d9b9c2
DE
6414 concatenating string to search path.
6415
516ba659
PA
64162010-04-14 Pedro Alves <pedro@codesourcery.com>
6417
6418 * objfiles.h (gdb_bfd_close_or_warn): Declare.
6419 * objfiles.c (gdb_bfd_close_or_warn): New.
6420 * corelow.c: Include objfiles.h
6421 (core_close): Use gdb_bfd_close_or_warn.
6422 * elfread.c (build_id_verify): Ditto.
6423 * exec.c (exec_close, exec_close_1): Ditto.
6424
048d532d
PA
64252010-04-14 Daniel Jacobowitz <dan@codesourcery.com>
6426 Pedro Alves <pedro@codesourcery.com>
6427
6428 Group errors for many missing shared libraries.
6429
6430 * solist.h (struct so_list): Remove from_tty.
6431 * solib.c (solib_bfd_open): Return NULL if we failed to open a BFD.
6432 (solib_map_sections): Take so_list argument. Return 0 if we
6433 failed to open a BFD. Add target sections here.
6434 (symbol_add_stub): Delete.
6435 (solib_read_symbols): Inline symbol_add_stub. Use current flags,
6436 not from_tty copied from the so_list. Don't warn a second time
6437 for a missing library.
6438 (update_solib_list): Don't save from_tty. Use TRY_CATCH. Do not
6439 add to the section table here. Print out a single warning for all
6440 missing libraries.
6441 * bsd-uthread.c (bsd_uthread_solib_loaded): Always pass 0 for
6442 flags.
6443
044c0f87
PM
64442010-04-14 Phil Muldoon <pmuldoon@redhat.com>
6445
6446 * python/py-block.c (gdbpy_block_for_pc): Use i8n to encompass
6447 error/warning messages. Capitalize and use complete sentences.
6448 (blpy_block_syms_iternext): Likewise.
6449 * python/py-cmd.c (parse_command_name, cmdpy_init): Likewise.
6450 * python/py-frame.c (FRAPY_REQUIRE_VALID, frapy_block)
6451 (frame_info_to_frame_object, frapy_read_var)
6452 (gdbpy_frame_stop_reason_string): Likewise.
6453 * python/py-lazy-string.c (stpy_convert_to_value)
6454 (gdbpy_create_lazy_string_object): Likewise.
6455 * python/py-objfile.c (objfpy_set_printers): Likewise.
6456 * python/py-prettyprint.c (gdbpy_default_visualizer): Likewise.
6457 * python/python.c (parameter_to_python): Likewise.
6458 * python/py-type.c (typy_range, typy_target): Likewise.
6459 * python/py-value.c (valpy_cast, valpy_length, valpy_getitem)
6460 (valpy_richcompare, valpy_int, valpy_long, valpy_float): Likewise.
6461
6462
79f283fe
PM
64632010-04-14 Phil Muldoon <pmuldoon@redhat.com>
6464
6465 PR python/11381
6466
6467 * python/py-prettyprint.c (pretty_print_one_value): Test for
6468 Py_None.
6469 (print_string_repr): Test for Py_None. Set flags accordingly.
6470 Return value depending on return type.
6471 (print_children): Take a value indicating whether data was printed
6472 before this function was called. Alter output accordingly.
6473 (apply_val_pretty_printer): Capture return value from
6474 print_string_repr and pass to print_children.
6475
4ac5d44e
MK
64762010-04-13 Mark Kettenis <kettenis@gnu.org>
6477
e1caee70 6478 PR corefiles/11481
4ac5d44e
MK
6479 * i386-linux-tdep.c (i386_linux_regset_sections): Remove extended
6480 register note sections.
6481 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
6482 New variables.
6483 (i386_linux_init_abi): Install list of supported register note
6484 sections that matches the target description.
6485
ad91cd99
PA
64862010-04-13 Pedro Alves <pedro@codesourcery.com>
6487
6488 * remote.c (remote_get_noisy_reply): Don't error out on empty
6489 replies.
6490 (remote_start_remote): Update and merge tracepoints and trace
6491 state variables as long as the target supports tracepoints.
6492 (remote_trace_init): Fix prototype.
6493 (remote_download_trace_state_variable): Validate reply.
6494 (remote_trace_set_readonly_regions): Fix prototype.
6495 (remote_trace_start): Fix prototype. Check for empty reply.
6496 (remote_get_trace_status): Small cleanup.
6497 (remote_trace_stop): Fix prototype. Check for empty reply.
6498 (remote_trace_find): Check for empty reply.
6499 (remote_save_trace_data): Validate reply.
6500 (remote_set_disconnected_tracing): Check for empty reply, and
6501 validate reply.
6502 (remote_set_circular_trace_buffer): Ditto.
6503
ae3bccd4
PM
65042010-04-13 Pierre Muller <muller@ics.u-strasbg.fr>
6505
6506 Suppress unused value warning during compilation.
6507 * tui/tui-regs.c (tui_display_register): Cast wstandout and wstandend
6508 calls to void.
6509 * tui/tui-stack.c (tui_show_locator_content): Likewise.
6510
523136f2
SS
65112010-04-12 Stan Shebs <stan@codesourcery.com>
6512
6513 * tracepoint.c (tfile_xfer_partial): Check read result.
6514
0d18d720
MF
65152010-04-12 Mike Frysinger <vapier@gentoo.org>
6516
6517 * remote-m32r-sdi.c (m32r_files_info): Add const to local "file" var.
6518 * remote-sim.c (gdbsim_files_info): Likewise.
6519
3b273a55
RE
65202010-04-12 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
6521
6522 * arm-tdep.h (gdb_regnum): Add ARM_FPSCR_REGNUM
6523 * arm-linux-nat.c (arm_linux_vfp_register_count): New
6524 variable.
6525 (fetch_vfp_registers): New function to fetch VFP registers.
6526 (store_vfp_registers): New function to store VFP registers.
6527 (arm_linux_fetch_inferior_registers): Add support for VFP
6528 registers.
6529 (arm_linux_store_inferior_registers): Likewise.
6530 (arm_linux_read_description): Likewise.
6531 (_initialize_arm_linux_nat): Delay initialising iWMMX tdesc
6532 until we need it.
6533
778c7095
L
65342010-04-11 H.J. Lu <hongjiu.lu@intel.com>
6535
6536 * amd64-tdep.c (amd64_supply_xstateregset): Remove the unused
6537 tdep.
6538 (amd64_collect_xstateregset): Likewise.
6539
2114d44c
SS
65402010-04-09 Stan Shebs <stan@codesourcery.com>
6541
87290684
SS
6542 * tracepoint.c (trace_status_mi): Report frames created.
6543
2114d44c
SS
6544 * tracepoint.c (trace_dump_command): Include default-collect
6545 expressions.
6546
86da934b
UW
65472010-04-09 Ulrich Weigand <uweigand@de.ibm.com>
6548
6549 * symtab.c (find_function_start_sal): Never return SAL pointing
6550 before function start address, even if line info is missing.
6551
2d6e647a 65522010-04-09 Pedro Alves <pedro@codesourcery.com>
d337e9f0
PA
6553
6554 * NEWS: Mention tracepoints support.
6555
a97153c7
PA
65562010-04-09 Pedro Alves <pedro@codesourcery.com>
6557
6558 * tracepoint.c (trace_status_mi): Report disconnected tracing and
6559 circular trace buffer statuses.
6560
7a66d603
JK
65612010-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6562
6563 * config/djgpp/fnchange.lst: Fix typo in translations for
6564 symbol-without-target_section.exp and symbol-without-target_section.c.
6565
2566ad2d
PA
65662010-04-09 Pedro Alves <pedro@codesourcery.com>
6567
6568 * breakpoint.c (condition_command): Pass condition expression to
6569 set_breakpoint_condition stripped from breakpoint number.
6570
adc36818
PM
65712010-04-09 Phil Muldoon <pmuldoon@redhat.com>
6572 Thiago Jung Bauermann <bauerman@br.ibm.com>
2566ad2d 6573 Tom Tromey <tromey@redhat.com>
adc36818
PM
6574
6575 * breakpoint.c (condition_command): Simplify. Move condition
6576 setting code to ...
6577 (set_breakpoint_condition): ... here. New function.
6578 * breakpoint.h (set_breakpoint_condition): Declare.
6579 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpoint.
6580 (SUBDIR_PYTHON_SRCS): Likewise.
6581 (py-breakpoint.o): New rule.
6582 * python/py-breakpoint.c: New file.
6583 * python/python-internal.h (gdbpy_breakpoints)
6584 (gdbpy_initialize_breakpoints): Declare.
6585 (GDB_PY_SET_HANDLE_EXCEPTION) Define.
6586
219f2f23
PA
65872010-04-09 Pedro Alves <pedro@codesourcery.com>
6588
6589 * regformats/regdat.sh: Include server.h. Don't include
6590 regcache.h.
6591
33da3f1c
SS
65922010-04-08 Stan Shebs <stan@codesourcery.com>
6593 Pedro Alves <pedro@codesourcery.com>
6594
6595 * tracepoint.h (struct trace_status): New fields disconnected_tracing
6596 and circular_buffer.
6597 (disconnect_tracing): Rename from disconnect_or_stop_tracing.
6598 * tracepoint.c (trace_status_command): Display target's status for
6599 disconnected tracing and circular buffer.
6600 (disconnect_tracing): Rename from disconnect_or_stop_tracing, add
6601 query for non-disconnected-tracing case, remove the stop_tracing
6602 call.
6603 (tfile_open): Clear disconnected and circular buffer status.
6604 (trace_save): Save disconnected and circular buffer status.
6605 (parse_trace_status): Parse disconnected and circular buffer status,
6606 also recognize disconnected as a stop reason.
6607 * remote.c (remote_set_disconnected_tracing): Only set
6608 QTDisconnected if the remote end supports disconnected tracing.
6609 Warn otherwise, if trying to enable disconnected tracing.
6610 * infcmd.c (detach_command): Update disconnect_tracing call.
6611 * cli/cli-cmds.c (quit_command): Ditto.
6612
4e4d8374
L
66132010-04-08 H.J. Lu <hongjiu.lu@intel.com>
6614
6615 * i387-tdep.c (i387_collect_xsave): Replace abort with
6616 internal_error.
6617
ad443146
SS
66182010-04-08 Stan Shebs <stan@codesourcery.com>
6619
6620 * breakpoint.c (default_collect_info): New function.
6621 (breakpoints_info): Call it.
6622 (maintenance_info_breakpoints): Ditto.
6623 (tracepoints_info): Ditto.
6624
40936b0d
L
66252010-04-08 H.J. Lu <hongjiu.lu@intel.com>
6626
6627 * i387-tdep.c (i387_collect_xsave): Re-indent.
6628
3a13a53b
L
66292010-04-08 H.J. Lu <hongjiu.lu@intel.com>
6630
6631 * i386-linux-nat.c (have_ptrace_getfpxregs): Initialize to -1
6632 if HAVE_PTRACE_GETFPXREGS is defined.
6633 (i386_linux_read_description): Set have_ptrace_getfpxregs and
6634 have_ptrace_getregset to 0 if ptrace PTRACE_GETFPXREGS failed.
6635
6636 * i386-linux-tdep.c: Include "features/i386/i386-mmx-linux.c"
6637 (i386_linux_core_read_description): Return tdesc_i386_mmx_linux
6638 if .reg-xfp section doesn't exist.
6639 (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_mmx_linux.
6640
6641 * i386-linux-tdep.h (tdesc_i386_mmx_linux): New.
6642
6643 * i386-tdep.c: Include "features/i386/i386-mmx.c".
6644 (i386_go32_init_abi): Set tdesc to tdesc_i386_mmx.
6645 (i386_validate_tdesc_p): Make org.gnu.gdb.i386.sse optional. Set
6646 xcr0 to I386_XSTATE_X87_MASK if SSE isn't available.
6647 (i386_gdbarch_init): Update comments.
6648 (_initialize_i386_tdep): Call initialize_tdesc_i386_mmx.
6649
6650 * common/i386-xstate.h (I386_XSTATE_X87_MASK): New.
6651
6652 * config/djgpp/fnchange.lst: Add i386 MMX XML files.
6653
6654 * features/Makefile (i386/i386-mmx-expedite): New.
6655 (i386/i386-mmx-linux-expedite): Likewise.
6656 ($(outdir)/i386/i386-mmx.dat): Likewise.
6657 ($(outdir)/i386/i386-mmx-linux.dat): Likewise.
6658
6659 * features/i386/i386-mmx-linux.c: New.
6660 * features/i386/i386-mmx-linux.xml: Likewise.
6661 * features/i386/i386-mmx.c: Likewise.
6662 * features/i386/i386-mmx.xml: Likewise.
6663 * regformats/i386/i386-mmx-linux.dat: Likewise.
6664 * regformats/i386/i386-mmx.dat: Likewise.
6665
6666 * features/Makefile (WHICH): Add i386/i386-mmx and
6667 i386/i386-mmx-linux.
6668
08001717
DE
66692010-04-08 Doug Evans <dje@google.com>
6670
6671 * source.c (openp): Skip $cdir in PATH.
6672
fff5cc64
PM
66732010-04-08 Phil Muldoon <pmuldoon@redhat.com>
6674
6675 PR python/11417
fff5cc64 6676 * python/py-lazy-string.c (stpy_convert_to_value): Check for
3a13a53b
L
6677 a NULL address.
6678 (gdbpy_create_lazy_string_object): Allow strings with a NULL
6679 address and a zero length.
fff5cc64 6680
f8c4f480
HZ
66812010-04-08 Hui Zhu <teawater@gmail.com>
6682
6683 * i386-tdep.c (i386_process_record): Add support for insn
6684 rdtsc.
6685
eb5cda86
DE
66862010-04-07 Doug Evans <dje@google.com>
6687
6688 * python/python.c (source_python_script): Use ensure_python_env
6689 to prepare environment for script.
6690
a055a187
L
66912010-04-07 H.J. Lu <hongjiu.lu@intel.com>
6692
6693 * amd64-linux-nat.c: Include "regset.h", "elf/common.h",
6694 <sys/uio.h> and "i386-xstate.h".
6695 (PTRACE_GETREGSET): New.
6696 (PTRACE_SETREGSET): Likewise.
6697 (have_ptrace_getregset): Likewise.
6698 (amd64_linux_gregset64_reg_offset): Include 16 upper YMM
6699 registers.
6700 (amd64_linux_gregset32_reg_offset): Include 8 upper YMM
6701 registers.
6702 (amd64_linux_fetch_inferior_registers): Support PTRACE_GETFPREGS.
6703 (amd64_linux_store_inferior_registers): Likewise.
6704 (amd64_linux_read_description): Check and enable AVX target
6705 descriptions.
6706
6707 * amd64-linux-tdep.c: Include "regset.h", "i386-linux-tdep.h"
6708 and "features/i386/amd64-avx-linux.c".
6709 (amd64_linux_regset_sections): New.
6710 (amd64_linux_core_read_description): Check and enable AVX
6711 target description.
6712 (amd64_linux_init_abi): Set xsave_xcr0_offset. Call
6713 set_gdbarch_core_regset_sections.
6714 (_initialize_amd64_linux_tdep): Call
6715 initialize_tdesc_amd64_avx_linux.
6716
6717 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Replace
6718 AMD64_MXCSR_REGNUM with AMD64_YMM15H_REGNUM.
6719 (tdesc_amd64_avx_linux): New.
6720 (amd64_linux_update_xstateregset): Likewise.
6721
6722 * amd64-tdep.c: Include "features/i386/amd64-avx.c".
6723 (amd64_ymm_names): New.
6724 (amd64_ymmh_names): Likewise.
6725 (amd64_register_name): Likewise.
6726 (amd64_supply_xstateregset): Likewise.
6727 (amd64_collect_xstateregset): Likewise.
6728 (amd64_supply_xsave): Likewise.
6729 (amd64_collect_xsave): Likewise.
6730 (AMD64_NUM_REGS): Removed.
6731 (amd64_dwarf_reg_to_regnum): Return %ymmN register number for
6732 %xmmN if AVX is available.
6733 (amd64_pseudo_register_name): Support pseudo YMM registers.
6734 (amd64_regset_from_core_section): Support .reg-xstate section.
6735 (amd64_init_abi): Set ymmh_register_names, num_ymm_regs
6736 and ymm0h_regnum. Call set_gdbarch_register_name.
6737 (amd64_init_abi): Call initialize_tdesc_amd64_avx.
6738
6739 * amd64-tdep.h (amd64_regnum): Add AMD64_YMM0H_REGNUM and
6740 AMD64_YMM15H_REGNUM.
6741 (AMD64_NUM_REGS): New.
6742 (amd64_supply_xsave): Likewise.
6743 (amd64_collect_xsave): Likewise.
6744 (amd64_register_name): Removed.
6745 (amd64_register_type): Likewise.
6746
31aeac78
L
67472010-04-07 H.J. Lu <hongjiu.lu@intel.com>
6748
6749 * i387-tdep.c: Include "i386-xstate.h".
6750 (XSAVE_XSTATE_BV_ADDR): New.
6751 (xsave_avxh_offset): Likewise.
6752 (XSAVE_AVXH_ADDR): Likewise.
6753 (i387_supply_xsave): Likewise.
6754 (i387_collect_xsave): Likewise.
6755
6756 * i387-tdep.h (I387_NUM_YMM_REGS): New.
6757 (I387_YMM0H_REGNUM): Likewise.
6758 (I387_YMMENDH_REGNUM): Likewise.
6759 (i387_supply_xsave): Likewise.
6760 (i387_collect_xsave): Likewise.
6761
c131fcee
L
67622010-04-07 H.J. Lu <hongjiu.lu@intel.com>
6763
6764 * i386-linux-nat.c: Include "regset.h", "elf/common.h",
6765 <sys/uio.h> and "i386-xstate.h".
6766 (PTRACE_GETREGSET): New.
6767 (PTRACE_SETREGSET): Likewise.
6768 (fetch_xstateregs): Likewise.
6769 (store_xstateregs): Likewise.
6770 (GETXSTATEREGS_SUPPLIES): Likewise.
6771 (regmap): Include 8 upper YMM registers.
6772 (i386_linux_fetch_inferior_registers): Support XSAVE extended
6773 state.
6774 (i386_linux_store_inferior_registers): Likewise.
6775 (i386_linux_read_description): Check and enable AVX target
6776 descriptions.
6777
6778 * i386-linux-tdep.c: Include "regset.h", "i387-tdep.h",
6779 "i386-xstate.h" and "features/i386/i386-avx-linux.c".
6780 (i386_linux_regset_sections): Add ".reg-xstate".
6781 (i386_linux_gregset_reg_offset): Include 8 upper YMM registers.
6782 (i386_linux_core_read_xcr0): New.
6783 (i386_linux_core_read_description): Check and enable AVX target
6784 description.
6785 (i386_linux_init_abi): Set xsave_xcr0_offset.
6786 (_initialize_i386_linux_tdep): Call
6787 initialize_tdesc_i386_avx_linux.
6788
6789 * i386-linux-tdep.h (I386_LINUX_ORIG_EAX_REGNUM): Replace
6790 I386_SSE_NUM_REGS with I386_AVX_NUM_REGS.
6791 (i386_linux_core_read_xcr0): New.
6792 (tdesc_i386_avx_linux): Likewise.
6793 (I386_LINUX_XSAVE_XCR0_OFFSET): Likewise.
6794
6795 * i386-tdep.c: Include "i386-xstate.h" and
6796 "features/i386/i386-avx.c".
6797 (i386_ymm_names): New.
6798 (i386_ymmh_names): Likewise.
6799 (i386_ymmh_regnum_p): Likewise.
6800 (i386_ymm_regnum_p): Likewise.
6801 (i386_xmm_regnum_p): Likewise.
6802 (i386_register_name): Likewise.
6803 (i386_ymm_type): Likewise.
6804 (i386_supply_xstateregset): Likewise.
6805 (i386_collect_xstateregset): Likewise.
6806 (i386_sse_regnum_p): Removed.
6807 (i386_pseudo_register_name): Support pseudo YMM registers.
6808 (i386_pseudo_register_type): Likewise.
6809 (i386_pseudo_register_read): Likewise.
6810 (i386_pseudo_register_write): Likewise.
6811 (i386_dbx_reg_to_regnum): Return %ymmN register number for
6812 %xmmN if AVX is available.
6813 (i386_regset_from_core_section): Support .reg-xstate section.
6814 (i386_register_reggroup_p): Supper upper YMM and YMM registers.
6815 (i386_process_record): Replace i386_sse_regnum_p with
6816 i386_xmm_regnum_p.
6817 (i386_validate_tdesc_p): Support org.gnu.gdb.i386.avx feature.
6818 Set ymmh_register_names, num_ymm_regs, ymm0h_regnum and xcr0.
8d95cc3b 6819 (i386_gdbarch_init): Set xstateregset. Set xsave_xcr0_offset.
c131fcee
L
6820 Call set_gdbarch_register_name. Replace I386_SSE_NUM_REGS with
6821 I386_AVX_NUM_REGS. Set ymmh_register_names, ymm0h_regnum and
6822 num_ymm_regs. Add num_ymm_regs to set_gdbarch_num_pseudo_regs.
6823 Set ymm0_regnum.
6824 (_initialize_i386_tdep): Call initialize_tdesc_i386_avx.
6825
6826 * i386-tdep.h (gdbarch_tdep): Add xstateregset, ymm0_regnum,
6827 xcr0, xsave_xcr0_offset, ymm0h_regnum, ymmh_register_names and
6828 i386_ymm_type.
6829 (i386_regnum): Add I386_YMM0H_REGNUM, and I386_YMM7H_REGNUM.
6830 (I386_AVX_NUM_REGS): New.
6831 (i386_xmm_regnum_p): Likewise.
6832 (i386_ymm_regnum_p): Likewise.
6833 (i386_ymmh_regnum_p): Likewise.
6834
6835 * common/i386-xstate.h: New.
6836
98adf0f3
L
68372010-04-07 H.J. Lu <hongjiu.lu@intel.com>
6838
6839 * config/djgpp/fnchange.lst: Add x86 AVX XML files.
6840
6841 * features/Makefile (WHICH): Add i386/i386-avx,
6842 i386/i386-avx-linux, i386/x86-64-avx and i386/x86-64-avx-linux.
6843 (i386/i386-avx-expedite): New.
6844 (i386/i386-avx-linux-expedite): Likewise.
6845 (i386/x86-64-avx-expedite):Likewise.
6846 (i386/x86-64-avx-linux-expedite): Likewise.
6847 ($(outdir)/i386/i386-avx.dat): New dependency.
6848 ($(outdir)/i386/i386-avx-linux.dat): Likewise.
6849 ($(outdir)/i386/x86-avx-64.dat): Likewise.
6850 ($(outdir)/i386/x86-64-avx-linux.dat): Likewise.
6851
6852 * features/i386/32bit-avx.xml: New.
6853 * features/i386/64bit-avx.xml: Likewise.
6854 * features/i386/i386-avx-linux.c: Likewise.
6855 * features/i386/i386-avx-linux.xml: Likewise.
6856 * features/i386/i386-avx.c: Likewise.
6857 * features/i386/i386-avx.xml: Likewise.
6858 * features/i386/x86-64-avx-linux.c: Likewise.
6859 * features/i386/x86-64-avx-linux.xml: Likewise.
6860 * features/i386/x86-64-avx.c: Likewise.
6861 * features/i386/x86-64-avx.xml: Likewise.
6862 * regformats/i386/i386-avx-linux.dat: Likewise.
6863 * regformats/i386/i386-avx.dat: Likewise.
6864 * regformats/i386/x86-64-avx-linux.dat: Likewise.
6865 * regformats/i386/x86-64-avx.dat: Likewise.
6866
05159abe
DE
68672010-04-07 Doug Evans <dje@google.com>
6868
6869 * top.c (source_file_name): Make const char *.
6870 * top.h (source_file_name): Update.
6871 * cli/cli-script.c (source_cleanup_lines_args): Make old_file
6872 const char *.
6873 (script_from_file): Change `file' arg to const char *.
6874 * cli/cli-script.h (script_from_file): Update.
6875
96e39866
DE
68762010-04-06 Doug Evans <dje@google.com>
6877
6878 * cli/cli-cmds.c (source_command): Run cleanups.
6879
3149d8c1
SS
68802010-04-06 Stan Shebs <stan@codesourcery.com>
6881
6882 * defs.h (char_ptr): Move typedef here from...
6883 * ada-lang.c (char_ptr): Remove.
6884 * charset.c (char_ptr): Remove.
6885 * tracepoint.h (struct uploaded_string): Remove.
6886 (struct uploaded_tp): Use vectors for string arrays.
6887 * tracepoint.c (trace_save): Use vectors of actions.
6888 (parse_tracepoint_definition): Ditto.
6889 (get_uploaded_tp): Clear vectors.
6890 * breakpoint.c (create_tracepoint_from_upload): Use vectors.
6891 (next_cmd): Change to an int.
6892 (read_next_cmd): Use vector of command strings.
6893
4cc23ede
DE
68942010-04-06 Doug Evans <dje@google.com>
6895
6896 * top.h (source_script, cd_command): Delete.
6897 * main.c: #include "cli/cli-cmds.h"
6898
bd333fb7
KB
68992010-04-06 Kevin Buettner <kevinb@redhat.com>
6900
6901 * m32c-tdep.c (make_types): When calling `arch_type', pass size of
6902 type in bytes, not bits.
6903
ec8a089a
PM
69042010-04-06 Pierre Muller <muller@ics.u-strasbg.fr>
6905
6906 * stabsread.c (define_symbol): Add support for char
6907 and string constants.
6908
2244ba2e
PM
69092010-04-06 Pierre Muller <muller@ics.u-strasbg.fr>
6910
6911 Remove remaining "%ll" uses.
6912 * go32-nat.c (go32_pte_for_address): Replace "0x%llx" using
6913 hex_string call.
6914 * rs6000-nat.c (rs6000_ptrace64): Idem.
6915 * solib-pa64.c (pa64_current_sos): Idem.
6916 * solib-spu.c (spu_current_sos): Idem.
6917 * linux-nat.c (linux_nat_find_memory_regions): Replace "%lld" using
6918 plongest call.
6919 * nto-procfs.c (procfs_meminfo): Replace "0x%016llx" using
6920 phex (VAR, 8) call.
6921 * sh64-tdep.c (sh64_show_media_regs): Idem.
6922
fce3c1f0
SS
69232010-04-05 Stan Shebs <stan@codesourcery.com>
6924
6925 * tracepoint.c: Include gdbcore.h.
6926 (tfile_xfer_partial): Return partial results, also try reading
6927 from executable.
6928 (tfile_has_all_memory): New function.
6929 (init_tfile_ops): Use it.
6930
626ea16d
SDJ
69312010-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
6932
6933 PR gdb/10736:
6934 * xml-syscall.c (my_gdb_datadir): New variable to keep track of
6935 the changes in data-directory.
6936 (init_sysinfo): Reload the syscall XML file if the data-directory
6937 has changed.
6938
1f7ccab2
JK
69392010-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6940
6941 Code cleanup.
6942 * breakpoint.c (bpstat_stop_status): Use bpstat_causes_stop.
6943
d77f58be
SS
69442010-04-04 Stan Shebs <stan@codesourcery.com>
6945 Nathan Sidwell <nathan@codesourcery.com>
6946
6947 * breakpoint.c (breakpoint_1): Add filter argument, return number of
6948 breakpoints printed.
6949 (is_hardware_watchpoint): Make argument const.
6950 (is_watchpoint): Ditto.
6951 (is_tracepoint): Merge of tracepoint_type and breakpoint_is_tracepoint,
6952 use it everywhere.
6953 (breakpoints_info): Pass NULL to breakpoint_1.
6954 (maintenance_info_breakpoints): Ditto.
6955 (watchpoints_info): New function.
6956 (tracepoints_info): Use breakpoint_1 filter.
6957 (set_ignore_count): Warn that tracepoint ignore count will be ignored.
6958 (_initialize_breakpoint): Make "info watchpoints" its own command.
6959 * breakpoint.h (is_tracepoint): Rename from breakpoint_is_tracepoint.
6960 * mi/mi-cmd-break.c (mi_cmd_break_commands): Use is_tracepoint.
6961
af54718e
SS
69622010-04-04 Stan Shebs <stan@codesourcery.com>
6963
6964 * tracepoint.c (tfile_fetch_registers): Add fallback case.
6965
74d1f91e
JK
69662010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com>
6967
6968 * infcmd.c (run_command_1): Call proceed with regcache_read_pc address.
6969 * config/djgpp/fnchange.lst: Add translation for break-entry.exp.
6970
91d91ceb
JK
69712010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com>
6972
6973 * breakpoint.c (bpstat_find_step_resume_breakpoint): Remove.
6974 * breakpoint.h (bpstat_find_step_resume_breakpoint): Remove.
6975
60531b24
JK
69762010-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6977
6978 * dwarf2read.c (read_namespace_type): Use common "return set_die_type"
6979 code form.
6980
a3c4230a
HZ
69812010-04-02 Hui Zhu <teawater@gmail.com>
6982
6983 * i386-tdep.c (OT_DQUAD): New enum.
6984 (i386_process_record): Add code for MMX, 3DNow!, SSE, SSE2,
6985 SSE3, SSSE3 and SSE4.
6986
b15758fe
HZ
69872010-04-02 Hui Zhu <teawater@gmail.com>
6988
6989 * i386-tdep.c (i386_record_lea_modrm_addr): Remove useless
6990 "*addr = 0".
6991
afd02f27
PA
69922010-04-02 Pedro Alves <pedro@codesourcery.com>
6993
6994 * tracepoint.c (trace_dump_actions): New, factored out from
6995 trace_dump_command, and adjusted to recurse into while-stepping's
6996 action list.
6997 (trace_dump_command): Use it.
6998
5cea2a26
PA
69992010-04-02 Pedro Alves <pedro@codesourcery.com>
7000
7001 * breakpoint.h (struct counted_command_line): Moved definition to
7002 breakpoint.c, and forward declare.
7003 (breakpoint_commands): Declare.
7004 * breakpoint.c (struct counted_command_line): Moved here.
7005 (breakpoint_commands): New.
7006 * tracepoint.c (encode_actions): Use breakpoint_commands.
7007 * remote.c (remote_download_tracepoint): Ditto.
7008
7c47795c
L
70092010-04-01 H.J. Lu <hongjiu.lu@intel.com>
7010
7011 * remote.c (remote_parse_stop_reply): Use hex_string instead
7012 of phex_nz for error.
7013
fff87407
SS
70142010-04-01 Stan Shebs <stan@codesourcery.com>
7015 Nathan Sidwell <nathan@codesourcery.com>
7016
7017 * tracepoint.h (enum actionline_type): Remove.
7018 (validate_actionline): Change return to void.
7019 * tracepoint.c (report_agent_reqs_errors): New function.
7020 (validate_actionline): Call it, change return to void, report errors
7021 more consistently.
7022 (collect_symbol): Call report_agent_reqs_errors.
7023 (encode_actions_1): Ditto.
7024 (encode_actions): Don't expect a result from validate_actionline.
7025
615bcdef
SS
70262010-04-01 Stan Shebs <stan@codesourcery.com>
7027
7028 * tracepoint.c (trace_start_command): Confirm if trace is running.
7029 (trace_stop_command): Error if trace not running.
7030
fe01d668
L
70312010-04-01 H.J. Lu <hongjiu.lu@intel.com>
7032
7033 * amd64-tdep.c (amd64_byte_names): Add "ah", "bh", "ch", "dh".
7034 (AMD64_NUM_LOWER_BYTE_REGS): New.
7035 (amd64_pseudo_register_read): Handle "ah", "bh", "ch", "dh".
7036 (amd64_pseudo_register_write): Likewise.
7037 (amd64_init_abi): Set num_byte_regs to 20.
7038
86b17b60
PA
70392010-04-01 Pedro Alves <pedro@codesourcery.com>
7040
7041 * breakpoint.c (multi_start, multi_end, last_was_multi): Delete.
7042 (prev_breakpoint_count): New.
7043 (set_breakpoint_count): Adjust.
7044 (rbreak_start_breakpoint_count): New.
7045 (start_rbreak_breakpoints): Adjust.
7046 (end_rbreak_breakpoints): Adjust.
7047 (struct commands_info) <arg>: New field.
7048 (do_map_commands_command): Tweak output to include breakpoint spec
7049 range.
7050 (commands_command_1): Adjust. Avoid setting an xfree cleanup if
7051 ARG was empty on entry. Set INFO's arg.
7052 (create_breakpoint): Adjust.
7053
7054 * NEWS: Clarify `commands' changes.
7055
2c58c0a9
PA
70562010-04-01 Pedro Alves <pedro@codesourcery.com>
7057
7058 * tracepoint.c: Include stack.h.
7059 (struct add_local_symbols_data): New.
7060 (do_collect_symbol): New.
7061 (add_local_symbols): Rewrite using iterate_over_block_arg_vars and
7062 iterate_over_block_local_vars.
7063 * stack.c (print_block_frame_locals): Rewrite as ...
7064 (iterate_over_block_locals): ... this. Take a callback function
7065 pointer and generic data pointer, and call that instead of
7066 print_variable_and_value.
7067 (struct print_variable_and_value_data): New.
7068 (do_print_variable_and_value): New.
7069 (iterate_over_block_local_vars): New, abstracted out from
7070 print_frame_local_vars.
7071 (print_frame_local_vars): Rewrite using
7072 iterate_over_block_local_vars.
7073 (iterate_over_block_arg_vars): New, abstracted out from
7074 print_frame_arg_vars.
7075 (print_frame_arg_vars): Rewrite using iterate_over_block_arg_vars.
7076 * stack.h (iterate_over_block_arg_local_vars_cb): New typedef.
7077 (iterate_over_block_arg_vars, iterate_over_block_local_vars): Declare.
7078
d476da0e
RE
70792010-03-31 Richard Earnshaw <rearnsha@arm.com>
7080
7081 * arm-tdep.c (thumb_get_next_pc_raw): Correctly detect TBH
8d95cc3b 7082 instructions. Use the PC+4 if the base of the TBB or TBH is the
d476da0e
RE
7083 PC register.
7084
8072405b
JK
70852010-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
7086
7087 Fix crash on reading wrong function declaration DWARF.
7088 * dwarf2read.c (read_subroutine_type): New variable void_type.
7089 Pre-fill all TYPE_FIELD_TYPEs. Move nparams and iparams initialization
7090 more close to their use.
7091
8bf6485c
SS
70922010-03-31 Stan Shebs <stan@codesourcery.com>
7093
7094 * breakpoint.c (tracepoint_save_command): Include variables,
8d95cc3b 7095 conditionals, tracepoint types, and default-collect.
8bf6485c
SS
7096 * tracepoint.c (save_trace_state_variables): New function.
7097 * tracepoint.h (save_trace_state_variables): Declare it.
7098
2ae2a0b7
PM
70992010-03-31 Pierre Muller <muller@ics.u-strasbg.fr>
7100
1a161f72 7101 * remote.c (end_thread): ARI fix: Use xstrdup instead of strdup.
2ae2a0b7 7102
86ffb506
KS
71032010-03-30 Keith Seitz <keiths@redhat.com>
7104
7105 * c-typeprint.c (c_type_print_args): Don't print "void"
7106 for java, regardless of whether it is TYPE_PROTOTYPED.
7107 Use the passed-in language instead of current_language.
7108 (c_type_print_varspec_suffix): Use current_language instead
7109 of assuming language_c.
7110 * jv-typeprint.c (java_type_print_base): (bz 9320) Strip off
7111 any return type specifier from the physname.
7112
956c2c8b
PA
71132010-03-30 Pedro Alves <pedro@codesourcery.com>
7114
7115 * tui/tui-interp.c (tui_is_toplevel): New.
7116 (tui_init): Set it.
7117 (tui_allowed_p): New.
7118 * tui/tui.c (tui_enable): Check if the TUI is allowed before
7119 enabling it.
7120 * tui/tui.h (tui_allowed_p): Declare.
7121
98e5a990
TT
71222010-03-30 Ozkan Sezer <sezeroz@gmail.com>
7123
7124 * serial.h: Include winsock2.h before windows.h.
7125
c8d5aac9
L
71262010-03-30 H.J. Lu <hongjiu.lu@intel.com>
7127
7128 * NEWS: Mention xmlRegisters= in qSupported packet.
7129
7130 * i386-tdep.c: Include "remote.h".
7131 (_initialize_i386_tdep): Call register_remote_support_xml.
7132
7133 * remote.c (remote_support_xml): New.
7134 (register_remote_support_xml): Likewise.
7135 (remote_query_supported_append): Likewise.
7136 (remote_query_supported): Support remote_support_xml.
7137
7138 * remote.h (register_remote_support_xml): New.
7139
76a2b958
SS
71402010-03-29 Stan Shebs <stan@codesourcery.com>
7141
42e08e69
SS
7142 * tracepoint.c (trace_find_line_command): Remove dead code.
7143
409873ef
SS
7144 * tracepoint.h (struct uploaded_string): New struct.
7145 (struct uploaded_tp): New fields for source strings.
7146 * breakpoint.c (this_utp, next_cmd): New globals.
7147 (read_uploaded_action): New function.
7148 (create_tracepoint_from_upload): Fill in more parts
7149 of a tracepoint.
7150 * tracepoint.c (encode_source_string): New function.
7151 (trace_save): Write out source strings, fix error checks.
7152 (parse_tracepoint_definition): Add source string parsing.
7153 * remote.c (PACKET_TracepointSource): New packet type.
7154 (remote_download_command_source): New function.
7155 (remote_download_tracepoint): Download source pieces also.
7156 (_initialize_remote): Add packet config command.
7157
a0405854
SS
7158 * tracepoint.c (collect_symbol): Send LOC_UNRESOLVED symbols to
7159 expression handler.
7160
76a2b958
SS
7161 * tracepoint.c (start_tracing): Check tracepoints before sending
7162 commands to target, don't start if all tracepoints disabled.
7163
d350db38
PA
71642010-03-28 Pedro Alves <pedro@codesourcery.com>
7165
12f2d601 7166 * cli/cli-script.c (process_next_line): Handle 'stepping'.
d350db38 7167
8b9b7ef8
SS
71682010-03-26 Stan Shebs <stan@codesourcery.com>
7169
7170 * tracepoint.c (disconnect_or_stop_tracing): Get out of tfind mode.
7171
9766ced4
SS
71722010-03-26 Tom Tromey <tromey@redhat.com>
7173
7174 * breakpoint.c (commands_command_1): Duplicate 'arg'.
7175
059acae7
UW
71762010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
7177
7178 * breakpoint.c (expand_line_sal_maybe): Always call skip_prologue_sal.
7179 (skip_prologue_sal): Remove local definition.
7180 (resolve_sal_pc): Remove now unnecessary code.
7181 * linespec.c (minsym_found): Call skip_prologue_sal.
7182 * symtab.c (find_function_start_pc): Remove.
7183 (find_function_start_sal): Extract prologue skipping into ...
7184 (skip_prologue_sal): ... this new function. Handle code both
7185 with and without debug info. Respect SAL's explicit_pc and
7186 explicit_line flags. Inline old find_function_start_pc.
7187 * symtab.h (find_function_start_pc): Remove.
7188 (skip_prologue_sal): Add prototype.
7189
4a811a97
UW
71902010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
7191
7192 * dwarf2read.c (read_func_scope): Also scan specification DIEs
7193 for DW_TAG_imported_module children.
7194
907af001
UW
71952010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
7196
7197 * dwarf2read.c (dwarf2_name): Work around GCC bugzilla debug/41828 by
7198 ignoring spurious DW_AT_name attributes for unnamed structs or unions.
7199 * completer.c (add_struct_fields): Fix inverted logic.
7200
dde2d684
UW
72012010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
7202
7203 * breakpoint.c (bpstat_clear_actions): Reset bs->commands_left.
7204
a609a0c8
PA
72052010-03-26 Pedro Alves <pedro@codesourcery.com>
7206
7207 * tracepoint.c (current_trace_status): Don't make sure error_desc
7208 is non-NULL here.
7209 (parse_trace_status): Release a previous error_desc string, and
7210 set it to NULL by default. If stop reason is tracepoint_error,
7211 make sure error_desc is not left NULL.
7212
610197fd
PA
72132010-03-26 Pedro Alves <pedro@codesourcery.com>
7214
7215 * tracepoint.c (trace_save): Remove X from tracepoint error
7216 description.
7217
99b5e152
PA
72182010-03-26 Pedro Alves <pedro@codesourcery.com>
7219
7220 * tracepoint.c (parse_trace_status): Don't allow plain strings in
7221 the terror description. Don't expect an X prefix.
7222
6c28cbf2
SS
72232010-03-25 Stan Shebs <stan@codesourcery.com>
7224
7225 * tracepoint.h (trace_stop_reason): Add tracepoint_error.
7226 (struct trace_status): New field error_desc.
7227 * tracepoint.c (stop_reason_names): Add terror.
7228 (current_trace_status): Ensure non-NULL error description.
7229 (trace_status_command): Add error report.
7230 (trace_status_mi): Ditto.
7231 (trace_save): Add special case for error description.
7232 (parse_trace_status): Add case for errors.
7233
418835cc
KS
72342010-03-25 Keith Seitz <keiths@redhat.com>
7235
7236 * dwarf2read.c (read_subroutine_type): If the compilation unit
7237 language is Java, mark any formal parameter named "this" as
7238 artificial (GCC/43521).
7239 (dwarf2_name): Add special handling for Java constructors.
7240
aa7d318d
TT
72412010-03-25 Tom Tromey <tromey@redhat.com>
7242
7243 PR gdb/11327, PR gdb/11328, PR breakpoints/11368:
7244 * infrun.c (handle_inferior_event): Change initialization of
7245 stop_stack_dummy.
7246 (handle_inferior_event): Change assignment to stop_stack_dummy.
7247 (normal_stop): Update use of stop_stack_dummy.
7248 (struct inferior_status) <stop_stack_dummy>: Change type.
7249 * inferior.h (stop_stack_dummy): Update.
7250 * infcmd.c (stop_stack_dummy): Change type.
7251 * infcall.c (cleanup_delete_std_terminate_breakpoint): New
7252 function.
7253 (call_function_by_hand): Call set_std_terminate_breakpoint.
7254 Rewrite std::terminate handling.
7255 * breakpoint.h (enum bptype) <bp_std_terminate,
7256 bp_std_terminate_master>: New.
7257 (enum stop_stack_kind): New.
7258 (struct bpstat_what) <call_dummy>: Change type.
7259 (set_std_terminate_breakpoint, delete_std_terminate_breakpoint):
7260 Declare.
7261 * breakpoint.c (create_std_terminate_master_breakpoint): New
7262 function.
7263 (update_breakpoints_after_exec): Handle bp_std_terminate_master.
7264 Call create_std_terminate_master_breakpoint.
7265 (print_it_typical): Handle new breakpoint kinds.
7266 (bpstat_stop_status): Handle bp_std_terminate_master.
7267 (bpstat_what): Correctly set call_dummy field. Handle
7268 bp_std_terminate_master and bp_std_terminate.
7269 (print_one_breakpoint_location): Update.
7270 (allocate_bp_location): Update.
7271 (set_std_terminate_breakpoint): New function.
7272 (delete_std_terminate_breakpoint): Likewise.
7273 (create_thread_event_breakpoint): Update.
7274 (delete_command): Update.
7275 (breakpoint_re_set_one): Update.
7276 (breakpoint_re_set): Call create_std_terminate_master_breakpoint.
7277
82ccf5a5
JK
72782010-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7279
7280 * symfile.c (build_section_addr_info_from_bfd): New.
7281 (build_section_addr_info_from_objfile): Base it on
7282 build_section_addr_info_from_bfd.
7283 (addrs_section_compar, addrs_section_sort): New.
7284 (addr_info_make_relative): New variables my_cleanup, abfd_addrs,
7285 addrs_sorted, abfd_addrs_sorted and addrs_to_abfd_addrs. Build
7286 addrs_to_abfd_addrs. Use it for recalculating ADDRS.
7287
737c4c52
MS
72882010-03-24 Michael Snyder <msnyder@localhost.localdomain>
7289
8d95cc3b 7290 * elfread.c (find_separate_debug_file_by_buildid):
737c4c52
MS
7291 Remove unused local variable.
7292
95a42b64
TT
72932010-03-24 Tom Tromey <tromey@redhat.com>
7294
7295 PR breakpoints/9352:
7296 * NEWS: Mention changes to `commands' and `rbreak'.
7297 * symtab.c (do_end_rbreak_breakpoints): New function.
7298 (rbreak_command): Call start_rbreak_breakpoints; arrange to call
7299 end_rbreak_breakpoints.
7300 * breakpoint.c (breakpoint_count, tracepoint_count): Now static.
7301 (set_breakpoint_count): Likewise. Clear last_was_multi.
7302 (multi_start, multi_end, last_was_multi): New globals.
7303 (start_rbreak_breakpoints, end_rbreak_breakpoints): New
7304 functions.
7305 (struct commands_info): New
7306 (do_map_commands_command): New function.
7307 (commands_command_1): New function.
7308 (commands_command): Use it.
7309 (commands_from_control_command): Likewise.
7310 (do_delete_breakpoint): New function.
7311 (delete_command): Use it.
7312 (map_breakpoint_numbers): Add 'data' argument. Pass to callback.
7313 (do_map_disable_breakpoint): New function.
7314 (disable_command): Use it.
7315 (do_map_enable_breakpoint): New function.
7316 (enable_command): Use it.
7317 (enable_once_breakpoint): Add argument.
7318 (enable_once_command): Update.
7319 (enable_delete_breakpoint): Add argument.
7320 (enable_delete_command): Update.
7321 (break_command_really): Set last_was_multi when needed.
7322 (check_tracepoint_command): Fix formatting.
7323 (validate_commands_for_breakpoint): New function.
7324 (breakpoint_set_commands): Use it.
7325 (tracepoint_save_command): Update.
7326 * breakpoint.h (start_rbreak_breakpoints, end_rbreak_breakpoints):
7327 Declare.
7328
9add0f1b
TT
73292010-03-24 Tom Tromey <tromey@redhat.com>
7330
7331 * breakpoint.h (struct counted_command_line): New struct.
7332 (struct breakpoint) <commands>: Change type.
7333 (struct bpstats) <commands>: Change type.
7334 <commands_left>: New field.
7335 * breakpoint.c (alloc_counted_command_line): New function.
7336 (incref_counted_command_line): Likewise.
7337 (decref_counted_command_line): Likewise.
7338 (do_cleanup_counted_command_line): Likewise.
7339 (make_cleanup_decref_counted_command_line): Likewise.
7340 (breakpoint_set_commands): Use decref_counted_command_line and
7341 alloc_counted_command_line.
7342 (commands_command): Don't error if breakpoint commands are
7343 executing.
7344 (commands_from_control_command): Likewise.
7345 (bpstat_free): Update.
7346 (bpstat_copy): Likewise.
7347 (bpstat_clear_actions): Likewise.
7348 (bpstat_do_actions_1): Likewise.
7349 (bpstat_stop_status): Likewise.
7350 (print_one_breakpoint_location): Likewise.
7351 (delete_breakpoint): Likewise.
7352 (bpstat_alloc): Initialize new field.
7353 (tracepoint_save_command): Update.
7354 * tracepoint.c (encode_actions): Update.
7355 (trace_dump_command): Update.
7356
a6c727b2
DJ
73572010-03-24 Daniel Jacobowitz <dan@codesourcery.com>
7358
7359 * dwarf2-frame.c (dwarf2_frame_find_quirks): Use producer_is_realview.
7360 * dwarf2read.c (load_full_comp_unit): Read DW_AT_producer.
7361 (read_structure_type): For RealView, set TYPE_STUB on structures with
7362 no byte size and no children.
7363 (read_subroutine_type): Mark functions as prototyped by default.
7364 * symtab.c (producer_is_realview): New function.
7365 * symtab.h (expand_line_sal): Fix declaration formatting.
7366 (producer_is_realview): Declare.
7367
0d39a070
DJ
73682010-03-24 Daniel Jacobowitz <dan@codesourcery.com>
7369
7370 * arm-tdep.c (skip_prologue_function): New function.
7371 (submask, bit, bits, sbits, BranchDest): Move higher in the file.
7372 (thumb_analyze_prologue): Document return value. Recognize more
7373 Thumb instructions, skippable calls, and some Thumb-2 instructions.
7374 Add debug output.
7375 (arm_skip_prologue): Remove call dummy check. Check the prologue
7376 for non-GNU compilers.
7377 (arm_instruction_changes_pc): New function.
7378 (arm_analyze_prologue): New function, broken out from
7379 arm_scan_prologue. Recognize more ARM instructions and skippable
7380 calls. Update comments. Handle NULL cache. Return the address
7381 of the first unrecognized instruction. Do not skip past other
7382 instructions which change control flow. Add debug output.
7383 (arm_scan_prologue): Use arm_analyze_prologue.
7384 (ARM_PC_32): Delete.
7385 (shifted_reg_val): Simplify ARM_PC_32 check.
7386
4baf5cf4
VP
73872010-03-24 Vladimir Prus <vladimir@codesourcery.com>
7388
7389 * tracepoint.c (tvariables_info_1): Actually compute
7390 the number of rows in the result.
7391
4a5e7a5b
PA
73922010-03-24 Pedro Alves <pedro@codesourcery.com>
7393
7394 * remote.c (crc32): Constify `buf' parameter.
7395 (remote_verify_memory): New, abstracted out from...
7396 (compare_sections_command): ... this. Remove hardcoded target
7397 checks.
7398 (init_remote_ops): Install remote_verify_memory.
7399 * target.c (target_verify_memory): New.
7400 * target.h (struct target_ops) <to_verify_memory>: New field.
7401 (target_verify_memory): Declare.
7402
011aacb0
VP
74032010-03-24 Vladimir Prus <vladimir@codesourcery.com>
7404
7405 Implement -trace-save.
7406
7407 * mi-cmds.h (mi_cmds_trace_save): Declare.
7408 * mi-cmds.c (mi_cmds): Register -trace-save.
7409 * mi/mi-main.c (mi_cmd_trace_save): New.
7410 * remote.c (remote_save_trace_data): Take const parameter.
7411 * target.h (struct target_ops::to_save_trace_data): Take
7412 const parameter.
7413 * target.c (update_current_target): Adjust to the above.
7414 * tracepoint.c (trave_save): New, extracted from
7415 (trace_save_command): ...this.
7416 (tfile_trace_find): Remove message that is unnecessary now
7417 that 'tfind' reports found frame.
7418 * tracepoint.h (trace_save): Declare.
7419
f197e0f1
VP
74202010-03-24 Vladimir Prus <vladimir@codesourcery.com>
7421
7422 Implement -trace-find.
7423
7424 * mi/mi-cmds.c (mi_cmds): Register -trace-find.
7425 * mi/mi-cmds.h (mi_cmd_trace_find): Declare.
7426 * mi/mi-main.c (mi_cmd_trace_find): New.
7427 * target.h (struct target_ops): Document to_trace_find.
7428 * tracepoint.h (tfind_1): Declare.
7429 * tracepoint.c (finish_tfind_command): Rename to...
7430 (tfind_1): ...this.
7431 * remote.c (remote_trace_find): Return -1 if target say
7432 there's no frame. Improve error diagnostics.
7433
40e1c229
VP
74342010-03-24 Vladimir Prus <vladimir@codesourcery.com>
7435
7436 -trace-define-variable and -trace-list-variables.
7437
7438 * tracepoint.c (create_trace_state_variable): Make
7439 private copy of name, as opposed to assuming the
7440 pointer lives forever.
7441 (tvariables_info_1): New.
7442 (tvariables_info): Use the above.
7443 * tracepoint.h (create_trace_state_variable, tvariables_info_1):
7444 Declare.
7445 * mi/mi-cmds.c (mi_cmds): Register -trace-define-variable
7446 and -trace-list-variables.
7447 * mi/mi-cmds.h (mi_cmd_trace_define_variable)
7448 (mi_cmd_trace_list_variables): New.
7449 * mi/mi-main.c (mi_cmd_trace_define_variable)
7450 (mi_cmd_trace_list_variables): New.
7451
9b4c786c
VP
74522010-03-24 Vladimir Prus <vladimir@codesourcery.com>
7453
7454 Implement -break-passcount.
7455
7456 * mi/mi-cmd-break.c (mi_cmd_break_passcount): New.
7457 * mi/mi-cmds.c (mi_cmds): Register -break-passcount.
7458 * mi/mi-cmds.h (mi_cmd_break_passcount): Declare.
7459
f224b49d
VP
74602010-03-24 Vladimir Prus <vladimir@codesourcery.com>
7461
7462 -trace-start/-trace-end/-trace-status.
7463
7464 * mi/mi-cmds.c (mi_cmds): Register -trace-start, -trace-status
7465 and -trace-stop.
7466 * mi/mi-cmds.h (mi_cmd_trace_start, mi_cmd_trace_status)
7467 (mi_cmd_trace_stop): Declare.
7468 * mi/mi-main.c (mi_cmd_trace_start, mi_cmd_trace_status)
7469 (mi_cmd_trace_stop): New.
7470 * tracepoint.c (start_tracing): New, extracted from...
7471 (trace_start_command): ...this.
7472 (trace_status_mi): New.
7473 * tracepoint.h (struct trace_status): Document
7474 stopping_tracepoint.
7475 (start_tracing, stop_tracing, trace_status_mi): Declare.
7476
6534d786
VP
74772010-03-24 Vladimir Prus <vladimir@codesourcery.com>
7478
7479 Implement creating tracepoints with -break-insert.
7480
7481 * mi/mi-cmd-break.c (mi_cmd_break_insert): Handle -a
7482 to mean that tracepoint should be created.
7483
51661e93
VP
74842010-03-24 Vladimir Prus <vladimir@codesourcery.com>
7485
7486 * breakpoint.c (check_no_tracepoint_commands): Use
7487 current spelling of 'teval'.
7488
a7bdde9e
VP
74892010-03-24 Vladimir Prus <vladimir@codesourcery.com>
7490
7491 Unify actions and commands
7492
7493 * defs.h (read_command_lines, read_command_lines_1): New
7494 parameters validator and closure.
7495 * tracepoint.h (struct action_line): Remove.
7496 * breakpoint.h (struct breakpoint): Remove the 'actions'
7497 field.
7498 * defs.h (enum command_control_type): New value
7499 while_stepping_control.
7500 (struct command_line): Add comments.
7501 * breakpoint.c (breakoint_is_tracepoint): New.
7502 (breakpoint_set_commands): For tracepoints,
7503 verify the commands are permissible.
7504 (check_tracepoint_commands): New.
7505 (commands_command): Require that each new line is validated using
7506 check_tracepoint_command, if we set commands for a tracepoint.
7507 (create_tracepoint_from_upload): Likewise.
7508 (print_one_breakpoint_location): Remove the code to print
7509 actions specifically.
7510 (tracepoint_save_command): Relay to print_command_lines.
7511 * cli/cli-script.c (process_next_line): New parameters validator
7512 and closure. Handle 'while-stepping'. Call validator if not null.
7513 (read_command_lines, read_command_lines1): Likewise.
7514 (recurse_read_control_structure): New parameters validator and
7515 closure. Handle while_stepping_control.
7516 (print_command_lines): Handle while-stepping.
7517 (get_command_line, define_command, document_command): Adjust.
7518 * remote.c (remote_download_tracepoint): Adjust.
7519 * tracepoint.c (make_cleanup_free_actions, read_actions)
7520 (free_actions, do_free_actions_cleanup): Remove.
7521 (trace_actions_command): Use read_command_lines.
7522 (validate_actionline): Use error in one place.
7523 (encode_actions_1): New, extracted from...
7524 (encode_actions): ...this. Also use cleanups for exception
7525 safety.
7526 (trace_dump_command): Adjust.
7527 * mi/mi-cmd-break (mi_cmd_break_commands): Validate commands if
7528 it's tracepoint.
7529
64e3cf3d
MF
75302010-03-23 Mike Frysinger <vapier@gentoo.org>
7531
7532 * Makefile.in (OPCODES_CFLAGS): Add -I$(OPCODES_SRC)/..
7533
52e9fde8
SS
75342010-03-22 Stan Shebs <stan@codesourcery.com>
7535
7536 * value.c (value_static_field): Be lazy about the field's value.
7537
508ccb1f
TT
75382010-03-22 Reid Kleckner <reid@kleckner.net>
7539
7540 PR gdb/11094
7541 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): Add
7542 bp_jit_event.
7543 (disable_breakpoints_in_shlibs): Likewise.
7544
acebe513
UW
75452010-03-22 Ulrich Weigand <uweigand@de.ibm.com>
7546
7547 * dwarf2read.c (partial_die_parent_scope): Work around buggy
7548 GCC 4.1 debug info generation (GCC PR c++/28460).
7549 (determine_prefix): Likewise.
7550
957b8b5a
DJ
75512010-03-20 Daniel Jacobowitz <dan@codesourcery.com>
7552
7553 * tui/tui-disasm.c (tui_get_begin_asm_address): Default to
7554 get_current_arch.
7555 * tui/tui-layout.c (extract_display_start_addr): Likewise.
7556
3b11a015
SS
75572010-03-19 Stan Shebs <stan@codesourcery.com>
7558
7559 * ax-gdb.c (gen_fetch): Handle bool.
7560 (gen_usual_unary): Ditto.
7561 (gen_cast): Ditto.
7562 (gen_equal): New function.
7563 (gen_less): New function.
7564 (gen_expr_binop_rest): Call them, also return integer type from
7565 logical operations.
7566 (gen_expr): Ditto.
7567
20781792
TT
75682010-03-19 Tom Tromey <tromey@redhat.com>
7569
7570 * jv-lang.c (jv_dynamics_objfile_data_key)
7571 (jv_type_objfile_data_key): New globals.
7572 (class_symtab): Move earlier.
7573 (jv_per_objfile_free): New function.
7574 (get_dynamics_objfile): Call set_objfile_data. Add 'gdbarch'
7575 parameter.
7576 Remove ancient #if 1.
7577 (add_class_symbol): Remove redundant declaration.
7578 (java_lookup_class): Use alloc_type, not alloc_type_arch.
7579 (java_link_class_type): Mark as static. Update.
7580 (jv_clear_object_type): New function.
7581 (set_java_object_type): Likewise.
7582 (get_java_object_type): Use set_java_object_type.
7583 (is_object_type): Likewise.
7584 (_initialize_java_language): Register new objfile keys.
7585 (get_java_class_symtab): Add 'gdbarch' parameter.
7586 (add_class_symtab_symbol): Update.
7587 (type_from_class): Update.
7588
cf3e25ca
SS
75892010-03-19 Stan Shebs <stan@codesourcery.com>
7590
8d95cc3b 7591 * ax-general.c (ax_const_l): Fix a sizing bug.
cf3e25ca 7592
f1ae44c9 75932010-03-18 Joel Brobecker <brobecker@adacore.com>
7594
7595 GDB 7.1 released.
7596
4daf5ac0
SS
75972010-03-18 Stan Shebs <stan@codesourcery.com>
7598 Pedro Alves <pedro@codesourcery.com>
7599
7600 * target.h (struct target_ops): New method
7601 to_set_circular_trace_buffer.
7602 (target_set_circular_trace_buffer): New macro.
7603 * target.c (update_current_target): Add
7604 to_set_circular_trace_buffer, fix to_set_disconnected_tracing
7605 default behavior.
7606 * remote.c (remote_set_circular_trace_buffer): New function.
7607 (init_remote_ops): Add it to vector.
7608 * tracepoint.h (struct trace_status): New field traceframes_created,
7609 change buffer_size and buffer_free to int.
7610 * tracepoint.c (circular_trace_buffer): New global.
7611 (start_tracing): Send values of disconnected tracing and circular
7612 trace buffer settings.
7613 (set_circular_trace_buffer): New function.
7614 (parse_trace_state): Handle total space and frames created.
7615 (trace_status_command): Display total space and total frames
7616 created.
7617 (trace_save): Write out new status values.
7618 (parse_trace_status): Set traceframe_count, traceframes_created,
7619 buffer_free and buffer_size to -1 by default.
7620 (_initialize_tracepoint): New setshow for circular-trace-buffer.
7621 * NEWS: Mention the circular trace buffer option.
7622
40c549d6
TT
76232010-03-18 Tom Tromey <tromey@redhat.com>
7624
7625 * infcmd.c (finish_command_continuation): Wrap print_return_value
7626 in TRY_CATCH.
7627
e8d05480
JB
76282010-03-18 Joel Brobecker <brobecker@adacore.com>
7629
7630 * dwarf2read.c (add_partial_subprogram): Make sure the subprogram
7631 DIE has a name before creating the associated partial symbol.
7632 (read_func_scope): Emit a complaint if the subprogram does not
7633 have a name or when we can't extract the subprogram PC bounds.
7634
441b986a
UW
76352010-03-18 Ulrich Weigand <uweigand@de.ibm.com>
7636
7637 * mi/mi-main.c (mi_cmd_list_thread_groups): Use get_current_arch
7638 instead of selected frame architecture.
7639
4247603b
PA
76402010-03-18 Pedro Alves <pedro@codesourcery.com>
7641
7642 * infcmd.c (until_command): Use ERROR_NO_INFERIOR. Ensure there's
7643 a valid selected thread, and that it is not running.
7644 (advance_command): Ditto.
7645 (finish_command): Ditto.
7646
400c6af0
SS
76472010-03-17 Stan Shebs <stan@codesourcery.com>
7648
3a96536b
SS
7649 * ax-gdb.c (require_rvalue): Disallow non-scalars.
7650
573cda03
SS
7651 * infcall.c: Include tracepoint.h.
7652 (call_function_by_hand): Disallow calls in tfind mode.
7653 * infcmd.c: Include tracepoint.h.
7654 (ensure_not_tfind_mode): New function.
7655 (continue_1): Call it.
7656 (step_1) Ditto.
7657 (jump_command): Ditto.
7658 (signal_command): Ditto.
7659 (advance_command): Ditto.
7660 (until_command): Ditto.
7661 (finish_command): Ditto.
7662 * tracepoint.h (disconnect_or_stop_tracing): Declare.
7663
400c6af0
SS
7664 * ax-gdb.h (struct axs_value): New field optimized_out.
7665 (gen_trace_for_var): Add gdbarch argument.
7666 * ax-gdb.c (gen_trace_static_fields): New function.
7667 (gen_traced_pop): Call it, add gdbarch argument.
7668 (gen_trace_for_expr): Update call to it.
7669 (gen_trace_for_var): Ditto, and report optimized-out variables.
7670 (gen_struct_ref_recursive): Check for optimized-out value.
7671 (gen_struct_elt_for_reference): Ditto.
7672 (gen_static_field): Pass gdbarch instead of expression, assume
7673 optimization if field not found.
7674 (gen_var_ref): Set the optimized_out flag.
7675 (gen_expr): Error on optimized-out variable.
7676 * tracepoint.c (collect_symbol): Handle struct-valued vars as
7677 expressions, skip optimized-out variables with computed locations.
7678 * dwarf2loc.c (dwarf2_tracepoint_var_ref): Flag instead of
7679 erroring out if location expression missing.
7680 (loclist_tracepoint_var_ref): Don't error out here.
7681
a3b2a86b
TT
76822010-03-17 Tom Tromey <tromey@redhat.com>
7683
7684 * dwarf2read.c (dwarf2_get_section_info): Handle case where no
7685 DWARF data is available.
7686
38963c97
DJ
76872010-03-17 Daniel Jacobowitz <dan@codesourcery.com>
7688
7689 * symfile.c (generic_load): Reset breakpoints after loading.
7690
ddabfc73
TT
76912010-03-17 Tom Tromey <tromey@redhat.com>
7692
7693 * linux-nat.c (linux_nat_detach): Check debug_linux_nat.
7694
d8c09fb5
JK
76952010-03-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7696
7697 * spu-tdep.c (spu_catch_start): Replace set_breakpoint call with the
7698 create_breakpoint call, adjust the parameters.
7699
bbb0eef6
JK
77002010-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7701 Chandru <chandru@in.ibm.com>
7702
7703 * dwarf2read.c (read_subrange_type): Set TYPE_HIGH_BOUND_UNDEFINED.
7704 * valarith.c (value_subscripted_rvalue): Suppress error if
7705 TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED.
7706
46956e39
HZ
77072010-03-16 Holger Hans Peter Freyther <zecke@selfish.org>
7708
7709 * linux-record.c (record_linux_msghdr): Remove unintended semicolons.
7710
b8d088ac
JB
77112010-03-16 Joel Brobecker <brobecker@adacore.com>
7712
7713 * ada-tasks.c (task_command_1): Check that the task ptid is valid
7714 before doing the associated thread switch.
7715
322be962
DJ
77162010-03-16 Daniel Jacobowitz <dan@codesourcery.com>
7717
7718 * MAINTAINERS: Update my email address.
7719
8cdf0e15
VP
77202010-03-16 Vladimir Prus <vladimir@codesourcery.com>
7721
7722 Simplify MI breakpoint setting.
7723
7724 * breakpoint.c (break_command_really): Make nonstatic and
7725 rename to...
7726 (create_breakpoint): ...this. Rename prior function by this name
7727 to...
7728 (create_breakpoint_sal): ...this.
7729 (create_breakpoints): Rename to...
7730 (create_breakpoints_sal): ...this.
7731 (set_breakpoint): Remove.
7732 * breakpoint.h: Adjust to above changes.
7733 * mi/mi-cmd-break.c (mi_cmd_break_insert): Simplify.
7734
b6e7192f
SS
77352010-03-15 Stan Shebs <stan@codesourcery.com>
7736
7737 * ax-gdb.c: Include cp-support.h.
7738 (find_field): Remove.
7739 (gen_primitive_field): New function.
7740 (gen_struct_ref_recursive): New function.
7741 (gen_struct_ref): Rewrite to call gen_struct_ref_recursive instead
7742 of find_field.
7743 (gen_static_field): New function.
7744 (gen_struct_elt_for_reference): New.
7745 (gen_namespace_elt): New.
7746 (gen_maybe_namespace_elt): New.
7747 (gen_aggregate_elt_ref): New.
7748 (gen_expr): Add OP_SCOPE, display opcode name in error message.
7749
1054b214
TT
77502010-03-15 Tom Tromey <tromey@redhat.com>
7751
7752 * dwarf2read.c (die_needs_namespace): Also return 0 for
7753 DW_TAG_subprogram.
7754
13387711
SW
77552010-03-15 Sami Wagiaalla <swagiaal@redhat.com>
7756
7757 PR c++/7936:
7758 * cp-support.h: Added char *declaration element to using_direct
7759 data struct.
7760 (cp_add_using): Added char *declaration argument.
7761 (cp_add_using_directive): Ditto.
7762 (cp_lookup_symbol_imports): made extern.
7763 * cp-namespace.c: Updated with the above changes.
7764 * dwarf2read.c (read_import_statement): Ditto.
7765 (read_namespace): Ditto.
7766 (read_import_statement): Support import declarations.
7767 * cp-namespace.c (cp_lookup_symbol_imports): Check for imported
7768 declarations.
7769 Added support for 'declaration_only' search.
7770 (cp_lookup_symbol_namespace): Attempt to search for the name as
7771 is before consideration of imports.
7772 * symtab.c (lookup_symbol_aux_local): Added a 'declaration_only'
7773 search at every block level search.
7774 Now takes language argument.
7775 (lookup_symbol_aux): Updated.
7776
6e31430b
TT
77772010-03-15 Tom Tromey <tromey@redhat.com>
7778
7779 * c-exp.y (name_not_typename): Add 'operator' clause.
7780
4dea3bb7 77812010-03-15 Ralf Corsepius <ralf.corsepius@rtems.org> (tiny change)
bf307134
JB
7782
7783 * configure.ac: Exit if ${gdb_target_obs}" is not set.
7784 * configure: Regenerate.
7785
4d9743af
JK
77862010-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7787
7788 * symfile.c (addr_info_make_relative): Ignore also missing ".dynbss"
7789 and ".sdynbss". Update the comment.
7790
f75150fe
JZ
77912010-03-15 Jie Zhang <jie@codesourcery.com>
7792
7793 * MAINTAINERS: Update my email address.
7794
3c13bc11
DJ
77952010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
7796
7797 * gdbtypes.h (TYPE_IS_OPAQUE): Correct HAVE_CPLUS_STRUCT check.
7798
43484f03
DJ
77992010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
7800
7801 * charset.c [USE_WIN32API]: Include <windows.h>.
7802 (_initialize_charset): Correct type of w32_host_default_charset.
7803
5f25d77d
PA
78042010-03-14 Pedro Alves <pedro@codesourcery.com>
7805
7806 * infrun.c (ptid_match): Don't assert that PTID is not a pid ptid.
7807
1c809c68
TT
78082010-03-12 Tom Tromey <tromey@redhat.com>
7809
7810 PR c++/9708:
7811 * dwarf2read.c (die_needs_namespace) <DW_TAG_variable>: A variable
7812 in a lexical block does not need a namespace.
7813 (new_symbol) <DW_TAG_variable>: Put extern variables on
7814 list_in_scope in all cases.
7815
948103cf
SS
78162010-03-12 Stan Shebs <stan@codesourcery.com>
7817
7818 * ax-gdb.c (gen_expr): Add shift expressions.
7819 (gen_expr_binop_rest): Ditto.
7820
00ae8fef
SW
78212010-03-12 Sami Wagiaalla <swagiaal@redhat.com>
7822
7823 * buildsym.c (finish_block): Reset using_directives pointer
7824 after block initialization.
7825
9cad29ac
L
78262010-03-12 H.J. Lu <hongjiu.lu@intel.com>
7827
7828 * amd64-tdep.c (amd64_word_names): Replace "sp" with "".
7829 * i386-tdep.c (i386_word_names): Likewise.
7830
2f4d8875
PA
78312010-03-12 Pedro Alves <pedro@codesourcery.com>
7832
7833 * target.c (memory_xfer_partial): Don't use the stack cache if
7834 inspecting trace frames.
7835 * tracepoint.c (finish_tfind_command): Invalidate the target
7836 dcache.
7837
ccf26247
JK
78382010-03-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7839
7840 * solib-svr4.c (LM_ADDR_CHECK) <info_verbose>: Use printf_unfiltered
7841 for the PIC displacement, print also the displacement value.
7842 (svr4_exec_displacement): Print DISPLACEMENT if INFO_VERBOSE.
7843
477c84a7
KB
78442010-03-10 Kevin Buettner <kevinb@redhat.com>
7845
7846 * remote-mips.c (close_ports, mips_initialize_cleanups)
7847 (mips_exit_cleanups, mips_send_command, mips_open, pmon_open)
7848 (ddb_open, lsi_open, mips_remove_breakpoint, mips_remove_watchpoint)
7849 (mips_stopped_by_watchpoint, send_srec, pmon_checkset)
7850 (pmon_make_fastrec, pmon_check_ack, mips_expect_download)
7851 (pmon_check_entry_address, pmon_check_total, pmon_end_download)
7852 (pmon_download, pmon_load_fast, _initialize_remote_mips): Add
7853 comments describing each of these functions.
7854 (mips_enter_debug, mips_exit_debug, common_open)
7855 (mips_signal_from_protocol, pmon_makeb64, pmon_zeroset): Add
7856 blank line after the comment describing the function.
7857
01c30d6e
JK
78582010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
7859
7860 * solib-svr4.c (svr4_exec_displacement): Return now success, new
7861 parameter displacementp. Update comment.
7862 (svr4_relocate_main_executable): Return if non-zero SECTION_OFFSETS
7863 element exists. Return if svr4_exec_displacement was not successful.
7864 Update comment.
7865
09919ac2
JK
78662010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
7867 Daniel Jacobowitz <dan@codesourcery.com>
7868
7869 * solib-svr4.c (read_program_header): Support type == -1 to read
7870 all program headers.
7871 (read_program_headers_from_bfd): New function.
7872 (svr4_static_exec_displacement): Remove and move the comment ...
7873 (svr4_exec_displacement): ... here. Remove variable found. New
7874 variable displacement. Check also DYNAMIC. Verify DISPLACEMENT
7875 alignment for ELF targets. Compare target vs. exec_bfd PHDRs for ELF
7876 targets using read_program_headers_from_bfd. Remove the call of
7877 svr4_static_exec_displacement.
7878
d146bf1e
TT
78792010-03-10 Tom Tromey <tromey@redhat.com>
7880
7881 * dwarf2read.c (struct pubnames_header): Remove.
7882 (_PUBNAMES_HEADER): Remove.
7883 (_ACTUAL_PUBNAMES_HEADER_SIZE): Remove.
7884 (struct aranges_header): Remove.
7885 (_ARANGES_HEADER, _ACTUAL_ARANGES_HEADER_SIZE): Remove.
7886 (struct dwarf2_per_objfile) <pubnames, aranges>: Remove.
7887 (PUBNAMES_SECTION): Remove.
7888 (ARANGES_SECTION): Remove.
7889 (dwarf2_locate_sections): Don't handle pubnames or aranges.
7890 (dwarf2_build_psymtabs): Remove dead code.
7891 (dwarf2_build_psymtabs_easy): Remove.
7892
be391dca
TT
78932010-03-10 Tom Tromey <tromey@redhat.com>
7894
7895 * elfread.c (elf_symfile_read): Don't call
7896 dwarf2_build_frame_info.
7897 * dwarf2read.c (struct dwarf2_section_info) <readin>: New field.
7898 (struct dwarf2_per_objfile) <objfile>: New field.
7899 (dwarf2_has_info): Now idempotent. Set objfile field.
7900 (dwarf2_read_section): Check and set readin field. Call
7901 posix_madvise.
7902 (dwarf2_build_psymtabs): Don't read all sections.
7903 (read_type_comp_unit_head): Read types section.
7904 (create_debug_types_hash_table): Likewise.
7905 (init_cu_die_reader): Add asserts.
7906 (process_type_comp_unit): Add assert.
7907 (dwarf2_build_psymtabs_hard): Read info section.
7908 (load_partial_comp_unit): Add assert.
7909 (create_all_comp_units): Read info section.
7910 (load_full_comp_unit): Likewise.
7911 (dwarf2_ranges_read): Read ranges section.
7912 (dwarf2_record_block_ranges): Add assert.
7913 (dwarf2_read_abbrevs): Read abbrev section.
7914 (read_indirect_string): Read str section.
7915 (dwarf_decode_line_header): Read line section.
7916 (read_signatured_type_at_offset): Read types section.
7917 (dwarf_decode_macros): Read macinfo section.
7918 (dwarf2_symbol_mark_computed): Read loc section.
7919 * dwarf2-frame.c (dwarf2_frame_find_fde): Call
7920 dwarf2_build_frame_info.
7921 (dwarf2_build_frame_info): Unconditionally set
7922 dwarf2_frame_objfile_data on the objfile.
7923 * configure.ac: Check for posix_madvise.
7924 * config.in, configure: Rebuild.
7925
ccefe4c4
TT
79262010-03-10 Tom Tromey <tromey@redhat.com>
7927
e38df1d0
TT
7928 * xcoffread.c (xcoff_start_psymtab): Update.
7929 (xcoff_end_psymtab): Update.
7930 * psymtab.c (allocate_psymtab): Remove dead code.
7931 * psympriv.h (struct partial_symtab) <read_symtab_private>: Now
7932 void*.
7933 * mdebugread.c (parse_partial_symbols): Update.
7934 (new_psymtab): Likewise.
7935 * dwarf2read.c (process_psymtab_comp_unit): Update.
7936 (psymtab_to_symtab_1): Update.
7937 * dbxread.c (start_psymtab): Update.
7938 (end_psymtab): Likewise.
7939
be391dca 79402010-03-10 Tom Tromey <tromey@redhat.com>
e38df1d0 7941
ccefe4c4
TT
7942 * xcoffread.c: Include psymtab.h.
7943 (xcoff_sym_fns): Update.
7944 * symtab.h (struct partial_symbol): Remove.
7945 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.
7946 (struct partial_symtab): Remove.
7947 (PSYMTAB_TO_SYMTAB): Remove.
7948 (lookup_partial_symbol, lookup_partial_symtab, find_pc_psymtab)
7949 (find_pc_sect_psymtab): Remove.
7950 (find_pc_sect_symtab_via_partial): Declare.
7951 (find_pc_psymtab, find_pc_sect_psymbol, psymtab_to_symtab)
7952 (find_main_psymtab): Remove.
7953 (find_main_filename): Declare.
7954 (fixup_psymbol_section): Remove.
7955 (fixup_section): Declare.
7956 * symtab.c: Include psymtab.h.
7957 (lookup_symtab): Use lookup_symtab method.
7958 (lookup_partial_symtab): Remove.
7959 (find_pc_sect_psymtab_closer): Remove.
7960 (find_pc_sect_psymtab): Remove.
7961 (find_pc_sect_symtab_via_partial): New function.
7962 (find_pc_psymtab, find_pc_sect_psymbol, find_pc_psymbol): Remove.
7963 (fixup_section): No longer static.
7964 (fixup_psymbol_section): Remove.
7965 (lookup_symbol_aux): Use lookup_symbol_aux_quick.
7966 (lookup_global_symbol_from_objfile): Likewise.
7967 (lookup_symbol_aux_psymtabs): Remove.
7968 (lookup_symbol_aux_quick): New function.
7969 (lookup_symbol_global): Use lookup_symbol_aux_quick.
7970 (lookup_partial_symbol): Remove.
7971 (basic_lookup_transparent_type_quick): New function.
7972 (basic_lookup_transparent_type): Use it.
7973 (find_main_psymtab): Remove.
7974 (find_main_filename): New function.
7975 (find_pc_sect_symtab): Use find_pc_sect_symtab method.
7976 (find_line_symtab): Use expand_symtabs_with_filename method.
7977 (output_partial_symbol_filename): New function.
7978 (sources_info): Use map_partial_symbol_filenames.
7979 (struct search_symbols_data): New type.
7980 (search_symbols_file_matches): New function.
7981 (search_symbols_name_matches): Likewise.
7982 (search_symbols): Use expand_symtabs_matching method.
7983 (struct add_name_data): Rename from add_macro_name_data.
7984 (add_macro_name): Update.
7985 (add_partial_symbol_name): New function.
7986 (default_make_symbol_completion_list): Use
7987 map_partial_symbol_names.
7988 (struct add_partial_symbol_name): New type.
7989 (maybe_add_partial_symtab_filename): New function.
7990 (make_source_files_completion_list): Use
7991 map_partial_symbol_filenames.
7992 (expand_line_sal): Use expand_symtabs_with_filename method.
7993 * symmisc.c: Include psymtab.h.
7994 (print_objfile_statistics): Use print_stats method.
7995 (dump_objfile): Use dump method.
7996 (dump_psymtab, maintenance_print_psymbols)
7997 (maintenance_info_psymtabs, maintenance_check_symtabs)
7998 (extend_psymbol_list): Remove.
7999 * symfile.h (struct quick_symbol_functions): New struct.
8000 (struct sym_fns) <qf>: New field.
8001 (sort_pst_symbols): Remove.
8002 (increment_reading_symtab): Declare.
8003 * symfile.c: Include psymtab.h.
8004 (compare_psymbols, sort_pst_symbols): Remove.
8005 (psymtab_to_symtab): Remove.
8006 (increment_reading_symtab): New function.
8007 (symbol_file_add_with_addrs_or_offsets): Use expand_all_symtabs
8008 method.
8009 (set_initial_language): Use find_main_filename.
8010 (allocate_psymtab, discard_psymtab, cashier_psymtab): Remove.
8011 (free_named_symtabs): Remove unused code.
8012 (start_psymtab_common, add_psymbol_to_bcache)
8013 (append_psymbol_to_list, add_psymbol_to_list, init_psymbol_list):
8014 Remove.
8015 * stack.c: Include psymtab.h, symfile.h.
8016 (backtrace_command_1): Use find_pc_sect_symtab_via_partial.
8017 * source.h (psymtab_to_fullname): Don't declare.
8018 * source.c: Include psymtab.h.
8019 (select_source_symtab): Use find_last_source_symtab method.
8020 (forget_cached_source_info): Use forget_cached_source_info
8021 method.
8022 (find_and_open_source): No longer static.
8023 (psymtab_to_fullname): Remove.
8024 * somread.c: Include psymtab.h.
8025 (som_sym_fns): Update.
8026 * psympriv.h: New file.
8027 * psymtab.h: New file.
8028 * psymtab.c: New file.
8029 * objfiles.h: (ALL_OBJFILE_PSYMTABS): Remove.
8030 (ALL_PSYMTABS, ALL_PSPACE_PSYMTABS): Likewise.
8031 * objfiles.c: Include psymtab.h.
8032 (objfile_relocate1): Use relocate method.
8033 (objfile_has_partial_symbols): Use has_symbols method.
8034 * mipsread.c: Include psymtab.h.
8035 (ecoff_sym_fns): Update.
8036 * mi/mi-cmd-file.c: Include psymtab.h.
8037 (print_partial_file_name): New function.
8038 (mi_cmd_file_list_exec_source_files): Use
8039 map_partial_symbol_filenames.
8040 * mdebugread.c: Include psympriv.h.
8041 * machoread.c: Include psympriv.h.
8042 (macho_sym_fns): Update.
8043 * m2-exp.y (yylex): Use lookup_symtab.
8044 * elfread.c: Include psympriv.h.
8045 (elf_sym_fns): Update.
8046 * dwarf2read.c: Include psympriv.h.
8047 * dbxread.c: Include psympriv.h.
8048 (aout_sym_fns): Update.
8049 * cp-support.c: Include psymtab.h.
8050 (read_in_psymtabs): Remove.
8051 (make_symbol_overload_list_qualified): Use
8052 expand_symtabs_for_function method.
8053 * coffread.c: Include psympriv.h.
8054 (coff_sym_fns): Update.
8055 * blockframe.c: Include psymtab.h.
8056 (find_pc_partial_function): Use find_pc_sect_symtab method.
8057 * ada-lang.h (ada_update_initial_language): Update.
8058 * ada-lang.c: Include psymtab.h.
8059 (ada_update_initial_language): Remove 'main_pst' argument.
8060 (ada_lookup_partial_symbol): Remove.
8061 (struct ada_psym_data): New type.
8062 (ada_add_psyms): New function.
8063 (ada_add_non_local_symbols): Use map_ada_symtabs method.
8064 (struct add_partial_datum): New type.
8065 (ada_add_partial_symbol_completions): New function.
8066 (ada_make_symbol_completion_list): Use map_partial_symbol_names.
8067 (ada_exception_support_info_sniffer): Update.
8068 * Makefile.in (SFILES): Add psymtab.c.
8069 (COMMON_OBS): Add psymtab.o.
8070 (HFILES_NO_SRCDIR): Add psymtab.h, psympriv.h.
8071
7d8500b7
PM
80722010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
8073
8074 * remote-fileio.c (cygwin_conv_path): Define macro for old cygwin API.
8075
c0cc3a76
SW
80762010-03-10 Sami Wagiaalla <swagiaal@redhat.com>
8077
8078 PR C++/11236:
8079 * cp-namespace.c (cp_add_using): Deleted.
8080 (cp_add_using_directive): Use obstack allocations.
8081 Merged the function cp_add_using into this one.
8082 Added 'struct obstack *' argument.
8083 (cp_scan_for_anonymous_namespaces): Updated.
8084 * cp-support.h: Updated.
8085 * dwarf2read.c (read_import_statement): Updated.
8086 (read_namespace): Updated.
8087
452fa064
CF
80882010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
8089
8090 * windows-nat.c (cygwin_conv_path): Remove old macro.
8091
60e1c644
PA
80922010-03-10 Pedro Alves <pedro@codesourcery.com>
8093
8094 * breakpoint.c (condition_command): Handle watchpoint conditions.
8095 (is_hardware_watchpoint): Add comment.
8096 (is_watchpoint): New.
8097 (update_watchpoint): Don't reparse the watchpoint's condition
8098 unless necessary.
8099 (WP_IGNORE): New.
8100 (watchpoint_check): Use it.
8101 (bpstat_check_watchpoint): Handle it.
8102 (bpstat_check_breakpoint_conditions): Evaluate watchpoint local
8103 conditions in a frame where it makes sense.
8104 (watch_command_1): Store the innermost block of the condition
8105 expression.
8106 (delete_breakpoint): Delete the watchpoint condition expression.
8107 * breakpoint.h (struct bp_location) <cond>: Update comment.
8108 (struct breakpoint): New field `cond_exp_valid_block'.
8109
af6b7be1
JB
81102010-03-09 Joel Brobecker <brobecker@adacore.com>
8111
8112 Adjust handling of Ada DIEs after dwarf2_physname patch.
8113 * dwarf2read.c (dwarf2_compute_name): Add handling of Ada DIEs.
8114
60c5c021
CF
81152010-03-09 Christopher Faylor <me+cygwin@cgf.cx>
8116 Pierre Muller <muller@ics.u-strasbg.fr>
8117
8118 * windows-nat.c (cygwin_conv_path): Redefine to properly convert
8119 from/to posix/win32.
8120 (windows_make_so): Use non-Cygwin 1.7 specific function.
8121 (windows_create_inferior): Make sure that cygallargs points to
8122 original args in non Cygwin 1.7. case.
8123
60a1502a
MS
81242010-03-09 Michael Snyder <msnyder@vmware.com>
8125
8126 * i386-tdep.c (i386_record_lea_modrm_addr): Use extract_signed_int
8127 after target_read_memory to get host byte order.
8128 (i386_process_record): Ditto.
8129
94af9270
KS
81302010-03-09 Keith Seitz <keiths@redhat.com>
8131
8132 Based on work from Daniel Jacobowitz <dan@codesourcery.com>
8133 * c-typeprint.c (cp_type_print_method_args): For non-static methods,
8134 print out const or volatile qualifiers, too.
8135 (c_type_print_args): Add parameters show_artificial and language.
8136 Skip artificial parameters when requested.
8137 Use the appropriate language printer.
8138 (c_type_print_varspec): Tell c_type_print_args to skip artificial
8139 parameters and pass language_c.
8140 * dwarf2read.c (die_list): New file global.
8141 (struct partial_die_info): Update comments for name field.
8142 (pdi_needs_namespace): Renamed to ...
8143 (die_needs_namespace): ... this. Rewrite.
8144 (dwarf2_linkage_name): Remove.
8145 (add_partial_symbol): Do not predicate the call to
8146 partial_die_full_name based on pdi_needs_namespace.
8147 Remove call to cp_check_possible_namespace_symbols and associated
8148 outdated comments.
8149 (guess_structure_name): Do not inspect child subprogram DIEs.
8150 (dwarf2_fullname): Update comments.
8151 Use die_needs_namespace to assist in computing the name.
8152 (read_func_scope): Use dwarf2_name to get the DIE's name.
8153 Use dwarf2_physname to get the "linkage name" of the DIE.
8154 (dwarf2_add_member_field): Use dwarf2_physname instead of
8155 dwarf2_linkage_name.
8156 (read_structure_type): For structs and classes, set TYPE_NAME, too.
8157 (determine_class): Remove.
8158 (read_partial_die): Ignore DW_AT_MIPS_linkage_name for all languages
8159 except Ada.
8160 (new_symbol): Unconditionally call dwarf2_name.
8161 Compute the "linkage name" using dwarf2_physname.
8162 Use dwarf2_name instead of dwarf2_full_name for enumerator DIEs.
8163 When determining to scan for anonymous C++ namespaces, ignore
8164 the linkage name.
8165 (dwarf2_physname): New function.
8166 (dwarf2_full_name): Move content to new function and call
8167 that.
8168 (dwarf2_compute_name): "New" function.
8169 (_initialize_dwarf2_read): Initialize die_list.
8170 * gnu-v3-eabi.c (gnu_v3_find_method_in): Remove unused variable
8171 physname.
8172 (gnu_v3_print_method_ptr): Use the physname for virtual methods
8173 without a demangled name.
8174 Print out type information for non-virtual methods.
c8d5aac9 8175 * linespec.c (decode_line_1): Force ANY string using "::" (or
94af9270 8176 "." for java) to use decode_compound, and clean up any stray quoting.
c8d5aac9
L
8177 If we found a file symtab, re-evaluate whether the remainder is_quoted.
8178 (decode_compound): Stop consuming at an open parenthesis.
8179 Keep template parameters.
8180 Keep any overload information.
8181 Keep keywords like "const".
8182 Remove paren_pointer.
8183 Move is_quoted check from set_flags to here.
8184 Remove #if 0 code from 2000. Ten years is long enough.
8185 (find_method): Before comparing symbol names, canonicalize the string
8186 from the user.
8187 If a specific overload is requested, find it. Otherwise throw an error.
94af9270
KS
8188 (find_method_overload_end): New function.
8189 (set_flags): Remove.
c8d5aac9
L
8190 (decode_compound): Assume that parentheses are matched.
8191 It's a lot easier.
94af9270
KS
8192 * symtab.c (symbol_find_demangled_name): Add DMGL_VERBOSE flag
8193 to cplus_demangle.
8194 * linespec.c (decode_line_1): Keep important keywords like
8195 "const" and "volatile".
8196 * symtab.h (SYMBOL_CPLUS_DEMANGLED_NAME): Remove.
8197 * typeprint.h (c_type_print_args): Add declaration.
8198 * ui-file.c (do_ui_file_obsavestring): New function.
8199 (ui_file_obsavestring): New function.
8200 * ui-file.h (ui_file_obsavestring): Add declaration.
8201 * valops.c (find_overload_match): Resolve the object to
8202 a non-pointer type.
8203 If the object is a data member, search the object for the member
8204 and return with staticp set.
8205 Use SYMBOL_NATURAL_NAME instead of SYMBOL_CPLUS_DEMANGLED_NAME.
8206 Do not attempt to extract a function name from non-function types.
8207 If the extracted function name and the original name are the same,
8208 we don't have a C++ method.
8209
8d95cc3b
PA
8210 From Jan Kratochvil <jan.kratochvil@redhat.com>:
8211 * dwarf2read.c (new_symbol <DW_TAG_enumerator>): Call dwarf2_full_name.
94af9270
KS
8212
8213 * ada-lang.c (ada_lookup_symbol): Remove linkage_name parameters
8214 and arguments from symbol lookups.
8215 * ax-gdb.c (gen_expr): Likewise.
8216 * cp-namespace.c (cp_lookup_symbol_nonlocal, lookup_namespace_scope,
8217 cp_lookup_symbol_namespace, lookup_symbol_file, lookup_nested_type,
8218 lookup_possible_namespace_symbol): Likewise.
8219 * cp-support.c (read_in_psymtabs): Likewise.
8220 * cp-support.h (cp_lookup_symbol_nonlocal): Likewise.
8221 * language.h (la_lookup_symbol_nonlocal): Likewise.
8222 * scm-valprint.c (scm_inferior_print): Likewise.
8223 * solib-darwin.c (darwin_relocate_section_addresses): Likewise.
8224 * solib-svr.c (elf_lookup_lib): Likewise.
8225 * solib.c (show_auto_solib_add): Likewise.
8226 * solist.h (lookup_lib_global, solib_global_lookup): Likewise.
8227 * symmisc.c (maintenance_check_symtabs): Likewise.
8228 * symtab.c (lookup_symbol_in_language, lookup_symbol_aux,
8229 lookup_symbol_aux_local, lookup_symbol_aux_block,
8230 lookup_symbol_from_objfile, lookup_symbol_aux_symtabs,
8231 lookup_symbol_aux_psymtabs,basic_lookup_symbol_nonlocal,
8232 lookup_symbol_static, lookup_symbol_global, symbol_matches_domain,
8233 basic_lookup_transparent_type, find_main_psymtab,
8234 lookup_block_symbol): Likewise.
8235 * symtab.h (basic_lookp_symbol_nonlocal, lookup_symbol_static,
8236 lookup_symbol_global, lookup_symbol_aux_block,
8237 lookup_symbol_partial_symbol, lookup_block_symbol,
8238 lookup_global_symbol, value_maybe_namespace_elt): Likewise.
8239
9cb74f47
PM
82402010-03-09 Pierre Muller <muller@ics.u-strasbg.fr>
8241
8242 * python/python-internal.h: Include symtab.h.
8243
af6b7be1
JB
82442010-03-09 Joel Brobecker <brobecker@adacore.com>
8245 Pierre Muller <muller@ics.u-strasbg.fr>
e13eedd5
PM
8246
8247 * p-lang.c (is_pascal_string_type): Remove unneeded parentheses.
8248 * p-valprint.c (pascal_val_print): Remove undeed block and fix
8249 indentation.
8250
bad56014
TT
82512010-03-08 Tom Tromey <tromey@redhat.com>
8252
8253 * breakpoint.c (breakpoint_1): Add "QUIT".
8254
08105857
PA
82552010-03-08 Daniel Jacobowitz <dan@codesourcery.com>
8256 Pedro Alves <pedro@codesourcery.com>
8257
8258 * solib.c (solib_find): Replace extension if
8259 solib_symbols_extension is set in the target gdbarch.
8260 * arm-symbian-tdep.c (arm_symbian_init_abi): Set
8261 solib_symbols_extension to "sym".
8262 * gdbarch.sh (solib_symbols_extension): New variable.
8263 (pstring): New function.
8264 * gdbarch.h, gdbarch.c: Regenerate.
8265
7c953934
TT
82662010-03-08 Tom Tromey <tromey@redhat.com>
8267
8268 PR cli/9591:
8269 * NEWS: Update.
8270 * utils.c: Include main.h.
8271 (fputs_maybe_filtered): Don't paginate if `batch_flag'.
8272 (defaulted_query): Use default answer if `batch_flag'.
8273 * main.h (batch_flag): Declare.
8274 * main.c (batch_flag): New global.
8275 (captured_main): Remove 'batch'. Update.
8276
bbd2783e
KB
82772010-03-08 Kevin Buettner <kevinb@redhat.com>
8278
8279 From Richard Sandiford, Martin M. Hunt, Corinna Vinschen,
8280 and Kevin Buettner:
8281
8282 * remote-mips.c (rockhopper_ops): New target_ops struct.
8283 (MON_ROCKHOPPER): New mips_monitor_type.
8284 (read_hex_value): New function.
8285 (mips_request): Send 8-byte values with a 'T' packet. Read the
8d95cc3b 8286 packet argument as a string and use read_hex_value to parse it.
bbd2783e
KB
8287 (mips_exit_debug): Wait for response when using MON_ROCKHOPPER.
8288 (rockhopper_open): New function.
8289 (mips_wait): Read the PC, FP and SP fields as strings. Use
8290 read_hex_value to parse them and mips_set_register to commit them.
8291 (mips_set_register): New function.
8292 (mips_fetch_registers): Do not cast register value to "unsigned"
8293 when reading a MON_ROCKHOPPER 't' packet. Use mips_set_register.
8294 (mips_store_registers): Use a 'T' packet to set registers when
8295 using MON_ROCKHOPPER.
8296 (pmon_end_download): Don't run initEther if using MON_ROCKHOPPER
8297 and expect the total to be printed before the entry address.
8298 (_initialize_remote_mips): Initialize and add rockhopper_ops.
8299
566f3d17
KB
83002010-03-08 Kevin Buettner <kevinb@redhat.com>
8301
8302 * remote-mips.c (mips_fetch_word): Add new parameter, `valp'.
8303 Change return value to int. Store value fetched in location
8304 addressed by `val'. Use function's return value as success
8305 or failure indicator. Adjust all callers.
8306
9c8ee2ab 83072010-03-08 Pierre Muller <muller@ics.u-strasbg.fr>
f72d4b77
PM
8308
8309 * p-lang.c (is_pascal_string_type): Check that TYPE arg is non NULL.
8310
7155de5a
HZ
83112010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8312 Hui Zhu <teawater@gmail.com>
8313
8314 * record.c (record_open_1): Check tmp_to_stopped_by_watchpoint and
8315 tmp_to_stopped_data_address.
8316 (record_open): Reset tmp_to_stopped_by_watchpoint and
8317 tmp_to_stopped_data_address.
8318 * target.c (init_dummy_target): Add to_stopped_by_watchpoint and
8319 to_stopped_data_address.
8320
580879fc
HZ
83212010-03-08 Hui Zhu <teawater@gmail.com>
8322
8323 * i386-tdep.c (i386_process_record): Initialize regnum.
8324
b0fcb67f
JK
83252010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8326
8327 * symfile.c (addr_info_make_relative): New variable sect_name, use it.
8328 Do not warn on ".gnu.liblist" and ".gnu.conflict".
8329
08597104
JB
83302010-03-08 Joel Brobecker <brobecker@adacore.com>
8331
8332 Memory error when reading wrong core file.
8333 * solib-svr4.c (solib_svr4_r_map): catch and print all exception
8334 errors while reading the inferior memory, and return zero if
8335 an exception was raised.
8336
425b824a
MS
83372010-03-07 Michael Snyder <msnyder@vmware.com>
8338
ec6dbf37
MS
8339 * record.c (record_restore): Rename tmpu8 to rectype.
8340
648d0c8b
MS
8341 * i386-tdep.c (i386_record_lea_modrm_addr): Rename local variables
8342 tmpu8, tmpi16, tmpi32, tmpulongest to addr8, addr16, addr32, addr64.
8343
8344 (i386_record_push): Rename local tmpulongest to addr.
8345
8346 (i386_process_record): Rename local tmpulongest to addr.
8347
8348 Rename local variables tmpu16, tmpu32, tmpu64 to addr16, addr32,
8349 addr64.
955db0c0
MS
8350
8351 Rename local variable tmpu8 to opcode8 and regnum.
425b824a 8352
10760264
JB
83532010-03-07 Joel Brobecker <brobecker@adacore.com>
8354
8355 * remote.c (remote_get_ada_task_ptid): New function.
c8d5aac9 8356 (init_remote_ops): Set remote_ops.to_get_ada_task_ptid.
10760264 8357
b3c613f2
CF
83582010-03-06 Christopher Faylor <me+cygwin@cgf.cx>
8359
8360 * windows-nat.c: Reorganize #ifdef __CYGWIN__ considerations into one
8361 block. Define helper macros to reduce ifdefs in code.
8362 (get_module_name): Use cygwin_buf_t for buffer and __PMAX for buffer
8363 size. Call unadorned GetModuleFileNameEx rather than
8364 GetModuleFileNameEx*.
8365 (windows_make_so): Use __PMAX to denote maximum buffer size and
8366 cygwin_buf_t for buffer type. Use GetSystemDirectory{W,A} as
8367 appropriate.
8368 (get_image_name): Use __PMAX to denote maximum buffer size.
8369 (handle_load_dll): Likewise.
8370 (windows_pid_to_exec_file): Likewise.
8371 (windows_create_inferior): Add many accommodations for older Cygwin and
8372 non-Cygwin.
8373 (bad_GetModuleFileNameExW): Control inclusion of this function based on
8374 __USEWIDE conditional.
8375 (bad_GetModuleFileNameExA): Likewise.
8376 (_initialize_loadable): Just use real function names without the dyn_
8377 part since they are defined earlier.
8378
f870a310
TT
83792010-03-05 Corinna Vinschen <vinschen@redhat.com>
8380 Tom Tromey <tromey@redhat.com>
8381
8382 * utils.c (host_char_to_target): Add 'gdbarch' argument.
8383 (parse_escape): Likewise.
8384 * python/py-utils.c (unicode_to_target_string): Update.
8385 (unicode_to_target_python_string): Update.
8386 (target_string_to_unicode): Update.
8387 * printcmd.c (printf_command): Update.
8388 * p-exp.y (yylex): Update.
8389 * objc-exp.y (yylex): Update.
8390 * mi/mi-parse.c: Include charset.h.
8391 (mi_parse_escape): New function.
8392 (mi_parse_argv): Use it.
8393 * jv-exp.y (yylex): Update.
8394 * i386-cygwin-tdep.c (i386_cygwin_auto_wide_charset): New
8395 function.
8396 (i386_cygwin_init_abi): Call set_gdbarch_auto_wide_charset.
8397 * gdbarch.sh (auto_charset, auto_wide_charset): New.
8398 * gdbarch.c: Rebuild.
8399 * gdbarch.h: Rebuild.
8400 * defs.h (parse_escape): Update.
8401 * cli/cli-setshow.c: Include arch-utils.h.
8402 (do_setshow_command): Update.
8403 * cli/cli-cmds.c (echo_command): Update.
8404 * charset.h (target_charset, target_wide_charset): Update.
8405 * charset.c: Include arch-utils.h.
8406 (target_charset_name): Default to "auto".
8407 (target_wide_charset_name): Likewise.
8408 (show_target_charset_name): Handle "auto".
8409 (show_target_wide_charset_name): Likewise.
8410 (be_le_arch): New global.
8411 (set_be_le_names): Add 'gdbarch' argument.
8412 (validate): Likewise. Don't call set_be_le_names.
8413 (set_charset_sfunc, set_host_charset_sfunc)
8414 (set_target_charset_sfunc, set_target_wide_charset_sfunc):
8415 Update.
8416 (target_charset): Add 'gdbarch' argument.
8417 (target_wide_charset): Likewise. Remove 'byte_order' argument.
8418 (auto_target_charset_name): New global.
8419 (default_auto_charset, default_auto_wide_charset): New functions.
8420 (_initialize_charset): Set auto_target_charset_name. Allow "auto"
8421 for target charsets. Copy result of nl_langinfo. Use GetACP if
8422 USE_WIN32API.
8423 * c-lang.c (charset_for_string_type): Add 'gdbarch' argument,
8424 remove 'byte_order' argument. Update.
8425 (classify_type): Likewise.
8426 (c_emit_char): Update.
8427 (c_printchar): Update.
8428 (c_printstr): Update.
8429 (c_get_string): Update.
8430 (evaluate_subexp_c): Update.
8431 * arch-utils.h (default_auto_charset, default_auto_wide_charset):
8432 Declare.
8433 * python/python.c (gdbpy_target_charset): New function.
8434 (gdbpy_target_wide_charset): Likewise.
8435 (GdbMethods): Update.
8436 * NEWS: Update.
8437
4e7386b0
UW
84382010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
8439
8440 * symfile.c (build_section_addr_info_from_objfile): Do not mask
8441 off high address bits.
8442
aab48ede
UW
84432010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
8444
8445 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Extract
8446 address as UnsignedLongLong, not LongLong.
8447
8eeafb51 84482010-03-05 Kevin Buettner <kevinb@redhat.com>
c8d5aac9 8449 Pedro Alves <pedro@codesourcery.com>
8eeafb51
KB
8450
8451 * remote-mips.c (gdbthread.h): Include.
8452 (remote_mips_ptid): Declare.
8453 (mips_error): Only mourn the inferior when inferior_ptid is non-null.
8454 (common_open): Set inferior_ptid, add it as an inferior, and
8455 as a thread too. Delete FIXME comment regarding start_remote().
8456 (mips_close): Invoke generic_mourn_inferior().
8457 (mips_kill): Make sure that target_mourn_inferior is invoked.
8458 (mips_mourn_inferior): Don't invoke generic_mourn_inferior, as
8459 it's now invoked from mips_close().
8460 (mips_load): Don't null out inferior_ptid. Don't call
8461 clear_symtab_users().
8462 (mips_thread_alive, mips_pid_to_str): New functions.
8463 (_initialize_remote_mips): Initialize remote_mips_ptid. Initialize
8464 to_thread_alive and to_pid_to_str operations.
8465
ae411497
TT
84662010-03-04 Tom Tromey <tromey@redhat.com>
8467
8468 * dwarf2read.c (skip_one_die) <DW_FORM_ref_addr>: Use offset size
8469 in DWARF 3 and later.
8470 (read_attribute_value) <DW_FORM_ref_addr>: Likewise.
8471
0e0b460e
KS
84722010-03-04 Keith Seitz <keiths@redhat.com>
8473
8474 * linespec.c (decode_line_1): Update comments for is_quote_enclosed.
8475 If the filename portion of the linespec was quoted, recheck the
8476 remainder for additional quoting.
8477 (locate_first_half): Skip over completer chars, too.
8478
1b93ff13
TT
84792010-03-04 Tom Tromey <tromey@redhat.com>
8480
8481 * printcmd.c (printf_command): Pass dummy argument to
8482 printf_filtered.
8483
fc36e839
DE
84842010-03-04 Doug Evans <dje@google.com>
8485
111f853c
DE
8486 * arm-tdep.c (arm_make_stub_cache): Delete unused locals reg,
8487 unwound_fp.
8488
fc36e839
DE
8489 * arm-tdep.c (arm_stub_unwind_sniffer): Add comment.
8490
c7437ca6
PA
84912010-03-04 Pedro Alves <pedro@codesourcery.com>
8492
8493 * breakpoint.c (update_watchpoint): Create a sentinel location if
8494 the software watchpoint isn't watching any memory.
8495 (breakpoint_address_bits): Skip dummy software watchpoint locations.
8496
58dadb1b
PA
84972010-03-04 Pedro Alves <pedro@codesourcery.com>
8498
8499 * utils.c (fputs_maybe_filtered): Check if there's already a top
8500 level interpreter before dereferencing it. If there isn't one,
8501 don't paginate either.
8502
50e98be4
DJ
85032010-03-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
8504
8505 * arm-tdep.c (arm_pc_is_thumb): Add heuristic that tries to get
8506 the state right when single stepping.
8507 (arm_get_next_pc_raw, thumb_get_next_pc_raw): New functions.
8508 Get the next PC along with the instruction state.
8509 (thumb_get_next_pc): Remove.
8510 (arm_get_next_pc): Modified to use arm_get_next_pc_raw.
8511
2e3ceee9
HZ
85122010-03-04 Hui Zhu <teawater@gmail.com>
8513
8514 * i386-tdep.c (i386_process_record): Change "addr" to "tmpu64".
8515
390a8aca
PA
85162010-03-03 Pedro Alves <pedro@codesourcery.com>
8517
8518 * utils.c (fputs_maybe_filtered): Always disable pagination if the
8519 top level interpreter is MI.
8520
9355b391
SS
85212010-03-03 Stan Shebs <stan@codesourcery.com>
8522
8523 * remote.c (remote_download_tracepoint): Iterate over locations.
8524 * tracepoint.c (validate_actionline): Ditto.
8525 (encode_actions): Add location argument.
8526 (trace_dump_command): Check all locations to see if stepping
8527 frame.
390a8aca 8528
8685c86f
L
85292010-03-03 H.J. Lu <hongjiu.lu@intel.com>
8530 Eli Zaretskii <eliz@gnu.org>
8531
8532 * NEWS: Add X86 general purpose registers section.
8533
e8f781e2
TT
85342010-03-03 Tom Tromey <tromey@redhat.com>
8535
8536 PR mi/11098:
8537 * varobj.c (install_new_value): Handle case where new print_value
8538 is NULL.
8539
a0e0ef55
TT
85402010-03-03 Dainis Jonitis <jonitis@gmail.com>
8541
8542 PR gdb/11345:
8543 * printcmd.c (printf_command): Print end of format string using
8544 printf_filtered.
8545
a58d7472
TT
85462010-03-02 Tom Tromey <tromey@redhat.com>
8547
8548 * mi/mi-cmd-break.c (mi_read_next_line): Add missing 'void'.
8549 * defs.h (read_command_lines_1): Add missing 'void'.
8550 * cli/cli-script.c (recurse_read_control_structure): Add missing
8551 'void'.
8552 (read_next_line): Likewise.
8553 (read_command_lines_1): Likewise.
8554
ce50d78b
UW
85552010-03-02 Ulrich Weigand <uweigand@de.ibm.com>
8556
8557 * spu-tdep.c (spu_analyze_prologue): Track instruction to
8558 store backchain as part of prologue.
8559
7e9af34a
DJ
85602010-03-02 Daniel Jacobowitz <dan@codesourcery.com>
8561
8562 * progspace.c (update_address_spaces): Update inferior address spaces
8563 also.
8564
01637564
DE
85652010-03-02 Doug Evans <dje@google.com>
8566
8567 * dwarf2read.c (add_partial_subprogram): Add missing baseaddr to
8568 lowpc,highpc args to addrmap_set_empty.
8569
1ba53b71
L
85702010-03-02 H.J. Lu <hongjiu.lu@intel.com>
8571
8572 * amd64-tdep.c (amd64_byte_names): New.
8573 (amd64_word_names): Likewise.
8574 (amd64_dword_names): Likewise.
8575 (amd64_pseudo_register_name): Likewise.
8576 (amd64_pseudo_register_read): Likewise.
8577 (amd64_pseudo_register_write): Likewise.
8578 (amd64_init_abi): Set num_byte_regs, num_word_regs, num_dword_regs
8579 and num_mmx_regs. Call set_gdbarch_pseudo_register_read,
8580 set_gdbarch_pseudo_register_write and
8581 set_tdesc_pseudo_register_name. Don't call
8582 set_gdbarch_num_pseudo_regs. Don't set mm0_regnum.
8583
8584 * i386-tdep.c (i386_num_mmx_regs): Removed.
8585 (i386_num_pseudo_regs): Likewise.
8586 (i386_byte_names): New.
8587 (i386_word_names): Likewise.
8588 (i386_byte_regnum_p): Likewise.
8589 (i386_word_regnum_p): Likewise.
8590 (i386_mmx_regnum_p): Updated.
8591 (i386_pseudo_register_name): Make it global. Handle byte and
8592 word pseudo-registers.
8593 (i386_pseudo_register_read): Likewise.
8594 (i386_pseudo_register_write): Likewise.
8595 (i386_pseudo_register_type): Handle byte, word and dword
8596 pseudo-registers
8597 (i386_register_reggroup_p): Don't include pseudo
8598 registers, except for MXX, in any register groups. Don't
8599 include pseudo byte, word, dword registers in general_reggroup.
8600 (i386_gdbarch_init): Set num_byte_regs, num_word_regs,
8601 num_dword_regs, al_regnum, ax_regnum and eax_regnum. Put MMX
8602 pseudo-registers after word pseudo-registers. Call
8603 set_gdbarch_num_pseudo_regs after calling gdbarch_init_osabi.
8604
8605 * i386-tdep.h (gdbarch_tdep): Add num_mmx_regs, num_byte_regs,
8606 al_regnum, num_word_regs, ax_regnum, num_dword_regs and
8607 eax_regnum.
8608 (i386_byte_regnum_p): New.
8609 (i386_word_regnum_p): Likewise.
8610 (i386_dword_regnum_p): Likewise.
8611 (i386_pseudo_register_name): Likewise.
8612 (i386_pseudo_register_read): Likewise.
8613 (i386_pseudo_register_write): Likewise.
8614
a6f5ef51
L
86152010-03-01 H.J. Lu <hongjiu.lu@intel.com>
8616
8617 * target-descriptions.c (tdesc_type): Remove
8618 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
8619 (tdesc_predefined_types): Likewise.
8620 (tdesc_gdb_type): Likewise. Pass NULL to append_flags_type_flag
8621 if flag name is empty.
8622 (maint_print_c_tdesc_cmd): Handle TDESC_TYPE_FLAGS.
8623
8624 * features/i386/32bit-core.xml: Define i386_eflags.
8625 * features/i386/64bit-core.xml: Likewise.
8626
8627 * features/i386/32bit-sse.xml: Define i386_mxcsr.
8628 * features/i386/64bit-sse.xml: Likewise.
8629
8630 * features/i386/amd64-linux.c: Regenerated.
8631 * features/i386/amd64.c: Likewise.
8632 * features/i386/i386-linux.c: Likewise.
8633 * features/i386/i386.c: Likewise.
8634
f5dff777
DJ
86352010-03-01 Daniel Jacobowitz <dan@codesourcery.com>
8636
8637 * gdbtypes.c (append_composite_type_field_raw): New.
8638 (append_composite_type_field_aligned): Use the new function.
8639 * gdbtypes.h (append_composite_type_field_raw): Declare.
8640 * target-descriptions.c (struct tdesc_type_field): Add start and end.
8641 (struct tdesc_type_flag): New type.
8642 (struct tdesc_type): Add TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS to
8643 kind. Add size to u.u. Add u.f for flags.
8644 (tdesc_gdb_type): Handle TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS.
8645 (tdesc_free_type): Likewise.
8646 (tdesc_create_struct, tdesc_set_struct_size, tdesc_create_flags): New.
8647 (tdesc_add_field): Handle TDESC_TYPE_STRUCT.
8648 (tdesc_add_bitfield, tdesc_add_flag): New.
8649 * target-descriptions.h (tdesc_create_struct, tdesc_set_struct_size)
8650 (tdesc_create_flags, tdesc_add_bitfield, tdesc_add_flag): Declare.
8651 * xml-tdesc.c (struct tdesc_parsing_data): Rename current_union to
8652 current_type. Add current_type_size and current_type_is_flags.
8653 (tdesc_start_union): Clear the new fields.
8654 (tdesc_start_struct, tdesc_start_flags): New.
8655 (tdesc_start_field): Handle struct fields, including bitfields.
8656 (field_attributes): Make type optional. Add start and end.
8657 (union_children): Rename to struct_union_children.
8658 (union_attributes): Rename to struct_union_attributes. Add optional
8659 size.
8660 (flags_attributes): New.
8661 (feature_children): Add struct and flags.
8662 * features/gdb-target.dtd: Add flags and struct to features.
8663 Make field type optional. Add field start and end.
8664
90884b2b
L
86652010-03-01 H.J. Lu <hongjiu.lu@intel.com>
8666
8667 * amd64-linux-nat.c (AMD64_LINUX_USER64_CS): New.
8668 (amd64_linux_read_description): Likewise.
8669 (_initialize_amd64_linux_nat): Set to_read_description to
8670 amd64_linux_read_description.
8671
8672 * amd64-linux-tdep.c: Include "features/i386/amd64-linux.c".
8673 (amd64_linux_register_name): Removed.
8674 (amd64_linux_register_type): Likewise.
8675 (amd64_linux_core_read_description): New.
8676 (amd64_linux_init_abi): Set target description to
8677 tdesc_amd64_linux if needed. Support orig_rax in target
8678 description. Don't call set_gdbarch_register_name nor
8679 set_gdbarch_register_type. Call
8680 set_gdbarch_core_read_description.
8681 (_initialize_amd64_linux_tdep): Call
8682 initialize_tdesc_amd64_linux.
8683
8684 * amd64-linux-tdep.h (tdesc_amd64_linux): New.
8685
8686 * amd64-tdep.c: Include "features/i386/amd64.c".
8687 (amd64_register_names): Removed.
8688 (amd64_register_name): Likewise.
8689 (amd64_register_type): Likewise.
8690 (amd64_init_abi): Set num_core_regs and register_names. Set
8d95cc3b 8691 target description to tdesc_amd64 if needed. Don't call
90884b2b
L
8692 set_gdbarch_register_name nor set_gdbarch_register_type.
8693 (_initialize_amd64_tdep): New.
8694
8695 * i386-linux-nat.c (i386_linux_read_description): New.
8696 (_initialize_i386_linux_nat): Set to_read_description to
8697 i386_linux_read_description.
8698
8699 * i386-linux-tdep.c: Include "features/i386/i386-linux.c".
8700 (i386_linux_register_name): Removed.
8701 (i386_linux_core_read_description): New.
8702 (i386_linux_read_description): Likewise.
8703 (i386_linux_init_abi): Don't call set_gdbarch_register_name.
8704 Set target description to tdesc_i386_linux if needed. Support
8705 orig_eax. Set register_reggroup_p. Call
8706 set_gdbarch_core_read_description.
8707 (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_linux.
8708
8709 * i386-linux-tdep.h (tdesc_i386_linux): New.
8710
8711 * i386-nto-tdep.c (i386nto_regset_id): Replace I386_NUM_FREGS
8712 with I387_NUM_REGS.
8713
8714 * i386-tdep.c: Include "features/i386/i386.c".
8715 (i386_register_names): Make it const.
8716 (i386_mmx_names): Likewise.
8717 (i386_num_register_names): Removed.
8718 (i386_register_name): Likewise.
8719 (i386_eflags_type): Likewise.
8720 (i386_mxcsr_type): Likewise.
8721 (i386_sse_type): Likewise.
8722 (i386_register_type): Likewise.
8723 (i387_ext_type): Call tdesc_find_type instead of arch_float_type.
8724 (i386_pseudo_register_name): New.
8725 (i386_pseudo_register_type): Likewise.
8726 (i386_mmx_type): Make it static.
8727 (i386_gdbarch_init): Check arch. Replace I386_NUM_FREGS with
8728 I387_NUM_REGS. Set num_core_regs and register_names. Don't
8729 call set_gdbarch_register_name nor set_gdbarch_register_type.
8730 Set register_reggroup_p. Set target description to tdesc_i386
8731 if needed. Call set_tdesc_pseudo_register_type,
8732 set_tdesc_pseudo_register_name and tdesc_use_registers.
8733 (_initialize_i386_tdep): Call initialize_tdesc_i386.
8734 initialize_tdesc_x86_64.
8735
8736 * i386-tdep.h (gdbarch_tdep): Remove i386_eflags_type,
8737 i386_mxcsr_type and i386_sse_type. Add num_core_regs,
8738 register_names, tdesc and register_reggroup_p.
8739 (I386_NUM_FREGS): Removed.
8740 (i386_eflags_type): Likewise.
8741 (i386_mxcsr_type): Likewise.
8742 (i386_mmx_type): Likewise.
8743 (i386_sse_type): Likewise.
8744 (i386_register_name): Likewise.
8745 (i386_regnum): Add I386_MXCSR_REGNUM.
8746 (I386_SSE_NUM_REGS): Defined with I386_MXCSR_REGNUM.
8747
8748 * i387-tdep.h (I387_NUM_REGS): New.
8749
8750 * regformats/i386/i386-linux.dat: Generated.
8751 * regformats/i386/i386.dat: Likewise.
8752 * regformats/i386/amd64-linux.dat: Likewise.
8753 * regformats/i386/amd64.dat: Likewise.
8754
8755 * regformats/reg-i386-linux.dat: Removed.
8756 * regformats/reg-i386.dat: Likewise.
8757 * regformats/reg-x86-64-linux.dat: Likewise.
8758 * regformats/reg-x86-64.dat: Likewise.
8759
d0d0ab16
CV
87602010-03-01 Corinna Vinschen <vinschen@redhat.com>
8761
8762 * remote-fileio.c (remote_fileio_func_rename): Use Cygwin 1.7
8763 cygwin_conv_path API rather than the deprecated
8764 cygwin_conv_to_full_posix_path.
8765 * windows-nat.c:
8766 (GetModuleFileNameExA): Undefine for Cygwin.
8767 (GetModuleFileNameExW): Define for Cygwin.
8768 (get_module_name): Change size of pathbuf to PATH_MAX for Cygwin.
8769 Call GetModuleFileNameExW and convert path to POSIX using
8770 cygwin_conv_path.
8771 (windows_make_so): Always define p. Drop unused variable m.
8772 Don't use Win32 functions to check file existance, rather use
8773 access on Cygwin. Fetch system directory using GetSystemDirectoryW.
8774 Use canonicalize_file_name to get full path.
8775 (get_image_name): Use wcstombs, rather than WideCharToMultiByte
8776 to convert Unicode pathname to multibyte on Cygwin. Otherwise,
8777 use correct target buffer size in call to WideCharToMultiByte.
8778 (handle_load_dll): Change size of dll_buf to PATH_MAX for Cygwin.
8779 (windows_pid_to_exec_file): Change size of path to PATH_MAX for Cygwin.
8780 (windows_create_inferior): Convert all paths and arguments to wchar_t
8781 and use CreateProcessW on Cygwin.
8782 (_initialize_windows_nat): Disable DOS-style path warning on Cygwin.
8783 (bad_GetModuleFileNameExA): Undefine for Cygwin.
8784 (bad_GetModuleFileNameExW): Define for Cygwin.
8785 (_initialize_loadable): Load GetModuleFileNameExW into
8786 dyn_GetModuleFileNameExW on Cygwin. Don't load ANSI function on Cygwin.
8787
dc00d89f
PM
87882010-02-28 Phil Muldoon <pmuldoon@redhat.com>
8789
8790 PR python/11036
8791 * python/py-frame.c (frapy_read_var): Add block argument and logic
8792 to cope with user provided blocks.
8793
0e095b7e
JK
87942010-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8795
8796 * infcall.c (call_function_by_hand): Remove gdb_assert on sp and old_sp.
8797 New comment.
8798
2f9e05b4
CV
87992010-02-28 Corinna Vinschen <vinschen@redhat.com>
8800
8801 * Makefile.in (SUBDIR_MI_OBS): Move mi-common.o from here...
8802 (COMMON_OBS): ... to here since it's used unconditionally.
8803 (SUBDIR_MI_SRCS): Move mi/mi-common.c from here...
8804 (SFILES): To here.
8805
eb195664
DD
88062010-02-26 David Daney <ddaney@caviumnetworks.com>
8807
8808 * mips-linux-tdep.c: Update struct sigframe comments.
8809 (SIGFRAME_CODE_OFFSET): Delete macro.
8810 (mips_linux_o32_sigframe_init): Calculate sigcontext_base using
8811 this_frame's sp.
8812 (mips_linux_n32n64_sigframe_init): Same.
8813
97b0f3e2
KB
88142010-02-26 Kevin Buettner <kevinb@redhat.com>
8815
8816 * remote-mips.c (mips_load): Don't use pseudo-register when
8817 invalidating regcache.
8818
4069ebbe
DJ
88192010-02-26 Daniel Jacobowitz <dan@codesourcery.com>
8820
8821 * arm-tdep.c (thumb_get_next_pc): Correct conditional branch opcode.
8822
05071a4d
PA
88232010-02-26 Pedro Alves <pedro@codesourcery.com>
8824
8825 * NEWS: Add "New targets" section, and mention ARM Symbian
8826 support.
8827
6063c216
UW
88282010-02-26 Ulrich Weigand <uweigand@de.ibm.com>
8829
8830 * dwarf2loc.c (struct piece_closure): Remove ARCH member,
8831 add ADDR_SIZE member.
8832 (allocate_piece_closure): Update.
8833 (copy_pieced_value_closure): Likewise.
8834 (dwarf2_evaluate_loc_desc): Likewise.
8835 (read_pieced_value): Use DWARF address size instead of
8836 GDB's gdbarch_addr_bit as size of values on the DWARF stack.
8837
5107b149 88382010-02-26 Phil Muldoon <pmuldoon@redhat.com>
c8d5aac9 8839 Tom Tromey <tromey@redhat.com>
5107b149
PM
8840
8841 * python/py-type.c (typy_lookup_typename): Add in block argument.
8842 If provided restrict lookup to specified blocks.
8843 (gdbpy_lookup_type): Likewise.
8844 (typy_lookup_type): Likewise.
8845
78664fa3 88462010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
8d95cc3b 8847
78664fa3
PA
8848 Symbian config
8849
8850 gdb/
8851 * arm-symbian-tdep.c: New.
8852 * configure.tgt (arm*-*-symbianelf*): New target.
8853 (*-*-symbianelf*): New OS.
8854 * osabi.c (gdb_osabi_names): Add Symbian.
8855 * defs.h (gdb_osabi): Add GDB_OSABI_SYMBIAN.
8856 * Makefile.in (ALL_TARGET_OBJS): Add arm-symbian-tdep.o.
8857 (ALLDEPFILES): Add arm-symbian-tdep.c.
8858
eb73e134
DJ
88592010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
8860
8861 * symfile.c (find_lowest_section): Include SEC_ALLOC sections.
8862
46ef47e5
PA
88632010-02-24 Pedro Alves <pedro@codesourcery.com>
8864
8865 * mi/mi-main.c (mi_cmd_execute): Fix typo.
8866
f3e9a817 88672010-02-24 Phil Muldoon <pmuldoon@redhat.com>
8d95cc3b 8868 Tom Tromey <tromey@redhat.com>
f3e9a817
PM
8869 Thiago Jung Bauermann <bauerman@br.ibm.com>
8870
8871 * python/python.c (_initialize_python): Call
8872 gdbpy_initialize_symtabs, gdbpy_initialize_symbols and
8873 gdbpy_initialize_blocks.
8874 * python/python-internal.h: Declare struct symbol, block and
8875 symtab_and_line. Declare block_object_type and
8876 symbol_object_type
8877 (gdbpy_lookup_symbol gdbpy_block_for_pc)
8878 (symtab_and_line_to_sal_object, symtab_to_symtab_object)
8879 (symbol_to_symbol_object, block_to_block_object)
8880 (gdbpy_initialize_symtabs,gdbpy_initialize_symbols)
8881 (gdbpy_initialize_blocks ): Declare.
8882 * python/py-frame.c (frapy_block, frapy_function, frapy_find_sal)
8883 (frapy_select): Add methods.
8884 (frapy_read_var): Add symbol branch.
8885 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-symbol, py-symtab,
8886 py-block.
8887 (SUBDIR_PYTHON_SRCS): Likewise.
8888 (py-symbol.o): New rule.
8889 (py-symtab.o): Likewise.
8890 (py-block.o): Likewise.
8891 * python/py-symbol.c: New file.
8892 * python/py-symtab.c: Likewise.
8893 * python/py-block.c: Likewise.
8894
24291992
PA
88952010-02-24 Pedro Alves <pedro@codesourcery.com>
8896
8897 PR gdb/11321
8898
8899 * inferior.h (prepare_for_detach): Declare.
8900 (struct inferior) <detaching>: New field.
8901 * infrun.c (prepare_for_detach): New.
8902 (handle_inferior_event) <random signal>: Don't stop if detaching.
8903 * target.c (target_detach): Call prepare_for_detach.
8904
fc1cf338
PA
89052010-02-24 Pedro Alves <pedro@codesourcery.com>
8906
8907 Per-process displaced stepping queue.
8908
8909 * infrun.c (displaced_step_ptid, displaced_step_request_queue)
8910 (displaced_step_gdbarch, displaced_step_closure,
8911 (displaced_step_original, displaced_step_copy): Move globals to
8912 this...
8913 (struct displaced_step_inferior_state): ... new structure.
8914 (displaced_step_inferior_states): New global.
8915 (get_displaced_stepping_state, add_displaced_stepping_state)
8916 (remove_displaced_stepping_state, infrun_inferior_exit): New
8917 functions.
8918 (displaced_step_clear): Add displaced_step_inferior_state
8919 parameter, and adjust to handle it.
8920 (displaced_step_clear_cleanup): Parameter is now a
8921 displaced_step_inferior_state. Adjust.
8922 (displaced_step_prepare): Adjust.
8923 (displaced_step_fixup, displaced_step_fixup)
8924 (infrun_thread_ptid_changed, resume): Adjust.
8925 (init_wait_for_inferior): Don't call displaced_step_clear.
8926 (infrun_thread_stop_requested): Rewrite.
8927 (_initialize_infrun): Install infrun_inferior_exit as
8928 inferior_exit observer.
8929
0723dbf5
PA
89302010-02-24 Pedro Alves <pedro@codesourcery.com>
8931
8932 * inferior.h (ptid_match): Declare.
8933 * infrun.c (ptid_match): New.
8934 * remote.c (queued_stop_reply): Rewrite and use ptid_match.
8935 (handle_notification): Add debug output.
8936 * linux-nat.c (ptid_match): Delete.
8937
09de9781
DM
89382010-02-24 David S. Miller <davem@davemloft.net>
8939
8940 * gdb_ptrace.h (PT_SYSCALL): If PTRACE_SYSCALL is available, use it.
8941 * syscalls/sparc-linux.xml: New.
8942 * syscalls/sparc64-linux.xml: New.
8943 * Makefile.in (XML_SYSCALL_FILES): Add new syscall XML files.
8944 * sparc-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC32): Define.
8945 (sparc32_linux_get_syscall_number): New function.
8946 (sparc32_linux_init_abi): Set syscall XML file name and hook up
8947 syscall number fetcher.
8948 * sparc64-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC64): Define.
8949 (sparc64_linux_get_syscall_number): New function.
8950 (sparc64_linux_init_abi): Set syscall XML file name and hook up
8951 syscall number fetcher.
8952
a79b8f6e
VP
89532010-02-24 Vladimir Prus <vladimir@codesourcery.com>
8954
8955 Multiexec MI
8956
8957 * breakpoint.c (clear_syscall_counts): Take struct inferior*.
8958 * inferior.c (add_inferior_silent): Notify inferior_added
8959 observer.
8960 (delete_inferior_1): Notify inferior_removed observer.
8961 (exit_inferior_1): Pass inferior, not pid, to observer.
8962 (inferior_appeared): Likewise.
8963 (add_inferior_with_spaces): New.
8964 (add_inferior_command): Use the above.
8965 * inferior.h (delete_inferior_1, add_inferior_with_spaces):
8966 Declare.
8967
8968 * inflow.c (inflow_inferior_exit): Likewise.
8969 * jit.c (jit_inferior_exit_hook): Likewise.
8970
8971 * mi/mi-cmds.c (mi_cmds): Register add-inferior and
8972 remove-inferior.
8973 * mi/mi-cmds.h (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
8974 * mi/mi-interp.c (mi_inferior_added, mi_inferior_removed): New.
8975 (report_initial_inferior): New.
8976 (mi_inferior_removed): Register the above. Make sure
8977 inferior_added observer is called on the first inferior.
8978 (mi_new_thread, mi_thread_exit): Thread group is now identified by
8979 inferior number, not pid.
8980 (mi_solib_loaded, mi_solib_unloaded): Report which inferiors are
8981 affected.
8982 * mi/mi-main.c (current_context): New.
8983 (proceed_thread_callback): Use typed closure.
8984 Proceed everything if pid is 0. Most implementation split into
8985 (proceed_thread): ... this.
8986 (run_one_inferior): New.
8987 (mi_cmd_exec_continue, mi_cmd_exec_interrupt, mi_cmd_exec_run):
8988 Adjust for multiexec behaviour.
8989 (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
8990 (mi_cmd_execute): Handle the 'thread-group' option here.
8991 Do some extra checks.
8992 * mi-parse.c (mi_parse): Handle the --all and --thread-group
8993 options.
8994 * mi-parse.h (struct mi_parse): New fields all and thread_group.
8995
115d30f9
VP
89962010-02-24 Vladimir Prus <vladimir@codesourcery.com>
8997
8998 Make -exec-run a proper MI commands.
8999
9000 * mi/mi-cmds.h (mi_cmd_exec_run): Declare.
9001 * mi/mi-cmds.c (mi_cmds): Adjust.
9002 * mi/mi-main.c (mi_cmd_exec_run): New.
9003
06cd862c
PA
90042010-02-24 Pedro Alves <pedro@codesourcery.com>
9005 Stan Shebs <stan@codesourcery.com>
9006
9007 * tracepoint.h (set_traceframe_number)
9008 (cleanup_restore_current_traceframe): Declare.
9009 * tracepoint.c (set_traceframe_number): New.
9010 (struct current_traceframe_cleanup): New.
9011 (do_restore_current_traceframe_cleanup)
9012 (restore_current_traceframe_cleanup_dtor)
9013 (make_cleanup_restore_current_traceframe): New.
9014 * infrun.c: Include tracepoint.h.
9015 (fetch_inferior_event): Switch out and in of tfind mode.
9016
ab92d69b
PA
90172010-02-24 Pedro Alves <pedro@codesourcery.com>
9018
9019 * breakpoint.c (breakpoint_init_inferior): Also delete
9020 bp_shlib_event breakpoints.
9021 * solib-frv.c (enable_break): Remove call to
9022 remove_solib_event_breakpoints.
9023 * solib-svr4.c (enable_break): Ditto.
9024 * solib-darwin.c (darwin_solib_create_inferior_hook): Ditto.
9025 * solib-pa64.c (pa64_solib_create_inferior_hook): Ditto.
9026 * solib-som.c (som_solib_create_inferior_hook): Ditto.
9027 * solib-spu.c (spu_enable_break): Ditto.
9028
e707a91d
PA
90292010-02-23 Harald Koenig <H.Koenig@science-computing.de>
9030
9031 * c-exp.y (token_and_value): s/union YYSTYPE/YYSTYPE.
9032
cfce2ea2
PA
90332010-02-23 Harald Koenig <H.Koenig@science-computing.de>
9034
9035 * varobj.c (varobj_update): Avoid non-constants in initializers.
9036
05566b3b
TT
90372010-02-23 Tom Tromey <tromey@redhat.com>
9038
9039 * dwarf2loc.c (read_pieced_value) <DWARF_VALUE_STACK>: Correctly
9040 handle big-endian values.
9041 (dwarf2_evaluate_loc_desc) <DWARF_VALUE_STACK>: Likewise.
9042
85d721b8
PA
90432010-02-22 Pedro Alves <pedro@codesourcery.com>
9044
9045 PR9605
9046
9047 gdb/
9048 * breakpoint.c (insert_bp_location): If inserting the read
9049 watchpoint failed, fallback to an access watchpoint.
9050 (bpstat_check_watchpoint): Stop for read watchpoint triggers even
9051 if the value changed, if not watching the same memory for writes.
9052 (watchpoint_locations_match): Add comment.
9053 (update_global_location_list): Copy the location's watchpoint type.
9054 * i386-nat.c (i386_length_and_rw_bits): It's an internal error to
9055 handle read watchpoints here.
9056 (i386_insert_watchpoint): Read watchpoints aren't supported.
9057 * remote.c (remote_insert_watchpoint): Return 1 for unsupported
9058 packets.
9059 * target.h (target_insert_watchpoint): Update description.
9060
48ea67a7
TT
90612010-02-19 Tom Tromey <tromey@redhat.com>
9062
9063 * p-typeprint.c (pascal_type_print_varspec_prefix): Update.
9064 * m2-typeprint.c (m2_print_type): Update.
9065 * gdbtypes.c (recursive_dump_type): Update.
9066 (copy_type_recursive): Update.
9067 * c-typeprint.c (c_type_print_varspec_prefix): Update.
9068 (c_type_print_base): Update.
9069 * gdbtypes.h (TYPE_CODE_TEMPLATE, TYPE_CODE_TEMPLATE_ARG):
9070 Remove.
9071 (struct cplus_struct_type) <ntemplate_args>: Remove.
9072 <struct template_arg>: Remove.
9073 <is_dynamic>: Move earlier.
9074 (TYPE_TEMPLATE_ARGS): Remove.
9075 (TYPE_NTEMPLATE_ARGS): Remove.
9076 (TYPE_TEMPLATE_ARG): Remove.
9077
48e32051
TT
90782010-02-19 Tom Tromey <tromey@redhat.com>
9079
9080 PR c++/8693, PR c++/9496:
9081 * cp-namespace.c (cp_lookup_nested_type): Handle TYPE_CODE_UNION.
9082 * c-exp.y (lex_one_token): Rename from yylex. Don't call
9083 write_dollar_variable. Don't try to classify NAME tokens.
9084 (token_and_value): New type.
9085 (token_fifo, popping, name_obstack): New globals.
9086 (classify_name): New function.
9087 (classify_inner_name): Likewise.
9088 (yylex): Likewise.
9089 (VARIABLE): Now has type sval.
9090 (exp : VARIABLE): Call write_dollar_variable.
9091 (qualified_name): Use TYPENAME, not typebase. Add production for
9092 multiple "::" instances.
9093 (variable): Use name_not_typename.
9094 (qualified_type): Remove.
9095 (typebase): Update.
9096
672d9c23
JK
90972010-02-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9098
9099 * symfile.c (addr_info_make_relative): Extend comment. Move SECT to
9100 a more inner block. Initialize ADDR by LOWER_OFFSET only if it was
9101 found by bfd_get_section_by_name.
9102 * symfile.h (struct section_addr_info) <sectindex>: New comment.
9103
bfbf3774
JB
91042010-02-19 Joel Brobecker <brobecker@adacore.com>
9105
9106 * NEWS: Add new "[...] since 7.1" section. Rename the "[...] since
9107 7.0 section" into "Changes in 7.1".
9108
6756b09b 91092010-02-19 Joel Brobecker <brobecker@adacore.com>
9110
9111 GDB 7.1 branch created (branch timestamp: 2010-02-18 20:00 UTC)
9112 * version.in: Bump version to 7.1.50.20100219-cvs.
9113
202b96c1
PA
91142010-02-18 Harald Koenig <H.Koenig@science-computing.de>
9115
9116 * mi/mi-main.c (mi_cmd_exec_jump): Drop unneeded `return'.
9117 * symfile.c (symfile_map_offsets_to_segments): Fix assertion.
9118
de2e5182
TT
91192010-02-17 Tom Tromey <tromey@redhat.com>
9120
9121 * NEWS: Add Python API Improvements section.
9122
7280022e
DJ
91232010-02-18 Daniel Jacobowitz <dan@codesourcery.com>
9124
9125 * NEWS: Correct typo.
9126
6f451e5e
TT
91272010-02-17 Tom Tromey <tromey@redhat.com>
9128
9129 * objfiles.c (gdb_bfd_ref): Handle abfd==NULL.
9130
012836ea
JK
91312010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
9132
9133 * symfile.c (build_section_addr_info_from_objfile): Include sections
9134 only if they are SEC_ALLOC or SEC_LOAD.
9135
d182d057
L
91362010-02-17 H.J. Lu <hongjiu.lu@intel.com>
9137
9138 PR shlibs/11293
9139 * solib-svr4.c (enable_break): Check size of CORE_ADDR instead
9140 of ULONGEST for address size.
9141
4eef138c
TT
91422010-02-17 Tom Tromey <tromey@redhat.com>
9143
9144 * NEWS: Add C++ improvements section.
9145
548a926a
UW
91462010-02-17 Ulrich Weigand <uweigand@de.ibm.com>
9147
9148 * python/python-internal.h [!WITH_THREAD] (PyGILState_Release,
9149 PyThreadState_Swap): Avoid "statement with no effect" warning.
9150
ad3a0e5b
JK
91512010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
9152
9153 * solib-svr4.c (enable_break <target_auxv_search>): New variable
9154 addr_bit. Adjust LOAD_ADDR sign for cross-arch inferiors.
9155
243e2c5d 91562010-02-17 Tristan Gingold <gingold@adacore.com>
b2319725 9157 Petr Hluzin <petr.hluzin@gmail.com>
243e2c5d
TG
9158
9159 * avr-tdep.c (avr_scan_prologue): Convert an if statement to a
9160 gdb_assert. Fix info->size for SIG prologue.
9161
275f2e57
DJ
91622010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
9163
9164 * infcmd.c (show_inferior_tty_command): Check for NULL.
9165 Correct output message.
9166
791dfb64
DJ
91672010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
9168
9169 * linespec.c (decode_line_1): Handle FILE:FUNCTION even if
9170 FUNCTION contains parentheses. Improve removal of a trailing
9171 single quote.
9172
14d1346b
DJ
91732010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
9174
9175 * gcore.c (do_bfd_delete_cleanup): New function.
9176 (gcore_command): Use it. Discard the cleanup after success.
9177 (gcore_copy_callback): Delete dead code.
9178
e76ab67f
DJ
91792010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
9180
9181 * symfile.c (addr_info_make_relative): Always use
9182 find_lowest_section.
9183
71dee663
SW
91842010-02-16 Sami Wagiaalla <swagiaal@redhat.com>
9185
9186 * NEWS: Added entry for namespace fixes.
9187
a9854bd5
TT
91882010-02-15 Tom Tromey <tromey@redhat.com>
9189
9190 * dwarf2read.c (guess_structure_name): Allocate name on the
9191 objfile obstack.
9192
fd9e29b5
TT
91932010-02-15 Tom Tromey <tromey@redhat.com>
9194
9195 * c-typeprint.c (c_type_print_base): Reverse order of test.
9196
4e1fc9c9
JK
91972010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9198
9199 * solib-svr4.c (LM_ADDR_CHECK): New variable minpagesize. Optionally
9200 initialize it from ELF BFD. Extend the prelink condition by it.
9201
74164c56
JK
92022010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9203
9204 * defs.h (parse_pid_to_attach): New.
9205 * utils.c (parse_pid_to_attach): New.
9206 * darwin-nat.c (darwin_attach): Replace ARGS parsing by parse_pid.
9207 * gnu-nat.c (gnu_attach): Likewise.
9208 * nto-procfs.c (procfs_attach): Likewise.
9209 * procfs.c (procfs_attach): Likewise.
9210 * windows-nat.c (windows_attach): Likewise.
9211 * inf-ptrace.c (inf_ptrace_attach): Likewise. Remove variable dummy.
9212 * inf-ttrace.c (inf_ttrace_attach): Likewise.
9213 * remote.c (extended_remote_attach_1): Likewise. New comment on getpid
9214 check.
9215
bf6adea8
MM
92162010-02-14 Masaki Muranaka <monaka@monami-software.com>
9217
9218 * MAINTAINERS: Add myself for write after approval privileges.
9219
28f34a8f
JK
92202010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9221
9222 * solib-svr4.c: (LM_ADDR_CHECK): Move variable align to a more inner
9223 block.
9224
701ed6dc
JK
92252010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9226
9227 * solib-svr4.c: (LM_ADDR_CHECK): Print successful prelink adjustment
9228 only if INFO_VERBOSE.
9229
e5829bee
MS
92302010-02-12 Tomas Holmberg <th@virtutech.com>
9231
9232 * mi/mi-main.c: Added the --reverse flag to the following MI
9233 commands: exec-continue, exec-finish, exec-next, exec-step,
9234 exec-next-instruction, exec-step-instruction. This is to
9235 support reverse execution over the MI interface to gdb.
9236
081dfbf7
PA
92372010-02-12 Pedro Alves <pedro@codesourcery.com>
9238
9239 * tracepoint.c (_initialize_tracepoint): Specify that the address
9240 range of `tfind outsize' is exclusive, and that the address range
9241 of `tfind range' is inclusive, in the commands' help strings.
9242
ecc13e53
JB
92432010-02-12 Joel Brobecker <brobecker@adacore.com>
9244
9245 Spurious "dll not found" error messages on x64-windows.
9246 * windows-nat.c: Add include of complaints.h.
9247 (handle_unload_dll): Change dll-not-found error into a complaint.
9248
15c3d785
PA
92492010-02-12 Pedro Alves <pedro@codesourcery.com>
9250
9251 * breakpoint.c (allocate_bp_location): Use bp_loc_other for
9252 bp_tracepoint and bp_fast_tracepoint, not
9253 bp_loc_software_breakpoint.
9254 (update_global_location_list): Tracepoints are never duplicates of
9255 anything.
9256
fd9b8c24
PA
92572010-02-12 Pedro Alves <pedro@codesourcery.com>
9258
9259 * breakpoint.c (break_command_really): Change return type to int.
9260 Return false if no breakpoint was created, true otherwise.
9261 (trace_command): Don't set the tracepoint count if no tracepoint
9262 was created.
9263 (ftrace_command): Ditto.
9264 (create_tracepoint_from_upload): Bail out if the tracepoint wasn't
9265 created in the breakpoints table.
9266
5c0d192f
JK
92672010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
9268 Ulrich Weigand <uweigand@de.ibm.com>
9269
9270 * solib-svr4.c (LM_ADDR_CHECK): New comment on PPC-aware condition.
9271
5d5b640e
PA
92722010-02-11 Pedro Alves <pedro@codesourcery.com>
9273
9274 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out if
9275 the offset value isn't of integral type.
9276
e5a0a904
JK
92772010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
9278
9279 * breakpoint.c (delete_breakpoint) <bpt->related_breakpoint != NULL>:
9280 New.
9281
be636754
PA
92822010-02-11 Pedro Alves <pedro@codesourcery.com>
9283
9284 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out on
9285 non-subscriptable types.
9286 * valarith.c (binop_types_user_defined_p): New, abstracted out
9287 from ...
9288 (binop_user_defined_p): ... this.
9289 * value.h (binop_types_user_defined_p): Declare.
9290
10ef8d6a
PA
92912010-02-11 Pedro Alves <pedro@codesourcery.com>
9292
9293 * tracepoint.c (tfile_open): Remove spurious discard_cleanups.
9294 Merge uploaded TSVs before merging uploaded tracepoints.
9295
b1028c8e
PA
92962010-02-11 Pedro Alves <pedro@codesourcery.com>
9297
9298 * ax-gdb.c (gen_deref): Don't allow dereferencing void pointers.
9299
7a93fb82 93002010-02-11 Vladimir Prus <vladimir@codesourcery.com>
84d90c10 9301
7a93fb82
VP
9302 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Add extra
9303 whitespace character after a dot in comment.
9304 (mi_cmd_stack_list_arguments, mi_cmd_stack_list_variables):
9305 Likewise.
9306 (list_args_or_locals): For the 'all' (that is
9307 -stack-list-variables) case, always output list of tuples.
9308 Output 'arg' field if variable is argument.
84d90c10 9309
92981e24
TT
93102010-02-10 Tom Tromey <tromey@redhat.com>
9311
9312 * parser-defs.h (parser_debug): Declare.
9313 * parse.c (_initialize_parse): Install "debug parser" set/show
9314 command.
9315 (parser_debug): New global.
9316 (show_parserdebug): New function.
9317 * c-exp.y (c_parse): Set yydebug.
9318
9fd3625f
L
93192010-02-10 H.J. Lu <hongjiu.lu@intel.com>
9320
9321 * target-descriptions.c (tdesc_type): Add TDESC_TYPE_I387_EXT,
9322 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
9323 (tdesc_predefined_types): Add i387_ext, i386_eflags and
9324 i386_mxcsr.
9325 (tdesc_find_type): New.
9326 (tdesc_gdb_type): Use tdesc_find_type. Handle TDESC_TYPE_I387_EXT,
9327 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
9328
9329 * target-descriptions.h (tdesc_find_type): New.
9330
2fe842e5
MS
93312010-02-10 Michael Snyder <msnyder@vmware.com>
9332
9333 * gdb-gdb.py: Comment fix.
9334
f18b4cab
TG
93352010-02-09 Tristan Gingold <gingold@adacore.com>
9336
9337 * machoread.c (macho_symfile_relocate): New function.
9338 (macho_sym_fns): Use macho_symfile_relocate instead of
9339 default_symfile_relocate.
9340 (macho_oso_data): New type.
9341 (current_oso): New variable.
9342 (macho_add_oso_symfile): Do not compute section_addr_info, but
9343 instead set vma of sections.
9344 Do not set SYMFILE_VERBOSE to call symbol_file_add_from_bfd.
9345 Set and clear current_oso.
9346
31dbc1c5
JB
93472010-02-09 Joel Brobecker <brobecker@adacore.com>
9348
9349 Wrong type description for tagged type parameter.
9350 * ada-lang.c (ada_evaluate_subexp) [OP_VAR_VALUE]: When noside is
9351 EVAL_AVOID_SIDE_EFFECTS, also handle the case when type is a
9352 reference to a tagged type.
9353
399f313b
TG
93542010-02-09 Tristan Gingold <gingold@adacore.com>
9355
9356 * objfiles.c (objfile_separate_debug_iterate): Do not iterate on
9357 brothers of the parent.
9358
714f19d5
TT
93592010-02-08 Tom Tromey <tromey@redhat.com>
9360
9361 PR c++/8017:
9362 * value.h: Update.
9363 * valops.c (search_struct_field): Make 'name' const.
9364 (search_struct_method): Likewise.
9365 (find_method_list): Make 'method' const.
9366 (value_struct_elt): Make 'name' and 'err' const.
9367 (value_find_oload_method_list): Make 'method' const.
9368 (find_overload_match): Make 'name' const.
9369 * eval.c (evaluate_subexp_standard): New locals function,
9370 function_name.
9371 <OP_FUNCALL>: Handle OP_SCOPE specially.
9372
de0a0249
UW
93732010-02-08 Ulrich Weigand <uweigand@de.ibm.com>
9374
9375 * infrun.c (handle_inferior_event): Do not look up regcache
9376 for exited processes.
9377
8d95cc3b 93782010-02-08 Chris Moller <moller@mollerware.com>
83b10087
CM
9379
9380 PR gdb/10728
9381 * valarith.c (value_ptrdiff): Added a test for a zero type length,
8d95cc3b 9382 warn if found, and assume length = 1.
83b10087 9383
99903ae3
CM
93842010-02-08 Chris Moller <cmoller@redhat.com>
9385
9386 PR gdb/9067
9387 * cp-valprint.c (cp_print_value_fields) Fix use of obstacks.
6036c742 9388 (cp_print_static_field) Fix use of obstacks.
8d95cc3b 9389
e3e9f5a2
PA
93902010-02-08 Pedro Alves <pedro@codesourcery.com>
9391
9392 * linux-nat.c (linux_nat_resume): In non-stop, also only tag
9393 resumed LWPs as resumed.
9394 (linux_nat_wait_1): If there's no resumed LWP in the set of LWPs
9395 we're waiting for, bail out with TARGET_WAITKIND_IGNORE, instead
9396 of throwing an internal error. If an LWP of a process we're not
9397 waiting for reports a signal, don't force collecting a SIGSTOP,
9398 and if it was breakpoint hit in non-stop mode, cancel it. Don't
9399 go through all LWPs cancelling breakpoints in non-stop mode.
9400 (resume_stopped_resumed_lwps): New.
9401 (linux_nat_wait): Use it.
9402
46763423
L
94032010-02-07 H.J. Lu <hongjiu.lu@intel.com>
9404
9405 * features/Makefile (WHICH): Add i386/i386, i386/i386-linux,
9406 i386/amd64 and i386/amd64-linux.
9407 (i386/i386-expedite): New.
9408 (i386/i386-linux-expedite): Likewise.
9409 (i386/amd64-expedite):Likewise.
9410 (i386/amd64-linux-expedite): Likewise.
9411 ($(outdir)/i386/i386-linux.dat): Likewise.
9412 ($(outdir)/i386/amd64.dat): Likewise.
9413 ($(outdir)/i386/amd64-linux.dat): Likewise.
9414
9415 * features/i386/32bit-core.xml: New.
9416 * features/i386/32bit-linux.xml: Likewise.
9417 * features/i386/32bit-sse.xml: Likewise.
9418 * features/i386/64bit-core.xml: Likewise.
9419 * features/i386/64bit-linux.xml: Likewise.
9420 * features/i386/64bit-sse.xml: Likewise.
9421 * features/i386/i386-linux.xml: Likewise.
9422 * features/i386/i386.xml: Likewise.
9423 * features/i386/amd64-linux.xml: Likewise.
9424 * features/i386/amd64.xml: Likewise.
9425 * features/i386/i386-linux.c: Likewise.
9426 * features/i386/i386.c: Likewise.
9427 * features/i386/amd64-linux.c: Likewise.
9428 * features/i386/amd64.c: Likewise.
9429
82856980
SW
94302010-02-05 Sami Wagiaalla <swagiaal@redhat.com>
9431
9432 PR c++/7935:
9433 * cp-support.h: Added char* alias element to using_direct data
9434 struct.
9435 (cp_add_using): Added char* alias argument.
9436 (cp_add_using_directive): Ditto.
9437 * cp-namespace.c: Updated with the above changes.
9438 (cp_lookup_symbol_imports): Check for aliases.
9439 * dwarf2read.c (read_import_statement): Figure out local alias
9440 for the import and pass it on to cp_add_using.
9441 (read_namespace): Pass alias argument to cp_add_using.
9442
d18b8b7a
HZ
94432010-02-05 Hui Zhu <teawater@gmail.com>
9444
9445 * defs.h (gdb_bfd_errmsg): New extern.
9446 * exec.c (exec_file_attach): Change bfd_errmsg to
9447 gdb_bfd_errmsg.
9448 * utils.c (AMBIGUOUS_MESS1): New macro.
9449 (AMBIGUOUS_MESS2): New macro.
9450 (gdb_bfd_errmsg): New function.
9451
48379de6
DE
94522010-02-04 Doug Evans <dje@google.com>
9453
9454 * solib-svr4.c (enable_break): Add comment.
9455
4ee73e90
AG
94562010-02-04 Anthony Green <green@moxielogic.com>
9457
9458 * moxie-tdep.c (moxie_analyze_prologue): Fail protocol analysis
9459 gracefully.
9460
1a334831
TT
94612010-02-04 Tom Tromey <tromey@redhat.com>
9462
9463 * valops.c (search_struct_field): Account for
9464 value_embedded_offset. Fix check for virtual base past the end of
9465 the object. Use value_copy when making a slice of the value.
9466
1180b2c8
L
94672010-02-04 H.J. Lu <hongjiu.lu@intel.com>
9468
9469 PR tui/9622
9470 * tui/tui-interp.c (tui_init): Call tui_initialize_readline
9471 only if gdb_stdout is a tty.
9472
c3f08eb7
L
94732010-02-04 H.J. Lu <hongjiu.lu@intel.com>
9474
9475 * target-descriptions.c: Include "osabi.h".
9476 (maint_print_c_tdesc_cmd): Generate set_tdesc_osabi for valid
9477 OSABI.
9478
2d33f7b8
TG
94792010-02-04 Tristan Gingold <gingold@adacore.com>
9480
9481 * machoread.c (macho_add_oso): Renamed to macho_register_oso.
9482 (macho_symtab_read): Adjust calls to macho_add_oso.
9483 (macho_oso_symfile): Renamed to macho_symfile_read_all_oso.
9484 (macho_symfile_read): Adjust call to macho_oso_symfile.
9485 (macho_new_init): Move this function after declarations.
9486 (macho_symfile_init): Ditto.
9487 * darwin-nat-info.c (darwin_lib_gdb_ports): Remove.
9488 * darwin-nat.c (darwin_lookup_task): Remove unused prototype.
9489
11334b82
VP
94902010-02-04 Vladimir Prus <vladimir@codesourcery.com>
9491
9492 Include MI command in remotelog.
9493
9494 * mi/mi-main.c (mi_execute_command): Call target_log_command.
9495
ff97be06
L
94962010-02-03 H.J. Lu <hongjiu.lu@intel.com>
9497
9498 * remote.c (remote_state): Remove gdbarch.
9499 (init_remote_state): Don't set gdbarch.
9500 (remote_query_supported): Pass target_gdbarch instead of
9501 rs->gdbarch to gdbarch_qsupported.
9502
75cebea9
L
95032010-02-03 H.J. Lu <hongjiu.lu@intel.com>
9504
9505 * gdbarch.sh: Add qsupported.
9506
9507 * gdbarch.c: Regenerated.
9508 * gdbarch.h: Likewise.
9509
9510 * remote.c (remote_state): Add gdbarch.
9511 (init_remote_state): Set gdbarch.
9512 (remote_query_supported): Support gdbarch_qsupported.
9513
c1dec97b
DJ
95142010-02-03 Daniel Jacobowitz <dan@codesourcery.com>
9515
9516 * amd64fbsd-nat.c (amd64fbsd_supply_pcb): Also check for
9517 __FreeBSD_kernel_version.
9518
ac8035ab
TG
95192010-02-03 Tristan Gingold <gingold@adacore.com>
9520
9521 * symfile.h (struct sym_fns): Add sym_relocate field.
9522 (default_symfile_relocate): New prototype.
9523 (symfile_relocate_debug_section): First argument is now an objfile.
9524 * symfile.c (default_symfile_relocate): Rename from
9525 symfile_relocate_debug_section, first argument is now an objfile.
9526 (symfile_relocate_debug_section): New function.
9527 * coffread.c (coff_sym_fns): Set sym_relocate field.
9528 * somread.c (som_sym_fns): Ditto.
9529 * mipsread.c (ecoff_sym_fns): Ditto.
9530 * machoread.c (macho_sym_fns): Ditto.
9531 * elfread.c (elf_sym_fns): Ditto.
9532 * dwarf2read.c (dwarf2_read_section): Ditto.
9533 * xcoffread.c (xcoff_sym_fns): Ditto.
9534 * dbxread.c (aout_sym_fns): Ditto.
9535 (dbx_psymtab_to_symtab): Adjust call to symfile_relocate_debug_section.
9536 (elfstab_build_psymtabs): Ditto.
9537
be52b756
L
95382010-02-03 H.J. Lu <hongjiu.lu@intel.com>
9539
9540 * defs.h (MAX_REGISTER_SIZE): Increase to 32.
9541
9c3c02fd
TT
95422010-02-02 Tom Tromey <tromey@redhat.com>
9543
9544 * valops.c (value_cast_structs): Try downcasting using the RTTI
9545 type.
9546
f23f4c59
TT
95472010-02-02 Tom Tromey <tromey@redhat.com>
9548
9549 * gnu-v2-abi.c: Don't include gnu-v2-abi.h.
9550 (gnuv2_baseclass_offset): Now static.
9551 * Makefile.in (HFILES_NO_SRCDIR): Remove gnu-v2-abi.h.
9552 * gnu-v2-abi.h: Remove.
9553
0cc2414c
TT
95542010-02-02 Tom Tromey <tromey@redhat.com>
9555
9556 * m2-typeprint.c (m2_record_fields): Don't use
9557 TYPE_DECLARED_TYPE.
9558 * gdbtypes.h (TYPE_DECLARED_CLASS): New macro.
9559 (struct main_type) <flag_declared_class>: New field.
9560 (struct cplus_struct_type) <declared_type>: Remove.
9561 <ntemplate_args>: Move earlier.
9562 (DECLARED_TYPE_CLASS, DECLARED_TYPE_UNION, DECLARED_TYPE_STRUCT)
9563 (DECLARED_TYPE_TEMPLATE): Remove.
9564 (TYPE_DECLARED_TYPE): Remove.
9565 * gdbtypes.c (lookup_union): Don't use TYPE_DECLARED_TYPE.
9566 * dwarf2read.c (read_structure_type): Set TYPE_DECLARED_CLASS.
9567 * c-typeprint.c (c_type_print_base): Use TYPE_DECLARED_CLASS, not
9568 TYPE_DECLARED_TYPE.
9569
edf3d5f3
TT
95702010-02-02 Tom Tromey <tromey@redhat.com>
9571
9572 PR c++/11226, PR c++/9629, PR c++/9688, PR c++/8890:
9573 * valops.c (search_struct_field): Compute nbases after calling
9574 CHECK_TYPEDEF.
9575 (check_field): Call CHECK_TYPEDEF.
9576 * cp-valprint.c (cp_print_value): Pass correct address to
9577 baseclass_offset. Fix check for virtual base past the end of the
9578 object. Don't offset address passed to cp_print_value_fields or
9579 apply_val_pretty_printer.
9580 (cp_print_value_fields): Fix call to val_print.
9581 (cp_print_value_fields_rtti): New function.
9582 * c-valprint.c (c_val_print): Use cp_print_value_fields_rtti.
9583 * p-valprint.c (pascal_object_print_value_fields): Fix call to
9584 val_print.
9585 * python/py-prettyprint.c (apply_val_pretty_printer): Add embedded
9586 offset to address.
9587 * language.h (struct language_defn) <la_val_print>: Document.
9588 * c-lang.h (cp_print_value_fields_rtti): Declare.
9589
e4b7f41c
JK
95902010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9591
9592 PR libc/11214:
9593 * linux-low.c (linux_tracefork_child) [!(__UCLIBC__ && HAS_NOMMU)]: New.
9594 (linux_test_for_tracefork): Move `stack' into [__UCLIBC__ && HAS_NOMMU].
9595 (linux_test_for_tracefork) [!(__UCLIBC__ && HAS_NOMMU)]: New.
9596
7618e12b
DJ
95972010-02-01 Michael Matz <matz@suse.de>
9598 Daniel Jacobowitz <dan@codesourcery.com>
9599
e4b7f41c 9600 * i386-tdep.c (i386_frame_cache): Assume valid anonymous
7618e12b
DJ
9601 functions use a frame pointer.
9602
b381ea14
JK
96032010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9604
9605 * solib-svr4.c (scan_dyntag): New variable dyn_addr. Replace gdb_assert
9606 by a conditional setting DYN_ADDR. Use DYN_ADDR.
9607 * config/djgpp/fnchange.lst: Add translations for
9608 symbol-without-target_section.exp and symbol-without-target_section.c.
9609
0e05dfcb
DJ
96102010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
9611
9612 * gdbarch.sh: Set LANG and LC_ALL to C, not c.
9613 (remote_breakpoint_for_pc): Correct invalid_p check.
9614 * gdbarch.c: Regenerated.
9615
f9d67f43
DJ
96162010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
9617
9618 * arm-tdep.c (arm_find_mapping_symbol): New function, from
9619 arm_pc_is_thumb.
9620 (arm_pc_is_thumb): Use arm_find_mapping_symbol.
9621 (extend_buffer_earlier): New function.
9622 (MAX_IT_BLOCK_PREFIX, IT_SCAN_THRESHOLD): New constants.
9623 (arm_adjust_breakpoint_address): New function.
9624 (arm_gdbarch_init): Register arm_adjust_breakpoint_address.
9625
177321bd
DJ
96262010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
9627
9628 * arm-linux-tdep.c (arm_linux_thumb2_be_breakpoint)
9629 (arm_linux_thumb2_le_breakpoint): New constants.
9630 (arm_linux_init_abi): Set thumb2_breakpoint and
9631 thumb2_breakpoint_size.
9632 * arm-tdep.c (thumb_insn_size, thumb_advance_itstate): New functions.
9633 (thumb_get_next_pc): Add a comment. Rename IT to ITSTATE.
9634 Implement support for single stepping through IT blocks if
9635 a 32-bit Thumb breakpoint instruction is available.
9636 (arm_breakpoint_from_pc): If a 32-bit Thumb breakpoint instruction
9637 is available, use it when needed.
9638 (arm_remote_breakpoint_from_pc): New function.
9639 (arm_gdbarch_init): Register arm_remote_breakpoint_from_pc.
9640 * arm-tdep.h (struct gdbarch_tdep): Correct thumb_breakpoint
9641 comment. Add thumb2_breakpoint and thumb2_breakpoint_size.
9642
a1dcb23a
DJ
96432010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
9644
9645 * arch-utils.c (default_remote_breakpoint_from_pc): New function.
9646 * arch-utils.h (default_remote_breakpoint_from_pc): Declare.
9647 * gdbarch.c, gdbarch.h: Regenerated.
9648 * gdbarch.sh (remote_breakpoint_from_pc): New architecture method.
9649 * remote.c (remote_insert_breakpoint, remote_insert_hw_breakpoint): Use
9650 gdbarch_remote_breakpoint_from_pc.
9651
2b009048
DJ
96522010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
9653
9654 * infrun.c (prepare_to_proceed): Handle other signals which might
9655 match a breakpoint.
9656 (handle_inferior_event): Move the check for unusual breakpoint
9657 signals earlier.
9658
e4e2711a
JB
96592010-01-29 Paul Hilfinger <hilfinger@adacore.com>
9660
9661 amd64 - function returning record with field straddling 2 registers.
9662 * amd64-tdep.c (amd_classify_aggregate): Handle the case of
9663 a record of length <= 16 in which a field straddles the two
9664 eightbytes.
9665
cba6fab5
JB
96662010-01-29 Joel Brobecker <brobecker@adacore.com>
9667
9668 Implement return values on amd64-windows.
9669 * amd64-windows-tdep.c: #include gdbcore.h and regcache.h.
9670 (amd64_windows_return_value): New function.
9671 (amd64_windows_init_abi): Call set_gdbarch_return_value with
9672 amd64_windows_return_value.
9673
3af6ddfe
JB
96742010-01-29 Joel Brobecker <brobecker@adacore.com>
9675
9676 amd64-windows: 32 bytes allocated on stack by caller for integer
cba6fab5 9677 parameter registers.
3af6ddfe
JB
9678 * i386-tdep.h (struct gdbarch_tdep): Add new field
9679 integer_param_regs_saved_in_caller_frame.
9680 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
9681 tdep->integer_param_regs_saved_in_caller_frame to 1.
9682 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
9683 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
9684
80d19a06
JB
96852010-01-29 Joel Brobecker <brobecker@adacore.com>
9686
9687 amd64-windows: memory args passed by pointer during function calls.
9688 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
9689 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
9690 where tdep->memory_args_by_pointer is non-zero.
9691 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
9692 tdep->memory_args_by_pointer to 1.
9693
ba581dc1
JB
96942010-01-29 Joel Brobecker <brobecker@adacore.com>
9695
4966b6c2 9696 amd64-windows: Integer parameters in function calls.
ba581dc1
JB
9697 * i386-tdep.h (enum amd64_reg_class): New, moved here from
9698 amd64-tdep.c.
9699 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
9700 call_dummy_integer_regs, and classify.
9701 * amd64-tdep.h (amd64_classify): Add declaration.
9702 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
9703 (amd64_reg_class): Delete, moved to i386-tdep.h.
9704 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
9705 Replace call to amd64_classify by call to tdep->classify.
9706 (amd64_push_arguments): Get the list of registers to use for
9707 passing integer parameters from the gdbarch tdep structure,
9708 rather than using a hardcoded one. Replace calls to amd64_classify
9709 by calls to tdep->classify.
9710 (amd64_push_dummy_call): Get the register number used for
9711 the "hidden" argument from tdep->call_dummy_integer_regs.
9712 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
9713 and tdep->call_dummy_integer_regs. Set tdep->classify.
9714 * amd64-windows-tdep.c: Add include of gdbtypes.h.
9715 (amd64_windows_dummy_call_integer_regs): New static global.
9716 (amd64_windows_classify): New function.
9717 (amd64_windows_init_abi): Initialize tdep->call_dummy_num_integer_regs
9718 tdep->call_dummy_integer_regs and tdep->classify.
9719
d37346f0
DJ
97202010-01-28 Daniel Jacobowitz <dan@codesourcery.com>
9721
9722 * regcache.c (regcache_xmalloc): Add aspace argument. Use it
9723 for the new regcache. All callers updated.
9724 (regcache_cpy, regcache_cpy_no_passthrough): Do not set aspace here.
9725 (get_thread_arch_regcache): Do not set aspace here.
9726 * regcache.h (regcache_xmalloc): Update declaration.
9727
9728 * frame.c, infcall.c, ppc-linux-tdep.c: Calls to
9729 regcache_xmalloc updated.
9730
7434dadd
JB
97312010-01-28 Joel Brobecker <brobecker@adacore.com>
9732
9733 Another -Wunused-function error in procfs.c (sparc-solaris)
9734 * procfs.c (insert_dbx_link_breakpoint): Delete declaration. Move up.
9735 Only define if SYS_syssgi is defined.
9736 (remove_dbx_link_breakpoint): Delete declaration. Move up.
9737 (dbx_link_addr, insert_dbx_link_bpt_in_file)
9738 (insert_dbx_link_bpt_in_region): Move up. Only define if SYS_syssgi
9739 is itself defined.
9740
16d905e2
CF
97412010-01-27 Christopher Faylor <me+cygwin@cgf.cx>
9742
9743 * windows-nat.c (windows_initialization_done): New variable.
9744 (get_windows_debug_event): Issue error when process dies before
9745 completely initializing.
9746 (do_initial_windows_stuff): Set flag to indicate when we are done with
9747 the initial steps of attaching to the child.
9748
cd55e50f
JK
97492010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9750
9751 * symtab.h (struct symbol <symtab>): New comment on NULL values.
9752
99cc78aa
DE
97532010-01-27 Doug Evans <dje@google.com>
9754
4c7dcb84
DE
9755 * solib-svr4.c (solib_break_names): Add __dl_rtld_db_dlactivity.
9756
99cc78aa
DE
9757 * breakpoint.c (bpstat_stop_status): Delete useless code.
9758
52334bf5
JK
97592010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9760
9761 * printcmd.c (display_uses_solib_p): Remove variable section. Access
9762 objfile via SYMBOL_SYMTAB.
9763
708ead4e
TT
97642010-01-26 Tom Tromey <tromey@redhat.com>
9765
9766 PR exp/7643:
9767 * eval.c (evaluate_subexp_for_address) <UNOP_IND>: Call
9768 coerce_array on result.
9769
b14e635e
SW
97702010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
9771
9772 * cp-namespace.c (cp_lookup_symbol_namespace): Added
9773 search_parent argument.
9774 (cp_add_using): Initialize 'searched' field.
9775 (reset_directive_searched): New function.
9776 * cp-support.h: Add 'searched' field to using_direct struct.
9777 (cp_lookup_symbol_imports): Ditto.
9778 * cp-namespace.c (cp_lookup_symbol_imports): Ditto.
9779 Perform recursive search.
9780 Implement non parent search.
9781 * valops.c (value_maybe_namespace_elt): Updated.
9782
8540c487
SW
97832010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
9784
9785 PR gdb/10929:
9786 * dwarf2read.c (read_lexical_block_scope): Create blocks for
9787 scopes which contain using directives even if they contain no
9788 declarations.
9789 * symtab.c (lookup_symbol_aux): Pass lowest level block to
9790 la_lookup_symbol_nonlocal.
9791 * cp-namespace.c (cp_lookup_symbol_nonlocal): call
9792 cp_lookup_symbol_namespace.
9793 (cp_lookup_symbol_namespace): Perform an import lookup at every
9794 block level.
9795 (cp_lookup_symbol_imports): New function.
9796 (cp_lookup_symbol_in_namespace): New function.
9797
421d5d99
TT
97982010-01-25 Tom Tromey <tromey@redhat.com>
9799
9800 PR gdb/11049:
9801 * c-valprint.c (c_val_print): Fix test of extract_unsigned_integer
9802 result.
9803
6bcc772d
RO
98042010-01-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9805
9806 * configure.ac: Only use host_os part when disabling TUI on osf.
9807 Use test to check variables, prefix strings with x.
9808 * configure: Regenerate.
9809
9810 * solib-osf.c (osf_current_sos): Initialize tail.
9811
1c1238a5
TG
98122010-01-25 gingold <gingold@adacore.com>
9813
c8d5aac9
L
9814 * windows-nat.c (windows_continue): Use %x to print thread id.
9815 (get_windows_debug_event): Ditto.
1c1238a5 9816
0b92b5bb
TT
98172010-01-22 Tom Tromey <tromey@redhat.com>
9818
9819 PR symtab/11199:
9820 * dwarf2read.c (quirk_gcc_member_function_pointer): Change return
9821 type and arguments. Use smash_to_methodptr_type.
9822 (read_structure_type): Call quirk_gcc_member_function_pointer
9823 later.
9824 * gdbtypes.h (smash_to_methodptr_type): Declare.
9825 * gdbtypes.c (smash_to_methodptr_type): New function.
9826 (lookup_methodptr_type): Use it.
9827
0d5392b8
TT
98282010-01-21 Tom Tromey <tromey@redhat.com>
9829
9830 PR symtab/11198:
9831 * symtab.h (lookup_minimal_symbol_and_objfile): Declare.
9832 * minsyms.c (lookup_minimal_symbol_and_objfile): New function.
9833 * glibc-tdep.c (find_minsym_and_objfile): Remove.
9834 (glibc_skip_solib_resolver): Use
9835 lookup_minimal_symbol_and_objfile.
9836
e6d088ec
KT
98372010-01-21 Kai Tietz <kai.tietz@onevision.com>
9838
9839 * inflow.c (check_syscall): Guard by #if clause for GO32 and
9840 WIN32 targets.
9841
b966cb8a
TT
98422010-01-20 Tom Tromey <tromey@redhat.com>
9843
9844 PR backtrace/10770:
9845 * valarith.c (value_binop): Handle BINOP_GTR, BINOP_LEQ, and
9846 BINOP_GEQ. Handle BINOP_NOTEQUAL in the signed case.
9847 * dwarf2expr.c (new_dwarf_expr_context): Allocate
9848 dwarf_stack_values, not CORE_ADDRs.
9849 (execute_stack_op): Change DW_OP_div and comparison operators to
9850 use signed operands.
9851
3f81c18a
VP
98522010-01-20 Vladimir Prus <vladimir@codesourcery.com>
9853
9854 Per-inferior args and tty and environment.
9855
9856 * infcmd.c (inferior_args): Rename to ...
9857 (inferior_args_scratch): ... this.
9858 (inferior_io_terminal): Rename to ...
9859 (inferior_io_terminal_scratch): ... this.
9860 (inferior_argc, inferior_argv): Remove.
9861 (set_inferior_io_terminal, get_inferior_io_terminal): Store
9862 inside current_inferior().
9863 (set_inferior_tty_command, show_inferior_tty_command): New.
9864 (get_inferior_args, set_inferior_args): Store inside
9865 current_inferior().
9866 (notice_args_set): Likewise and rename to...
9867 (set_args_command): ... this.
9868 (set_inferior_args_vector): Likewise.
9869 (notice_args_read): Rename to...
9870 (show_args_command): ...new.
9871 (tty_command): Remove.
9872 (run_command_1): Don't free old args, as they are freed by
9873 set_inferior_arg now.
9874 (run_no_args_command): Likewise.
9875 (inferior_environ): Remove.
9876 (run_command_1): Use environment of the current inferior.
9877 (environment_info, set_environment_command)
9878 (unset_environment_command, path_info, path_command): Likewise.
9879 (_initialize_infcmd): Adjust for function and variable renames.
9880 Do not init inferior_environ.
9881 * inferior.h (set_inferior_arg): Adjust prototype.
9882 (struct inferior): New fields args, argc, argv, terminal, environment.
9883 (inferior_environ): Remove declaration.
9884 * inferior.c (free_inferior): Free new fields.
9885 (add_inferior_silent): Initialize 'environment' field.
9886 * main.c (captured_main): Set arguments only after the initial
9887 inferior has been created. Set set_inferior_io_terminal,
9888 not tty_command.
9889 * mi/mi-main.c (mi_cmd_env_path): Use environment of the current
9890 inferior.
9891 (_initialize_mi_cmd_env): Adjust for disappearance of global
9892 inferior_environ.
9893 * solib.c (solib_find): Use environment of the current inferior.
9894
d8b65138
JK
98952010-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9896
9897 * varobj.c (varobj_add_child, install_dynamic_child): Wrap into #if
9898 HAVE_PYTHON.
9899 (instantiate_pretty_printer): Move HAVE_PYTHON outside of the function.
9900
692465f1
JB
99012010-01-20 Joel Brobecker <brobecker@adacore.com>
9902
9903 Get rid of ada-lang.c:function_name_from_pc.
9904 * ada-lang.c: Add "stack.h" #include.
9905 (function_name_from_pc): Delete.
9906 (is_known_support_routine): Replace call to function_name_from_pc
9907 by call to find_frame_funname.
9908 (ada_unhandled_exception_name_addr_from_raise): Likewise.
9909
95519e0e
TT
99102010-01-19 Tom Tromey <tromey@redhat.com>
9911
9912 PR c++/11026:
9913 * dwarf2read.c (read_partial_die): Allocate partial DIE's name on
9914 objfile obstack.
9915
95c11dc7
TT
99162010-01-19 Tom Tromey <tromey@redhat.com>
9917
9918 * top.c (stop_sig, float_handler, do_nothing): Remove.
9919
a0f49112
JK
99202010-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9921
9922 * breakpoint.c (watchpoint_check): Check the call
9923 gdbarch_in_function_epilogue_p before calling frame_find_by_id.
9924 Extend the comment.
8d95cc3b 9925 * config/djgpp/fnchange.lst: Add translations for
a0f49112
JK
9926 watchpoint-cond-gone.exp, watchpoint-cond-gone.c and
9927 watchpoint-cond-gone-stripped.c.
9928
ceeb3d5a
TT
99292010-01-19 Tom Tromey <tromey@redhat.com>
9930
9931 PR c++/8000:
9932 * dwarf2read.c (partial_die_parent_scope): Put enumeration type
9933 into parent scope, and enumerator into grandparent scope.
9934
2b71fc8e
JB
99352010-01-19 Joel Brobecker <brobecker@adacore.com>
9936
9937 * NEWS: Add entry for "set/show ada trust-PAD-over-XVS" commands.
9938
03564ed9
JB
99392010-01-19 Joel Brobecker <brobecker@adacore.com>
9940
9941 * configure.host: Make x86_64-*-solaris2.1[0-9]* an alias of
9942 i[34567]86-*-solaris2.1[0-9]*.
9943 * configure.tgt: Likewise.
9944
fb2e7cb4
JB
99452010-01-19 Joel Brobecker <brobecker@adacore.com>
9946
9947 * NEWS: Document the source command enhancement allowing it
9948 to load Python scripts. Document the "set/show script-extension"
9949 commands.
9950
1cb5e2a4
JB
99512010-01-19 Joel Brobecker <brobecker@adacore.com>
9952
9953 Add -Wunused-function to compile flags.
9954 * configure.ac: Add -Wunused-function to build_warnings.
9955 * configure: Regenerate.
9956
0ec6cd0c
JB
99572010-01-19 Joel Brobecker <brobecker@adacore.com>
9958
9959 "delete" ada-lex.c:input function, not used.
9960 * ada-lex.l: #define YY_NO_INPUT.
9961
b74845da
JB
99622010-01-19 Joel Brobecker <brobecker@adacore.com>
9963
9964 Delete free_named_symtabs and associated cleanup.
9965 * symfile.h (free_named_symtabs): Delete declaration.
9966 * symfile.c: Remove some commented out code (clear_symtab_users_once).
9967 (cashier_psymtab): Comment function out.
9968 Delete declaration.
9969 (free_named_symtabs): Delete.
9970 * coffread.c (coff_end_symtab): Remove call to free_named_symtabs.
9971 * dbxread.c (end_psymtab): Likewise.
9972 * dwarf2read.c (process_psymtab_comp_unit): Ditto.
9973 * exec.c (exec_close_1): Ditto.
9974 * xcoffread.c (xcoff_end_psymtab): Likewise.
9975
65c06092
JB
99762010-01-19 Joel Brobecker <brobecker@adacore.com>
9977
9978 * stack.c (print_block_frame_labels): Comment function out.
9979
d5cd6034
JB
99802010-01-19 Joel Brobecker <brobecker@adacore.com>
9981
9982 Delete unused or undefined functions.
9983 * breakpoint.c (ep_parse_optional_filename): Delete.
9984 * dcache.c (dcache_write_line): Remove declaration.
9985 * infrun.c (build_infrun): Remove declaration.
9986 * tracepoint.c (tracepoint_save_command): Remove declaration.
9987 * linux-nat.c (init_lwp_list): Delete. No longer used.
9988 * event-loop.c (check_async_signal_handlers): Delete declaration.
9989 * infrun.c (init_execution_control_state): Delete.
9990 (proceed): Update comment to avoid mentioning
9991 init_execution_control_state.
9992 * target.c (kill_or_be_killed, nosupport_runtime): Delete.
9993 * ada-lang.c (ada_to_static_fixed_value): Delete.
9994 * scm-lang.c (evaluate_subexp_scm): Delete declaration.
9995 * cp-namespace.c (cp_copy_usings): Delete.
9996 * xml-syscall.c (xml_number_of_syscalls): Delete.
9997 * progspace.c (find_program_space_by_num): Delete.
9998 * inflow.c (handle_sigio): Delete declaration.
9999 * hppa-tdep.c (hppa_alignof): Delete.
10000 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset)
10001 (mipsnbsd_core_osabi_sniffer): Delete.
10002
4e8f195d
TT
100032010-01-18 Tom Tromey <tromey@redhat.com>
10004
10005 PR c++/9680:
10006 * c-exp.y (REINTERPRET_CAST, DYNAMIC_CAST, STATIC_CAST)
10007 (CONST_CAST): New tokens.
10008 (exp): Add new productions.
10009 (ident_tokens): Add const_cast, dynamic_cast, static_cast, and
10010 reinterpret_cast.
10011 (is_cast_operator): New function.
10012 (yylex): Handle cast operators specially.
10013 * eval.c (evaluate_subexp_standard) <UNOP_DYNAMIC_CAST,
10014 UNOP_REINTERPRET_CAST>: New cases.
10015 * expprint.c (print_subexp_standard): Likewise.
10016 (op_name_standard): Likewise.
10017 (dump_subexp_body_standard): Likewise.
10018 * parse.c (operator_length_standard): Likewise.
10019 * expression.h (enum exp_opcode): New constants UNOP_DYNAMIC_CAST,
10020 UNOP_REINTERPRET_CAST.
10021 * gdbtypes.c (class_types_same_p): New function.
10022 (is_ancestor): Use it.
10023 (is_public_ancestor): New function.
10024 (is_unique_ancestor_worker): Likewise.
10025 (is_unique_ancestor): Likewise.
10026 * gdbtypes.h (class_types_same_p, is_public_ancestor)
10027 (is_unique_ancestor): Declare.
10028 * valops.c (value_reinterpret_cast): New function.
10029 (dynamic_cast_check_1): Likewise.
10030 (dynamic_cast_check_2): Likewise.
10031 (value_dynamic_cast): Likewise.
10032 * value.h (value_reinterpret_cast, value_dynamic_cast): Declare.
10033
d9c57d9f
JB
100342010-01-18 Joel Brobecker <brobecker@adacore.com>
10035
10036 Fix build failure when building without Python support.
10037 * python/python.c: Always include exceptions.h, even when HAVE_PYTHON
10038 is not defined.
10039
f80d3ff2
JB
100402010-01-18 Joel Brobecker <brobecker@adacore.com>
10041
10042 Use XVS field type instead of doing a parallel lookup.
10043 * ada-lang.c (ada_get_base_type): Follow the XVS field type
10044 if it is a reference type instead of doing a type lookup using
10045 the XVS field name.
10046
5bf03f13
JB
100472010-01-18 Joel Brobecker <brobecker@adacore.com>
10048
10049 Trust PAD types instead of using PAD___XVS.
10050 * ada-lang.c (trust_pad_over_xvs): New static variable.
10051 (ada_is_aligner_type): If !trust_pad_over_xvs and there is a
10052 parallel XVS type, follow the XVS type instead of the PAD type.
10053 (unwrap_value): Make sure that there is no parallel XVE type
10054 before returning the value as is.
10055 (set_ada_list, show_ada_list): New static variables.
10056 (set_ada_command, show_ada_command): New functions.
10057 (_initialize_ada_language): Add new "set/show ada" prefix commands.
10058 Add new "set/show ada trust-PAD-over-XVS" setting.
10059
973817a3
JB
100602010-01-18 Tom Tromey <tromey@redhat.com>
10061 Thiago Jung Bauermann <bauerman@br.ibm.com>
10062
10063 Allow "source" to load python scripts.
10064 * exceptions.h (enum errors): Add UNSUPPORTED_ERROR.
10065 * python/python.c (source_python_script): New function.
10066 * python/python.h (source_python_script): Add declaration.
10067 * cli/cli-cmds.c: #include exceptions.h and python/python.h.
10068 (script_ext_off, script_ext_soft, script_ext_strict)
10069 (script_ext_enums, script_ext_mode): New static constants.
10070 (show_script_ext_mode, find_and_open_script): New functions.
10071 (source_script): Enhance to handle Python scripts.
10072 (init_cli_cmds): Add set/show script-extension commands.
10073
98e03262
SS
100742010-01-16 Stan Shebs <stan@codesourcery.com>
10075
10076 * tracepoint.h (struct trace_status): Use unsigned long long
10077 instead of size_t.
10078 * tracepoint.c (trace_status_command): Fix printf directive.
10079 (trace_save_command): Check fwrite returns, fix printf directive.
10080 (trace_filename): New global.
10081 (tfile_open): Set it, check read returns.
10082 (tfile_close): Free trace_filename.
10083 (tfile_get_traceframe_address): Check read returns.
10084 (tfile_trace_find): Ditto.
10085 (tfile_fetch_registers): Ditto.
10086 (tfile_xfer_partial): Ditto.
10087 (tfile_get_trace_state_variable_value): Ditto.
10088
00bf0b85
SS
100892010-01-15 Stan Shebs <stan@codesourcery.com>
10090
10091 Add trace file support.
10092 * tracepoint.h (enum trace_stop_reason): New enum.
10093 (struct trace_status): New struct.
10094 (parse_trace_status): Declare.
10095 (struct uploaded_tp): Move here from remote.c,
10096 add fields for actions.
10097 (struct uploaded_tsv): New struct.
10098 * tracepoint.c (tfile_ops): New target vector.
10099 (trace_fd): New global.
10100 (tfile_open): New function.
10101 (tfile_close): New function.
10102 (tfile_files_info): New function.
10103 (tfile_get_trace_status): New function.
10104 (tfile_get_traceframe_address): New function.
10105 (tfile_trace_find): New function.
10106 (tfile_fetch_registers): New function.
10107 (tfile_xfer_partial): New function.
10108 (tfile_get_trace_state_variable_value): New function.
10109 (init_tfile_ops): New function.
10110 (_initialize_tracepoint): Call it, add tfile target.
10111 (trace_status): New global.
10112 (current_trace_status): New function.
10113 (trace_running_p): Remove, change all users to get from
10114 current_trace_status()->running.
10115 (get_trace_status): Remove.
10116 (trace_status_command): Call target_get_trace_status directly,
10117 report more detail including tracing stop reasons.
10118 (trace_find_command): Always allow tfind on a file.
10119 (trace_find_pc_command): Ditto.
10120 (trace_find_tracepoint_command): Ditto.
10121 (trace_find_line_command): Ditto.
10122 (trace_find_range_command): Ditto.
10123 (trace_find_outside_command): Ditto.
10124 (trace_frames_offset, cur_offset): Declare as off_t.
10125 (trace_regblock_size): Rename from reg_size, update users.
10126 (parse_trace_status): New function.
10127 (tfile_interp_line): New function.
10128 (disconnect_or_stop_tracing): Ensure current trace
10129 status before asking what to do.
10130 (stop_reason_names): New global.
10131 (trace_save_command): New command.
10132 (get_uploaded_tp): Move here from remote.c.
10133 (find_matching_tracepoint): Ditto.
10134 (merge_uploaded_tracepoints): New function.
10135 (parse_trace_status): Use stop_reason_names.
10136 (_initialize_tracepoint): Define tsave command.
10137 * target.h (target_ops): New fields to_save_trace_data,
10138 to_upload_tracepoints, to_upload_trace_state_variables,
10139 to_get_raw_trace_data, change to_get_trace_status
10140 to take a pointer to a status struct.
10141 (target_save_trace_data): New macro.
10142 (target_upload_tracepoints): New macro.
10143 (target_upload_trace_state_variables): New macro.
10144 (target_get_raw_trace_data): New macro.
10145 * target.c (update_current_target): Add new methods, change
10146 signature of to_get_trace_status.
10147 * remote.c (hex2bin): Make globally visible.
10148 (bin2hex): Ditto.
10149 (remote_download_trace_state_variable): Download name also.
10150 (remote_get_trace_status): Update parameter, use
10151 parse_trace_status.
10152 (remote_save_trace_data): New function.
10153 (remote_upload_tracepoints): New function.
10154 (remote_upload_trace_state_variables): New function.
10155 (remote_get_raw_trace_data): New function.
10156 (remote_start_remote): Use them.
10157 (_initialize_remote_ops): Add operations.
10158 * ax-gdb.c: Include breakpoint.h.
10159 * breakpoint.c (create_tracepoint_from_upload): Use
10160 break_command_really, return tracepoint, warn about unimplemented
10161 parts.
10162 * NEWS: Mention trace file addition.
10163
d904de5b
JK
101642010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10165
10166 Fix compilation warning on gcc-3.4.
10167 * exec.c (print_section_info): Move the `displacement' variable
10168 initialization to its declaration.
10169
64aa9731
JK
101702010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10171
10172 * gdb-gdb.py (StructMainTypePrettyPrinter): Fix TYPE_CODE_RANGE
10173 comparison.
10174
ca1f5def 101752010-01-15 Eric Botcazou <botcazou@adacore.com>
9f0dec2d
JB
10176
10177 "info tasks" broken by typedefs in ATCB type definitions.
10178 * ada-lang.c (ada_template_to_fixed_record_type_1): Add call to
10179 ada_check_typedef before retrieving the length of the type for
10180 regular fields.
10181
12ab9e09
JB
101822010-01-15 Joel Brobecker <brobecker@adacore.com>
10183
10184 Do not use name-based lookup for unconstrained packed arrays.
10185 * ada-lang.c (find_parallel_type_by_descriptive_type):
10186 Limit the fallback to name-based lookups to the case where
10187 the type is a constrained packed array.
10188
c389c3dc
JB
101892010-01-15 Joel Brobecker <brobecker@adacore.com>
10190
10191 Enhance gdb-gdb.py to handle main_type.type_specific.
10192 * gdb-gdb.py: Print the type-specific part of struct main_type.
10193
7991dee7
JK
101942010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10195
10196 * configure.ac (AC_CHECK_FUNCS): Check for setrlimit and getrlimit.
10197 * configure: Regenerate.
10198 * config.in: Regenerate.
10199 * utils.c: Include sys/resource.h.
10200 (dump_core, can_dump_core): New.
10201 (internal_vproblem): Update the comment. Check can_dump_core while
10202 setting dump_core_p. Replace two abort calls by dump_core calls.
10203
93c26624
JK
102042010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10205 Eli Zaretskii <eliz@gnu.org>
10206
10207 * NEWS: Document the PIE support.
10208
55235ad7
JK
102092010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10210
10211 * linux-tdep.c: Remove includes gdbcore.h, observer.h and elf-bfd.h.
10212 (check_is_pie_binary, _initialize_linux_tdep): Remove.
10213
41752192
JK
102142010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10215
10216 * solib-svr4.c (svr4_exec_displacement): New comment for entry_point.
10217 Replace exec_entry_point call by bfd_get_start_address.
10218
9f2982ff
JK
102192010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10220
10221 Support Valgrind attachments broken by the PIE support.
10222 * auxv.c: Include gdbcore.h.
10223 (procfs_xfer_auxv): Make static. Reduce its comment. Drop its
10224 parameters ops, object and annex. Remove their assertions.
10225 (ld_so_xfer_auxv, memory_xfer_auxv): New function.
10226 * auxv.h (procfs_xfer_auxv): Remove comment. Rename to ...
10227 (memory_xfer_auxv): ... here.
10228 * linux-nat.c (linux_xfer_partial): Rename procfs_xfer_auxv to
10229 memory_xfer_auxv.
10230 * procfs.c (procfs_xfer_partial): Likewise.
10231 * solib-svr4.c (svr4_relocate_main_executable): New prototype.
10232 (svr4_special_symbol_handling): Call svr4_relocate_main_executable.
10233 (svr4_solib_create_inferior_hook): Conditionalize the
10234 svr4_relocate_main_executable call.
10235
61f0d762
JK
102362010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10237
10238 * solib-svr4.c (scan_dyntag): Remove variable dyn_addr. New variable
10239 target_section. Find SECT in current_target_sections, gdb_assert it.
10240 (elf_lookup_lib_symbol): Pass the binary file if given symfile_objfile.
10241 New variable abfd.
10242 * symtab.c (lookup_objfile_from_block): Return the binary file instead
10243 of separate debug info file.
10244
51bee8e9
JK
102452010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10246
10247 Support PIEs with no symfile_objfile.
10248 * exec.c (print_section_info <abfd == exec_bfd>): Relocate Entry point.
10249 * solib-svr4.c (svr4_relocate_main_executable <exec_bfd>): New block.
10250
b8040f19
JK
102512010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10252
10253 * solib-svr4.c (svr4_relocate_main_executable): Move the static exec
10254 code part to ...
10255 (svr4_static_exec_displacement): ... a new function.
10256 (svr4_exec_displacement): New function.
10257 (svr4_relocate_main_executable): Call svr4_exec_displacement. Allocate
10258 new_offsets using alloca now. Remove variable old_chain and changed.
10259 Call objfile_relocate unconditionally now.
10260
eb90ce83
DE
102612010-01-14 Doug Evans <dje@google.com>
10262
10263 * gdbtypes.c (arch_flags_type): Fix comment.
10264 * gdbtypes.h (arch_composite_type): Fix comment.
10265
bdfed3bc
TG
102662009-01-14 Tristan Gingold <gingold@adacore.com>
10267
10268 * machoread.c (macho_add_oso_symfile): Add symfile_flags parameter.
10269 Call xstrdup for abfd->filename. Pass symfile_flags and objfile flags
10270 to symbol_file_add_from_bfd. Add OSO as separate objfile.
10271 (macho_oso_symfile): Add symfile_flags parameter. Pass it to
10272 macho_add_oso_symfile.
10273 (macho_symfile_read): Pass symfile_flags to macho_oso_symfile.
10274
1596ad23
JB
102752010-01-14 Joel Brobecker <brobecker@adacore.com>
10276
10277 Tru64: Dead threads are never deleted.
10278 * dec-thread.c (dec_thread_ptid_is_alive): New function.
10279 (dec_thread_count_gdb_threads): Fix counter increment.
10280 (dec_thread_add_gdb_thread): Fix *listp increment.
10281 (resync_thread_list): Fix bug in deletion of dead threads that
10282 caused all threads to be deleted, instead of just the dead ones.
10283
be759fcf
PM
102842010-01-13 Phil Muldoon <pmuldoon@redhat.com>
10285
10286 PR python/10705
10287
10288 * python/python-internal.h: Add lazy_string_object_type
10289 definition.
10290 (create_lazy_string_object, gdbpy_initialize_lazy_string)
10291 (gdbpy_is_lazystring, gdbpy_extract_lazy_string): Define.
10292 * python/py-value.c (valpy_lazy_string): New function.
10293 (convert_value_from_python): Add lazy string conversion.
10294 * python/py-prettyprint.c (pretty_print_one_value): Check if
10295 return is also a lazy string.
10296 (print_string_repr): Add lazy string printing branch.
10297 (print_children): Likewise.
10298 * python/py-lazy-string.c: New file. Implement lazy strings.
10299 * python/python.c (_initialize_python): Call
10300 gdbpy_initialize_lazy_string.
10301 * varobj.c (value_get_print_value): Add lazy string printing
10302 branch. Account for encoding.
10303 * c-lang.c (c_printstr): Account for new encoding argument. If
10304 encoding is NULL, find encoding suited for type, otherwise use
10305 user encoding.
10306 * language.h (language_defn): Add encoding argument.
10307 (LA_PRINT_STRING): Likewise.
10308 * language.c (unk_lang_printstr): Update to reflect new encoding
10309 argument to language_defn.
10310 * ada-lang.h (ada_printstr): Likewise.
10311 * c-lang.h (c_printstr): Likewise.
10312 * p-lang.h (pascal_printstr);
10313 * f-lang.c (f_printstr): Likewise.
10314 * m2-lang.c (m2_printstr): Likewise.
10315 * objc-lang.c (objc_printstr): Likewise.
10316 * p-lang.c (pascal_printstr): Likewise.
10317 * scm-lang.c (scm_printstr): Likewise.
10318 * c-valprint.c (c_val_print): Update LA_PRINT_STRING call for
10319 encoding argument.
10320 * ada-valprint.c (ada_printstr): Likewise.
10321 * f-valprint.c (f_val_print): Likewise
10322 * m2-valprint.c (m2_val_print): Likewise.
10323 * p-valprint.c (pascal_val_print): Likewise.
10324 * expprint.c (print_subexp_standard): Likewise.
10325 * valprint.c (val_print_string): Likewise.
10326 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-lazy-string.
10327 (SUBDIR_PYTHON_SRCS): Likewise.
10328 (py-lazy-string.o): New rule.
10329
1fe72117 103302010-01-13 Doug Evans <dje@google.com>
8eee9c5a
DE
10331
10332 * mi/mi-main.c (list_available_thread_groups): Avoid "may be used
10333 uninitialized" warning from gcc on local `tree'.
10334
dc146f7c
VP
103352010-01-13 Vladimir Prus <vladimir@codesourcery.com>
10336
10337 Implement core awareness.
10338
10339 * bcache.c (compare_ints): Remove
10340 (print_percentage): Use compare_positive_ints.
10341 * defs.h (compare_positive_ints): Declare.
10342 * linux-nat.h (struct lin_lwp): New field core.
10343 (linux_nat_core_of_thread_1): Declare.
10344 * linux-nat.c (add_lwp): Init the 'core' field.
10345 (linux_nat_wait_1): Record the core.
10346 (linux_nat_core_of_thread_1, linux_nat_core_of_thread): New.
10347 (linux_nat_add_target): Register the above.
10348 * linux-thread-db.c (update_thread_core): New.
10349 (thread_db_find_new_threads): Update core information for
10350 every thread.
10351 * remote.c (struct private_thread_info): New.
10352 (free_private_thread_info, demand_private_info): New.
10353 (PACKET_qXfer_threads, use_osdata_threads): New.
10354 (struct thread_item, threads_parsing_context
10355 (start_thread, end_thread, thread_attributes)
10356 (thread_children, threads_children, threads_elements): New.
10357 (remote_threads_info): Try qXfer:threads before anything
10358 else.
10359 (remote_protocol_packets): Register qXfer:threads.
10360 (remote_open_1): Init use_osdata_threads.
10361 (struct stop_reply): New field 'core'.
10362 (remote_parse_stop_reply): Parse core number.
10363 (process_stop_reply): Record core number.
10364 (remote_xfer_partial): Handle qXfer:threads.
10365 (remote_core_of_thread): New.
10366 (init_remote_ops): Register remote_core_of_thread.
10367 (_initialize_remote): Register qXfer:read.
10368 * target.c (target_core_of_thread): New
10369 * target.h (enum target_object): New value TARGET_OBJECT_THREADS.
10370 (struct target_ops): New field to_core_of_threads.
10371 (target_core_of_thread): Declare.
10372 * gdbthread.h (struct thread_info): New field private_dtor.
10373 * thread.c (print_thread_info): Report the core.
10374 * ui-out.c (MAX_UI_OUT_LEVELS): Increase.
10375 * utils.c (compare_positive_ints): New.
10376 * features/threads.dtd: New.
10377 * mi/mi-interp.c (mi_on_normal_stop): Report the core.
10378 * mi/mi-main.c (struct collect_cores_data, collect_cores)
10379 (do_nothing, free_vector_of_osdata_items)
10380 (splay_tree_int_comparator, free_splay_tree): New.
10381 (print_one_inferior_data): Implemented printing of selected
10382 inferiors. Collect and print cores.
10383 (output_cores): New.
10384 (mi_cmd_list_thread_groups): Support --recurse. Permit specifying
10385 thread groups together with --available.
10386
d30c5336
JK
103872010-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10388
10389 * configure: Regenerate (for _STRUCTURED_PROC).
10390
02893727
JB
103912010-01-12 Joel Brobecker <brobecker@adacore.com>
10392
10393 Delete dead function.
10394 * ada-lang.c (extract_string): Delete. No longer used.
10395
46ed2d6f
JB
103962010-01-12 Joel Brobecker <brobecker@adacore.com>
10397
10398 Fix -Wunused warning in dec-thread.c.
10399 * dec-thread.c (dec_thread_count_gdb_threads)
10400 (dec_thread_add_gdb_thread): Prevent -Wunused warning.
10401
606b8d1a
JB
104022010-01-12 Joel Brobecker <brobecker@adacore.com>
10403
10404 * ada-valprint.c (ada_print_floating): Remove trailing space.
10405
b4ba55a1
JB
104062010-01-12 Joel Brobecker <brobecker@adacore.com>
10407
10408 Add support for DW_AT_GNAT_descriptive_type.
10409 * gdbtypes.h (enum type_specific_kind): New enum.
10410 (struct main_type) [type_specific_field]: New component.
10411 [type_specific]: Add new component "gnat_stuff".
10412 (struct gnat_aux_type): New type.
10413 (INIT_CPLUS_SPECIFIC): Also set TYPE_SPECIFIC_FIELD (type).
10414 (HAVE_CPLUS_STRUCT): Also check TYPE_SPECIFIC_FIELD (type).
10415 (gnat_aux_default, allocate_gnat_aux_type): Add declaration.
10416 (INIT_GNAT_SPECIFIC, ALLOCATE_GNAT_AUX_TYPE, HAVE_GNAT_AUX_INFO)
10417 (TYPE_SPECIFIC_FIELD): New macros.
10418 (TYPE_CPLUS_SPECIFIC): Return cplus_struct_default if the given
10419 type does not hold any cplus-specific data.
10420 (TYPE_RAW_CPLUS_SPECIFIC): New macro.
10421 (TYPE_GNAT_SPECIFIC, TYPE_DESCRIPTIVE_TYPE): New macros.
10422 (TYPE_IS_OPAQUE): Use HAVE_CPLUS_STRUCT to check if type has
10423 cplus-specific data.
10424 * gdbtypes.c (allocate_cplus_struct_type): Minor stylistic rewrite.
10425 Set new component TYPE_SPECIFIC_FIELD (type).
10426 (gnat_aux_default): New constant.
10427 (allocate_gnat_aux_type): New function.
10428 (init_type): Add initialization the type-specific stuff for
10429 TYPE_CODE_FLT and TYPE_CODE_FUNC types.
10430 (print_gnat_stuff): New function.
10431 (recursive_dump_type): Use HAVE_CPLUS_STRUCT to check for cplus-
10432 specific data. Adjust code that prints the contents of the
10433 type-specific union using the TYPE_SPECIFIC_FIELD value.
10434 * dwarf2read.c (dwarf2_attach_fields_to_type): Do not allocate
10435 the type cplus stuff for Ada types.
10436 (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type):
10437 Error out if these routines are called with an Ada type.
10438 (read_structure_type, read_array_type, read_subrange_type):
10439 Add call to set_descriptive_type.
10440 (set_die_type): Initialize the gnat-specific data if necessary.
10441 (need_gnat_info, die_descriptive_type, set_descriptive_type):
10442 New functions.
10443 * ada-lang.c (decode_constrained_packed_array_type): Use
10444 decode_constrained_packed_array_type instead of doing a standard
10445 lookup to locate a parallel type.
10446 (find_parallel_type_by_descriptive_type): New function.
10447 (ada_find_parallel_type_with_name): New function.
10448 (ada_find_parallel_type): Reimplement using
10449 ada_find_parallel_type_with_name.
10450 * ada-valprint.c (print_field_values): Use HAVE_CPLUS_STRUCT
10451 to check if type has a cplus stuff.
10452 * linespec.c (total_number_of_methods): Likewise.
10453 * mdebugread.c (new_type): Likewise.
10454
b0f02ee9
JK
104552010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10456
10457 * NEWS: Document the 0b binary number prefix parsing.
10458
b260e109
JK
104592010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10460
10461 * objfiles.c (objfile_relocate1): Change the return type to int.
10462 Describe the new return value. Return non-zero if data changed.
10463 (objfile_relocate): New variable changed. Set it. Call
10464 breakpoint_re_set depending on CHANGED.
10465
b5cfddf5
JK
104662010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10467
10468 Implement binary numbers parsing.
10469 * c-exp.y (parse_number): New case 'b' and 'B'.
10470
e0ae4240
JK
104712010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10472 Tristan Gingold <gingold@adacore.com>
10473
10474 * solib.c (info_sharedlibrary_command): Replace
10475 objfile_has_partial_symbols and objfile_has_full_symbols calls by
10476 objfile_has_symbols.
10477
6e0e5977
JB
104782010-01-10 Joel Brobecker <brobecker@adacore.com>
10479
10480 * NEWS: Document the improvements made to the mips-irix port.
10481
7348c5e1
JB
104822010-01-09 Joel Brobecker <brobecker@adacore.com>
10483
10484 Fix the documentation of valprint.c:value_print.
10485 * valprint.c (value_print): Update the function description to
10486 mention that the syntax of the output follows the current_language,
10487 not necessarily C.
10488
567995e1
JK
104892010-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10490
10491 Fix displacement of separate debug info files.
10492 * objfiles.c (objfile_relocate): Rename to ...
10493 (objfile_relocate1): ... here and make it static. Extend the comment.
10494 (objfile_relocate): New function.
10495 * solib-spu.c (spu_relocate_main_executable): Explicitly check if
10496 SYMFILE_OBJFILE is NULL. Remove variables objfile and old_chain.
10497 Remove following of SEPARATE_DEBUG_OBJFILE. new_offsets is now
10498 allocated using alloca.
10499 * symfile.c (copy_section_addr_info): Remove.
10500 (build_section_addr_info_from_objfile): Make it global. New variables
10501 addr_bit and mask, use them.
10502 * symfile.h (build_section_addr_info_from_objfile): New prototype.
10503 (copy_section_addr_info): Remove.
10504
6d8eadbd
JB
105052010-01-09 Joel Brobecker <brobecker@adacore.com>
10506
10507 Signal unwinder for mips-irix N32.
10508 * mips-irix-tdep.c: #include mips-tdep.h, trad-frame.h, and
10509 tramp-frame.h.
10510 (SIGTRAMP_FRAME_SIZE, SIGCONTEXT_PC_OFF, SIGCONTEXT_REGS_OFF)
10511 (SIGCONTEXT_FPREGS_OFF, SIGCONTEXT_FPCSR_OFF, SIGCONTEXT_HI_OFF)
8d95cc3b
PA
10512 (SIGCONTEXT_LO_OFF): New macros.
10513 (mips_irix_n32_tramp_frame_init): New function.
6d8eadbd
JB
10514 (mips_irix_n32_tramp_frame): New static constant.
10515 (mips_irix_init_abi): Prepend the mips_irix_n32_tramp_frame unwinder.
10516
27087a3d
JB
105172010-01-09 Joel Brobecker <brobecker@adacore.com>
10518
10519 Breakpoint in shared library does not work on mips-irix.
10520 * procfs.c: #include "observer.h".
10521 (procfs_inferior_created): New function, moving here the code
10522 which unsets the syssgi syscall-exit notifications.
10523 (procfs_create_inferior): Remove the code which unsets the syssgi
10524 syscall-exit notifications. It is too early to do this here.
10525 (_initialize_procfs): Attach the procfs_inferior_created observer.
10526
f08877ba
JB
105272010-01-09 Joel Brobecker <brobecker@adacore.com>
10528
10529 Wrong return convention for arrays (mips-irix).
10530 * mips-tdep.c (mips_n32n64_return_value): Arrays whose size is
10531 128 bits or smaller are returned the same way as structs
10532 and unions of the the same size.
10533
e4b97d48
JB
105342010-01-09 Joel Brobecker <brobecker@adacore.com>
10535
10536 Cannot set the PC on mips-irix.
10537 * irix5-nat.c (fill_gregset): Check regno against the raw PC
10538 register number, no the cooked one.
10539
11377e68
JB
105402010-01-09 Joel Brobecker <brobecker@adacore.com>
10541
10542 Error while loading core file on mips-irix.
10543 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing
10544 if debugging from a core file.
10545
b2391021
JB
105462010-01-09 Joel Brobecker <brobecker@adacore.com>
10547
10548 GDB hangs when attaching to process on mips-irix.
10549 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing if
10550 attaching to a process.
10551
f2ec0ecf
JB
105522010-01-09 Joel Brobecker <brobecker@adacore.com>
10553
10554 Use the correct breakpoint instruction on mips-irix.
10555 * mips-tdep.c (mips_breakpoint_from_pc): Add new static variable
10556 containing the correct breakpoint instruction to use on mips-irix.
10557 Use it when the osabi is GDB_OSABI_IRIX.
10558
3c95f01c
JB
105592010-01-09 Joel Brobecker <brobecker@adacore.com>
10560
10561 -Wunused warning in procfs.c (mips-irix only).
10562 * procfs.c (gdb_praddset, gdb_prdelset): New macros. Use them
10563 throughout instead of using praddset and prdelset respectively.
10564
4b7703ad
JB
105652010-01-09 Joel Brobecker <brobecker@adacore.com>
10566
10567 GDB crash while stepping into function.
10568 * infrun.c (handle_inferior_event): Refetch the current frame
10569 after handling what.main_action, in case that pointer became
10570 dangling.
10571
12c89474
JB
105722010-01-09 Joel Brobecker <brobecker@adacore.com>
10573
10574 Fix build failure of solaris-hosted cross debuggers.
10575 * ada-valprint.c, parse.c: Include defs.h before including ctype.h.
10576
1a3fd262 105772010-01-09 Daniel Gutson <dgutson@codesourcery.com>
4c490650
JB
10578
10579 Fix build failure on sparc-solaris.
10580 * procfs.c: (procfs_do_thread_registers) Use elfcore_write_lwpstatus.
10581
75242ef4
JK
105822010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10583
10584 Move some symfile code into subroutines.
10585 * symfile.h (relative_addr_info_to_section_offsets)
10586 (addr_info_make_relative): New prototypes.
10587 * symfile.c (default_symfile_offsets): Move a part to ...
10588 (relative_addr_info_to_section_offsets): ... this new function.
10589 (default_symfile_offsets): Call it.
10590 (syms_from_objfile <!mainline && addrs && addrs->other[0].name>): Move
10591 this part to ...
10592 (addr_info_make_relative): ... this new function.
10593
268a4a75
JK
105942010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10595
10596 Add from_tty to solib_create_inferior_hook.
10597 * infcmd.c (post_create_inferior): Move solib_add after
10598 solib_create_inferior_hook. Pass from_tty to
10599 solib_create_inferior_hook. Call solib_add and SOLIB_ADD with
10600 0 from_tty and comment why.
10601 * infrun.c (follow_exec): Pass from_tty solib_create_inferior_hook as 0.
10602 * linux-nat.c (linux_child_follow_fork): Likewise.
10603 * nto-procfs.c (procfs_post_attach, procfs_create_inferior): Likewise.
10604 * solib-darwin.c (darwin_solib_create_inferior_hook): New parameter
10605 from_tty.
10606 * solib-frv.c (frv_solib_create_inferior_hook): Likewise.
10607 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
10608 * solib-null.c (null_solib_create_inferior_hook): Likewise.
10609 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
10610 * solib-pa64.c (pa64_solib_create_inferior_hook): Likewise.
10611 * solib-som.c (som_solib_create_inferior_hook): Likewise.
10612 * solib-spu.c (spu_solib_create_inferior_hook): New parameter from_tty.
10613 Pass it to svr4_so_ops.solib_create_inferior_hook.
10614 * solib-sunos.c (sunos_solib_create_inferior_hook): New parameter
10615 from_tty.
10616 * solib-svr4.c (enable_break): New parameter from_tty. Pass it to
10617 solib_add.
10618 (svr4_solib_create_inferior_hook): New parameter from_tty. Pass it to
10619 enable_break.
10620 * solib-target.c (solib_target_solib_create_inferior_hook): New
10621 parameter from_tty.
10622 * solib.c (solib_create_inferior_hook): New parameter from_tty. Pass
10623 it to ops->solib_create_inferior_hook.
10624 (reload_shared_libraries): Pass from_tty to solib_create_inferior_hook.
10625 Move solib_add after solib_create_inferior_hook, call it now with
10626 from_tty as 0. New comment there.
10627 * solib.h (solib_create_inferior_hook): New parameter from_tty.
10628 * solist.h (struct target_so_ops <solib_create_inferior_hook>):
10629 Likewise.
10630
cf00dfa7
VP
106312010-01-08 Vladimir Prus <vladimir@codesourcery.com>
10632
10633 Fix multiexec race.
10634 * infrun.c (handle_inferior_event): Use get_thread_regcache
10635 with events ptid, not get_current_regcache.
10636
f91e5ac3
JB
106372009-01-08 Joel Brobecker <brobecker@adacore.com>
10638
10639 GDB crash with empty executable name (MinGW).
10640 * source.c (openp): Add assert that parameter string is not NULL.
10641 if parameter string is an empty string, then return with a failure
10642 immediately.
10643
92b9ce5b
JB
106442009-01-08 Joel Brobecker <brobecker@adacore.com>
10645
10646 Get rid of support for VAX Floats.
10647 * ada-lang.h (ada_is_vax_floating_type, ada_vax_float_type_suffix)
10648 (ada_vax_float_print_function): Delete.
10649 * ada-lang.c (ada_is_vax_floating_type, ada_vax_float_type_suffix)
10650 (ada_vax_float_print_function): Delete.
10651 * ada-typeprint.c (print_vax_floating_point_type): Delete.
10652 (ada_print_type): Remove support for VAX floats.
10653 * ada-valprint.c (ada_val_print_1): Remove support for VAX floats.
10654
268a4a75 106552010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
d24d8548
JK
10656
10657 * stabsread.c (read_args): Handle zero arguments.
10658
f0f20949
JB
106592009-01-08 Joel Brobecker <brobecker@adacore.com>
10660
10661 Cannot find in-tree libiconv.a after reconfigure.
10662 * acinclude.m4 (AM_ICONV): If we find an in-tree libiconv.a
10663 that we can use, then cache the path to this archive.
10664 * configure: Regenerate.
10665
6b6218c5
SS
106662010-01-07 Stan Shebs <stan@codesourcery.com>
10667
35b1e5cc
SS
10668 Make tracepoint operations go through target vector.
10669 * target.h (enum trace_find_type): New enum.
10670 (struct target_ops): New fields to_trace_init,
10671 to_download_tracepoint, to_download_trace_state_variable,
10672 to_trace_set_readonly_regions, to_trace_start, to_get_trace_status,
10673 to_trace_stop, to_trace_find, to_get_trace_state_variable_value,
10674 to_set_disconnected_tracing.
10675 (target_trace_init): New macro.
10676 (target_download_tracepoint): New macro.
10677 (target_download_trace_state_variable): New macro.
10678 (target_trace_start): New macro.
10679 (target_trace_set_readonly_regions): New macro.
10680 (target_get_trace_status): New macro.
10681 (target_trace_stop): New macro.
10682 (target_trace_find): New macro.
10683 (target_get_trace_state_variable_value): New macro.
10684 (target_set_disconnected_tracing): New macro.
10685 * target.c (update_current_target): Inherit and set defaults for
10686 tracepoint operations.
10687 * tracepoint.c (default_collect): Make globally visible.
10688 (target_is_remote): Remove, along with all calls.
10689 (tvariables_info): Call target_get_trace_state_variable_value.
10690 (remote_set_transparent_ranges): Remove.
10691 (trace_start_command): Call target_trace_init,
10692 target_download_tracepoint, etc.
10693 (download_tracepoint): Remove.
10694 (trace_stop_command): Simplify.
10695 (stop_tracing): Call target_trace_stop.
10696 (get_trace_status): Call target_get_trace_status.
10697 (trace_status_command): Add case for targets that cannot trace.
10698 (finish_tfind_command): Change to take numerical arguments, call
10699 target_trace_find.
10700 (trace_find_command): Update call to finish_tfind_command.
10701 (trace_find_pc_command): Ditto.
10702 (trace_find_tracepoint_command): Ditto.
10703 (trace_find_line_command): Ditto.
10704 (trace_find_range_command): Ditto.
10705 (trace_find_outside_command): Ditto.
10706 (set_disconnected_tracing_value): Call
10707 target_set_disconnected_tracing.
10708 * remote.c: Add protocol encoding bits from tracepoint.c.
10709 (trace_error): Move from tracepoint.c.
10710 (remote_get_noisy_reply): Ditto.
10711 (free_actions_list_cleanup_wrapper): Ditto.
10712 (free_actions_list): Ditto.
10713 (remote_trace_init): New function.
10714 (remote_download_tracepoint): New function.
10715 (remote_download_trace_state_variable): New function.
10716 (remote_trace_set_readonly_regions): New function.
10717 (remote_trace_start): New function.
10718 (remote_get_trace_status): New function.
10719 (remote_trace_stop): New function.
10720 (remote_trace_find): New function.
10721 (remote_download_trace_state_variable): New function.
10722 (remote_set_disconnected_tracing): New function.
10723 (init_remote_ops): Add tracepoint operations.
10724
6b6218c5
SS
10725 * tracepoint.c (trace_dump_command): Don't decr_pc_after_break.
10726
089b4803
TG
107272010-01-07 Tristan Gingold <gingold@adacore.com>
10728
10729 * symfile.c (build_section_addr_info_from_objfile): New function.
10730 (symbol_file_add_separate): Don't use offsets from objfile but
10731 built an addr info.
10732
d5551862
SS
107332010-01-06 Stan Shebs <stan@codesourcery.com>
10734
10735 Support disconnected tracing.
10736 * infcmd.c (detach_command): Ask whether to stop tracing.
10737 * cli/cli-cmds.c (quit_command): Ditto.
10738 * breakpoint.h (struct breakpoint): New field number_on_target.
10739 * breakpoint.c (create_tracepoint_from_upload): New function.
10740 (get_tracepoint_by_number_on_target): New function.
10741 * remote.c (struct remote): New field disconnected_tracing.
10742 (remote_disconnected_tracing_feature): New function.
10743 (remote_protocol_features): Add DisconnectedTracing.
10744 (struct uploaded_tp): New struct.
10745 (uploaded_tps): New global.
10746 (get_uploaded_tp): New function.
10747 (find_matching_tracepoint): New function.
10748 (remote_get_tracing_state): New function.
10749 (remote_start_remote): Call it.
10750 * tracepoint.c (disconnected_tracing): New global.
10751 (trace_start_command): Initialize number_on_target.
10752 (stop_tracing): New function, split out from...
10753 (trace_stop_command): Call stop_tracing.
10754 (get_trace_status): New function, split out from...
10755 (trace_status_command): Call get_trace_status, add info on
10756 disconnection behavior.
10757 (disconnect_or_stop_tracing): New function.
10758 (finish_tfind_command): Translate from number on target.
10759 (trace_find_tracepoint_command): Translate to number on target.
10760 (send_disconnected_tracing_value): New function.
10761 (set_disconnected_tracing): New function.
10762 (_initialize_tracepoint): Add disconnected-tracing variable.
10763 * NEWS: Mention disconnected tracing.
10764
15d123c9
TG
107652010-01-06 Tristan Gingold <gingold@adacore.com>
10766
10767 * symtab.c (lookup_global_symbol_from_objfile): Rename objfile
10768 parameter to main_objfile. Iterate on all separate debug objfiles.
10769 * symfile.h (symbol_file_add_separate)
10770 (find_separate_debug_file_by_debuglink): Remove parameter names.
10771 * symfile.c (symbol_file_add_separate): Use add_separate_objfile.
10772 (reread_symbols): Use free_objfile_separate_debug.
10773 * objfiles.h (struct objfile): Add separate_debug_objfile_link.
10774 Adjust comment.
10775 (objfile_separate_debug_iterate, add_separate_debug_objfile)
10776 (free_objfile_separate_debug): New prototypes.
10777 * objfiles.c (objfile_separate_debug_iterate): New function.
10778 (add_separate_debug_objfile, free_objfile_separate_debug): New
10779 functions.
10780 (free_objfile): Use free_objfile_separate_debug. Adjust for
10781 multiple separate debug objfile.
10782 (objfile_has_symbols): Adjust comment. Iterate on all separate
10783 debug objfiles.
10784 * minsyms.c (lookup_minimal_symbol): Adjust for multiple separate
10785 debug objfile.
10786 (lookup_minimal_symbol_text): Ditto.
10787 (lookup_minimal_symbol_by_pc_name): Ditto.
10788 (lookup_minimal_symbol_solib_trampoline): Ditto.
10789 (lookup_minimal_symbol_by_pc_section_1): Iterate on all separate
10790 debug objfiles.
10791
7a697b8d
SS
107922010-01-05 Stan Shebs <stan@codesourcery.com>
10793
10794 Add fast tracepoints.
10795 * arch-utils.h (default_fast_tracepoint_valid_at): Declare.
10796 * arch-utils.c (default_fast_tracepoint_valid_at): New function.
10797 * breakpoint.h (enum bptype): Add bp_fast_tracepoint.
10798 * breakpoint.c (tracepoint_type): New function.
10799 (ALL_TRACEPOINTS): Use it.
10800 (should_be_inserted): Ditto.
10801 (bpstat_check_location): Ditto.
10802 (print_one_breakpoint_location): Ditto.
10803 (user_settable_breakpoint): Ditto.
10804 (set_breakpoint_location_function): Ditto.
10805 (disable_breakpoints_in_shlibs): Ditto.
10806 (delete_trace_command): Ditto.
10807 (print_it_typical): Add bp_fast_tracepoint case.
10808 (bpstat_what): Ditto.
10809 (print_one_breakpoint_location): Ditto.
10810 (allocate_bp_location): Ditto.
10811 (mention): Ditto.
10812 (breakpoint_re_set_one): Ditto.
10813 (disable_command): Ditto.
10814 (enable_command): Ditto.
10815 (check_fast_tracepoint_sals): New function.
10816 (break_command_really): Call it.
10817 (ftrace_command): New function.
10818 (_initialize_breakpoint): Add ftrace command.
10819 * gdbarch.sh (fast_tracepoint_valid_at): New.
10820 * gdbarch.h, gdbarch.c: Regenerate.
10821 * i386-tdep.c (i386_fast_tracepoint_valid_at): New function.
10822 (i386_gdbarch_init): Use it.
10823 * remote.c (struct remote_state): New field fast_tracepoints.
10824 (PACKET_FastTracepoints): New packet config type.
10825 (remote_fast_tracepoint_feature): New function.
10826 (remote_protocol_features): Add FastTracepoints.
10827 (remote_supports_fast_tracepoints): New function.
10828 (_initialize_remote): Add FastTracepoints.
10829 * tracepoint.c (download_tracepoint): Add fast tracepoint option.
10830 * NEWS: Mention fast tracepoints.
10831
737a160e
JB
108322010-01-06 Joel Brobecker <brobecker@adacore.com>
10833
10834 * gdb-gdb.py: New file.
10835
ce6cca6d
MS
108362010-01-05 Michael Snyder <msnyder@vmware.com>
10837
10838 * infrun.c (handle_inferior_event): Fix typo in comment.
10839
0d15807d
JK
108402010-01-05 Jan Kratochvil <jan.kratochvil@redhat.com>
10841
10842 * symfile.c (syms_from_objfile): Remove the !MAINLINE conditional.
10843
7803799a
UW
108442010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
10845
c8d5aac9 10846 * features/Makefile (WHICH): Add s390-linux32, s390-linux64,
7803799a
UW
10847 and s390x-linux64.
10848 (s390-linux32-expedite): Define.
10849 (s390-linux64-expedite): Define.
10850 (s390x-linux64-expedite): Define.
10851 * features/s390-acr.xml: New file.
10852 * features/s390-fpr.xml: New file.
10853 * features/s390-core32.xml: New file.
10854 * features/s390-core64.xml: New file.
10855 * features/s390x-core64.xml: New file.
10856 * features/s390-linux32.xml: New file.
10857 * features/s390-linux64.xml: New file.
10858 * features/s390x-linux64.xml: New file.
10859 * features/s390-linux32.c: New generated file.
10860 * features/s390-linux64.c: New generated file.
10861 * features/s390x-linux64.c: New generated file.
10862
10863 * regformats/s390-linux32.dat: New generated file.
10864 * regformats/s390-linux64.dat: New generated file.
10865 * regformats/s390x-linux64.dat: New generated file.
10866 * regformats/reg-s390.dat: Remove.
10867 * regformats/reg-s390x.dat: Remove.
10868
10869 * s390-nat.c: Include "auxv.h" and <elf.h>.
10870 (HWCAP_S390_HIGH_GPRS): Define if undefined.
10871 (s390_target_wordsize): New function.
10872 (s390_auxv_parse): Likewise.
10873 (s390_get_hwcap): Likewise.
10874 (s390_read_description): Likewise.
10875 (_initialize_s390_nat): Install s390_auxv_parse and
10876 s390_read_description.
10877
10878 * s390-tdep.c: Include "features/s390-linux32.c",
10879 "features/s390-linux64.c", and "features/s390x-linux64.c".
10880 (struct gdbarch_tdep): Add gpr_full_regnum, pc_regnum, and cc_regnum.
10881 (s390_register_call_saved): New function.
10882 (s390_register_name): Remove.
10883 (s390_register_type): Remove.
10884 (s390_dwarf_regmap): Add lower half GPR pseudo DWARF CFI regnums.
10885 (s390_dwarf_reg_to_regnum): Remap GPR regnums to full GPRs.
10886 (s390_adjust_frame_regnum): Remap GPR regnums to lower halves for CFI.
10887 (s390_pseudo_register_name): New function.
10888 (s390_pseudo_register_type): New function.
10889 (s390_pseudo_register_read): Handle both 32-bit and 64-bit cases.
10890 Handle full GPR pesudos and varying pseudo register numbers.
10891 (s390_pseudo_register_write): Likewise
10892 (s390x_pseudo_register_read): Remove.
10893 (s390x_pseudo_register_write): Likewise.
10894 (s390_register_group): Remove.
10895 (s390_pseudo_register_group): New function.
10896 (s390_regmap_gregset): Add GPR upper halves.
10897 (s390x_regmap_gregset): Likewise.
10898 (s390_regmap_fpregset): Likewise.
10899 (s390_regmap_upper): New global variable.
10900 (s390_upper_regset): New global variable.
10901 (s390_upper_regset_sections): New global variable.
10902 (s390_regset_from_core_section): Handle GPR upper halves.
10903 (s390_core_read_description): New function.
10904 (s390_prologue_frame_unwind_cache): Set up ABI call-saved/clobbered
10905 register information. Handle varying pseudo register numbers.
10906 (s390_backchain_frame_unwind_cache): Likewise.
10907 (s390_frame_prev_register): Unwind full GPRs to show lower halves.
10908 (s390_stub_frame_unwind_cache): Handle varying pseudo register numbers.
10909 (s390_sigtramp_frame_unwind_cache): Unwind PSWM and PSWA as well as
10910 PC and CC pseudos. Unwind upper halves and full GPRs as appropriate.
10911 Handle varying pseudo register numbers.
10912 (s390_unwind_pc): Handle varying pseudo register numbers.
10913 (s390_dwarf2_prev_register): New function.
10914 (s390_dwarf2_frame_init_reg): Set up ABI call-saved/clobbered
10915 register information. Handle varying pseudo register numbers.
10916 Install s390_dwarf2_prev_register to unwind full GPRs.
10917 (s390_gdbarch_init): Handle target descriptions. Assign varying
10918 pseudo register numbers. Install s390_adjust_frame_regnum.
10919 (_initialize_s390_tdep): Initialize target descriptions.
10920
10921 * s390-tdep.h (S390_R0_UPPER_REGNUM .. S390_R15_UPPER_REGNUM): Define.
10922 (S390_NUM_REGS): Redefine to include upper half registers.
10923 (S390_PC_REGNUM, S390_CC_REGNUM): Remove.
10924 (S390_NUM_PSEUDO_REGS, S390_NUM_TOTAL_REGS): Likewise.
10925 (tdesc_s390_linux32): Add declaration.
10926 (tdesc_s390_linux64): Likewise.
10927 (tdesc_s390x_linux64): Likewise.
10928
1b1818e4
UW
109292010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
10930
10931 * regset.h (struct core_regset_section): Add HUMAN_NAME.
10932 * i386-linux-tdep.c (i386_linux_regset_sections): Fill in HUMAN_NAME.
10933 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
10934 (ppc_linux_vmx_regset_sections): Likewise.
10935 (ppc_linux_fp_regset_sections): Likewise.
10936
10937 * corelow.c (get_core_register_section): Constify arguments.
10938 (get_core_registers): Use gdbarch_core_regset_sections instead
10939 of hard-coded platform-specific register section names.
10940
dcbf108f
UW
109412010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
10942
10943 * dwarf2loc.c (read_pieced_value): If a piece occupies part of
b3f41522 10944 a register, assume the least-significant part is used.
dcbf108f
UW
10945 (write_pieced_value): Likewise.
10946
704e9165
UW
109472010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
10948
10949 * printcmd.c: Include "arch-utils.h".
10950 (do_one_display): Re-parse expression if current architecture changed.
10951
c54eabfa
JK
109522010-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10953 Joel Brobecker <brobecker@adacore.com>
10954
10955 * gdbtypes.c (check_typedef): New comment on type length.
10956 * value.c (allocate_value_lazy): Remove the unused atype variable. New
10957 comment on type length.
10958 (value_primitive_field): Keep the original TYPE value, new comment.
10959
50cb2941
JK
109602010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10961
10962 * cli/cli-script.c (process_next_line): Rename p1 as p_end and p2 as
10963 p_start. Change != comparisons to > and < comparisons.
10964
be66db07
JK
109652010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10966
10967 * cli/cli-script.c (process_next_line): Check P2 overrun.
10968
abd775ce
JB
109692009-01-01 Joel Brobecker <brobecker@adacore.com>
10970
10971 Update the copyright hearder to add year 2010 for most GDB files.
10972
6479260d
JB
109732009-01-01 Joel Brobecker <brobecker@adacore.com>
10974
10975 Fix build failure in inf-ptrace.c.
10976 * inf-ptrace.c (inf_ptrace_follow_fork): Fix typo.
10977
4a70f654
JB
109782010-01-01 Joel Brobecker <brobecker@adacore.com>
10979
10980 * top.c (print_gdb_version): Update copyright year.
10981
595939de 109822010-01-01, 10 Joel Brobecker <brobecker@adacore.com>
b9ee2233
JB
10983
10984 Fix break *FUN'address thread NUM.
10985 * ada-lex.l (task): Expand rule to also match the thread keyword.
10986
70575d34
JB
109872010-01-01 Joel Brobecker <brobecker@adacore.com>
10988
10989 Fix break *FUN'address task NUM.
10990 * ada-lex.l (task): New rule.
10991 * ada-lang.c (valid_task_id): Make sure the Ada task list has
10992 been built before using it.
10993
e1e4d4a4 10994For older changes see ChangeLog-2009.
c906108c
SS
10995\f
10996Local Variables:
10997mode: change-log
10998left-margin: 8
10999fill-column: 74
11000version-control: never
57da7796 11001coding: utf-8
c906108c 11002End:
This page took 1.622358 seconds and 4 git commands to generate.