gdb
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
621c8364
TT
12010-11-12 Tom Tromey <tromey@redhat.com>
2
3 * varobj.c (value_get_print_value): Rearrange. Pass stream to
4 apply_varobj_pretty_printer.
5 * c-lang.c: Include exceptions.h.
6 (c_get_string): Throw MEMORY_ERROR when appropriate.
7 * python/py-prettyprint.c (enum string_repr_result): New.
8 (print_stack_unless_memory_error): New function.
9 (print_string_repr): Change return type. Use
10 print_stack_unless_memory_error.
11 (print_children): Use print_stack_unless_memory_error.
12 (apply_val_pretty_printer): Update. Don't print children if
13 string representation threw an exception.
14 (apply_varobj_pretty_printer): Add 'stream' argument. Use
15 print_stack_unless_memory_error.
16 * python/python.c (gdbpy_gdb_error, gdbpy_gdb_memory_error): New
17 globals.
18 (_initialize_python): Initialize them.
19 * python/python-internal.h (GDB_PY_HANDLE_EXCEPTION): Use
20 gdbpy_convert_exception.
21 (GDB_PY_SET_HANDLE_EXCEPTION): Likewise.
22 (gdbpy_gdb_error, gdbpy_gdb_memory_error): Declare.
23 (gdbpy_convert_exception): Declare.
24 (apply_varobj_pretty_printer): Update.
25 * python/py-utils.c (gdbpy_convert_exception): New function.
26
f1b9e6e7
MK
272010-11-12 Marc Khouzam <marc.khouzam@ericsson.com>
28
29 * mi/mi-main.c (mi_cmd_target_detach): Accept new
30 thread-group id format.
31
74884f7b
JK
322010-11-12 Jan Kratochvil <jan.kratochvil@redhat.com>
33
34 * spu-tdep.c (spu_catch_start): Fix compilation error typo.
35
84f4c1fe
PM
362010-11-11 Phil Muldoon <pmuldoon@redhat.com>
37
38 * python/py-breakpoint.c (BPPY_REQUIRE_VALID): Check if bp is
39 NULL.
40 (BPPY_SET_REQUIRE_VALID): Ditto.
41 (bpnum_is_valid): Delete function.
42 (bppy_get_visibility): New function.
43 (bppy_new): Parse for, and validate internal keyword. Pass
44 internal keyword to breakpoint or watchpoint functions.
45 (build_bp_list): New function.
46 (gdbpy_breakpoints): Rewrite. Use build_bp_list and
47 iterate_over_breakpoints.
48 (gdbpy_breakpoint_created): Rewrite. Do not store breakpoints in a
49 look-aside vector.
50 (gdbpy_breakpoint_deleted): Rewrite, defer breakpoint management
51 to internal breakpoint chain.
52
53 * breakpoint.c (set_breakpoint_number): New function.
54 (breakpoint_1): Check if breakpoint number is more than zero.
55 (set_raw_breakpoint_without_location): Set py_bp_object to NULL.
56 (create_breakpoint_sal): Take a new parameter called internal.
57 Call set_breakpoint_number with internal parameter. Do not
58 mention internal breakpoints. All callers updated.
59 (create_breakpoint): Ditto.
60 (create_breakpoints_sal): Ditto.
61 (watch_command_1): Ditto.
62 (watch_command_wrapper): Take a new parameter called internal.
63 All callers updated.
64 (rwatch_command_wrapper): Ditto.
65 (awatch_command_wrapper): Ditto.
66 (save_breakpoints): Update breakpoint save condition check.
67 (iterate_over_breakpoints): New function.
68 * breakpoint.h: Add conditional python includes. Add py_bp_object
69 and comment to struct breakpoint. Update all callers.
70 * defs.h: Add PyObject definition for GDB builds without Python.
71
4dfea560
DE
722010-11-10 Doug Evans <dje@google.com>
73
f61a2da7
DE
74 * python/lib/gdb/command/pretty_printers.py
75 (do_enable_pretty_printer_1): Handle printer.subprinters is None.
76
4dfea560
DE
77 * value.c (set_value_enclosing_type): Renamed from
78 value_change_enclosing_type. All callers updated.
79 * value.h (set_value_enclosing_type): Update.
80 * valops.c (value_full_object): Always return a copy if we need to
81 make changes to the input value.
82
a1442452
PA
832010-11-09 Pedro Alves <pedro@codesourcery.com>
84
85 * breakpoint.c (watch_command_1): Get a pointer of the lazy
86 version of the expression's value, even if reading the value from
87 memory fails. When creating a -location watchpoint, get the
88 value's address from the lazy value pointer.
89
803b5f95
JK
902010-11-07 Jan Kratochvil <jan.kratochvil@redhat.com>
91
92 * infrun.c (restore_inferior_thread_state): Use
93 discard_inferior_thread_state to free the data.
94 (discard_inferior_thread_state): xfree also siginfo_data.
95
99e7ae30
DE
962010-11-05 Doug Evans <dje@google.com>
97
98 Make gdb.parameter("directories") work.
99 New command "set directories".
100 * NEWS: Document them.
101 * source.c (set_directories_command): New function.
102 (show_directories_1): Renamed from show_directories.
103 All callers updated.
104 (show_directories_command): New function.
105 (_initialize_source): Install "directories" as a set/show
106 variable instead of just a show command.
107
f4b8a18d
KW
1082010-11-05 Ken Werner <ken.werner@de.ibm.com>
109
110 * NEWS: Mention OpenCL C language support.
111 * Makefile.in (SFILES): Add opencl-lang.c.
112 (COMMON_OBS): Add opencl-lang.o.
113 * opencl-lang.c: New File
114 * defs.h (enum language): Add language_opencl.
115 * dwarf2read.c (read_file_scope): Handle DW_AT_producer for the
116 IBM XL C OpenCL compiler.
117 * c-lang.h: Include "parser-defs.h".
118 (evaluate_subexp_c): Declare.
119 * c-lang.c (evaluate_subexp_c): Remove the static qualifier.
120 (c_op_print_tab): Add declaration.
121 * eval.c (binop_promote): Handle language_opencl.
122 * c-exp.y: Lookup the primitive types instead of referring to the
123 builtins.
124
075ff26d
JK
1252010-11-05 Jan Kratochvil <jan.kratochvil@redhat.com>
126
127 Fix configure --enable-plugins --without-python.
128 * configure.ac (for ELF support in BFD) <"$plugins" = "yes">: New.
129 * configure: Regenerate.
130
14ad3217
JK
1312010-11-05 Jan Kratochvil <jan.kratochvil@redhat.com>
132
133 * solib.c (solib_read_symbols): Call exception_fprintf even without
134 FROM_TTY. Print also so->so_name.
135
a9d5ef47
SW
1362010-11-04 Sami Wagiaalla <swagiaal@redhat.com>
137
138 * gdbtypes.h (struct rank): Created subrank.
139 * gdbtypes.c: Initialized subrank for all
140 'BADNESS' constants.
141 (distance_to_ancestor): New function.
142 (is_ancestor): Use distance_to_ancestor.
143 (is_public_ancestor): Ditto.
144 (sum_ranks): Handle subrank.
145 (compare_ranks): Ditto.
146 (rank_one_type): Subrank base conversions.
147
6403aeea
SW
1482010-11-04 Sami Wagiaalla <swagiaal@redhat.com>
149
150 * gdbtypes.h: Create struct rank.
151 Convert all 'BADNESS' macros to const struct rank declarations.
152 (sum_ranks): New function.
153 (compare_ranks): New function.
154 * valops.c (find_oload_champ): Updated.
155 (classify_oload_match): Use compare_ranks.
156 Improved comments.
157 (compare_parameters): Use compare_ranks.
158 * gdbtypes.c: Initialize 'BADNESS' constants.
159 (sum_ranks): New function.
160 (compare_ranks): New function.
161 (compare_badness): Use compare_ranks.
162 (rank_function): Use global constants instead of literals.
163 (rank_one_type): Ditto.
164 Return struct rank.
165 Use sum_ranks.
166
23fa7f66
DE
1672010-11-04 Doug Evans <dje@google.com>
168
169 * python/py-prettyprint.c (find_pretty_printer_from_gdb): Fix comment.
170 (find_pretty_printer): Fix comments.
171
608bcef2
HZ
1722010-11-04 Hui Zhu <teawater@gmail.com>
173
174 * tracepoint.c (remote_trace_set_readonly_regions): Change lma to vma.
175
9addb3b9
JB
1762010-11-03 Joel Brobecker <brobecker@adacore.com>
177
178 * ada-valprint.c (ada_val_print_array): Move variables `eltlen'
179 and `len' declaration and computation inside block where they
180 are being used.
181
75be741b
JB
1822010-11-03 Joel Brobecker <brobecker@adacore.com>
183
184 * valprint.c (val_print_array_elements): Put back handling of
185 empty arrays.
186
dbc98a8b
KW
1872010-11-03 Ken Werner <ken.werner@de.ibm.com>
188
189 * dwarf2read.c (read_array_type): Read the DW_AT_byte_size from the
190 DIE and set the length of the type.
191 * gdbtypes.h (get_array_bounds): Move here from valprint.h.
192 * gdbtypes.c (get_array_bounds): Move here from valprint.c and
193 return 0 if the corresponding bounds of the type are undefined.
194 * valprint.h (get_array_bounds): Move declaration to gdbtypes.h.
195 * valprint.c (get_array_bounds): Move implementation to gdbtypes.c.
196 (val_print_array_elements): Use get_array_bounds to compute the number
197 of array elements instead of dividing the length of the array by the
198 length of the element types.
199 * valarith.c (vector_binop): Likewise.
200 * valops.c (value_cast): Likewise.
201 * c-valprint.c (c_val_print): Likewise.
202 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
203
120bd360
KW
2042010-11-03 Ken Werner <ken.werner@de.ibm.com>
205
206 * valarith.c (value_pos, value_neg, value_complement): Handle
207 vector types.
208 * valops.c (value_one): Likewise.
209
c37f7098
KW
2102010-11-03 Ken Werner <ken.werner@de.ibm.com>
211
212 * value.h (value_non_lval): Declare.
213 * value.c (value_non_lval): New function.
214 * eval.c (evaluate_subexp_standard) <UNOP_POSTINCREMENT,
215 UNOP_POSTDECREMENT>: Call value_non_lval to ensure to return a
216 non-lvalue.
217
7b51bc51
DE
2182010-11-02 Doug Evans <dje@google.com>
219
220 New python module gdb.printing, and new commands info pretty-printer,
221 enable pretty-printer, disable pretty-printer.
222 * NEWS: Mention them.
223 * data-directory/Makefile.in (PYTHON_FILES): Add gdb/printing.py,
224 gdb/command/__init__.py, gdb/command/pretty_printers.py.
225 * python/lib/gdb/__init__.py: Install pretty-printer commands.
226 * python/lib/gdb/printing.py: New file.
227 * python/lib/gdb/command/__init__.py: New file.
228 * python/lib/gdb/command/pretty_printers.py: New file.
229
50c97f38
TT
2302010-11-02 Tom Tromey <tromey@redhat.com>
231
232 * NEWS: Mention Guile removal.
233 * defs.h (enum language) <language_scm>: Remove.
234 * Makefile.in (SFILES): Remove scm-exp.c, scm-lang.c,
235 scm-valprint.c.
236 (HFILES_NO_SRCDIR): Remove scm-lang.h, scm-tags.h.
237 (COMMON_OBS): Remove scm-exp.o, scm-lang.o, scm-valprint.o.
238 * scm-exp.c, scm-lang.c, scm-valprint.c, scm-lang.h, scm-tags.h:
239 Remove.
240
9dea9163
DE
2412010-11-02 Doug Evans <dje@google.com>
242
243 * top.c: #include "python/python.h".
244 (gdb_init): Add a comment regarding initialize_all_files.
245 Call finish_python_initialization at the end.
246 * python/python.h (finish_python_initialization): Declare.
247 * python/python.c (finish_python_initialization): New function.
248 (_initialize_python): Move python-implemented initialization there
249 and call it.
250 (GdbMethods): Use #ifdef HAVE_PYTHON for consistency.
251
a289b8f6
JK
2522010-11-02 Jan Kratochvil <jan.kratochvil@redhat.com>
253
254 Revert:
255 2010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
256 Pedro Alves <pedro@codesourcery.com>
257 * gdbthread.h (currently_stepping): New declaration.
258 * infrun.c (currently_stepping): Remove the forward declaration.
259 (currently_stepping): Make it global.
260 * linux-nat.c (resume_callback) <lp->stopped && lp->status == 0>: New
261 variables tp and step, initialized them. Pass STEP to to_resume.
262 Print also possibly "PTRACE_SINGLESTEP" if STEP. Initialize LP->STEP.
263 * remote.c (currently_stepping_callback): New.
264 (remote_vcont_resume)
265 <ptid_equal (ptid, minus_one_ptid) || ptid_is_pid (ptid)>:
266 New variable tp. Call currently_stepping_callback and step such
267 thread.
268
2209c807
HZ
2692010-11-01 Hui Zhu <teawater@gmail.com>
270
271 * tracepoint.c (tfile_xfer_partial): Change lma to vma.
272
0a2a54b8
HZ
2732010-10-28 Hui Zhu <teawater@gmail.com>
274
275 * tracepoint.c (trace_save): Change utp->actions to
276 utp->step_actions.
277
284a3db3
JB
2782010-10-26 Joel Brobecker <brobecker@adacore.com>
279
280 * (_FILE_OFFSET_BITS): Fix typo in comment.
281
aed1781d
JB
2822010-10-26 Joel Brobecker <brobecker@adacore.com>
283
284 * python/python-internal.h (_FILE_OFFSET_BITS): Undefine.
285 (PyEval_InitThreads): Remove duplicate. Define as nothing.
286 (PyEval_ReleaseLock): Define as nothing.
287
1e3fad37
JB
2882010-10-26 Joel Brobecker <brobecker@adacore.com>
289
290 * dwarf2read.c (psymtab_include_file_name): Replace call to strcmp
291 by call to FILENAME_CMP.
292
558b1900
JB
2932010-10-26 Joel Brobecker <brobecker@adacore.com>
294
295 * dictionary.c (dict_hash): Move assignment out of if condition.
296
f474844c
JZ
2972010-10-22 Jie Zhang <jie@codesourcery.com>
298
299 * Makefile.in (install): Remove dependency of install-only and
300 recursively invoke make for install-only.
301 * data-directory/Makefile.in: Add FLAGS_TO_PASS variable.
302 (install): Pass FLAGS_TO_PASS when recursively make install-only.
303
8991e9fa
HZ
3042010-10-20 Hui Zhu <teawater@gmail.com>
305
306 * tracepoint.c (tfile_get_traceframe_address): Call
307 extract_signed_integer.
308 (tfile_trace_find): Call extract_signed_integer and
309 extract_unsigned_integer. Change data_size to unsigned int.
310 (tfile_fetch_registers): Call extract_unsigned_integer.
311 (tfile_xfer_partial): Ditto.
312 (tfile_get_trace_state_variable_value): Call
313 extract_signed_integer and extract_unsigned_integer.
314
21bce120
VP
3152010-10-20 Vladimir Prus <vladimir@codesourcery.com>
316
317 * remote.c (remote_get_threadlist): If we got empty
318 response, bail out immediately, and don't emit any
319 warnings.
320
ad8b5167
UW
3212010-10-19 Ulrich Weigand <uweigand@de.ibm.com>
322
323 * arm-tdep.c (thumb_get_next_pc_raw): Handle Thumb-16 encoding
324 for "mov pc, REG" as well.
325 (thumb_instruction_changes_pc): Likewise.
326
79afc5ef
SW
3272010-10-19 Sami Wagiaalla <swagiaal@redhat.com>
328
329 PR C++/11500:
330 * valarith.c (value_x_unop): Handle STRUCTOP_PTR.
331 * eval.c (evaluate_subexp_standard): Check for overload of
332 'operator->'.
333 * valarith.c (value_x_binop): Throw NOT_FOUND_ERROR.
334 (value_x_unop): Ditto.
335 * valops.c: Include "exceptions.h".
336 (find_overload_match): Throw NOT_FOUND_ERROR.
337 (value_struct_elt): Ditto.
338
cca56ac7
TT
3392010-10-19 Tom Tromey <tromey@redhat.com>
340
341 * python/py-cmd.c (cmdpy_function): Unreference exception state.
342
026ffab7
SW
3432010-10-19 Sami Wagiaalla <swagiaal@redhat.com>
344
345 * gdbtypes.h: Introduce BOOL_PTR_CONVERSION_BADNESS.
346 * gdbtypes.c (rank_one_type): Use BOOL_PTR_CONVERSION_BADNESS
347 for conversion.
348 Make all other conversions illegal.
349
8c540a24
DE
3502010-10-18 Doug Evans <dje@google.com>
351
352 * c-typeprint.c (c_type_print_base, case TYPE_CODE_TYPEDEF): Verify
353 assumptions of when this case happens. Print "<unnamed typedef>".
354
3a772aa4
TT
3552010-10-18 Tom Tromey <tromey@redhat.com>
356
357 * valprint.c (val_print_string): Pass 'encoding' to
358 LA_PRINT_STRING.
359
01f8c46d
JK
3602010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
361
362 Fix the `stopped language detection' testcase for gcc-4.5.
363 * dwarf2read.c (read_partial_die): Set also LANGUAGE_OF_MAIN.
364 * symfile.c (set_initial_language): Move variable filename to a more
365 inner block. Prefer LANGUAGE_OF_MAIN.
366 * symtab.c (language_of_main): New variable.
367 (set_main_name): Always reset LANGUAGE_OF_MAIN.
368 * symtab.h (language_of_main): New declaration.
369
8aeb23f3
JK
3702010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
371 Pedro Alves <pedro@codesourcery.com>
372
373 * gdbthread.h (currently_stepping): New declaration.
374 * infrun.c (currently_stepping): Remove the forward declaration.
375 (currently_stepping): Make it global.
376 * linux-nat.c (resume_callback) <lp->stopped && lp->status == 0>: New
377 variables tp and step, initialized them. Pass STEP to to_resume.
378 Print also possibly "PTRACE_SINGLESTEP" if STEP. Initialize LP->STEP.
379 * remote.c (currently_stepping_callback): New.
380 (remote_vcont_resume)
381 <ptid_equal (ptid, minus_one_ptid) || ptid_is_pid (ptid)>:
382 New variable tp. Call currently_stepping_callback and step such
383 thread.
384
c1e56572
JK
3852010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
386
387 * infrun.c (follow_exec): Replace symbol_file_add_main by
388 symbol_file_add with SYMFILE_DEFER_BP_RESET, set_initial_language and
389 breakpoint_re_set.
390 * m32r-rom.c (m32r_load, m32r_upload_command): Use parameter 0 for
391 clear_symtab_users.
392 * objfiles.c (free_all_objfiles): Likewise.
393 * remote-m32r-sdi.c (m32r_load): Likewise.
394 * solib-som.c (som_solib_create_inferior_hook): Likewise.
395 * symfile.c (new_symfile_objfile): New comment for add_flags. Call
396 clear_symtab_users with ADD_FLAGS.
397 (reread_symbols): Use parameter 0 for clear_symtab_users.
398 (clear_symtab_users): New parameter add_flags. Do not call
399 breakpoint_re_set if SYMFILE_DEFER_BP_RESET.
400 (clear_symtab_users_cleanup): Use parameter 0 for clear_symtab_users.
401 * symtab.h (clear_symtab_users): New parameter add_flags.
402
3a182a69
JK
4032010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
404
405 Fix GCC false warning.
406 * varobj.c (value_get_print_value) <str_addr>: Initialize it.
407
3a9d7214
PM
4082010-10-16 Pierre Muller <muller@ics.u-strasbg.fr>
409
410 * p-typeprint.c (pascal_type_print_method_args): Fix problem in
411 display of type of method arguments.
412
09ca9e2e
TT
4132010-10-15 Tom Tromey <tromey@redhat.com>
414
415 PR python/11948:
416 * varobj.c (value_get_print_value): Use val_print_string to print
417 lazy strings.
418 * python/py-prettyprint.c (print_string_repr): Use
419 val_print_string to print lazy strings. Fix cleanup logic.
420 (print_children): Likewise.
421 * python/python-internal.h (gdbpy_extract_lazy_string): Update.
422 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Rewrite.
423 Change return type to 'void', add 'addr' argument.
424 * value.h (val_print_string): Update.
425 * valprint.c (val_print_string): Add 'encoding' argument.
426 * printcmd.c (print_formatted): Update.
427 * p-valprint.c (pascal_val_print): Update.
428 * m2-valprint.c (print_unpacked_pointer): Update.
429 (m2_print_array_contents): Likewise.
430 * jv-valprint.c (java_value_print): Update.
431 * f-valprint.c (f_val_print): Update.
432 * c-valprint.c (c_val_print): Update.
433 * auxv.c (fprint_target_auxv): Update.
434
92163a10
JK
4352010-10-15 Doug Evans <dje@google.com>
436 Jan Kratochvil <jan.kratochvil@redhat.com>
437
438 PR exp/12117
439 * gdbtypes.c (check_typedef): Clean up function comment.
440 Keep track of instance flags as we strip typedefs and create a new
441 type to preserve them if necessary.
442 * gdbtypes.h (type) <instance_flags>: Extend the comment.
443
dae71413
PM
4442010-10-15 Pierre Muller <muller@ics.u-strasbg.fr>
445
446 * p-lang.c (is_pascal_string_type): Use TYPE_FIELD_NAME accessor.
447
7062b0a0
SW
4482010-10-14 Sami Wagiaalla <swagiaal@redhat.com>
449
450 * gdbtypes.h: Create BASE_PTR_CONVERSION_BADNESS.
451 * gdbtypes.c (rank_one_type): Move type comparison code out of here
452 to...
453 (types_equal): ...here. And changed it as follows:
454 Outside of typedefs type must be of the same TYPE_CODE.
455 When compairing two pointers or references they are equal if their
456 targets are equal.
457 Correct pointer conversions.
458
5c3da5ea
PM
4592010-10-14 Pierre Muller <muller@ics.u-strasbg.fr>
460
461 * p-lang.c (is_pascal_string_type): Avoid crashes on structures
462 having fields without names.
463
577ce03a
TT
4642010-10-13 Tom Tromey <tromey@redhat.com>
465
466 * language.h (LA_PRINT_ARRAY_INDEX): Fix argument name.
467
a737a51b
DE
4682010-10-13 Doug Evans <dje@google.com>
469
0e3509db
DE
470 New python module gdb.types.
471 * NEWS: Document it.
472 * data-directory/Makefile.in (PYTHON_FILES): Add gdb/types.py.
473 * python/lib/gdb/types.py: New file.
474
a737a51b
DE
475 * c-typeprint.c: Whitespace cleanup.
476 (cp_type_print_method_args): Remove unnecessary forward decl.
477 (cp_type_print_derivation_info): Ditto.
478 (c_type_print_varspec_prefix): Mark as static at definition.
479 (c_type_print_modifier): Fix arg descriptions.
480
8dc78533
JK
4812010-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
482
483 * python/py-breakpoint.c (bppy_set_condition): New comment.
484 * python/py-cmd.c (cmdpy_function): Call also gdbpy_print_stack for
485 failed PyUnicode_Decode.
486 (cmdpy_completer): Skip element for failed
487 python_string_to_host_string.
488 (cmdpy_init): Return -1 on failed python_string_to_host_string.
489 * python/py-frame.c (frapy_read_var): Extend the function comment.
490 * python/py-function.c (fnpy_init): Return -1 on failed
491 python_string_to_host_string.
492 * python/py-inferior.c (infpy_read_memory, infpy_write_memory): Extend
493 the function comment.
494 (infpy_search_memory): Extend the function comment. Remove the
495 PyErr_SetString call on already set error state.
496 * python/py-param.c (set_parameter_value): Extend the function
497 comment. Return -1 on failed python_string_to_host_string, twice.
498 (set_attr): Extend the function comment.
499 (compute_enum_values): Extend the function comment. New variable
500 back_to. Protect self->enumeration by BACK_TO cleanups. Return 0 on
501 failed python_string_to_host_string.
502 (get_doc_string): Call gdbpy_print_stack on failed
503 python_string_to_host_string.
504 (parmpy_init): Extend the function comment.
505 * python/py-prettyprint.c (pretty_print_one_value): Likewise.
506 (gdbpy_get_display_hint, print_children): Call gdbpy_print_stack on
507 failed python_string_to_host_string.
508 * python/py-value.c (valpy_new, valpy_getitem, valpy_call)
509 (valpy_binop, valpy_richcompare): Extend the function comment.
510 * python/python.c
511 (struct python_env) <error_type, error_value, error_traceback>: New
512 fields.
513 (restore_python_env): Handle PyErr_Occurred. Call PyErr_Restore.
514 (ensure_python_env): Call PyErr_Fetch.
515 * varobj.c (update_dynamic_varobj_children): Call gdbpy_print_stack on
516 failed convert_value_from_python.
517 (value_get_print_value): Call gdbpy_print_stack on failed
518 python_string_to_target_python_string.
519
1bdb0c54
TT
5202010-10-12 Tom Tromey <tromey@redhat.com>
521
522 * python/py-prettyprint.c (search_pp_list): Fix error checking.
523
0526b37a
SW
5242010-10-12 Sami Wagiaalla <swagiaal@redhat.com>
525
526 * gdbtypes.c (do_is_ancestor): New function.
527 (is_ancestor): Use do_is_ancestor.
528 (is_public_ancestor): Use do_is_ancestor.
529
c1b5be38
PM
5302010-10-12 Pierre Muller <muller@ics.u-strasbg.fr>
531
532 * ser-go32.c (struct dos_ops): Add missing fdopen field.
533
68770265
MGD
5342010-10-12 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
535
536 * arm-tdep.c (arm_mode_strings): Add NULL entry at end of array.
537
64b00020
DE
5382010-10-11 Doug Evans <dje@google.com>
539
540 * c-typeprint.c (c_type_print_modifier): Add note that this prints
541 the address space id too.
542
43b8e241
JK
5432010-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
544
545 Fix attaching to re-prelinked executables on ppc64.
546 * solib-svr4.c (svr4_exec_displacement): New variable plt2_asect,
547 initialize it, try to adjust FILESZ field by it.
548
417b5110
DJ
5492010-10-08 Daniel Jacobowitz <dan@codesourcery.com>
550
551 * tracepoint.c (merge_uploaded_trace_state_variables): Only print
552 messages if info_verbose.
553
3bdf2bbd
KW
5542010-10-08 Ken Werner <ken.werner@de.ibm.com>
555
556 * valops.c (value_cast): Handle vector types.
557 * valarith.c (value_binop): Widen scalar to vector if appropriate.
558
ec3d575a
UW
5592010-10-08 Ulrich Weigand <uweigand@de.ibm.com>
560
561 * arm-tdep.c (thumb_expand_immediate): New function.
562 (thumb_instruction_changes_pc): Likewise.
563 (thumb2_instruction_changes_pc): Likewise.
564 (thumb_analyze_prologue): Handle 32-bit Thumb instructions during
565 prologue parsing. Improved support for optimized code.
566 (thumb_scan_prologue): Do not reply on line-number information,
567 use same heuristics as arm_scan_prologue insead.
568 (skip_prologue_function): Accept functions
569 "__tls_get_addr" and "__aeabi_read_tp".
570
4024ca99
UW
5712010-10-08 Ulrich Weigand <uweigand@de.ibm.com>
572 Daniel Jacobowitz <dan@codesourcery.com>
573
574 * arm-tdep.c (thumb_in_function_epilogue_p)
575 (arm_in_function_epilogue_p): New.
576 (arm_gdbarch_init): Install arm_in_function_epilogue_p as
577 gdbarch_in_function_epilogue_p callback.
578
855c153f
DE
5792010-10-07 Doug Evans <dje@google.com>
580
00e14314
DE
581 * cc-with-index.sh (output_file): Default to a.out.
582
3876f04e
DE
583 * dwarf2read.c (mapped_index): Rename member index_table to
584 symbol_table and index_table_slots to symbol_table_slots.
585 All uses updated.
586 (create_symbol_hash_table): Renamed from create_index_table.
587 All callers updated.
588 (add_indices_to_cpool): Rename arg index_table to symbol_hash_table.
589 (write_hash_table): Rename local index_table to symbol_hash_table.
590
855c153f
DE
591 * addrmap.h (addrmap_foreach_fn): New typedef.
592 (addrmap_foreach): Declare.
593 * addrmap.c (struct addrmap_funcs): New member foreach.
594 (addrmap_foreach): New function.
595 (addrmap_fixed_foreach): New function.
596 (addrmap_fixed_funcs): Update.
597 (struct mutable_foreach_data): New struct.
598 (addrmap_mutable_foreach_worker): New function.
599 (addrmap_mutable_foreach): New function.
600 (addrmap_mutable_funcs): Update.
601
1d2a4540
PH
6022010-10-07 Paul Hilfinger <hilfinger@adacore.com>
603
604 * dictionary.c (dict_hash): Revert to msymbol_hash_iw in
605 more cases.
606
40658b94
PH
6072010-10-07 Paul Hilfinger <hilfinger@adacore.com>
608
609 * ada-lang.c (full_match): Declare.
610 (ada_match_name): Rename to match_name (we should avoid prefixing static
611 symbols with "ada_").
612 (match_name): New name for ada_match_name.
613 (struct ada_psym_data): Remove and replace with...
614 (struct match_data): User data for map_matching_symbols.
615 (ada_add_psyms): Remove.
616 (aux_add_nonlocal_symbols): New function, used as callback for
617 map_matching_symbols.
618 (compare_names): Ordering function adopted from strcmp_iw for Ada-encoded
619 symbols.
620 (ada_add_non_local_symbols): Rename to add_nonlocal_symbols.
621 (add_nonlocal_symbols): Renamed from ada_add_non_local_symbols.
622 Rework to use map_matching_symbols instead of map_ada_symtabs.
623 (ada_lookup_symbol_list): Use add_nonlocal_symbols.
624 * psymtab.c: Include dependency on dictionary.h.
625 (match_partial_symbol): New function.
626 (ada_lookup_partial_symbol): Remove.
627 (map_block): New function, auxiliary to map_matching_symbols_psymtab.
628 (map_matching_symbols_psymtab): New function.
629 (psym_functions): Replace map_ada_symtabs with map_matching_symbols_psymtab.
630 * symfile.h: Replace map_ada_symtabs definition with map_matching_symbols.
631
c4d840bd
PH
6322010-10-06 Paul Hilfinger <hilfinger@adacore.com>
633
634 * ada-lang.c (ada_match_name): Use new API for wild_match.
40658b94
PH
635 (wild_match): Change API to be consistent with that of strcmp_iw;
636 return 0 for a match, and switch operand order.
637 (full_match): New function.
638 (ada_add_block_symbols): Use dict_iter_match_{first,next} for
639 matching to allow use of hashing.
640 * dictionary.c (struct dict_vector): Generalize iter_name_first,
641 iter_name_next ot iter_match_first, iter_match_next.
642 (iter_name_first_hashed): Replace with iter_match_first_hashed.
643 (iter_name_next_hashed): Replace with iter_match_next_hashed.
644 (iter_name_first_linear): Replace with iter_match_first_linear.
645 (iter_name_next_linear): Replace with iter_match_next_linear.
646 (dict_iter_name_first): Re-implement to use dict_iter_match_first.
647 (dict_iter_name_next): Re-implement to use dict_iter_match_next.
648 (dict_iter_match_first): New function.
649 (dict_iter_match_next): New function.
650 (dict_hash): New function.
651 * dictionary.h (dict_iter_match_first, dict_iter_match_next): Declare.
652 * psymtab.c (ada_lookup_partial_symbol): Use new wild_match API.
c4d840bd 653
543ecec7
DE
6542010-10-06 Doug Evans <dje@google.com>
655
656 * data-directory/Makefile.in: Remove @host_makefile_frag@, @frags@.
657
2f608a3a
KW
6582010-10-06 Ken Werner <ken.werner@de.ibm.com>
659
660 * dwarf2read.c (read_tag_const_type): Handle const arrays.
661
aa2e2d8d
DE
6622010-10-06 Doug Evans <dje@google.com>
663
9c9606fb
DE
664 * Makefile.in (REQUIRED_SUBDIRS): New var.
665 (subdir_do): Verify required subdir Makefiles exist.
666
aa2e2d8d
DE
667 Create subdir data-directory.
668 * Makefile.in (XML_SYSCALL_DIR, XML_SYSCALL_FILES): Moved to
669 data-directory/Makefile.in.
670 (SUBDIRS): Add data-directory.
671 (all): Remove xml-syscall-copy dependency.
672 (xml-syscall-copy): Moved to data-directory/Makefile.in as
673 stamp-syscalls.
674 (xml-syscall-install): Moved to data-directory/Makefile.in as
675 install-syscalls.
676 (install-only): Remove xml-syscall-install dependency.
677 (all-data-directory): New rule.
678 (data-directory/Makefile): New rule.
679 * configure.ac (AC_OUTPUT): Add data-directory/Makefile.
680 * configure: Regenerate.
681 * data-directory/Makefile.in: New file.
682 * python/lib/gdb/__init__.py: New file.
683
aa27d0b3
JB
6842010-10-06 Joel Brobecker <brobecker@adacore.com>
685
686 Fix ARI warnings in advance_wild_match.
687 * ada-lang.c (advance_wild_match): Delete local variable t2.
688 Adjust code accordingly. Minor reformatting.
689
2844d6b5
KW
6902010-10-06 Ken Werner <ken.werner@de.ibm.com>
691
692 * gdbtypes.h (struct main_type): Remove flag_nottext.
693 (enum type_flag_value): Remove TYPE_FLAG_NOTTEXT.
694 (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_NOTTEXT.
695 (TYPE_NOTTEXT): Use TYPE_INSTANCE_FLAG_NOTTEXT instead of flag_nottext.
696 * gdbtypes.c (make_vector_type): Use TYPE_INSTANCE_FLAG_NOTTEXT instead
697 of TYPE_FLAG_NOTTEXT.
698 (init_type): Remove the initialization of the flag_nottext field.
699 (gdbtypes_post_init): Use TYPE_INSTANCE_FLAG_NOTTEXT instead of
700 TYPE_FLAG_NOTTEXT.
701 * c-valprint.c (c_val_print): Remove TYPE_VECTOR check.
702
2fdf6df6
DE
7032010-10-04 Doug Evans <dje@google.com>
704
ea65fe05
DE
705 * cc-with-index.sh: New file.
706
2fdf6df6
DE
707 * dwarf2read.c (dw2_do_instantiate_symtab): Insert blank line after
708 function comment.
709 (dw2_instantiate_symtab, dw2_get_cu, extract_cu_value): Ditto.
710 (create_cus_from_index, create_addrmap_from_index): Ditto.
711 (mapped_index_string_hash, find_slot_in_mapped_hash): Ditto.
712 (dw2_setup, dw2_require_line_header, dw2_require_full_path): Ditto.
713 (dw2_do_expand_symtabs_matching): Ditto.
b89be57b
DE
714 (eq_strtab_entry, create_strtab, add_string): Ditto.
715 (hash_strtab_entry): Ditto.
716 (hash_symtab_entry, eq_symtab_entry, delete_symtab_entry): Ditto.
717 (create_index_table, create_mapped_symtab, find_slot): Ditto.
718 (hash_expand, add_index_entry, add_indices_to_cpool): Ditto.
719 (write_hash_table, add_address_entry, write_psymbols): Ditto.
720 (write_obstack, unlink_if_set, write_one_signatured_type): Ditto.
721 (write_psymtabs_to_index): Ditto.
2fdf6df6 722
40bc484c
JB
7232010-10-04 Joel Brobecker <brobecker@adacore.com>
724
725 * ada-lang.c: #include "value.h".
726 (ensure_lval): Delete advance declaration. Remove gdbarch and sp
727 arguments. Implement using value_allocate_space_in_inferior
728 instead of allocating memory from the stack.
729 (make_array_descriptor): Remove gdbarch and sp parameters. Update
730 calls to ensure_lval.
731 (ada_convert_actual): Remove gdbarch and sp parameters. Update
732 calls to make_array_descriptor and ensure_lval.
733 * ada-lang.h (ada_convert_actual): Update declaration.
734 * infcall.c (value_arg_coerce): Update call to ada_convert_actual.
735
f17618ea
DE
7362010-10-04 Doug Evans <dje@google.com>
737
738 * python/python.c (_initialize_python): Define new function
739 GdbSetPythonDirectory in python. Use it to update sys.path and
740 gdb.__path__.
741
83e3a93c
PH
7422010-10-03 Paul Hilfinger <hilfinger@adacore.com>
743
744 * gdb/ada-typeprint.c (print_selected_record_field_types): New function,
745 incorporating and generalizing print_record_field_types.
746 (print_record_field_types): Change return value and update comment.
747 Re-implement using print_selected_record_field_types.
748 (print_choices): Print "=>" here.
749 Handle case of unencoded variant branch.
750 (print_variant_clauses): Reformat comment.
751 Special-case unencoded variant branch.
752
7532010-10-03 Paul Hilfinger <hilfinger@adacore.com>
73589123
PH
754
755 * ada-lang.c (wild_match): Reimplement.
756 Change API to eliminate unused length argument, reverse arguments and
757 make 0 the 'true' return value.
758 (advance_wild_match): New auxiliary function for wild_match to improve
759 readability.
760 (ada_match_name, ada_add_block_symbols): Use new API for wild_match.
761 * psymtab.c (ada_lookup_partial_symbol, map_ada_symtabs): Use new
762 API for wild_match.
763 * symfile.h (map_ada_symtabs): Modify declaration to use new API for
764 wild_match.
765 * dwarf2read.c (dw2_map_ada_symtabs): Ditto.
766
11570e71
DE
7672010-10-01 Doug Evans <dje@google.com>
768
769 * dwarf2read.c (_initialize_dwarf2_read): Add usage info to help text
770 for `save gdb-index' command.
771
72b9f47f
TT
7722010-10-01 Tom Tromey <tromey@redhat.com>
773
774 * symfile.h (allocate_symtab): Update.
775 * symfile.c (allocate_symtab): Make 'filename' const.
776 * psymtab.c (add_psymbol_to_bcache): Make 'name' const.
777 (add_psymbol_to_list): Likewise.
778 * psympriv.h (struct partial_symtab) <filename, dirname>: Now
779 const.
780 (add_psymbol_to_list): Update.
781 * mdebugread.c (new_symtab): Make 'name' const.
782 (psymtab_to_symtab_1): Make 'filename' const.
783 * elfread.c (elfstab_offset_sections): Update.
784 * dwarf2read.c (dwarf_decode_lines): Make 'comp_dir' const.
785 (dwarf2_start_subfile): Make 'dirname' and 'comp_dir' const.
786 (psymtab_include_file_name): Update.
787 * dbxread.c (find_stab_function_addr): Make 'filename' const.
788 * buildsym.h (start_subfile): Update.
789 * buildsym.c (start_subfile): Make arguments const.
790
55e39473
MS
7912010-09-30 Ali Lakhia <lakhia@alumni.utexas.net>
792
793 * fork-child.c (breakup_args): Fix crash if shell forking is
794 disabled at compile time.
795
05e522ef
JB
7962010-10-01 Joel Brobecker <brobecker@adacore.com>
797
798 * ada-lang.c (desc_bounds): Add handling of the case where
799 the P_BOUNDS field is a pointer to a stub.
800 (desc_data_target_type): Same for P_ARRAY field.
801 (ada_check_typedef): Strip the typedef layers from the type
802 found by ada_find_any_type.
803
49a45ecf
JB
8042010-10-01 Joel Brobecker <brobecker@adacore.com>
805
806 * sparc-tdep.c (sparc32_frame_align): New function.
807 (sparc32_gdbarch_init): Set the frame_align gdbarch method.
808 * sparc64-tdep.c (sparc64_frame_align): New function.
809 (sparc64_gdbarch_init): Set the frame_align gdbarch method.
810
a5916a62
L
8112010-09-30 H.J. Lu <hongjiu.lu@intel.com>
812
813 * defs.h (MAX_REGISTER_SIZE): Set to 64.
814
00b5771c
TT
8152010-09-30 Tom Tromey <tromey@redhat.com>
816
817 * symfile.h (struct sym_fns) <next>: Remove.
818 (add_symtab_fns): Update.
819 * symfile.c (sym_fns_ptr): New typedef.
820 (symtab_fns): Now a VEC.
821 (add_symtab_fns): Update. Change argument type.
822 (find_sym_fns): Update. Change return type.
823 (get_symfile_segment_data): Update.
824 * objfiles.h (struct objfile) <sf>: Now const.
825 * somread.c (som_sym_fns): Now const. Update.
826 * xcoffread.c (xcoff_sym_fns): Now const. Update.
827 * mipsread.c (ecoff_sym_fns): Now const. Update.
828 * machoread.c (macho_sym_fns): Now const. Update.
829 * elfread.c (elf_sym_fns): Now const. Update.
830 (elf_sym_fns_gdb_index): Likewise.
831 * dbxread.c (aout_sym_fns): Now const. Update.
832 * coffread.c (coff_sym_fns): Now const. Update.
833
38f12cfc
TT
8342010-09-30 Tom Tromey <tromey@redhat.com>
835
836 * value.c (value_primitive_field): Take 'offset' into account for
837 packed field.
838
9ae8282d
TT
8392010-09-30 Tom Tromey <tromey@redhat.com>
840
841 * completer.c (count_struct_fields): Handle anonymous structs and
842 unions.
843 (add_struct_fields): Likewise.
844
e9e07ba6
JK
8452010-09-30 Jan Kratochvil <jan.kratochvil@redhat.com>
846
847 Fix printing parameters of inlined functions.
848 * ada-lang.c (is_known_support_routine)
849 (ada_unhandled_exception_name_addr_from_raise): Provide NULL parameter
850 for find_frame_funname.
851 * python/py-frame.c (frapy_name): Likewise.
852 * stack.c (find_frame_funname): New parameter funcp. Update the
853 function comment. Fill it in.
854 (print_frame): New variable func. Initialize it by
855 find_frame_funname. Print arguments only if FUNC is not NULL. Use
856 FUNC as the parameter of print_args_stub.
857 * stack.h (find_frame_funname): New parameter funcp. Remove the
858 function declaration comment.
859
cd2effb2
JK
8602010-09-30 Jan Kratochvil <jan.kratochvil@redhat.com>
861
862 PR corefiles/12071.
863 * inferior.c (have_live_inferiors): New variables old_chain, inf and
864 tp. Iterate INFERIOR_LIST and call target_has_execution.
865
bceffbf3
JK
8662010-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
867
868 Fix GDB crash on inferior calls with self-referencing classes.
869 * gnu-v3-abi.c (gnuv3_pass_by_reference): Do not call itself on static
870 member fields.
871
abc72ce4
DE
8722010-09-29 Doug Evans <dje@google.com>
873
874 Workaround for gcc/45682.
875 * dwarf2read.c (partial_die_info): New fields fixup_called,
876 linkage_name.
877 (guess_partial_die_structure_name): Renamed from guess_structure_name.
878 Move definition next to use. Use linkage_name to determine if class
879 is in a namespace. All callers updated.
880 (fixup_partial_die): Return early if already called.
881 Set fixup_called when done.
882 (guess_full_die_structure_name): New function.
883 (determine_prefix): Call it for class/struct/union dies if c++ and
884 .debug_types section is present and parent is DW_TAG_compile_unit.
885
0ac7be25
JB
8862010-09-28 Joel Brobecker <brobecker@adacore.com>
887
888 * configure.tgt (sparc-*-*): Set gdb_sim to ../sim/erc32/libsim.a.
889 (sparc-*-rtems*): Delete. Now redundant with sparc-*-*.
890
6e1bb179
JB
8912010-09-28 Joel Brobecker <brobecker@adacore.com>
892
893 * NEWS: Announce Ravenscar Profile support.
894
036b1ba8
JB
8952010-09-28 Joel Brobecker <brobecker@adacore.com>
896 Jerome Guitton <guitton@adacore.com>
897
898 * ravenscar-thread.c, ravenscar-thread.h, ravenscar-sparc-thread.c:
899 New files.
900 * configure.tgt (sparc-*-*): Add ravenscar-thread.o and
901 ravenscar-sparc-thread.o to gdb_target_obs.
902
474011fb
JB
9032010-09-28 Joel Brobecker <brobecker@adacore.com>
904
905 * ada-tasks.c (iterate_over_live_ada_tasks): New function.
906 * ada-lang.h (iterate_over_live_ada_tasks): Declare.
907
99e24b90
PM
9082010-09-27 Pierre Muller <muller@ics.u-strasbg.fr>
909
910 * amd64-windows-tdep.c (amd64_skip_main_prologue): New function.
911 (amd64_windows_init_abi): Register amd64_skip_main_prologue as gdbarch
912 skip_main_prologue method.
913
987d643c
TT
9142010-09-27 Tom Tromey <tromey@redhat.com>
915
916 * dwarf2read.c (dwarf2_read_index): Only allow version 3.
917 (write_psymbols): Add 'psyms_seen' and 'is_static' arguments.
918 Only emit a given psymbol once.
919 (struct signatured_type_index_data) <psyms_seen>: New field.
920 (write_one_signatured_type): Update.
921 (cleanup_htab): New function.
922 (write_psymtabs_to_index): Update. Create psyms_seen hash. Bump
923 version to 3.
924 (save_gdb_index_command): Update index documentation.
925
d3aff959
TT
9262010-09-27 Tom Tromey <tromey@redhat.com>
927
928 * bcache.c (expand_hash_table): Use hash_function, not hash.
929
716b65bf
TT
9302010-09-27 Tom Tromey <tromey@redhat.com>
931
932 * gdb_wchar.h: Change minimum libiconv to 0x108.
933
1736ad11
JK
9342010-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
935
936 Fix lost siginfo_t for inferior calls.
937 * infrun.c
938 (struct inferior_thread_state) <siginfo_gdbarch, siginfo_data>: New.
939 (save_inferior_thread_state): New variables regcache, gdbarch and
940 siginfo_data. Initialize SIGINFO_DATA if gdbarch_get_siginfo_type_p.
941 Move INF_STATE allocation later, pre-clear it. Initialize REGISTERS
942 using REGCACHE.
943 (restore_inferior_thread_state): New variables regcache and gdbarch.
944 Restore SIGINFO_DATA for matching GDBARCH. Restore REGISTERS using
945 REGCACHE. Free also SIGINFO_DATA.
946
4b5246aa
TT
9472010-09-24 Tom Tromey <tromey@redhat.com>
948
949 * dwarf2read.c (dw2_expand_symtabs_matching): Add missing
950 MAYBE_SWAPs.
951 (dw2_map_symbol_names): Likewise.
952
2a7d6a25
SW
9532010-09-24 Sami Wagiaalla <swagiaal@redhat.com>
954
955 * valops.c (find_oload_champ_namespace_loop): replace incorrect
956 discard_cleanups do_cleanups.
957
b53a1623
PA
9582010-09-24 Pedro Alves <pedro@codesourcery.com>
959
e6ee044d
PA
960 PR gdb/11842
961
b53a1623
PA
962 * amd64-linux-nat.c (compat_siginfo_from_siginfo)
963 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
964 si_code is < 0. Check for si_code == SI_TIMER before checking for
965 si_code < 0.
966
96a8853a
PA
9672010-09-24 Pedro Alves <pedro@codesourcery.com>
968
969 * objfiles.h (ALL_OBJSECTIONS): Handle breaks in the inner loop.
970
39383a48
JB
9712010-09-22 Joel Brobecker <brobecker@adacore.com>
972
973 * ada-tasks.c (read_atcb): Do not compute the task ptid when
974 debugging a core file.
975
d31d2fc3
JK
9762010-09-22 Jan Kratochvil <jan.kratochvil@redhat.com>
977
978 Code cleanup.
979 * objfiles.c (allocate_objfile) <objfile->name != NULL>: Remove.
980 (free_objfile) <objfile->name != NULL>: Remove the conditional around
981 xfree.
982 * objfiles.h (struct objfile) <name>: New comment it is never NULL.
983 * python/py-auto-load.c (auto_load_new_objfile) <!objfile->name>:
984 Remove.
985 * python/py-objfile.c (objfpy_get_filename) <obj->objfile->name>
986 Remove the conditional.
987 * python/py-progspace.c (pspy_get_filename) <objfile->name>: Likewise.
988
7f6130ff
JK
9892010-09-22 Jan Kratochvil <jan.kratochvil@redhat.com>
990
991 * main.c: Include objfiles.h.
992 (captured_main): New variable objfile. Call
993 load_auto_scripts_for_objfile for ALL_OBJFILES.
994
c2b0a229
JK
9952010-09-22 Jan Kratochvil <jan.kratochvil@redhat.com>
996
997 * dwarf2read.c (die_needs_namespace) <DW_TAG_variable>: Add also
998 DW_TAG_constant.
999
72929c62
JB
10002010-09-22 Joel Brobecker <brobecker@adacore.com>
1001
1002 * dwarf2read.c (scan_partial_symbols): Add handling of
1003 DW_TAG_constant DIEs.
1004 (add_partial_symbol, load_partial_dies, new_symbol): Likewise.
1005
496c0e1b
JB
10062010-09-22 Joel Brobecker <brobecker@adacore.com>
1007
1008 * configure.ac: Add support for --enable-gdbserver.
1009 * configure: Regenerate.
1010
ec322823
SW
10112010-09-22 Sami Wagiaalla <swagiaal@redhat.com>
1012
1013 PR C++/12028
1014 * valops.c (find_oload_champ_namespace_loop): removed incorrect
1015 'old_cleanups' reassignment.
1016
1558ab4c
JK
10172010-09-16 Jan Kratochvil <jan.kratochvil@redhat.com>
1018
1019 * charset.c (wchar_iterate) <EILSEQ>: Return any possibly converted
1020 characters.
1021
875b4ff5
PM
10222010-09-16 Phil Muldoon <pmuldoon@redhat.com>
1023
1024 PR mi/11407
1025 * mi/mi-cmd-stack.c (list_args_or_locals): Catch exceptions from
1026 read_var_value and common_val_print and print a warning.
1027
65dedcb2
JK
10282010-09-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1029
1030 * MAINTAINERS (GLOBAL MAINTAINERS) <Jan Kratochvil>: Move the entry to
1031 keep the list in alphabetical order. Use longer e-mail address.
1032
0e780a22
TT
10332010-09-15 Tom Tromey <tromey@redhat.com>
1034
1035 * MAINTAINERS (GLOBAL MAINTAINERS): Add Jan Kratochvil.
1036
62234ccc
TT
10372010-09-15 Tom Tromey <tromey@redhat.com>
1038
1039 * charset.c (iconv_open): New define.
1040 (iconv): Likewise.
1041 (iconv_close): Likewise.
1042 (phony_iconv_open): Add "phony_" prefix.
1043 (phony_iconv_close): Likewise.
1044 (phony_iconv): Likewise.
1045 * gdb_wchar.h: Check _LIBICONV_VERSION, __STDC_ISO_10646__.
1046 Change how INTERMEDIATE_ENCODING is defined.
1047
4950bc1c
DE
10482010-09-15 Doug Evans <dje@google.com>
1049
1050 * dwarf2read.c (struct die_info): Fix comment.
1051
349126ea
AM
10522010-09-15 Alan Modra <amodra@gmail.com>
1053
1054 PR 4606
1055 * gcore.c (gcore_create_callback): Clear SEC_HAS_CONTENTS rather
1056 than setting SEC_NEVER_LOAD on sections that need not be copied.
1057
923c6a3d
TT
10582010-09-14 Tom Tromey <tromey@redhat.com>
1059
1060 * psympriv.h (add_psymbol_to_list, init_psymbol_list)
1061 (start_psymtab_common, allocate_psymtab, discard_psymtab):
1062 Declare.
1063 * symfile.h (extend_psymbol_list): Remove.
1064 (add_psymbol_to_list, init_psymbol_list, start_psymtab_common)
1065 (allocate_psymtab, discard_psymtab): Move to psympriv.h.
1066 * psymtab.c (extend_psymbol_list): Move earlier. Now static.
1067
a9e6a4bb
JK
10682010-09-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1069
1070 * dwarf2read.c (dw2_map_ada_symtabs): Remove the internal_error.
1071 Update the comment.
1072
7155d578
TT
10732010-09-14 Tom Tromey <tromey@redhat.com>
1074
1075 PR symtab/8399:
1076 * dwarf2loc.c (locexpr_describe_location_piece): Don't call error
1077 for unrecognized frame base expression.
1078
515ed532
TT
10792010-09-14 Tom Tromey <tromey@redhat.com>
1080
1081 PR exp/11803:
1082 * value.c (value_static_field): Use value_of_variable.
1083
b467f580
PM
10842010-09-14 Pierre Muller <muller@ics.u-strasbg.fr>
1085
1086 * m32r-rom.c: Replace winsock.h with winsock2.h header.
1087 * remote-m32r-sdi.c: Replace winsock.h by winsock2.h.
1088
450ca57c
SW
10892010-09-13 Sami Wagiaalla <swagiaal@redhat.com>
1090
1091 PR symtab/11992:
1092 * c-exp.y (classify_name): Check is_a_member_of_this before returning
1093 UNKNOWN_CPP_NAME.
1094
1aee7009
JB
10952010-09-13 Joel Brobecker <brobecker@adacore.com>
1096
1097 * NEWS: Add x86-lynxos to the list of platforms supported by
1098 gdbserver.
1099
5ec6ebf9
JB
11002010-09-13 Joel Brobecker <brobecker@adacore.com>
1101
1102 * NEWS: Announce GDBserver support for version 5.x of ppc-lynxos.
1103
1863c96c
TT
11042010-09-13 Tom Tromey <tromey@redhat.com>
1105
1106 * Makefile.in (HFILES_NO_SRCDIR): Add progspace.h.
1107
0c5acf93
L
11082010-09-13 H.J. Lu <hongjiu.lu@intel.com>
1109
1110 * i386-tdep.c (i386_ymm_type): Set type name to
1111 builtin_type_vec256i.
1112
1c6272a6
MS
11132010-09-12 Michael Snyder <msnyder@vmware.com>
1114
1115 * i386-tdep.c (i386_gdbarch_init): Fix typo in comments.
1116
e866c497
L
11172010-09-12 H.J. Lu <hongjiu.lu@intel.com>
1118
1119 * i386-tdep.c (i386_gdbarch_init): Fix typo in comments.
1120
9191d390
L
11212010-09-11 H.J. Lu <hongjiu.lu@intel.com>
1122
1123 * amd64-tdep.c (amd64_register_name): Removed.
1124 (amd64_init_abi): Don't call set_gdbarch_register_name.
1125
1126 * i386-tdep.c (i386_ymmh_regnum_p): Make it static.
1127
1128 * i386-tdep.h (i386_ymmh_regnum_p): Removed.
1129
8d4d924b
JK
11302010-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1131 Paul Bolle <pebolle@tiscali.nl>
1132
1133 Redirect also uiout and stdtarg{,err} in execute_command_to_string.
1134 * cli-logging.c (struct saved_output_files) <targerr>: New.
1135 (set_logging_redirect, pop_output_files, handle_redirections):
1136 Redirect also gdb_stdtargerr.
1137 * defs.h (struct ui_out, make_cleanup_ui_out_redirect_pop): New
1138 declarations.
1139 * event-top.c (gdb_setup_readline, gdb_disable_readline): Redirect
1140 also gdb_stdtargerr.
1141 * top.c (execute_command_to_string): Move make_cleanup_ui_file_delete
1142 to the top. Redirect also gdb_stdlog, gdb_stdtarg and gdb_stdtargerr.
1143 Use ui_out_redirect, register make_cleanup_ui_out_redirect_pop.
1144 * tui/tui-io.c (tui_setup_io): Redirect also gdb_stdtargerr.
1145 * utils.c (do_ui_out_redirect_pop, make_cleanup_ui_out_redirect_pop):
1146 New functions.
1147
3329c4b5
PM
11482010-09-10 Pierre Muller <muller@ics.u-strasbg.fr>
1149
1150 * hppa-tdep.c (unwind_command): Use host_address_to_string function
1151 to display a host address.
1152 * monitor.c (monitor_read_memory): Likewise.
1153 * xtensa-tdep.c (xtensa_push_dummy_call): Likewise.
1154
5e8db398
PM
11552010-09-10 Pierre Muller <muller@ics.u-strasbg.fr>
1156
1157 * coffread.c (struct coff_symbol): Change c_value type from `long' to
1158 `CORE_ADDRESS' as it might contain target addresses.
1159
37049e31
PM
11602010-09-10 Pierre Muller <muller@ics.u-strasbg.fr>
1161
1162 * alpha-mdebug-tdep.c (find_proc_desc): Use SYMBOL_VALUE_BYTES macro
1163 before cast to pointer to avoid warning.
1164
351a3e56
KB
11652010-09-09 Kevin Buettner <kevinb@redhat.com>
1166
1167 * v850-tdep.c (v850_gdbarch_init): Change the v850's `char'
1168 type to be signed.
349126ea 1169
6afafb54
UW
11702010-09-09 Ulrich Weigand <uweigand@de.ibm.com>
1171
1172 * dwarf2read.c (fixup_partial_die): Do not set dummy name for
1173 anonymous class partial DIEs.
1174
60430eff
DJ
11752010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
1176
1177 * dwarf2read.c (dwarf2_compute_name): Check that the first
1178 argument is a pointer.
1179
f1078f66
DJ
11802010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
1181
1182 * dwarf2read.c (read_func_scope, read_structure_type)
1183 (read_common_block): Check for a NULL return from new_symbol.
1184
82430852
JK
11852010-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1186
1187 * dwarf2read.c (dwarf2_read_index): Return on no SEC_HAS_CONTENTS.
1188
c767944b
DJ
11892010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
1190
1191 * dwarf2read.c (read_structure_type): Move processing of
1192 fields and member functions from here...
1193 (process_structure_scope): ... to here.
1194
561d3825
DJ
11952010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
1196
1197 * gnu-v3-abi.c (gnuv3_print_method_ptr): Do not use
1198 the domain type.
1199 (gnuv3_make_method_ptr): Likewise.
1200
9bd89d67
TT
12012010-09-08 Tom Tromey <tromey@redhat.com>
1202
1203 * breakpoint.c (create_breakpoint): Add missing _().
1204
1d040b0d
DE
12052010-09-08 Doug Evans <dje@google.com>
1206
1207 * dwarf2-frame.h (dwarf2_frame_build_info): Delete, unused.
1208
774b6a14
TT
12092010-09-08 Tom Tromey <tromey@redhat.com>
1210
1211 Revert:
1212 2010-09-01 Tom Tromey <tromey@redhat.com>
1213 * dwarf2read.c, gdbtypes.c, psymtab.c, symfile.h, symtab.c,
1214 symtab.h: Revert earlier change.
1215
fc956729
SW
12162010-09-09 Sami Wagiaalla <swagiaal@redhat.com>
1217
1218 * psymtab.c (add_psymbol_to_bcache): Initialize
1219 obj_section.
1220 memset psymbol.ginfo.value to 0.
1221
48f9886d
PA
12222010-09-06 Pedro Alves <pedro@codesourcery.com>
1223
1224 * infrun.c (resume): Extend comment on ignoring single-step
1225 requests on vfork parents waiting for a vfork-done.
1226
423ec54c
JK
12272010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1228 Pedro Alves <pedro@codesourcery.com>
1229
1230 * corelow.c (core_open): Use target_signal_from_host if CORE_GDBARCH
1231 is NULL.
1232 * fork-child.c (startup_inferior) <resume_signal>: Use enum
1233 target_signal type.
1234 * linux-nat.c (linux_nat_resume): Use target_signal_to_host before
1235 calling strsignal. Use enum target_signal type for saved_signo.
1236 (linux_handle_extended_wait) <signo>: Use enum target_signal type.
1237 (linux_nat_wait_1): Use enum target_signal type for signo. Use
1238 target_signal_to_host before calling strsignal.
1239 * remote-m32r-sdi.c (m32r_wait, m32r_detach): Replace 0 by
1240 TARGET_SIGNAL_0.
1241
a6eb9bc8
JK
12422010-09-06 Pedro Alves <pedro@codesourcery.com>
1243 Jan Kratochvil <jan.kratochvil@redhat.com>
1244
1245 * common/signals.c (ANY): Remove.
1246 (SET): No longer use ANY.
1247
74609e71
YQ
12482010-09-06 Yao Qi <yao@codesourcery.com>
1249
1250 * infrunc(resume): When inferior is waiting_for_vfork_done,
1251 clear step and don't use displaced stepping.
1252
8464be76
DJ
12532010-09-04 Daniel Jacobowitz <dan@codesourcery.com>
1254
1255 * breakpoint.c (can_use_hardware_watchpoint): Handle the first
1256 value specially.
1257
33d62d64
JK
12582010-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1259
1260 Code cleanup - split print_stop_reason.
1261 * infrun.c (enum inferior_stop_reason): Remove.
1262 (print_stop_reason): Remove by splitting into ...
1263 (print_exited_reason, print_signal_exited_reason)
1264 (print_no_history_reason, print_signal_received_reason)
1265 (print_end_stepping_range_reason): ... these new functions. Update
1266 the preceding comment.
1267 (handle_inferior_event): Change the calls to print_exited_reason,
1268 print_signal_exited_reason, print_no_history_reason,
1269 print_signal_received_reason, print_end_stepping_range_reason.
1270 (handle_step_into_function, handle_step_into_function_backward):
1271 Change the calls to print_end_stepping_range_reason.
1272
14dba4b4
JK
12732010-09-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1274
1275 * breakpoint.c (save_breakpoints): Use RETURN_MASK_ALL.
1276 * cli-out.c: Include vec.h.
1277 (cli_field_fmt, cli_spaces, cli_text, cli_message, cli_flush): New
1278 variable stream, initialize it, use it.
1279 (cli_redirect): New function comment. Replace the stream and
1280 original_stream fields by the new streams field. Remove the
1281 original_stream != NULL conditional, assert error on NULL instead.
1282 (out_field_fmt, field_separator): New variable stream, initialize it, use it.
1283 (cli_out_data_ctor): Assert non-NULL stream. Replace the stream and
1284 original_stream fields by the new streams field.
1285 (cli_out_set_stream): Replace the stream field by the new streams
1286 field.
1287 * cli-out.h: Include vec.h.
1288 (ui_filep): New typedef, call DEF_VEC_P for it.
1289 (struct cli_ui_out_data): Replace the stream and original_stream
1290 fields by the new streams field.
1291 * cli/cli-logging.c (set_logging_redirect): Call ui_out_redirect with
1292 NULL first. Extend the comment.
1293 (handle_redirections): Call ui_out_redirect with output.
1294 * python/py-breakpoint.c (bppy_get_commands): Move ui_out_redirect
1295 calls outside of the TRY_CATCH block.
1296
b04bc5d4 12972010-09-03 Joel Brobecker <brobecker@adacore.com>
1298
1299 GDB 7.2 released.
1300
080db4e0
JB
13012010-09-02 Joel Brobecker <brobecker@adacore.com>
1302
1303 Back out the following change:
1304 | 2010-06-29 Hui Zhu <teawater@gmail.com>
1305 | * record.c (set_record_pic_cmdlist,
1306 | show_record_pic_cmdlist): New variables.
1307 | (set_record_pic_command,
1308 | show_record_pic_command): New functions.
1309 | (record_pic_function, record_pic_line, record_pic_enum,
1310 | set_record_pic_type, record_pic_hide_nofunction,
1311 | record_pic_hide_nosource, record_pic_hide_same): New variables.
1312 | (record_pic_fputs): New function.
1313 | (function_list, node_list, edge_list): New struct.
1314 | (function_list, node_list, edge_list): New variables.
1315 | (record_pic_cleanups, record_pic_node,
1316 | record_pic_edge, cmd_record_pic): New functions.
1317 | (_initialize_record): Add new commands for record pic.
1318
0a4f61e3
DJ
13192010-09-02 Daniel Jacobowitz <dan@codesourcery.com>
1320
1321 * config.in, configure: Regenerated.
1322 * configure.ac: Check for waitpid.
1323 * ser-pipe.c (pipe_close): Wait for the program to exit.
1324
58b61394
JK
13252010-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1326
ba720883 1327 * cli/cli-logging.c: Include gdb_assert.h.
58b61394
JK
1328 (set_logging_overwrite): New function.
1329 (logging_redirect): New comment.
1330 (logging_no_redirect_file, set_logging_redirect)
1331 (pop_output_files) <logging_no_redirect_file>: New.
1332 (handle_redirections) <!logging_redirect>: New variable
1333 no_redirect_file. Remove file autoclose for tee_file_new. No longer
1334 discard cleanup for the close of former OUTPUT. Set
1335 LOGGING_NO_REDIRECT_FILE.
1336 (handle_redirections) <logging_redirect>: gdb_assert
1337 LOGGING_NO_REDIRECT_FILE.
1338 (show_logging_command) <logging_redirect handling>: Adjust messages
1339 for SAVED_FILENAME not NULL.
1340 (_initialize_cli_logging): Install set_logging_overwrite and
1341 set_logging_redirect.
1342
706774f2
JK
13432010-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1344
1345 * iq2000-tdep.c (iq2000_scan_prologue): Initialize SAL.END.
1346
9a35ccf7
JK
13472010-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1348
1349 * Makefile.in (GDB_WARN_CFLAGS_NO_FORMAT): Convert it to the no- form.
1350 (monitor.o): Replace $(INTERNAL_WARN_CFLAGS) by $(INTERNAL_CFLAGS) and
1351 add $(GDB_WARN_CFLAGS_NO_FORMAT).
1352 (printcmd.o): Replace $(INTERNAL_CFLAGS_BASE) by $(INTERNAL_CFLAGS).
1353
ba9b2ec3
YQ
13542010-09-02 Yao Qi <yao@codesourcery.com>
1355
1356 * linux-nat.c (status_to_str): Use WTERMSIG to extract the signal
1357 number from a WIFSIGNALED status.
1358
faf68db7
TT
13592010-09-01 Tom Tromey <tromey@redhat.com>
1360
1361 * symtab.h (lookup_type_symbol): Declare.
1362 * symtab.c (lookup_symbol_in_language_full): Rename from
1363 lookup_symbol_in_language. Add 'for_type' argument.
1364 (lookup_symbol_in_language): New function.
1365 (lookup_type_symbol): Likewise.
1366 (lookup_symbol_aux): Add 'for_type' argument.
1367 (match_symbol_aux): New function.
1368 (lookup_symbol_aux_symtabs): Use expand_one_symtab_matching.
1369 (match_transparent_type): New function.
1370 (basic_lookup_transparent_type): Use expand_one_symtab_matching.
1371 * symfile.h (struct quick_symbol_functions)
1372 <pre_expand_symtabs_matching>: Remove.
1373 <expand_one_symtab_matching>: New field.
1374 * psymtab.c (expand_one_symtab_matching_psymtabs): New function.
1375 (pre_expand_symtabs_matching_psymtabs): Remove.
1376 (psym_functions): Update.
1377 * gdbtypes.c (lookup_typename): Use lookup_type_symbol.
1378 * dwarf2read.c (dw2_lookup_symbol): Update comment.
1379 (dw2_pre_expand_symtabs_matching): Remove.
1380 (dw2_expand_one_symtab_matching): New function.
1381 (dwarf2_gdb_index_functions): Update.
1382
248c9dbc
JB
13832010-09-01 Joel Brobecker <brobecker@adacore.com>
1384
1385 * NEWS: Add entry announcing GDBserver support on powerpc-lynxos.
1386
f75d858b
MK
13872010-09-01 Marc Khouzam <marc.khouzam@ericsson.com>
1388
1389 * mi/mi-main.c (mi_cmd_list_target_features): Add `reverse'
1390 as a feature reported by -list-target-features.
1391
0482b03b
JB
13922010-09-01 Joel Brobecker <brobecker@adacore.com>
1393
1394 * features/Makefile (WHICH): Add rs6000/powerpc-32.
1395 (powerpc-32.o, powerpc-32.c): New rules.
1396 (clean): Also remove powerpc-32.c.
1397 * regformats/rs6000/powerpc-32.dat: Generate.
1398
710e1a31
SW
13992010-08-31 Sami Wagiaalla <swagiaal@redhat.com>
1400
1401 * symfile.c (reread_symbols): Use psymbol_bcache_free, and
1402 psymbol_bcache_init.
1403 * psymtab.h (psymbol_bcache_init): New function prototype.
1404 (psymbol_bcache_free): New function prototype.
1405 (psymbol_bcache_get_bcache): New function prototype.
1406 * psymtab.c (psymbol_bcache_init): New function.
1407 (psymbol_bcache_free): New function.
1408 (psymbol_bcache_full): New function.
1409 (psymbol_bcache_get_bcache): New function.
1410 (add_psymbol_to_bcache): use psymbol_bcache_full.
1411 * objfiles.h (psymbol_cache): Change type of psymbol_cache to
1412 psymbol_bcache.
1413 * symmisc.c (print_symbol_bcache_statistics): Updated.
1414 (print_objfile_statistics): Updated.
1415 * objfiles.c (allocate_objfile): Use psymbol_bcache_init to initialize
1416 psymbol_cache.
1417 (free_objfile): Use psymbol_bcache_free.
1418
64382290
TT
14192010-08-31 Tom Tromey <tromey@redhat.com>
1420
1421 PR c++/11961:
1422 * dwarf2read.c (new_symbol_full) <DW_TAG_template_type_param>:
1423 Don't set TYPE_NAME on the type.
1424
8bbed405
MS
14252010-08-31 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
1426
1427 * infrun.c (set_exec_direction_func): Error out if target does not
1428 support reverse execution.
1429
06253dd3
JK
14302010-08-31 Jan Kratochvil <jan.kratochvil@redhat.com>
1431
1432 Make linux_get_siginfo_type `type *' unique.
1433 * linux-tdep.c (linux_gdbarch_data_handle, struct linux_gdbarch_data)
1434 (init_linux_gdbarch_data, get_linux_gdbarch_data): New.
1435 (linux_get_siginfo_type): New variable linux_gdbarch_data. Initialize
1436 it. Use linux_gdbarch_data->siginfo_type as a persistent storage.
1437 (_initialize_linux_tdep): New.
1438
b8edc417
JK
14392010-08-31 Jan Kratochvil <jan.kratochvil@redhat.com>
1440
1441 Code cleanup.
1442 * defs.h (find_memory_region_ftype): New typedef.
1443 (exec_set_find_memory_regions): Use it.
1444 * exec.c (exec_set_find_memory_regions): Use find_memory_region_ftype.
1445 * fbsd-nat.c (fbsd_find_memory_regions): Likewise.
1446 * gcore.c (objfile_find_memory_regions): Likewise.
1447 * gnu-nat.c (gnu_find_memory_regions): Likewise.
1448 * linux-nat.c (linux_nat_find_memory_regions): Likewise.
1449 * procfs.c (iterate_over_mappings_cb_ftype): Remove.
1450 (iterate_over_mappings): Rename iterate_over_mappings_cb_ftype to
1451 find_memory_region_ftype.
1452 (insert_dbx_link_bpt_in_region): Likewise.
1453 (iterate_over_mappings): Likewise. Drop the comment part about the
1454 function prototype.
1455 (find_memory_regions_callback): Use find_memory_region_ftype.
1456 (proc_find_memory_regions): Likewise.
1457 (info_mappings_callback): Rename iterate_over_mappings_cb_ftype to
1458 find_memory_region_ftype.
1459 * target.c (dummy_find_memory_regions): Use find_memory_region_ftype.
1460 * target.h (struct target_ops) <to_find_memory_regions>: Likewise.
1461
cbd70537
SW
14622010-08-31 Sami Wagiaalla <swagiaal@redhat.com>
1463
1464 * psymtab.c (add_psymbol_to_bcache): Remove 'static' from
1465 'static partial_symbol psymbol'.
1466 (psymbol_hash): New function.
1467 (psymbol_compare): New function.
1468 * bcache.c (hash_continue): New.
1469 (hash): Use hash_continue.
1470 * bcache.c: Add hash_function and compare_function
1471 pointers to bcache struct.
1472 (bcache_full): Use bcache->hash_function, and
1473 bcache->compare_function.
1474 (bcache_compare): New function.
1475 (bcache_xmalloc): Take hash_function and
1476 compare_function arguments and initialize the
1477 bcach's pointers.
1478 Updated comment.
1479 * objfiles.c (allocate_objfile): Updated.
1480 * symfile.c (reread_symbols): Updated.
1481 * python/py-type.c (typy_richcompare): Updated.
1482
03f17ccf
TT
14832010-08-30 Andre Poenitz <andre.poenitz@nokia.com>
1484 Tom Tromey <tromey@redhat.com>
1485
1486 PR python/11792:
1487 * python/py-value.c (valpy_get_dynamic_type): New function.
1488 (value_object_getset): Add "dynamic_type".
1489 (valpy_get_type): Fail on error.
1490
25b41d01
YQ
14912010-08-30 Yao Qi <yao@codesourcery.com>
1492
1493 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): New.
1494 (arm_linux_syscall_next_pc): New.
1495 (arm_linux_copy_svc): Use arm_linux_sigreturn_return_addr instead.
1496 (arm_linux_init_abi): Initialize syscall_next_pc.
1497 * arm-tdep.c (thumb_get_next_pc_raw): Get next pc of SWI in Thumb mode.
1498 (arm_get_next_pc_raw): Get next pc of SWI in ARM mode.
1499 * arm-tdep.h (struct gdbarch_tdep): Add a function pointer syscall_next_pc.
1500 Declare arm_frame_is_thumb.
1501
5760d0ab
JK
15022010-08-30 Jan Kratochvil <jan.kratochvil@redhat.com>
1503
1504 Code cleanup.
1505 * breakpoint.c (bpstat_alloc): Remove unused prototype.
1506 (bpstat_alloc): Change parameters cbs to bs_link_pointer. Adjust the
1507 code.
1508 (bpstat_stop_status): Change root_bs into bs_head and bs_link. Adjust
1509 calls of bpstat_alloc. Remove explicit bs chain termination.
1510
46a96992
JK
15112010-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1512
1513 Code cleanup.
1514 * linux-nat.c (pull_pid_from_list): Rename status to statusp.
1515 (my_waitpid): Likewise.
1516
36374493
DE
15172010-08-27 Doug Evans <dje@google.com>
1518
1519 * dwarf2read.c (dw2_require_line_header): Read from .debug_types
1520 as appropriate.
1521
8b93c54c
TT
15222010-08-27 Tom Tromey <tromey@redhat.com>
1523
1524 * dwarf2read.c (dwarf2_attach_fields_to_type): Don't set
1525 TYPE_FIELD_IGNORE_BITS.
1526
16be1145
DE
15272010-08-27 Doug Evans <dje@google.com>
1528
1529 * dwarf2read.c (dwarf2_per_objfile_free): Reorganize buffers to match
1530 the order they're defined in. munmap .debug_types buffer.
1531
e254ef6a
DE
15322010-08-26 Doug Evans <dje@google.com>
1533
1534 * dwarf2read.c (dw2_require_full_path): Rename parameter cu to per_cu.
1535 (dw2_forget_cached_source_info): Rename local cu to per_cu.
1536 (dw2_lookup_symtab, dw2_do_expand_symtabs_matching): Ditto.
1537 (dw2_print_stats, dw2_expand_all_symtabs): Ditto.
1538 (dw2_expand_symtabs_with_filename, dw2_find_symbol_file): Ditto.
1539 (dw2_find_symbol_file, dw2_expand_symtabs_matching): Ditto.
1540 (dw2_map_symbol_filenames, dwarf2_initialize_objfile): Ditto.
1541 (dwarf2_free_objfile, write_one_signatured_type): Ditto.
1542 (write_psymtabs_to_index): Ditto.
1543
ae53ffa4
PA
15442010-08-26 Pedro Alves <pedro@codesourcery.com>
1545
1546 * NEWS: Mention libthread_db debugging with core files.
1547
c6da4cef
DE
15482010-08-26 Doug Evans <dje@google.com>
1549
1550 * dwarf2read.c (dwarf2_build_include_psymtabs): Remove unnecessary
1551 forward decl. Pass pst->dirname to dwarf_decode_lines.
1552 (psymtab_include_file_name): New function.
1553 (dwarf_decode_lines): Call it. Update comments.
1554
cd02d79d
PA
15552010-08-25 Pedro Alves <pedro@codesourcery.com>
1556
1557 * dwarf2read.c (inherit_abstract_dies): Handle origin die's
1558 compilation unit being different from target die's.
1559
673bfd45
DE
15602010-08-24 Doug Evans <dje@google.com>
1561
1562 PR symtab/11942
1563 * dwarf2read.c (dwarf2_per_objfile): New members debug_info_type_hash,
1564 debug_types_type_hash.
1565 (dwarf2_cu, dwarf2_per_cu_data): Delete member type_hash.
1566 All uses updated.
1567 (lookup_die_type): Renamed from tag_type_to_tag. First look in
1568 appropriate type_hash table. All callers updated.
1569 (allocate_signatured_type_table): Renamed from
1570 allocate_signatured_type_hash_table. All callers updated.
1571 (create_signatured_type_table_from_index): Renamed from
1572 create_signatured_type_hash_from_index. All callers updated.
1573 (read_die_type): Add comment. Move actual reading to ...
1574 (read_die_type_1): ... here. New function.
1575 (follow_die_ref_or_sig): Tweak comment.
1576 (set_die_type): Rewrite to use appropriate choice of
1577 debug_info_type_hash or debug_types_type_hash.
1578 (get_die_type_at_offset): New function.
1579 (get_die_type): Call it.
1580
e8fd65ef
JK
15812010-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1582
1583 * python/py-type.c (typy_richcompare): Initialize worklist.
1584
9779414d
DJ
15852010-08-24 Daniel Jacobowitz <dan@codesourcery.com>
1586 Kazu Hirata <kazu@codesourcery.com>
1587 Jonathan Larmour <jifl@eCosCentric.com>
1588
1589 * arm-tdep.c: Include features/arm-with-m.c.
1590 (arm_psr_thumb_bit): New. Update all uses of CPSR_T to
1591 call this function.
1592 (arm_pc_is_thumb): Add a gdbarch argument. Update all callers.
1593 Check is_m after force-mode.
1594 (arm_gdbarch_init): Check the binary before the target description.
1595 Add check for M profile attribute. If we have an M-profile device,
1596 but no target register description, use arm-with-m. Recognize the
1597 new org.gnu.gdb.arm.m-profile feature and its xpsr register.
1598 (_initialize_arm_tdep): Call initialize_tdesc_arm_with_m.
1599 * arm-tdep.h (XPSR_T): Define.
1600 (struct gdbarch_tdep): Add is_m member.
1601 * features/arm-m-profile.xml, features/arm-with-m.c,
1602 features/arm-with-m.xml: New files.
1603
9dc481d3
DE
16042010-08-23 Doug Evans <dje@google.com>
1605
1606 * dwarf2read.c (read_structure_type): Add comment.
1607 (read_enumeration_type): Add comment.
1608 (process_enumeration_scope): Move definition of some locals
1609 closer to their use.
1610 (read_namespace_type): Add comment.
e71ec853 1611 (set_die_type): Fix typo in comment.
9dc481d3 1612
f9ffd4bb
TT
16132010-08-23 Tom Tromey <tromey@redhat.com>
1614
1615 PR python/11145:
1616 * python/py-value.c: Include expression.h.
1617 (valpy_do_cast): New function.
1618 (valpy_cast): Use it.
1619 (valpy_dynamic_cast): New function.
1620 (valpy_reinterpret_cast): Likewise.
1621 (value_object_methods): Add dynamic_cast, reinterpret_cast.
1622
96f73ba5
TT
16232010-08-23 Tom Tromey <tromey@redhat.com>
1624
1625 PR python/11391:
1626 * python/py-value.c (valpy_nonzero): Don't throw error for other
1627 Value types.
1628
d839c8a4
TT
16292010-08-23 Tom Tromey <tromey@redhat.com>
1630
1631 PR python/10676:
1632 * python/py-type.c: Include bcache.h, vec.h.
1633 (struct type_equality_entry): New.
1634 (compare_strings): New function.
1635 (check_types_equal): Likewise.
1636 (check_types_worklist): Likewise.
1637 (typy_richcompare): Likewise.
1638 (type_object_type): Set tp_richcompare field.
1639
05d0e1e7
TT
16402010-08-23 Tom Tromey <tromey@redhat.com>
1641
1642 PR python/10953:
1643 * python/py-type.c (typy_fields): Call check_typedef.
1644 (typy_template_argument): Add TRY_CATCH.
1645
702c2711
TT
16462010-08-23 Tom Tromey <tromey@redhat.com>
1647
1648 PR python/11915:
1649 * python/py-type.c (typy_array): New function.
1650 (type_object_methods): Add "array".
1651
4a532131
PA
16522010-08-20 Pedro Alves <pedro@codesourcery.com>
1653
1654 * python/python.c: Include "serial.h".
1655 (gdbpy_event_fds): Change type to `struct serial *' a array from
1656 int array.
1657 (gdbpy_run_events): Change parameters. Use serial_readchar in
1658 place of read.
1659 (gdbpy_post_event): Use serial_write in place of write.
1660 (gdbpy_initialize_events): Use serial_pipe instead of pipe, and
1661 serial_async in place of add_file_handler.
1662
58f07bae
PA
16632010-08-20 Pedro Alves <pedro@codesourcery.com>
1664
1665 * serial.h (gdb_pipe, serial_pipe): Declare.
1666 * serial.c (serial_interface_lookup): Take a const char pointer.
1667 (serial_fdopen): Rename to ...
1668 (serial_fdopen_ops): ... this. Add an OPS parameter and use it.
1669 Call the OPS' fdopen function if there is one.
1670 (serial_fdopen): Rewrite as wrapper to serial_fdopen_ops.
1671 (serial_pipe): New.
1672 (struct serial_ops) <fdopen>: New field.
1673
1674 * ser-mingw.c (free_pipe_state):
1675 (free_pipe_state): Close output on non-pex pipes.
1676 (pipe_windows_fdopen): New.
1677 (gdb_pipe): New.
1678 (_initialize_ser_windows): Register pipe_windows_fdopen.
1679 * ser-go32.c (gdb_pipe): New.
1680 * ser-pipe.c (pipe_close): Close file descriptor even if there's
1681 no state pointer.
1682 (pipe_ops): Delete.
1683 (gdb_pipe): New.
1684
3da10d80
KS
16852010-08-20 Keith Seitz <keiths@redhat.com>
1686
1687 PR symtab/11465:
889bf7c5 1688 * dwarf2read.c (struct delayed_method_info): New struct.
3da10d80
KS
1689 (struct dwarf2_cu): Add vector method_list.
1690 (scan_partial_symbols): Count methods for union, class, structure,
1691 and interface types.
1692 (add_to_method_list): New function.
1693 (free_delayed_list): New function.
1694 (compute_delayed_physnames): New function.
1695 (process_full_comp_unit): Make a cleanup for the CU's delayed
1696 physname list, compute the delayed physnames, and free the
1697 the list.
1698 (dwarf2_add_member_fn): For C++ and Java, delay the computation
1699 of the physname until after the CU is read.
1700
1701 * dwarf2read.c (read_structure_type): Check if the current
1702 DIE's type was already completed after dwarf2_full_name
1703 was called.
889bf7c5 1704
ca11e899
SS
17052010-08-19 Stan Shebs <stan@codesourcery.com>
1706
1707 * NEWS: Mention some additional changes.
1708
4d2dc20a
TT
17092010-08-19 Tom Tromey <tromey@redhat.com>
1710
1711 * Makefile.in (install-python): Add DESTDIR.
1712
d30f5e1f
DE
17132010-08-19 Doug Evans <dje@google.com>
1714
1715 PR exp/11926
1716 * parser-defs.h (parse_float, parse_c_float): Declare.
1717 * parse.c (parse_float, parse_c_float): New function.
1718 * c-exp.y (parse_number): Call parse_c_float.
1719 * objc-exp.y (parse_number): Ditto.
1720 * p-exp.y (parse_number): Ditto. Use ANSI/ISO-style definition.
1721 * jv-exp.y (parse_number): Call parse_float, fix suffix handling.
1722
2837d59e
JB
17232010-08-19 Joel Brobecker <brobecker@adacore.com>
1724
1725 * psymtab.c (map_symbol_filenames_psymtab): Call FUN with
1726 the arguments in the correct order.
1727 * symtab.c (maybe_add_partial_symtab_filename): Declare
1728 the arguments in the correct order.
1729
35633fef
JK
17302010-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1731
1732 * varobj.c (varobj_create): Replace variable old_fi with old_id,
1733 initialize it by null_frame_id, wrap its usage by get_frame_id,
1734 frame_id_p and frame_find_by_id.
1735
94f7449c
TT
17362010-08-18 Tom Tromey <tromey@redhat.com>
1737
1738 PR python/11900:
1739 * configure: Rebuild.
1740 * configure.ac: Add install-python to CONFIG_INSTALL.
1741 * Makefile.in (install-python): New.
1742
f3574227
DE
17432010-08-18 Doug Evans <dje@google.com>
1744
1745 * gdb_assert.h (gdb_assert_not_reached): New macro.
1746 (gdb_assert_fail): Fix typo in comment.
1747 * avr-tdep.c (avr_return_value): Use gdb_assert_not_reached instead of
1748 gdb_assert (0).
1749 * darwin-nat.c (darwin_check_new_threads): Ditto.
1750 * dwarf2read.c (dwarf2_get_section_info): Ditto.
1751 (munmap_section_buffer): Ditto.
1752 * m32c-tdep.c (make_types): Ditto.
1753 (m32c_decode_srcdest4, m32c_decode_sd23, m32c_frame_base): Ditto.
1754 * macroexp.c (get_character_constant): Ditto.
1755 (get_string_literal): Ditto.
1756 * mep-tdep.c (mep_pseudo_cr_size): Ditto.
1757 (mep_pseudo_cr_index, mep_register_type): Ditto.
1758 (mep_pseudo_register_read, mep_pseudo_register_write): Ditto.
1759 (mep_get_insn, mep_analyze_prologue): Ditto.
1760 * objfiles.c (qsort_cmp): Ditto.
1761 * prologue-value.c (pv_is_identical): Ditto.
1762 * record.c (record_get_loc): Ditto.
1763 * value.c (value_static_field): Ditto.
1764 * xtensa-tdep.c (call0_track_op): Ditto.
1765
c92817ce
TT
17662010-08-18 Tom Tromey <tromey@redhat.com>
1767
1768 PR symtab/11919:
1769 * gdbtypes.c (lookup_struct_elt_type): Clean up error emission.
1770 * parse.c (parse_field_expression): Use RETURN_MASK_ERROR. Move
1771 name-copying lower. Document exception behavior.
1772 * completer.c (expression_completer): Catch exceptions from
1773 parse_field_expression.
1774
856d6f99
PA
17752010-08-18 Pedro Alves <pedro@codesourcery.com>
1776
1777 PR corefile/8210
1778
1779 * linux-thread-db.c (add_thread_db_info): Skip glibc/BZ5983
1780 workaround on core files.
1781 (try_thread_db_load_1): Don't try enabling thread event reporting
1782 on core files.
1783 (thread_db_load): Allow thread_db on core files.
1784 (attach_thread): Don't check thread signals on core files, nor try
1785 really attaching to the thread, nor enabling thread event event
1786 reporting.
1787 (thread_db_detach): Don't try disabing thread event reporting or
1788 removing thread event breakpoints when debugging a core file.
1789 (find_new_threads_callback): Don't try enabling thread event
1790 reporting on core files.
1791 (thread_db_find_new_threads_2): Don't look for a stopped lwp when
1792 debugging a core file.
1793 (thread_db_find_new_threads): Don't update thread
1794 cores (processors) when debugging a core (dump).
1795
261b8d08
PA
17962010-08-18 Pedro Alves <pedro@codesourcery.com>
1797
1798 PR corefile/8210
1799
1800 * corelow.c (add_to_thread_list): Don't use
1801 gdbarch_core_reg_section_encodes_pid. Use bfd_core_file_pid.
1802 (get_core_register_section): Don't use
1803 gdbarch_core_reg_section_encodes_pid.
1804
1805 * gdbarch.sh (core_reg_section_encodes_pid): Delete.
1806 * gdbarch.h, gdbarch.c: Regenerate.
1807 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Don't set
1808 gdbarch_core_reg_section_encodes_pid.
1809 * i386-sol2-tdep.c (i386_sol2_init_abi): Ditto.
1810 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Ditto.
1811 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Ditto.
1812
f9b42018
YQ
18132010-08-18 Yao Qi <yao@codesourcery.com>
1814
1815 * MAINTAINERS : Add myself under Write After Approval.
1816
def98928
TT
18172010-08-17 Tom Tromey <tromey@redhat.com>
1818
1819 * NEWS: Mention template parameter support.
1820
0807b50c
PA
18212010-08-17 Pedro Alves <pedro@codesourcery.com>
1822
1823 PR breakpoints/11371
1824
1825 * breakpoint.c (decref_bp_location): Assert the reference count is
1826 sane.
1827
f431efe5
PA
18282010-08-17 Pedro Alves <pedro@codesourcery.com>
1829
1830 PR breakpoints/11371
1831
1832 * breakpoint.c (breakpoint_init_inferior): Decrement the
1833 location's reference count instead of deleting right away.
1834 (bpstat_free): Decrement the location's reference count. Make
1835 static.
1836 (bpstat_copy): Increment the location's reference count.
1837 (bpstat_find_breakpoint): Adjust.
1838 (bpstat_num): Adjust.
1839 (print_it_typical): Adjust. Use the breakpoint pointer in the
1840 bpstat instead of the location's owner.
1841 (bpstat_alloc): Remove const qualifier from the 'bl' parameter.
1842 Adjust to record the location's owner in the bpstat.
1843 (watchpoint_check): Use the breakpoint pointer in the bpstat
1844 instead of the location's owner.
1845 (bpstat_check_breakpoint_conditions): Don't handle
1846 bp_watchpoint_scope here. Use the breakpoint pointer in the
1847 bpstat instead of the location's owner.
1848 (bpstat_stop_status): Defer inferior function calls to after
1849 building the bpstat list. Handle bp_watchpoint_scope here. Use
1850 the breakpoint pointer in the bpstat instead of the location's
1851 owner.
1852 (bpstat_what): Use the breakpoint pointer in the bpstat instead of
1853 the location's owner.
1854 (free_bp_location): Don't walk bpstats clearing locations.
1855 (incref_bp_location): New.
1856 (decref_bp_location): New.
1857 (breakpoint_auto_delete): Use the breakpoint pointer in the bpstat
1858 instead of the location's owner.
1859 (update_global_location_list): Clear the location's owner, and
1860 decrement the location's reference count instead of deleting it
1861 right away.
1862 (breakpoint_retire_moribund): Decrement the location's reference
1863 count instead of deleting it right away.
1864 (bpstat_remove_bp_location): Delete.
1865 (bpstat_remove_breakpoint): New.
1866 (bpstat_remove_bp_location_callback): Delete.
1867 (bpstat_remove_breakpoint_callback): New.
1868 (delete_breakpoint): Iterate over all threads' stop_bpstat's
1869 clearing references to the breakpoint that is being deleted.
1870
1871 * breakpoint.h (struct bp_location) <refc>: New field.
1872 <owner>: Update comments.
1873 (bpstat_free): Delete declaration.
1874 (struct bpstats): Change the type of the breakpoint_at field to
1875 struct breakpoint point, from struct bp_location pointer. Add new
1876 field bp_location_at.
1877
14c0d4e1
TT
18782010-08-16 Tom Tromey <tromey@redhat.com>
1879
1880 * NEWS: Fix typo.
1881
b56df873
TT
18822010-08-16 Tom Tromey <tromey@redhat.com>
1883
1884 * NEWS: Mention watch -location.
1885
d63d0675
JK
18862010-08-16 Jan Kratochvil <jan.kratochvil@redhat.com>
1887
1888 * breakpoint.c (update_watchpoint): Add source empty line. Prefer
1889 EXP_STRING_REPARSE to EXP_STRING.
1890 (watch_command_1): Set also EXP_STRING_REPARSE.
1891 (delete_breakpoint): Free also EXP_STRING_REPARSE.
1892 * breakpoint.h (struct breakpoint): New field exp_string_reparse.
1893 Update comment for exp_string.
1894
06a64a0b
TT
18952010-08-16 Tom Tromey <tromey@redhat.com>
1896
1897 * value.c (release_value): Clear 'next' pointer.
1898 * breakpoint.c (watch_command_1): Add 'just_location' argument.
1899 (watch_command_wrapper): Update.
1900 (watch_maybe_just_location): New function.
1901 (watch_command): Update.
1902 (rwatch_command_wrapper): Update.
1903 (rwatch_command): Update.
1904 (awatch_command_wrapper): Update.
1905 (awatch_command): Update.
1906 (check_for_argument): New function.
1907 (_initialize_breakpoint): Update help text.
1908
f96b8fa0
UW
19092010-08-14 Ulrich Weigand <uweigand@de.ibm.com>
1910
1911 * arm-tdep.c (arm_push_dummy_call): Handle pointers to
1912 typedef'ed function types correctly.
1913
4eb54052
TT
19142010-08-13 Tom Tromey <tromey@redhat.com>
1915
1916 * python/python-internal.h (gdbpy_get_hook_function): Don't
1917 declare.
1918
44be957e
JK
19192010-08-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1920
ba720883 1921 * cli/cli-logging.c (logging_overwrite, logging_redirect): Make them
44be957e
JK
1922 static.
1923
76d8b686
KW
19242010-08-13 Ken Werner <ken.werner@de.ibm.com>
1925
1926 * python/python.c (gdbpy_solib_name): Remove the const qualifier of
1927 the format strings to be compatible with Python 2.4.
1928
8dedea02
VP
19292010-08-13 Vladimir Prus <vladimir@codesourcery.com>
1930
1931 Easier and more stubborn MI memory read commands.
1932
1933 * mi/mi-cmds.c (mi_cmds): Register data-read-memory-bytes
1934 and data-write-memory-bytes.
1935 * mi/mi-cmds.h (mi_cmd_data_read_memory_bytes)
1936 (mi_cmd_data_write_memory_bytes): New.
1937 * mi/mi-main.c (mi_cmd_data_read_memory): Use regular target_read.
1938 (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory_bytes):
1939 New.
1940 (mi_cmd_list_features): Add "data-read-memory-bytes" feature.
1941 * target.c (target_read_until_error): Remove.
1942 (read_whatever_is_readable, free_memory_read_result_vector)
1943 (read_memory_robust): New.
1944 * target.h (target_read_until_error): Remove.
1945 (struct memory_read_result, free_memory_read_result_vector)
1946 (read_memory_robust): New.
1947
1d9ec526
HZ
19482010-08-13 Hui Zhu <teawater@gmail.com>
1949
1950 * dwarf2read.c (load_partial_comp_unit): Initialize free_cu_cleanup.
1951 (read_comp_unit): Initialize back_to.
1952
98bfdba5
PA
19532010-08-12 Daniel Jacobowitz <dan@codesourcery.com>
1954 Pedro Alves <pedro@codesourcery.com>
1955
1956 * dwarf2read.c: Include "c-lang.h" and "valprint.h".
1957 (struct dwarf2_per_objfile) <reading_partial_symbols>: New field.
1958 (struct partial_die_info) <has_template_arguments>: New field.
1959 <num_attrs>: Change type to unsigned char.
1960 <building_fullname>: New field.
1961 (dwarf2_build_psymtabs_hard): Set reading_partial_symbols. Only
1962 allocate a CU if we don't have one already. Add a cleanup for the
1963 CU.
1964 (partial_die_full_name): Handle template arguments not in
1965 DW_AT_name.
1966 (dwarf2_psymtab_to_symtab): Clear reading_partial_symbols.
1967 (load_full_comp_unit): Only allocate a CU if we don't have one
1968 already.
1969 (do_ui_file_peek_last): New.
1970 (dwarf2_compute_name): Handle template parameters not in
1971 DW_AT_name.
1972 (read_comp_unit): Read and free abbrevs if not read yet.
1973 (load_partial_dies): Handle template arguments not in DW_AT_name.
1974 (find_partial_die): If we have a CU, but no a partial dies yet,
1975 also read in the CU.
1976 (dwarf2_const_value_attr): New, abstracted out from
1977 dwarf2_const_value.
1978 (dwarf2_const_value, dwarf2_const_value_data): Adjust to use
1979 dwarf2_const_value_attr.
1980 (determine_prefix): Detect and break loops created by RCVT's debug
1981 info.
1982 (maybe_queue_comp_unit): Bail out early if reading partial
1983 symbols.
1984 (follow_die_offset): Load full CU if we have no dies.
1985 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Make public.
1986 * dwarf2loc.h (dwarf2_evaluate_loc_desc): Declare.
1987
ca5c20b6 19882010-08-11 Tom Tromey <tromey@redhat.com>
889bf7c5 1989 Phil Muldoon <pmuldoon@redhat.com>
ca5c20b6
PM
1990
1991 * python/python.c (gdbpy_run_events): New function.
1992 (gdbpy_post_event): Likewise.
1993 (gdbpy_initialize_events): Likewise.
1994 (_initialize_python): Call gdbpy_initialize_events.
1995
7346b668
KW
19962010-08-11 Ken Werner <ken.werner@de.ibm.com>
1997
1998 * gdb/valarith.c (vector_binop): New function.
1999 (scalar_binop): Likewise.
2000 (value_binop): Call scalar_binop or vector_binop depending on the types.
2001 * gdb/eval.c (ptrmath_type_p): Return 0 in case of TYPE_VECTOR.
2002 (evaluate_subexp_with_coercion): Add vector check to not convert vectors
2003 to pointers.
2004 * gdb/value.c (coerce_array): Add vector check to not coerce vectors.
2005
62183e15
TT
20062010-08-11 Brad Roberts <braddr@puremagic.com>
2007
2008 * d-lang.c (extract_identifiers): Handle multiple digits.
2009
39d7b0e2
JK
20102010-08-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2011
2012 Code cleanup.
2013 * dummy-frame.c (dummy_frame_unwinder): Remove its static qualifier.
2014 Rename to dummy_frame_unwind.
2015 (dummy_frame_unwind): Remove.
2016 * dummy-frame.h (dummy_frame_unwind): Reference directly the struct.
2017 * frame-unwind.c (frame_unwind_init): Use address of
2018 dummy_frame_unwind and inline_frame_unwind.
2019 * frame.c (create_sentinel_frame): Use address of
2020 sentinel_frame_unwind.
2021 * inline-frame.c (inline_frame_unwinder): Rename to
2022 inline_frame_unwind.
2023 (inline_frame_unwind): Remove.
2024 * inline-frame.h (inline_frame_unwind): Reference directly the struct.
2025 * sentinel-frame.c (sentinel_frame_unwinder): Rename to
2026 sentinel_frame_unwind.
2027 (sentinel_frame_unwind): Remove.
2028 * sentinel-frame.h (sentinel_frame_unwind): Reference directly the
2029 struct.
2030
9f9a8002
JK
20312010-08-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2032
2033 Code cleanup.
2034 * frame-unwind.c (frame_unwind_find_by_frame): Remove the return type
2035 and returned value. New comment from frame-unwind.h.
2036 * frame-unwind.h (frame_unwind_find_by_frame): Remove the return type.
2037 Extend the comment.
2038 * frame.c (get_frame_id, frame_unwind_register_value)
2039 (create_new_frame, get_prev_frame_1, frame_unwinder_is)
2040 (get_frame_type, frame_unwind_arch): Do not use the return value of
2041 frame_unwind_find_by_frame.
2042
cb2e07a6 20432010-08-11 Phil Muldoon <pmuldoon@redhat.com>
889bf7c5 2044 Thiago Jung Bauermann <bauerman@br.ibm.com>
cb2e07a6
PM
2045 Tom Tromey <tromey@redhat.com>
2046
2047 * python/python.c (gdbpy_solib_address): New function.
2048 (gdbpy_decode_line): Likewise.
2049
c29c521f
TT
20502010-08-10 Tom Tromey <tromey@redhat.com>
2051
2052 Revert gdb-add-index addition:
2053 * Makefile.in (install-only): Don't install gdb-add-index.
2054 * gdb-add-index.sh: Remove.
2055
0c012db1
KB
20562010-08-09 Kevin Buettner <kevinb@redhat.com>
2057
2058 * remote-sim.c (gdbsim_xfer_inferior_memory): Replace
2059 `target_has_execution' check with `to_has_memory' check.
2060 (gdbsim_has_all_memory, gdbsim_has_memory): New functions.
2061 (init_gdbsym_ops): Initialize relevant fields of `gdbsim_ops'
2062 with `gdbsim_has_all_memory' and `gdbsim_has_memory'.
2063
db04efe6
KB
20642010-08-09 Kevin Buettner <kevinb@redhat.com>
2065
2066 * remote-sim.c (program_loaded, gdbsim_desc, remote_sim_ptid)
2067 (resume_siggnal, resume_step): Move these static globals...
2068 (struct sim_inferior_data): ...into this new struct.
2069 (sim_inferior_data_key, next_pid, sim_argv, gdbsim_is_open):
2070 New static globals.
2071 (gdb_callback, callbacks_initialized): Move these globals to
2072 a point earlier in the file.
2073 (check_for_duplicate_sim_descriptor, get_sim_inferior_data)
2074 (get_sim_inferior_data_by_ptid, sim_inferior_data_cleanup)
2075 (gdbsim_close_inferior, gdbsim_resume_inferior)
2076 (gdbsim_stop_inferior): New functions.
2077 (SIM_INSTANCE_NOT_NEEDED, SIM_INSTANCE_NEEDED, INITIAL_PID):
2078 New constants.
2079 (gdbsim_fetch_register, gdbsim_store_register, gdbsim_load)
2080 (gdbsim_create_inferior, gdbsim_open, gdbsim_close, gdbsim_resume)
2081 (gdbsim_stop, gdbsim_cntrl_c, gdbsim_wait)
2082 (gdbsim_xfer_inferior_memory, gdbsim_files_info)
2083 (gdbsim_mourn_inferior, simulator_command, gdbsim_thread_alive,
2084 (gdbsim_pid_to_str): Invoke `get_sim_inferior_data' to set
2085 new local variable `sim_data' in each of these functions. Use
2086 `sim_data' to reference former globals `program_loaded',
2087 `gdbsim_desc', `remote_sim_ptid', `resume_siggnal', and
2088 `resume_step'.
2089 (gdbsim_open): Remove local variable `argv'. Put results of call
2090 to `gdb_buildargv' in `sim_argv' rather than in `argv'. Don't
2091 make a cleanup for it. Free it though when a sim instance cannot
2092 be obtained.
2093 (gdbsim_close): Free sim_argv and null it out as appropriate.
2094 Close sim instances in all inferiors.
2095 (gdbsim_cntrl_c): Stop all inferiors.
2096 (gdbsim_wait):
2097 (_initialize_remote_sim): Initialize `sim_inferior_data_key'.
2098
e37fd15a
SW
20992010-08-09 Sami Wagiaalla <swagiaal@redhat.com>
2100
2101 * dwarf2read.c (new_symbol): Add symbol to variable list at end of
2102 function after symbol construction is complete.
2103 Do the same for template symbol addition to template_symbols list.
2104
45c58896
SW
21052010-08-09 Sami Wagiaalla <swagiaal@redhat.com>
2106
2107 * symtab.c (symbol_get_demangled_name): Remove assertion and
2108 return NULL when language_specific.cplus_specific is not initialized.
2109 * stabsread.c (define_symbol): Set the name before calling
2110 cp_scan_for_anonymous_namespaces.
2111
33e5013e
SW
21122010-08-09 Sami Wagiaalla <swagiaal@redhat.com>
2113
2114 * symtab.h: Renamed SYMBOL_INIT_LANGUAGE_SPECIFIC to
2115 SYMBOL_SET_LANGUAGE.
2116 (symbol_init_language_specific): Renamed to symbol_set_language.
2117 * symtab.c (symbol_init_language_specific): Removed redundant check
2118 for language_cplus.
2119 Renamed to symbol_set_language.
2120 * stabsread.c (define_symbol): Updated.
2121 (read_enum_type): Updated
2122 * psymtab.c (add_psymbol_to_bcache): Updated.
2123 * minsyms.c (install_minimal_symbols): Updated.
2124 * coffread.c (process_coff_symbol): SYMBOL_SET_LANGUAGE instead of
2125 SYMBOL_LANGUAGE to set the language.
2126 * minsyms.c (prim_record_minimal_symbol_full): Ditto.
2127 * mdebugread.c (new_symbol): Ditto.
2128 * cp-namespace.c (check_one_possible_namespace_symbol): Ditto.
2129 * dwarf2read.c (new_symbol_full): Ditto.
2130 * jv-lang.c (add_class_symbol): Ditto.
2131
5da1313b
JK
21322010-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2133
2134 * defs.h (make_cleanup_restore_uinteger, make_cleanup_restore_ui_file)
2135 (make_cleanup_restore_page_info)
2136 (set_batch_flag_and_make_cleanup_restore_page_info): New declarations.
2137 * gdbcmd.h (execute_command_to_string): New declaration.
2138 * python/python.c (struct restore_ui_file_closure, restore_ui_file)
2139 (make_cleanup_restore_ui_file): Move to utils.c
2140 (execute_gdb_command) <to_string>: Move ...
2141 * top.c (execute_command_to_string): ... here. Call
2142 set_batch_flag_and_make_cleanup_restore_page_info.
2143 * utils.c (make_cleanup_restore_integer): New source file blank line.
2144 (make_cleanup_restore_uinteger): New.
2145 (struct restore_ui_file_closure, do_restore_ui_file)
2146 (make_cleanup_restore_ui_file): Move here from python/python.c.
2147 (init_page_info) <batch_flag>
2148 (do_restore_page_info_cleanup, make_cleanup_restore_page_info)
2149 (set_batch_flag_and_make_cleanup_restore_page_info): New.
2150
c820c52a
PA
21512010-08-06 Maciej W. Rozycki <macro@codesourcery.com>
2152
2153 * thread.c (add_thread_silent): Use null_ptid instead of
2154 minus_one_ptid while getting rid of stale inferior_ptid.
2155
8da614df
CV
21562010-08-06 Corinna Vinschen <vinschen@redhat.com>
2157
2158 * dwarf2-frame.c (struct dwarf2_cie): Add ptr_size member.
2159 Throughout, call read_encoded_value with ptr_size rather than addr_size.
2160 (decode_frame_entry_1): Remove redundant setting of
2161 addr_size. Call gdbarch_dwarf2_addr_size rather than gdbarch_ptr_bit
2162 to determine addr_size in Dwarf versions < 4. Set ptr_size dependent
2163 on examined frame section. Add comment to explain why.
2164 * gdbarch.sh (dwarf2_addr_size): Define as variable. Add lengthy
2165 comment to explain usage.
2166 * gdbarch.c: Regenerate.
2167 * gdbarch.h: Regenerate.
2168
2169 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set dwarf2_addr_size to 4.
2170
e4195b40
JK
21712010-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2172
2173 Code cleanup.
2174 * varobj.c (varobj_create): Move variables fi, old_fi and block to
2175 a more inner block.
2176
a3217aa0
PA
21772010-08-05 Pedro Alves <pedro@codesourcery.com>
2178
2179 * configure.tgt (alpha*-*-linux*, am33_2.0*-*-linux*, frv-*-*)
2180 (hppa*-*-linux*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
2181 (microblaze*-linux-*, mips*-*-linux*, sh*-*-linux*)
2182 (sparc-*-linux*, sparc64-*-linux*, xtensa*-*-linux*): Add
2183 linux-tdep.o to gdb_target_obs.
2184
e2b4a699 21852010-08-05 Marc Khouzam <marc.khouzam@ericsson.com>
889bf7c5
PA
2186
2187 * mi/mi-main.c (mi_cmd_remove_inferior): Properly access first
e2b4a699 2188 argument.
889bf7c5 2189
50e8a0d5
HZ
21902010-08-05 Hui Zhu <teawater@gmail.com>
2191
2192 * mips-linux-tdep.c(regset.h): New include.
2193 (mips_supply_gregset_wrapper, mips_fill_gregset_wrapper,
2194 mips_supply_fpregset_wrapper, mips_fill_fpregset_wrapper,
2195 mips64_supply_gregset_wrapper, mips64_fill_gregset_wrapper,
2196 mips64_supply_fpregset_wrapper, mips64_fill_fpregset_wrapper,
2197 mips_linux_regset_from_core_section): New functions.
2198 (fetch_core_registers, regset_core_fns): Deleted.
2199 (mips_linux_init_abi): Add mips_linux_regset_from_core_section.
2200 Deleted regset_core_fns.
2201 * mips-tdep.c(mips_gdbarch_init): Initialize tdep->gregset,
2202 tdep->gregset64, tdep->fpregset and tdep->fpregset64.
2203 * mips-tdep.h(gdbarch_tdep): Add gregset, gregset64, fpregset
2204 and fpregset64.
2205
70728992
PA
22062010-08-04 Pedro Alves <pedro@codesourcery.com>
2207
2208 * s390-tdep.c: Include linux-tdep.h.
2209 (s390_gdbarch_init): Call linux_init_abi.
2210
a5ee0f0c
PA
22112010-08-04 Pedro Alves <pedro@codesourcery.com>
2212
2213 * corelow.c (core_pid_to_str): Default to using normal_pid_to_str
2214 instead of printing "Thread" here.
2215 * linux-tdep.c: Include inferior.h.
2216 (linux_core_pid_to_str): New.
2217 (linux_init_abi): New.
2218 * linux-tdep.h (linux_init_abi): Declare.
2219 * alpha-linux-tdep.c: Include linux-tdep.h.
2220 (alpha_linux_init_abi): Call linux_init_abi.
2221 * amd64-linux-tdep.c (amd64_linux_init_abi): Call linux_init_abi.
2222 * arm-linux-tdep.c (arm_linux_init_abi): Call linux_init_abi.
2223 * frv-linux-tdep.c: Include linux-tdep.h
2224 (frv_linux_init_abi): Call linux_init_abi.
2225 * hppa-linux-tdep.c: Include linux-tdep.h
2226 (hppa_linux_init_abi): Call linux_init_abi.
2227 * i386-linux-tdep.c (i386_linux_init_abi): Call linux_init_abi.
2228 * ia64-linux-tdep.c: Include linux-tdep.h.
2229 (ia64_linux_init_abi): Call linux_init_abi.
2230 * m32r-linux-tdep.c: Include linux-tdep.h.
2231 (m32r_linux_init_abi): Call linux_init_abi.
2232 * m68klinux-tdep.c: Include linux-tdep.h.
2233 (m68k_linux_init_abi): Call linux_init_abi.
2234 * microblaze-linux-tdep.c: Include linux-tdep.h.
2235 (microblaze_linux_init_abi): Call linux_init_abi.
2236 * mips-linux-tdep.c: Include linux-tdep.h.
2237 (mips_linux_init_abi): Call linux_init_abi.
2238 * mn10300-linux-tdep.c: Include linux-tdep.h.
2239 (am33_linux_init_osabi): Call linux_init_abi. Rename the
2240 'gdbinfo' parameter to 'info'.
2241 * ppc-linux-tdep.c: Include linux-tdep.h.
2242 (ppc_linux_init_abi): Call linux_init_abi.
2243 * sh-linux-tdep.c: Include linux-tdep.h.
2244 (sh_linux_init_abi): Call linux_init_abi.
2245 * sparc-linux-tdep.c: Include linux-tdep.h.
2246 (sparc32_linux_init_abi): Call linux_init_abi.
2247 * sparc64-linux-tdep.c: Include linux-tdep.h.
2248 (sparc64_linux_init_abi): Call linux_init_abi.
2249 * xtensa-linux-tdep.c: Include linux-tdep.h.
2250 (xtensa_linux_init_abi): Call linux_init_abi.
2251 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): New.
2252 (i386_cygwin_init_abi): Install it as gdbarch_core_pid_to_str
2253 callback.
2254
bc043ef3
DE
22552010-08-03 Doug Evans <dje@google.com>
2256
2257 * breakpoint.c (bpdisp_text): Constify bpdisps.
2258 * solib-svr4.c (solib_break_names): Constify.
2259 (bkpt_names, main_name_list): Constify.
2260 (match_main): Constify soname arg.
63cdd227
DE
2261 (bfd_lookup_symbol): Remove unnecessary forward decl.
2262 Constify symname arg.
bc043ef3
DE
2263 (enable_break): Constify bkpt_namep.
2264 * symtab.c (search_symbols): Constify types, types2, types3, types4.
2265 (symtab_symbol_info): Constify classnames.
2266
585d1eb8
PM
22672010-08-03 Phil Muldoon <pmuldoon@redhat.com>
2268
2269 * NEWS: Document Python value inferior function calls.
2270
2de00c64
DE
22712010-08-02 Doug Evans <dje@google.com>
2272
2273 * dwarf2read.c (dwarf_attr_name): Add DW_AT_GNU_odr_signature.
2274
02d868e8
PP
22752010-07-31 Paul Pluzhnikov <ppluzhnikov@google.com>
2276
2277 * linux-thread-db.c (libthread_db_debug): New variable.
2278 (thread_db_find_new_threads_silently): Control verbosity with it.
2279 (try_thread_db_load_1, try_thread_db_load): Likewise.
2280 (find_new_threads_once): Likewise.
2281 (_initialize_thread_db): Set/show it.
2282
a19cae16
JK
22832010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
2284
2285 * common/signals.c (signals): Move the content to signals.def.
2286 Include it. Remove the INDENT comments.
2287
c2bbed2a
TT
22882010-07-30 Tom Tromey <tromey@redhat.com>
2289
2290 * Makefile.in (install-only): Install gdb-add-index.
2291 * gdb-add-index.sh: New file.
2292
f32b2f09
CR
22932010-07-31 Renquan Cheng <crq@gcc.gnu.org>
2294
2295 * MAINTAINERS: Add myself for write after approval privileges.
2296
1276c759
JK
22972010-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
2298
2299 * symfile.c (addr_section_name): New function.
2300 (addrs_section_compar): Use it.
2301 (addr_info_make_relative): Use it. Move variable sect_name into a more
2302 inner block. Make ".dynbss" and ".sdynbss" checks more strict.
2303
420697bb
TT
23042010-07-30 Tom Tromey <tromey@redhat.com>
2305
2306 * configure: Rebuild.
2307 * configure.ac: Add missing case for Python 2.7.
2308
d0d99561
DD
23092010-07-29 DJ Delorie <dj@redhat.com>
2310
2311 * rx-tdep.c (rx_analyze_prologue): Don't require branches to have
2312 conditions.
2313
0b29bdde
PA
23142010-07-29 Pedro Alves <pedro@codesourcery.com>
2315
2316 * PROBLEMS: Remove mention of all problems.
2317
110ed339
PA
23182010-07-28 Pedro Alves <pedro@codesourcery.com>
2319
2320 PR build/11848
2321 * configure.ac: Check for wresize.
2322 * configure, config.in: Regenerate.
2323 * tui/tui-win.c (make_visible_with_new_height): Wrap wresize call
2324 with HAVE_WRESIZE.
2325
326fd672
TT
23262010-07-28 Tom Tromey <tromey@redhat.com>
2327
2328 PR python/11060:
2329 * python/py-type.c (typy_legacy_template_argument): New function,
2330 extracted from typy_template_argument.
2331 (typy_template_argument): Use TYPE_TEMPLATE_ARGUMENT. Return a
2332 value when needed.
2333
4ac8c4da
TT
23342010-07-28 Oleg Nesterov <oleg@redhat.com>
2335
2336 * remote.c (readchar): Call pop_target in case of SERIAL_ERROR.
2337
053315c2
TT
23382010-07-27 Tom Tromey <tromey@redhat.com>
2339
2340 * dwarf2read.c (dwarf2_const_value_data): Never sign extend.
2341
3ce3b1ba
PA
23422010-07-28 Daniel Jacobowitz <dan@codesourcery.com>
2343
2344 * dwarf2read.c (read_subroutine_type): Improve THIS detection,
2345 handling DW_AT_object_pointer, and workaround GCC PR 43053.
2346
2bb4f988
TT
23472010-07-28 Tom Tromey <tromey@redhat.com>
2348
2349 * Makefile.in (HFILES_NO_SRCDIR): Remove link-warning.h.
2350
74232302
JB
23512010-07-28 Joel Brobecker <brobecker@adacore.com>
2352
2353 * remote.c (remote_download_tracepoint): Add missing gettext markup.
2354 * tracepoint.c (parse_static_tracepoint_marker_definition): Likewise.
2355
385d04dc
JB
23562010-07-28 Joel Brobecker <brobecker@adacore.com>
2357
2358 * breakpoint.c (breakpoint_re_set_one): Move call to set_language
2359 down, just before the block that parse the breakpoint addr_string.
2360
34eaf542
TT
23612010-07-28 Tom Tromey <tromey@redhat.com>
2362
2363 PR c++/9946:
2364 * symfile.c (reread_symbols): Clear template_symbols.
2365 * symtab.h (struct symbol) <is_cplus_template_function>: New
2366 field.
2367 (SYMBOL_IS_CPLUS_TEMPLATE_FUNCTION): New macro.
2368 (struct template_symbol): New.
2369 * symtab.c (lookup_symbol_aux_local): Use
2370 cp_lookup_symbol_imports_or_template.
2371 * objfiles.h (struct objfile) <template_symbols>: New field.
2372 * objfiles.c (relocate_one_symbol): New function.
2373 (objfile_relocate1): Use it. Relocate isolated symbols.
2374 * gdbtypes.h (struct cplus_struct_type) <n_template_arguments,
2375 template_arguments>: New fields.
2376 (TYPE_N_TEMPLATE_ARGUMENTS): New macro.
2377 (TYPE_TEMPLATE_ARGUMENTS): Likewise.
2378 (TYPE_TEMPLATE_ARGUMENT): Likewise.
2379 (lookup_typename): Update.
2380 * gdbtypes.c (lookup_typename): Constify "block" argument.
2381 * dwarf2read.c: Include vec.h.
2382 (symbolp): New typedef.
2383 (read_func_scope): Read template arguments. Allocate a
2384 template_symbol when needed.
2385 (read_structure_type): Read template arguments.
2386 (new_symbol_full): New function, from new_symbol. Handle
2387 DW_TAG_template_type_param and DW_TAG_template_value_param.
2388 (new_symbol): Rewrite as wrapper.
2389 * cp-support.h (cp_lookup_symbol_imports_or_template): Declare.
2390 * cp-namespace.c: Include language.h.
2391 (search_symbol_list): New function.
2392 (cp_lookup_symbol_imports_or_template): Likewise.
2393
d27b3be4
PA
23942010-07-28 Balazs Kezes <rlblaster@gmail.com>
2395
2396 * tui/tui-win.c (make_visible_with_new_height): Resize and move
2397 the command window to the new size and position.
2398
0036e657
PA
23992010-07-28 Balazs Kezes <rlblaster@gmail.com>
2400
a782f43e 2401 * tui/tui-win.c (tui_resize_all): Update the locator's origin's
0036e657
PA
2402 coordinates.
2403
36900355
PA
24042010-07-28 Balazs Kezes <rlblaster@gmail.com>
2405
a782f43e 2406 * tui/tui-io.c (tui_handle_resize_during_io): Call tui_resize_all
36900355 2407 after a detecting a resize.
a782f43e 2408 * tui/tui-win.c (tui_resize_all): Remove tui_set_win_resized_to
36900355
PA
2409 call.
2410
db5e03ae
PA
24112010-07-28 Pedro Alves <pedro@codesourcery.com>
2412
2413 * configure.ac: Check for resize_term.
2414 * configure, config.in: Regenerate.
2415
b71fff68
JB
24162010-07-27 Joel Brobecker <brobecker@adacore.com>
2417
2418 * MAINTAINERS (Write After Approval): Reorder a couple of entries.
2419
9b1c24c8
PA
24202010-07-27 Daniel Jacobowitz <dan@codesourcery.com>
2421
2422 * dwarf2read.c (read_string): Rename to ...
2423 (read_direct_string): ... this.
2424 (skip_one_die, read_attribute_value, dwarf_decode_line_header)
2425 (dwarf_decode_lines, dwarf_decode_macros): Adjust.
2426
00390b84
JK
24272010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2428
2429 * linux-nat.c (linux_nat_lp_status_is_event): New function.
2430 (count_events_callback, select_event_lwp_callback)
2431 (cancel_breakpoints_callback, linux_nat_wait_1): Use it.
2432
26ab7092
JK
24332010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2434
2435 * ia64-linux-nat.c (ia64_linux_status_is_event): New function.
2436 (_initialize_ia64_linux_nat): Install it.
2437 * linux-nat.c (sigtrap_is_event, linux_nat_status_is_event)
2438 (linux_nat_set_status_is_event): New.
2439 (stop_wait_callback, count_events_callback, select_event_lwp_callback)
2440 cancel_breakpoints_callback, linux_nat_filter_event)
2441 (linux_nat_wait_1): Use linux_nat_status_is_event.
2442 * linux-nat.h (linux_nat_set_status_is_event): New prototype.
2443
283e6a52
TT
24442010-07-27 Tom Tromey <tromey@redhat.com>
2445
2446 * NEWS: Mention labels, .gdb_index.
2447
53a71c06
CR
24482010-07-28 CHENG Renquan <rqcheng@smu.edu.sg>
2449
2450 * cli/cli-cmds.c (disassemble_command): Add support of disassemble
3422f666 2451 "start,+length" form of arguments.
53a71c06
CR
2452 * NEWS: Add "Changed commands" (disassemble) section for "Changes
2453 since GDB 7.1"; and merge two separated paragraphs of disassemble
2454 description in "Changes in GDB 7.0".
2455
c63a1f86
JK
24562010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2457
2458 * top.c (input_from_terminal_p): Return 0 on BATCH_FLAG.
2459 * utils.c (defaulted_query): Do not explicitly check for BATCH_FLAG.
2460 (fputs_maybe_filtered): Do not do filtering also on
2461 ! INPUT_FROM_TERMINAL_P.
2462
abebb8b0
JB
24632010-07-27 Joel Brobecker <brobecker@adacore.com>
2464
2465 * dwarf2read.c (dw2_find_pc_sect_symtab): Remove trailing newline
2466 in warning message.
2467
5374244e
PM
24682010-07-27 Phil Muldoon <pmuldoon@redhat.com>
2469
2470 * python/py-value.c (valpy_call): New Function.
2471
ac0b195c
KW
24722010-07-27 Ken Werner <ken.werner@de.ibm.com>
2473
889bf7c5 2474 * dwarf2read.c (dwarf2_read_index): Initialize the types_list and
ac0b195c
KW
2475 types_list_elements variables.
2476
09d8bd00
TT
24772010-07-26 Tom Tromey <tromey@redhat.com>
2478
2479 * dwarf2loc.c (locexpr_describe_location_piece): Also recognize
2480 TLS with DW_OP_const4u or DW_OP_const8u.
2481
9fe70b4f
TJB
24822010-07-26 Thiago Jung Bauermann <bauerman@br.ibm.com>
2483
2484 * ppc-linux-nat.c (store_vsx_register): Use PTRACE_GETVSXREGS to get
2485 VSX registers contents.
2486
caac4577
JG
24872010-07-26 Jerome Guitton <guitton@adacore.com>
2488
2489 * dwarf2read.c (add_partial_symbol): Do not add a global variable if
2490 its adress is null. Add comment to explain why.
2491 (new_symbol): Ditto.
2492
857d11d0
JK
24932010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2494
2495 * linux-nat.c (linux_nat_do_thread_registers): Convert STOP_SIGNAL to
2496 the host signal first.
2497
1fd400ff
TT
24982010-07-23 Tom Tromey <tromey@redhat.com>
2499
2500 * dwarf2read.c (struct dwarf2_per_objfile) <n_type_comp_units,
2501 type_comp_units>: New fields.
2502 (dw2_get_cu): New function.
2503 (create_cus_from_index): Remove unused argument.
2504 (create_signatured_type_hash_from_index): New function.
2505 (create_addrmap_from_index): Update.
2506 (dwarf2_read_index): Handle version 2.
2507 (dw2_find_last_source_symtab, dw2_forget_cached_source_info)
2508 (dw2_lookup_symtab, dw2_do_expand_symtabs_matching)
2509 (dw2_print_stats, dw2_expand_all_symtabs)
2510 (dw2_expand_symtabs_with_filename, dw2_find_symbol_file)
2511 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Update.
2512 (dwarf2_initialize_objfile): Call create_debug_types_hash_table.
2513 (allocate_signatured_type_hash_table): New function.
2514 (add_signatured_type_cu_to_list): Likewise.
2515 (create_debug_types_hash_table): Use them. Set type_comp_units.
2516 (read_signatured_type): Ensure section data is available.
2517 (add_address_entry): Don't record empty ranges.
2518 (struct signatured_type_index_data): New.
2519 (write_one_signatured_type): New function.
2520 (write_psymtabs_to_index): Write type CUs.
2521 (save_gdb_index_command): Update comment.
2522 (process_type_comp_unit): Move inititalization of
2523 from_debug_types...
2524 (create_debug_types_hash_table): ... here.
2525
3a674486
JK
25262010-07-23 Jan Kratochvil <jan.kratochvil@redhat.com>
2527
2528 * gdb_gcore.sh (tmpfile): Remove the variable, its initialization,
2529 cleanup and generating of gdb script to it.
2530 (gdb): Use redirection from /dev/null. Use --nx. Turn off pagination
2531 and terminal size. Convert $tmpfile to a series of -ex-es.
2532
54ec275a
KS
25332010-07-23 Keith Seitz <keiths@redhat.com>
2534
2535 * symtab.c (basic_lookup_transparent_type): Call pre-expand
2536 hook for STATIC_BLOCK types, too.
2537
8fd447e6
KS
25382010-07-23 Keith Seitz <keiths@redhat.com>
2539
2540 * dwarf2read.c: Remove unused typedef dwarf2_cu_per_cu_data_ptr
2541 and vector definition.
2542
25b72dde
JK
25432010-07-23 Jan Kratochvil <jan.kratochvil@redhat.com>
2544
2545 * linux-nat.c (cancel_breakpoint): Remove unused forward declaration.
2546
96d19272
JK
25472010-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2548
2549 * dwarf2read.c: Include completer.h.
2550 (save_gdb_index_command): Use matching usage command name.
2551 (_initialize_dwarf2_read): New variable c, initialize it by add_cmd.
2552 Set filename_completer for it.
2553
ca1f3406
TT
25542010-07-22 Tom Tromey <tromey@redhat.com>
2555
2556 * dwarf2read.c (create_debug_types_hash_table): Set objfile on
2557 type signature's per-CU data.
2558
ba25b921
PA
25592010-07-22 Pedro Alves <pedro@codesourcery.com>
2560
2561 * NEWS: Mention target reported shared libraries support by
2562 default.
2563
23bd0f7c
PA
25642010-07-21 Pedro Alves <pedro@codesourcery.com>
2565
2566 PR symtab/11827
2567
2568 Revert:
2569 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
2570 * dwarf2read.c (process_die): Also allow DW_TAG_const_type
2571 and DW_TAG_volatile_type.
2572 (new_symbol): Likewise.
2573
883df6dd
SW
25742010-07-21 Sami Wagiaalla <swagiaal@redhat.com>
2575
2576 * eval.c (evaluate_subexp_standard): Disabled evaluation of C++
2577 function symbols before overload resolution.
2578
269b11a2
PA
25792010-07-21 Pedro Alves <pedro@codesourcery.com>
2580
2581 * breakpoint.c (bptype_string): New, abstracted out from
2582 print_one_breakpoint_location.
2583 (print_one_breakpoint_location): Adjust.
2584 (breakpoint_1): Adjust the type column width dynamically.
2585
569b05a5
JK
25862010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2587
2588 * symfile.c (find_separate_debug_file_by_debuglink): Remove
2589 a gdb_assert call, new comment.
2590
ad34eb2f
JK
25912010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2592
2593 * linux-nat.c (linux_handle_extended_wait): Handle case when
2594 event == PTRACE_EVENT_CLONE && stopping && WSTOPSIG (status) != SIGSTOP.
2595
33355866
JK
25962010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2597
2598 Code cleanup.
2599 * linux-nat.c (linux_nat_wait_1): Reset STATUS after calling
2600 linux_nat_wait_1. Use always LP->STATUS afterwards.
2601
26590820
HZ
26022010-07-20 Hui Zhu <teawater@gmail.com>
2603
2604 * inf-ptrace.c (inf_ptrace_create_inferior): Initialize back_to.
2605 (inf_ptrace_attach): Ditto.
2606
c0edd9ed
JK
26072010-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2608
2609 Make core files the process_stratum.
2610 * corefile.c (core_target): New variable.
2611 (core_file_command): Remove variable t, use core_target.
2612 * corelow.c (core_ops): Make it static.
2613 (init_core_ops): Change to process_stratum. Initialize CORE_TARGET.
2614 * defs.h (make_cleanup_unpush_target): New prototype.
2615 * gdbarch.h: Regenerate.
2616 * gdbarch.sh (core_pid_to_str): Remove core_stratum from its comment.
2617 * gdbcore.h (core_target): New declaration.
2618 * inf-ptrace.c (inf_ptrace_create_inferior, inf_ptrace_attach): New
2619 variables ops_already_pushed and back_to. Use push_target,
2620 make_cleanup_unpush_target and discard_cleanups calls.
2621 * record.c (record_open): Replace core_stratum by a core_bfd check.
2622 * target.c (target_is_pushed): New function.
2623 (find_core_target): Remove.
2624 * target.h (enum strata) <core_stratum>: Remove.
2625 (target_is_pushed): New declaration.
2626 (find_core_target): Remove declaration.
2627 * tracepoint.c (init_tfile_ops) <to_stratum>: Remove comment.
2628 * utils.c (do_unpush_target, make_cleanup_unpush_target): New functions.
2629
f02253f1
HZ
26302010-07-19 Hui Zhu <teawater@gmail.com>
2631
2632 * breakpoint.c (single_step_breakpoints_inserted): New
2633 function.
2634 * breakpoint.h (single_step_breakpoints_inserted): Extern.
2635 * infrun.c (maybe_software_singlestep): Add check code.
2636 * record.c (record_resume): Add code for software single step.
2637 (record_wait): Ditto.
2638
78768c4a
JK
26392010-07-18 Jan Kratochvil <jan.kratochvil@redhat.com>
2640
2641 * linux-nat.c (linux_handle_extended_wait): Move variable new_lp into
2642 a more inner block. Remove its unused declaration initializer.
2643
431e49aa
TJB
26442010-07-16 Thiago Jung Bauermann <bauerman@br.ibm.com>
2645
2646 * NEWS: Mention support for the new ptrace interface and hardware
2647 accelerated watchpoint conditions on powerpc-linux.
2648
bd91e7ae
OS
26492010-07-16 Ozkan Sezer <sezeroz@gmail.com>
2650
2651 * target.c (debug_to_insert_breakpoint): Instead of casting to unsigned
2652 long and %ld, use core_addr_to_string() and %s to print CORE_ADDR vars
2653 and host_address_to_string() and %s for pointers.
2654 (debug_to_remove_breakpoint): Likewise.
2655 (debug_to_region_ok_for_hw_watchpoint): Likewise.
2656 (debug_to_can_accel_watchpoint_condition): Likewise.
2657 (debug_to_stopped_data_address): Likewise.
2658 (debug_to_watchpoint_addr_within_range): Likewise.
2659 (debug_to_insert_hw_breakpoint): Likewise.
2660 (debug_to_remove_hw_breakpoint): Likewise.
2661 (debug_to_insert_watchpoint): Likewise.
2662 (debug_to_remove_watchpoint): Likewise.
2663
29df156d
SW
26642010-07-16 Sami Wagiaalla <swagiaal@redhat.com>
2665
2666 * symtab.h (symbol_set_demangled_name): Now takes an optional objfile*
2667 argument.
2668 (cplus_specific): New struct.
2669 * symtab.c (symbol_set_demangled_name): Updated.
2670 Use cplus_specific for cplus symbols.
2671 (symbol_get_demangled_name): Retrive the name from the cplus_specific
2672 struct for cplus symbols.
2673 (symbol_init_language_specific): Set cplus_specific for cplus symbols.
2674 (symbol_set_names): Pass objfile to symbol_set_demangled_name.
2675 * symtab.c (symbol_init_cplus_specific): New function.
2676
b250c185
SW
26772010-07-16 Sami Wagiaalla <swagiaal@redhat.com>
2678
2679 * symtab.h (symbol_set_demangled_name): New function.
2680 (symbol_get_demangled_name): New function.
2681 * symtab.c (symbol_set_demangled_name): New function.
2682 (symbol_get_demangled_name): New function.
2683 (symbol_init_language_specific): Use demangled_name setter and getter.
2684 (symbol_set_names): Ditto.
2685 (symbol_natural_name): Ditto.
2686 (symbol_demangled_name): Ditto.
2687 * dwarf2read.c (new_symbol): Ditto.
2688
afa16725
SW
26892010-07-16 Sami Wagiaalla <swagiaal@redhat.com>
2690
2691 * symtab.h: Renamed cplus_specific to mangled_lang.
2692 * symtab.c (symbol_init_language_specific): Updated.
2693 (symbol_set_names): Updated.
2694 (symbol_natural_name): Updated.
2695 (symbol_demangled_name): Updated.
2696 * ada-lang.c (ada_decode_symbol): Updated.
2697 * dwarf2read.c (new_symbol): Updated.
2698
3cbaedff
KW
26992010-07-14 Ken Werner <ken.werner@de.ibm.com>
2700
2701 * valops.c (value_assign): Do not call to value_coerce_to_target.
2702 (value_must_coerce_to_target): Return 0 in case of TYPE_VECTOR.
2703
c932f1be
KW
27042010-07-14 Ken Werner <ken.werner@de.ibm.com>
2705
2706 * MAINTAINERS: Add myself for write after approval privileges.
2707
91158a56
TT
27082010-07-13 Emmanuel Thomé <Emmanuel.Thome@gmail.com>
2709
2710 * c-valprint.c (c_val_print): Add embedded_offset to address in
2711 call to val_print_array_elements.
2712
b3b272e1
TT
27132010-07-13 Tom Tromey <tromey@redhat.com>
2714
2715 * dwarf2read.c (dwarf2_read_index): Correctly set 'total_size'.
2716
bb3fa9d0
TT
27172010-07-13 Tom Tromey <tromey@redhat.com>
2718
2719 * dwarf2read.c (dwarf2_per_cu_text_offset): Fix reference to
2720 objfile.
2721
dd786858
TT
27222010-07-13 Tom Tromey <tromey@redhat.com>
2723
2724 * symfile.c (set_initial_language): Update.
2725 (deduce_language_from_filename): Argument type now const.
2726 * symtab.h (find_main_filename): Update.
2727 (deduce_language_from_filename): Update.
2728 * symtab.c (find_main_filename): Make result const.
2729 * dwarf2read.c (dw2_find_symbol_file): Change return type.
2730 * psymtab.c (find_symbol_file_from_partial): Change return type.
2731 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
2732 Make result const.
2733
9291a0cd
TT
27342010-07-13 Tom Tromey <tromey@redhat.com>
2735
2736 * breakpoint.c (save_cmdlist): No longer static.
2737 * gdbcmd.h (save_cmdlist): Declare.
2738 * symfile.c (symbol_file_add_with_addrs_or_offsets): Set
2739 OBJF_READNOW on objfile if readnow_symbol_files.
2740 * elfread.c (elf_symfile_read): Use dwarf2_initialize_objfile.
2741 (elf_sym_fns_gdb_index): New global.
2742 * dwarf2read.c: Include exceptions.h.
2743 (offset_type): New.
2744 (struct mapped_index): New.
2745 (dwarf2_per_cu_data_ptr): New typedef.
2746 (struct dwarf2_per_objfile) <using_index, index_table, gdb_index>:
2747 New fields.
2748 (GDB_INDEX_SECTION): New define.
2749 (struct dwarf2_per_cu_quick_data): New.
2750 (struct dwarf2_per_cu_data) <objfile>: New field.
2751 <psymtab>: Removed.
2752 <v>: New field.
2753 (byte_swap): New function.
2754 (MAYBE_SWAP): New macro.
2755 (INDEX_SUFFIX): New macro.
2756 (dw2_do_instantiate_symtab): New function.
2757 (dw2_instantiate_symtab): Likewise.
2758 (create_cus_from_index): Likewise.
2759 (create_addrmap_from_index): Likewise.
2760 (mapped_index_string_hash): Likewise.
2761 (find_slot_in_mapped_hash): Likewise.
2762 (dwarf2_read_index): Likewise.
2763 (dw2_setup): Likewise.
2764 (dw2_require_line_header): Likewise.
2765 (dw2_require_full_path): Likewise.
2766 (dw2_find_last_source_symtab): Likewise.
2767 (dw2_forget_cached_source_info): Likewise.
2768 (dw2_lookup_symtab): Likewise.
2769 (dw2_lookup_symbol): Likewise.
2770 (dw2_do_expand_symtabs_matching): Likewise.
2771 (dw2_pre_expand_symtabs_matching): Likewise.
2772 (dw2_print_stats): Likewise.
2773 (dw2_dump): Likewise.
2774 (dw2_relocate): Likewise.
2775 (dw2_expand_symtabs_for_function): Likewise.
2776 (dw2_expand_all_symtabs): Likewise.
2777 (dw2_expand_symtabs_with_filename): Likewise.
2778 (dw2_find_symbol_file): Likewise.
2779 (dw2_map_ada_symtabs): Likewise.
2780 (dw2_expand_symtabs_matching): Likewise.
2781 (dw2_find_pc_sect_symtab): Likewise.
2782 (dw2_map_symbol_names): Likewise.
2783 (dw2_map_symbol_filenames): Likewise.
2784 (dw2_has_symbols): Likewise.
2785 (dwarf2_gdb_index_functions): New global.
2786 (dwarf2_initialize_objfile): New function.
2787 (process_psymtab_comp_unit): Update.
2788 (add_partial_subprogram): Likewise.
2789 (dwarf2_psymtab_to_symtab): Likewise.
2790 (psymtab_to_symtab_1): Use dw2_do_instantiate_symtab.
2791 (process_full_comp_unit): Update.
2792 (find_file_and_directory): New function.
2793 (read_file_scope): Use find_file_and_directory.
2794 (dwarf2_per_cu_objfile): Update.
2795 (dwarf2_per_cu_addr_size): Update.
2796 (dwarf2_per_cu_offset_size): Update.
2797 (dwarf2_free_objfile): Free the index, if needed.
2798 (dwarf2_per_objfile_free): Unmap the index, if needed.
2799 (struct strtab_entry): New.
2800 (hash_strtab_entry): New function.
2801 (eq_strtab_entry): Likewise.
2802 (create_strtab): Likewise.
2803 (add_string): Likewise.
2804 (struct symtab_index_entry): New.
2805 (struct mapped_symtab): New.
2806 (hash_symtab_entry): New function.
2807 (eq_symtab_entry): Likewise.
2808 (delete_symtab_entry): Likewise.
2809 (create_index_table): Likewise.
2810 (create_mapped_symtab): Likewise.
2811 (cleanup_mapped_symtab): Likewise.
2812 (find_slot): Likewise.
2813 (hash_expand): Likewise.
2814 (add_index_entry): Likewise.
2815 (add_indices_to_cpool): Likewise.
2816 (write_hash_table): Likewise.
2817 (add_address_entry): Likewise.
2818 (write_psymbols): Likewise.
2819 (write_obstack): Likewise.
2820 (unlink_if_set): Likewise.
2821 (write_psymtabs_to_index): Likewise.
2822 (save_gdb_index_command): Likewise.
2823 (_initialize_dwarf2_read): Install "save gdb-index"
2824 command.
2825 (create_all_comp_units): Initialize 'objfile' field of CU.
2826 (dwarf2_locate_sections): Check for .gdb_index.
2827 * psymtab.h (dwarf2_gdb_index_functions): Declare.
2828 * symfile.h (dwarf2_initialize_objfile): Declare.
2829
58b6ab13
TT
28302010-07-13 Tom Tromey <tromey@redhat.com>
2831
2832 * symtab.c (lookup_symbol_aux_symtabs): Call pre-expand hook.
2833 (basic_lookup_transparent_type): Likewise.
2834 * symfile.h (struct quick_symbol_functions)
2835 <pre_expand_symtabs_matching>: New field.
2836 * psymtab.c (pre_expand_symtabs_matching_psymtabs): New function.
2837 (psym_functions): Update.
2838
0f5238ed
TT
28392010-07-13 Tom Tromey <tromey@redhat.com>
2840
2841 PR breakpoints/8357:
2842 * symtab.h (domain_enum_tag) <LABEL_DOMAIN>: Update comment.
2843 * linespec.c (decode_line_1): Update comment. Call decode_label.
2844 (decode_label): New function.
2845 (symbol_found): Handle LOC_LABEL.
2846 * dwarf2read.c (new_symbol) <DW_TAG_label>: Set symbol's type and
2847 domain. Call add_symbol_to_list.
2848
9aa1f1e3
TT
28492010-07-13 Tom Tromey <tromey@redhat.com>
2850
2851 * dwarf2loc.h (dwarf2_per_cu_text_offset): Declare.
2852 * dwarf2loc.c (find_location_expression): Use
2853 dwarf2_per_cu_text_offset.
2854 (dwarf2_evaluate_loc_desc): Likewise.
2855 (dwarf2_loc_desc_needs_frame): Likewise.
2856 (compile_dwarf_to_ax): Likewise.
2857 (loclist_describe_location): Likewise.
2858 * dwarf2read.c (dwarf2_per_cu_text_offset): New function.
2859 (dwarf2_per_cu_objfile): Update comment.
2860
953ac07e
JK
28612010-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
2862
2863 * dwarf2read.c (read_subrange_type): Call read_subrange_type.
2864 * p-lang.c (pascal_printstr): Likewise.
2865
f04e4012
TT
28662010-07-09 Tom Tromey <tromey@redhat.com>
2867
2868 * python/py-prettyprint.c (gdbpy_get_display_hint): Don't use
2869 'hint' if it is NULL.
2870
f4dfd9c0
HZ
28712010-07-09 Hui Zhu <teawater@gmail.com>
2872
2873 * source.c (print_source_lines_base): Add check for noprint.
2874
7e6e39e5
JB
28752010-07-08 Joel Brobecker <brobecker@adacore.com>
2876
2877 * python/python-config.py: Resync with Python 2.7 version of this
2878 script.
2879
76b8507d
JB
28802010-07-08 Joel Brobecker <brobecker@adacore.com>
2881
2882 * NEWS: Fix typo in section name (s/GDB 7.1/GDB 7.2).
2883
797054e6
JB
28842010-07-07 Joel Brobecker <brobecker@adacore.com>
2885
2886 * NEWS: Create a new section for the next release branch.
2887 Rename the section of the current branch, now that it has
2888 been cut.
2889
c80befee 28902010-07-07 Joel Brobecker <brobecker@adacore.com>
2891
2892 GDB 7.2 branch created (branch timestamp: 2010-07-07 17:00 UTC)
2893 * version.in: Bump version to 7.2.50.20100707-cvs.
2894
ac56253d
TT
28952010-07-07 Tom Tromey <tromey@redhat.com>
2896
2897 * dwarf2read.c (dwarf2_const_value) <DW_form_addr>: Create a
2898 LOC_COMPUTED symbol.
2899 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Set new field.
2900 (dwarf2_loc_desc_needs_frame): Likewise.
2901 (compile_dwarf_to_ax) <DW_OP_addr>: Use offset.
2902 * dwarf2expr.h (struct dwarf_expr_context) <offset>: New field.
2903 * dwarf2expr.c (execute_stack_op) <DW_OP_addr>: Use offset.
2904 * dwarf2-frame.c (execute_stack_op): Set 'offset' field. Add
2905 'offset' argument.
2906 (struct dwarf2_frame_cache) <text_offset>: New field.
2907 (dwarf2_frame_cache): Set new field.
2908 (dwarf2_frame_prev_register): Update.
2909 (dwarf2_frame_sniffer): Update.
2910 (dwarf2_frame_base_sniffer): Update.
2911 (dwarf2_frame_find_fde): Add 'out_offset' argument.
2912
0cf6dd15
TJB
29132010-07-07 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
2914 Thiago Jung Bauermann <bauerman@br.ibm.com>
2915
2916 Support for hw accelerated condition watchpoints in booke powerpc.
2917
2918 * breakpoint.c (fetch_watchpoint_value): Rename to fetch_subexp_value
2919 and move to eval.c. Change callers.
2920 (insert_bp_location): Pass watchpoint condition in
2921 target_insert_watchpoint.
2922 (remove_breakpoint_1) Pass watchpoint condition in
2923 target_remove_watchpoint.
2924 (watchpoint_locations_match): Call
2925 target_can_accel_watchpoint_condition.
2926 * eval.c: Include wrapper.h.
2927 (fetch_subexp_value): Moved from breakpoint.c.
2928 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint):
2929 Formatting fix.
2930 (can_use_watchpoint_cond_accel): New function.
2931 (calculate_dvc): Likewise.
2932 (num_memory_accesses): Likewise.
2933 (check_condition): Likewise.
2934 (ppc_linux_can_accel_watchpoint_condition): Likewise
2935 (ppc_linux_insert_watchpoint): Call can_use_watchpoint_cond_accel,
2936 check_condition and calculate_dvc.
2937 (ppc_linux_remove_watchpoint): Likewise.
2938 (_initialize_ppc_linux_nat): Set to_can_accel_watchpoint_condition to
2939 ppc_linux_can_accel_watchpoint_condition
2940 * target.c (debug_to_insert_watchpoint): Add argument for watchpoint
2941 condition.
2942 (debug_to_remove_watchpoint): Likewise.
2943 (debug_to_can_accel_watchpoint_condition): New function.
2944 (update_current_target): Set to_can_accel_watchpoint_condition.
2945 (setup_target_debug): Set to_can_accel_watchpoint_condition.
2946 * target.h: Add opaque declaration for struct expression.
2947 (struct target_ops) <to_insert_watchpoint>,
2948 <to_remove_watchpoint>: Add new arguments to pass the watchpoint
2949 <to_can_accel_watchpoint_condition>: New member.
2950 condition. Update all callers and implementations.
2951 (target_can_accel_watchpoint_condition): New macro.
2952 * value.c (free_value_chain): New function.
2953 * value.h (fetch_subexp_value): New prototype.
2954 (free_value_chain): Likewise.
2955
2f2241f1
UW
29562010-07-07 Ulrich Weigand <uweigand@de.ibm.com>
2957
2958 * linux-nat.c (linux_nat_do_thread_registers): Use section size
2959 from gdbarch_core_regset_sections also for .reg if present.
2960
2961 * amd64-linux-tdep.c (amd64_linux_regset_sections): Fix incorrect
2962 section size for .reg.
2963 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
2964 (ppc_linux_vmx_regset_sections): Likewise.
2965 (ppc_linux_fp_regset_sections): Likewise.
2966 (ppc64_linux_vsx_regset_sections): New variable.
2967 (ppc64_linux_vmx_regset_sections): Likewise.
2968 (ppc64_linux_fp_regset_sections): Likewise.
2969 (ppc_linux_init_abi): Install core_regset_section lists appropriate
2970 for current word size.
2971
1fd7cdc2
JB
29722010-07-06 Joel Brobecker <brobecker@adacore.com>
2973
2974 * server.c (myresume): Make static.
2975
11763c18
TT
29762010-07-06 Tom Tromey <tromey@redhat.com>
2977
2978 * configure, config.in: Rebuild.
2979 * configure.ac (HAVE_LIBPYTHON2_7): New define.
2980 * python/python-internal.h: Handle HAVE_LIBPYTHON2_7.
2981
a6cc4789
AS
29822010-07-06 Andreas Schwab <schwab@linux-m68k.org>
2983
2984 * breakpoint.c (_initialize_breakpoint): Add "cl" as alias for
2985 "clear".
2986
f9e9243a
UW
29872010-07-06 Ken Werner <ken.werner@de.ibm.com>
2988
2989 * gdbtypes.h (floatformats_ieee_half): Add declaration.
2990 * gdbtypes.c (floatformats_ieee_half): New variable.
2991 * doublest.c (floatformat_from_length): Set format to
2992 gdbarch_half_format if length matches.
2993 * gdbarch.sh (half_bit): New architecture method.
2994 (half_format): Likewise.
2995 * gdbarch.h: Regenerate.
2996 * gdbarch.c: Likewise.
2997
4e5799b6
JK
29982010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2999 Joel Brobecker <brobecker@adacore.com>
3000
3001 Fix re-run of PIE executable, PR shlibs/11776.
3002 * solib-svr4.c (svr4_relocate_main_executable) <symfile_objfile>: Remove
3003 the part of pre-set SYMFILE_OBJFILE->SECTION_OFFSETS.
3004
86e4bafc
JK
30052010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3006 Joel Brobecker <brobecker@adacore.com>
3007
3008 * auxv.c (memory_xfer_auxv): Update attach comment.
3009 * solib-svr4.c (svr4_special_symbol_handling): Remove the call to
3010 svr4_relocate_main_executable.
3011 (svr4_solib_create_inferior_hook): Make the call to
3012 svr4_relocate_main_executable unconditional.
3013
3cd07d20
JK
30142010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3015 Joel Brobecker <brobecker@adacore.com>
3016
3017 * auxv.c (ld_so_xfer_auxv): Do not error on failed read of data_address.
3018
0a1e94c7
JK
30192010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3020 Joel Brobecker <brobecker@adacore.com>
3021
3022 Fix attaching to PIEs prelinked on the disk after the process was
3023 started.
3024 * solib-svr4.c (svr4_exec_displacement): New variable arch_size.
3025 Verify it against bfd_get_arch_size. Try to match arbitrary
3026 displacement for the phdrs comparison.
3027
5387647f
TT
30282010-07-02 Tom Tromey <tromey@redhat.com>
3029
3030 PR exp/11780:
3031 * libunwind-frame.c (libunwind_frame_prev_register): Don't set
3032 value as optimized-out.
3033
38b6c3b3
TJB
30342010-07-02 Ulrich Weigand <uweigand@de.ibm.com>
3035 Thiago Jung Bauermann <bauerman@br.ibm.com>
3036
3037 * breakpoint.c (can_use_hardware_watchpoint): Answer "what does this
3038 represent?" question in comment. Change comment to a proper sentence.
3039
a17ac5b0
TT
30402010-07-02 Ken Werner <ken.werner@de.ibm.com>
3041
3042 * c-valprint.c (c_val_print): Fix printing of character vectors.
3043
bddaafad
JK
30442010-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3045
3046 * spu-tdep.c (spu_catch_start): Adjust the caller of changed
3047 create_breakpoint prototype.
3048
d41c0fc8
PA
30492010-07-01 Pedro Alves <pedro@codesourcery.com>
3050
3051 * breakpoint.c (BREAK_ARGS_HELP, _initialize_breakpoint): Clarify
3052 usefulness suggestion of multiple breakpoints at same location.
3053
dc10affe
PA
30542010-07-01 Pedro Alves <pedro@codesourcery.com>
3055
3056 * breakpoint.c (BREAK_ARGS_HELP): Add missing `the'.
3057
cabe9ab6
PA
30582010-07-01 Pedro Alves <pedro@codesourcery.com>
3059
3060 * dwarf2loc.c (locexpr_tracepoint_var_ref)
3061 (loclist_tracepoint_var_ref): Handle optimized out values.
3062
cce7e648
PA
30632010-07-01 Pedro Alves <pedro@codesourcery.com>
3064
3065 * breakpoint.c (update_watchpoint, _initialize_breakpoint): Remove
3066 unnecessary space in string.
3067 * filesystem.c (_initialize_filesystem): Ditto.
3068 * frame.c (_initialize_frame): Ditto.
3069 * infcmd.c (step_once): Ditto.
3070 * infrun.c (_initialize_infrun): Ditto.
3071 * linux-nat.c (linux_child_follow_fork): Ditto.
3072 * maint.c (maintenance_deprecate): Ditto.
3073 * memattr.c (_initialize_mem): Ditto.
3074 * mips-tdep.c (_initialize_mips_tdep): Ditto.
3075 * monitor.c (monitor_open): Ditto.
3076 * procfs.c (procfs_xfer_memory): Ditto.
3077 * reverse.c (bookmarks_info): Ditto.
3078 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs): Ditto.
3079 * stack.c (_initialize_stack): Ditto.
3080 * tracepoint.c (_initialize_tracepoint): Ditto.
3081 * xtensa-tdep.c (xtensa_supply_gregset,
3082 xtensa_regset_from_core_section): Ditto.
3083
b65c7efe
TT
30842010-07-01 Tom Tromey <tromey@redhat.com>
3085
3086 * value.h (struct lval_funcs) <check_any_valid>: Rename from
3087 check_all_valid.
3088 * value.c (value_entirely_optimized_out): Invert result. Update
3089 for new function name.
3090
0fb4aa4b
PA
30912010-07-01 Pedro Alves <pedro@codesourcery.com>
3092
3093 Static tracepoints support.
3094
3095 * NEWS: Mention new support for static tracepoints.
3096 (New packets): Mention qTfSTM, qTsSTM, qTSTMat and
3097 qXfer:statictrace:read.
3098 (New features in the GDB remote stub, GDBserver): Mention static
3099 tracepoints support using an UST based backend.
3100 (New commands): Mention "info static-tracepoint-markers" and
3101 "strace".
3102 * breakpoint.c (is_marker_spec): New.
3103 (is_tracepoint): Handle static tracepoints.
3104 (validate_commands_for_breakpoint): Static tracepoints can't do
3105 while-stepping.
3106 (static_tracepoints_here): New.
3107 (bpstat_what): Handle static tracepoints.
3108 (print_one_breakpoint_location, allocate_bp_location, mention):
3109 Ditto.
3110 (create_breakpoint_sal): Ditto.
3111 (decode_static_tracepoint_spec): New.
3112 (create_breakpoint): Replace `hardwareflag', and `traceflag' with
3113 `type_wanted'. Adjust. Handle static tracepoint marker
3114 locations.
3115 (break_command_1): Adjust.
3116 (update_static_tracepoint): New.
3117 (update_breakpoint_locations): Handle static tracepoints.
3118 (breakpoint_re_set_one): Handle static tracepoint marker
3119 locations.
3120 (disable_command, enable_command): Handle static tracepoints.
3121 (trace_command, ftrace_command): Adjust.
3122 (strace_command): New.
3123 (create_tracepoint_from_upload): Adjust.
3124 (save_breakpoints): Handle static tracepoints.
3125 (_initialize_breakpoint): Install the "strace" command.
3126 * breakpoint.h (enum bptype): New bp_static_tracepoint type.
3127 (struct breakpoint): New fields static_trace_marker_id and
3128 static_trace_marker_id_idx.
3129 (breakpoints_here_p): Declare.
3130 (create_breakpoint): Adjust.
3131 (static_tracepoints_here): Declare.
3132 * remote.c (struct remote_state) <static_tracepoints>: New field.
3133 (PACKET_qXfer_statictrace_read, PACKET_StaticTracepoints): New.
3134 (remote_static_tracepoint_marker_at): New.
3135 (remote_static_tracepoint_markers_by_strid): New.
3136 (remote_static_tracepoint_feature): New.
3137 (remote_disconnected_tracing_feature): Handle "StaticTracepoints".
3138 (remote_xfer_partial): Handle TARGET_OBJECT_STATIC_TRACE_DATA.
3139 (remote_supports_static_tracepoints): New.
3140 (remote_download_tracepoint): Download static tracepoints.
3141 (init_remote_ops): Install remote_static_tracepoint_marker_at and
3142 remote_static_tracepoint_markers_by_strid.
3143 (_initialize_remote): Install set|show remote static-tracepoints,
3144 and set|show remote read-sdata-object commands.
3145 * target.c (update_current_target): Inherit and default
3146 to_static_tracepoint_marker_at, and
3147 to_static_tracepoint_markers_by_strid.
3148 * target.h (static_tracepoint_marker): Forward declare.
3149 (enum target_object): New object TARGET_OBJECT_STATIC_TRACE_DATA.
889bf7c5 3150 (static_tracepoint_marker_p): New typedef.
0fb4aa4b
PA
3151 (DEF_VEC_P(static_tracepoint_marker_p)): New VEC type.
3152 (struct target_ops): New fields to_static_tracepoint_marker_at and
3153 to_static_tracepoint_markers_by_strid.
3154 (target_static_tracepoint_marker_at)
3155 (target_static_tracepoint_markers_by_strid): New.
3156 * tracepoint.c: Include source.h.
3157 (validate_actionline): Handle $_sdata.
3158 (struct collection_list): New field strace_data.
3159 (add_static_trace_data): New.
3160 (clear_collection_list): Clear strace_data.
3161 (stringify_collection_list): Account for a possible static trace
3162 data collection.
3163 (encode_actions_1): Encode an $_sdata collection.
3164 (parse_tracepoint_definition): Handle static tracepoints.
3165 (parse_static_tracepoint_marker_definition): New.
3166 (release_static_tracepoint_marker): New.
3167 (print_one_static_tracepoint_marker): New.
3168 (info_static_tracepoint_markers_command): New.
3169 (sdata_make_value): New.
3170 (_initialize_tracepoint): Create the $_sdata convenience variable.
3171 Add the "info static-tracepoint-markers" command.
3172 Mention $_sdata in the "collect" command's help output.
3173 * tracepoint.h (struct static_tracepoint_marker): New.
3174 (parse_static_tracepoint_marker_definition)
3175 (release_static_tracepoint_marker): Declare.
3176 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
3177 * python/py-breakpoint.c (bppy_new): Adjust.
3178
aac63f0f
JB
31792010-06-30 Joel Brobecker <brobecker@adacore.com>
3180
3181 * python/python-internal.h (_XOPEN_SOURCE): Undefine before
3182 including Python.h.
3183
e68994a7
DE
31842010-06-29 Doug Evans <dje@google.com>
3185
3863f96c
DE
3186 PR gdb/11702
3187 * dwarf2read.c (dwarf2_add_field): Only create a symbol if
3188 DW_AT_external is present.
3189
254e6b9e
DE
3190 PR gdb/11702
3191 * NEWS: Add entry.
3192 * dwarf2read.c (dwarf2_add_field): If DW_AT_const_value is present,
3193 create a symbol for the field and record the value.
3194 (new_symbol): Handle DW_TAG_member.
3195 * gdbtypes.c (field_is_static): Remove FIXME.
3196 * symtab.c (search_symbols): When searching for VARIABLES_DOMAIN,
3197 only ignore LOC_CONST symbols that are enums.
3198
6e70227d
DE
3199 * dwarf2read.c: Remove trailing whitespace.
3200
e68994a7
DE
3201 Delete FIELD_LOC_KIND_DWARF_BLOCK, unused.
3202 * gdbtypes.h (enum field_loc_kind): Delete FIELD_LOC_KIND_DWARF_BLOCK.
3203 (struct main_type, field loc): Delete dwarf_block.
3204 (FIELD_DWARF_BLOCK): Delete.
3205 (SET_FIELD_DWARF_BLOCK): Delete.
3206 (TYPE_FIELD_DWARF_BLOCK): Delete.
3207 * gdb-gdb.py (StructMainTypePrettyPrinter.struct_field_location_img):
3208 Update.
3209
a480d2f6
HZ
32102010-06-29 Hui Zhu <teawater@gmail.com>
3211
3212 * record.c (set_record_pic_cmdlist,
3213 show_record_pic_cmdlist): New variables.
3214 (set_record_pic_command,
3215 show_record_pic_command): New functions.
3216 (record_pic_function, record_pic_line, record_pic_enum,
3217 set_record_pic_type, record_pic_hide_nofunction,
3218 record_pic_hide_nosource, record_pic_hide_same): New variables.
3219 (record_pic_fputs): New function.
3220 (function_list, node_list, edge_list): New struct.
3221 (function_list, node_list, edge_list): New variables.
3222 (record_pic_cleanups, record_pic_node,
3223 record_pic_edge, cmd_record_pic): New functions.
3224 (_initialize_record): Add new commands for record pic.
3225
a0d7a4ff
JK
32262010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3227
3228 * dwarf2read.c (read_structure_type) <fi.typedef_field_list>: Call
3229 ALLOCATE_CPLUS_STRUCT_TYPE.
3230
595939de 32312010-06-28 Phil Muldoon <pmuldoon@redhat.com>
889bf7c5
PA
3232 Tom Tromey <tromey@redhat.com>
3233 Thiago Jung Bauermann <bauerman@br.ibm.com>
595939de
PM
3234
3235 * value.c (pack_unsigned_long): New function.
3236 (value_from_ulongest): New function.
3237 * value.h (value_from_ulongest): Declare.
3238 * python/python.c (_initialize_python): Call
3239 gdbpy_initialize_thread and gdbpy_initialize_inferior.
3240 * python/python-internal.h: Define thread_object.
3241 (gdbpy_inferiors, gdbpy_selected_thread)
3242 (frame_info_to_frame_object, create_thread_object)
3243 (find_thread_object, find_inferior_object)
3244 (gdbpy_initialize_thread, gdbpy_initialize_inferiors)
3245 (gdbpy_is_value_object, get_addr_from_python): Declare.
3246 * python/py-value.c (builtin_type_upylong): Define.
3247 (convert_value_from_python): Add logic for ulongest.
3248 (gdbpy_is_value_object): New function.
3249 * python/py-utils.c (get_addr_from_python): New function.
3250 * python/py-frame.c (frame_info_to_frame_object): Return a PyObject.
3251 (gdbpy_selected_frame): Use PyObject over frame_info.
3252 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-inferior and
3253 py-infthread.
3254 (SUBDIR_PYTHON_SRCS): Likewise.
3255 (py-inferior.o): New Rule.
3256 (py-infthread.o): New Rule.
3257 * python/py-inferior.c: New File.
3258 * python/py-infthread.c: New File.
3259
98751a41
JK
32602010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3261
3262 * c-typeprint.c (c_type_print_base): For no fields check include also
3263 TYPE_TYPEDEF_FIELD_COUNT. Print new typedefs section.
3264 * dwarf2read.c (struct typedef_field_list)
3265 (struct field_info) <typedef_field_list, typedef_field_list_count>: New.
3266 (dwarf2_add_typedef): New.
3267 (read_structure_type): Call dwarf2_add_typedef for DW_TAG_typedef.
3268 Copy also FI.TYPEDEF_FIELD_LIST.
3269 * gdbtypes.h (struct typedef_field)
3270 (struct cplus_struct_type) <typedef_field, typedef_field_count>
3271 (TYPE_TYPEDEF_FIELD_ARRAY, TYPE_TYPEDEF_FIELD, TYPE_TYPEDEF_FIELD_NAME)
3272 (TYPE_TYPEDEF_FIELD_TYPE, TYPE_TYPEDEF_FIELD_COUNT): New.
3273
41f62f39
JK
32742010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3275
3276 * cp-namespace.c (cp_lookup_nested_type): New variable
3277 concatenated_name. Turn the current return condition into a reverse
3278 one. Call also lookup_static_symbol_aux on the constructed qualified
3279 name.
3280 * symtab.c (lookup_symbol_aux): Move variable objfile and searching in
3281 other files into a called ...
3282 (lookup_static_symbol_aux): ... new function here.
3283 * symtab.h (lookup_static_symbol_aux): New prototype.
3284 * valops.c (value_maybe_namespace_elt): Call also
3285 lookup_static_symbol_aux if we failed otherwise.
3286
af53d231
JK
32872010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3288
3289 Fix PR c++/11703 and PR gdb/1448.
3290 * c-exp.y (yylex) <last_was_coloncolon && first_was_coloncolon>: Add
3291 FIRST_ITER check.
3292
9655fd1a
JK
32932010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3294
3295 Fix modification of cplus_struct_default.
3296 * dwarf2read.c (dwarf2_add_member_fn) <no DW_AT_vtable_elem_location>:
3297 Call ALLOCATE_CPLUS_STRUCT_TYPE.
3298 * gdbtypes.c (cplus_struct_default): New empty initializer, comment it.
3299
9279c692
JB
33002010-06-28 Joel Brobecker <brobecker@adacore.com>
3301
3302 * NEWS: Add entry announcing the python directory.
3303
d3f41bb1
TT
33042010-06-28 Tom Tromey <tromey@redhat.com>
3305
3306 * dwarf2read.c (read_structure_type): Allocate null cleanup later.
3307
23e7acfb
DE
33082010-06-28 Doug Evans <dje@google.com>
3309
3310 * breakpoint.c (breakpoint_sals_to_pc): Delete arg address, unused.
3311 All callers updated.
3312
6036c742
JK
33132010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3314
3315 * cp-valprint.c (cp_print_value_fields) <recurse == 0>: Call
3316 obstack_begin after each obstack_free.
3317
9f18a3b3
DE
33182010-06-27 Doug Evans <dje@google.com>
3319
1596cb5d
DE
3320 * value.c (value_static_field): Use `switch' instead of `if'.
3321 Assert-fail if passed invalid TYPE_FIELD_LOC_KIND.
3322
9f18a3b3
DE
3323 * valops.c (search_struct_field): Fix typo in error message.
3324
43dabe42
UW
33252010-06-26 Ulrich Weigand <uweigand@de.ibm.com>
3326
3327 * dwarf2expr.c (execute_stack_op): Place preprocessor
3328 directives at the start of the source line.
3329
0f3bb72e
PH
33302010-06-25 Paul Hilfinger <hilfinger@adacore.com>
3331
6036c742
JK
3332 * defs.h (make_command_stats_cleanup): Declare.
3333 (set_display_time): Declare.
3334 (set_display_space): Declare.
3335 * event-top.c (command_handler): Use make_command_stats_cleanup.
3336 * main.c (display_time, display_space): Move definitions to utils.c.
3337 (captured_main): Use make_command_stats_cleanup to get start-up
3338 statistics.
3339 Use set_display_time and set_display_space for processing OPT_STATISTICS
3340 case.
3341 * maint.c (maintenance_time_display): Use set_display_time.
3342 (maintenance_space_display): Use set_display_space.
3343 * top.c (execute_command): Remove obsolete 'maint time' code.
3344 (command_loop): Use make_command_stats_cleanup.
3345 * utils.c (struct cmd_stats): Structure for storing initial time
3346 and space usage.
3347 (display_time, display_space): Move definitions here from utils.c.
3348 (set_display_time): New function.
3349 (set_display_space): New function.
3350 (make_command_stats_cleanup): New function.
3351 (report_command_stats): New auxiliary function for
3352 make_command_stats_cleanup.
0f3bb72e 3353
070c8028
UW
33542010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
3355
3356 * solib-spu.c (append_ocl_sos): Fix xsnprintf statement for
3357 hosts where CORE_ADDR is long long.
3358
bc9f0842
TT
33592010-06-25 Tom Tromey <tromey@redhat.com>
3360
3361 PR python/10808:
3362 * python/python.c (execute_gdb_command): Add keywords. Accept
3363 "to_string" argument.
3364 (struct restore_ui_file_closure): New.
3365 (restore_ui_file): New function.
3366 (make_cleanup_restore_ui_file): Likewise.
3367 (GdbMethods) <execute>: Update.
3368
c0cc4c83
UW
33692010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
3370
3371 * s390-tdep.c (s390_push_dummy_call): Error on stack overflow
3372 during inferior call stack frame setup.
3373
f1d8ee66
UW
33742010-06-25 Ken Werner <ken.werner@de.ibm.com>
3375
3376 * solib-spu.c: Include "exception.h".
3377 (ocl_program_data_key): New variable.
3378 (append_ocl_sos): New function.
3379 (ocl_enable_break): Likewise.
3380 (spu_current_sos): Call append_ocl_sos.
3381 (spu_solib_loaded): Call ocl_enable_break.
3382 (_initialize_spu_solib): Register ocl_program_data_key.
3383
19c0c0f8
UW
33842010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
3385
3386 * cp-support.c (reset_directive_searched): New function.
3387 (make_symbol_overload_list_using): Prevent recursive calls.
3388
0f6a939d
PM
33892010-06-25 Phil Muldoon <pmuldoon@redhat.com>
3390
3391 * printcmd.c (print_variable_and_value): Print error message on
3392 caught exception.
3393
f2c7657e
UW
33942010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
3395
3396 * dwarf2expr.h (struct dwarf_value_location): Use ULONGEST as type
3397 of stack values.
3398 (struct dwarf_expr_piece): Rename "expr" member to "mem". Add new
3399 "value" member.
3400 (dwarf_expr_push): Change input type to ULONGEST.
3401 (dwarf_expr_fetch): Change return type to ULONGEST.
3402 (dwarf_expr_fetch_address): Add prototype.
3403 (dwarf2_read_address): Remove prototype.
3404 * dwarf2expr.c (dwarf_expr_push): Use ULONGEST as type of stack values.
3405 Truncate stack values to ctx->addr_size bytes.
3406 (dwarf_expr_fetch): Change return value to ULONGEST.
3407 (dwarf_expr_fetch_address): New function.
3408 (add_piece): Use dwarf_expr_fetch_address instead of dwarf_expr_fetch
3409 when appropriate. Update for struct dwarf_expr_piece changes.
3410 (dwarf2_read_address): Remove.
3411 (unsigned_address_type): Remove.
3412 (signed_address_type): Remove.
3413 (execute_stack_op): Use dwarf_expr_fetch_address instead of
3414 dwarf_expr_fetch when appropriate. Use ULONGEST as type of stack
3415 values. Perform operations on ULONGEST instead of on GDB values,
3416 sign-extending from ctx->addr_size bytes as needed. Read DW_OP_addr
3417 values and DW_OP_deref results as unsigned integers.
3418 * dwarf2loc.c (read_pieced_value): Update for struct dwarf_expr_piece
3419 changes.
3420 (write_pieced_value): Likewise.
3421 (dwarf2_evaluate_loc_desc): Use dwarf_expr_fetch_address instead of
3422 dwarf_expr_fetch when appropriate.
3423 (compile_dwarf_to_ax): Read DW_OP_addr values as unsigned integers.
3424 * dwarf2-frame.c (execute_stack_op): Use dwarf_expr_fetch_address
3425 instead of dwarf_expr_fetch when appropriate.
3426
b1d61bc9
PM
34272010-06-25 Pierre Muller <muller@ics.u-strasbg.fr>
3428
3429 * c-typeprint.c (c_print_typedef): Append new type name for typedefs.
3430
b14285f6
JB
34312010-06-24 Joel Brobecker <brobecker@adacore.com>
3432
3433 * python/python.c (_initialize_python): Add new "constant"
3434 PYTHONDIR in gdb module. Insert this path at the head of
3435 sys.path. Set gdb.__path__ to gdb.PYTHONDIR + '/gdb' and
3436 exec its __init__.py script if it exists in that directory.
3437
fd60dc69
KB
34382010-06-24 Kevin Buettner <kevinb@redhat.com>
3439
3440 * rx-tdep.c (RX_ACC_REGNUM): Define.
3441 (RX_NUM_REGS): Redefine to 26.
3442 (rx_register_name): Add register "acc". Change order of several
3443 registers. Change name of "vct" register to "fintv" to match RX
3444 documentation.
3445 (rx_register_type): Add case for RX_ACC_REGNUM.
3446
18430289
TT
34472010-06-24 Tom Tromey <tromey@redhat.com>
3448
3449 * psymtab.c (lookup_partial_symbol): Mark definition as static.
3450
40618926
JK
34512010-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3452 Tom Tromey <tromey@redhat.com>
3453
3454 Fix GDB startup on readonly filesystem.
3455 * charset.c (find_charset_names): Use PEX_USE_PIPES for pex_init.
3456
628fe4e4
JK
34572010-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3458 Pedro Alves <pedro@codesourcery.com>
3459
3460 Fix PR 9436.
3461 * breakpoint.c (handle_jit_event): New function.
3462 (bpstat_what): Remove enum class, kc, ss, sn, sgl, slr, clr, sr, shl,
3463 jit, err, table and bs_class. New variables shlib_event, jit_event,
3464 this_action and bptype. Change bs_class assignments to this_action
3465 assignments. new unhandled bptype internal error. Move here
3466 shlib_event and jit_event handling from handle_inferior_event.
3467 * breakpoint.h (enum bpstat_what_main_action): Extend the comment.
3468 Reorder items. Remove BPSTAT_WHAT_CHECK_SHLIBS and
3469 BPSTAT_WHAT_CHECK_JIT.
3470 * inferior.h (debug_infrun, stop_on_solib_events): New declarations.
3471 * infrun.c (debug_infrun, stop_on_solib_events): Remove static.
3472 (handle_inferior_event): Reinitialize frame and gdbarch after
3473 bpstat_what call. Move BPSTAT_WHAT_CHECK_SHLIBS and
3474 BPSTAT_WHAT_CHECK_JIT handling to bpstat_what. Reinitialize even
3475 gdbarch when frame gets reinitialized.
3476
f1421989
HZ
34772010-06-24 Hui Zhu <teawater@gmail.com>
3478
3479 * printcmd.c (ui_printf): New function.
3480 (printf_command): Call ui_printf.
3481 (_initialize_printcmd): New command "eval".
3482
d03285ec
UW
34832010-06-23 Ulrich Weigand <uweigand@de.ibm.com>
3484
3485 * infrun.c (handle_inferior_event): Handle presence of single-step
3486 breakpoints for TARGET_WAITKIND_FORKED and TARGET_WAITKIND_VFORKED.
3487 Cancel single-step breakpoints for TARGET_WAITKIND_EXITED,
3488 TARGET_WAITKIND_SIGNALED, and TARGET_WAITKIND_EXECD.
3489 * breakpoint.c (detach_single_step_breakpoints): New function.
3490 (detach_breakpoints): Call it.
3491 (cancel_single_step_breakpoints): New function.
3492 * breakpoint.h (cancel_single_step_breakpoints): Add prototype.
3493
3494 * spu-tdep.c (spu_memory_remove_breakpoint): New function.
3495 (spu_gdbarch_init): Install it.
3496
38f6b338
JK
34972010-06-23 Jan Kratochvil <jan.kratochvil@redhat.com>
3498
3499 * configure.ac: Always set RDYNAMIC at least as `-rdynamic'.
3500 * configure: Regenerate.
3501
bb08c432
HZ
35022010-06-22 Hui Zhu <teawater@gmail.com>
3503
3504 * i386-tdep.c (i386_record_lea_modrm): Change warning to query.
3505 (i386_process_record): Ditto.
3506 * record.c (record_memory_query): New variable.
3507 (_initialize_record): New command "set record memory-query".
3508 * record.h (record_memory_query): New extern.
3509
b55078be
DE
35102010-06-21 Doug Evans <dje@google.com>
3511
3512 * i386-tdep.h (i386_displaced_step_copy_insn): Declare.
3513 * i386-tdep.c (i386_displaced_step_copy_insn): New function.
3514 (i386_syscall_p): Change type of lengthp to int.
3515 (i386_displaced_step_fixup): Handle kernels that run one past a
3516 syscall insn.
3517 * i386-linux-tdep.c (i386_linux_init_abi): Use
3518 i386_displaced_step_copy_insn instead of
3519 simple_displaced_step_copy_insn.
3520
75079b2b
TT
35212010-06-21 Tom Tromey <tromey@redhat.com>
3522
3523 * dwarf2read.c (read_base_type): Handle DW_ATE_UTF.
3524 (dwarf_type_encoding_name): Likewise.
3525
b00fdb78
TT
35262010-06-21 Tom Tromey <tromey@redhat.com>
3527
3528 * p-valprint.c (pascal_val_print): Use TYPE_ERROR_NAME.
3529 * p-typeprint.c (pascal_type_print_base): Use TYPE_ERROR_NAME.
3530 * m2-valprint.c (m2_val_print): Use TYPE_ERROR_NAME.
3531 * gdbtypes.h (TYPE_ERROR_NAME): New macro.
3532 * f-valprint.c (f_val_print): Use TYPE_ERROR_NAME.
3533 * f-typeprint.c (f_type_print_base): Use TYPE_ERROR_NAME.
3534 * dwarf2read.c (tag_type_to_type): Create a new error type on
3535 failure.
3536 * c-valprint.c (c_val_print): Use TYPE_ERROR_NAME.
3537 * c-typeprint.c (c_type_print_base): Use TYPE_ERROR_NAME.
3538
84951ab5
MS
35392010-06-21 Michael Snyder <msnyder@vmware.com>
3540
889bf7c5 3541 * breakpoint.c (_initialize_breakpoint): Use add_prefix_cmd,
84951ab5
MS
3542 not add_abbrev_prefix_cmd, for "enable breakpoints".
3543
d4a087c7
UW
35442010-06-21 Ulrich Weigand <uweigand@de.ibm.com>
3545
3546 * dwarf2loc.c (find_location_expression): Add relocation offset
3547 to base-address-selection entry base addresses. Read addresses
3548 (and offsets) as signed/unsigned integers, depending on the
3549 BFD's sign_extend_vma flag. Do not call dwarf2_read_address.
3550 (loclist_describe_location): Likewise.
3551 (disassemble_dwarf_expression): Read DW_OP_addr operand as
3552 unsigned integer. Do not call dwarf2_read_address.
3553 (locexpr_describe_location): Likewise for DW_OP_GNU_push_tls_address.
3554
13def385
UW
35552010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
3556
3557 * spu-tdep.c (spu_frame_unwind_cache): Use LSLR register
3558 value instead of hard-coded SPU_LS_SIZE.
3559 (spu_software_single_step): Likewise.
3560 * spu-tdep.h (SPU_LS_SIZE): Remove.
3561
d2ed6730
UW
35622010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
3563
3564 * spu-multiarch.c (spu_xfer_partial): Wrap around local store
3565 limit on local store memory accesses.
3566 * spu-linux-nat.c (spu_xfer_partial): Likewise.
3567 * spu-tdep.c (spu_lslr): Remove.
3568 (spu_pointer_to_address): Do not truncate addresses.
3569 (spu_integer_to_address): Likewise.
3570 (spu_overlay_new_objfile): Use SPU_OVERLAY_LMA.
3571 * spu-tdep.h: Add comments.
3572 (SPUADDR_SPU): Respect SPU_OVERLAY_LMA bit.
3573 (SPU_OVERLAY_LMA): Define.
3574
6aed2dbc
SS
35752010-06-18 Stan Shebs <stan@codesourcery.com>
3576
a61408f8
SS
3577 * osdata.c (get_osdata): Warn separately if target does not report
3578 type list.
3579 (info_osdata_command): Allow empty type, report error if target
3580 does not return available types of OS data.
3581 * linux-nat.c (linux_nat_xfer_osdata): Report list of OS data
3582 types if no annex supplied.
3583
6aed2dbc
SS
3584 * thread.c (thread_id_make_value): Make a value representing the
3585 current thread.
3586 (_initialize_thread): Create $_thread.
3587
ec61707d
JB
35882010-06-17 Joel Brobecker <brobecker@adacore.com>
3589
3590 * dwarf2read.c (psymtabs_addrmap_cleanup): Add empty line after
3591 last local variable declaration. No real code change.
3592
60606b2c
TT
35932010-06-17 Tom Tromey <tromey@redhat.com>
3594
3595 * dwarf2read.c (psymtabs_addrmap_cleanup): New function.
3596 (dwarf2_build_psymtabs_hard): Use it. Create addrmap on a
3597 temporary obstack.
3598
65d79d4b
SDJ
35992010-06-16 Sergio Durigan Junior <sergiodj@redhat.com>
3600 Jan Kratochvil <jan.kratochvil@redhat.com>
3601
3602 * breakpoint.c: Include parser-defs.h.
3603 (watchpoint_exp_is_const): New function.
3604 (watch_command_1): Call watchpoint_exp_is_const to check
3605 if the expression is constant.
3606
0407b3f1
AS
36072010-06-15 Andreas Schwab <schwab@linux-m68k.org>
3608
3609 * configure.ac: Check for RDYNAMIC also for cross builds.
3610 * configure: Regenerate.
3611
98d64339
PA
36122010-06-15 Pedro Alves <pedro@codesourcery.com>
3613
3614 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
3615 (SFILES): Remove solib-null.c, add solib-target.c.
3616 (COMMON_OBS): Remove solib-null.o, add solib-target.o.
3617 (ALLDEPFILES): Remove solib-target.c.
3618 * solib-target.c (_initialize_solib_target): Set
3619 current_target_so_ops to solib_target_so_ops if not already set.
3620 * solib-null.c: Delete.
3621
6a271cae
PA
36222010-06-14 Pedro Alves <pedro@codesourcery.com>
3623
3624 * NEWS: Mention GDBserver's JIT compilation of tracepoint
3625 bytecode.
3626
1e9beacb
UW
36272010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
3628
3629 * cp-valprint.c (cp_print_static_field): Members of
3630 dont_print_stat_array_obstack are of type "struct type *".
3631 (_initialize_cp_valprint): Likewise.
3632
21a176fb
UW
36332010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
3634
3635 * frame.c (frame_register_unwind): Do not access contents
3636 of "optimized out" unwound register value.
3637
25b524e8
JK
36382010-06-14 Jan Kratochvil <jan.kratochvil@redhat.com>
3639
3640 * ada-lang.h (ada_print_type): Make varstring const.
3641 * ada-typeprint.c (print_func_type): Make name const.
3642 (ada_print_type): Make varstring const.
3643 * c-lang.h (c_print_type): Make varstring const.
3644 * c-typeprint.c (c_print_type): Likewise.
3645 * f-lang.h (f_print_type): Likewise.
3646 * f-typeprint.c (f_print_type): Likewise.
3647 * jv-lang.h (java_print_type): Likewise.
3648 * jv-typeprint.c (java_print_type): Likewise.
3649 * language.c (unk_lang_print_type): Likewise.
3650 * language.h (struct language_defn) <la_print_type>: Likewise.
3651 * m2-lang.h (m2_print_type): Likewise.
3652 * m2-typeprint.c (m2_print_type): Likewise.
3653 * p-lang.h (pascal_print_type): Likewise.
3654 * p-typeprint.c (pascal_print_type): Likewise.
3655
d914c394
SS
36562010-06-11 Stan Shebs <stan@codesourcery.com>
3657
3658 Add per-operation permission flags.
3659
3660 * target.h (struct target_ops): New method to_set_permissions.
3661 (target_set_permissions): New macro.
3662 (target_insert_breakpoint): Change macro to function.
3663 (target_remove_breakpoint): Ditto.
3664 (target_stop): Ditto.
3665 (may_write_registers): Declare.
3666 (may_write_memory): Declare.
3667 (may_insert_breakpoints): Declare.
3668 (may_insert_tracepoints): Declare.
3669 (may_insert_fast_tracepoints): Declare.
3670 (may_stop): Declare.
3671 * target.c (may_write_registers, may_write_registers_1): New globals.
3672 (may_write_memory, may_write_memory_1): New globals.
3673 (may_insert_breakpoints, may_insert_breakpoints_1): New globals.
3674 (may_insert_tracepoints, may_insert_tracepoints_1): New globals.
3675 (may_insert_fast_tracepoints, may_insert_fast_tracepoints_1): New
3676 globals.
3677 (may_stop, may_stop_1): New global.
3678 (target_xfer_partial): Test for write permission.
3679 (target_store_registers): Ditto.
3680 (target_insert_breakpoint): New function.
3681 (target_remove_breakpoint): New function.
3682 (target_stop): New function.
3683 (_initialize_targets): Add new set/show variables.
3684 (set_write_memory_permission): New function.
3685 (update_target_permissions): New function.
3686 (set_target_permissions): New function.
3687 (update_current_target): Default to_set_permissions.
3688 (_initialize_targets): Use new globals and setter function.
3689 * tracepoint.c (start_tracing): Test for permission.
3690 * inferior.h (update_observer_mode): Declare.
3691 * infrun.c (non_stop_1): Define earlier.
3692 (observer_mode, observer_mode_1): New globals.
3693 (set_observer_mode, show_observer_mode): New functions.
3694 (update_observer_mode): New function.
3695 (_initialize_infrun): Define "set observer" command.
3696 * remote.c (PACKET_QAllow): New optional packet.
3697 (remote_protocol_features): Add QAllow.
3698 (remote_set_permissions): New function.
3699 (remote_start_remote): Call it.
3700 (init_remote_ops): Add it to target vector.
3701 (_initialize_remote): Add config command for QAllow.
3702
aec5aa8b
TT
37032010-06-11 Tom Tromey <tromey@redhat.com>
3704
3705 * dwarf2read.c (dwarf2_add_member_fn): Handle correct form of
3706 DW_AT_vtable_elem_location even when GCC extension is seen.
3707
0e03807e
TT
37082010-06-11 Tom Tromey <tromey@redhat.com>
3709
3710 PR gdb/9977, PR exp/11636:
3711 * value.h (value_offset): Update.
3712 (struct lval_funcs) <check_validity>: New field.
3713 <copy_closure>: Make argument const.
3714 (value_computed_closure): Update.
3715 (value_contents_for_printing): Declare.
3716 (value_bits_valid): Likewise.
3717 (val_print): Likewise.
3718 (set_value_component_location): Update.
3719 (value_entirely_optimized_out): Declare.
3720 * value.c (value_offset): Argument now const.
3721 (require_not_optimized_out): New function.
3722 (value_contents_for_printing): New function.
3723 (value_contents_all): Call require_not_optimized_out.
3724 (value_contents): Likewise.
3725 (value_bits_valid): New function.
3726 (value_computed_closure): Argument now const.
3727 (set_value_component_location): Make 'whole' argument const.
3728 (value_entirely_optimized_out): New function.
3729 (value_bitsize): Argument now 'const'.
3730 (value_bitpos): Likewise.
3731 (value_type): Likewise.
3732 * valprint.h (val_print_array_elements): Update.
3733 * valprint.c (val_print): Add 'val' argument. Use
3734 valprint_check_validity.
3735 (valprint_check_validity): New function.
3736 (value_check_printable): Use value_entirely_optimized_out.
3737 (common_val_print): Update.
3738 (value_print): Likewise.
3739 (val_print_array_elements): Add 'val' argument.
3740 * valops.c (value_fetch_lazy): Use value_contents_for_printing,
3741 value_bits_valid. Reinit frame cache for lval_computed.
3742 * sh64-tdep.c (sh64_do_register): Update.
3743 * scm-valprint.c (scm_val_print): Add 'val' argument.
3744 * scm-lang.h (scm_val_print): Update.
3745 * python/python.h (apply_val_pretty_printer): Update.
3746 * python/py-prettyprint.c (apply_val_pretty_printer): Add 'val'
3747 argument. Call set_value_component_location.
3748 * printcmd.c (print_scalar_formatted): Update.
3749 * p-valprint.c (pascal_val_print): Add 'val' argument.
3750 (pascal_object_print_value_fields): Likewise.
3751 (pascal_object_print_value): Likewise.
3752 (pascal_object_print_static_field): Update.
3753 * p-lang.h (pascal_val_print): Update.
3754 (pascal_object_print_value_fields): Update.
3755 * mt-tdep.c (mt_registers_info): Update.
3756 * mi/mi-main.c (get_register): Update.
3757 (mi_cmd_data_evaluate_expression): Use common_val_print.
3758 * m2-valprint.c (m2_print_array_contents): Add 'val' argument.
3759 (m2_print_unbounded_array): Likewise.
3760 (m2_val_print): Likewise.
3761 * m2-lang.h (m2_val_print): Update.
3762 * language.h (struct language_defn) <la_val_print>: Add 'val'
3763 argument.
3764 (LA_VAL_PRINT): Likewise.
3765 * language.c (unk_lang_val_print): Add 'val' argument.
3766 * jv-valprint.c (java_print_value_fields): Add 'val' argument.
3767 (java_val_print): Likewise.
3768 * jv-lang.h (java_val_print): Add 'val' argument.
3769 * infcmd.c (default_print_registers_info): Update.
3770 * f-valprint.c (f77_print_array_1): Add 'val' argument.
3771 (f77_print_array): Likewise.
3772 (f_val_print): Likewise.
3773 * f-lang.h (f_val_print): Add 'val' argument.
3774 * dwarf2loc.c (read_pieced_value): Use value_bitsize and
3775 value_bitpos.
3776 <DWARF_VALUE_OPTIMIZED_OUT>: Don't print warning. Call
3777 set_value_optimized_out.
3778 (write_pieced_value): Use value_bitsize and value_bitpos.
3779 <default>: Don't exit loop.
3780 (check_pieced_value_validity): New function.
3781 (pieced_value_funcs): Reference check_pieced_value_validity,
3782 check_pieced_value_invalid.
3783 (copy_pieced_value_closure): Update.
3784 (check_pieced_value_bits): New function.
3785 (check_pieced_value_invalid): New function.
3786 * d-valprint.c (dynamic_array_type): Add 'val' argument.
3787 (d_val_print): Likewise.
3788 * d-lang.h (d_val_print): Update.
3789 * cp-valprint.c (cp_print_value_fields): Add 'val' argument.
3790 (cp_print_value_fields_rtti): Likewise.
3791 (cp_print_value): Likewise.
3792 (cp_print_static_field): Update.
3793 * c-valprint.c (c_val_print): Add 'val' argument.
3794 (c_value_print): Update.
3795 * c-lang.h (c_val_print): Update.
3796 (cp_print_value_fields): Likewise.
3797 (cp_print_value_fields_rtti): Likewise.
3798 * ada-valprint.c (struct ada_val_print_args): Remove.
3799 (val_print_packed_array_elements): Add 'val' argument.
3800 (ada_val_print): Likewise. Rewrite.
3801 (ada_val_print_stub): Remove.
3802 (ada_val_print_array): Add 'val' argument.
3803 (ada_val_print_1): Likewise.
3804 (print_variant_part): Likewise.
3805 (ada_value_print): Update.
3806 (print_record): Add 'val' argument.
3807 (print_field_values): Likewise.
3808 * ada-lang.h (ada_val_print): Update.
3809
3cf03773
TT
38102010-06-11 Tom Tromey <tromey@redhat.com>
3811
3812 * vec.h (VEC_cleanup): New macro.
3813 (DEF_VEC_ALLOC_FUNC_I): Update.
3814 (DEF_VEC_ALLOC_FUNC_P): Likewise.
3815 (DEF_VEC_ALLOC_FUNC_O): Likewise.
3816 * dwarf2loc.c (struct axs_var_loc): Remove.
3817 (unimplemented): New function.
3818 (translate_register): Likewise.
3819 (access_memory): Likewise.
3820 (compile_dwarf_to_ax): Likewise.
3821 (dwarf2_tracepoint_var_loc): Remove.
3822 (dwarf2_tracepoint_var_access): Likewise.
3823 (dwarf2_tracepoint_var_ref): Likewise.
3824 (locexpr_tracepoint_var_ref): Use compile_dwarf_to_ax.
3825 (loclist_tracepoint_var_ref): Likewise.
3826 * dwarf2expr.h (dwarf_expr_require_composition): Declare.
3827 * dwarf2expr.c (dwarf_expr_require_composition): Rename from
3828 require_composition. No longer static.
3829 (execute_stack_op): Update.
3830 * ax-gdb.h (trace_kludge): Declare.
3831
2bdf28a0
JK
38322010-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3833
3834 * breakpoint.c (breakpoint_restore_shadows): New OWNER comment.
3835 (should_be_inserted): Return zero also on NULL OWNER.
3836 (breakpoint_program_space_exit): New OWNER comment.
3837 (insert_breakpoint_locations): Extend comment for OWNER.
3838 (remove_breakpoint_1, remove_breakpoint): Assert on OWNER.
3839 (breakpoint_init_inferior, breakpoint_here_p, breakpoint_thread_match):
3840 New OWNER comment.
3841 (print_it_typical): Return PRINT_UNKNOWN on NULL OWNER.
3842 (watchpoint_check): New assert on BREAKPOINT_AT and OWNER.
3843 (bpstat_check_location): New assert on OWNER.
3844 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions): Move BL
3845 and B initializations to the code block. New assert on them.
3846 (print_one_breakpoint_location): New OWNER comment.
3847 (watchpoint_locations_match): Assert on OWNER.
3848 (breakpoint_locations_match): Move HW_POINT1 and HW_POINT2
3849 initializations to the code block. New assert on OWNER.
3850 (set_breakpoint_location_function): New assert on OWNER.
3851 (disable_breakpoints_in_shlibs, disable_breakpoints_in_unloaded_shlib)
3852 (bp_location_compare, update_global_location_list)
3853 (update_global_location_list): New OWNER comment.
3854
5b9a19af
UW
38552010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
3856
3857 * Makefile.in (HFILES_NO_SRCDIR): Remove config/i386/nm-linux.h
3858
669211f5
UW
38592010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
3860
3861 * config/nm-linux.h (struct target_ops): Remove forward declaration.
3862 (lin_thread_get_thread_signals): Remove prototype.
3863 (GET_THREAD_SIGNALS): Remove.
3864 * linux-nat.h (lin_thread_get_thread_signals): Add prototype.
3865 * linux-thread-db.c (check_thread_signals): Directly call
3866 lin_thread_get_thread_signals; do not check GET_THREAD_SIGNALS.
3867
b7a8b4ef
UW
38682010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
3869
3870 * gregset.h (GDB_FPXREGSET_T): Remove.
3871 (gdb_fpxregset_t): Likewise.
3872 (supply_fpxregset): Remove prototype.
3873 (fill_fpxregset): Likewise.
3874 * i386-linux-nat.c (supply_fpxregset): Remove.
3875 (fill_fpxregset): Likewise.
3876 (fetch_fpxregs): Inline supply_fpxregset call.
3877 (store_fpxregs): Inline fill_fpxregset call.
3878
3879 * config/i386/linux.mh: Set NAT_FILE to config/nm-linux.h.
3880 * config/i386/nm-linux.h: Remove file.
3881
82892036
MS
38822010-06-09 Michael Snyder <msnyder@vmware.com>
3883
3884 * target.c (update_current_target): Fix spelling error in comment.
3885 (target_mourn_inferior): Fix spelling error in error message.
3886
5ddb52fa
PH
38872010-06-08 Paul Hilfinger <hilfingr@adacore.com>
3888
3889 * dictionary.h (dict_iter_name_first, dict_iter_name_next): Refer to
3890 SYMBOL_SEARCH_NAME, not SYMBOL_BEST_NAME, in comments.
3891
0f2caa1b
MS
38922010-06-08 Michael Snyder <msnyder@vmware.com>
3893
3894 * remote.c (remote_close): Set inferior_ptid to null_ptid.
3895
3bebe2f2
JK
38962010-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3897
3898 * configure.ac <"${have_libpython}" != no>: New workaround of
3899 python#4434.
3900 * configure: Regenerate.
3901
eaaffdf4
HZ
39022010-06-08 Hui Zhu <teawater@gmail.com>
3903
3904 * record.c (record_wait): Move signal out of replay code.
3905
5c631832
JK
39062010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3907
3908 Fix PR 10640.
3909 * dwarf2-frame.c (no_dwarf_call): New function.
3910 (execute_stack_op): Set CTX->DWARF_CALL.
3911 * dwarf2expr.c (execute_stack_op) <DW_OP_call2, DW_OP_call4>: New.
3912 * dwarf2expr.h (struct dwarf_expr_context) <dwarf_call>: New.
3913 (struct dwarf_expr_context) <get_subr>: Remove the #if0-ed field.
3914 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call): New functions.
3915 (dwarf2_evaluate_loc_desc): Initialize CTX->DWARF_CALL.
3916 (needs_frame_dwarf_call): New function.
3917 (dwarf2_loc_desc_needs_frame): Initialize CTX->DWARF_CALL.
3918 * dwarf2read.c (follow_die_offset): Based on former follow_die_ref.
3919 Update the comment. Move variables die, offset and error call to ...
3920 (follow_die_ref): ... a new function.
3921 (dwarf2_fetch_die_location_block): New function.
3922 * dwarf2loc.h (dwarf2_fetch_die_location_block): New prototype.
3923
17ea53c3
JK
39242010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3925
3926 * dwarf2loc.c (struct dwarf_expr_baton) Replace objfile by per_cu.
3927 (dwarf_expr_tls_address): Use per_cu instead of objfile.
3928 (dwarf2_evaluate_loc_desc): Drop initialization of BATON.OBJFILE.
3929 Initialize new BATON.PER_CU. Adjust CTX->GDBARCH initialization for
3930 this change.
3931 (struct needs_frame_baton): New field per_cu.
3932 (dwarf2_loc_desc_needs_frame): Initialize new BATON.PER_CU.
3933 * dwarf2read.c (struct dwarf2_per_cu_data) <cu>: Extend the comment.
3934
245040d7
SW
39352010-06-07 Sami Wagiaalla <swagiaal@redhat.com>
3936
3937 * cp-support.c (make_symbol_overload_list_namespace): Only search
3938 static and global blocks.
3939 (make_symbol_overload_list_block): New function.
3940 (make_symbol_overload_list): Separate namespace search from block
3941 search.
3942 (make_symbol_overload_list_qualified): Use
3943 make_symbol_overload_list_block.
3944
4c3376c8
SW
39452010-06-07 Sami Wagiaalla <swagiaal@redhat.com>
3946
3947 * value.h: Created oload_search_type enum.
3948 (find_overload_match): Use oload_search_type enum.
3949 * valops.c (find_overload_match): Support combined member and
3950 non-member search.
3951 * eval.c (evaluate_subexp_standard): Calls to
3952 find_overload_match now use oload_search_type enum.
3953 (oload_method_static): Verify index is a proper value.
3954 * valarith.c (value_user_defined_cpp_op): Search for and handle
3955 both member and non-member operators.
3956 (value_user_defined_cpp_op): New function.
3957 (value_user_defined_op): New function.
3958 (value_x_unop): Use value_user_defined_op.
3959 (value_x_binop): Ditto.
3960 * cp-support.c (make_symbol_overload_list_using): Added block
3961 iteration.
3962 Add check for namespace aliases and imported declarations.
3963
ee55da67
JK
39642010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3965
3966 * breakpoint.h (owner): Extend the comment.
3967
1a2ab13a
JK
39682010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3969
3970 Clear stale specific bp_location from former whole breakpoint.
3971 * breakpoint.c (delete_breakpoint): Move the stale referencing clear
3972 code ...
3973 (free_bp_location): ... here. Rename there the called function to
3974 bpstat_remove_bp_location_callback.
3975 (bpstat_remove_breakpoint_callback): Rename to ...
3976 (bpstat_remove_bp_location_callback): ... here, change DATA resolution
3977 to struct bp_location. Change the called function to
3978 bpstat_remove_bp_location. Create new declaration for the function.
3979 (bpstat_remove_breakpoint): Rename to ...
3980 (bpstat_remove_bp_location): ..., change the parameter to loc, adjust
3981 code for the new parameter type.
3982
16d6b4b7
NS
39832010-06-07 Nathan Sidwell <nathan@codesourcery.com>
3984
3985 * README: Make version-agnostic.
3986
7e314c57
JK
39872010-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3988
3989 Fix duplicate types for single DIE.
3990 * dwarf2read.c (read_structure_type): Move set_descriptive_type after
3991 set_die_type.
3992 (read_array_type): Remove type initialization. Recheck get_die_type
3993 after initial die_type. Move set_die_type before set_descriptive_type.
3994 (read_set_type): New variable domain_type. Recheck get_die_type after
3995 initial die_type. Move attr initialization later.
3996 (read_tag_pointer_type, read_tag_reference_type): New variable
3997 target_type. Recheck get_die_type after initial die_type.
3998 (read_tag_ptr_to_member_type): Recheck get_die_type after initial
3999 die_type and die_containing_type.
4000 (read_tag_const_type, read_tag_volatile_type, read_subroutine_type):
4001 Recheck get_die_type after initial die_type.
4002 (read_subrange_type): Recheck get_die_type after initial die_type.
4003 Move set_die_type before set_descriptive_type.
4004 (set_die_type): Extend the function comment. Call complaint if DIE has
4005 some type already set.
4006
2f296114
VP
40072010-06-05 Vladimir Prus <vladimir@codesourcery.com>
4008
4009 * mi/mi-main.c (mi_cmd_list_thread_groups): Adjust
4010 for current naming of thread groups (iN, not N).
4011
554794dc
SDJ
40122010-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
4013
4014 * ada-lang.c (ada_operator_length): Constify `struct expression'.
4015 * parse.c (operator_length): Likewise.
4016 (operator_length_standard): Likewise.
4017 * parser-defs.h (operator_length): Likewise.
4018 (operator_length_standard): Likewise.
4019 (struct exp_descriptor <operator_length>): Likewise.
4020
967cf477
DE
40212010-06-04 Doug Evans <dje@google.com>
4022
bddaacb9 4023 Add support for enabling/disabling individual pretty-printers.
967cf477
DE
4024 * python/py-prettyprint.c (search_pp_list): Skip disabled printers.
4025 * python/python-internal.h (gdbpy_enabled_cst): Declare.
4026 * python/python.c (gdbpy_enabled_cst): Define.
4027 (_initialize_python): Initialize gdbpy_enabled_cst.
4028 * NEWS: Add entry.
4029
2dec564e
JK
40302010-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4031
4032 * breakpoint.c (update_global_location_list): Fix comment typo.
4033
44b5680a
HZ
40342010-06-04 Hui Zhu <teawater@gmail.com>
4035
4036 * dwarf2loc.c (disassemble_dwarf_expression): Change ul to l.
4037
e7a30f46
DE
40382010-06-03 Doug Evans <dje@google.com>
4039
4040 * configure.ac: Don't fail if python is unusable when
4041 configured with --with-python=auto.
4042 * configure: Regenerate.
4043
84b4420f
SW
40442010-06-03 Sami Wagiaalla <swagiaal@redhat.com>
4045
889bf7c5 4046 * dwarf2read.c (new_symbol): Remove redundant naming of symbol.
84b4420f 4047
df178451
PM
40482010-06-03 Pierre Muller <muller@ics.u-strasbg.fr>
4049
4050 * valprint.h (get_array_bounds): Change low and high parameter types
4051 to LONGEST *.
0407b3f1 4052 * valprint.c (get_array_bounds): Use get_discrete_bounds call to
df178451
PM
4053 compute bounds.
4054 (val_print_array_elements): Adapt to change above.
4055 * ada-valprint.c (print_optional_low_bound): Adapt to change above.
4056 * p-valprint.c (pascal_val_print): Likewise.
4057
fd5700c7
JK
40582010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4059
4060 * symfile.c (init_filename_language_table): New extensions .for, .FOR,
4061 .ftn, .FTN, .fpp, .FPP, .f90, .F90, .f95, .F95, .f03, .F03, .f08 and
4062 .F08.
4063
f55ee35c
JK
40642010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4065
4066 Support DW_TAG_module as separate namespaces.
4067 * dwarf2read.c (typename_concat): New parameter physname.
4068 (read_module_type): New function and declaration.
4069 (scan_partial_symbols): Scan also DW_TAG_module children.
4070 (partial_die_parent_scope): Accept scope even from DW_TAG_module. Pass
4071 to typename_concat backward compatible physname value 0.
4072 (partial_die_full_name, read_namespace_type): Pass to typename_concat
4073 backward compatible physname value 0.
4074 (add_partial_module, read_module): Remove FIXME comment.
4075 (process_die) <DW_TAG_module>: Set PROCESSING_HAS_NAMESPACE_INFO.
4076 (die_needs_namespace) <DW_TAG_variable>: Allow returning true even for
4077 DIEs under DW_TAG_module.
4078 (dwarf2_compute_name): Move the ada block for DW_AT_linkage_name and
4079 DW_AT_MIPS_linkage_name first, extend it for language_fortran
4080 && physname and return there instead of just setting NAME. Extend
4081 the main block for language_fortran. Pass physname parameter to the
4082 typename_concat call.
4083 (read_import_statement, read_func_scope, get_scope_pc_bounds)
4084 (load_partial_dies, determine_prefix): Support also DW_TAG_module.
4085 (new_symbol): Fill in cplus_specific.demangled_name if it is still
4086 missing from SYMBOL_SET_NAMES in the language_fortran case.
4087 (new_symbol) <DW_TAG_variable>: Force LOC_UNRESOLVED for gfortran module
4088 variables.
4089 (read_type_die) <DW_TAG_module>: New.
4090 (MAX_SEP_LEN): Increase to 7.
4091 (typename_concat): New parameter physname. New variable lead. Support
4092 also language_fortran.
4093 * f-exp.y (yylex): Consider : also as a symbol name character class.
4094 * f-lang.c: Include cp-support.h.
4095 (f_word_break_characters, f_make_symbol_completion_list): New functions.
4096 (f_language_defn): Use cp_lookup_symbol_nonlocal,
4097 f_word_break_characters and f_make_symbol_completion_list.
4098 * f-typeprint.c (f_type_print_base) <TYPE_CODE_MODULE>: New.
4099 * gdbtypes.h (enum type_code) <TYPE_CODE_MODULE>: New.
4100 * symtab.c (symbol_init_language_specific): Support language_fortran.
4101 (symbol_find_demangled_name): New comment on language_fortran.
4102 (symbol_natural_name, symbol_demangled_name): Use demangled_name even
4103 for language_fortran.
4104 (lookup_symbol_aux_local): Check imports also for language_fortran.
4105 (default_make_symbol_completion_list): Rename to ...
4106 (default_make_symbol_completion_list_break_on): ... this name. New
4107 parameter break_on, use it.
4108 (default_make_symbol_completion_list): New stub.
4109 * symtab.h (default_make_symbol_completion_list_break_on): New
4110 prototype.
4111
cb91c06a
JB
41122010-06-02 Joel Brobecker <brobecker@adacore.com>
4113
4114 * remote.c (remote_get_noisy_reply): Remove trailing "\n" in call
4115 to error.
4116
5c315b68
JK
41172010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4118
4119 * dwarf2read.c (typename_concat): Add const to the variable sep.
4120
9eae7c52
TT
41212010-06-02 Tom Tromey <tromey@redhat.com>
4122
4123 * dwarf2loc.h (dwarf2_per_cu_data): Declare.
4124 * dwarf2read.c (dwarf_stack_op_name): No longer static. Return
4125 type is const. Add 'def' argument. Add missing operators, remove
4126 unhandled ones.
4127 (decode_locdesc): Update.
4128 (dwarf2_always_disassemble): New global.
4129 (show_dwarf2_always_disassemble): New function.
4130 (_initialize_dwarf2_read): Add always-disassemble.
4131 (dwarf2_per_cu_offset_size): New function.
4132 * dwarf2loc.c (dwarf2_always_disassemble): Declare.
4133 (piece_end_p): New function.
4134 (locexpr_describe_location_piece): Replace 'size' argument with
4135 'end'. Use piece_end_p. Rewrite recognition of TLS. Recognize
4136 some constants. Remove errors.
4137 (disassemble_dwarf_expression): New function.
4138 (locexpr_describe_location_1): Use disassemble_dwarf_expression.
4139 Add 'offset_size' argument.
4140 (loclist_describe_location): Change output formatting.
4141 * dwarf2expr.h (dwarf_stack_op_name): Declare.
4142
7d3fe98e
SW
41432010-06-02 Sami Wagiaalla <swagiaal@redhat.com>
4144
4145 * cp-support.c (make_symbol_overload_list_adl_namespace): Handle
4146 anonymous type case.
4147
e77813c8
PM
41482010-06-02 Pierre Muller <muller@ics.u-strasbg.fr>
4149
4150 * dwarf2read.c (read_subrange_type): Handle missing base type
4151 according to Dwarf-2 specifications.
4152
7cf3118a
SDJ
41532010-06-01 Sergio Durigan Junior <sergiodj@redhat.com>
4154
4155 * expprint.c (print_subexp_standard): Remove exp_opcodes BINOP_INCL,
4156 BINOP_EXCL.
4157 (op_name_standard): Remove exp_opcodes BINOP_INCL, BINOP_EXCL,
4158 UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH.
4159 (dump_subexp_body_standard): Remove exp_opcodes BINOP_INCL,
4160 BINOP_EXCL, UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD,
4161 UNOP_CHMAX, UNOP_CHMIN.
4162 * expression.h (enum exp_opcode) <BINOP_INCL, BINOP_EXCL,
4163 UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD, UNOP_CHMAX,
4164 UNOP_CHMIN>: Remove opcodes.
4165
ae4d0c03
PM
41662010-06-01 Pierre Muller <muller@ics.u-strasbg.fr>
4167
4168 * dwarf2read.c (read_func_scope): Do not complain for
4169 external function if bounds are not found.
4170
fa593d66
PA
41712010-06-01 Pedro Alves <pedro@codesourcery.com>
4172
4173 * NEWS: Mention gdbserver fast tracepoints support.
4174
cd44747c
PM
41752010-05-31 Pierre Muller <muller@ics.u-strasbg.fr>
4176
4177 * windows-nat.c (GetConsoleFontSize, GetCurrentConsoleFont):
4178 New macros.
4179 (windows_set_console_info): New function.
4180 (windows_create_inferior): Call windows_set_console_info
4181 if NEW_CONSOLE is true.
4182 (bad_GetCurrentConsoleFont, bad_GetConsoleFontSize): New functions.
4183 (_initialize_loadable): Initialize GetConsoleFontSize and
4184 GetCurrentConsoleFont.
4185
f6528abd
JK
41862010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4187
4188 * Makefile.in (RDYNAMIC): New.
4189 (SFILES): Add proc-service.list.
4190 * config/alpha/alpha-linux.mh (NAT_CDEPS): New.
4191 (LOADLIBES): Replace -rdynamic by $(RDYNAMIC).
4192 * config/arm/linux.mh: Likewise.
4193 * config/i386/linux.mh: Likewise.
4194 * config/i386/linux64.mh: Likewise.
4195 * config/ia64/linux.mh: Likewise.
4196 * config/m32r/linux.mh: Likewise.
4197 * config/m68k/linux.mh: Likewise.
4198 * config/mips/linux.mh: Likewise.
4199 * config/pa/linux.mh: Likewise.
4200 * config/powerpc/linux.mh: Likewise.
4201 * config/powerpc/ppc64-linux.mh: Likewise.
4202 * config/s390/s390.mh: Likewise.
4203 * config/sparc/linux.mh: Likewise.
4204 * config/sparc/linux64.mh: Likewise.
4205 * config/xtensa/linux.mh: Likewise.
4206 * configure.ac: New RDYNAMIC on native host and GCC.
4207 (solaris*): Replace -Wl,-export-dynamic by $RDYNAMIC.
4208 * configure: Regenerate.
4209 * proc-service.list: New.
4210
ca2a87a0
JK
42112010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4212
4213 * linux-nat.c (linux_nat_core_of_thread_1): Fix crash on invalid
4214 CONTENT.
4215
1e225492
JK
42162010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4217
4218 * linux-nat.c (linux_nat_wait_1): Do not call
4219 linux_nat_core_of_thread_1 on TARGET_WAITKIND_EXITED or
4220 TARGET_WAITKIND_SIGNALLED.
4221
e802dbe0
JB
42222010-05-27 Joel Brobecker <brobecker@adacore.com>
4223
4224 * ada-lang.c (ada_inferior_data): New struct.
4225 (ada_inferior_data): New static global.
4226 (ada_inferior_data_cleanup, get_ada_inferior_data, ada_inferior_exit)
4227 (ada_get_tsd_type): New functions.
4228 (ada_tag_name_2): Use ada_get_tsd_type instead of ada_find_any_type
4229 to look the tsd type up.
4230 (_initialize_ada_language): Attach ada_inferior_exit to inferior_exit
4231 event. Set ada_inferior_data.
4232
176a6961
PA
42332010-05-27 Pedro Alves <pedro@codesourcery.com>
4234
4235 * remote.c (unpack_varlen_hex): Remove forward declaration.
4236 (remote_console_output): Make static, and add forward declaration.
4237 * remote.h: Drop FIXME comment.
4238 (unpack_varlen_hex): Declare.
4239 (remote_console_output, remote_cisco_objfile_relocate)
4240 (deprecated_target_resume_hook, deprecated_target_wait_loop_hook):
4241 Delete declarations.
4242 * tracepoint.c: Include "remote.h".
4243 (unpack_varlen_hex): Delete declaration.
4244
88bfdde4
TT
42452010-05-27 Tom Tromey <tromey@redhat.com>
4246
4247 * dwarf2loc.c (struct piece_closure) <refc>: New field.
4248 (allocate_piece_closure): Initialize refc.
4249 (copy_pieced_value_closure): Use refc.
4250 (free_pieced_value_closure): Likewise.
4251
8c6363cf
TT
42522010-05-27 Tom Tromey <tromey@redhat.com>
4253
4254 * arm-tdep.c (push_stack_item): 'contents' now const.
4255 (arm_push_dummy_call): Make 'val' const. Use value_contents, not
4256 value_contents_writeable. Introduce new temporary.
4257
7ecb917e
TT
42582010-05-27 Tom Tromey <tromey@redhat.com>
4259
4260 * findcmd.c (parse_find_args): Use value_contents, not
4261 value_contents_raw.
4262
f42a0a33
TT
42632010-05-27 Tom Tromey <tromey@redhat.com>
4264
4265 * alpha-tdep.c (alpha_push_dummy_call): Make alpha_arg.contents
4266 const. Use value_contents, not value_contents_writeable.
4267
12b795ad
JB
42682010-05-27 Joel Brobecker <brobecker@adacore.com>
4269
4270 * ada-lang.c (ensure_lval): Replace call to value_contents_raw
4271 by call to value_contents.
4272
5a2e11c7
OS
42732010-05-27 Ozkan Sezer <sezeroz@gmail.com>
4274
4275 * MAINTAINERS: Add myself for write after approval privileges.
4276
ec685c5e
DE
42772010-05-26 Doug Evans <dje@google.com>
4278
0c4a4063
DE
4279 Allow python to find its files if moved from original location.
4280 * acinclude.m4 (GDB_AC_DEFINE_RELOCATABLE): New function.
4281 (GDB_AC_WITH_DIR): Call it.
4282 * configure.ac: Define WITH_PYTHON_PATH if we can find the
4283 python installation directory.
4284 * config.in: Regenerate.
4285 * configure: Regenerate.
4286 * defs.h (python_libdir): Declare.
4287 * main.c (python_libdir): Define.
4288 (captured_main): Initialize python_libdir.
4289 * python/python.c (_initialize_python): #ifdef WITH_PYTHON_PATH,
4290 call Py_SetProgramName to make sure python can find its libraries
4291 and modules.
4292
ec685c5e
DE
4293 * configure.ac: Try to use python's distutils to fetch compilation
4294 parameters.
4295 * configure: Regenerate.
4296 * python/python-config.py: New file.
4297
363a6e9f
OS
42982010-05-26 Ozkan Sezer <sezeroz@gmail.com>
4299
4300 * ser-tcp.c (net_open): Check error return from socket() call by its
4301 equality to -1 not by it being negative.
4302 (net_close): Likewise.
4303
dde08ee1
PA
43042010-05-26 Pedro Alves <pedro@codesourcery.com>
4305
4306 * NEWS: Mention the `qRelocInsn' feature.
4307 * gdbarch.sh (relocate_instruction): New.
4308 * amd64-tdep.c (rip_relative_offset): New.
4309 (append_insns): New.
4310 (amd64_relocate_instruction): New.
4311 (amd64_init_abi): Install it.
4312 * i386-tdep.c (append_insns): New.
4313 (i386_relocate_instruction): New.
4314 (i386_gdbarch_init): Install it.
4315 * remote.c (remote_get_noisy_reply): Handle qRelocInsn requests.
4316 * gdbarch.h, gdbarch.c: Regenerate.
4317
947bb88f
TT
43182010-05-26 Tom Tromey <tromey@redhat.com>
4319
4320 * dwarf2loc.h (struct dwarf2_locexpr_baton) <data>: Now const.
4321 (struct dwarf2_loclist_baton) <data>: Likewise.
4322 * dwarf2loc.c (find_location_expression): Constify return type.
4323 (dwarf2_evaluate_loc_desc): Make 'data' argument const.
4324 (dwarf2_loc_desc_needs_frame): Likewise.
4325 (loclist_read_variable): Constify.
4326 (loclist_describe_location): Likewise.
4327 (loclist_tracepoint_var_ref): Likewise.
4328
0d45f56e
TT
43292010-05-25 Tom Tromey <tromey@redhat.com>
4330
4331 * dwarf2loc.c (dwarf_expr_frame_base): Constify.
4332 (dwarf_expr_frame_base_1): Likewise.
4333 (read_pieced_value): Update.
4334 (needs_frame_frame_base): Constify.
4335 (dwarf2_tracepoint_var_loc): Likewise.
4336 (dwarf2_tracepoint_var_access): Likewise.
4337 (locexpr_describe_location_piece): Likewise.
4338 (locexpr_describe_location_1): Likewise.
4339 * dwarf2expr.h (struct dwarf_expr_context) <get_frame_base>:
4340 Constify.
4341 (data): Now const.
4342 (struct dwarf_expr_piece) <v.literal.data>: Likewise.
4343 (dwarf_expr_eval, read_uleb128, read_sleb128)
4344 (dwarf2_read_address): Update.
4345 * dwarf2expr.c (dwarf_expr_eval): Constify.
4346 (read_uleb128): Likewise.
4347 (read_sleb128): Likewise.
4348 (dwarf2_read_address): Likewise.
4349 (require_composition): Likewise.
4350 (execute_stack_op): Likewise.
4351 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <loc.exp>: Now a
4352 "const gdb_byte *".
4353 * dwarf2-frame.c (struct dwarf2_frame_state_reg_info) <cfa_exp>:
4354 Now const.
4355 (no_get_frame_base): Constify.
4356 (execute_stack_op): Likewise.
4357 (execute_cfa_program): Likewise.
4358 (read_encoded_value): Likewise.
4359
07ca107c
DE
43602010-05-25 Doug Evans <dje@google.com>
4361
e34838f0
DE
4362 * ser-pipe.c (pipe_open): Ignore SIGINTs in child.
4363
01f69b38
DE
4364 * event-loop.h (GDB_READABLE, GDB_WRITABLE, GDB_EXCEPTION): Move to ...
4365 * event-loop.c: ... here.
4366 * tui/tui-io.c (tui_readline_output): Rename parameter `code' to
4367 `error' for clarity.
4368 (tui_getc): Pass correct value for `error' parameter to
4369 tui_readline_output.
4370
07ca107c
DE
4371 Add python gdb.GdbError and gdb.string_to_argv.
4372 * NEWS: Document them.
4373 * python/py-cmd.c (cmdpy_function): Don't print a traceback if
4374 the exception is gdb.GdbError. Print a second traceback if there's
4375 an error computing the error message.
4376 (gdbpy_string_to_argv): New function.
4377 * python/py-utils.c (gdbpy_obj_to_string): New function.
4378 (gdbpy_exception_to_string): New function.
4379 * python/python-internal.h (gdbpy_string_to_argv): Declare.
4380 (gdbpy_obj_to_string, gdbpy_exception_to_string): Declare.
4381 (gdbpy_gdberror_exc): Declare.
4382 * python/python.c (gdbpy_gdberror_exc): New global.
4383 (_initialize_python): Initialize gdbpy_gdberror_exc and create
4384 gdb.GdbError.
4385 (GdbMethods): Add string_to_argv.
4386
5572ce1f
PM
43872010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
4388
4389 * windows-nat.c (display_selector): Call GetLastError to give better
4390 failure explanation.
4391
acd5838a
PA
43922010-05-24 Pedro Alves <pedro@codesourcery.com>
4393
4394 * config.in: Regenerate.
4395
b26a4dcb
JK
43962010-05-23 Jan Kratochvil <jan.kratochvil@redhat.com>
4397
4398 Code cleanup.
4399 * target.c (push_target): Return only void. Remove the return value
4400 comment.
4401 * target.h (push_target): Return only void.
4402
f434ba03
PA
44032010-05-23 Pedro Alves <pedro@codesourcery.com>
4404
4405 Update gnulib from latest git.
4406 (250b80067c1e1d8faa0c42fb572f721975b929c5)
4407
4408 * gnulib/memcmp.c: Removed.
4409 * gnulib/memchr.valgrind: New.
4410 * gnulib/stddef.in.h: New.
4411 * gnulib/Makefile.am: Updated.
4412 * gnulib/memchr.c: Updated.
4413 * gnulib/memmem.c: Updated.
4414 * gnulib/stdint.in.h: Updated.
4415 * gnulib/str-two-way.h: Updated.
4416 * gnulib/string.in.h: Updated.
4417 * gnulib/wchar.in.h: Updated.
4418
4419 * gnulib/extra/link-warning.h: Removed.
4420 * gnulib/extra/c++defs.h: New.
4421 * gnulib/extra/warn-on-use.h: New.
4422 * gnulib/extra/arg-nonnull.h: Updated.
4423
4424 * gnulib/m4/extensions.m4: Updated.
4425 * gnulib/m4/gnulib-cache.m4: Updated.
4426 * gnulib/m4/gnulib-common.m4: Updated.
4427 * gnulib/m4/gnulib-comp.m4: Updated.
4428 * gnulib/m4/gnulib-tool.m4: Updated.
4429 * gnulib/m4/include_next.m4: Updated.
4430 * gnulib/m4/longlong.m4: Updated.
4431 * gnulib/m4/memchr.m4: Updated.
4432 * gnulib/m4/memmem.m4: Updated.
4433 * gnulib/m4/stdint.m4: Updated.
4434 * gnulib/m4/string_h.m4: Updated.
4435 * gnulib/m4/memcmp.m4: Removed.
4436 * gnulib/m4/onceonly_2_57.m4: Removed.
4437 * gnulib/m4/00gnulib.m4: New.
4438 * gnulib/m4/mmap-anon.m4: New.
4439 * gnulib/m4/multiarch.m4: New.
4440 * gnulib/m4/onceonly.m4: New.
4441 * gnulib/m4/stddef_h.m4: New.
4442 * gnulib/m4/warn-on-use.m4: New.
4443 * gnulib/m4/wchar.m4: Removed.
4444 * gnulib/m4/wchar_h.m4: New.
4445 * gnulib/m4/wchar_t.m4: New.
4446 * gnulib/m4/wint_t.m4: New.
4447
4448 * aclocal.m4: Regenerate.
4449 * config.in: Likewise.
4450 * configure: Likewise.
4451 * gnulib/Makefile.in: Likewise.
4452
d3b1e874
TT
44532010-05-21 Tom Tromey <tromey@redhat.com>
4454
4455 * dwarf2loc.c (extract_bits_primitive): New function.
4456 (extract_bits): Likewise.
4457 (insert_bits): Likewise.
4458 (copy_bitwise): Likewise.
4459 (read_pieced_value): Do all operations in bits.
4460 (write_pieced_value): Likewise.
4461 * dwarf2expr.h (struct dwarf_expr_piece) <offset>: New field.
4462 * dwarf2expr.c (add_piece): New arguments bit_piece, offset.
4463 Always use xrealloc to resize piece array.
4464 (execute_stack_op) <DW_OP_reg0>: Handle DW_OP_bit_piece.
4465 <DW_OP_piece>: Update.
4466 <DW_OP_bit_piece>: New case.
4467
cb826367
TT
44682010-05-21 Tom Tromey <tromey@redhat.com>
4469
4470 * dwarf2loc.c (read_pieced_value): Exit loop when result is full.
4471 <DWARF_VALUE_OPTIMIZED_OUT>: New case.
4472 * dwarf2expr.h (enum dwarf_value_location)
4473 <DWARF_VALUE_OPTIMIZED_OUT>: New constant.
4474 * dwarf2expr.c (dwarf_expr_stack_empty_p): New function.
4475 (add_piece): Handle empty piece.
4476 (execute_stack_op) <DW_OP_piece>: Handle
4477 DWARF_VALUE_OPTIMIZED_OUT.
4478
74de6778
TT
44792010-05-21 Tom Tromey <tromey@redhat.com>
4480
4481 * eval.c (evaluate_subexp_standard) <BINOP_SUBSCRIPT>: Call
4482 evaluate_subexp, not evaluate_subexp_with_coercion.
4483
f346a30d
PM
44842010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
4485
4486 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
4487 attribute.
4488
afd74c5f
TT
44892010-05-21 Tom Tromey <tromey@redhat.com>
4490
4491 * dwarf2loc.c (read_pieced_value): Work properly when 'v' has an
4492 offset.
4493 (write_pieced_value): Likewise.
4494
90e7c2c5
PM
44952010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
4496
4497 * dwarf2read.c (process_die): Also allow DW_TAG_const_type
4498 and DW_TAG_volatile_type.
4499 (new_symbol): Likewise.
4500
8148cf8d
PM
45012010-05-20 Pierre Muller <muller@ics.u-strasbg.fr>
4502
4503 * p-valprint.c (pascal_val_print): Call get_array_bounds
4504 to obtain the number of elements in an array.
4505
3a1d4620
DE
45062010-05-19 Doug Evans <dje@google.com>
4507
0bf0f8c4
DE
4508 * python.c (gdbpy_print_stack): Ensure output ends with a newline.
4509
3a1d4620
DE
4510 * python.c (source_python_script): Add comment.
4511 (source_python_script_for_objfile): Remove unnecessary call to
4512 gdbpy_print_stack.
4513
dc21167c
JK
45142010-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4515 Sergio Durigan Junior <sergiodj@redhat.com>
4516
4517 Code cleanup.
4518 * parse.c (exp_iterate): Use operator_length wrapper function.
4519
5b4ee69b
MS
45202010-05-18 Michael Snyder <msnyder@vmware.com>
4521
4522 * ada-lang.c: White space.
4523 * ada-typeprint.c: White space.
4524 * ada-valprint.c: White space.
4525 * addrmap.c: White space.
4526 * auxv.c: White space.
4527 * ax-gdb.c: White space.
4528
e17c9e56
HZ
45292010-05-18 Hui Zhu <teawater@gmail.com>
4530
4531 * linux-fork.c (inferior_call_waitpid_cleanup): Add check
4532 for oldfp.
4533 (inferior_call_waitpid): Move make_cleanup out of check.
4534 Check the return of waitpid.
4535 (delete_checkpoint_command): Add pptid to save fi->parent_ptid.
4536
a109c7c1
MS
45372010-05-17 Michael Snyder <msnyder@vmware.com>
4538
1c5313c5
MS
4539 * tui/tui.c: White space.
4540 * tui/tui-data.c: White space.
4541 * tui/tui-disasm.c: White space.
4542 * tui/tui-file.c: White space.
4543 * tui/tui-interp.c: White space.
4544 * tui/tui-main.c: White space.
4545 * tui/tui-out.c: White space.
4546 * tui/tui-regs.c: White space.
4547 * tui/tui-source.c: White space.
4548 * tui/tui-stack.c: White space.
4549 * tui/tui-win.c: White space.
4550 * tui/tui-winsource.c: White space.
4551
f4a14ae6
MS
4552 * procfs.c: White space.
4553
d59b6f6c
MS
4554 * python/py-auto-load.c: White space.
4555 * python/py-block.c: White space.
4556 * python/py-breakpoint.c: White space.
4557 * python/py-cmd.c: White space.
4558 * python/py-function.c: White space.
4559 * python/py-lazy-string.c: White space.
4560 * python/py-objfile.c: White space.
4561 * python/py-param.c: White space.
4562 * python/py-prettyprint.c: White space.
4563 * python/py-progspace.c: White space.
4564 * python/py-symtab.c: White space.
4565 * python/python.c: White space.
4566 * python/py-type.c: White space.
4567 * python/py-utils.c: White space.
4568 * python/py-value.c: White space.
4569
102040f0
MS
4570 * mi/mi-cmd-break.c: White space.
4571 * mi/mi-cmd-env.c: White space.
4572 * mi/mi-cmds.c: White space.
4573 * mi/mi-cmd-stack.c: White space.
4574 * mi/mi-cmd-var.c: White space.
4575 * mi/mi-console.c: White space.
4576 * mi/mi-getopt.c: White space.
4577 * mi/mi-interp.c: White space.
4578 * mi/mi-main.c: White space.
4579 * mi/mi-out.c: White space.
4580 * mi/mi-parse.c: White space.
4581
cdb27c12
MS
4582 * cli/cli-cmds.c: White space.
4583 * cli/cli-decode.c: White space.
4584 * cli/cli-dump.c: White space.
4585 * cli/cli-interp.c: White space.
4586 * cli/cli-logging.c: White space.
4587 * cli/cli-script.c: White space.
4588 * cli/cli-setshow.c: White space.
4589
a109c7c1
MS
4590 * valarith.c: White space.
4591 * valops.c: White space.
4592 * valprint.c: White space.
4593 * value.c: White space.
4594 * varobj.c: White space.
4595 * xcoffread.c: White space.
4596 * xml-support.c: White space.
4597 * xml-tdesc.c: White space.
4598
3872d37d
AS
45992010-05-17 Andreas Schwab <schwab@redhat.com>
4600
4601 PR gdb/11092
4602 * c-lang.c (c_printstr): Compute real length of NUL terminated
4603 string at first.
4604
0cce5bd9
JB
46052010-05-17 Joel Brobecker <brobecker@adacore.com>
4606
4607 * parse.c (parse_exp_in_context): When block is not NULL, use
4608 its associated language to parse the expression instead of
4609 the current_language.
4610
5f19d646
JB
46112010-05-17 Joel Brobecker <brobecker@adacore.com>
4612
4613 * jv-lang.c (java_lookup_class): Remove commented out code.
4614 (type_from_class): Likewise.
4615 (java_op_print_tab): Remove commented-out elements.
4616
28c85d6c
JB
46172010-05-17 Joel Brobecker <brobecker@adacore.com>
4618
4619 * ada-lang.c (to_fixed_range_type): The the raw index type as
4620 argument instead of the raw type name. Remove orig_type parameter.
4621 Update calls throughout.
4622 (ada_fixup_array_indexes_type): New function.
4623 (ada_array_bound_from_type): Add call to ada_fixup_array_indexes_type.
4624 * ada-lang.h (ada_fixup_array_indexes_type): Add declaration.
4625 * ada-typeprint.c (print_range_type): Renames print_range_type_named.
4626 Remove name parameter.
4627 (print_array_type): Add call to ada_fixup_array_indexes_type.
4628 Update calls to print_range_type.
4629 (ada_print_type): Update calls to print_range_type.
4630
d09039dd
PM
46312010-05-17 Pierre Muller <muller@ics.u-strasbg.fr>
4632
4633 * dwarf2read.c (read_set_type): Set type length if
4634 DW_AT_byte_size attribute is present.
4635
7a081a30
PM
46362010-05-17 Pierre Muller <muller@ics.u-strasbg.fr>
4637
4638 * p-valprint.c (pascal_val_print): Handle set type if range limits
4639 are undefined but size is known.
4640
77382aee
PA
46412010-05-17 Pedro Alves <pedro@codesourcery.com>
4642
4643 * procfs.c: Reformat.
4644
433759f7
MS
46452010-05-16 Michael Snyder <msnyder@vmware.com>
4646
5d502164
MS
4647 * target.c: White space.
4648 * target-descriptions.c: White space.
4649 * target-memory.c: White space.
4650 * thread.c: White space.
4651 * top.c: White space.
4652 * tracepoint.c: White space.
4653 * trad-frame.c: White space.
4654 * tramp-frame.c: White space.
4655 * ui-file.c: White space.
4656 * ui-out.c: White space.
4657 * user-regs.c: White space.
4658 * utils.c: White space.
4659
433759f7
MS
4660 * scm-exp.c: White space.
4661 * scm-lang.c: White space.
4662 * scm-valprint.c: White space.
4663 * sentinel-frame.c: White space.
4664 * ser-base.c: White space.
4665 * ser-go32.c: White space.
4666 * serial.c: White space.
4667 * ser-mingw.c: White space.
4668 * ser-pipe.c: White space.
4669 * ser-tcp.c: White space.
4670 * ser-unix.c: White space.
4671 * solib.c: White space.
4672 * solib-darwin.c: White space.
4673 * solib-frv.c: White space.
4674 * solib-irix.c: White space.
4675 * solib-osf.c: White space.
4676 * solib-pa64.c: White space.
4677 * solib-som.c: White space.
4678 * solib-spu.c: White space.
4679 * solib-svr4.c: White space.
4680 * solib-target.c: White space.
4681 * source.c: White space.
4682 * stabsread.c: White space.
4683 * stack.c: White space.
4684 * std-regs.c: White space.
4685 * symfile.c: White space.
4686 * symmisc.c: White space.
4687 * symtab.c: White space.
4688
dd304d53
MS
46892010-05-16 Michael Snyder <msnyder@vmware.com>
4690
4691 * source.c (_initialize_source): Add "rev" as an abbreviation
4692 for the "reverse-search" command.
4693
a744cf53
MS
46942010-05-16 Michael Snyder <msnyder@vmware.com>
4695
123f5f96
MS
4696 * record.c: White space.
4697 * regcache.c: White space.
4698 * reggroups.c: White space.
4699 * remote-fileio.c: White space.
4700 * remote-m32r-sdi.c: White space.
4701 * remote-mips.c: White space.
4702 * remote-sim.c: White space.
a744cf53
MS
4703 * remote.c: White space.
4704 (process_g_packet): Remove orphan braces.
4705
b8d56208
MS
47062010-05-15 Michael Snyder <msnyder@vmware.com>
4707
ad3bbd48
MS
4708 * parse.c: White space.
4709 * p-lang.c: White space.
4710 * posix-hdep.c: White space.
4711 * printcmd.c: White space.
4712 * progspace.c: White space.
4713 * prologue-value.c: White space.
4714 * psymtab.c: White space.
4715 * p-typeprint.c: White space.
4716 * p-valprint.c: White space.
4717
5cc80db3
MS
4718 * objc-lang.c: White space.
4719 * objfiles.c: White space.
4720 * observer.c: White space.
4721 * osabi.c: White space.
4722 * osdata.c: White space.
4723
b8d56208
MS
4724 * m2-lang.c: White space.
4725 * m2-valprint.c: White space.
4726 * macrocmd.c: White space.
4727 * macroexp.c: White space.
4728 * macroscope.c: White space.
4729 * macrotab.c: White space.
4730 * main.c: White space.
4731 * maint.c: White space.
4732 * mdebugread.c: White space.
4733 * memattr.c: White space.
4734 * minsyms.c: White space.
4735 * monitor.c: White space.
4736
9a619af0
MS
47372010-05-14 Michael Snyder <msnyder@vmware.com>
4738
e0881a8e
MS
4739 * jv-lang.c: White space.
4740 * jv-typeprint.c: White space.
4741 * jv-valprint.c: White space.
4742 * language.c: White space.
4743 * libunwind-frame.c: White space.
4744 * linespec.c: White space.
4745 * linux-nat.c: White space.
4746 * linux-record.c: White space.
4747 * linux-thread-db.c: White space.
4748
abbb1732
MS
4749 * infcall.c: White space.
4750 * inf-child.c: White space.
4751 * infcmd.c: White space.
4752 * inferior.c: White space.
4753 * inf-loop.c: White space.
4754 * inflow.c: White space.
4755 * inline-frame.c: White space.
4756 * interps.c: White space.
4757
d8734c88
MS
4758 * gcore.c: White space.
4759 * gdb.c: White space.
4760 * gdbtypes.c: White space.
4761 * gnu-nat.c: White space.
4762 * gnu-v2-abi.c: White space.
4763 * gnu-v3-abi.c: White space.
4764
bb9bcb69
MS
4765 * findcmd.c: White space.
4766 * findvar.c: White space.
4767 * fork-child.c: White space.
4768 * frame-base.c: White space.
4769 * frame.c: White space.
4770 * frame-unwind.c: White space.
4771 * f-valprint.c: White space.
4772
d7f9d729
MS
4773 * elfread.c: White space.
4774 * environ.c: White space.
4775 * eval.c: White space.
4776 * event-loop.c: White space.
4777 * event-top.c: White space.
4778 * exceptions.c: White space.
4779 * exec.c: White space.
4780 * expprint.c: White space.
4781
9a619af0
MS
4782 * dbxread.c: White space.
4783 * dcache.c: White space.
4784 * disasm.c: White space.
4785 * doublest.c: White space.
4786 * dsrec.c: White space.
4787 * dummy-frame.c: White space.
4788 * dwarf2expr.c: White space.
4789 * dwarf2-frame.c: White space.
4790 * dwarf2loc.c: White space.
4791 * dwarf2read.c: White space.
4792
88d4aea7
PM
47932010-05-14 Phil Muldoon <pmuldoon@redhat.com>
4794
889bf7c5 4795 PR python/11482
88d4aea7
PM
4796
4797 * python/py-value.c (valpy_hash): New function.
4798 (value_object_type): Register valpy_hash.
4799
7a298875 48002010-05-14 Hui Zhu <teawater@gmail.com>
0407b3f1 4801 Michael Snyder <msnyder@vmware.com>
7a298875
HZ
4802
4803 * linux-fork.c (gdbthread.h): New include.
4804 (fork_info): Add parent_ptid.
4805 (inferior_call_waitpid_cleanup, inferior_call_waitpid): New
4806 functions.
4807 (delete_checkpoint_command): Call inferior_call_waitpid.
4808 (checkpoint_command): Set parent_ptid.
4809
c14feecc
MS
48102010-05-13 Michael Snyder <msnyder@vmware.com>
4811
6595d32b
MS
4812 * dictionary.c: Re-indent to GNU coding standard.
4813
c5504eaf
MS
4814 * charset.c: White space.
4815 * c-lang.c: White space.
4816 * cli-out.c: White space.
4817 * coffread.c: White space.
4818 * complaints.c: White space.
4819 * completer.c: White space.
4820 * corefile.c: White space.
4821 * corelow.c: White space.
4822 * cp-abi.c: White space.
4823 * cp-namespace.c: White space.
4824 * cp-support.c: White space.
4825 * cp-valprint.c: White space.
4826 * c-typeprint.c: White space.
4827 * c-valprint.c: White space.
cc59ec59
MS
4828 * blockframe.c: White space.
4829 * breakpoint.c: White space.
4830 * buildsym.c: White space.
4831 * blockframe.c: White space.
b6de9da4 4832 * bcache.c: White space.
05c547f6
MS
4833 * gdbarch.sh: White space, add blank lines.
4834 * arch-utils.c: Ditto.
4835 * gdbarch.c: Regenerate.
1c4d3f96 4836 * frame.c: White space, add blank lines.
f89b749f
MS
4837 * stack.c: White space, add blank lines.
4838 (initialize_stack): Remove long-dead code.
c14feecc 4839
a2d33775
JK
48402010-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4841
4842 Code cleanup.
4843 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Change the parameter to type.
4844 (locexpr_read_variable, loclist_read_variable): Update the callers.
4845
33ac96f0
JK
48462010-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4847
4848 Code cleanup.
4849 * dwarf2read.c (die_type, die_descriptive_type): Remove variable type.
4850 Remove check of NULL returned by tag_type_to_type.
4851 (die_containing_type): Remove variable type. Remove type_die variable
4852 initialization. Remove check of NULL returned by tag_type_to_type.
4853
f5a010c0
PM
48542010-05-11 Pierre Muller <muller@ics.u-strasbg.fr>
4855
4856 PR exp/11530.
4857 * gdbtypes.c (lookup_struct_elt_type): Also lookup
4858 names of unnamed structures or unions.
4859
bf701c2c
PM
48602010-05-11 Pierre Muller <muller@ics.u-strasbg.fr>
4861
4862 * procfs.c (proc_watchpoint_address): New function.
0407b3f1 4863 (procfs_stopped_by_watchpoint): Remove useless check after
bf701c2c
PM
4864 find_procinfo_or_die call.
4865 (procfs_stopped_data_address): New function.
4866 (procfs_use_watchpoints): Register new watchpoint related function.
4867
d02691ef
TT
48682010-05-11 Tom Tromey <tromey@redhat.com>
4869
4870 * eval.c (evaluate_subexp_standard): Revert inadvertent change.
4871
e0627e85
MS
48722010-05-10 Michael Snyder <msnyder@vmware.com>
4873
4874 * utils.c: White space cleanup.
4875
cc73bb8c
TT
48762010-05-10 Tom Tromey <tromey@redhat.com>
4877
4878 * eval.c (ptrmath_type_p): Add 'lang' argument.
4879 (evaluate_subexp_standard): Update.
4880 (evaluate_subexp_with_coercion): Update.
4881 * language.h (CAST_IS_CONVERSION): Add 'LANG' argument.
4882
c02866a0
MS
48832010-05-10 Michael Snyder <msnyder@vmware.com>
4884
4885 * utils.c (do_fclose_cleanup) Restore local variable.
4886
06280d23
DE
48872010-05-09 Doug Evans <dje@google.com>
4888
4889 * record.c (init_record_core_ops): Rename record_core to record-core.
4890
fa07e785
JB
48912010-05-08 Joel Brobecker <brobecker@adacore.com>
4892
4893 Implement task switching on pa-hpux.
4894 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): New function.
4895 (inf_ttrace_target): Set t->to_get_ada_task_ptid.
4896
4c680d1d
PM
48972010-05-08 Pierre Muller <muller@ics.u-strasbg.fr>
4898
4899 * valops.c (find_overload_match): Add missing i18n markup.
4900
28e176a6
PM
49012010-05-08 Pierre Muller <muller@ics.u-strasbg.fr>
4902
4903 * p-exp.y (exp : SIZEOF '(' exp ')'): New rule.
4904
48cb83fd
JK
49052010-05-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4906
4907 * dwarf2read.c (typename_concat): Use (char *) NULL terminated stdarg
4908 list for the obconcat call.
4909 * mdebugread.c (parse_symbol): Likewise.
4910 * stabsread.c (define_symbol, read_member_functions, read_cpp_abbrev):
4911 Likewise.
4912 * symfile.c (obconcat): Replace the s1, s2 and s3 parameters by `...'.
4913 New variable ap. Remove variables len and val.
4914 * symfile.h (obconcat): Likewise for the prototype.
4915
f92adf3c
MS
49162010-05-07 Michael Snyder <msnyder@vmware.com>
4917
4918 * python/python.c (execute_gdb_command): Remove unused variables.
4919 * python/py-block.c (gdbpy_block_for_pc): Remove unused variable.
0407b3f1 4920 * python/py-breakpoint.c (gdbpy_breakpoint_created):
f92adf3c
MS
4921 Remove unused variable.
4922 * python/py-cmd.c (cmdpy_function): Remove unused variable.
4923 (cmdpy_completer): Remove unused variable.
4924 * python/py-frame.c (frapy_find_sal): Remove unused variable.
4925 * python/py-function.c (fnpy_call): Remove unused variable.
4926 * python/py-objfile.c (objfile_to_objfile_object):
4927 Remove unused variable.
4928 * python/py-param.c (parmpy_init): Remove unused variable.
0407b3f1 4929 * python/py-prettyprint.c (apply_varobj_pretty_printer):
f92adf3c
MS
4930 Remove unused variable.
4931 (gdbpy_default_visualizer): Remove unused variable.
4932 * python/py-progspace.c (pspace_to_pspace_object):
4933 Remove unused variable.
0407b3f1 4934 * python/py-symtab.c (symtab_and_line_to_sal_object):
f92adf3c 4935 Remove unused variable.
0407b3f1 4936 * python/py-type.c (typy_template_argument):
f92adf3c
MS
4937 Remove unused variable.
4938 * python/py-value.c (valpy_string): Remove unused variable.
4939 (convert_value_from_python): Remove unused variables.
4940
d160942f
MS
49412010-05-07 Michael Snyder <msnyder@vmware.com>
4942
4943 * valops.c (value_cast_pointers): Restore unused variable 'type1',
4944 and use it to compute variable 't1'.
4945
587542ab
JB
49462010-05-07 Joel Brobecker <brobecker@adacore.com>
4947
4948 * ada-lang.c (assign_aggregate): Remove unused variable.
4949
7322dca9
SW
49502010-05-07 Sami Wagiaalla <swagiaal@redhat.com>
4951
4952 PR C++/7943:
4953 * valops.c (find_overload_match): Handle fsym == NULL case.
4954 Add int no_adl argument.
4955 (find_oload_champ_namespace_loop): Call make_symbol_overload_list_adl
4956 when appropriate.
4957 Add int no_adl argument.
4958 (find_oload_champ_namespace): Add int no_adl argument.
4959 * parse.c (operator_length_standard): Return length for OP_ADL_FUNC
4960 expression.
4961 * expprint.c (op_name_standard): Added string for OP_ADL_FUNC case.
4962 * eval.c (evaluate_subexp_standard): Added OP_ADL_FUNC case.
4963 Evaluate arguments and use them to perform ADL lookup.
4964 Pass no_adl argument to find_overload_match.
4965 Disable adl lookup when evaluating a fully qualified OP_FUNCALL.
4966 * cp-support.h: Added prototype for
4967 make_symbol_overload_list_namespace.
4968 * cp-support.c (make_symbol_overload_list_namespace): New function.
4969 (make_symbol_overload_list_adl_namespace): New function.
4970 (make_symbol_overload_list_adl): New function.
4971 (make_symbol_overload_list_using): Moved code to add function to
4972 overload set to make_symbol_overload_list_namespace.
4973 * c-exp.y: create UNKNOWN_CPP_NAME token.
4974 Add parse rule for ADL functions.
4975 (classify_name): Recognize an UNKNOWN_CPP_NAME.
4976
3f1f6884
JK
49772010-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4978
4979 * fbsd-nat.c (fbsd_make_corefile_notes): Add cast to NULL used as
4980 sentinel.
4981
3caf13b4
JB
49822010-05-07 Joel Brobecker <brobecker@adacore.com>
4983
4984 Implement task switching on solaris targets.
4985 * sol-thread.c (thread_db_find_thread_from_tid)
4986 (sol_get_ada_task_ptid): New functions.
4987 (init_sol_thread_ops): Set sol_thread_ops.to_get_ada_task_ptid.
4988
94b0dee1
PA
49892010-05-07 Pedro Alves <pedro@codesourcery.com>
4990
4991 * remote.c (remote_query_supported_append): Use reconcat.
4992 (remote_query_supported): Install a cleanup. Use reconcat.
4993
1408c251
PA
49942010-05-07 Pedro Alves <pedro@codesourcery.com>
4995
4996 * gdbarch.sh (qsupported): Delete.
4997 * gdbarch.h, gdbarch.c: Regenerate.
4998 * remote.c (remote_query_supported): Remove use of
4999 gdbarch_qsupported.
5000
f8e50cfe
SDJ
50012010-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
5002
5003 * xml-syscall.c (syscall_start_syscalls_info): Remove unused
5004 function.
5005
8ea13695
MS
50062010-05-06 Michael Snyder <msnyder@vmware.com>
5007
c6913b7d
MS
5008 * xml-support.c (xinclude_start_include): Delete unused variable.
5009 (xml_process_xincludes): Delete unused variable.
5010 * xml-syscall.c (syscall_parse_xml): Delete unused variable.
5011 * target-descriptions.c (tdesc_gdb_type): Delete unused variable.
5012 (tdesc_find_arch_register): Delete unused variable.
5013 (tdesc_use_registers): Delete unused variable.
5014 * xml-tdesc.c (tdesc_start_target): Delete unused variable.
5015 * inferior.c (print_inferior): Delete unused variable.
5016 * record.c (record_open_1): Delete unused variable.
5017 (record_restore): Delete unused variable.
5018 (cmd_record_save): Delete unused variable.
5019 * gcore.c (derive_heap_segment): Delete unused variable.
5020 (objfile_find_memory_regions): Use unused variable.
5021 * jit.c (jit_inferior_init): Delete unused variable.
5022 * progspace.c (clone_program_space): Delete unused variable.
5023 (pspace_empty_p): Delete unused variable.
0407b3f1
AS
5024
5025 * frame-unwind.c (frame_unwind_find_by_frame):
1c5465ac
MS
5026 Delete unused variable.
5027 * gnu-v2-abi.c (gnuv2_value_rtti_type): Delete unused variable.
5028 * cp-support.c (mangled_name_to_comp): Delete unused variable.
5029 (method_name_from_physname): Delete unused variable.
5030 (cp_func_name): Delete unused variable.
5031 (cp_validate_operator): Delete unused variable.
0407b3f1 5032 * cp-namespace.c (cp_scan_for_anonymous_namespaces):
1c5465ac 5033 Delete unused variable.
0407b3f1 5034 * trad-frame.c (trad_frame_get_prev_register):
1c5465ac
MS
5035 Delete unused variable.
5036 * tramp-frame.c (tramp_frame_cache): Delete unused variable.
5037
1be757cf
MS
5038 * serial.c (serial_for_fd): Delete unused variable.
5039 * mdebugread.c (psymtab_to_symtab_1): Delete unused variable.
5040 * top.c (execute_command): Delete unused variable.
5041 (init_main): Delete unused variable.
5042 * utils.c (do_fclose_cleanup): Delete unused variable.
5043 (do_all_inferior_continuations): Delete unused variable.
5044 (initialize_utils): Delete unused variable.
5045 (internal_problem_mode): Delete unused global.
5046 * frame.c (get_prev_frame): Delete unused global.
5047 (get_frame_locals_address): Delete unused global.
5048 (get_frame_args_address): Delete unused global.
5049
9216103f
MS
5050 * p-typeprint.c (pascal_type_print_base): Delete unused variable.
5051 (pascal_type_print_varspec_prefix): Delete unused variable.
5052 * f-typeprint.c (f_type_print_base): Delete unused variable.
5053 (f_type_print_varspec_suffix): Delete unused variable.
5054 * m2-typeprint.c (m2_print_type): Delete unused variable.
5055 (m2_long_set): Delete unused variable.
5056 * ada-valprint.c (ada_val_print_1): Delete unused variable.
5057 * d-valprint.c (dynamic_array_type): Delete unused variable.
0407b3f1 5058 * f-valprint.c (f77_get_dynamic_length_of_aggregate):
9216103f
MS
5059 Delete unused variable.
5060 (f77_create_arrayprint_offset_tbl): Delete unused variable.
5061 * m2-valprint.c (m2_val_print): Delete unused variable.
5062
34fa1d9d
MS
5063 * ui-out.c (ui_out_field_int): Delete unused variable.
5064 (ui_out_field_fmt_int): Delete unused variable.
5065 * varobj.c (varobj_list_children): Delete unused variable.
5066 (varobj_set_value): Delete unused variable.
5067 (install_new_value_visualizer): Delete unused variable.
5068 (varobj_set_visualizer): Delete unused variable.
5069 (varobj_update): Delete unused variable.
5070 (varobj_editable_p): Delete unused variable.
5071 (c_value_of_root): Delete unused variable.
5072 (cplus_describe_child): Delete unused variable.
5073
b5385fc0
MS
5074 * ada-lang.c (add_defn_to_vec): Delete unused variable.
5075 (decode_constrained_packed_array_type): Delete unused variable.
5076 (add_defn_to_vec): Delete unused variable.
5077 (symbol_completion_match): Delete unused variable.
5078 (value_tag_from_contents_and_address): Delete unused variable.
5079 (ada_evaluate_subexp): Delete unused variable.
5080 * c-lang.c (classify_type): Delete unused variable.
5081 * f-lang.c (f_printstr): Delete unused variable.
5082 * objc-lang.c (objc_printstr): Delete unused variable.
5083 * ada-tasks.c (get_known_tasks_addr): Delete unused variable.
5084 * jv-lang.c (type_from_class): ifdef unused variable.
5085 (java_class_name_from_physname): Delete unused variable.
5086 * m2-lang.c (m2_printstr): Delete unused variable.
5087
4fc06681
MS
5088 * objfiles.c (objfile_relocate): Delete unused variable.
5089 * maint.c (_initialize_maint_cmds): Delete unused variable.
5090 * demangle.c (_initialize_demangler): Delete unused variable.
5091 * corefile.c (reopen_exec_file): Delete unused variable.
5092 * dwarf2expr.c (dwarf2_read_address): Delete unused variable.
5093 * dwarf2-frame.c (decode_frame_entry): Delete unused variable.
5094
6b4398f7
MS
5095 * osabi.c (_initialize_gdb_osabi): Delete unused variable.
5096 * memattr.c (mem_delete): Delete unused variable.
5097 (invalidate_target_mem_regions): Delete unused variable.
5098 * mem-break.c (default_memory_insert_breakpoint):
5099 Delete unused variable.
5100 * target.c (target_get_osdata): Delete unused variable.
5101 * parse.c (length_of_subexp): Delete unused variable.
5102 (prefixify_subexp): Delete unused variable.
5103 (exp_iterate): Delete unused variable.
5104 * reverse.c (delete_bookmark_command): Delete unused variable.
5105
308d96ed
MS
5106 * macrocmd.c (_initialize_macrocmd): Delete unused variable.
5107 * macroexp.c (gather_arguments): Delete unused variable.
5108 (substitute_args): Delete unused variable.
5109 * completer.c (gdb_completer_loc_break_characters): Unused, delete.
5110 * gdbarch.sh (gdbarch_printable_names): Delete unused variable.
5111 (_initialize_gdbarch): Delete unused variable.
5112 * gdbarch.c, gdbarch.h: Regenerate.
0407b3f1 5113 * arch-utils.c (initialize_current_architecture):
308d96ed
MS
5114 Delete unused variable.
5115 (_initialize_gdbarch_utils): Delete unused variable.
5116 * gdbtypes.c (make_cv_type): Delete unused variable.
5117 (make_type_with_address_space): Delete unused variable.
5118
167e4384
MS
5119 * linespec.c (decode_compound): Delete unused variable.
5120 * dictionary.c (iterator_next_hashed): Delete unused variable.
5121 * infcall.c (call_function_by_hand): Delete unused variable.
5122 * infcmd.c (step_1): Delete unused variable.
5123 (registers_info): Delete unused variable.
5124 (attach_command): Delete unused variable.
5125 * infrun.c (follow_exec): Delete unused variable.
5126 (handle_step_into_function_backwards): Delete unused variable.
5127 (_initialize_infrun): Delete unused variable.
5128 * stack.c (parse_frame_specification_1): Delete unused variable.
5129 (frame_info): Delete unused variable.
5130 (backtrace_command_1): Delete unused variable.
5131 (catch_info): Delete unused variable.
5132
8f78b329
MS
5133 * eval.c (evaluate_subexp_standard): Delete unused variable.
5134 * valops.c (value_cast_pointers): Delete unused variable.
5135 (value_dynamic_cast): Delete unused variable.
5136 (value_array): Delete unused variable.
5137 (find_overload_match): Delete unused variable.
5138 * valarith.c (value_subscript): Delete unused variable.
5139 (value_binop): Delete unused variable.
5140 * valprint.c (_initialize_valprint): Delete unused variable.
5141 * printcmd.c (print_command_1): Delete unused variable.
5142 (address_info): Delete unused variable.
5143 (printf_command): Delete unused variable.
5144
8ea13695
MS
5145 * auxv.c (target_auxv_search): Delete unused variable.
5146 * blockframe.c (get_frame_block): Delete unused variable.
5147 * regcache.c (regcache_cpy): Delete unused variable.
5148 (regcache_cpy_no_passthrough): Delete unused variable.
5149 * charset.c (wchar_iterate): Delete unused variable.
5150 (find_charset_names): Delete unused variable.
5151 (_initialize_charset): Delete unused variable.
0407b3f1 5152 * disasm.c (do_mixed_source_and_assembly):
8ea13695 5153 Delete unused variable.
0407b3f1 5154 * source.c (set_default_source_symtab_and_line):
8ea13695
MS
5155 Delete unused variable.
5156 (set_substitute_path_command): Delete unused variable.
5157 * value.c (preserve_values): Delete unused variable.
5158 (value_from_double): Delete unused variable.
5159
afe38095
MS
51602010-05-05 Michael Snyder <msnyder@vmware.com>
5161
952a6d41
MS
5162 * psymtab.c (lookup_partial_symbol): Delete unused variable.
5163 (find_last_source_symtab_from_partial): Delete unused variable.
5164 * symfile.c (place_section): Delete unused variable.
5165 (default_symfile_offsets): Delete unused variable.
5166 (get_debug_link_info): Delete unused variable.
5167 (find_separate_debug_file_by_debuglink): Delete unused variable.
5168 (add_symbol_file_command): Delete unused variable.
5169 (symfile_find_segment_sections): Delete unused variable.
5170 * symmisc.c (free_symtab): Delete unused variable.
5171 (dump_symtab_1): Delete unused variable.
5172 * symtab.c (lookup_symbil_aux_quick): Delete unused variable.
5173 (find_pc_sect_symtab): Delete unused variable.
5174 (skip_prologue_using_lineinfo): Delete unused variable.
5175 (sources_info): Delete unused variable.
5176 (completion_list_add_name): Delete unused variable.
5177 (expand_line_sal): Delete unused variable.
5178
0407b3f1 5179 * breakpoint.c (validate_commands_for_breakpoint):
afe38095
MS
5180 Delete unused variables.
5181 (insert_catchpoint): Delete unused variable.
5182 (update_watchpoint): Delete unused variable.
5183 (insert_bp_location): Delete unused variable.
5184 (insert_breakpoint_locations): Delete unused variable.
5185 (remove_breakpoint_1): Delete unused variable.
5186 (software_breakpoint_inserted_here_p): Delete unused variable.
5187 (watchpoints_triggered): Delete unused variable.
5188 (bpstat_check_watchpoint): Delete unused variable.
5189 (bpstat_stop_status): Delete unused variable.
5190 (print_one_breakpoint_location): Delete unused variable.
5191 (allocate_bp_location): Delete unused variable.
5192 (create_breakpoint): Delete unused variable.
5193 (watch_command_1): Delete unused variable.
5194 (catch_exception_command_1): Delete unused variable.
5195 (catch_ada_exception_command): Delete unused variable.
5196 (delete_breakpoint): Delete unused variable.
5197 (breakpoint_re_set_one): Delete unused variable.
5198 (do_enable_breakpoint): Delete unused variable.
5199
eda5a4d7
PA
52002010-05-06 Pedro Alves <pedro@codesourcery.com>
5201
5202 * amd64-tdep.c: Include disasm.h.
5203 (amd64_insn_length_fprintf, amd64_insn_length_init_dis)
5204 (amd64_insn_length): Moved to disasm.c and renamed.
5205 (fixup_riprel): Adjust.
5206 * disasm.c (do_ui_file_delete): New.
5207 (gdb_insn_length): New.
5208 (gdb_buffered_insn_length_fprintf)
5209 (gdb_buffered_insn_length_init_dis)
5210 (gdb_buffered_insn_length): New, moved from amd64-tdep.c, and
5211 renamed.
5212 * disasm.h (gdb_insn_length): Declare.
5213 (gdb_buffered_insn_length): Declare.
5214
02357a4a
PA
52152010-05-06 Pedro Alves <pedro@codesourcery.com>
5216
5217 * remote.c (clear_threads_parsing_context): New.
5218 (remote_threads_info): Delete unused null_cleanup. Install a
5219 cleanup to clear the threads_parsing_context in case parsing
5220 throws.
5221
8c5630cb
MS
52222010-05-05 Michael Snyder <msnyder@vmware.com>
5223
5224 * c-exp.y (parse_string_or_char): Delete unused variable.
5225 (c_lex): Delete unused variable.
5226 * cp-name-parser.y (cpname_lex): Delete unused variable.
5227 * ada-exp.y (find_primitive_type): Delete unused variable.
5228 (write_var_or_type): Delete unused variable.
5229 * jv-exp.y (java_parse): Delete unused variable.
5230 (push_expression_name): Delete unused variable.
5231 * p-exp.y (pascal_lex): Delete unused variable.
5232
46c162d4
PA
52332010-05-05 Pedro Alves <pedro@codesourcery.com>
5234
5235 * remote.c (remote_threads_info): Really revert previous previous
5236 change.
5237
0043e6a5
MS
52382010-05-05 Michael Snyder <msnyder@vmware.com>
5239
fa238c03
MS
5240 * elfread.c (elf_symtab_read): Delete unused variable.
5241 (find_separate_debug_file_by_buildid): Delete unused variables.
5242 (elf_symfile_read): Delete unused variable.
5243
5244 * coffread.c (coff_symfile_read): Delete unused variables.
5245
5246 * coff-pe-read.c (add_pe_exported_sym): Delete unused variable.
5247 (read_pe_exported_syms): Delete unused variable.
5248
5249 * stabsread.c (define_symbol): Delete unused variable.
5250
5251 * dwarf2read.c (read_type_comp_unit_head): Delete unused variable.
5252 (process_psymtab_comp_unit): Delete unused variable.
5253 (dwarf2_build_psymtabs_hard): Delete unused variable.
5254 (load_partial_comp_unit): Delete unused variable.
5255 (create_all_comp_units): Delete unused variable.
5256 (scan_partial_symbols): Delete unused variable.
5257 (add_partial_symbol): Delete unused variable.
5258 (add_partial_namespace): Delete unused variable.
5259 (add_partial_enumeration): Delete unused variable.
5260 (load_full_comp_unit): Delete unused variable.
5261 (process_full_comp_unit): Delete unused variable.
5262 (read_file_scope): Delete unused variable.
5263 (read_type_unit_scope): Delete unused variable.
5264 (process_structure_scope): Delete unused variable.
5265 (process_enumeration_scope): Delete unused variable.
5266 (read_tag_ptr_to_member_type): Delete unused variable.
5267 (read_typedef): Delete unused variable.
5268 (read_partial_die): Delete unused variable.
5269 (decode_locdesc): Delete unused variable.
5270 (zeroed_partial_die): Delete unused global variable.
5271
0407b3f1 5272 * tui/tui-interp.c (_initialize_tui_interp):
0043e6a5 5273 Delete unused variable.
0407b3f1 5274 * tui/tui-regs.c tui_display_registers_from):
0043e6a5
MS
5275 Delete unused variable.
5276 (tui_check_register_values): Delete unused variable.
5277 (tui_register_format): Delete unused variable.
5278 * tui/tui-win.c (_initialize_tui_win): Delete unused variable.
0407b3f1 5279 * tui/tui-windata.c (tui_display_data_from_line):
0043e6a5
MS
5280 Delete unused variables.
5281 (tui_vertical_data_scroll): Delete unused variables.
5282
75721c66
MS
52832010-05-05 Michael Snyder <msnyder@vmware.com>
5284
c31a71f4
MS
5285 * remote.c (remote_threads_info): Revert questionable part of
5286 the previous change.
5287
52882010-05-05 Michael Snyder <msnyder@vmware.com>
5289
5290 * mi/mi-out.c (mi_table_begin): Delete unused variable.
5291 * mi/mi-cmd-var.c (print_varobj): Delete unused variable.
5292 (mi_cmd_var_list_children): Delete unused variable.
5293 (varobj_update_one): Delete unused variable.
5294 * mi/mi-cmd-break.c (mi_cmd_break_insert): Delete unused variables.
0407b3f1 5295 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals):
c31a71f4
MS
5296 Delete unused variable.
5297 (mi_cmd_stack_list_variables): Delete unused variable.
5298 (list_args_or_locals): Delete unused variable.
0407b3f1 5299 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file):
c31a71f4
MS
5300 Delete unused variables.
5301 (mi_cmd_file_list_exec_source_files): Delete unused variable.
0407b3f1 5302 * mi/mi-cmd-target.c (mi_cmd_target_file_delete):
c31a71f4
MS
5303 Delete unused variable.
5304 * mi/mi-interp.c (mi_interpreter_exec): Delete unused variable.
5305 (mi_cmd_interpreter_exec): Delete unused variable.
5306 (mi_on_normal_stop): Delete unused variable.
5307 * mi/mi-main.c (run_one_inferior): Delete unused variable.
5308 (print_one_inferior): Delete unused variables.
5309 (mi_execute_command): Delete unused variable.
5310 (mi_cmd_execute): Delete unused variable.
5311 (timestamp): Delete unused variable.
5312
5313 * cli/cli-dump.c (dump_memory_to_file): Delete unused variable.
d36fc00b 5314 (restore_binary_file): Delete unused variable.
c31a71f4
MS
5315 * cli/cli-decode.c (deprecated_cmd_warning): Delete unused variables.
5316 * cli/cli-script.c (define_command): Delete unused variables.
d36fc00b
MS
5317 (recurse_read_control_structure): Delete unused variable.
5318 (script_from_file): Delete unused variable.
c31a71f4 5319 * cli/cli-cmds.c (complete_command): Delete unused variable.
d36fc00b
MS
5320 (disassemble_command): Delete unused variable.
5321
5322 * ax-gdb.c (gen_struct_elt_for_reference): Delete unused variables.
0407b3f1 5323 * tracepoint.c (delete_trace_variable_command):
d36fc00b
MS
5324 Delete unused variables.
5325 (encode_actions_1): Delete unused variables.
5326 (start_tracing): Delete unused variable.
5327 (trace_status_mi): Delete unused variable.
5328 (tfind_1): Delete unused variable.
5329 (trace_find_pc_command): Delete unused variable.
5330 (trace_find_line_command): Delete unused variables.
5331 (trace_find_range_command): Delete unused variables.
5332 (trace_find_outside_command): Delete unused variables.
5333 (parse_tracepoint_definition): Delete unused variables.
5334 (tfile_fetch_registers): Delete unused variable.
5335
9128a503
MS
5336 * dcache.c (dcache_init): Delete unused variable.
5337 (dcache_info): Delete unused variable.
5338
aa369b55 5339 * remote.c (remote_threads_info): Delete unused variable.
9128a503 5340 (process_stop_reply) :Delete unused variable.
aa369b55
MS
5341 (remote_get_trace_status): Delete unused variables.
5342
9e9547e4
MS
5343 * linux-thread-db.c (add_thread_db_info): Delete unused variable.
5344 (thread_from_lwp): Delete unused variable.
5345 (enable_thread_event_reporting): Delete unused variable.
5346 (check_for_thread_db): Delete unused variables.
5347 (thread_db_find_new_threads_2): Delete unused variable.
0407b3f1 5348
9e9547e4
MS
5349 * linux-fork.c (info_checkpoints_command): Delete unused variables.
5350 (checkpoint_command): Delete unused variable.
5351 (linux_fork_context): Delete unused variables.
5352
fa238c03 5353 * linux-nat.c (linux_parent_pid): Delete unused global variable.
75083f7e
MS
5354 (linux_tracefork_child): Delete unused variable.
5355 (linux_child_follow_fork): Delete unused variable.
5356 (linux_nat_detach): Delete unused variable.
5357 (linux_handle_extended_wait): Delete unused variable.
5358 (linux_nat_has_pending_sigint): Delete unused variable.
5359 (linux_nat_find_memory_regions): Delete unused variable.
5360 (linux_nat_make_corefile_notes): Delete unused variables.
5361 (linux_nat_info_proc_cmd): Delete unused variable.
5362 (linux_proc_pending_signals): Delete unused variable.
5363 (linux_nat_stop_lwp): Delete unused variables.
5364 (_initialize_linux_nat): Delete unused variable.
5365
fa238c03 5366 * ser-pipe.c (pipe_ops): Delete unused global variable.
2d148b94 5367
0407b3f1 5368 * linux-record.c (record_linux_system_call):
e0f069a3
MS
5369 Delete unused variables.
5370
789d24f0
MS
5371 * corelow.c (core_xfer_partial): Delete unused variables.
5372
1cd337a5 5373 * solib-svr4.c (find_program_interpreter): Delete unused variable.
0407b3f1 5374 (svr4_solib_create_inferior_hook): Add ifdef around
1cd337a5
MS
5375 conditionally-used variable declarations.
5376
b00e3f56
MS
5377 * solib.c (solib_find): Delete unused variable.
5378 (free_so_symbols): Delete unused variable.
5379 (info_sharedlibrary_command): Delete unused variable.
5380 (reload_shared_libraries_1): Delete unused variable.
5381 (_initialize_solib): Delete unused variable.
5382
90f62196
MS
5383 * i386-tdep.c (i386_supply_xstateregset) Delete unused variable.
5384 (i386_collect_xstateregset): Delete unused variable.
5385 * i387-tdep.c (i387_print_float_info): Delete unused variable.
5386
75721c66
MS
5387 * features/i386/i386-mmx.c (initialize_tdesc_i386_mmx):
5388 Delete unused variable 'type'.
5389
af33db37
JB
53902010-05-05 Joel Brobecker <brobecker@adacore.com>
5391
90f62196 5392 * gdbtypes.h (MAX_OF_TYPE, MIN_OF_TYPE): Delete macros. *
63db82b2
JB
5393 ada-lang.c: Remove comment mentioning these macros.
5394 * m2-exp.y: Delete commented out code.
af33db37 5395
0497f5b0
JB
53962010-05-05 Joel Brobecker <brobecker@adacore.com>
5397
5398 * sparc-tdep.c (sparc_structure_or_union_p): Return non-zero
5399 for array types.
5400 * sparc64-tdep.c (sparc64_structure_or_union_p): Likewise.
5401
6e39997a
PM
54022010-05-04 Pierre Muller <muller@ics.u-strasbg.fr>
5403
5404 ARI fix: Remove ATTRIBUTE_UNUSED throughout.
0407b3f1 5405 * arm-linux-tdep.c (arm_linux_cleanup_svc): Remove
6e39997a
PM
5406 ATTRIBUTE_UNUSED.
5407 (cleanup_kernel_helper_return): Likewise.
5408 * arm-tdep.c (copy_unmodified): Likewise.
5409 (copy_preload): Likewise.
5410 (copy_copro_load_store): Likewise.
5411 (cleanup_branch): Likewise.
5412 (copy_b_bl_blx): Likewise.
5413 (copy_bx_blx_reg): Likewise.
5414 (copy_alu_imm): Likewise.
5415 (copy_alu_reg): Likewise.
5416 (copy_alu_shifted_reg): Likewise.
5417 (cleanup_load): Likewise.
5418 (cleanup_store): Likewise.
5419 (cleanup_block_load_pc): Likewise.
5420 (cleanup_svc): Likewise.
5421 (copy_undef): Likewise.
5422 (copy_unpred): Likewise.
5423 * remote.c (register_remote_support_xml): Likewise.
5424
1412f70b
HZ
54252010-05-05 Hui Zhu <teawater@gmail.com>
5426
5427 * gdbarch.h (gdbarch_has_dos_based_file_system): Update comment.
5428
c4f7c687
MK
54292010-05-04 Mark Kettenis <kettenis@gnu.org>
5430
5431 * remote.c (register_remote_support_xml)
5432 (remote_query_supported_append, remote_query_supported): Add cast
5433 to NULL used as sentinel.
5434 * tracepoint.c (tvariables_info_1): Likewise.
5435 * utils.c (add_internal_problem_command): Likewise.
5436
63b4f126
MGD
54372010-05-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
5438
5439 * dwarf2loc.c (read_pieced_value, write_pieced_value,
5440 dwarf2_evaluate_loc_desc): Handle not being able to access DWARF
5441 registers gracefully.
5442
2f1bdd26
MGD
54432010-05-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
5444
0407b3f1 5445 * exec.c (print_section_info): Display entry point without arch
2f1bdd26
MGD
5446 specific parts.
5447
e1c34c5d
PM
54482010-05-04 Pierre Muller <muller@ics.u-strasbg.fr>
5449
5450 PR exp/11349.
5451 * printcmd.c (x_command): Only dereference once implicitly for
5452 TYPE_CODE_REF.
5453
ae462839
DE
54542010-05-03 Doug Evans <dje@google.com>
5455
5456 * event-loop.c (gdb_timer): Delete unused global.
5457 (create_timer): Update.
5458
1ac77ea1
JK
54592010-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5460
5461 * cp-namespace.c (cp_lookup_symbol_imports): Support ALIAS for the
5462 CURRENT->DECLARATION case.
5463 * cp-support.h (struct using_direct): Provide extended comment.
5464
7c54a108
MK
54652010-05-03 Mark Kettenis <kettenis@gnu.org>
5466
5467 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Renamed from
5468 HPPABSD_SIZEOF_GREGS.
5469 (HPPAOBSD_SIZEOF_FPREGS): New define.
5470 (hppaobsd_supply_gregset): Renamed from hppabsd_supply_gregset.
5471 (hppaobsd_supply_fpregset): New function.
5472 (hppaobsd_gregset): Renamed from hppabsd_gregset.
5473 (hppaobsd_fpregset): New variable.
5474 (hppaobsd_regset_from_core_section): Handle floating-point registers.
5475 (_initialize_hppabsd_tdep): Remove spurious blank line.
5476
278582cb
PM
54772010-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
5478
5479 PR pascal/11349.
5480 * p-valprint.c (pascal_value_print): Always dereference a value with
5481 type code TYPE_CODE_REF.
0407b3f1 5482
f0223081
PA
54832010-05-03 Pedro Alves <pedro@codesourcery.com>
5484
5485 * remote.c (remote_notice_signals): New.
5486 (remote_start_remote): In non-stop mode, update the remote end on
5487 which signals it can silently pass.
5488 (init_remote_ops): Install remote_notice_signals.
5489
c25c4a8b
JK
54902010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5491
5492 * cli/cli-cmds.h (error_no_arg): Remove. Move the comment ...
5493 * command.h (error_no_arg): ... here. Remove NORETURN, change
5494 ATTR_NORETURN to ATTRIBUTE_NORETURN.
5495 * defs.h (NORETURN, ATTR_NORETURN): Remove.
5496 (perror_with_name, verror, error, error_stream, vfatal, fatal)
5497 (internal_verror, internal_error, nomem): Remove NORETURN, change
5498 ATTR_NORETURN to ATTRIBUTE_NORETURN.
5499 * exceptions.c (throw_exception, deprecated_throw_reason, throw_verror)
5500 (throw_vfatal, throw_error): Remove NORETURN.
5501 (throw_it): Remove NORETURN, change ATTR_NORETURN to ATTRIBUTE_NORETURN.
5502 * exceptions.h (throw_exception, throw_verror, throw_vfatal)
5503 (throw_error, deprecated_throw_reason): Remove NORETURN, change
5504 ATTR_NORETURN to ATTRIBUTE_NORETURN.
5505 * linespec.c (cplusplus_error): Remove NORETURN, change ATTR_NORETURN
5506 to ATTRIBUTE_NORETURN for prototype, for the definition only remove
5507 NORETURN.
5508 * remote-mips.c (mips_error): Change NORETURN to ATTRIBUTE_NORETURN.
5509 * remote-sim.c (gdb_os_error): Change ATTR_NORETURN to
5510 ATTRIBUTE_NORETURN.
5511 * target.c (tcomplain): Likewise.
5512 * target.h (noprocess): Remove NORETURN, change ATTR_NORETURN to
5513 ATTRIBUTE_NORETURN.
5514 * utils.c (verror, error, vfatal, fatal, error_stream, internal_verror)
5515 (internal_error, perror_with_name, nomem): Remove NORETURN.
5516 * xml-support.h (gdb_xml_error): Change ATTR_NORETURN to
5517 ATTRIBUTE_NORETURN.
5518
a0b31db1
JK
55192010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5520
5521 * ada-lang.c (lim_warning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
5522 * amd64-tdep.c (amd64_insn_length_fprintf): Likewise.
5523 * cli-out.c (cli_field_fmt): New ATTRIBUTE_PRINTF.
5524 (cli_message, out_field_fmt): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
5525 * complaints.c (find_complaint): New ATTRIBUTE_PRINTF.
5526 (vcomplaint): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
5527 * complaints.h (complaint, internal_complaint): Likewise.
5528 * defs.h: Change ATTR_FORMAT to ATTRIBUTE_PRINTF in the top comment.
5529 (ATTR_FORMAT): Remove.
5530 (query, nquery, yquery, vprintf_filtered, vfprintf_filtered)
5531 (fprintf_filtered, fprintfi_filtered, printf_filtered, printfi_filtered)
5532 (vprintf_unfiltered, vfprintf_unfiltered, fprintf_unfiltered)
5533 (printf_unfiltered, xasprintf, xvasprintf, xstrprintf, xstrvprintf)
5534 (xsnprintf, verror, error, vfatal, fatal, internal_verror)
5535 (internal_error, internal_vwarning, internal_warning, warning)
5536 (vwarning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
5537 * disasm.c (fprintf_disasm): Likewise.
5538 * exceptions.c (throw_it): Likewise.
5539 * exceptions.h (exception_fprintf, throw_verror, throw_vfatal)
5540 (throw_error): Likewise.
5541 * language.h (type_error, range_error): Likewise.
5542 * linespec.c (cplusplus_error): Likewise.
5543 * mi/mi-interp.c (mi_interp_query_hook): Likewise.
5544 * mi/mi-out.c (mi_field_fmt, mi_message): Likewise.
5545 * monitor.c (monitor_debug): Likewise.
5546 * parser-defs.h (parser_fprintf): Likewise.
5547 * serial.h (serial_printf): Likewise.
5548 * tui/tui-hooks.c (tui_query_hook): Likewise.
5549 * ui-out.c (default_field_fmt, default_message, uo_field_fmt)
5550 (uo_message): Likewise.
5551 * ui-out.h (ui_out_field_fmt, ui_out_message): Likewise.
5552 * utils.c (vfprintf_maybe_filtered, internal_vproblem, defaulted_query):
5553 Likewise.
5554 * xml-support.h (gdb_xml_debug, gdb_xml_error): Likewise.
5555
02a45ac0
PA
55562010-05-02 Pedro Alves <pedro@codesourcery.com>
5557
5558 * cli-out.c (cli_table_begin, cli_table_body, cli_table_end)
5559 (cli_table_header, cli_begin, cli_end, cli_field_int)
5560 (cli_field_skip, cli_field_string, cli_field_fmt, cli_spaces)
5561 (cli_text, cli_message, cli_wrap_hint, cli_flush, cli_redirect):
5562 Delete forward declarations.
5563 (cli_ui_out_impl): Move below the callbacks.
5564 (_initialize_cli_out): Delete.
5565
1915ef4f
PA
55662010-05-02 Pedro Alves <pedro@codesourcery.com>
5567
5568 * README: Use consistent `GDB' and `GDBserver' spellings.
5569
0dfb946f
JK
55702010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5571
5572 * cli/cli-dump.h (parse_and_eval_with_error): Remove the declaration.
5573
4d533103
PA
55742010-05-01 Pedro Alves <pedro@codesourcery.com>
5575
5576 * infrun.c (prepare_for_detach): In non-stop, context switch to
5577 the thread that got the event before handling the event.
5578
705b5767
TT
55792010-04-30 Tom Tromey <tromey@redhat.com>
5580
5581 * symtab.c (symbol_set_names): Fix typo.
5582
3c0ee1a4
PM
55832010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
5584
5585 * python/py-param.c (parm_constants): Avoid ARI warning
5586 by adding ARI comment.
5587 (parmpy_init): Likewise.
5588
ea1fae46
PM
55892010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
5590
5591 * windows-tdep.c (windows_get_tlb_type): Remember last GDBARCH
5592 and created type for re-use.
5593
c24d0242
PM
55942010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
5595
5596 * NEWS: Mention gdbserver support for x86_64 Windows 64-bit.
5597
a26d8d11
DE
55982010-04-29 Doug Evans <dje@google.com>
5599
5600 * ser-base.h (reschedule): Delete prototype.
5601 * ser-base.c (reschedule): Make static.
5602
f8624c62
MGD
56032010-04-29 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
5604
5605 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Remove.
5606 (ARM_LINUX_JB_PC_FPA): Add, offset of PC in longjmp buffer for FPA.
0407b3f1 5607 (ARM_LINUX_JB_PC_EABI): Add, offset of PC in longjmp buffer for
f8624c62 5608 EABI.
0407b3f1 5609 (arm_linux_init_abi): Set up JB_PC field dependent on FP model in
f8624c62
MGD
5610 use.
5611
e66408ed
PA
56122010-04-29 Pedro Alves <pedro@codesourcery.com>
5613
5614 PR gdb/11557
5615
5616 * regcache.c (registers_changed): Rename to ...
5617 (registers_changed_ptid): ... this, and only delete register cache
5618 entries matching the ptid filter argument.
5619 (registers_changed): Reimplement on top of registers_changed_ptid.
5620 * regcache.h (registers_changed_ptid): Declare.
5621 * target.c (target_resume): Flush register caches.
5622
d7b32ed3 56232010-04-29 Phil Muldoon <pmuldoon@redhat.com>
0407b3f1
AS
5624 Tom Tromey <tromey@redhat.com>
5625 Thiago Jung Bauermann <bauerman@br.ibm.com>
5626
5627 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-parameter.
5628 (SUBDIR_PYTHON_SRCS): Likewise.
5629 (py-parameter.o): New rule.
5630 * python/py-parameter.c: New file.
5631 * python/python-internal.h (gdbpy_initialize_parameter)
5632 (gdbpy_parameter, gdbpy_parameter_value)
5633 (gdbpy_parse_command_name): Declare.
5634 * python/py-cmd.c (parse_command_name): Rename to
5635 gdbpy_parse_command_name.
5636 (gdbpy_parse_command_name): Accept a starting list parameter and
5637 use over cmdlist.
5638 (cmdpy_init): Use gdbpy_parse_command_name.
5639 * python/python.c (parameter_to_python): Rename to
5640 gdbpy_parameter_to_python. Accept enum var_types and value.
5641 (gdbpy_parameter): Use gdbpy_parameter_value.
5642 (_initialize_python): Call gdbpy_initialize_parameters.
d7b32ed3 5643
ce72ce41
MGD
56442010-04-29 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
5645
5646 * MAINTAINERS: Add myself for write after approval privileges.
5647
6aecb9c2
JB
56482010-04-29 Mihail Zenkov <mihail.zenkov@gmail.com>
5649
5650 D language support.
5651 * Makefile.in (SFILES): Add d-lang.c d-valprint.c.
5652 (COMMON_OBS): Add d-lang.o d-valprint.o.
5653 (HFILES_NO_SRCDIR): Add d-lang.h.
5654 * NEWS: Mention D language support.
5655 * c-lang.c (c_emit_char, exp_descriptor_c): Make public.
5656 * c-lang.h (c_emit_char, exp_descriptor_c): Add declaration.
5657 * d-lang.c: New file.
5658 * d-lang.h: New file.
5659 * d-valprint.c: New file.
5660 * defs.h (enum language): Add language_d.
5661 * dwarf2read.c (set_cu_language): Add DW_LANG_D.
5662 * language.c (binop_result_type, integral_type, character_type)
5663 (string_type, boolean_type, structured_type): Add language_d.
5664 * symfile.c (init_filename_language_table): Add language_d.
5665 * symtab.c: Include d-lang.h.
5666 (symbol_init_language_specific, symbol_find_demangled_name)
5667 (symbol_natural_name, lookup_symbol_in_language)
5668 (symbol_demangled_name, symbol_matches_domain): Add language_d.
5669
6f992fbf
JB
56702010-04-27 Joel Brobecker <brobecker@adacore.com>
5671
5672 * solib-svr4.c (solib_svr4_r_map): Expand function description.
5673
dde59185
JB
56742010-04-27 Joel Brobecker <brobecker@adacore.com>
5675
5676 * symfile.c (init_filename_language_table): Register .dg files
5677 with language_ada.
5678
d09ce91e
JB
56792010-04-27 Joel Brobecker <brobecker@adacore.com>
5680
5681 * gdbtypes.h (struct main_type): Expand comment about target_type
5682 field.
5683
67f1675e
JB
56842010-04-27 Pedro Alves <pedro@codesourcery.com>
5685 Tristan Gingold <gingold@adacore.com>
02aeec7b
JB
5686
5687 * symfile.c (reread_symbols): Also search for file in libraries.
5688 Update comment.
5689
dfd0fe27
JB
56902010-04-27 Joel Brobecker <brobecker@adacore.com>
5691
5692 * configure.tgt: Treat x86-lynxos targets as x86 bareboard targets
5693 in terms of configuration.
5694
0133421a
JK
56952010-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5696
5697 * objfiles.c: Include solist.h.
5698 (free_all_objfiles): New variable so. Check stale solist objfiles.
5699 * symfile.c (symbol_file_clear): Swap the order of free_all_objfiles
5700 and no_shared_libraries.
5701
e78f4312
JB
57022010-04-27 Joel Brobecker <brobecker@adacore.com>
5703
5704 ARI warning fix.
5705 * python/py-auto-load.c (source_section_scripts): Remove trailing
5706 new-line in i18n string.
5707
9214d371
DE
57082010-04-26 Doug Evans <dje@google.com>
5709
5710 * serial.c (serial_write): Handle serial_debug_p akin to serial_read.
5711
3f172e24
TT
57122010-04-26 Tom Tromey <tromey@redhat.com>
5713
5714 * cli/cli-decode.c (complete_on_cmdlist): Make two passes over the
5715 command list.
5716
e790e06e
PM
57172010-04-26 Pierre Muller <muller@ics.u-strasbg.fr>
5718
5719 Removal of config/i386/nm-i386sol2.h native configuration file.
5720 * config/i386/nm-i386sol2.h: Remove file.
5721 * config/i386/i386sol2.mh: Remove NAT_FILE definition.
5722 * config/i386/sol2-64.mh: Idem.
88562582
PM
5723 * config/djgpp/fnchange.lst: Remove reference to that file.
5724 * Makefile.in (HFILES_NO_SRCDIR): Idem.
e790e06e 5725
b7da9e9f
PM
57262010-04-26 Pierre Muller <muller@ics.u-strasbg.fr>
5727
5728 PR breakpoints/11531.
5729 * config/i386/nm-i386sol2.h (CANNOT_STEP_HW_WATCHPOINTS): Remove
5730 macro definition and related comment.
5731 * infrun.c (CANNOT_STEP_HW_WATCHPOINTS): Remove macro.
5732 (resume): Remove code and comment related to this macro.
5733
72f6eb52
JK
57342010-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
5735
5736 * cp-namespace.c (cp_lookup_symbol_in_namespace): Fix alloca size.
5737 Fix whitespace.
5738
ab38a727
PA
57392010-04-24 Pedro Alves <pedro@codesourcery.com>
5740
5741 * defs.h: Adjust comment.
5742 * filesystem.h, filesystem.c: New files.
5743 * Makefile.in (SFILES): Add filesystem.c.
5744 (COMMON_OBS): Add filesystem.o.
5745 * solib.c (solib_find): Handle DOS-based filesystems. Handle
5746 different target and host path flavours.
5747 * arm-symbian-tdep.c (arm_symbian_init_abi): Set
5748 has_dos_based_file_system on the gdbarch.
5749 * arm-wince-tdep.c (arm_wince_init_abi): Ditto.
5750 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Ditto.
5751 * i386-tdep.c (i386_go32_init_abi): Ditto.
5752 * gdbarch.sh (has_dos_based_file_system): New.
5753 * gdbarch.h, gdbarch.c: Regenerate.
5754 * NEWS: Mention improved support for remote targets with DOS-based
5755 filesystems. Mention new `set/show target-file-system-kind'
5756 commands.
5757
35c9c7ba
SS
57582010-04-23 Stan Shebs <stan@codesourcery.com>
5759
5760 * ax.h (struct agent_expr): Merge in agent_reqs fields, add some
5761 comments.
5762 (struct agent_reqs): Remove.
5763 (ax_reg_mask): Declare.
5764 * ax-general.c (new_agent_expr): Add gdbarch argument, set new fields.
5765 (free_agent_expr): Free reg_mask.
5766 (ax_print): Add scope and register mask info.
5767 (ax_reqs): Remove agent_reqs argument, use agent expression
5768 fields, and move part of register mask computation to...
5769 (ax_reg_mask): New function.
5770 * ax-gdb.c (gen_trace_static_fields): Call it.
5771 (gen_traced_pop): Ditto.
5772 (is_nontrivial_conversion): Add dummy gdbarch to new_agent_expr.
5773 (gen_trace_for_var): Pass gdbarch to new_agent_expr.
5774 (gen_trace_for_expr): Ditto, and clear optimized_out flag.
5775 (gen_eval_for_expr): Ditto, and require an rvalue.
5776 (agent_command): Call ax_reqs.
5777 (agent_eval_command): Ditto.
5778 * tracepoint.c (report_agent_reqs_errors): Use agent expression fields.
5779 (validate_action_line): Ditto.
5780 (collect_symbol): Ditto.
5781 (encode_actions_1): Ditto.
5782
492928e4
JK
57832010-04-23 Daniel Jacobowitz <dan@codesourcery.com>
5784 Paul Pluzhnikov <ppluzhnikov@google.com>
5785 Jan Kratochvil <jan.kratochvil@redhat.com>
5786
5787 Fix deadlock on looped list of loaded shared objects.
5788 * solib-svr4.c (LM_PREV): New function.
5789 (IGNORE_FIRST_LINK_MAP_ENTRY): Use it.
5790 (svr4_current_sos): Check for correct l_prev. New variables prev_lm
5791 and next_lm. Clear prev_lm for solib_svr4_r_ldsomap.
5792 * config/djgpp/fnchange.lst: Add translation for solib-corrupted.exp.
5793
66d09542
DE
57942010-04-23 Doug Evans <dje@google.com>
5795
88a1906b
DE
5796 * configure.ac (CONFIG_SRCS): Add py-auto-load.o even if not using
5797 python.
5798 * configure: Regenerate.
5799 * main.c: #include "python/python.h".
5800 (captured_main): Defer loading auto-loaded scripts until after
5801 local_gdbinit has been sourced.
5802 * python/py-auto-load.c (gdbpy_global_auto_load): New global.
5803 (load_auto_scripts_for_objfile): New function.
5804 (auto_load_new_objfile): Call it.
5805 * python/python.h (gdbpy_global_auto_load): Declare.
5806 (load_auto_scripts_for_objfile): Declare.
5807
66d09542
DE
5808 Add support for auto-loading scripts from .debug_gdb_scripts section.
5809 * NEWS: Add entry for .debug_gdb_scripts.
5810 * Makefile.in SUBDIR_PYTHON_OBS): Add py-auto-load.o.
5811 (SUBDIR_PYTHON_SRCS): Add py-auto-load.c.
5812 (py-auto-load.o): New rule.
5813 * cli/cli-cmds.c (find_and_open_script): Make externally visible.
5814 * cli/cli-cmds.h (find_and_open_script): Update prototype.
5815 * python/py-auto-load.c: New file.
5816 * python/python-internal.h: #include <stdio.h>.
5817 (set_python_list, show_python_list): Declare.
5818 (gdbpy_initialize_auto_load): Declare.
5819 (source_python_script_for_objfile): Declare.
5820 * python/python.c: Remove #include of observer.h.
5821 (gdbpy_auto_load): Moved to py-auto-load.c.
5822 (GDBPY_AUTO_FILENAME): Ditto.
5823 (gdbpy_new_objfile): Delete.
5824 (source_python_script_for_objfile): New function.
5825 (set_python_list, show_python_list): Make externally visible.
5826 (_initialize_python): Move "auto-load" command to py-auto-load.c
5827 and observer_attach_new_objfile to py-auto-load.c.
5828
3a48e6ff 58292010-04-23 Jerome Guitton <guitton@adacore.com>
0407b3f1 5830
3a48e6ff
JG
5831 * alpha-tdep.c (INSN_OPCODE, MEM_RA, MEM_RB, MEM_DISP, BR_RA)
5832 (OPR_FUNCTION, OPR_HAS_IMMEDIATE, OPR_RA, OPR_RC, OPR_LIT): New macros.
5833 (lda_opcode, stq_opcode, bne_opcode, subq_opcode, subq_function):
5834 New constants.
5835 (alpha_heuristic_analyze_probing_loop): New function.
5836 (alpha_heuristic_frame_unwind_cache): In the prologue analysis, detect
5837 and handle cases when a stack probe loop is generated.
5838 * alpha-mdebug-tdep.c (alpha_mdebug_frameless): New function.
5839 (alpha_mdebug_max_frame_size_exceeded): New function.
5840 (alpha_mdebug_after_prologue): Use alpha_mdebug_frameless.
5841 (alpha_mdebug_frame_sniffer, alpha_mdebug_frame_base_sniffer):
5842 Return 0 when the maximum debuggable frame size has been exceeded.
5843
e4166a49
JB
58442010-04-23 Joel Brobecker <brobecker@adacore.com>
5845
5846 Fix ARI warning.
5847 * ppc-linux-nat.c (booke_cmp_hw_point): Do not mark inline.
5848
8bd10a10
CM
58492010-04-20 Chris Moller <cmoller@redhat.com>
5850
5851 PR 10179
5852
5853 * symtab.c (rbreak_command): Added code to include a filename
5854 specification in the rbreak argument.
5855 * NEWS: Added a brief description of filename-qualified rbreak.
5856
c0201579
JK
58572010-04-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5858
5859 Fix crashes on dangling display expressions.
5860 * ada-lang.c (ada_operator_check): New function.
5861 (ada_exp_descriptor): Fill-in the field operator_check.
5862 * c-lang.c (exp_descriptor_c): Fill-in the field operator_check.
5863 * jv-lang.c (exp_descriptor_java): Likewise.
5864 * m2-lang.c (exp_descriptor_modula2): Likewise.
5865 * scm-lang.c (exp_descriptor_scm): Likewise.
5866 * parse.c (exp_descriptor_standard): Likewise.
5867 (operator_check_standard): New function.
5868 (exp_iterate, exp_uses_objfile_iter, exp_uses_objfile): New functions.
5869 * parser-defs.h (struct exp_descriptor): New field operator_check.
5870 (operator_check_standard, exp_uses_objfile): New declarations.
5871 * printcmd.c: Remove the inclusion of solib.h.
5872 (display_uses_solib_p): Remove the function.
5873 (clear_dangling_display_expressions): Call lookup_objfile_from_block
5874 and exp_uses_objfile instead of display_uses_solib_p.
5875 * solist.h (struct so_list) <objfile>: New comment.
5876 * symtab.c (lookup_objfile_from_block): Remove the static qualifier.
5877 * symtab.h (lookup_objfile_from_block): New declaration.
5878 (struct general_symbol_info) <obj_section>: Extend the comment.
5879
6ffbb7ab
TJB
58802010-04-22 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
5881 Thiago Jung Bauermann <bauerman@br.ibm.com>
5882
5883 * ppc-linux-nat.c (PTRACE_GET_DEBUGREG): Update comment.
5884 (PPC_PTRACE_GETWDBGINFO, PPC_PTRACE_SETHWDEBUG, PPC_PTRACE_DELHWDEBUG,
5885 ppc_debug_info, PPC_DEBUG_FEATURE_INSN_BP_RANGE,
5886 PPC_DEBUG_FEATURE_INSN_BP_MASK, PPC_DEBUG_FEATURE_DATA_BP_RANGE,
5887 PPC_DEBUG_FEATURE_DATA_BP_MASK, ppc_hw_breakpoint,
5888 PPC_BREAKPOINT_TRIGGER_EXECUTE, PPC_BREAKPOINT_TRIGGER READ,
5889 PPC_BREAKPOINT_TRIGGER_WRITE, PPC_BREAKPOINT_TRIGGER_RW,
5890 PPC_BREAKPOINT_MODE_EXACT PPC_BREAKPOINT_MODE_RANGE_INCLUSIVE,
5891 PPC_BREAKPOINT_MODE_RANGE_EXCLUSIVE, PPC_BREAKPOINT_MODE_MASK,
5892 PPC_BREAKPOINT_CONDITION_NONE, PPC_BREAKPOINT_CONDITION_AND,
5893 PPC_BREAKPOINT_CONDITION_EXACT, PPC_BREAKPOINT_CONDITION_OR,
5894 PPC_BREAKPOINT_CONDITION_AND_OR, PPC_BREAKPOINT_CONDITION_BE_ALL,
5895 PPC_BREAKPOINT_CONDITION_BE_SHIFT, PPC_BREAKPOINT_CONDITION_BE):
5896 Define, in case <ptrace.h> doesn't provide it.
5897 (booke_debug_info): New variable.
5898 (max_slots_number): Ditto.
5899 (hw_break_tuple): New struct.
5900 (thread_points): Ditto.
5901 (ppc_threads): New variable.
5902 (PPC_DEBUG_CURRENT_VERSION): New define.
5903 (have_ptrace_new_debug_booke): New function.
5904 (ppc_linux_check_watch_resources): Renamed to ...
5905 (ppc_linux_can_use_hw_breakpoint): ... this. Handle BookE processors.
5906 (ppc_linux_region_ok_for_hw_watchpoint): Handle BookE processors.
5907 (booke_cmp_hw_point): New function.
5908 (booke_find_thread_points_by_tid): Ditto.
5909 (booke_insert_point): Ditto.
5910 (booke_remove_point): Ditto.
5911 (ppc_linux_insert_hw_breakpoint): Ditto.
5912 (ppc_linux_remove_hw_breakpoint): Ditto.
5913 (get_trigger_type): Ditto.
5914 (ppc_linux_insert_watchpoint): Handle BookE processors.
5915 (ppc_linux_remove_watchpoint): Ditto.
5916 (ppc_linux_new_thread): Ditto.
5917 (ppc_linux_thread_exit): New function..
5918 (ppc_linux_stopped_data_address): Handle BookE processors.
5919 (ppc_linux_watchpoint_addr_within_range): Ditto.
5920 (_initialize_ppc_linux_nat): Initialize to_insert_hw_breakpoint and
5921 to_remove_hw_breakpoint fields of the target operations struct.
5922 Add observe for the thread_exit event.
5923
be0d2954
L
59242010-04-22 H.J. Lu <hongjiu.lu@intel.com>
5925
5926 * i386-linux-nat.c (regmap): Removed.
5927 (fetch_register): Replace regmap with
5928 i386_linux_gregset_reg_offset.
5929 (store_register): Likewise.
5930 (supply_gregset): Likewise.
5931 (fill_gregset): Likewise.
5932
5933 * i386-linux-tdep.c (i386_linux_gregset_reg_offset): Make it
5934 global.
5935
5936 * i386-linux-tdep.h (i386_linux_gregset_reg_offset): New.
5937
f56dcb88
CM
59382010-04-22 Chris Moller <cmoller@redhat.com>
5939
5940 * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
758afad7
L
5941 method of popping recursion-detection stack with a method based on
5942 obstack_object_size(). (Similar to the PR9167 patch below, but for
f56dcb88
CM
5943 the static array obstack rather than the static member obstack.)
5944
6cd6a2ae
L
59452010-04-22 H.J. Lu <hongjiu.lu@intel.com>
5946
5947 * amd64-linux-nat.c (amd64_linux_gregset64_reg_offset): Removed.
5948 (_initialize_amd64_linux_nat): Replace
5949 amd64_linux_gregset64_reg_offset with
5950 amd64_linux_gregset_reg_offset.
5951
5952 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Make it
5953 global.
5954
5955 * amd64-tdep.h (amd64_linux_gregset_reg_offset): New.
5956
621791b8
PM
59572010-04-22 Pierre Muller <muller@ics.u-strasbg.fr>
5958
5959 PR stabs/11479.
5960 * stabsread.c (set_length_in_type_chain): New function.
5961 (read_struct_type): Call set_length_in_type_chain function.
5962 (read_enum_type): Idem.
5963
105c2d85
SS
59642010-04-21 Stan Shebs <stan@codesourcery.com>
5965 Nathan Sidwell <nathan@codesourcery.com>
5966
5967 * tracepoint.c (trace_save): Open in binary mode.
5968
9a22f0d0
PM
59692010-04-22 Pierre Muller <muller@ics.u-strasbg.fr>
5970
5971 * gdbtypes.h (builtin_type): Add builtin_char16 and builtin_char32
5972 fields.
0407b3f1 5973 * gdbtypes.c (gdbtypes_post_init): Set builtin_char16 and
9a22f0d0
PM
5974 builtin_char32 fields.
5975 * printcmd.c (decode_format): Set char size to '\0'
5976 for strings unless explicit size is given.
5977 (print_formatted): Correct calculation of NEXT_ADDRESS
5978 for 16 or 32 bit strings.
5979 (do_examine): Do not force byte size for strings.
5980 Use builtin_char16 and builtin_char32 types to display
0407b3f1 5981 16 or 32 bit-wide strings.
9a22f0d0
PM
5982 (x_command): Set LAST_SIZE to 'b' for string type.
5983
f335d1b3
L
59842010-04-21 H.J. Lu <hongjiu.lu@intel.com>
5985
5986 PR corefiles/11523
5987 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
5988 XCR0 first.
5989
5990 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Return 0 if
5991 there is no .reg-xstate section.
5992 (i386_linux_core_read_description): Check XCR0 first.
5993
a9789a6b
MF
59942010-04-21 Mike Frysinger <vapier@gentoo.org>
5995
5996 * gdb/sparc-tdep.c (sparc32_store_return_value): Add gdb_assert ()
5997 for len <= 8.
5998
0b66f317
CM
59992010-04-21 Chris Moller <cmoller@redhat.com>
6000
6001 PR 9167
6002 * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
32d7376d
L
6003 method of popping recursion-detection stack with a method based on
6004 obstack_object_size().
0b66f317 6005
6e354e5e
PM
60062010-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
6007
6008 PR pascal/11492.
6009 * p-valprint.c (pascal_val_print): Fix default printing of integer
6010 arrays.
6011
57174f31
PM
60122010-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
6013
6014 Fix compilation warning on gcc-4.1.2.
6015 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Initialize
6016 local variable`pc' to zero.
6017
6fbc7cd8
JB
60182010-04-20 Joel Brobecker <brobecker@adacore.com>
6019
6020 Implement thread support with core files on alpha-tru64.
6021 * dec-thread.c (dec_thread_find_new_threads): New function,
6022 extracted from resync_thread_list.
6023 (resync_thread_list): Add OPS parameter. Replace extracted-out
6024 code by call to dec_thread_find_new_threads.
6025 (dec_thread_wait): Update call to resync_thread_list.
6026 (init_dec_thread_ops): Set dec_thread_ops.to_find_new_threads.
6027
438c98a1
JB
60282010-04-20 Joel Brobecker <brobecker@adacore.com>
6029
6030 * ada-lang.c (value_pointer): New function.
6031 (make_array_descriptor): Call value_pointer to convert addresses to
6032 pointers.
6033
2971b56b
JB
60342010-04-20 Joel Brobecker <brobecker@adacore.com>
6035
6036 * rs6000-aix-tdep.c: #include exceptions.h.
6037 (rs6000_convert_from_func_ptr_addr): If an exception is thrown
6038 while reading the memory at ADDR, then ADDR cannot be a function
6039 descriptor.
6040
be942545
JB
60412010-04-20 Joel Brobecker <brobecker@adacore.com>
6042
6043 * ada-typeprint.c (ada_print_typedef): New function.
6044 * ada-lang.h (ada_print_typedef): Add declaration.
6045 * ada-lang.c (ada_language_defn): set la_print_typdef field
6046 to ada_print_typedef.
6047
1ca8fce0
JB
60482010-04-20 Joel Brobecker <brobecker@adacore.com>
6049
6050 * procfs.c (procfs_address_to_host_pointer): Only define when used.
6051
e9ef4f39
JB
60522010-04-20 Joel Brobecker <brobecker@adacore.com>
6053
6054 * procfs.c (iterate_over_mappings_cb_ftype): New typedef.
6055 (iterate_over_mappings): Adjust function profile. Add declaration.
6056 (insert_dbx_link_bpt_in_region, info_mappings_callback):
6057 Adjust accordingly.
6058
e294797a
JB
60592010-04-20 Joel Brobecker <brobecker@adacore.com>
6060
6061 * procfs.c (solib_mappings_callback): Move function up to avoid
6062 a compiler warning.
6063
a223f1e7
JB
60642010-04-20 Joel Brobecker <brobecker@adacore.com>
6065
6066 * procfs.c (find_signalled_thread, find_stop_signal): Move
6067 these functions down to define them only when used.
6068
0c3acc09
JB
60692010-04-20 Joel Brobecker <brobecker@adacore.com>
6070
6071 * valprint.c (common_val_print): Fix the value before extracting
6072 its contents.
6073 * ada-lang.c (ada_to_fixed_value): Make this function extern.
6074 * ada-lang.h (ada_to_fixed_value): New function declaration.
6075 * ada-valprint.c (ada_value_print): Use ada_to_fixed_value
6076 to avoid code duplication and fix a bug in the handling of
6077 fixed types contents.
6078
31ef98ae
TT
60792010-04-20 Tom Tromey <tromey@redhat.com>
6080
6081 * dwarf2read.c (dwarf2_compute_name): Handle DW_AT_linkage_name.
6082 (read_partial_die): Likewise.
6083 (dwarf_attr_name): Likewise.
6084
ec31cde5 60852010-04-20 Chris Moller <cmoller@redhat.com>
0407b3f1 6086
ec31cde5
CM
6087 PR 10867
6088
6089 * cp-valprint.c (global): Adding new static array recursion
6090 detection obstack.
6091 (cp_print_value_fields, cp_print_static_field): Added new static
6092 array recursion detection code.
6093
e0e0e543
MK
60942010-04-20 Mark Kettenis <kettenis@gnu.org>
6095
6096 * i386-linux-tdep.c (i386_linux_regset_sections): Size of the
6097 general-purpose register set should be 68 instead of 144.
6098 (i386_linux_sse_regset_sections): Likewise.
6099 (i386_linux_avx_regset_sections): Likewise.
6100
08922a10
SS
61012010-04-20 Stan Shebs <stan@codesourcery.com>
6102 Nathan Sidwell <nathan@codesourcery.com>
6103
6104 * dwarf2loc.c (struct axs_var_loc): New struct.
6105 (dwarf2_tracepoint_var_loc): New function.
6106 (dwarf2_tracepoint_var_access): New function.
6107 (dwarf2_tracepoint_var_ref): Use dwarf2_tracepoint_var_loc, deal
6108 with DW_OP_piece.
6109 (locexpr_describe_location_piece): New function.
6110 (locexpr_describe_location_1): New function.
6111 (locexpr_describe_location): Call it, update signature.
6112 (loclist_describe_location): Rewrite to loop over locations,
6113 update signature.
6114 * symtab.h (struct symbol_computed_ops): Add address to
6115 describe_location arguments, return void.
6116 * printcmd.c (address_info): Get context PC, pass to computed
6117 location description.
6118 * tracepoint.c (scope_info): Ditto.
6119 * ax-gdb.c (trace_kludge): Export.
6120
2dc7f7b3
TT
61212010-04-20 Tom Tromey <tromey@redhat.com>
6122
6123 * dwarf2-frame.c (decode_frame_entry_1): Handle CIE version 4.
6124 (struct dwarf2_cie) <segment_size>: New field.
6125 * dwarf2read.c (partial_read_comp_unit_head): Accept DWARF 4.
6126 (skip_one_die): Handle DW_FORM_flag_present, DW_FORM_sec_offset,
6127 DW_FORM_exprloc.
6128 (read_attribute_value): Handle DW_FORM_flag_present,
6129 DW_FORM_sec_offset, DW_FORM_exprloc.
6130 (dump_die_shallow): Likewise.
6131 (attr_form_is_section_offset): Handle DW_FORM_sec_offset.
6132 (dwarf2_const_value): Handle DW_FORM_exprloc.
6133 (attr_form_is_block): Likewise.
6134 (struct line_header) <maximum_ops_per_instruction>: New field.
6135 (dwarf_decode_line_header): Set new field.
6136 (dwarf_decode_lines): Handle new field.
6137
ce4b0682
SDJ
61382010-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6139
6140 * f-exp.y: Add new production to recognize the `logical*8' type.
6141 (LOGICAL_S8_KEYWORD): New token.
6142 * f-lang.c (enum f_primitive_types)
6143 <f_primitive_type_logical_s8>: New field.
6144 (f_language_arch_info): Handling `logical*8' type.
6145 (build_fortran_types): Building `logical*8' type.
6146 * f-lang.h (struct builtin_f_type) <builtin_logical_s8>: New field.
6147
ff9f22f1
DE
61482010-04-19 Doug Evans <dje@google.com>
6149
6150 * ser-base.c (generic_readchar): Watch for EOF in read of error_fd.
6151 * ser-pipe.c (pipe_open): Fix file descriptor leaks.
6152 (pipe_close): Ditto.
6153
437125bd
PM
61542010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6155
6156 * configure.tgt (x86_64-*-mingw*): Set BUILD_GDBSERVER to yes.
6157
e8e6c82e
PM
61582010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6159
6160 * windows-tdep.c (windows_get_tlb_type): Change current_seh.handle
6161 type to void function.
6162
4136fdd2
SS
61632010-04-19 Stan Shebs <stan@codesourcery.com>
6164 Vladimir Prus <vladimir@codesourcery.com>
6165
6166 * tracepoint.c (tfind_1): Add missing newline, report exit from
6167 tfind mode as such.
6168 * target.c (update_current_target): Make default
6169 to_trace_find return -1.
6170
0c4b2e63
MF
61712010-04-19 Mike Frysinger <vapier@gentoo.org>
6172
6173 * objc-lang.c (find_methods): Move symname check up.
6174
78076abc
PA
61752010-04-19 Pedro Alves <pedro@codesourcery.com>
6176
6177 * ada-lang.c (print_recreate_exception)
6178 <ex_catch_exception_unhandled>: It's "catch exception unhandled",
6179 not "catch unhandled".
6180
6149aea9
PA
61812010-04-19 Pedro Alves <pedro@codesourcery.com>
6182
6183 PR breakpoints/8554.
6184
6185 Implement `save-breakpoints'.
6186
6187 * breakpoint.c (save_cmdlist): New.
6188 (breakpoint_set_cmdlist, breakpoint_show_cmdlist): Moved up close
6189 to save_cmdlist.
6190 (print_recreate_catch_fork): New.
6191 (catch_fork_breakpoint_ops): Install it.
6192 (print_recreate_catch_vfork): New.
6193 (catch_vfork_breakpoint_ops): Install it.
6194 (print_recreate_catch_syscall): New.
6195 (catch_syscall_breakpoint_ops): Install it.
6196 (print_recreate_catch_exec): New.
6197 (catch_exec_breakpoint_ops): Install it.
6198 (print_recreate_exception_catchpoint): New.
6199 (gnu_v3_exception_catchpoint_ops): Install it.
6200 (save_breakpoints): New, based on tracepoint_save_command, but
6201 handle all breakpoint types.
6202 (save_breakpoints_command): New.
6203 (tracepoint_save_command): Rename to...
6204 (save_tracepoints_command): ... this, and reimplement using
6205 save_breakpoints.
6206 (save_command): New.
6207 (_initialize_breakpoints): Install the "save" command prefix.
6208 Install the "save breakpoints" command. Make "save-tracepoints" a
6209 deprecated alias for "save tracepoints".
6210 * breakpoint.h (struct breakpoint_ops): New field `print_recreate'.
6211 * ada-lang.c (print_recreate_exception): New.
6212 (print_recreate_catch_exception): New.
6213 (catch_exception_breakpoint_ops): Install it.
6214 (print_recreate_catch_exception_unhandled): New.
6215 (catch_exception_unhandled_breakpoint_ops): Install it.
6216 (print_recreate_catch_assert): New.
6217 (catch_assert_breakpoint_ops): Install it.
6218
6219 * NEWS: Mention the new `save breakpoints' command. Mention the
6220 new `save tracepoints' alias and that `save-tracepoints' is now
6221 deprecated.
6222
0a8fce9a
PA
62232010-04-18 Pedro Alves <pedro@codesourcery.com>
6224
6225 PR tui/9217
6226
6227 * tui/tui-out.c: Include cli-out.h.
6228 (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
6229 (tui_begin, tui_end, tui_field_int, tui_field_skip)
6230 (tui_field_string, tui_field_fmt, tui_spaces, tui_text)
6231 (tui_message, tui_wrap_hint, tui_flush): Delete forward
6232 declarations.
6233 (struct ui_out_data): Rename to...
6234 (struct tui_ui_out_data): ... this. Remove `stream' and
6235 `suppress_output' fields, and inherit cli_ui_out_data.
6236 (tui_out_data): New typedef.
6237 (tui_ui_out_impl): Don't initialize fields staticaly.
6238 (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
6239 (tui_begin, tui_end): Delete.
6240 (tui_field_int): Adjust to delegate most work to the base type.
6241 (tui_field_skip): Delete.
6242 (tui_field_string, tui_field_fmt): Adjust comment. Adjust to
6243 delegate most work to the base type.
6244 (tui_spaces): Delete.
6245 (tui_text): Adjust to delegate most work to the base type.
6246 (tui_message): Delete.
6247 (tui_wrap_hint): Delete.
6248 (tui_flush): Delete.
6249 (out_field_fmt): Delete.
6250 (field_separator): Delete.
6251 (tui_out_new): Adjust to initialize the base type.
6252 (_initialize_tui_out): Initialize tui_ui_out_impl.
6253 * cli-out.c (struct ui_out_data): Moved out to cli-out.h, renamed
6254 cli_ui_out_data.
6255 (cli_out_data): Adjust.
6256 (cli_ui_out_impl): Make extern.
6257 (cli_table_header, cli_field_int, cli_field_skip): Use
6258 uo_field_string instead of cli_field_string.
6259 (cli_redirect): Adjust to use cli_out_data.
6260 (cli_out_data_ctor): New.
6261 (cli_out_new): Use it.
6262 * cli-out.h (struct ui_file): Remove forward declaration.
6263 (struct cli_ui_out_data): New, moved from cli-out.c, and renamed.
6264 (cli_ui_out_impl): Declare.
6265 (cli_out_data_ctor): Declare.
6266 * ui-out.c (struct ui_out) <data>: Change type to void pointer.
6267 (uo_field_string): No longer static.
6268 (ui_out_data): Change return type to void pointer.
6269 (ui_out_new): Change `data' parameter type to void pointer.
6270 * ui-out.h (struct ui_out_data): Don't forward declare.
6271 (ui_out_data): Change return type to void pointer.
6272 (ui_out_new): Change `data' parameter type to void pointer.
6273 (uo_field_string): Declare.
6274
172240dd
PA
62752010-04-17 Pedro Alves <pedro@codesourcery.com>
6276
6277 * ui-file.c (tee_file_isatty): Return whether `tee->one' is a tty,
6278 instead of always false.
6279
ed41462c
L
62802010-04-17 H.J. Lu <hongjiu.lu@intel.com>
6281
6282 PR corefiles/11511
6283 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Support
6284 orig_rax.
6285
cc60f2e3
PA
62862010-04-17 Pedro Alves <pedro@codesourcery.com>
6287
6288 * breakpoint.c (watchpoints_triggered): Use
6289 is_hardware_watchpoint.
6290 (watchpoints_triggered): Ditto.
6291 (bpstat_check_location): Use is_watchpoint and
6292 is_hardware_watchpoint.
6293 (bpstat_check_watchpoint): Use is_watchpoint and
6294 is_hardware_watchpoint.
6295 (bpstat_stop_status): Fix comment.
6296 (user_settable_breakpoint): Use is_watchpoint.
6297 (hw_watchpoint_used_count): Use is_hardware_watchpoint.
6298 (disable_watchpoints_before_interactive_call_start): Use
6299 is_watchpoint.
6300 (enable_watchpoints_after_interactive_call_stop): Use
6301 is_watchpoint.
6302 (clear_command): Use is_watchpoint.
6303 (do_enable_breakpoint): Use is_watchpoint.
6304
cb7db0f2
MF
63052010-04-16 Mike Frysinger <vapier@gentoo.org>
6306
6307 * solib-frv.c (enable_break1_done): Delete.
6308 (enable_break2): Do not check enable_break1_done. Move the
6309 enable_break2_done setting and call to
6310 remove_solib_event_breakpoints() to the end. Return without
6311 warning when the contents of _dl_debug_addr are 0.
6312 (enable_break): Do not set enable_break1_done.
6313 (frv_clear_solib): Likewise.
6314
d77b48cf
KB
63152010-04-16 Kevin Buettner <kevinb@redhat.com>
6316
6317 * m32c-tdep.c (m32c_m16c_address_to_pointer): Print warning
6318 instead of an error if no PLT entry is found. Return a
6319 potentially useful result.
6320 (m32c_m16c_pointer_to_address): Add code to search for function
6321 address when no .plt entry is found.
6322
f90824dc
SS
63232010-04-16 Stan Shebs <stan@codesourcery.com>
6324
6325 * tracepoint.c (trace_variable_command): Run a cleanup.
6326
9b79b476
PM
63272010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
6328
6329 * p-lang.c (pascal_one_char): Do not restrict C to 0..255 range.
6330
711e434b
PM
63312010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
6332
6333 Support for Windows OS Thread Information Block.
6334 * NEWS: Document new feature.
6335 * remote.c (PACKET_qGetTIBAddr): New enum element.
6336 (remote_get_tib_address): New function.
6337 (init_remote_ops): Set to_get_tib_address field
6338 to remote_get_tib_address.
6339 (_initialize_remote): Add add_packet_config_cmd
6340 for PACKET_qGetTIBAddr.
6341 * target.c (update_current_target): Set default value for
6342 new to_get_tib_address field.
6343 * target.h (target_ops): New field to_get_tib_address.
6344 (target_get_tib_address): New macro.
6345 * windows-nat.c (thread_info): Add thread_local_base field.
6346 (windows_add_thread): Add tlb argument of type 'void *'.
6347 (fake_create_process): Adapt windows_add_thread call.
6348 (get_windows_debug_event): Idem.
6349 (windows_get_tib_address): New function.
6350 (init_windows_ops): Set to_get_tib_address field
6351 to remote_get_tib_address.
6352 (_initialize_windows_nat): Replace info_w32_cmdlist
6353 initialization by a call to init_w32_command_list.
6354 (info_w32_command, info_w32_cmdlist): Removed from here...
6355 to windows-tdep.c file.
6356 * windows-tdep.h (info_w32_cmdlist): Declare.
0407b3f1 6357 (init_w32_command_list): New external function
711e434b
PM
6358 declaration.
6359 * windows-tdep.c: Add several headers.
6360 (info_w32_cmdlist): to here, made global.
6361 (thread_information_32): New struct.
6362 (thread_information_64): New struct.
6363 (TIB_NAME): New char array.
6364 (MAX_TIB32, MAX_TIB64, FULL_TIB_SIZE): New constants.
6365 (maint_display_all_tib): New static variable.
6366 (windows_get_tlb_type): New function.
6367 (tlb_value_read, tlb_value_write): New functions.
6368 (tlb_value_funcs): New static struct.
6369 (tlb_make_value): New function.
6370 (display_one_tib): New function.
6371 (display_tib): New function.
6372 (show_maint_show_all_tib):New function.
6373 (info_w32_command): Moved from windows-nat.c.
6374 (init_w32_command_list): New function.
6375 (_initialize_windows_tdep): New function.
6376 New "maint set/show show-all-tib" command
6377 New "$_tlb" internal variable.
6378
cae3f17b
JB
63792010-04-16 Joel Brobecker <brobecker@adacore.com>
6380
6381 * tui/tui-regs.c (tui_display_register): Add comment about
6382 a couple of casts.
6383 * tui/tui-stack.c (tui_show_locator_content): Ditto.
6384
2ce6d6bf
SS
63852010-04-15 Stan Shebs <stan@codesourcery.com>
6386
6387 * frame.c: Include tracepoint.h.
6388 (get_current_frame): Allow a trace frame to be an alternate source
6389 of stack frame data.
6390 * tracepoint.c (tfind_1): Don't try to get current stack frame if
6391 it won't succeed.
6392
7e559477
PA
63932010-04-15 Pedro Alves <pedro@codesourcery.com>
6394
6395 * ppc-linux-tdep.c (bsd_uthread_solib_loaded): Always pass 0 for
6396 flags.
6397 * solib-spu.c (spu_solib_loaded): Always pass 0 for flags.
6398
3f7b2faa
DE
63992010-04-15 Doug Evans <dje@google.com>
6400
fa33c3cd
DE
6401 * NEWS: Add entry for python program space support.
6402 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-progspace.o.
6403 (SUBDIR_PYTHON_SRCS): Add py-progspace.c.
6404 (py-progspace.o): New rule.
6405 * python/py-prettyprint.c (find_pretty_printer_from_objfiles): New
6406 function.
6407 (find_pretty_printer_from_progspace): New function.
6408 (find_pretty_printer_from_gdb): New function.
6409 (find_pretty_printer): Rewrite.
6410 * python/py-progspace.c: New file.
6411 * python/python-internal.h (program_space): Add forward decl.
6412 (pspace_to_pspace_object, pspy_get_printers): Declare.
6413 (gdbpy_initialize_pspace): Declare.
6414 * python/python.c: #include "progspace.h".
6415 (gdbpy_get_current_progspace, gdbpy_progspaces): New functions.
6416 (_initialize_python): Call gdbpy_initialize_pspace.
6417 (GdbMethods): Add current_progspace, progspaces.
6418
3f7b2faa
DE
6419 Add -s option to source command.
6420 * NEWS: Document new option.
6421 * cli/cli-cmds.c (find_and_open_script): Add function comment.
6422 Delete from_tty and cleanupp args. Split filep arg into file and
6423 full_pathp. New arg search_path.
6424 (source_script_from_stream): New function.
6425 (source_script_with_search): New function.
6426 (source_script): Rewrite.
6427 (source_command): Parse "-s" option.
6428 (init_cli_cmds): Add "-s" docs to source command help, and reformat.
6429 * python/python.c (source_python_script): Make file arg a const char *.
6430 Don't call fclose, leave for caller.
6431 * python/python.h (source_python_script): Update.
6432
a86988f2
PA
64332010-04-14 Daniel Jacobowitz <dan@codesourcery.com>
6434 Pedro Alves <pedro@codesourcery.com>
6435
6436 Avoid rereading shared libraries that haven't changed.
6437
6438 * solib.c (free_so_symbols): New function, from ...
6439 (free_so): ... here. Call it.
6440 (solib_read_symbols): Don't warn here if symbols have already been
6441 loaded.
6442 (solib_add): Warn here instead, if a pattern was specified.
6443 (reload_shared_libraries_1): New.
6444 (reload_shared_libraries): Rewrite to not fetch the library list.
6445
e6d9b9c2
DE
64462010-04-14 Doug Evans <dje@google.com>
6447
589390d6 6448 * source.c (openp): Strip DOS drive letter if present before
e6d9b9c2
DE
6449 concatenating string to search path.
6450
516ba659
PA
64512010-04-14 Pedro Alves <pedro@codesourcery.com>
6452
6453 * objfiles.h (gdb_bfd_close_or_warn): Declare.
6454 * objfiles.c (gdb_bfd_close_or_warn): New.
6455 * corelow.c: Include objfiles.h
6456 (core_close): Use gdb_bfd_close_or_warn.
6457 * elfread.c (build_id_verify): Ditto.
6458 * exec.c (exec_close, exec_close_1): Ditto.
6459
048d532d
PA
64602010-04-14 Daniel Jacobowitz <dan@codesourcery.com>
6461 Pedro Alves <pedro@codesourcery.com>
6462
6463 Group errors for many missing shared libraries.
6464
6465 * solist.h (struct so_list): Remove from_tty.
6466 * solib.c (solib_bfd_open): Return NULL if we failed to open a BFD.
6467 (solib_map_sections): Take so_list argument. Return 0 if we
6468 failed to open a BFD. Add target sections here.
6469 (symbol_add_stub): Delete.
6470 (solib_read_symbols): Inline symbol_add_stub. Use current flags,
6471 not from_tty copied from the so_list. Don't warn a second time
6472 for a missing library.
6473 (update_solib_list): Don't save from_tty. Use TRY_CATCH. Do not
6474 add to the section table here. Print out a single warning for all
6475 missing libraries.
6476 * bsd-uthread.c (bsd_uthread_solib_loaded): Always pass 0 for
6477 flags.
6478
044c0f87
PM
64792010-04-14 Phil Muldoon <pmuldoon@redhat.com>
6480
6481 * python/py-block.c (gdbpy_block_for_pc): Use i8n to encompass
6482 error/warning messages. Capitalize and use complete sentences.
6483 (blpy_block_syms_iternext): Likewise.
6484 * python/py-cmd.c (parse_command_name, cmdpy_init): Likewise.
6485 * python/py-frame.c (FRAPY_REQUIRE_VALID, frapy_block)
6486 (frame_info_to_frame_object, frapy_read_var)
6487 (gdbpy_frame_stop_reason_string): Likewise.
6488 * python/py-lazy-string.c (stpy_convert_to_value)
6489 (gdbpy_create_lazy_string_object): Likewise.
6490 * python/py-objfile.c (objfpy_set_printers): Likewise.
6491 * python/py-prettyprint.c (gdbpy_default_visualizer): Likewise.
6492 * python/python.c (parameter_to_python): Likewise.
6493 * python/py-type.c (typy_range, typy_target): Likewise.
6494 * python/py-value.c (valpy_cast, valpy_length, valpy_getitem)
6495 (valpy_richcompare, valpy_int, valpy_long, valpy_float): Likewise.
6496
6497
79f283fe
PM
64982010-04-14 Phil Muldoon <pmuldoon@redhat.com>
6499
6500 PR python/11381
6501
6502 * python/py-prettyprint.c (pretty_print_one_value): Test for
6503 Py_None.
6504 (print_string_repr): Test for Py_None. Set flags accordingly.
6505 Return value depending on return type.
6506 (print_children): Take a value indicating whether data was printed
6507 before this function was called. Alter output accordingly.
6508 (apply_val_pretty_printer): Capture return value from
6509 print_string_repr and pass to print_children.
6510
4ac5d44e
MK
65112010-04-13 Mark Kettenis <kettenis@gnu.org>
6512
e1caee70 6513 PR corefiles/11481
4ac5d44e
MK
6514 * i386-linux-tdep.c (i386_linux_regset_sections): Remove extended
6515 register note sections.
6516 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
6517 New variables.
6518 (i386_linux_init_abi): Install list of supported register note
6519 sections that matches the target description.
6520
ad91cd99
PA
65212010-04-13 Pedro Alves <pedro@codesourcery.com>
6522
6523 * remote.c (remote_get_noisy_reply): Don't error out on empty
6524 replies.
6525 (remote_start_remote): Update and merge tracepoints and trace
6526 state variables as long as the target supports tracepoints.
6527 (remote_trace_init): Fix prototype.
6528 (remote_download_trace_state_variable): Validate reply.
6529 (remote_trace_set_readonly_regions): Fix prototype.
6530 (remote_trace_start): Fix prototype. Check for empty reply.
6531 (remote_get_trace_status): Small cleanup.
6532 (remote_trace_stop): Fix prototype. Check for empty reply.
6533 (remote_trace_find): Check for empty reply.
6534 (remote_save_trace_data): Validate reply.
6535 (remote_set_disconnected_tracing): Check for empty reply, and
6536 validate reply.
6537 (remote_set_circular_trace_buffer): Ditto.
6538
ae3bccd4
PM
65392010-04-13 Pierre Muller <muller@ics.u-strasbg.fr>
6540
6541 Suppress unused value warning during compilation.
6542 * tui/tui-regs.c (tui_display_register): Cast wstandout and wstandend
6543 calls to void.
6544 * tui/tui-stack.c (tui_show_locator_content): Likewise.
6545
523136f2
SS
65462010-04-12 Stan Shebs <stan@codesourcery.com>
6547
6548 * tracepoint.c (tfile_xfer_partial): Check read result.
6549
0d18d720
MF
65502010-04-12 Mike Frysinger <vapier@gentoo.org>
6551
6552 * remote-m32r-sdi.c (m32r_files_info): Add const to local "file" var.
6553 * remote-sim.c (gdbsim_files_info): Likewise.
6554
3b273a55
RE
65552010-04-12 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
6556
6557 * arm-tdep.h (gdb_regnum): Add ARM_FPSCR_REGNUM
6558 * arm-linux-nat.c (arm_linux_vfp_register_count): New
6559 variable.
6560 (fetch_vfp_registers): New function to fetch VFP registers.
6561 (store_vfp_registers): New function to store VFP registers.
6562 (arm_linux_fetch_inferior_registers): Add support for VFP
6563 registers.
6564 (arm_linux_store_inferior_registers): Likewise.
6565 (arm_linux_read_description): Likewise.
6566 (_initialize_arm_linux_nat): Delay initialising iWMMX tdesc
6567 until we need it.
6568
778c7095
L
65692010-04-11 H.J. Lu <hongjiu.lu@intel.com>
6570
6571 * amd64-tdep.c (amd64_supply_xstateregset): Remove the unused
6572 tdep.
6573 (amd64_collect_xstateregset): Likewise.
6574
2114d44c
SS
65752010-04-09 Stan Shebs <stan@codesourcery.com>
6576
87290684
SS
6577 * tracepoint.c (trace_status_mi): Report frames created.
6578
2114d44c
SS
6579 * tracepoint.c (trace_dump_command): Include default-collect
6580 expressions.
6581
86da934b
UW
65822010-04-09 Ulrich Weigand <uweigand@de.ibm.com>
6583
6584 * symtab.c (find_function_start_sal): Never return SAL pointing
6585 before function start address, even if line info is missing.
6586
2d6e647a 65872010-04-09 Pedro Alves <pedro@codesourcery.com>
d337e9f0
PA
6588
6589 * NEWS: Mention tracepoints support.
6590
a97153c7
PA
65912010-04-09 Pedro Alves <pedro@codesourcery.com>
6592
6593 * tracepoint.c (trace_status_mi): Report disconnected tracing and
6594 circular trace buffer statuses.
6595
7a66d603
JK
65962010-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6597
6598 * config/djgpp/fnchange.lst: Fix typo in translations for
6599 symbol-without-target_section.exp and symbol-without-target_section.c.
6600
2566ad2d
PA
66012010-04-09 Pedro Alves <pedro@codesourcery.com>
6602
6603 * breakpoint.c (condition_command): Pass condition expression to
6604 set_breakpoint_condition stripped from breakpoint number.
6605
adc36818
PM
66062010-04-09 Phil Muldoon <pmuldoon@redhat.com>
6607 Thiago Jung Bauermann <bauerman@br.ibm.com>
2566ad2d 6608 Tom Tromey <tromey@redhat.com>
adc36818
PM
6609
6610 * breakpoint.c (condition_command): Simplify. Move condition
6611 setting code to ...
6612 (set_breakpoint_condition): ... here. New function.
6613 * breakpoint.h (set_breakpoint_condition): Declare.
6614 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpoint.
6615 (SUBDIR_PYTHON_SRCS): Likewise.
6616 (py-breakpoint.o): New rule.
6617 * python/py-breakpoint.c: New file.
6618 * python/python-internal.h (gdbpy_breakpoints)
6619 (gdbpy_initialize_breakpoints): Declare.
6620 (GDB_PY_SET_HANDLE_EXCEPTION) Define.
6621
219f2f23
PA
66222010-04-09 Pedro Alves <pedro@codesourcery.com>
6623
6624 * regformats/regdat.sh: Include server.h. Don't include
6625 regcache.h.
6626
33da3f1c
SS
66272010-04-08 Stan Shebs <stan@codesourcery.com>
6628 Pedro Alves <pedro@codesourcery.com>
6629
6630 * tracepoint.h (struct trace_status): New fields disconnected_tracing
6631 and circular_buffer.
6632 (disconnect_tracing): Rename from disconnect_or_stop_tracing.
6633 * tracepoint.c (trace_status_command): Display target's status for
6634 disconnected tracing and circular buffer.
6635 (disconnect_tracing): Rename from disconnect_or_stop_tracing, add
6636 query for non-disconnected-tracing case, remove the stop_tracing
6637 call.
6638 (tfile_open): Clear disconnected and circular buffer status.
6639 (trace_save): Save disconnected and circular buffer status.
6640 (parse_trace_status): Parse disconnected and circular buffer status,
6641 also recognize disconnected as a stop reason.
6642 * remote.c (remote_set_disconnected_tracing): Only set
6643 QTDisconnected if the remote end supports disconnected tracing.
6644 Warn otherwise, if trying to enable disconnected tracing.
6645 * infcmd.c (detach_command): Update disconnect_tracing call.
6646 * cli/cli-cmds.c (quit_command): Ditto.
6647
4e4d8374
L
66482010-04-08 H.J. Lu <hongjiu.lu@intel.com>
6649
6650 * i387-tdep.c (i387_collect_xsave): Replace abort with
6651 internal_error.
6652
ad443146
SS
66532010-04-08 Stan Shebs <stan@codesourcery.com>
6654
6655 * breakpoint.c (default_collect_info): New function.
6656 (breakpoints_info): Call it.
6657 (maintenance_info_breakpoints): Ditto.
6658 (tracepoints_info): Ditto.
6659
40936b0d
L
66602010-04-08 H.J. Lu <hongjiu.lu@intel.com>
6661
6662 * i387-tdep.c (i387_collect_xsave): Re-indent.
6663
3a13a53b
L
66642010-04-08 H.J. Lu <hongjiu.lu@intel.com>
6665
6666 * i386-linux-nat.c (have_ptrace_getfpxregs): Initialize to -1
6667 if HAVE_PTRACE_GETFPXREGS is defined.
6668 (i386_linux_read_description): Set have_ptrace_getfpxregs and
6669 have_ptrace_getregset to 0 if ptrace PTRACE_GETFPXREGS failed.
6670
6671 * i386-linux-tdep.c: Include "features/i386/i386-mmx-linux.c"
6672 (i386_linux_core_read_description): Return tdesc_i386_mmx_linux
6673 if .reg-xfp section doesn't exist.
6674 (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_mmx_linux.
6675
6676 * i386-linux-tdep.h (tdesc_i386_mmx_linux): New.
6677
6678 * i386-tdep.c: Include "features/i386/i386-mmx.c".
6679 (i386_go32_init_abi): Set tdesc to tdesc_i386_mmx.
6680 (i386_validate_tdesc_p): Make org.gnu.gdb.i386.sse optional. Set
6681 xcr0 to I386_XSTATE_X87_MASK if SSE isn't available.
6682 (i386_gdbarch_init): Update comments.
6683 (_initialize_i386_tdep): Call initialize_tdesc_i386_mmx.
6684
6685 * common/i386-xstate.h (I386_XSTATE_X87_MASK): New.
6686
6687 * config/djgpp/fnchange.lst: Add i386 MMX XML files.
6688
6689 * features/Makefile (i386/i386-mmx-expedite): New.
6690 (i386/i386-mmx-linux-expedite): Likewise.
6691 ($(outdir)/i386/i386-mmx.dat): Likewise.
6692 ($(outdir)/i386/i386-mmx-linux.dat): Likewise.
6693
6694 * features/i386/i386-mmx-linux.c: New.
6695 * features/i386/i386-mmx-linux.xml: Likewise.
6696 * features/i386/i386-mmx.c: Likewise.
6697 * features/i386/i386-mmx.xml: Likewise.
6698 * regformats/i386/i386-mmx-linux.dat: Likewise.
6699 * regformats/i386/i386-mmx.dat: Likewise.
6700
6701 * features/Makefile (WHICH): Add i386/i386-mmx and
6702 i386/i386-mmx-linux.
6703
08001717
DE
67042010-04-08 Doug Evans <dje@google.com>
6705
6706 * source.c (openp): Skip $cdir in PATH.
6707
fff5cc64
PM
67082010-04-08 Phil Muldoon <pmuldoon@redhat.com>
6709
6710 PR python/11417
fff5cc64 6711 * python/py-lazy-string.c (stpy_convert_to_value): Check for
3a13a53b
L
6712 a NULL address.
6713 (gdbpy_create_lazy_string_object): Allow strings with a NULL
6714 address and a zero length.
fff5cc64 6715
f8c4f480
HZ
67162010-04-08 Hui Zhu <teawater@gmail.com>
6717
6718 * i386-tdep.c (i386_process_record): Add support for insn
6719 rdtsc.
6720
eb5cda86
DE
67212010-04-07 Doug Evans <dje@google.com>
6722
6723 * python/python.c (source_python_script): Use ensure_python_env
6724 to prepare environment for script.
6725
a055a187
L
67262010-04-07 H.J. Lu <hongjiu.lu@intel.com>
6727
6728 * amd64-linux-nat.c: Include "regset.h", "elf/common.h",
6729 <sys/uio.h> and "i386-xstate.h".
6730 (PTRACE_GETREGSET): New.
6731 (PTRACE_SETREGSET): Likewise.
6732 (have_ptrace_getregset): Likewise.
6733 (amd64_linux_gregset64_reg_offset): Include 16 upper YMM
6734 registers.
6735 (amd64_linux_gregset32_reg_offset): Include 8 upper YMM
6736 registers.
6737 (amd64_linux_fetch_inferior_registers): Support PTRACE_GETFPREGS.
6738 (amd64_linux_store_inferior_registers): Likewise.
6739 (amd64_linux_read_description): Check and enable AVX target
6740 descriptions.
6741
6742 * amd64-linux-tdep.c: Include "regset.h", "i386-linux-tdep.h"
6743 and "features/i386/amd64-avx-linux.c".
6744 (amd64_linux_regset_sections): New.
6745 (amd64_linux_core_read_description): Check and enable AVX
6746 target description.
6747 (amd64_linux_init_abi): Set xsave_xcr0_offset. Call
6748 set_gdbarch_core_regset_sections.
6749 (_initialize_amd64_linux_tdep): Call
6750 initialize_tdesc_amd64_avx_linux.
6751
6752 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Replace
6753 AMD64_MXCSR_REGNUM with AMD64_YMM15H_REGNUM.
6754 (tdesc_amd64_avx_linux): New.
6755 (amd64_linux_update_xstateregset): Likewise.
6756
6757 * amd64-tdep.c: Include "features/i386/amd64-avx.c".
6758 (amd64_ymm_names): New.
6759 (amd64_ymmh_names): Likewise.
6760 (amd64_register_name): Likewise.
6761 (amd64_supply_xstateregset): Likewise.
6762 (amd64_collect_xstateregset): Likewise.
6763 (amd64_supply_xsave): Likewise.
6764 (amd64_collect_xsave): Likewise.
6765 (AMD64_NUM_REGS): Removed.
6766 (amd64_dwarf_reg_to_regnum): Return %ymmN register number for
6767 %xmmN if AVX is available.
6768 (amd64_pseudo_register_name): Support pseudo YMM registers.
6769 (amd64_regset_from_core_section): Support .reg-xstate section.
6770 (amd64_init_abi): Set ymmh_register_names, num_ymm_regs
6771 and ymm0h_regnum. Call set_gdbarch_register_name.
6772 (amd64_init_abi): Call initialize_tdesc_amd64_avx.
6773
6774 * amd64-tdep.h (amd64_regnum): Add AMD64_YMM0H_REGNUM and
6775 AMD64_YMM15H_REGNUM.
6776 (AMD64_NUM_REGS): New.
6777 (amd64_supply_xsave): Likewise.
6778 (amd64_collect_xsave): Likewise.
6779 (amd64_register_name): Removed.
6780 (amd64_register_type): Likewise.
6781
31aeac78
L
67822010-04-07 H.J. Lu <hongjiu.lu@intel.com>
6783
6784 * i387-tdep.c: Include "i386-xstate.h".
6785 (XSAVE_XSTATE_BV_ADDR): New.
6786 (xsave_avxh_offset): Likewise.
6787 (XSAVE_AVXH_ADDR): Likewise.
6788 (i387_supply_xsave): Likewise.
6789 (i387_collect_xsave): Likewise.
6790
6791 * i387-tdep.h (I387_NUM_YMM_REGS): New.
6792 (I387_YMM0H_REGNUM): Likewise.
6793 (I387_YMMENDH_REGNUM): Likewise.
6794 (i387_supply_xsave): Likewise.
6795 (i387_collect_xsave): Likewise.
6796
c131fcee
L
67972010-04-07 H.J. Lu <hongjiu.lu@intel.com>
6798
6799 * i386-linux-nat.c: Include "regset.h", "elf/common.h",
6800 <sys/uio.h> and "i386-xstate.h".
6801 (PTRACE_GETREGSET): New.
6802 (PTRACE_SETREGSET): Likewise.
6803 (fetch_xstateregs): Likewise.
6804 (store_xstateregs): Likewise.
6805 (GETXSTATEREGS_SUPPLIES): Likewise.
6806 (regmap): Include 8 upper YMM registers.
6807 (i386_linux_fetch_inferior_registers): Support XSAVE extended
6808 state.
6809 (i386_linux_store_inferior_registers): Likewise.
6810 (i386_linux_read_description): Check and enable AVX target
6811 descriptions.
6812
6813 * i386-linux-tdep.c: Include "regset.h", "i387-tdep.h",
6814 "i386-xstate.h" and "features/i386/i386-avx-linux.c".
6815 (i386_linux_regset_sections): Add ".reg-xstate".
6816 (i386_linux_gregset_reg_offset): Include 8 upper YMM registers.
6817 (i386_linux_core_read_xcr0): New.
6818 (i386_linux_core_read_description): Check and enable AVX target
6819 description.
6820 (i386_linux_init_abi): Set xsave_xcr0_offset.
6821 (_initialize_i386_linux_tdep): Call
6822 initialize_tdesc_i386_avx_linux.
6823
6824 * i386-linux-tdep.h (I386_LINUX_ORIG_EAX_REGNUM): Replace
6825 I386_SSE_NUM_REGS with I386_AVX_NUM_REGS.
6826 (i386_linux_core_read_xcr0): New.
6827 (tdesc_i386_avx_linux): Likewise.
6828 (I386_LINUX_XSAVE_XCR0_OFFSET): Likewise.
6829
6830 * i386-tdep.c: Include "i386-xstate.h" and
6831 "features/i386/i386-avx.c".
6832 (i386_ymm_names): New.
6833 (i386_ymmh_names): Likewise.
6834 (i386_ymmh_regnum_p): Likewise.
6835 (i386_ymm_regnum_p): Likewise.
6836 (i386_xmm_regnum_p): Likewise.
6837 (i386_register_name): Likewise.
6838 (i386_ymm_type): Likewise.
6839 (i386_supply_xstateregset): Likewise.
6840 (i386_collect_xstateregset): Likewise.
6841 (i386_sse_regnum_p): Removed.
6842 (i386_pseudo_register_name): Support pseudo YMM registers.
6843 (i386_pseudo_register_type): Likewise.
6844 (i386_pseudo_register_read): Likewise.
6845 (i386_pseudo_register_write): Likewise.
6846 (i386_dbx_reg_to_regnum): Return %ymmN register number for
6847 %xmmN if AVX is available.
6848 (i386_regset_from_core_section): Support .reg-xstate section.
6849 (i386_register_reggroup_p): Supper upper YMM and YMM registers.
6850 (i386_process_record): Replace i386_sse_regnum_p with
6851 i386_xmm_regnum_p.
6852 (i386_validate_tdesc_p): Support org.gnu.gdb.i386.avx feature.
6853 Set ymmh_register_names, num_ymm_regs, ymm0h_regnum and xcr0.
8d95cc3b 6854 (i386_gdbarch_init): Set xstateregset. Set xsave_xcr0_offset.
c131fcee
L
6855 Call set_gdbarch_register_name. Replace I386_SSE_NUM_REGS with
6856 I386_AVX_NUM_REGS. Set ymmh_register_names, ymm0h_regnum and
6857 num_ymm_regs. Add num_ymm_regs to set_gdbarch_num_pseudo_regs.
6858 Set ymm0_regnum.
6859 (_initialize_i386_tdep): Call initialize_tdesc_i386_avx.
6860
6861 * i386-tdep.h (gdbarch_tdep): Add xstateregset, ymm0_regnum,
6862 xcr0, xsave_xcr0_offset, ymm0h_regnum, ymmh_register_names and
6863 i386_ymm_type.
6864 (i386_regnum): Add I386_YMM0H_REGNUM, and I386_YMM7H_REGNUM.
6865 (I386_AVX_NUM_REGS): New.
6866 (i386_xmm_regnum_p): Likewise.
6867 (i386_ymm_regnum_p): Likewise.
6868 (i386_ymmh_regnum_p): Likewise.
6869
6870 * common/i386-xstate.h: New.
6871
98adf0f3
L
68722010-04-07 H.J. Lu <hongjiu.lu@intel.com>
6873
6874 * config/djgpp/fnchange.lst: Add x86 AVX XML files.
6875
6876 * features/Makefile (WHICH): Add i386/i386-avx,
6877 i386/i386-avx-linux, i386/x86-64-avx and i386/x86-64-avx-linux.
6878 (i386/i386-avx-expedite): New.
6879 (i386/i386-avx-linux-expedite): Likewise.
6880 (i386/x86-64-avx-expedite):Likewise.
6881 (i386/x86-64-avx-linux-expedite): Likewise.
6882 ($(outdir)/i386/i386-avx.dat): New dependency.
6883 ($(outdir)/i386/i386-avx-linux.dat): Likewise.
6884 ($(outdir)/i386/x86-avx-64.dat): Likewise.
6885 ($(outdir)/i386/x86-64-avx-linux.dat): Likewise.
6886
6887 * features/i386/32bit-avx.xml: New.
6888 * features/i386/64bit-avx.xml: Likewise.
6889 * features/i386/i386-avx-linux.c: Likewise.
6890 * features/i386/i386-avx-linux.xml: Likewise.
6891 * features/i386/i386-avx.c: Likewise.
6892 * features/i386/i386-avx.xml: Likewise.
6893 * features/i386/x86-64-avx-linux.c: Likewise.
6894 * features/i386/x86-64-avx-linux.xml: Likewise.
6895 * features/i386/x86-64-avx.c: Likewise.
6896 * features/i386/x86-64-avx.xml: Likewise.
6897 * regformats/i386/i386-avx-linux.dat: Likewise.
6898 * regformats/i386/i386-avx.dat: Likewise.
6899 * regformats/i386/x86-64-avx-linux.dat: Likewise.
6900 * regformats/i386/x86-64-avx.dat: Likewise.
6901
05159abe
DE
69022010-04-07 Doug Evans <dje@google.com>
6903
6904 * top.c (source_file_name): Make const char *.
6905 * top.h (source_file_name): Update.
6906 * cli/cli-script.c (source_cleanup_lines_args): Make old_file
6907 const char *.
6908 (script_from_file): Change `file' arg to const char *.
6909 * cli/cli-script.h (script_from_file): Update.
6910
96e39866
DE
69112010-04-06 Doug Evans <dje@google.com>
6912
6913 * cli/cli-cmds.c (source_command): Run cleanups.
6914
3149d8c1
SS
69152010-04-06 Stan Shebs <stan@codesourcery.com>
6916
6917 * defs.h (char_ptr): Move typedef here from...
6918 * ada-lang.c (char_ptr): Remove.
6919 * charset.c (char_ptr): Remove.
6920 * tracepoint.h (struct uploaded_string): Remove.
6921 (struct uploaded_tp): Use vectors for string arrays.
6922 * tracepoint.c (trace_save): Use vectors of actions.
6923 (parse_tracepoint_definition): Ditto.
6924 (get_uploaded_tp): Clear vectors.
6925 * breakpoint.c (create_tracepoint_from_upload): Use vectors.
6926 (next_cmd): Change to an int.
6927 (read_next_cmd): Use vector of command strings.
6928
4cc23ede
DE
69292010-04-06 Doug Evans <dje@google.com>
6930
6931 * top.h (source_script, cd_command): Delete.
6932 * main.c: #include "cli/cli-cmds.h"
6933
bd333fb7
KB
69342010-04-06 Kevin Buettner <kevinb@redhat.com>
6935
6936 * m32c-tdep.c (make_types): When calling `arch_type', pass size of
6937 type in bytes, not bits.
6938
ec8a089a
PM
69392010-04-06 Pierre Muller <muller@ics.u-strasbg.fr>
6940
6941 * stabsread.c (define_symbol): Add support for char
6942 and string constants.
6943
2244ba2e
PM
69442010-04-06 Pierre Muller <muller@ics.u-strasbg.fr>
6945
6946 Remove remaining "%ll" uses.
6947 * go32-nat.c (go32_pte_for_address): Replace "0x%llx" using
6948 hex_string call.
6949 * rs6000-nat.c (rs6000_ptrace64): Idem.
6950 * solib-pa64.c (pa64_current_sos): Idem.
6951 * solib-spu.c (spu_current_sos): Idem.
6952 * linux-nat.c (linux_nat_find_memory_regions): Replace "%lld" using
6953 plongest call.
6954 * nto-procfs.c (procfs_meminfo): Replace "0x%016llx" using
6955 phex (VAR, 8) call.
6956 * sh64-tdep.c (sh64_show_media_regs): Idem.
6957
fce3c1f0
SS
69582010-04-05 Stan Shebs <stan@codesourcery.com>
6959
6960 * tracepoint.c: Include gdbcore.h.
6961 (tfile_xfer_partial): Return partial results, also try reading
6962 from executable.
6963 (tfile_has_all_memory): New function.
6964 (init_tfile_ops): Use it.
6965
626ea16d
SDJ
69662010-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
6967
6968 PR gdb/10736:
6969 * xml-syscall.c (my_gdb_datadir): New variable to keep track of
6970 the changes in data-directory.
6971 (init_sysinfo): Reload the syscall XML file if the data-directory
6972 has changed.
6973
1f7ccab2
JK
69742010-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6975
6976 Code cleanup.
6977 * breakpoint.c (bpstat_stop_status): Use bpstat_causes_stop.
6978
d77f58be
SS
69792010-04-04 Stan Shebs <stan@codesourcery.com>
6980 Nathan Sidwell <nathan@codesourcery.com>
6981
6982 * breakpoint.c (breakpoint_1): Add filter argument, return number of
6983 breakpoints printed.
6984 (is_hardware_watchpoint): Make argument const.
6985 (is_watchpoint): Ditto.
6986 (is_tracepoint): Merge of tracepoint_type and breakpoint_is_tracepoint,
6987 use it everywhere.
6988 (breakpoints_info): Pass NULL to breakpoint_1.
6989 (maintenance_info_breakpoints): Ditto.
6990 (watchpoints_info): New function.
6991 (tracepoints_info): Use breakpoint_1 filter.
6992 (set_ignore_count): Warn that tracepoint ignore count will be ignored.
6993 (_initialize_breakpoint): Make "info watchpoints" its own command.
6994 * breakpoint.h (is_tracepoint): Rename from breakpoint_is_tracepoint.
6995 * mi/mi-cmd-break.c (mi_cmd_break_commands): Use is_tracepoint.
6996
af54718e
SS
69972010-04-04 Stan Shebs <stan@codesourcery.com>
6998
6999 * tracepoint.c (tfile_fetch_registers): Add fallback case.
7000
74d1f91e
JK
70012010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7002
7003 * infcmd.c (run_command_1): Call proceed with regcache_read_pc address.
7004 * config/djgpp/fnchange.lst: Add translation for break-entry.exp.
7005
91d91ceb
JK
70062010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7007
7008 * breakpoint.c (bpstat_find_step_resume_breakpoint): Remove.
7009 * breakpoint.h (bpstat_find_step_resume_breakpoint): Remove.
7010
60531b24
JK
70112010-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7012
7013 * dwarf2read.c (read_namespace_type): Use common "return set_die_type"
7014 code form.
7015
a3c4230a
HZ
70162010-04-02 Hui Zhu <teawater@gmail.com>
7017
7018 * i386-tdep.c (OT_DQUAD): New enum.
7019 (i386_process_record): Add code for MMX, 3DNow!, SSE, SSE2,
7020 SSE3, SSSE3 and SSE4.
7021
b15758fe
HZ
70222010-04-02 Hui Zhu <teawater@gmail.com>
7023
7024 * i386-tdep.c (i386_record_lea_modrm_addr): Remove useless
7025 "*addr = 0".
7026
afd02f27
PA
70272010-04-02 Pedro Alves <pedro@codesourcery.com>
7028
7029 * tracepoint.c (trace_dump_actions): New, factored out from
7030 trace_dump_command, and adjusted to recurse into while-stepping's
7031 action list.
7032 (trace_dump_command): Use it.
7033
5cea2a26
PA
70342010-04-02 Pedro Alves <pedro@codesourcery.com>
7035
7036 * breakpoint.h (struct counted_command_line): Moved definition to
7037 breakpoint.c, and forward declare.
7038 (breakpoint_commands): Declare.
7039 * breakpoint.c (struct counted_command_line): Moved here.
7040 (breakpoint_commands): New.
7041 * tracepoint.c (encode_actions): Use breakpoint_commands.
7042 * remote.c (remote_download_tracepoint): Ditto.
7043
7c47795c
L
70442010-04-01 H.J. Lu <hongjiu.lu@intel.com>
7045
7046 * remote.c (remote_parse_stop_reply): Use hex_string instead
7047 of phex_nz for error.
7048
fff87407
SS
70492010-04-01 Stan Shebs <stan@codesourcery.com>
7050 Nathan Sidwell <nathan@codesourcery.com>
7051
7052 * tracepoint.h (enum actionline_type): Remove.
7053 (validate_actionline): Change return to void.
7054 * tracepoint.c (report_agent_reqs_errors): New function.
7055 (validate_actionline): Call it, change return to void, report errors
7056 more consistently.
7057 (collect_symbol): Call report_agent_reqs_errors.
7058 (encode_actions_1): Ditto.
7059 (encode_actions): Don't expect a result from validate_actionline.
7060
615bcdef
SS
70612010-04-01 Stan Shebs <stan@codesourcery.com>
7062
7063 * tracepoint.c (trace_start_command): Confirm if trace is running.
7064 (trace_stop_command): Error if trace not running.
7065
fe01d668
L
70662010-04-01 H.J. Lu <hongjiu.lu@intel.com>
7067
7068 * amd64-tdep.c (amd64_byte_names): Add "ah", "bh", "ch", "dh".
7069 (AMD64_NUM_LOWER_BYTE_REGS): New.
7070 (amd64_pseudo_register_read): Handle "ah", "bh", "ch", "dh".
7071 (amd64_pseudo_register_write): Likewise.
7072 (amd64_init_abi): Set num_byte_regs to 20.
7073
86b17b60
PA
70742010-04-01 Pedro Alves <pedro@codesourcery.com>
7075
7076 * breakpoint.c (multi_start, multi_end, last_was_multi): Delete.
7077 (prev_breakpoint_count): New.
7078 (set_breakpoint_count): Adjust.
7079 (rbreak_start_breakpoint_count): New.
7080 (start_rbreak_breakpoints): Adjust.
7081 (end_rbreak_breakpoints): Adjust.
7082 (struct commands_info) <arg>: New field.
7083 (do_map_commands_command): Tweak output to include breakpoint spec
7084 range.
7085 (commands_command_1): Adjust. Avoid setting an xfree cleanup if
7086 ARG was empty on entry. Set INFO's arg.
7087 (create_breakpoint): Adjust.
7088
7089 * NEWS: Clarify `commands' changes.
7090
2c58c0a9
PA
70912010-04-01 Pedro Alves <pedro@codesourcery.com>
7092
7093 * tracepoint.c: Include stack.h.
7094 (struct add_local_symbols_data): New.
7095 (do_collect_symbol): New.
7096 (add_local_symbols): Rewrite using iterate_over_block_arg_vars and
7097 iterate_over_block_local_vars.
7098 * stack.c (print_block_frame_locals): Rewrite as ...
7099 (iterate_over_block_locals): ... this. Take a callback function
7100 pointer and generic data pointer, and call that instead of
7101 print_variable_and_value.
7102 (struct print_variable_and_value_data): New.
7103 (do_print_variable_and_value): New.
7104 (iterate_over_block_local_vars): New, abstracted out from
7105 print_frame_local_vars.
7106 (print_frame_local_vars): Rewrite using
7107 iterate_over_block_local_vars.
7108 (iterate_over_block_arg_vars): New, abstracted out from
7109 print_frame_arg_vars.
7110 (print_frame_arg_vars): Rewrite using iterate_over_block_arg_vars.
7111 * stack.h (iterate_over_block_arg_local_vars_cb): New typedef.
7112 (iterate_over_block_arg_vars, iterate_over_block_local_vars): Declare.
7113
d476da0e
RE
71142010-03-31 Richard Earnshaw <rearnsha@arm.com>
7115
7116 * arm-tdep.c (thumb_get_next_pc_raw): Correctly detect TBH
8d95cc3b 7117 instructions. Use the PC+4 if the base of the TBB or TBH is the
d476da0e
RE
7118 PC register.
7119
8072405b
JK
71202010-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
7121
7122 Fix crash on reading wrong function declaration DWARF.
7123 * dwarf2read.c (read_subroutine_type): New variable void_type.
7124 Pre-fill all TYPE_FIELD_TYPEs. Move nparams and iparams initialization
7125 more close to their use.
7126
8bf6485c
SS
71272010-03-31 Stan Shebs <stan@codesourcery.com>
7128
7129 * breakpoint.c (tracepoint_save_command): Include variables,
8d95cc3b 7130 conditionals, tracepoint types, and default-collect.
8bf6485c
SS
7131 * tracepoint.c (save_trace_state_variables): New function.
7132 * tracepoint.h (save_trace_state_variables): Declare it.
7133
2ae2a0b7
PM
71342010-03-31 Pierre Muller <muller@ics.u-strasbg.fr>
7135
1a161f72 7136 * remote.c (end_thread): ARI fix: Use xstrdup instead of strdup.
2ae2a0b7 7137
86ffb506
KS
71382010-03-30 Keith Seitz <keiths@redhat.com>
7139
7140 * c-typeprint.c (c_type_print_args): Don't print "void"
7141 for java, regardless of whether it is TYPE_PROTOTYPED.
7142 Use the passed-in language instead of current_language.
7143 (c_type_print_varspec_suffix): Use current_language instead
7144 of assuming language_c.
7145 * jv-typeprint.c (java_type_print_base): (bz 9320) Strip off
7146 any return type specifier from the physname.
7147
956c2c8b
PA
71482010-03-30 Pedro Alves <pedro@codesourcery.com>
7149
7150 * tui/tui-interp.c (tui_is_toplevel): New.
7151 (tui_init): Set it.
7152 (tui_allowed_p): New.
7153 * tui/tui.c (tui_enable): Check if the TUI is allowed before
7154 enabling it.
7155 * tui/tui.h (tui_allowed_p): Declare.
7156
98e5a990
TT
71572010-03-30 Ozkan Sezer <sezeroz@gmail.com>
7158
7159 * serial.h: Include winsock2.h before windows.h.
7160
c8d5aac9
L
71612010-03-30 H.J. Lu <hongjiu.lu@intel.com>
7162
7163 * NEWS: Mention xmlRegisters= in qSupported packet.
7164
7165 * i386-tdep.c: Include "remote.h".
7166 (_initialize_i386_tdep): Call register_remote_support_xml.
7167
7168 * remote.c (remote_support_xml): New.
7169 (register_remote_support_xml): Likewise.
7170 (remote_query_supported_append): Likewise.
7171 (remote_query_supported): Support remote_support_xml.
7172
7173 * remote.h (register_remote_support_xml): New.
7174
76a2b958
SS
71752010-03-29 Stan Shebs <stan@codesourcery.com>
7176
42e08e69
SS
7177 * tracepoint.c (trace_find_line_command): Remove dead code.
7178
409873ef
SS
7179 * tracepoint.h (struct uploaded_string): New struct.
7180 (struct uploaded_tp): New fields for source strings.
7181 * breakpoint.c (this_utp, next_cmd): New globals.
7182 (read_uploaded_action): New function.
7183 (create_tracepoint_from_upload): Fill in more parts
7184 of a tracepoint.
7185 * tracepoint.c (encode_source_string): New function.
7186 (trace_save): Write out source strings, fix error checks.
7187 (parse_tracepoint_definition): Add source string parsing.
7188 * remote.c (PACKET_TracepointSource): New packet type.
7189 (remote_download_command_source): New function.
7190 (remote_download_tracepoint): Download source pieces also.
7191 (_initialize_remote): Add packet config command.
7192
a0405854
SS
7193 * tracepoint.c (collect_symbol): Send LOC_UNRESOLVED symbols to
7194 expression handler.
7195
76a2b958
SS
7196 * tracepoint.c (start_tracing): Check tracepoints before sending
7197 commands to target, don't start if all tracepoints disabled.
7198
d350db38
PA
71992010-03-28 Pedro Alves <pedro@codesourcery.com>
7200
12f2d601 7201 * cli/cli-script.c (process_next_line): Handle 'stepping'.
d350db38 7202
8b9b7ef8
SS
72032010-03-26 Stan Shebs <stan@codesourcery.com>
7204
7205 * tracepoint.c (disconnect_or_stop_tracing): Get out of tfind mode.
7206
9766ced4
SS
72072010-03-26 Tom Tromey <tromey@redhat.com>
7208
7209 * breakpoint.c (commands_command_1): Duplicate 'arg'.
7210
059acae7
UW
72112010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
7212
7213 * breakpoint.c (expand_line_sal_maybe): Always call skip_prologue_sal.
7214 (skip_prologue_sal): Remove local definition.
7215 (resolve_sal_pc): Remove now unnecessary code.
7216 * linespec.c (minsym_found): Call skip_prologue_sal.
7217 * symtab.c (find_function_start_pc): Remove.
7218 (find_function_start_sal): Extract prologue skipping into ...
7219 (skip_prologue_sal): ... this new function. Handle code both
7220 with and without debug info. Respect SAL's explicit_pc and
7221 explicit_line flags. Inline old find_function_start_pc.
7222 * symtab.h (find_function_start_pc): Remove.
7223 (skip_prologue_sal): Add prototype.
7224
4a811a97
UW
72252010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
7226
7227 * dwarf2read.c (read_func_scope): Also scan specification DIEs
7228 for DW_TAG_imported_module children.
7229
907af001
UW
72302010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
7231
7232 * dwarf2read.c (dwarf2_name): Work around GCC bugzilla debug/41828 by
7233 ignoring spurious DW_AT_name attributes for unnamed structs or unions.
7234 * completer.c (add_struct_fields): Fix inverted logic.
7235
dde2d684
UW
72362010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
7237
7238 * breakpoint.c (bpstat_clear_actions): Reset bs->commands_left.
7239
a609a0c8
PA
72402010-03-26 Pedro Alves <pedro@codesourcery.com>
7241
7242 * tracepoint.c (current_trace_status): Don't make sure error_desc
7243 is non-NULL here.
7244 (parse_trace_status): Release a previous error_desc string, and
7245 set it to NULL by default. If stop reason is tracepoint_error,
7246 make sure error_desc is not left NULL.
7247
610197fd
PA
72482010-03-26 Pedro Alves <pedro@codesourcery.com>
7249
7250 * tracepoint.c (trace_save): Remove X from tracepoint error
7251 description.
7252
99b5e152
PA
72532010-03-26 Pedro Alves <pedro@codesourcery.com>
7254
7255 * tracepoint.c (parse_trace_status): Don't allow plain strings in
7256 the terror description. Don't expect an X prefix.
7257
6c28cbf2
SS
72582010-03-25 Stan Shebs <stan@codesourcery.com>
7259
7260 * tracepoint.h (trace_stop_reason): Add tracepoint_error.
7261 (struct trace_status): New field error_desc.
7262 * tracepoint.c (stop_reason_names): Add terror.
7263 (current_trace_status): Ensure non-NULL error description.
7264 (trace_status_command): Add error report.
7265 (trace_status_mi): Ditto.
7266 (trace_save): Add special case for error description.
7267 (parse_trace_status): Add case for errors.
7268
418835cc
KS
72692010-03-25 Keith Seitz <keiths@redhat.com>
7270
7271 * dwarf2read.c (read_subroutine_type): If the compilation unit
7272 language is Java, mark any formal parameter named "this" as
7273 artificial (GCC/43521).
7274 (dwarf2_name): Add special handling for Java constructors.
7275
aa7d318d
TT
72762010-03-25 Tom Tromey <tromey@redhat.com>
7277
7278 PR gdb/11327, PR gdb/11328, PR breakpoints/11368:
7279 * infrun.c (handle_inferior_event): Change initialization of
7280 stop_stack_dummy.
7281 (handle_inferior_event): Change assignment to stop_stack_dummy.
7282 (normal_stop): Update use of stop_stack_dummy.
7283 (struct inferior_status) <stop_stack_dummy>: Change type.
7284 * inferior.h (stop_stack_dummy): Update.
7285 * infcmd.c (stop_stack_dummy): Change type.
7286 * infcall.c (cleanup_delete_std_terminate_breakpoint): New
7287 function.
7288 (call_function_by_hand): Call set_std_terminate_breakpoint.
7289 Rewrite std::terminate handling.
7290 * breakpoint.h (enum bptype) <bp_std_terminate,
7291 bp_std_terminate_master>: New.
7292 (enum stop_stack_kind): New.
7293 (struct bpstat_what) <call_dummy>: Change type.
7294 (set_std_terminate_breakpoint, delete_std_terminate_breakpoint):
7295 Declare.
7296 * breakpoint.c (create_std_terminate_master_breakpoint): New
7297 function.
7298 (update_breakpoints_after_exec): Handle bp_std_terminate_master.
7299 Call create_std_terminate_master_breakpoint.
7300 (print_it_typical): Handle new breakpoint kinds.
7301 (bpstat_stop_status): Handle bp_std_terminate_master.
7302 (bpstat_what): Correctly set call_dummy field. Handle
7303 bp_std_terminate_master and bp_std_terminate.
7304 (print_one_breakpoint_location): Update.
7305 (allocate_bp_location): Update.
7306 (set_std_terminate_breakpoint): New function.
7307 (delete_std_terminate_breakpoint): Likewise.
7308 (create_thread_event_breakpoint): Update.
7309 (delete_command): Update.
7310 (breakpoint_re_set_one): Update.
7311 (breakpoint_re_set): Call create_std_terminate_master_breakpoint.
7312
82ccf5a5
JK
73132010-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7314
7315 * symfile.c (build_section_addr_info_from_bfd): New.
7316 (build_section_addr_info_from_objfile): Base it on
7317 build_section_addr_info_from_bfd.
7318 (addrs_section_compar, addrs_section_sort): New.
7319 (addr_info_make_relative): New variables my_cleanup, abfd_addrs,
7320 addrs_sorted, abfd_addrs_sorted and addrs_to_abfd_addrs. Build
7321 addrs_to_abfd_addrs. Use it for recalculating ADDRS.
7322
737c4c52
MS
73232010-03-24 Michael Snyder <msnyder@localhost.localdomain>
7324
8d95cc3b 7325 * elfread.c (find_separate_debug_file_by_buildid):
737c4c52
MS
7326 Remove unused local variable.
7327
95a42b64
TT
73282010-03-24 Tom Tromey <tromey@redhat.com>
7329
7330 PR breakpoints/9352:
7331 * NEWS: Mention changes to `commands' and `rbreak'.
7332 * symtab.c (do_end_rbreak_breakpoints): New function.
7333 (rbreak_command): Call start_rbreak_breakpoints; arrange to call
7334 end_rbreak_breakpoints.
7335 * breakpoint.c (breakpoint_count, tracepoint_count): Now static.
7336 (set_breakpoint_count): Likewise. Clear last_was_multi.
7337 (multi_start, multi_end, last_was_multi): New globals.
7338 (start_rbreak_breakpoints, end_rbreak_breakpoints): New
7339 functions.
7340 (struct commands_info): New
7341 (do_map_commands_command): New function.
7342 (commands_command_1): New function.
7343 (commands_command): Use it.
7344 (commands_from_control_command): Likewise.
7345 (do_delete_breakpoint): New function.
7346 (delete_command): Use it.
7347 (map_breakpoint_numbers): Add 'data' argument. Pass to callback.
7348 (do_map_disable_breakpoint): New function.
7349 (disable_command): Use it.
7350 (do_map_enable_breakpoint): New function.
7351 (enable_command): Use it.
7352 (enable_once_breakpoint): Add argument.
7353 (enable_once_command): Update.
7354 (enable_delete_breakpoint): Add argument.
7355 (enable_delete_command): Update.
7356 (break_command_really): Set last_was_multi when needed.
7357 (check_tracepoint_command): Fix formatting.
7358 (validate_commands_for_breakpoint): New function.
7359 (breakpoint_set_commands): Use it.
7360 (tracepoint_save_command): Update.
7361 * breakpoint.h (start_rbreak_breakpoints, end_rbreak_breakpoints):
7362 Declare.
7363
9add0f1b
TT
73642010-03-24 Tom Tromey <tromey@redhat.com>
7365
7366 * breakpoint.h (struct counted_command_line): New struct.
7367 (struct breakpoint) <commands>: Change type.
7368 (struct bpstats) <commands>: Change type.
7369 <commands_left>: New field.
7370 * breakpoint.c (alloc_counted_command_line): New function.
7371 (incref_counted_command_line): Likewise.
7372 (decref_counted_command_line): Likewise.
7373 (do_cleanup_counted_command_line): Likewise.
7374 (make_cleanup_decref_counted_command_line): Likewise.
7375 (breakpoint_set_commands): Use decref_counted_command_line and
7376 alloc_counted_command_line.
7377 (commands_command): Don't error if breakpoint commands are
7378 executing.
7379 (commands_from_control_command): Likewise.
7380 (bpstat_free): Update.
7381 (bpstat_copy): Likewise.
7382 (bpstat_clear_actions): Likewise.
7383 (bpstat_do_actions_1): Likewise.
7384 (bpstat_stop_status): Likewise.
7385 (print_one_breakpoint_location): Likewise.
7386 (delete_breakpoint): Likewise.
7387 (bpstat_alloc): Initialize new field.
7388 (tracepoint_save_command): Update.
7389 * tracepoint.c (encode_actions): Update.
7390 (trace_dump_command): Update.
7391
a6c727b2
DJ
73922010-03-24 Daniel Jacobowitz <dan@codesourcery.com>
7393
7394 * dwarf2-frame.c (dwarf2_frame_find_quirks): Use producer_is_realview.
7395 * dwarf2read.c (load_full_comp_unit): Read DW_AT_producer.
7396 (read_structure_type): For RealView, set TYPE_STUB on structures with
7397 no byte size and no children.
7398 (read_subroutine_type): Mark functions as prototyped by default.
7399 * symtab.c (producer_is_realview): New function.
7400 * symtab.h (expand_line_sal): Fix declaration formatting.
7401 (producer_is_realview): Declare.
7402
0d39a070
DJ
74032010-03-24 Daniel Jacobowitz <dan@codesourcery.com>
7404
7405 * arm-tdep.c (skip_prologue_function): New function.
7406 (submask, bit, bits, sbits, BranchDest): Move higher in the file.
7407 (thumb_analyze_prologue): Document return value. Recognize more
7408 Thumb instructions, skippable calls, and some Thumb-2 instructions.
7409 Add debug output.
7410 (arm_skip_prologue): Remove call dummy check. Check the prologue
7411 for non-GNU compilers.
7412 (arm_instruction_changes_pc): New function.
7413 (arm_analyze_prologue): New function, broken out from
7414 arm_scan_prologue. Recognize more ARM instructions and skippable
7415 calls. Update comments. Handle NULL cache. Return the address
7416 of the first unrecognized instruction. Do not skip past other
7417 instructions which change control flow. Add debug output.
7418 (arm_scan_prologue): Use arm_analyze_prologue.
7419 (ARM_PC_32): Delete.
7420 (shifted_reg_val): Simplify ARM_PC_32 check.
7421
4baf5cf4
VP
74222010-03-24 Vladimir Prus <vladimir@codesourcery.com>
7423
7424 * tracepoint.c (tvariables_info_1): Actually compute
7425 the number of rows in the result.
7426
4a5e7a5b
PA
74272010-03-24 Pedro Alves <pedro@codesourcery.com>
7428
7429 * remote.c (crc32): Constify `buf' parameter.
7430 (remote_verify_memory): New, abstracted out from...
7431 (compare_sections_command): ... this. Remove hardcoded target
7432 checks.
7433 (init_remote_ops): Install remote_verify_memory.
7434 * target.c (target_verify_memory): New.
7435 * target.h (struct target_ops) <to_verify_memory>: New field.
7436 (target_verify_memory): Declare.
7437
011aacb0
VP
74382010-03-24 Vladimir Prus <vladimir@codesourcery.com>
7439
7440 Implement -trace-save.
7441
7442 * mi-cmds.h (mi_cmds_trace_save): Declare.
7443 * mi-cmds.c (mi_cmds): Register -trace-save.
7444 * mi/mi-main.c (mi_cmd_trace_save): New.
7445 * remote.c (remote_save_trace_data): Take const parameter.
7446 * target.h (struct target_ops::to_save_trace_data): Take
7447 const parameter.
7448 * target.c (update_current_target): Adjust to the above.
7449 * tracepoint.c (trave_save): New, extracted from
7450 (trace_save_command): ...this.
7451 (tfile_trace_find): Remove message that is unnecessary now
7452 that 'tfind' reports found frame.
7453 * tracepoint.h (trace_save): Declare.
7454
f197e0f1
VP
74552010-03-24 Vladimir Prus <vladimir@codesourcery.com>
7456
7457 Implement -trace-find.
7458
7459 * mi/mi-cmds.c (mi_cmds): Register -trace-find.
7460 * mi/mi-cmds.h (mi_cmd_trace_find): Declare.
7461 * mi/mi-main.c (mi_cmd_trace_find): New.
7462 * target.h (struct target_ops): Document to_trace_find.
7463 * tracepoint.h (tfind_1): Declare.
7464 * tracepoint.c (finish_tfind_command): Rename to...
7465 (tfind_1): ...this.
7466 * remote.c (remote_trace_find): Return -1 if target say
7467 there's no frame. Improve error diagnostics.
7468
40e1c229
VP
74692010-03-24 Vladimir Prus <vladimir@codesourcery.com>
7470
7471 -trace-define-variable and -trace-list-variables.
7472
7473 * tracepoint.c (create_trace_state_variable): Make
7474 private copy of name, as opposed to assuming the
7475 pointer lives forever.
7476 (tvariables_info_1): New.
7477 (tvariables_info): Use the above.
7478 * tracepoint.h (create_trace_state_variable, tvariables_info_1):
7479 Declare.
7480 * mi/mi-cmds.c (mi_cmds): Register -trace-define-variable
7481 and -trace-list-variables.
7482 * mi/mi-cmds.h (mi_cmd_trace_define_variable)
7483 (mi_cmd_trace_list_variables): New.
7484 * mi/mi-main.c (mi_cmd_trace_define_variable)
7485 (mi_cmd_trace_list_variables): New.
7486
9b4c786c
VP
74872010-03-24 Vladimir Prus <vladimir@codesourcery.com>
7488
7489 Implement -break-passcount.
7490
7491 * mi/mi-cmd-break.c (mi_cmd_break_passcount): New.
7492 * mi/mi-cmds.c (mi_cmds): Register -break-passcount.
7493 * mi/mi-cmds.h (mi_cmd_break_passcount): Declare.
7494
f224b49d
VP
74952010-03-24 Vladimir Prus <vladimir@codesourcery.com>
7496
7497 -trace-start/-trace-end/-trace-status.
7498
7499 * mi/mi-cmds.c (mi_cmds): Register -trace-start, -trace-status
7500 and -trace-stop.
7501 * mi/mi-cmds.h (mi_cmd_trace_start, mi_cmd_trace_status)
7502 (mi_cmd_trace_stop): Declare.
7503 * mi/mi-main.c (mi_cmd_trace_start, mi_cmd_trace_status)
7504 (mi_cmd_trace_stop): New.
7505 * tracepoint.c (start_tracing): New, extracted from...
7506 (trace_start_command): ...this.
7507 (trace_status_mi): New.
7508 * tracepoint.h (struct trace_status): Document
7509 stopping_tracepoint.
7510 (start_tracing, stop_tracing, trace_status_mi): Declare.
7511
6534d786
VP
75122010-03-24 Vladimir Prus <vladimir@codesourcery.com>
7513
7514 Implement creating tracepoints with -break-insert.
7515
7516 * mi/mi-cmd-break.c (mi_cmd_break_insert): Handle -a
7517 to mean that tracepoint should be created.
7518
51661e93
VP
75192010-03-24 Vladimir Prus <vladimir@codesourcery.com>
7520
7521 * breakpoint.c (check_no_tracepoint_commands): Use
7522 current spelling of 'teval'.
7523
a7bdde9e
VP
75242010-03-24 Vladimir Prus <vladimir@codesourcery.com>
7525
7526 Unify actions and commands
7527
7528 * defs.h (read_command_lines, read_command_lines_1): New
7529 parameters validator and closure.
7530 * tracepoint.h (struct action_line): Remove.
7531 * breakpoint.h (struct breakpoint): Remove the 'actions'
7532 field.
7533 * defs.h (enum command_control_type): New value
7534 while_stepping_control.
7535 (struct command_line): Add comments.
7536 * breakpoint.c (breakoint_is_tracepoint): New.
7537 (breakpoint_set_commands): For tracepoints,
7538 verify the commands are permissible.
7539 (check_tracepoint_commands): New.
7540 (commands_command): Require that each new line is validated using
7541 check_tracepoint_command, if we set commands for a tracepoint.
7542 (create_tracepoint_from_upload): Likewise.
7543 (print_one_breakpoint_location): Remove the code to print
7544 actions specifically.
7545 (tracepoint_save_command): Relay to print_command_lines.
7546 * cli/cli-script.c (process_next_line): New parameters validator
7547 and closure. Handle 'while-stepping'. Call validator if not null.
7548 (read_command_lines, read_command_lines1): Likewise.
7549 (recurse_read_control_structure): New parameters validator and
7550 closure. Handle while_stepping_control.
7551 (print_command_lines): Handle while-stepping.
7552 (get_command_line, define_command, document_command): Adjust.
7553 * remote.c (remote_download_tracepoint): Adjust.
7554 * tracepoint.c (make_cleanup_free_actions, read_actions)
7555 (free_actions, do_free_actions_cleanup): Remove.
7556 (trace_actions_command): Use read_command_lines.
7557 (validate_actionline): Use error in one place.
7558 (encode_actions_1): New, extracted from...
7559 (encode_actions): ...this. Also use cleanups for exception
7560 safety.
7561 (trace_dump_command): Adjust.
7562 * mi/mi-cmd-break (mi_cmd_break_commands): Validate commands if
7563 it's tracepoint.
7564
64e3cf3d
MF
75652010-03-23 Mike Frysinger <vapier@gentoo.org>
7566
7567 * Makefile.in (OPCODES_CFLAGS): Add -I$(OPCODES_SRC)/..
7568
52e9fde8
SS
75692010-03-22 Stan Shebs <stan@codesourcery.com>
7570
7571 * value.c (value_static_field): Be lazy about the field's value.
7572
508ccb1f
TT
75732010-03-22 Reid Kleckner <reid@kleckner.net>
7574
7575 PR gdb/11094
7576 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): Add
7577 bp_jit_event.
7578 (disable_breakpoints_in_shlibs): Likewise.
7579
acebe513
UW
75802010-03-22 Ulrich Weigand <uweigand@de.ibm.com>
7581
7582 * dwarf2read.c (partial_die_parent_scope): Work around buggy
7583 GCC 4.1 debug info generation (GCC PR c++/28460).
7584 (determine_prefix): Likewise.
7585
957b8b5a
DJ
75862010-03-20 Daniel Jacobowitz <dan@codesourcery.com>
7587
7588 * tui/tui-disasm.c (tui_get_begin_asm_address): Default to
7589 get_current_arch.
7590 * tui/tui-layout.c (extract_display_start_addr): Likewise.
7591
3b11a015
SS
75922010-03-19 Stan Shebs <stan@codesourcery.com>
7593
7594 * ax-gdb.c (gen_fetch): Handle bool.
7595 (gen_usual_unary): Ditto.
7596 (gen_cast): Ditto.
7597 (gen_equal): New function.
7598 (gen_less): New function.
7599 (gen_expr_binop_rest): Call them, also return integer type from
7600 logical operations.
7601 (gen_expr): Ditto.
7602
20781792
TT
76032010-03-19 Tom Tromey <tromey@redhat.com>
7604
7605 * jv-lang.c (jv_dynamics_objfile_data_key)
7606 (jv_type_objfile_data_key): New globals.
7607 (class_symtab): Move earlier.
7608 (jv_per_objfile_free): New function.
7609 (get_dynamics_objfile): Call set_objfile_data. Add 'gdbarch'
7610 parameter.
7611 Remove ancient #if 1.
7612 (add_class_symbol): Remove redundant declaration.
7613 (java_lookup_class): Use alloc_type, not alloc_type_arch.
7614 (java_link_class_type): Mark as static. Update.
7615 (jv_clear_object_type): New function.
7616 (set_java_object_type): Likewise.
7617 (get_java_object_type): Use set_java_object_type.
7618 (is_object_type): Likewise.
7619 (_initialize_java_language): Register new objfile keys.
7620 (get_java_class_symtab): Add 'gdbarch' parameter.
7621 (add_class_symtab_symbol): Update.
7622 (type_from_class): Update.
7623
cf3e25ca
SS
76242010-03-19 Stan Shebs <stan@codesourcery.com>
7625
8d95cc3b 7626 * ax-general.c (ax_const_l): Fix a sizing bug.
cf3e25ca 7627
f1ae44c9 76282010-03-18 Joel Brobecker <brobecker@adacore.com>
7629
7630 GDB 7.1 released.
7631
4daf5ac0
SS
76322010-03-18 Stan Shebs <stan@codesourcery.com>
7633 Pedro Alves <pedro@codesourcery.com>
7634
7635 * target.h (struct target_ops): New method
7636 to_set_circular_trace_buffer.
7637 (target_set_circular_trace_buffer): New macro.
7638 * target.c (update_current_target): Add
7639 to_set_circular_trace_buffer, fix to_set_disconnected_tracing
7640 default behavior.
7641 * remote.c (remote_set_circular_trace_buffer): New function.
7642 (init_remote_ops): Add it to vector.
7643 * tracepoint.h (struct trace_status): New field traceframes_created,
7644 change buffer_size and buffer_free to int.
7645 * tracepoint.c (circular_trace_buffer): New global.
7646 (start_tracing): Send values of disconnected tracing and circular
7647 trace buffer settings.
7648 (set_circular_trace_buffer): New function.
7649 (parse_trace_state): Handle total space and frames created.
7650 (trace_status_command): Display total space and total frames
7651 created.
7652 (trace_save): Write out new status values.
7653 (parse_trace_status): Set traceframe_count, traceframes_created,
7654 buffer_free and buffer_size to -1 by default.
7655 (_initialize_tracepoint): New setshow for circular-trace-buffer.
7656 * NEWS: Mention the circular trace buffer option.
7657
40c549d6
TT
76582010-03-18 Tom Tromey <tromey@redhat.com>
7659
7660 * infcmd.c (finish_command_continuation): Wrap print_return_value
7661 in TRY_CATCH.
7662
e8d05480
JB
76632010-03-18 Joel Brobecker <brobecker@adacore.com>
7664
7665 * dwarf2read.c (add_partial_subprogram): Make sure the subprogram
7666 DIE has a name before creating the associated partial symbol.
7667 (read_func_scope): Emit a complaint if the subprogram does not
7668 have a name or when we can't extract the subprogram PC bounds.
7669
441b986a
UW
76702010-03-18 Ulrich Weigand <uweigand@de.ibm.com>
7671
7672 * mi/mi-main.c (mi_cmd_list_thread_groups): Use get_current_arch
7673 instead of selected frame architecture.
7674
4247603b
PA
76752010-03-18 Pedro Alves <pedro@codesourcery.com>
7676
7677 * infcmd.c (until_command): Use ERROR_NO_INFERIOR. Ensure there's
7678 a valid selected thread, and that it is not running.
7679 (advance_command): Ditto.
7680 (finish_command): Ditto.
7681
400c6af0
SS
76822010-03-17 Stan Shebs <stan@codesourcery.com>
7683
3a96536b
SS
7684 * ax-gdb.c (require_rvalue): Disallow non-scalars.
7685
573cda03
SS
7686 * infcall.c: Include tracepoint.h.
7687 (call_function_by_hand): Disallow calls in tfind mode.
7688 * infcmd.c: Include tracepoint.h.
7689 (ensure_not_tfind_mode): New function.
7690 (continue_1): Call it.
7691 (step_1) Ditto.
7692 (jump_command): Ditto.
7693 (signal_command): Ditto.
7694 (advance_command): Ditto.
7695 (until_command): Ditto.
7696 (finish_command): Ditto.
7697 * tracepoint.h (disconnect_or_stop_tracing): Declare.
7698
400c6af0
SS
7699 * ax-gdb.h (struct axs_value): New field optimized_out.
7700 (gen_trace_for_var): Add gdbarch argument.
7701 * ax-gdb.c (gen_trace_static_fields): New function.
7702 (gen_traced_pop): Call it, add gdbarch argument.
7703 (gen_trace_for_expr): Update call to it.
7704 (gen_trace_for_var): Ditto, and report optimized-out variables.
7705 (gen_struct_ref_recursive): Check for optimized-out value.
7706 (gen_struct_elt_for_reference): Ditto.
7707 (gen_static_field): Pass gdbarch instead of expression, assume
7708 optimization if field not found.
7709 (gen_var_ref): Set the optimized_out flag.
7710 (gen_expr): Error on optimized-out variable.
7711 * tracepoint.c (collect_symbol): Handle struct-valued vars as
7712 expressions, skip optimized-out variables with computed locations.
7713 * dwarf2loc.c (dwarf2_tracepoint_var_ref): Flag instead of
7714 erroring out if location expression missing.
7715 (loclist_tracepoint_var_ref): Don't error out here.
7716
a3b2a86b
TT
77172010-03-17 Tom Tromey <tromey@redhat.com>
7718
7719 * dwarf2read.c (dwarf2_get_section_info): Handle case where no
7720 DWARF data is available.
7721
38963c97
DJ
77222010-03-17 Daniel Jacobowitz <dan@codesourcery.com>
7723
7724 * symfile.c (generic_load): Reset breakpoints after loading.
7725
ddabfc73
TT
77262010-03-17 Tom Tromey <tromey@redhat.com>
7727
7728 * linux-nat.c (linux_nat_detach): Check debug_linux_nat.
7729
d8c09fb5
JK
77302010-03-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7731
7732 * spu-tdep.c (spu_catch_start): Replace set_breakpoint call with the
7733 create_breakpoint call, adjust the parameters.
7734
bbb0eef6
JK
77352010-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7736 Chandru <chandru@in.ibm.com>
7737
7738 * dwarf2read.c (read_subrange_type): Set TYPE_HIGH_BOUND_UNDEFINED.
7739 * valarith.c (value_subscripted_rvalue): Suppress error if
7740 TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED.
7741
46956e39
HZ
77422010-03-16 Holger Hans Peter Freyther <zecke@selfish.org>
7743
7744 * linux-record.c (record_linux_msghdr): Remove unintended semicolons.
7745
b8d088ac
JB
77462010-03-16 Joel Brobecker <brobecker@adacore.com>
7747
7748 * ada-tasks.c (task_command_1): Check that the task ptid is valid
7749 before doing the associated thread switch.
7750
322be962
DJ
77512010-03-16 Daniel Jacobowitz <dan@codesourcery.com>
7752
7753 * MAINTAINERS: Update my email address.
7754
8cdf0e15
VP
77552010-03-16 Vladimir Prus <vladimir@codesourcery.com>
7756
7757 Simplify MI breakpoint setting.
7758
7759 * breakpoint.c (break_command_really): Make nonstatic and
7760 rename to...
7761 (create_breakpoint): ...this. Rename prior function by this name
7762 to...
7763 (create_breakpoint_sal): ...this.
7764 (create_breakpoints): Rename to...
7765 (create_breakpoints_sal): ...this.
7766 (set_breakpoint): Remove.
7767 * breakpoint.h: Adjust to above changes.
7768 * mi/mi-cmd-break.c (mi_cmd_break_insert): Simplify.
7769
b6e7192f
SS
77702010-03-15 Stan Shebs <stan@codesourcery.com>
7771
7772 * ax-gdb.c: Include cp-support.h.
7773 (find_field): Remove.
7774 (gen_primitive_field): New function.
7775 (gen_struct_ref_recursive): New function.
7776 (gen_struct_ref): Rewrite to call gen_struct_ref_recursive instead
7777 of find_field.
7778 (gen_static_field): New function.
7779 (gen_struct_elt_for_reference): New.
7780 (gen_namespace_elt): New.
7781 (gen_maybe_namespace_elt): New.
7782 (gen_aggregate_elt_ref): New.
7783 (gen_expr): Add OP_SCOPE, display opcode name in error message.
7784
1054b214
TT
77852010-03-15 Tom Tromey <tromey@redhat.com>
7786
7787 * dwarf2read.c (die_needs_namespace): Also return 0 for
7788 DW_TAG_subprogram.
7789
13387711
SW
77902010-03-15 Sami Wagiaalla <swagiaal@redhat.com>
7791
7792 PR c++/7936:
7793 * cp-support.h: Added char *declaration element to using_direct
7794 data struct.
7795 (cp_add_using): Added char *declaration argument.
7796 (cp_add_using_directive): Ditto.
7797 (cp_lookup_symbol_imports): made extern.
7798 * cp-namespace.c: Updated with the above changes.
7799 * dwarf2read.c (read_import_statement): Ditto.
7800 (read_namespace): Ditto.
7801 (read_import_statement): Support import declarations.
7802 * cp-namespace.c (cp_lookup_symbol_imports): Check for imported
7803 declarations.
7804 Added support for 'declaration_only' search.
7805 (cp_lookup_symbol_namespace): Attempt to search for the name as
7806 is before consideration of imports.
7807 * symtab.c (lookup_symbol_aux_local): Added a 'declaration_only'
7808 search at every block level search.
7809 Now takes language argument.
7810 (lookup_symbol_aux): Updated.
7811
6e31430b
TT
78122010-03-15 Tom Tromey <tromey@redhat.com>
7813
7814 * c-exp.y (name_not_typename): Add 'operator' clause.
7815
4dea3bb7 78162010-03-15 Ralf Corsepius <ralf.corsepius@rtems.org> (tiny change)
bf307134
JB
7817
7818 * configure.ac: Exit if ${gdb_target_obs}" is not set.
7819 * configure: Regenerate.
7820
4d9743af
JK
78212010-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7822
7823 * symfile.c (addr_info_make_relative): Ignore also missing ".dynbss"
7824 and ".sdynbss". Update the comment.
7825
f75150fe
JZ
78262010-03-15 Jie Zhang <jie@codesourcery.com>
7827
7828 * MAINTAINERS: Update my email address.
7829
3c13bc11
DJ
78302010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
7831
7832 * gdbtypes.h (TYPE_IS_OPAQUE): Correct HAVE_CPLUS_STRUCT check.
7833
43484f03
DJ
78342010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
7835
7836 * charset.c [USE_WIN32API]: Include <windows.h>.
7837 (_initialize_charset): Correct type of w32_host_default_charset.
7838
5f25d77d
PA
78392010-03-14 Pedro Alves <pedro@codesourcery.com>
7840
7841 * infrun.c (ptid_match): Don't assert that PTID is not a pid ptid.
7842
1c809c68
TT
78432010-03-12 Tom Tromey <tromey@redhat.com>
7844
7845 PR c++/9708:
7846 * dwarf2read.c (die_needs_namespace) <DW_TAG_variable>: A variable
7847 in a lexical block does not need a namespace.
7848 (new_symbol) <DW_TAG_variable>: Put extern variables on
7849 list_in_scope in all cases.
7850
948103cf
SS
78512010-03-12 Stan Shebs <stan@codesourcery.com>
7852
7853 * ax-gdb.c (gen_expr): Add shift expressions.
7854 (gen_expr_binop_rest): Ditto.
7855
00ae8fef
SW
78562010-03-12 Sami Wagiaalla <swagiaal@redhat.com>
7857
7858 * buildsym.c (finish_block): Reset using_directives pointer
7859 after block initialization.
7860
9cad29ac
L
78612010-03-12 H.J. Lu <hongjiu.lu@intel.com>
7862
7863 * amd64-tdep.c (amd64_word_names): Replace "sp" with "".
7864 * i386-tdep.c (i386_word_names): Likewise.
7865
2f4d8875
PA
78662010-03-12 Pedro Alves <pedro@codesourcery.com>
7867
7868 * target.c (memory_xfer_partial): Don't use the stack cache if
7869 inspecting trace frames.
7870 * tracepoint.c (finish_tfind_command): Invalidate the target
7871 dcache.
7872
ccf26247
JK
78732010-03-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7874
7875 * solib-svr4.c (LM_ADDR_CHECK) <info_verbose>: Use printf_unfiltered
7876 for the PIC displacement, print also the displacement value.
7877 (svr4_exec_displacement): Print DISPLACEMENT if INFO_VERBOSE.
7878
477c84a7
KB
78792010-03-10 Kevin Buettner <kevinb@redhat.com>
7880
7881 * remote-mips.c (close_ports, mips_initialize_cleanups)
7882 (mips_exit_cleanups, mips_send_command, mips_open, pmon_open)
7883 (ddb_open, lsi_open, mips_remove_breakpoint, mips_remove_watchpoint)
7884 (mips_stopped_by_watchpoint, send_srec, pmon_checkset)
7885 (pmon_make_fastrec, pmon_check_ack, mips_expect_download)
7886 (pmon_check_entry_address, pmon_check_total, pmon_end_download)
7887 (pmon_download, pmon_load_fast, _initialize_remote_mips): Add
7888 comments describing each of these functions.
7889 (mips_enter_debug, mips_exit_debug, common_open)
7890 (mips_signal_from_protocol, pmon_makeb64, pmon_zeroset): Add
7891 blank line after the comment describing the function.
7892
01c30d6e
JK
78932010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
7894
7895 * solib-svr4.c (svr4_exec_displacement): Return now success, new
7896 parameter displacementp. Update comment.
7897 (svr4_relocate_main_executable): Return if non-zero SECTION_OFFSETS
7898 element exists. Return if svr4_exec_displacement was not successful.
7899 Update comment.
7900
09919ac2
JK
79012010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
7902 Daniel Jacobowitz <dan@codesourcery.com>
7903
7904 * solib-svr4.c (read_program_header): Support type == -1 to read
7905 all program headers.
7906 (read_program_headers_from_bfd): New function.
7907 (svr4_static_exec_displacement): Remove and move the comment ...
7908 (svr4_exec_displacement): ... here. Remove variable found. New
7909 variable displacement. Check also DYNAMIC. Verify DISPLACEMENT
7910 alignment for ELF targets. Compare target vs. exec_bfd PHDRs for ELF
7911 targets using read_program_headers_from_bfd. Remove the call of
7912 svr4_static_exec_displacement.
7913
d146bf1e
TT
79142010-03-10 Tom Tromey <tromey@redhat.com>
7915
7916 * dwarf2read.c (struct pubnames_header): Remove.
7917 (_PUBNAMES_HEADER): Remove.
7918 (_ACTUAL_PUBNAMES_HEADER_SIZE): Remove.
7919 (struct aranges_header): Remove.
7920 (_ARANGES_HEADER, _ACTUAL_ARANGES_HEADER_SIZE): Remove.
7921 (struct dwarf2_per_objfile) <pubnames, aranges>: Remove.
7922 (PUBNAMES_SECTION): Remove.
7923 (ARANGES_SECTION): Remove.
7924 (dwarf2_locate_sections): Don't handle pubnames or aranges.
7925 (dwarf2_build_psymtabs): Remove dead code.
7926 (dwarf2_build_psymtabs_easy): Remove.
7927
be391dca
TT
79282010-03-10 Tom Tromey <tromey@redhat.com>
7929
7930 * elfread.c (elf_symfile_read): Don't call
7931 dwarf2_build_frame_info.
7932 * dwarf2read.c (struct dwarf2_section_info) <readin>: New field.
7933 (struct dwarf2_per_objfile) <objfile>: New field.
7934 (dwarf2_has_info): Now idempotent. Set objfile field.
7935 (dwarf2_read_section): Check and set readin field. Call
7936 posix_madvise.
7937 (dwarf2_build_psymtabs): Don't read all sections.
7938 (read_type_comp_unit_head): Read types section.
7939 (create_debug_types_hash_table): Likewise.
7940 (init_cu_die_reader): Add asserts.
7941 (process_type_comp_unit): Add assert.
7942 (dwarf2_build_psymtabs_hard): Read info section.
7943 (load_partial_comp_unit): Add assert.
7944 (create_all_comp_units): Read info section.
7945 (load_full_comp_unit): Likewise.
7946 (dwarf2_ranges_read): Read ranges section.
7947 (dwarf2_record_block_ranges): Add assert.
7948 (dwarf2_read_abbrevs): Read abbrev section.
7949 (read_indirect_string): Read str section.
7950 (dwarf_decode_line_header): Read line section.
7951 (read_signatured_type_at_offset): Read types section.
7952 (dwarf_decode_macros): Read macinfo section.
7953 (dwarf2_symbol_mark_computed): Read loc section.
7954 * dwarf2-frame.c (dwarf2_frame_find_fde): Call
7955 dwarf2_build_frame_info.
7956 (dwarf2_build_frame_info): Unconditionally set
7957 dwarf2_frame_objfile_data on the objfile.
7958 * configure.ac: Check for posix_madvise.
7959 * config.in, configure: Rebuild.
7960
ccefe4c4
TT
79612010-03-10 Tom Tromey <tromey@redhat.com>
7962
e38df1d0
TT
7963 * xcoffread.c (xcoff_start_psymtab): Update.
7964 (xcoff_end_psymtab): Update.
7965 * psymtab.c (allocate_psymtab): Remove dead code.
7966 * psympriv.h (struct partial_symtab) <read_symtab_private>: Now
7967 void*.
7968 * mdebugread.c (parse_partial_symbols): Update.
7969 (new_psymtab): Likewise.
7970 * dwarf2read.c (process_psymtab_comp_unit): Update.
7971 (psymtab_to_symtab_1): Update.
7972 * dbxread.c (start_psymtab): Update.
7973 (end_psymtab): Likewise.
7974
be391dca 79752010-03-10 Tom Tromey <tromey@redhat.com>
e38df1d0 7976
ccefe4c4
TT
7977 * xcoffread.c: Include psymtab.h.
7978 (xcoff_sym_fns): Update.
7979 * symtab.h (struct partial_symbol): Remove.
7980 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.
7981 (struct partial_symtab): Remove.
7982 (PSYMTAB_TO_SYMTAB): Remove.
7983 (lookup_partial_symbol, lookup_partial_symtab, find_pc_psymtab)
7984 (find_pc_sect_psymtab): Remove.
7985 (find_pc_sect_symtab_via_partial): Declare.
7986 (find_pc_psymtab, find_pc_sect_psymbol, psymtab_to_symtab)
7987 (find_main_psymtab): Remove.
7988 (find_main_filename): Declare.
7989 (fixup_psymbol_section): Remove.
7990 (fixup_section): Declare.
7991 * symtab.c: Include psymtab.h.
7992 (lookup_symtab): Use lookup_symtab method.
7993 (lookup_partial_symtab): Remove.
7994 (find_pc_sect_psymtab_closer): Remove.
7995 (find_pc_sect_psymtab): Remove.
7996 (find_pc_sect_symtab_via_partial): New function.
7997 (find_pc_psymtab, find_pc_sect_psymbol, find_pc_psymbol): Remove.
7998 (fixup_section): No longer static.
7999 (fixup_psymbol_section): Remove.
8000 (lookup_symbol_aux): Use lookup_symbol_aux_quick.
8001 (lookup_global_symbol_from_objfile): Likewise.
8002 (lookup_symbol_aux_psymtabs): Remove.
8003 (lookup_symbol_aux_quick): New function.
8004 (lookup_symbol_global): Use lookup_symbol_aux_quick.
8005 (lookup_partial_symbol): Remove.
8006 (basic_lookup_transparent_type_quick): New function.
8007 (basic_lookup_transparent_type): Use it.
8008 (find_main_psymtab): Remove.
8009 (find_main_filename): New function.
8010 (find_pc_sect_symtab): Use find_pc_sect_symtab method.
8011 (find_line_symtab): Use expand_symtabs_with_filename method.
8012 (output_partial_symbol_filename): New function.
8013 (sources_info): Use map_partial_symbol_filenames.
8014 (struct search_symbols_data): New type.
8015 (search_symbols_file_matches): New function.
8016 (search_symbols_name_matches): Likewise.
8017 (search_symbols): Use expand_symtabs_matching method.
8018 (struct add_name_data): Rename from add_macro_name_data.
8019 (add_macro_name): Update.
8020 (add_partial_symbol_name): New function.
8021 (default_make_symbol_completion_list): Use
8022 map_partial_symbol_names.
8023 (struct add_partial_symbol_name): New type.
8024 (maybe_add_partial_symtab_filename): New function.
8025 (make_source_files_completion_list): Use
8026 map_partial_symbol_filenames.
8027 (expand_line_sal): Use expand_symtabs_with_filename method.
8028 * symmisc.c: Include psymtab.h.
8029 (print_objfile_statistics): Use print_stats method.
8030 (dump_objfile): Use dump method.
8031 (dump_psymtab, maintenance_print_psymbols)
8032 (maintenance_info_psymtabs, maintenance_check_symtabs)
8033 (extend_psymbol_list): Remove.
8034 * symfile.h (struct quick_symbol_functions): New struct.
8035 (struct sym_fns) <qf>: New field.
8036 (sort_pst_symbols): Remove.
8037 (increment_reading_symtab): Declare.
8038 * symfile.c: Include psymtab.h.
8039 (compare_psymbols, sort_pst_symbols): Remove.
8040 (psymtab_to_symtab): Remove.
8041 (increment_reading_symtab): New function.
8042 (symbol_file_add_with_addrs_or_offsets): Use expand_all_symtabs
8043 method.
8044 (set_initial_language): Use find_main_filename.
8045 (allocate_psymtab, discard_psymtab, cashier_psymtab): Remove.
8046 (free_named_symtabs): Remove unused code.
8047 (start_psymtab_common, add_psymbol_to_bcache)
8048 (append_psymbol_to_list, add_psymbol_to_list, init_psymbol_list):
8049 Remove.
8050 * stack.c: Include psymtab.h, symfile.h.
8051 (backtrace_command_1): Use find_pc_sect_symtab_via_partial.
8052 * source.h (psymtab_to_fullname): Don't declare.
8053 * source.c: Include psymtab.h.
8054 (select_source_symtab): Use find_last_source_symtab method.
8055 (forget_cached_source_info): Use forget_cached_source_info
8056 method.
8057 (find_and_open_source): No longer static.
8058 (psymtab_to_fullname): Remove.
8059 * somread.c: Include psymtab.h.
8060 (som_sym_fns): Update.
8061 * psympriv.h: New file.
8062 * psymtab.h: New file.
8063 * psymtab.c: New file.
8064 * objfiles.h: (ALL_OBJFILE_PSYMTABS): Remove.
8065 (ALL_PSYMTABS, ALL_PSPACE_PSYMTABS): Likewise.
8066 * objfiles.c: Include psymtab.h.
8067 (objfile_relocate1): Use relocate method.
8068 (objfile_has_partial_symbols): Use has_symbols method.
8069 * mipsread.c: Include psymtab.h.
8070 (ecoff_sym_fns): Update.
8071 * mi/mi-cmd-file.c: Include psymtab.h.
8072 (print_partial_file_name): New function.
8073 (mi_cmd_file_list_exec_source_files): Use
8074 map_partial_symbol_filenames.
8075 * mdebugread.c: Include psympriv.h.
8076 * machoread.c: Include psympriv.h.
8077 (macho_sym_fns): Update.
8078 * m2-exp.y (yylex): Use lookup_symtab.
8079 * elfread.c: Include psympriv.h.
8080 (elf_sym_fns): Update.
8081 * dwarf2read.c: Include psympriv.h.
8082 * dbxread.c: Include psympriv.h.
8083 (aout_sym_fns): Update.
8084 * cp-support.c: Include psymtab.h.
8085 (read_in_psymtabs): Remove.
8086 (make_symbol_overload_list_qualified): Use
8087 expand_symtabs_for_function method.
8088 * coffread.c: Include psympriv.h.
8089 (coff_sym_fns): Update.
8090 * blockframe.c: Include psymtab.h.
8091 (find_pc_partial_function): Use find_pc_sect_symtab method.
8092 * ada-lang.h (ada_update_initial_language): Update.
8093 * ada-lang.c: Include psymtab.h.
8094 (ada_update_initial_language): Remove 'main_pst' argument.
8095 (ada_lookup_partial_symbol): Remove.
8096 (struct ada_psym_data): New type.
8097 (ada_add_psyms): New function.
8098 (ada_add_non_local_symbols): Use map_ada_symtabs method.
8099 (struct add_partial_datum): New type.
8100 (ada_add_partial_symbol_completions): New function.
8101 (ada_make_symbol_completion_list): Use map_partial_symbol_names.
8102 (ada_exception_support_info_sniffer): Update.
8103 * Makefile.in (SFILES): Add psymtab.c.
8104 (COMMON_OBS): Add psymtab.o.
8105 (HFILES_NO_SRCDIR): Add psymtab.h, psympriv.h.
8106
7d8500b7
PM
81072010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
8108
8109 * remote-fileio.c (cygwin_conv_path): Define macro for old cygwin API.
8110
c0cc3a76
SW
81112010-03-10 Sami Wagiaalla <swagiaal@redhat.com>
8112
8113 PR C++/11236:
8114 * cp-namespace.c (cp_add_using): Deleted.
8115 (cp_add_using_directive): Use obstack allocations.
8116 Merged the function cp_add_using into this one.
8117 Added 'struct obstack *' argument.
8118 (cp_scan_for_anonymous_namespaces): Updated.
8119 * cp-support.h: Updated.
8120 * dwarf2read.c (read_import_statement): Updated.
8121 (read_namespace): Updated.
8122
452fa064
CF
81232010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
8124
8125 * windows-nat.c (cygwin_conv_path): Remove old macro.
8126
60e1c644
PA
81272010-03-10 Pedro Alves <pedro@codesourcery.com>
8128
8129 * breakpoint.c (condition_command): Handle watchpoint conditions.
8130 (is_hardware_watchpoint): Add comment.
8131 (is_watchpoint): New.
8132 (update_watchpoint): Don't reparse the watchpoint's condition
8133 unless necessary.
8134 (WP_IGNORE): New.
8135 (watchpoint_check): Use it.
8136 (bpstat_check_watchpoint): Handle it.
8137 (bpstat_check_breakpoint_conditions): Evaluate watchpoint local
8138 conditions in a frame where it makes sense.
8139 (watch_command_1): Store the innermost block of the condition
8140 expression.
8141 (delete_breakpoint): Delete the watchpoint condition expression.
8142 * breakpoint.h (struct bp_location) <cond>: Update comment.
8143 (struct breakpoint): New field `cond_exp_valid_block'.
8144
af6b7be1
JB
81452010-03-09 Joel Brobecker <brobecker@adacore.com>
8146
8147 Adjust handling of Ada DIEs after dwarf2_physname patch.
8148 * dwarf2read.c (dwarf2_compute_name): Add handling of Ada DIEs.
8149
60c5c021
CF
81502010-03-09 Christopher Faylor <me+cygwin@cgf.cx>
8151 Pierre Muller <muller@ics.u-strasbg.fr>
8152
8153 * windows-nat.c (cygwin_conv_path): Redefine to properly convert
8154 from/to posix/win32.
8155 (windows_make_so): Use non-Cygwin 1.7 specific function.
8156 (windows_create_inferior): Make sure that cygallargs points to
8157 original args in non Cygwin 1.7. case.
8158
60a1502a
MS
81592010-03-09 Michael Snyder <msnyder@vmware.com>
8160
8161 * i386-tdep.c (i386_record_lea_modrm_addr): Use extract_signed_int
8162 after target_read_memory to get host byte order.
8163 (i386_process_record): Ditto.
8164
94af9270
KS
81652010-03-09 Keith Seitz <keiths@redhat.com>
8166
8167 Based on work from Daniel Jacobowitz <dan@codesourcery.com>
8168 * c-typeprint.c (cp_type_print_method_args): For non-static methods,
8169 print out const or volatile qualifiers, too.
8170 (c_type_print_args): Add parameters show_artificial and language.
8171 Skip artificial parameters when requested.
8172 Use the appropriate language printer.
8173 (c_type_print_varspec): Tell c_type_print_args to skip artificial
8174 parameters and pass language_c.
8175 * dwarf2read.c (die_list): New file global.
8176 (struct partial_die_info): Update comments for name field.
8177 (pdi_needs_namespace): Renamed to ...
8178 (die_needs_namespace): ... this. Rewrite.
8179 (dwarf2_linkage_name): Remove.
8180 (add_partial_symbol): Do not predicate the call to
8181 partial_die_full_name based on pdi_needs_namespace.
8182 Remove call to cp_check_possible_namespace_symbols and associated
8183 outdated comments.
8184 (guess_structure_name): Do not inspect child subprogram DIEs.
8185 (dwarf2_fullname): Update comments.
8186 Use die_needs_namespace to assist in computing the name.
8187 (read_func_scope): Use dwarf2_name to get the DIE's name.
8188 Use dwarf2_physname to get the "linkage name" of the DIE.
8189 (dwarf2_add_member_field): Use dwarf2_physname instead of
8190 dwarf2_linkage_name.
8191 (read_structure_type): For structs and classes, set TYPE_NAME, too.
8192 (determine_class): Remove.
8193 (read_partial_die): Ignore DW_AT_MIPS_linkage_name for all languages
8194 except Ada.
8195 (new_symbol): Unconditionally call dwarf2_name.
8196 Compute the "linkage name" using dwarf2_physname.
8197 Use dwarf2_name instead of dwarf2_full_name for enumerator DIEs.
8198 When determining to scan for anonymous C++ namespaces, ignore
8199 the linkage name.
8200 (dwarf2_physname): New function.
8201 (dwarf2_full_name): Move content to new function and call
8202 that.
8203 (dwarf2_compute_name): "New" function.
8204 (_initialize_dwarf2_read): Initialize die_list.
8205 * gnu-v3-eabi.c (gnu_v3_find_method_in): Remove unused variable
8206 physname.
8207 (gnu_v3_print_method_ptr): Use the physname for virtual methods
8208 without a demangled name.
8209 Print out type information for non-virtual methods.
c8d5aac9 8210 * linespec.c (decode_line_1): Force ANY string using "::" (or
94af9270 8211 "." for java) to use decode_compound, and clean up any stray quoting.
c8d5aac9
L
8212 If we found a file symtab, re-evaluate whether the remainder is_quoted.
8213 (decode_compound): Stop consuming at an open parenthesis.
8214 Keep template parameters.
8215 Keep any overload information.
8216 Keep keywords like "const".
8217 Remove paren_pointer.
8218 Move is_quoted check from set_flags to here.
8219 Remove #if 0 code from 2000. Ten years is long enough.
8220 (find_method): Before comparing symbol names, canonicalize the string
8221 from the user.
8222 If a specific overload is requested, find it. Otherwise throw an error.
94af9270
KS
8223 (find_method_overload_end): New function.
8224 (set_flags): Remove.
c8d5aac9
L
8225 (decode_compound): Assume that parentheses are matched.
8226 It's a lot easier.
94af9270
KS
8227 * symtab.c (symbol_find_demangled_name): Add DMGL_VERBOSE flag
8228 to cplus_demangle.
8229 * linespec.c (decode_line_1): Keep important keywords like
8230 "const" and "volatile".
8231 * symtab.h (SYMBOL_CPLUS_DEMANGLED_NAME): Remove.
8232 * typeprint.h (c_type_print_args): Add declaration.
8233 * ui-file.c (do_ui_file_obsavestring): New function.
8234 (ui_file_obsavestring): New function.
8235 * ui-file.h (ui_file_obsavestring): Add declaration.
8236 * valops.c (find_overload_match): Resolve the object to
8237 a non-pointer type.
8238 If the object is a data member, search the object for the member
8239 and return with staticp set.
8240 Use SYMBOL_NATURAL_NAME instead of SYMBOL_CPLUS_DEMANGLED_NAME.
8241 Do not attempt to extract a function name from non-function types.
8242 If the extracted function name and the original name are the same,
8243 we don't have a C++ method.
8244
8d95cc3b
PA
8245 From Jan Kratochvil <jan.kratochvil@redhat.com>:
8246 * dwarf2read.c (new_symbol <DW_TAG_enumerator>): Call dwarf2_full_name.
94af9270
KS
8247
8248 * ada-lang.c (ada_lookup_symbol): Remove linkage_name parameters
8249 and arguments from symbol lookups.
8250 * ax-gdb.c (gen_expr): Likewise.
8251 * cp-namespace.c (cp_lookup_symbol_nonlocal, lookup_namespace_scope,
8252 cp_lookup_symbol_namespace, lookup_symbol_file, lookup_nested_type,
8253 lookup_possible_namespace_symbol): Likewise.
8254 * cp-support.c (read_in_psymtabs): Likewise.
8255 * cp-support.h (cp_lookup_symbol_nonlocal): Likewise.
8256 * language.h (la_lookup_symbol_nonlocal): Likewise.
8257 * scm-valprint.c (scm_inferior_print): Likewise.
8258 * solib-darwin.c (darwin_relocate_section_addresses): Likewise.
8259 * solib-svr.c (elf_lookup_lib): Likewise.
8260 * solib.c (show_auto_solib_add): Likewise.
8261 * solist.h (lookup_lib_global, solib_global_lookup): Likewise.
8262 * symmisc.c (maintenance_check_symtabs): Likewise.
8263 * symtab.c (lookup_symbol_in_language, lookup_symbol_aux,
8264 lookup_symbol_aux_local, lookup_symbol_aux_block,
8265 lookup_symbol_from_objfile, lookup_symbol_aux_symtabs,
8266 lookup_symbol_aux_psymtabs,basic_lookup_symbol_nonlocal,
8267 lookup_symbol_static, lookup_symbol_global, symbol_matches_domain,
8268 basic_lookup_transparent_type, find_main_psymtab,
8269 lookup_block_symbol): Likewise.
8270 * symtab.h (basic_lookp_symbol_nonlocal, lookup_symbol_static,
8271 lookup_symbol_global, lookup_symbol_aux_block,
8272 lookup_symbol_partial_symbol, lookup_block_symbol,
8273 lookup_global_symbol, value_maybe_namespace_elt): Likewise.
8274
9cb74f47
PM
82752010-03-09 Pierre Muller <muller@ics.u-strasbg.fr>
8276
8277 * python/python-internal.h: Include symtab.h.
8278
af6b7be1
JB
82792010-03-09 Joel Brobecker <brobecker@adacore.com>
8280 Pierre Muller <muller@ics.u-strasbg.fr>
e13eedd5
PM
8281
8282 * p-lang.c (is_pascal_string_type): Remove unneeded parentheses.
8283 * p-valprint.c (pascal_val_print): Remove undeed block and fix
8284 indentation.
8285
bad56014
TT
82862010-03-08 Tom Tromey <tromey@redhat.com>
8287
8288 * breakpoint.c (breakpoint_1): Add "QUIT".
8289
08105857
PA
82902010-03-08 Daniel Jacobowitz <dan@codesourcery.com>
8291 Pedro Alves <pedro@codesourcery.com>
8292
8293 * solib.c (solib_find): Replace extension if
8294 solib_symbols_extension is set in the target gdbarch.
8295 * arm-symbian-tdep.c (arm_symbian_init_abi): Set
8296 solib_symbols_extension to "sym".
8297 * gdbarch.sh (solib_symbols_extension): New variable.
8298 (pstring): New function.
8299 * gdbarch.h, gdbarch.c: Regenerate.
8300
7c953934
TT
83012010-03-08 Tom Tromey <tromey@redhat.com>
8302
8303 PR cli/9591:
8304 * NEWS: Update.
8305 * utils.c: Include main.h.
8306 (fputs_maybe_filtered): Don't paginate if `batch_flag'.
8307 (defaulted_query): Use default answer if `batch_flag'.
8308 * main.h (batch_flag): Declare.
8309 * main.c (batch_flag): New global.
8310 (captured_main): Remove 'batch'. Update.
8311
bbd2783e
KB
83122010-03-08 Kevin Buettner <kevinb@redhat.com>
8313
8314 From Richard Sandiford, Martin M. Hunt, Corinna Vinschen,
8315 and Kevin Buettner:
8316
8317 * remote-mips.c (rockhopper_ops): New target_ops struct.
8318 (MON_ROCKHOPPER): New mips_monitor_type.
8319 (read_hex_value): New function.
8320 (mips_request): Send 8-byte values with a 'T' packet. Read the
8d95cc3b 8321 packet argument as a string and use read_hex_value to parse it.
bbd2783e
KB
8322 (mips_exit_debug): Wait for response when using MON_ROCKHOPPER.
8323 (rockhopper_open): New function.
8324 (mips_wait): Read the PC, FP and SP fields as strings. Use
8325 read_hex_value to parse them and mips_set_register to commit them.
8326 (mips_set_register): New function.
8327 (mips_fetch_registers): Do not cast register value to "unsigned"
8328 when reading a MON_ROCKHOPPER 't' packet. Use mips_set_register.
8329 (mips_store_registers): Use a 'T' packet to set registers when
8330 using MON_ROCKHOPPER.
8331 (pmon_end_download): Don't run initEther if using MON_ROCKHOPPER
8332 and expect the total to be printed before the entry address.
8333 (_initialize_remote_mips): Initialize and add rockhopper_ops.
8334
566f3d17
KB
83352010-03-08 Kevin Buettner <kevinb@redhat.com>
8336
8337 * remote-mips.c (mips_fetch_word): Add new parameter, `valp'.
8338 Change return value to int. Store value fetched in location
8339 addressed by `val'. Use function's return value as success
8340 or failure indicator. Adjust all callers.
8341
9c8ee2ab 83422010-03-08 Pierre Muller <muller@ics.u-strasbg.fr>
f72d4b77
PM
8343
8344 * p-lang.c (is_pascal_string_type): Check that TYPE arg is non NULL.
8345
7155de5a
HZ
83462010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8347 Hui Zhu <teawater@gmail.com>
8348
8349 * record.c (record_open_1): Check tmp_to_stopped_by_watchpoint and
8350 tmp_to_stopped_data_address.
8351 (record_open): Reset tmp_to_stopped_by_watchpoint and
8352 tmp_to_stopped_data_address.
8353 * target.c (init_dummy_target): Add to_stopped_by_watchpoint and
8354 to_stopped_data_address.
8355
580879fc
HZ
83562010-03-08 Hui Zhu <teawater@gmail.com>
8357
8358 * i386-tdep.c (i386_process_record): Initialize regnum.
8359
b0fcb67f
JK
83602010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8361
8362 * symfile.c (addr_info_make_relative): New variable sect_name, use it.
8363 Do not warn on ".gnu.liblist" and ".gnu.conflict".
8364
08597104
JB
83652010-03-08 Joel Brobecker <brobecker@adacore.com>
8366
8367 Memory error when reading wrong core file.
8368 * solib-svr4.c (solib_svr4_r_map): catch and print all exception
8369 errors while reading the inferior memory, and return zero if
8370 an exception was raised.
8371
425b824a
MS
83722010-03-07 Michael Snyder <msnyder@vmware.com>
8373
ec6dbf37
MS
8374 * record.c (record_restore): Rename tmpu8 to rectype.
8375
648d0c8b
MS
8376 * i386-tdep.c (i386_record_lea_modrm_addr): Rename local variables
8377 tmpu8, tmpi16, tmpi32, tmpulongest to addr8, addr16, addr32, addr64.
8378
8379 (i386_record_push): Rename local tmpulongest to addr.
8380
8381 (i386_process_record): Rename local tmpulongest to addr.
8382
8383 Rename local variables tmpu16, tmpu32, tmpu64 to addr16, addr32,
8384 addr64.
955db0c0
MS
8385
8386 Rename local variable tmpu8 to opcode8 and regnum.
425b824a 8387
10760264
JB
83882010-03-07 Joel Brobecker <brobecker@adacore.com>
8389
8390 * remote.c (remote_get_ada_task_ptid): New function.
c8d5aac9 8391 (init_remote_ops): Set remote_ops.to_get_ada_task_ptid.
10760264 8392
b3c613f2
CF
83932010-03-06 Christopher Faylor <me+cygwin@cgf.cx>
8394
8395 * windows-nat.c: Reorganize #ifdef __CYGWIN__ considerations into one
8396 block. Define helper macros to reduce ifdefs in code.
8397 (get_module_name): Use cygwin_buf_t for buffer and __PMAX for buffer
8398 size. Call unadorned GetModuleFileNameEx rather than
8399 GetModuleFileNameEx*.
8400 (windows_make_so): Use __PMAX to denote maximum buffer size and
8401 cygwin_buf_t for buffer type. Use GetSystemDirectory{W,A} as
8402 appropriate.
8403 (get_image_name): Use __PMAX to denote maximum buffer size.
8404 (handle_load_dll): Likewise.
8405 (windows_pid_to_exec_file): Likewise.
8406 (windows_create_inferior): Add many accommodations for older Cygwin and
8407 non-Cygwin.
8408 (bad_GetModuleFileNameExW): Control inclusion of this function based on
8409 __USEWIDE conditional.
8410 (bad_GetModuleFileNameExA): Likewise.
8411 (_initialize_loadable): Just use real function names without the dyn_
8412 part since they are defined earlier.
8413
f870a310
TT
84142010-03-05 Corinna Vinschen <vinschen@redhat.com>
8415 Tom Tromey <tromey@redhat.com>
8416
8417 * utils.c (host_char_to_target): Add 'gdbarch' argument.
8418 (parse_escape): Likewise.
8419 * python/py-utils.c (unicode_to_target_string): Update.
8420 (unicode_to_target_python_string): Update.
8421 (target_string_to_unicode): Update.
8422 * printcmd.c (printf_command): Update.
8423 * p-exp.y (yylex): Update.
8424 * objc-exp.y (yylex): Update.
8425 * mi/mi-parse.c: Include charset.h.
8426 (mi_parse_escape): New function.
8427 (mi_parse_argv): Use it.
8428 * jv-exp.y (yylex): Update.
8429 * i386-cygwin-tdep.c (i386_cygwin_auto_wide_charset): New
8430 function.
8431 (i386_cygwin_init_abi): Call set_gdbarch_auto_wide_charset.
8432 * gdbarch.sh (auto_charset, auto_wide_charset): New.
8433 * gdbarch.c: Rebuild.
8434 * gdbarch.h: Rebuild.
8435 * defs.h (parse_escape): Update.
8436 * cli/cli-setshow.c: Include arch-utils.h.
8437 (do_setshow_command): Update.
8438 * cli/cli-cmds.c (echo_command): Update.
8439 * charset.h (target_charset, target_wide_charset): Update.
8440 * charset.c: Include arch-utils.h.
8441 (target_charset_name): Default to "auto".
8442 (target_wide_charset_name): Likewise.
8443 (show_target_charset_name): Handle "auto".
8444 (show_target_wide_charset_name): Likewise.
8445 (be_le_arch): New global.
8446 (set_be_le_names): Add 'gdbarch' argument.
8447 (validate): Likewise. Don't call set_be_le_names.
8448 (set_charset_sfunc, set_host_charset_sfunc)
8449 (set_target_charset_sfunc, set_target_wide_charset_sfunc):
8450 Update.
8451 (target_charset): Add 'gdbarch' argument.
8452 (target_wide_charset): Likewise. Remove 'byte_order' argument.
8453 (auto_target_charset_name): New global.
8454 (default_auto_charset, default_auto_wide_charset): New functions.
8455 (_initialize_charset): Set auto_target_charset_name. Allow "auto"
8456 for target charsets. Copy result of nl_langinfo. Use GetACP if
8457 USE_WIN32API.
8458 * c-lang.c (charset_for_string_type): Add 'gdbarch' argument,
8459 remove 'byte_order' argument. Update.
8460 (classify_type): Likewise.
8461 (c_emit_char): Update.
8462 (c_printchar): Update.
8463 (c_printstr): Update.
8464 (c_get_string): Update.
8465 (evaluate_subexp_c): Update.
8466 * arch-utils.h (default_auto_charset, default_auto_wide_charset):
8467 Declare.
8468 * python/python.c (gdbpy_target_charset): New function.
8469 (gdbpy_target_wide_charset): Likewise.
8470 (GdbMethods): Update.
8471 * NEWS: Update.
8472
4e7386b0
UW
84732010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
8474
8475 * symfile.c (build_section_addr_info_from_objfile): Do not mask
8476 off high address bits.
8477
aab48ede
UW
84782010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
8479
8480 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Extract
8481 address as UnsignedLongLong, not LongLong.
8482
8eeafb51 84832010-03-05 Kevin Buettner <kevinb@redhat.com>
c8d5aac9 8484 Pedro Alves <pedro@codesourcery.com>
8eeafb51
KB
8485
8486 * remote-mips.c (gdbthread.h): Include.
8487 (remote_mips_ptid): Declare.
8488 (mips_error): Only mourn the inferior when inferior_ptid is non-null.
8489 (common_open): Set inferior_ptid, add it as an inferior, and
8490 as a thread too. Delete FIXME comment regarding start_remote().
8491 (mips_close): Invoke generic_mourn_inferior().
8492 (mips_kill): Make sure that target_mourn_inferior is invoked.
8493 (mips_mourn_inferior): Don't invoke generic_mourn_inferior, as
8494 it's now invoked from mips_close().
8495 (mips_load): Don't null out inferior_ptid. Don't call
8496 clear_symtab_users().
8497 (mips_thread_alive, mips_pid_to_str): New functions.
8498 (_initialize_remote_mips): Initialize remote_mips_ptid. Initialize
8499 to_thread_alive and to_pid_to_str operations.
8500
ae411497
TT
85012010-03-04 Tom Tromey <tromey@redhat.com>
8502
8503 * dwarf2read.c (skip_one_die) <DW_FORM_ref_addr>: Use offset size
8504 in DWARF 3 and later.
8505 (read_attribute_value) <DW_FORM_ref_addr>: Likewise.
8506
0e0b460e
KS
85072010-03-04 Keith Seitz <keiths@redhat.com>
8508
8509 * linespec.c (decode_line_1): Update comments for is_quote_enclosed.
8510 If the filename portion of the linespec was quoted, recheck the
8511 remainder for additional quoting.
8512 (locate_first_half): Skip over completer chars, too.
8513
1b93ff13
TT
85142010-03-04 Tom Tromey <tromey@redhat.com>
8515
8516 * printcmd.c (printf_command): Pass dummy argument to
8517 printf_filtered.
8518
fc36e839
DE
85192010-03-04 Doug Evans <dje@google.com>
8520
111f853c
DE
8521 * arm-tdep.c (arm_make_stub_cache): Delete unused locals reg,
8522 unwound_fp.
8523
fc36e839
DE
8524 * arm-tdep.c (arm_stub_unwind_sniffer): Add comment.
8525
c7437ca6
PA
85262010-03-04 Pedro Alves <pedro@codesourcery.com>
8527
8528 * breakpoint.c (update_watchpoint): Create a sentinel location if
8529 the software watchpoint isn't watching any memory.
8530 (breakpoint_address_bits): Skip dummy software watchpoint locations.
8531
58dadb1b
PA
85322010-03-04 Pedro Alves <pedro@codesourcery.com>
8533
8534 * utils.c (fputs_maybe_filtered): Check if there's already a top
8535 level interpreter before dereferencing it. If there isn't one,
8536 don't paginate either.
8537
50e98be4
DJ
85382010-03-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
8539
8540 * arm-tdep.c (arm_pc_is_thumb): Add heuristic that tries to get
8541 the state right when single stepping.
8542 (arm_get_next_pc_raw, thumb_get_next_pc_raw): New functions.
8543 Get the next PC along with the instruction state.
8544 (thumb_get_next_pc): Remove.
8545 (arm_get_next_pc): Modified to use arm_get_next_pc_raw.
8546
2e3ceee9
HZ
85472010-03-04 Hui Zhu <teawater@gmail.com>
8548
8549 * i386-tdep.c (i386_process_record): Change "addr" to "tmpu64".
8550
390a8aca
PA
85512010-03-03 Pedro Alves <pedro@codesourcery.com>
8552
8553 * utils.c (fputs_maybe_filtered): Always disable pagination if the
8554 top level interpreter is MI.
8555
9355b391
SS
85562010-03-03 Stan Shebs <stan@codesourcery.com>
8557
8558 * remote.c (remote_download_tracepoint): Iterate over locations.
8559 * tracepoint.c (validate_actionline): Ditto.
8560 (encode_actions): Add location argument.
8561 (trace_dump_command): Check all locations to see if stepping
8562 frame.
390a8aca 8563
8685c86f
L
85642010-03-03 H.J. Lu <hongjiu.lu@intel.com>
8565 Eli Zaretskii <eliz@gnu.org>
8566
8567 * NEWS: Add X86 general purpose registers section.
8568
e8f781e2
TT
85692010-03-03 Tom Tromey <tromey@redhat.com>
8570
8571 PR mi/11098:
8572 * varobj.c (install_new_value): Handle case where new print_value
8573 is NULL.
8574
a0e0ef55
TT
85752010-03-03 Dainis Jonitis <jonitis@gmail.com>
8576
8577 PR gdb/11345:
8578 * printcmd.c (printf_command): Print end of format string using
8579 printf_filtered.
8580
a58d7472
TT
85812010-03-02 Tom Tromey <tromey@redhat.com>
8582
8583 * mi/mi-cmd-break.c (mi_read_next_line): Add missing 'void'.
8584 * defs.h (read_command_lines_1): Add missing 'void'.
8585 * cli/cli-script.c (recurse_read_control_structure): Add missing
8586 'void'.
8587 (read_next_line): Likewise.
8588 (read_command_lines_1): Likewise.
8589
ce50d78b
UW
85902010-03-02 Ulrich Weigand <uweigand@de.ibm.com>
8591
8592 * spu-tdep.c (spu_analyze_prologue): Track instruction to
8593 store backchain as part of prologue.
8594
7e9af34a
DJ
85952010-03-02 Daniel Jacobowitz <dan@codesourcery.com>
8596
8597 * progspace.c (update_address_spaces): Update inferior address spaces
8598 also.
8599
01637564
DE
86002010-03-02 Doug Evans <dje@google.com>
8601
8602 * dwarf2read.c (add_partial_subprogram): Add missing baseaddr to
8603 lowpc,highpc args to addrmap_set_empty.
8604
1ba53b71
L
86052010-03-02 H.J. Lu <hongjiu.lu@intel.com>
8606
8607 * amd64-tdep.c (amd64_byte_names): New.
8608 (amd64_word_names): Likewise.
8609 (amd64_dword_names): Likewise.
8610 (amd64_pseudo_register_name): Likewise.
8611 (amd64_pseudo_register_read): Likewise.
8612 (amd64_pseudo_register_write): Likewise.
8613 (amd64_init_abi): Set num_byte_regs, num_word_regs, num_dword_regs
8614 and num_mmx_regs. Call set_gdbarch_pseudo_register_read,
8615 set_gdbarch_pseudo_register_write and
8616 set_tdesc_pseudo_register_name. Don't call
8617 set_gdbarch_num_pseudo_regs. Don't set mm0_regnum.
8618
8619 * i386-tdep.c (i386_num_mmx_regs): Removed.
8620 (i386_num_pseudo_regs): Likewise.
8621 (i386_byte_names): New.
8622 (i386_word_names): Likewise.
8623 (i386_byte_regnum_p): Likewise.
8624 (i386_word_regnum_p): Likewise.
8625 (i386_mmx_regnum_p): Updated.
8626 (i386_pseudo_register_name): Make it global. Handle byte and
8627 word pseudo-registers.
8628 (i386_pseudo_register_read): Likewise.
8629 (i386_pseudo_register_write): Likewise.
8630 (i386_pseudo_register_type): Handle byte, word and dword
8631 pseudo-registers
8632 (i386_register_reggroup_p): Don't include pseudo
8633 registers, except for MXX, in any register groups. Don't
8634 include pseudo byte, word, dword registers in general_reggroup.
8635 (i386_gdbarch_init): Set num_byte_regs, num_word_regs,
8636 num_dword_regs, al_regnum, ax_regnum and eax_regnum. Put MMX
8637 pseudo-registers after word pseudo-registers. Call
8638 set_gdbarch_num_pseudo_regs after calling gdbarch_init_osabi.
8639
8640 * i386-tdep.h (gdbarch_tdep): Add num_mmx_regs, num_byte_regs,
8641 al_regnum, num_word_regs, ax_regnum, num_dword_regs and
8642 eax_regnum.
8643 (i386_byte_regnum_p): New.
8644 (i386_word_regnum_p): Likewise.
8645 (i386_dword_regnum_p): Likewise.
8646 (i386_pseudo_register_name): Likewise.
8647 (i386_pseudo_register_read): Likewise.
8648 (i386_pseudo_register_write): Likewise.
8649
a6f5ef51
L
86502010-03-01 H.J. Lu <hongjiu.lu@intel.com>
8651
8652 * target-descriptions.c (tdesc_type): Remove
8653 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
8654 (tdesc_predefined_types): Likewise.
8655 (tdesc_gdb_type): Likewise. Pass NULL to append_flags_type_flag
8656 if flag name is empty.
8657 (maint_print_c_tdesc_cmd): Handle TDESC_TYPE_FLAGS.
8658
8659 * features/i386/32bit-core.xml: Define i386_eflags.
8660 * features/i386/64bit-core.xml: Likewise.
8661
8662 * features/i386/32bit-sse.xml: Define i386_mxcsr.
8663 * features/i386/64bit-sse.xml: Likewise.
8664
8665 * features/i386/amd64-linux.c: Regenerated.
8666 * features/i386/amd64.c: Likewise.
8667 * features/i386/i386-linux.c: Likewise.
8668 * features/i386/i386.c: Likewise.
8669
f5dff777
DJ
86702010-03-01 Daniel Jacobowitz <dan@codesourcery.com>
8671
8672 * gdbtypes.c (append_composite_type_field_raw): New.
8673 (append_composite_type_field_aligned): Use the new function.
8674 * gdbtypes.h (append_composite_type_field_raw): Declare.
8675 * target-descriptions.c (struct tdesc_type_field): Add start and end.
8676 (struct tdesc_type_flag): New type.
8677 (struct tdesc_type): Add TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS to
8678 kind. Add size to u.u. Add u.f for flags.
8679 (tdesc_gdb_type): Handle TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS.
8680 (tdesc_free_type): Likewise.
8681 (tdesc_create_struct, tdesc_set_struct_size, tdesc_create_flags): New.
8682 (tdesc_add_field): Handle TDESC_TYPE_STRUCT.
8683 (tdesc_add_bitfield, tdesc_add_flag): New.
8684 * target-descriptions.h (tdesc_create_struct, tdesc_set_struct_size)
8685 (tdesc_create_flags, tdesc_add_bitfield, tdesc_add_flag): Declare.
8686 * xml-tdesc.c (struct tdesc_parsing_data): Rename current_union to
8687 current_type. Add current_type_size and current_type_is_flags.
8688 (tdesc_start_union): Clear the new fields.
8689 (tdesc_start_struct, tdesc_start_flags): New.
8690 (tdesc_start_field): Handle struct fields, including bitfields.
8691 (field_attributes): Make type optional. Add start and end.
8692 (union_children): Rename to struct_union_children.
8693 (union_attributes): Rename to struct_union_attributes. Add optional
8694 size.
8695 (flags_attributes): New.
8696 (feature_children): Add struct and flags.
8697 * features/gdb-target.dtd: Add flags and struct to features.
8698 Make field type optional. Add field start and end.
8699
90884b2b
L
87002010-03-01 H.J. Lu <hongjiu.lu@intel.com>
8701
8702 * amd64-linux-nat.c (AMD64_LINUX_USER64_CS): New.
8703 (amd64_linux_read_description): Likewise.
8704 (_initialize_amd64_linux_nat): Set to_read_description to
8705 amd64_linux_read_description.
8706
8707 * amd64-linux-tdep.c: Include "features/i386/amd64-linux.c".
8708 (amd64_linux_register_name): Removed.
8709 (amd64_linux_register_type): Likewise.
8710 (amd64_linux_core_read_description): New.
8711 (amd64_linux_init_abi): Set target description to
8712 tdesc_amd64_linux if needed. Support orig_rax in target
8713 description. Don't call set_gdbarch_register_name nor
8714 set_gdbarch_register_type. Call
8715 set_gdbarch_core_read_description.
8716 (_initialize_amd64_linux_tdep): Call
8717 initialize_tdesc_amd64_linux.
8718
8719 * amd64-linux-tdep.h (tdesc_amd64_linux): New.
8720
8721 * amd64-tdep.c: Include "features/i386/amd64.c".
8722 (amd64_register_names): Removed.
8723 (amd64_register_name): Likewise.
8724 (amd64_register_type): Likewise.
8725 (amd64_init_abi): Set num_core_regs and register_names. Set
8d95cc3b 8726 target description to tdesc_amd64 if needed. Don't call
90884b2b
L
8727 set_gdbarch_register_name nor set_gdbarch_register_type.
8728 (_initialize_amd64_tdep): New.
8729
8730 * i386-linux-nat.c (i386_linux_read_description): New.
8731 (_initialize_i386_linux_nat): Set to_read_description to
8732 i386_linux_read_description.
8733
8734 * i386-linux-tdep.c: Include "features/i386/i386-linux.c".
8735 (i386_linux_register_name): Removed.
8736 (i386_linux_core_read_description): New.
8737 (i386_linux_read_description): Likewise.
8738 (i386_linux_init_abi): Don't call set_gdbarch_register_name.
8739 Set target description to tdesc_i386_linux if needed. Support
8740 orig_eax. Set register_reggroup_p. Call
8741 set_gdbarch_core_read_description.
8742 (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_linux.
8743
8744 * i386-linux-tdep.h (tdesc_i386_linux): New.
8745
8746 * i386-nto-tdep.c (i386nto_regset_id): Replace I386_NUM_FREGS
8747 with I387_NUM_REGS.
8748
8749 * i386-tdep.c: Include "features/i386/i386.c".
8750 (i386_register_names): Make it const.
8751 (i386_mmx_names): Likewise.
8752 (i386_num_register_names): Removed.
8753 (i386_register_name): Likewise.
8754 (i386_eflags_type): Likewise.
8755 (i386_mxcsr_type): Likewise.
8756 (i386_sse_type): Likewise.
8757 (i386_register_type): Likewise.
8758 (i387_ext_type): Call tdesc_find_type instead of arch_float_type.
8759 (i386_pseudo_register_name): New.
8760 (i386_pseudo_register_type): Likewise.
8761 (i386_mmx_type): Make it static.
8762 (i386_gdbarch_init): Check arch. Replace I386_NUM_FREGS with
8763 I387_NUM_REGS. Set num_core_regs and register_names. Don't
8764 call set_gdbarch_register_name nor set_gdbarch_register_type.
8765 Set register_reggroup_p. Set target description to tdesc_i386
8766 if needed. Call set_tdesc_pseudo_register_type,
8767 set_tdesc_pseudo_register_name and tdesc_use_registers.
8768 (_initialize_i386_tdep): Call initialize_tdesc_i386.
8769 initialize_tdesc_x86_64.
8770
8771 * i386-tdep.h (gdbarch_tdep): Remove i386_eflags_type,
8772 i386_mxcsr_type and i386_sse_type. Add num_core_regs,
8773 register_names, tdesc and register_reggroup_p.
8774 (I386_NUM_FREGS): Removed.
8775 (i386_eflags_type): Likewise.
8776 (i386_mxcsr_type): Likewise.
8777 (i386_mmx_type): Likewise.
8778 (i386_sse_type): Likewise.
8779 (i386_register_name): Likewise.
8780 (i386_regnum): Add I386_MXCSR_REGNUM.
8781 (I386_SSE_NUM_REGS): Defined with I386_MXCSR_REGNUM.
8782
8783 * i387-tdep.h (I387_NUM_REGS): New.
8784
8785 * regformats/i386/i386-linux.dat: Generated.
8786 * regformats/i386/i386.dat: Likewise.
8787 * regformats/i386/amd64-linux.dat: Likewise.
8788 * regformats/i386/amd64.dat: Likewise.
8789
8790 * regformats/reg-i386-linux.dat: Removed.
8791 * regformats/reg-i386.dat: Likewise.
8792 * regformats/reg-x86-64-linux.dat: Likewise.
8793 * regformats/reg-x86-64.dat: Likewise.
8794
d0d0ab16
CV
87952010-03-01 Corinna Vinschen <vinschen@redhat.com>
8796
8797 * remote-fileio.c (remote_fileio_func_rename): Use Cygwin 1.7
8798 cygwin_conv_path API rather than the deprecated
8799 cygwin_conv_to_full_posix_path.
8800 * windows-nat.c:
8801 (GetModuleFileNameExA): Undefine for Cygwin.
8802 (GetModuleFileNameExW): Define for Cygwin.
8803 (get_module_name): Change size of pathbuf to PATH_MAX for Cygwin.
8804 Call GetModuleFileNameExW and convert path to POSIX using
8805 cygwin_conv_path.
8806 (windows_make_so): Always define p. Drop unused variable m.
8807 Don't use Win32 functions to check file existance, rather use
8808 access on Cygwin. Fetch system directory using GetSystemDirectoryW.
8809 Use canonicalize_file_name to get full path.
8810 (get_image_name): Use wcstombs, rather than WideCharToMultiByte
8811 to convert Unicode pathname to multibyte on Cygwin. Otherwise,
8812 use correct target buffer size in call to WideCharToMultiByte.
8813 (handle_load_dll): Change size of dll_buf to PATH_MAX for Cygwin.
8814 (windows_pid_to_exec_file): Change size of path to PATH_MAX for Cygwin.
8815 (windows_create_inferior): Convert all paths and arguments to wchar_t
8816 and use CreateProcessW on Cygwin.
8817 (_initialize_windows_nat): Disable DOS-style path warning on Cygwin.
8818 (bad_GetModuleFileNameExA): Undefine for Cygwin.
8819 (bad_GetModuleFileNameExW): Define for Cygwin.
8820 (_initialize_loadable): Load GetModuleFileNameExW into
8821 dyn_GetModuleFileNameExW on Cygwin. Don't load ANSI function on Cygwin.
8822
dc00d89f
PM
88232010-02-28 Phil Muldoon <pmuldoon@redhat.com>
8824
8825 PR python/11036
8826 * python/py-frame.c (frapy_read_var): Add block argument and logic
8827 to cope with user provided blocks.
8828
0e095b7e
JK
88292010-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8830
8831 * infcall.c (call_function_by_hand): Remove gdb_assert on sp and old_sp.
8832 New comment.
8833
2f9e05b4
CV
88342010-02-28 Corinna Vinschen <vinschen@redhat.com>
8835
8836 * Makefile.in (SUBDIR_MI_OBS): Move mi-common.o from here...
8837 (COMMON_OBS): ... to here since it's used unconditionally.
8838 (SUBDIR_MI_SRCS): Move mi/mi-common.c from here...
8839 (SFILES): To here.
8840
eb195664
DD
88412010-02-26 David Daney <ddaney@caviumnetworks.com>
8842
8843 * mips-linux-tdep.c: Update struct sigframe comments.
8844 (SIGFRAME_CODE_OFFSET): Delete macro.
8845 (mips_linux_o32_sigframe_init): Calculate sigcontext_base using
8846 this_frame's sp.
8847 (mips_linux_n32n64_sigframe_init): Same.
8848
97b0f3e2
KB
88492010-02-26 Kevin Buettner <kevinb@redhat.com>
8850
8851 * remote-mips.c (mips_load): Don't use pseudo-register when
8852 invalidating regcache.
8853
4069ebbe
DJ
88542010-02-26 Daniel Jacobowitz <dan@codesourcery.com>
8855
8856 * arm-tdep.c (thumb_get_next_pc): Correct conditional branch opcode.
8857
05071a4d
PA
88582010-02-26 Pedro Alves <pedro@codesourcery.com>
8859
8860 * NEWS: Add "New targets" section, and mention ARM Symbian
8861 support.
8862
6063c216
UW
88632010-02-26 Ulrich Weigand <uweigand@de.ibm.com>
8864
8865 * dwarf2loc.c (struct piece_closure): Remove ARCH member,
8866 add ADDR_SIZE member.
8867 (allocate_piece_closure): Update.
8868 (copy_pieced_value_closure): Likewise.
8869 (dwarf2_evaluate_loc_desc): Likewise.
8870 (read_pieced_value): Use DWARF address size instead of
8871 GDB's gdbarch_addr_bit as size of values on the DWARF stack.
8872
5107b149 88732010-02-26 Phil Muldoon <pmuldoon@redhat.com>
c8d5aac9 8874 Tom Tromey <tromey@redhat.com>
5107b149
PM
8875
8876 * python/py-type.c (typy_lookup_typename): Add in block argument.
8877 If provided restrict lookup to specified blocks.
8878 (gdbpy_lookup_type): Likewise.
8879 (typy_lookup_type): Likewise.
8880
78664fa3 88812010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
8d95cc3b 8882
78664fa3
PA
8883 Symbian config
8884
8885 gdb/
8886 * arm-symbian-tdep.c: New.
8887 * configure.tgt (arm*-*-symbianelf*): New target.
8888 (*-*-symbianelf*): New OS.
8889 * osabi.c (gdb_osabi_names): Add Symbian.
8890 * defs.h (gdb_osabi): Add GDB_OSABI_SYMBIAN.
8891 * Makefile.in (ALL_TARGET_OBJS): Add arm-symbian-tdep.o.
8892 (ALLDEPFILES): Add arm-symbian-tdep.c.
8893
eb73e134
DJ
88942010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
8895
8896 * symfile.c (find_lowest_section): Include SEC_ALLOC sections.
8897
46ef47e5
PA
88982010-02-24 Pedro Alves <pedro@codesourcery.com>
8899
8900 * mi/mi-main.c (mi_cmd_execute): Fix typo.
8901
f3e9a817 89022010-02-24 Phil Muldoon <pmuldoon@redhat.com>
8d95cc3b 8903 Tom Tromey <tromey@redhat.com>
f3e9a817
PM
8904 Thiago Jung Bauermann <bauerman@br.ibm.com>
8905
8906 * python/python.c (_initialize_python): Call
8907 gdbpy_initialize_symtabs, gdbpy_initialize_symbols and
8908 gdbpy_initialize_blocks.
8909 * python/python-internal.h: Declare struct symbol, block and
8910 symtab_and_line. Declare block_object_type and
8911 symbol_object_type
8912 (gdbpy_lookup_symbol gdbpy_block_for_pc)
8913 (symtab_and_line_to_sal_object, symtab_to_symtab_object)
8914 (symbol_to_symbol_object, block_to_block_object)
8915 (gdbpy_initialize_symtabs,gdbpy_initialize_symbols)
8916 (gdbpy_initialize_blocks ): Declare.
8917 * python/py-frame.c (frapy_block, frapy_function, frapy_find_sal)
8918 (frapy_select): Add methods.
8919 (frapy_read_var): Add symbol branch.
8920 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-symbol, py-symtab,
8921 py-block.
8922 (SUBDIR_PYTHON_SRCS): Likewise.
8923 (py-symbol.o): New rule.
8924 (py-symtab.o): Likewise.
8925 (py-block.o): Likewise.
8926 * python/py-symbol.c: New file.
8927 * python/py-symtab.c: Likewise.
8928 * python/py-block.c: Likewise.
8929
24291992
PA
89302010-02-24 Pedro Alves <pedro@codesourcery.com>
8931
8932 PR gdb/11321
8933
8934 * inferior.h (prepare_for_detach): Declare.
8935 (struct inferior) <detaching>: New field.
8936 * infrun.c (prepare_for_detach): New.
8937 (handle_inferior_event) <random signal>: Don't stop if detaching.
8938 * target.c (target_detach): Call prepare_for_detach.
8939
fc1cf338
PA
89402010-02-24 Pedro Alves <pedro@codesourcery.com>
8941
8942 Per-process displaced stepping queue.
8943
8944 * infrun.c (displaced_step_ptid, displaced_step_request_queue)
8945 (displaced_step_gdbarch, displaced_step_closure,
8946 (displaced_step_original, displaced_step_copy): Move globals to
8947 this...
8948 (struct displaced_step_inferior_state): ... new structure.
8949 (displaced_step_inferior_states): New global.
8950 (get_displaced_stepping_state, add_displaced_stepping_state)
8951 (remove_displaced_stepping_state, infrun_inferior_exit): New
8952 functions.
8953 (displaced_step_clear): Add displaced_step_inferior_state
8954 parameter, and adjust to handle it.
8955 (displaced_step_clear_cleanup): Parameter is now a
8956 displaced_step_inferior_state. Adjust.
8957 (displaced_step_prepare): Adjust.
8958 (displaced_step_fixup, displaced_step_fixup)
8959 (infrun_thread_ptid_changed, resume): Adjust.
8960 (init_wait_for_inferior): Don't call displaced_step_clear.
8961 (infrun_thread_stop_requested): Rewrite.
8962 (_initialize_infrun): Install infrun_inferior_exit as
8963 inferior_exit observer.
8964
0723dbf5
PA
89652010-02-24 Pedro Alves <pedro@codesourcery.com>
8966
8967 * inferior.h (ptid_match): Declare.
8968 * infrun.c (ptid_match): New.
8969 * remote.c (queued_stop_reply): Rewrite and use ptid_match.
8970 (handle_notification): Add debug output.
8971 * linux-nat.c (ptid_match): Delete.
8972
09de9781
DM
89732010-02-24 David S. Miller <davem@davemloft.net>
8974
8975 * gdb_ptrace.h (PT_SYSCALL): If PTRACE_SYSCALL is available, use it.
8976 * syscalls/sparc-linux.xml: New.
8977 * syscalls/sparc64-linux.xml: New.
8978 * Makefile.in (XML_SYSCALL_FILES): Add new syscall XML files.
8979 * sparc-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC32): Define.
8980 (sparc32_linux_get_syscall_number): New function.
8981 (sparc32_linux_init_abi): Set syscall XML file name and hook up
8982 syscall number fetcher.
8983 * sparc64-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC64): Define.
8984 (sparc64_linux_get_syscall_number): New function.
8985 (sparc64_linux_init_abi): Set syscall XML file name and hook up
8986 syscall number fetcher.
8987
a79b8f6e
VP
89882010-02-24 Vladimir Prus <vladimir@codesourcery.com>
8989
8990 Multiexec MI
8991
8992 * breakpoint.c (clear_syscall_counts): Take struct inferior*.
8993 * inferior.c (add_inferior_silent): Notify inferior_added
8994 observer.
8995 (delete_inferior_1): Notify inferior_removed observer.
8996 (exit_inferior_1): Pass inferior, not pid, to observer.
8997 (inferior_appeared): Likewise.
8998 (add_inferior_with_spaces): New.
8999 (add_inferior_command): Use the above.
9000 * inferior.h (delete_inferior_1, add_inferior_with_spaces):
9001 Declare.
9002
9003 * inflow.c (inflow_inferior_exit): Likewise.
9004 * jit.c (jit_inferior_exit_hook): Likewise.
9005
9006 * mi/mi-cmds.c (mi_cmds): Register add-inferior and
9007 remove-inferior.
9008 * mi/mi-cmds.h (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
9009 * mi/mi-interp.c (mi_inferior_added, mi_inferior_removed): New.
9010 (report_initial_inferior): New.
9011 (mi_inferior_removed): Register the above. Make sure
9012 inferior_added observer is called on the first inferior.
9013 (mi_new_thread, mi_thread_exit): Thread group is now identified by
9014 inferior number, not pid.
9015 (mi_solib_loaded, mi_solib_unloaded): Report which inferiors are
9016 affected.
9017 * mi/mi-main.c (current_context): New.
9018 (proceed_thread_callback): Use typed closure.
9019 Proceed everything if pid is 0. Most implementation split into
9020 (proceed_thread): ... this.
9021 (run_one_inferior): New.
9022 (mi_cmd_exec_continue, mi_cmd_exec_interrupt, mi_cmd_exec_run):
9023 Adjust for multiexec behaviour.
9024 (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
9025 (mi_cmd_execute): Handle the 'thread-group' option here.
9026 Do some extra checks.
9027 * mi-parse.c (mi_parse): Handle the --all and --thread-group
9028 options.
9029 * mi-parse.h (struct mi_parse): New fields all and thread_group.
9030
115d30f9
VP
90312010-02-24 Vladimir Prus <vladimir@codesourcery.com>
9032
9033 Make -exec-run a proper MI commands.
9034
9035 * mi/mi-cmds.h (mi_cmd_exec_run): Declare.
9036 * mi/mi-cmds.c (mi_cmds): Adjust.
9037 * mi/mi-main.c (mi_cmd_exec_run): New.
9038
06cd862c
PA
90392010-02-24 Pedro Alves <pedro@codesourcery.com>
9040 Stan Shebs <stan@codesourcery.com>
9041
9042 * tracepoint.h (set_traceframe_number)
9043 (cleanup_restore_current_traceframe): Declare.
9044 * tracepoint.c (set_traceframe_number): New.
9045 (struct current_traceframe_cleanup): New.
9046 (do_restore_current_traceframe_cleanup)
9047 (restore_current_traceframe_cleanup_dtor)
9048 (make_cleanup_restore_current_traceframe): New.
9049 * infrun.c: Include tracepoint.h.
9050 (fetch_inferior_event): Switch out and in of tfind mode.
9051
ab92d69b
PA
90522010-02-24 Pedro Alves <pedro@codesourcery.com>
9053
9054 * breakpoint.c (breakpoint_init_inferior): Also delete
9055 bp_shlib_event breakpoints.
9056 * solib-frv.c (enable_break): Remove call to
9057 remove_solib_event_breakpoints.
9058 * solib-svr4.c (enable_break): Ditto.
9059 * solib-darwin.c (darwin_solib_create_inferior_hook): Ditto.
9060 * solib-pa64.c (pa64_solib_create_inferior_hook): Ditto.
9061 * solib-som.c (som_solib_create_inferior_hook): Ditto.
9062 * solib-spu.c (spu_enable_break): Ditto.
9063
e707a91d
PA
90642010-02-23 Harald Koenig <H.Koenig@science-computing.de>
9065
9066 * c-exp.y (token_and_value): s/union YYSTYPE/YYSTYPE.
9067
cfce2ea2
PA
90682010-02-23 Harald Koenig <H.Koenig@science-computing.de>
9069
9070 * varobj.c (varobj_update): Avoid non-constants in initializers.
9071
05566b3b
TT
90722010-02-23 Tom Tromey <tromey@redhat.com>
9073
9074 * dwarf2loc.c (read_pieced_value) <DWARF_VALUE_STACK>: Correctly
9075 handle big-endian values.
9076 (dwarf2_evaluate_loc_desc) <DWARF_VALUE_STACK>: Likewise.
9077
85d721b8
PA
90782010-02-22 Pedro Alves <pedro@codesourcery.com>
9079
9080 PR9605
9081
9082 gdb/
9083 * breakpoint.c (insert_bp_location): If inserting the read
9084 watchpoint failed, fallback to an access watchpoint.
9085 (bpstat_check_watchpoint): Stop for read watchpoint triggers even
9086 if the value changed, if not watching the same memory for writes.
9087 (watchpoint_locations_match): Add comment.
9088 (update_global_location_list): Copy the location's watchpoint type.
9089 * i386-nat.c (i386_length_and_rw_bits): It's an internal error to
9090 handle read watchpoints here.
9091 (i386_insert_watchpoint): Read watchpoints aren't supported.
9092 * remote.c (remote_insert_watchpoint): Return 1 for unsupported
9093 packets.
9094 * target.h (target_insert_watchpoint): Update description.
9095
48ea67a7
TT
90962010-02-19 Tom Tromey <tromey@redhat.com>
9097
9098 * p-typeprint.c (pascal_type_print_varspec_prefix): Update.
9099 * m2-typeprint.c (m2_print_type): Update.
9100 * gdbtypes.c (recursive_dump_type): Update.
9101 (copy_type_recursive): Update.
9102 * c-typeprint.c (c_type_print_varspec_prefix): Update.
9103 (c_type_print_base): Update.
9104 * gdbtypes.h (TYPE_CODE_TEMPLATE, TYPE_CODE_TEMPLATE_ARG):
9105 Remove.
9106 (struct cplus_struct_type) <ntemplate_args>: Remove.
9107 <struct template_arg>: Remove.
9108 <is_dynamic>: Move earlier.
9109 (TYPE_TEMPLATE_ARGS): Remove.
9110 (TYPE_NTEMPLATE_ARGS): Remove.
9111 (TYPE_TEMPLATE_ARG): Remove.
9112
48e32051
TT
91132010-02-19 Tom Tromey <tromey@redhat.com>
9114
9115 PR c++/8693, PR c++/9496:
9116 * cp-namespace.c (cp_lookup_nested_type): Handle TYPE_CODE_UNION.
9117 * c-exp.y (lex_one_token): Rename from yylex. Don't call
9118 write_dollar_variable. Don't try to classify NAME tokens.
9119 (token_and_value): New type.
9120 (token_fifo, popping, name_obstack): New globals.
9121 (classify_name): New function.
9122 (classify_inner_name): Likewise.
9123 (yylex): Likewise.
9124 (VARIABLE): Now has type sval.
9125 (exp : VARIABLE): Call write_dollar_variable.
9126 (qualified_name): Use TYPENAME, not typebase. Add production for
9127 multiple "::" instances.
9128 (variable): Use name_not_typename.
9129 (qualified_type): Remove.
9130 (typebase): Update.
9131
672d9c23
JK
91322010-02-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9133
9134 * symfile.c (addr_info_make_relative): Extend comment. Move SECT to
9135 a more inner block. Initialize ADDR by LOWER_OFFSET only if it was
9136 found by bfd_get_section_by_name.
9137 * symfile.h (struct section_addr_info) <sectindex>: New comment.
9138
bfbf3774
JB
91392010-02-19 Joel Brobecker <brobecker@adacore.com>
9140
9141 * NEWS: Add new "[...] since 7.1" section. Rename the "[...] since
9142 7.0 section" into "Changes in 7.1".
9143
6756b09b 91442010-02-19 Joel Brobecker <brobecker@adacore.com>
9145
9146 GDB 7.1 branch created (branch timestamp: 2010-02-18 20:00 UTC)
9147 * version.in: Bump version to 7.1.50.20100219-cvs.
9148
202b96c1
PA
91492010-02-18 Harald Koenig <H.Koenig@science-computing.de>
9150
9151 * mi/mi-main.c (mi_cmd_exec_jump): Drop unneeded `return'.
9152 * symfile.c (symfile_map_offsets_to_segments): Fix assertion.
9153
de2e5182
TT
91542010-02-17 Tom Tromey <tromey@redhat.com>
9155
9156 * NEWS: Add Python API Improvements section.
9157
7280022e
DJ
91582010-02-18 Daniel Jacobowitz <dan@codesourcery.com>
9159
9160 * NEWS: Correct typo.
9161
6f451e5e
TT
91622010-02-17 Tom Tromey <tromey@redhat.com>
9163
9164 * objfiles.c (gdb_bfd_ref): Handle abfd==NULL.
9165
012836ea
JK
91662010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
9167
9168 * symfile.c (build_section_addr_info_from_objfile): Include sections
9169 only if they are SEC_ALLOC or SEC_LOAD.
9170
d182d057
L
91712010-02-17 H.J. Lu <hongjiu.lu@intel.com>
9172
9173 PR shlibs/11293
9174 * solib-svr4.c (enable_break): Check size of CORE_ADDR instead
9175 of ULONGEST for address size.
9176
4eef138c
TT
91772010-02-17 Tom Tromey <tromey@redhat.com>
9178
9179 * NEWS: Add C++ improvements section.
9180
548a926a
UW
91812010-02-17 Ulrich Weigand <uweigand@de.ibm.com>
9182
9183 * python/python-internal.h [!WITH_THREAD] (PyGILState_Release,
9184 PyThreadState_Swap): Avoid "statement with no effect" warning.
9185
ad3a0e5b
JK
91862010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
9187
9188 * solib-svr4.c (enable_break <target_auxv_search>): New variable
9189 addr_bit. Adjust LOAD_ADDR sign for cross-arch inferiors.
9190
243e2c5d 91912010-02-17 Tristan Gingold <gingold@adacore.com>
b2319725 9192 Petr Hluzin <petr.hluzin@gmail.com>
243e2c5d
TG
9193
9194 * avr-tdep.c (avr_scan_prologue): Convert an if statement to a
9195 gdb_assert. Fix info->size for SIG prologue.
9196
275f2e57
DJ
91972010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
9198
9199 * infcmd.c (show_inferior_tty_command): Check for NULL.
9200 Correct output message.
9201
791dfb64
DJ
92022010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
9203
9204 * linespec.c (decode_line_1): Handle FILE:FUNCTION even if
9205 FUNCTION contains parentheses. Improve removal of a trailing
9206 single quote.
9207
14d1346b
DJ
92082010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
9209
9210 * gcore.c (do_bfd_delete_cleanup): New function.
9211 (gcore_command): Use it. Discard the cleanup after success.
9212 (gcore_copy_callback): Delete dead code.
9213
e76ab67f
DJ
92142010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
9215
9216 * symfile.c (addr_info_make_relative): Always use
9217 find_lowest_section.
9218
71dee663
SW
92192010-02-16 Sami Wagiaalla <swagiaal@redhat.com>
9220
9221 * NEWS: Added entry for namespace fixes.
9222
a9854bd5
TT
92232010-02-15 Tom Tromey <tromey@redhat.com>
9224
9225 * dwarf2read.c (guess_structure_name): Allocate name on the
9226 objfile obstack.
9227
fd9e29b5
TT
92282010-02-15 Tom Tromey <tromey@redhat.com>
9229
9230 * c-typeprint.c (c_type_print_base): Reverse order of test.
9231
4e1fc9c9
JK
92322010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9233
9234 * solib-svr4.c (LM_ADDR_CHECK): New variable minpagesize. Optionally
9235 initialize it from ELF BFD. Extend the prelink condition by it.
9236
74164c56
JK
92372010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9238
9239 * defs.h (parse_pid_to_attach): New.
9240 * utils.c (parse_pid_to_attach): New.
9241 * darwin-nat.c (darwin_attach): Replace ARGS parsing by parse_pid.
9242 * gnu-nat.c (gnu_attach): Likewise.
9243 * nto-procfs.c (procfs_attach): Likewise.
9244 * procfs.c (procfs_attach): Likewise.
9245 * windows-nat.c (windows_attach): Likewise.
9246 * inf-ptrace.c (inf_ptrace_attach): Likewise. Remove variable dummy.
9247 * inf-ttrace.c (inf_ttrace_attach): Likewise.
9248 * remote.c (extended_remote_attach_1): Likewise. New comment on getpid
9249 check.
9250
bf6adea8
MM
92512010-02-14 Masaki Muranaka <monaka@monami-software.com>
9252
9253 * MAINTAINERS: Add myself for write after approval privileges.
9254
28f34a8f
JK
92552010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9256
9257 * solib-svr4.c: (LM_ADDR_CHECK): Move variable align to a more inner
9258 block.
9259
701ed6dc
JK
92602010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9261
9262 * solib-svr4.c: (LM_ADDR_CHECK): Print successful prelink adjustment
9263 only if INFO_VERBOSE.
9264
e5829bee
MS
92652010-02-12 Tomas Holmberg <th@virtutech.com>
9266
9267 * mi/mi-main.c: Added the --reverse flag to the following MI
9268 commands: exec-continue, exec-finish, exec-next, exec-step,
9269 exec-next-instruction, exec-step-instruction. This is to
9270 support reverse execution over the MI interface to gdb.
9271
081dfbf7
PA
92722010-02-12 Pedro Alves <pedro@codesourcery.com>
9273
9274 * tracepoint.c (_initialize_tracepoint): Specify that the address
9275 range of `tfind outsize' is exclusive, and that the address range
9276 of `tfind range' is inclusive, in the commands' help strings.
9277
ecc13e53
JB
92782010-02-12 Joel Brobecker <brobecker@adacore.com>
9279
9280 Spurious "dll not found" error messages on x64-windows.
9281 * windows-nat.c: Add include of complaints.h.
9282 (handle_unload_dll): Change dll-not-found error into a complaint.
9283
15c3d785
PA
92842010-02-12 Pedro Alves <pedro@codesourcery.com>
9285
9286 * breakpoint.c (allocate_bp_location): Use bp_loc_other for
9287 bp_tracepoint and bp_fast_tracepoint, not
9288 bp_loc_software_breakpoint.
9289 (update_global_location_list): Tracepoints are never duplicates of
9290 anything.
9291
fd9b8c24
PA
92922010-02-12 Pedro Alves <pedro@codesourcery.com>
9293
9294 * breakpoint.c (break_command_really): Change return type to int.
9295 Return false if no breakpoint was created, true otherwise.
9296 (trace_command): Don't set the tracepoint count if no tracepoint
9297 was created.
9298 (ftrace_command): Ditto.
9299 (create_tracepoint_from_upload): Bail out if the tracepoint wasn't
9300 created in the breakpoints table.
9301
5c0d192f
JK
93022010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
9303 Ulrich Weigand <uweigand@de.ibm.com>
9304
9305 * solib-svr4.c (LM_ADDR_CHECK): New comment on PPC-aware condition.
9306
5d5b640e
PA
93072010-02-11 Pedro Alves <pedro@codesourcery.com>
9308
9309 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out if
9310 the offset value isn't of integral type.
9311
e5a0a904
JK
93122010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
9313
9314 * breakpoint.c (delete_breakpoint) <bpt->related_breakpoint != NULL>:
9315 New.
9316
be636754
PA
93172010-02-11 Pedro Alves <pedro@codesourcery.com>
9318
9319 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out on
9320 non-subscriptable types.
9321 * valarith.c (binop_types_user_defined_p): New, abstracted out
9322 from ...
9323 (binop_user_defined_p): ... this.
9324 * value.h (binop_types_user_defined_p): Declare.
9325
10ef8d6a
PA
93262010-02-11 Pedro Alves <pedro@codesourcery.com>
9327
9328 * tracepoint.c (tfile_open): Remove spurious discard_cleanups.
9329 Merge uploaded TSVs before merging uploaded tracepoints.
9330
b1028c8e
PA
93312010-02-11 Pedro Alves <pedro@codesourcery.com>
9332
9333 * ax-gdb.c (gen_deref): Don't allow dereferencing void pointers.
9334
7a93fb82 93352010-02-11 Vladimir Prus <vladimir@codesourcery.com>
84d90c10 9336
7a93fb82
VP
9337 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Add extra
9338 whitespace character after a dot in comment.
9339 (mi_cmd_stack_list_arguments, mi_cmd_stack_list_variables):
9340 Likewise.
9341 (list_args_or_locals): For the 'all' (that is
9342 -stack-list-variables) case, always output list of tuples.
9343 Output 'arg' field if variable is argument.
84d90c10 9344
92981e24
TT
93452010-02-10 Tom Tromey <tromey@redhat.com>
9346
9347 * parser-defs.h (parser_debug): Declare.
9348 * parse.c (_initialize_parse): Install "debug parser" set/show
9349 command.
9350 (parser_debug): New global.
9351 (show_parserdebug): New function.
9352 * c-exp.y (c_parse): Set yydebug.
9353
9fd3625f
L
93542010-02-10 H.J. Lu <hongjiu.lu@intel.com>
9355
9356 * target-descriptions.c (tdesc_type): Add TDESC_TYPE_I387_EXT,
9357 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
9358 (tdesc_predefined_types): Add i387_ext, i386_eflags and
9359 i386_mxcsr.
9360 (tdesc_find_type): New.
9361 (tdesc_gdb_type): Use tdesc_find_type. Handle TDESC_TYPE_I387_EXT,
9362 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
9363
9364 * target-descriptions.h (tdesc_find_type): New.
9365
2fe842e5
MS
93662010-02-10 Michael Snyder <msnyder@vmware.com>
9367
9368 * gdb-gdb.py: Comment fix.
9369
f18b4cab
TG
93702010-02-09 Tristan Gingold <gingold@adacore.com>
9371
9372 * machoread.c (macho_symfile_relocate): New function.
9373 (macho_sym_fns): Use macho_symfile_relocate instead of
9374 default_symfile_relocate.
9375 (macho_oso_data): New type.
9376 (current_oso): New variable.
9377 (macho_add_oso_symfile): Do not compute section_addr_info, but
9378 instead set vma of sections.
9379 Do not set SYMFILE_VERBOSE to call symbol_file_add_from_bfd.
9380 Set and clear current_oso.
9381
31dbc1c5
JB
93822010-02-09 Joel Brobecker <brobecker@adacore.com>
9383
9384 Wrong type description for tagged type parameter.
9385 * ada-lang.c (ada_evaluate_subexp) [OP_VAR_VALUE]: When noside is
9386 EVAL_AVOID_SIDE_EFFECTS, also handle the case when type is a
9387 reference to a tagged type.
9388
399f313b
TG
93892010-02-09 Tristan Gingold <gingold@adacore.com>
9390
9391 * objfiles.c (objfile_separate_debug_iterate): Do not iterate on
9392 brothers of the parent.
9393
714f19d5
TT
93942010-02-08 Tom Tromey <tromey@redhat.com>
9395
9396 PR c++/8017:
9397 * value.h: Update.
9398 * valops.c (search_struct_field): Make 'name' const.
9399 (search_struct_method): Likewise.
9400 (find_method_list): Make 'method' const.
9401 (value_struct_elt): Make 'name' and 'err' const.
9402 (value_find_oload_method_list): Make 'method' const.
9403 (find_overload_match): Make 'name' const.
9404 * eval.c (evaluate_subexp_standard): New locals function,
9405 function_name.
9406 <OP_FUNCALL>: Handle OP_SCOPE specially.
9407
de0a0249
UW
94082010-02-08 Ulrich Weigand <uweigand@de.ibm.com>
9409
9410 * infrun.c (handle_inferior_event): Do not look up regcache
9411 for exited processes.
9412
8d95cc3b 94132010-02-08 Chris Moller <moller@mollerware.com>
83b10087
CM
9414
9415 PR gdb/10728
9416 * valarith.c (value_ptrdiff): Added a test for a zero type length,
8d95cc3b 9417 warn if found, and assume length = 1.
83b10087 9418
99903ae3
CM
94192010-02-08 Chris Moller <cmoller@redhat.com>
9420
9421 PR gdb/9067
9422 * cp-valprint.c (cp_print_value_fields) Fix use of obstacks.
6036c742 9423 (cp_print_static_field) Fix use of obstacks.
8d95cc3b 9424
e3e9f5a2
PA
94252010-02-08 Pedro Alves <pedro@codesourcery.com>
9426
9427 * linux-nat.c (linux_nat_resume): In non-stop, also only tag
9428 resumed LWPs as resumed.
9429 (linux_nat_wait_1): If there's no resumed LWP in the set of LWPs
9430 we're waiting for, bail out with TARGET_WAITKIND_IGNORE, instead
9431 of throwing an internal error. If an LWP of a process we're not
9432 waiting for reports a signal, don't force collecting a SIGSTOP,
9433 and if it was breakpoint hit in non-stop mode, cancel it. Don't
9434 go through all LWPs cancelling breakpoints in non-stop mode.
9435 (resume_stopped_resumed_lwps): New.
9436 (linux_nat_wait): Use it.
9437
46763423
L
94382010-02-07 H.J. Lu <hongjiu.lu@intel.com>
9439
9440 * features/Makefile (WHICH): Add i386/i386, i386/i386-linux,
9441 i386/amd64 and i386/amd64-linux.
9442 (i386/i386-expedite): New.
9443 (i386/i386-linux-expedite): Likewise.
9444 (i386/amd64-expedite):Likewise.
9445 (i386/amd64-linux-expedite): Likewise.
9446 ($(outdir)/i386/i386-linux.dat): Likewise.
9447 ($(outdir)/i386/amd64.dat): Likewise.
9448 ($(outdir)/i386/amd64-linux.dat): Likewise.
9449
9450 * features/i386/32bit-core.xml: New.
9451 * features/i386/32bit-linux.xml: Likewise.
9452 * features/i386/32bit-sse.xml: Likewise.
9453 * features/i386/64bit-core.xml: Likewise.
9454 * features/i386/64bit-linux.xml: Likewise.
9455 * features/i386/64bit-sse.xml: Likewise.
9456 * features/i386/i386-linux.xml: Likewise.
9457 * features/i386/i386.xml: Likewise.
9458 * features/i386/amd64-linux.xml: Likewise.
9459 * features/i386/amd64.xml: Likewise.
9460 * features/i386/i386-linux.c: Likewise.
9461 * features/i386/i386.c: Likewise.
9462 * features/i386/amd64-linux.c: Likewise.
9463 * features/i386/amd64.c: Likewise.
9464
82856980
SW
94652010-02-05 Sami Wagiaalla <swagiaal@redhat.com>
9466
9467 PR c++/7935:
9468 * cp-support.h: Added char* alias element to using_direct data
9469 struct.
9470 (cp_add_using): Added char* alias argument.
9471 (cp_add_using_directive): Ditto.
9472 * cp-namespace.c: Updated with the above changes.
9473 (cp_lookup_symbol_imports): Check for aliases.
9474 * dwarf2read.c (read_import_statement): Figure out local alias
9475 for the import and pass it on to cp_add_using.
9476 (read_namespace): Pass alias argument to cp_add_using.
9477
d18b8b7a
HZ
94782010-02-05 Hui Zhu <teawater@gmail.com>
9479
9480 * defs.h (gdb_bfd_errmsg): New extern.
9481 * exec.c (exec_file_attach): Change bfd_errmsg to
9482 gdb_bfd_errmsg.
9483 * utils.c (AMBIGUOUS_MESS1): New macro.
9484 (AMBIGUOUS_MESS2): New macro.
9485 (gdb_bfd_errmsg): New function.
9486
48379de6
DE
94872010-02-04 Doug Evans <dje@google.com>
9488
9489 * solib-svr4.c (enable_break): Add comment.
9490
4ee73e90
AG
94912010-02-04 Anthony Green <green@moxielogic.com>
9492
9493 * moxie-tdep.c (moxie_analyze_prologue): Fail protocol analysis
9494 gracefully.
9495
1a334831
TT
94962010-02-04 Tom Tromey <tromey@redhat.com>
9497
9498 * valops.c (search_struct_field): Account for
9499 value_embedded_offset. Fix check for virtual base past the end of
9500 the object. Use value_copy when making a slice of the value.
9501
1180b2c8
L
95022010-02-04 H.J. Lu <hongjiu.lu@intel.com>
9503
9504 PR tui/9622
9505 * tui/tui-interp.c (tui_init): Call tui_initialize_readline
9506 only if gdb_stdout is a tty.
9507
c3f08eb7
L
95082010-02-04 H.J. Lu <hongjiu.lu@intel.com>
9509
9510 * target-descriptions.c: Include "osabi.h".
9511 (maint_print_c_tdesc_cmd): Generate set_tdesc_osabi for valid
9512 OSABI.
9513
2d33f7b8
TG
95142010-02-04 Tristan Gingold <gingold@adacore.com>
9515
9516 * machoread.c (macho_add_oso): Renamed to macho_register_oso.
9517 (macho_symtab_read): Adjust calls to macho_add_oso.
9518 (macho_oso_symfile): Renamed to macho_symfile_read_all_oso.
9519 (macho_symfile_read): Adjust call to macho_oso_symfile.
9520 (macho_new_init): Move this function after declarations.
9521 (macho_symfile_init): Ditto.
9522 * darwin-nat-info.c (darwin_lib_gdb_ports): Remove.
9523 * darwin-nat.c (darwin_lookup_task): Remove unused prototype.
9524
11334b82
VP
95252010-02-04 Vladimir Prus <vladimir@codesourcery.com>
9526
9527 Include MI command in remotelog.
9528
9529 * mi/mi-main.c (mi_execute_command): Call target_log_command.
9530
ff97be06
L
95312010-02-03 H.J. Lu <hongjiu.lu@intel.com>
9532
9533 * remote.c (remote_state): Remove gdbarch.
9534 (init_remote_state): Don't set gdbarch.
9535 (remote_query_supported): Pass target_gdbarch instead of
9536 rs->gdbarch to gdbarch_qsupported.
9537
75cebea9
L
95382010-02-03 H.J. Lu <hongjiu.lu@intel.com>
9539
9540 * gdbarch.sh: Add qsupported.
9541
9542 * gdbarch.c: Regenerated.
9543 * gdbarch.h: Likewise.
9544
9545 * remote.c (remote_state): Add gdbarch.
9546 (init_remote_state): Set gdbarch.
9547 (remote_query_supported): Support gdbarch_qsupported.
9548
c1dec97b
DJ
95492010-02-03 Daniel Jacobowitz <dan@codesourcery.com>
9550
9551 * amd64fbsd-nat.c (amd64fbsd_supply_pcb): Also check for
9552 __FreeBSD_kernel_version.
9553
ac8035ab
TG
95542010-02-03 Tristan Gingold <gingold@adacore.com>
9555
9556 * symfile.h (struct sym_fns): Add sym_relocate field.
9557 (default_symfile_relocate): New prototype.
9558 (symfile_relocate_debug_section): First argument is now an objfile.
9559 * symfile.c (default_symfile_relocate): Rename from
9560 symfile_relocate_debug_section, first argument is now an objfile.
9561 (symfile_relocate_debug_section): New function.
9562 * coffread.c (coff_sym_fns): Set sym_relocate field.
9563 * somread.c (som_sym_fns): Ditto.
9564 * mipsread.c (ecoff_sym_fns): Ditto.
9565 * machoread.c (macho_sym_fns): Ditto.
9566 * elfread.c (elf_sym_fns): Ditto.
9567 * dwarf2read.c (dwarf2_read_section): Ditto.
9568 * xcoffread.c (xcoff_sym_fns): Ditto.
9569 * dbxread.c (aout_sym_fns): Ditto.
9570 (dbx_psymtab_to_symtab): Adjust call to symfile_relocate_debug_section.
9571 (elfstab_build_psymtabs): Ditto.
9572
be52b756
L
95732010-02-03 H.J. Lu <hongjiu.lu@intel.com>
9574
9575 * defs.h (MAX_REGISTER_SIZE): Increase to 32.
9576
9c3c02fd
TT
95772010-02-02 Tom Tromey <tromey@redhat.com>
9578
9579 * valops.c (value_cast_structs): Try downcasting using the RTTI
9580 type.
9581
f23f4c59
TT
95822010-02-02 Tom Tromey <tromey@redhat.com>
9583
9584 * gnu-v2-abi.c: Don't include gnu-v2-abi.h.
9585 (gnuv2_baseclass_offset): Now static.
9586 * Makefile.in (HFILES_NO_SRCDIR): Remove gnu-v2-abi.h.
9587 * gnu-v2-abi.h: Remove.
9588
0cc2414c
TT
95892010-02-02 Tom Tromey <tromey@redhat.com>
9590
9591 * m2-typeprint.c (m2_record_fields): Don't use
9592 TYPE_DECLARED_TYPE.
9593 * gdbtypes.h (TYPE_DECLARED_CLASS): New macro.
9594 (struct main_type) <flag_declared_class>: New field.
9595 (struct cplus_struct_type) <declared_type>: Remove.
9596 <ntemplate_args>: Move earlier.
9597 (DECLARED_TYPE_CLASS, DECLARED_TYPE_UNION, DECLARED_TYPE_STRUCT)
9598 (DECLARED_TYPE_TEMPLATE): Remove.
9599 (TYPE_DECLARED_TYPE): Remove.
9600 * gdbtypes.c (lookup_union): Don't use TYPE_DECLARED_TYPE.
9601 * dwarf2read.c (read_structure_type): Set TYPE_DECLARED_CLASS.
9602 * c-typeprint.c (c_type_print_base): Use TYPE_DECLARED_CLASS, not
9603 TYPE_DECLARED_TYPE.
9604
edf3d5f3
TT
96052010-02-02 Tom Tromey <tromey@redhat.com>
9606
9607 PR c++/11226, PR c++/9629, PR c++/9688, PR c++/8890:
9608 * valops.c (search_struct_field): Compute nbases after calling
9609 CHECK_TYPEDEF.
9610 (check_field): Call CHECK_TYPEDEF.
9611 * cp-valprint.c (cp_print_value): Pass correct address to
9612 baseclass_offset. Fix check for virtual base past the end of the
9613 object. Don't offset address passed to cp_print_value_fields or
9614 apply_val_pretty_printer.
9615 (cp_print_value_fields): Fix call to val_print.
9616 (cp_print_value_fields_rtti): New function.
9617 * c-valprint.c (c_val_print): Use cp_print_value_fields_rtti.
9618 * p-valprint.c (pascal_object_print_value_fields): Fix call to
9619 val_print.
9620 * python/py-prettyprint.c (apply_val_pretty_printer): Add embedded
9621 offset to address.
9622 * language.h (struct language_defn) <la_val_print>: Document.
9623 * c-lang.h (cp_print_value_fields_rtti): Declare.
9624
e4b7f41c
JK
96252010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9626
9627 PR libc/11214:
9628 * linux-low.c (linux_tracefork_child) [!(__UCLIBC__ && HAS_NOMMU)]: New.
9629 (linux_test_for_tracefork): Move `stack' into [__UCLIBC__ && HAS_NOMMU].
9630 (linux_test_for_tracefork) [!(__UCLIBC__ && HAS_NOMMU)]: New.
9631
7618e12b
DJ
96322010-02-01 Michael Matz <matz@suse.de>
9633 Daniel Jacobowitz <dan@codesourcery.com>
9634
e4b7f41c 9635 * i386-tdep.c (i386_frame_cache): Assume valid anonymous
7618e12b
DJ
9636 functions use a frame pointer.
9637
b381ea14
JK
96382010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9639
9640 * solib-svr4.c (scan_dyntag): New variable dyn_addr. Replace gdb_assert
9641 by a conditional setting DYN_ADDR. Use DYN_ADDR.
9642 * config/djgpp/fnchange.lst: Add translations for
9643 symbol-without-target_section.exp and symbol-without-target_section.c.
9644
0e05dfcb
DJ
96452010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
9646
9647 * gdbarch.sh: Set LANG and LC_ALL to C, not c.
9648 (remote_breakpoint_for_pc): Correct invalid_p check.
9649 * gdbarch.c: Regenerated.
9650
f9d67f43
DJ
96512010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
9652
9653 * arm-tdep.c (arm_find_mapping_symbol): New function, from
9654 arm_pc_is_thumb.
9655 (arm_pc_is_thumb): Use arm_find_mapping_symbol.
9656 (extend_buffer_earlier): New function.
9657 (MAX_IT_BLOCK_PREFIX, IT_SCAN_THRESHOLD): New constants.
9658 (arm_adjust_breakpoint_address): New function.
9659 (arm_gdbarch_init): Register arm_adjust_breakpoint_address.
9660
177321bd
DJ
96612010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
9662
9663 * arm-linux-tdep.c (arm_linux_thumb2_be_breakpoint)
9664 (arm_linux_thumb2_le_breakpoint): New constants.
9665 (arm_linux_init_abi): Set thumb2_breakpoint and
9666 thumb2_breakpoint_size.
9667 * arm-tdep.c (thumb_insn_size, thumb_advance_itstate): New functions.
9668 (thumb_get_next_pc): Add a comment. Rename IT to ITSTATE.
9669 Implement support for single stepping through IT blocks if
9670 a 32-bit Thumb breakpoint instruction is available.
9671 (arm_breakpoint_from_pc): If a 32-bit Thumb breakpoint instruction
9672 is available, use it when needed.
9673 (arm_remote_breakpoint_from_pc): New function.
9674 (arm_gdbarch_init): Register arm_remote_breakpoint_from_pc.
9675 * arm-tdep.h (struct gdbarch_tdep): Correct thumb_breakpoint
9676 comment. Add thumb2_breakpoint and thumb2_breakpoint_size.
9677
a1dcb23a
DJ
96782010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
9679
9680 * arch-utils.c (default_remote_breakpoint_from_pc): New function.
9681 * arch-utils.h (default_remote_breakpoint_from_pc): Declare.
9682 * gdbarch.c, gdbarch.h: Regenerated.
9683 * gdbarch.sh (remote_breakpoint_from_pc): New architecture method.
9684 * remote.c (remote_insert_breakpoint, remote_insert_hw_breakpoint): Use
9685 gdbarch_remote_breakpoint_from_pc.
9686
2b009048
DJ
96872010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
9688
9689 * infrun.c (prepare_to_proceed): Handle other signals which might
9690 match a breakpoint.
9691 (handle_inferior_event): Move the check for unusual breakpoint
9692 signals earlier.
9693
e4e2711a
JB
96942010-01-29 Paul Hilfinger <hilfinger@adacore.com>
9695
9696 amd64 - function returning record with field straddling 2 registers.
9697 * amd64-tdep.c (amd_classify_aggregate): Handle the case of
9698 a record of length <= 16 in which a field straddles the two
9699 eightbytes.
9700
cba6fab5
JB
97012010-01-29 Joel Brobecker <brobecker@adacore.com>
9702
9703 Implement return values on amd64-windows.
9704 * amd64-windows-tdep.c: #include gdbcore.h and regcache.h.
9705 (amd64_windows_return_value): New function.
9706 (amd64_windows_init_abi): Call set_gdbarch_return_value with
9707 amd64_windows_return_value.
9708
3af6ddfe
JB
97092010-01-29 Joel Brobecker <brobecker@adacore.com>
9710
9711 amd64-windows: 32 bytes allocated on stack by caller for integer
cba6fab5 9712 parameter registers.
3af6ddfe
JB
9713 * i386-tdep.h (struct gdbarch_tdep): Add new field
9714 integer_param_regs_saved_in_caller_frame.
9715 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
9716 tdep->integer_param_regs_saved_in_caller_frame to 1.
9717 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
9718 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
9719
80d19a06
JB
97202010-01-29 Joel Brobecker <brobecker@adacore.com>
9721
9722 amd64-windows: memory args passed by pointer during function calls.
9723 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
9724 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
9725 where tdep->memory_args_by_pointer is non-zero.
9726 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
9727 tdep->memory_args_by_pointer to 1.
9728
ba581dc1
JB
97292010-01-29 Joel Brobecker <brobecker@adacore.com>
9730
4966b6c2 9731 amd64-windows: Integer parameters in function calls.
ba581dc1
JB
9732 * i386-tdep.h (enum amd64_reg_class): New, moved here from
9733 amd64-tdep.c.
9734 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
9735 call_dummy_integer_regs, and classify.
9736 * amd64-tdep.h (amd64_classify): Add declaration.
9737 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
9738 (amd64_reg_class): Delete, moved to i386-tdep.h.
9739 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
9740 Replace call to amd64_classify by call to tdep->classify.
9741 (amd64_push_arguments): Get the list of registers to use for
9742 passing integer parameters from the gdbarch tdep structure,
9743 rather than using a hardcoded one. Replace calls to amd64_classify
9744 by calls to tdep->classify.
9745 (amd64_push_dummy_call): Get the register number used for
9746 the "hidden" argument from tdep->call_dummy_integer_regs.
9747 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
9748 and tdep->call_dummy_integer_regs. Set tdep->classify.
9749 * amd64-windows-tdep.c: Add include of gdbtypes.h.
9750 (amd64_windows_dummy_call_integer_regs): New static global.
9751 (amd64_windows_classify): New function.
9752 (amd64_windows_init_abi): Initialize tdep->call_dummy_num_integer_regs
9753 tdep->call_dummy_integer_regs and tdep->classify.
9754
d37346f0
DJ
97552010-01-28 Daniel Jacobowitz <dan@codesourcery.com>
9756
9757 * regcache.c (regcache_xmalloc): Add aspace argument. Use it
9758 for the new regcache. All callers updated.
9759 (regcache_cpy, regcache_cpy_no_passthrough): Do not set aspace here.
9760 (get_thread_arch_regcache): Do not set aspace here.
9761 * regcache.h (regcache_xmalloc): Update declaration.
9762
9763 * frame.c, infcall.c, ppc-linux-tdep.c: Calls to
9764 regcache_xmalloc updated.
9765
7434dadd
JB
97662010-01-28 Joel Brobecker <brobecker@adacore.com>
9767
9768 Another -Wunused-function error in procfs.c (sparc-solaris)
9769 * procfs.c (insert_dbx_link_breakpoint): Delete declaration. Move up.
9770 Only define if SYS_syssgi is defined.
9771 (remove_dbx_link_breakpoint): Delete declaration. Move up.
9772 (dbx_link_addr, insert_dbx_link_bpt_in_file)
9773 (insert_dbx_link_bpt_in_region): Move up. Only define if SYS_syssgi
9774 is itself defined.
9775
16d905e2
CF
97762010-01-27 Christopher Faylor <me+cygwin@cgf.cx>
9777
9778 * windows-nat.c (windows_initialization_done): New variable.
9779 (get_windows_debug_event): Issue error when process dies before
9780 completely initializing.
9781 (do_initial_windows_stuff): Set flag to indicate when we are done with
9782 the initial steps of attaching to the child.
9783
cd55e50f
JK
97842010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9785
9786 * symtab.h (struct symbol <symtab>): New comment on NULL values.
9787
99cc78aa
DE
97882010-01-27 Doug Evans <dje@google.com>
9789
4c7dcb84
DE
9790 * solib-svr4.c (solib_break_names): Add __dl_rtld_db_dlactivity.
9791
99cc78aa
DE
9792 * breakpoint.c (bpstat_stop_status): Delete useless code.
9793
52334bf5
JK
97942010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9795
9796 * printcmd.c (display_uses_solib_p): Remove variable section. Access
9797 objfile via SYMBOL_SYMTAB.
9798
708ead4e
TT
97992010-01-26 Tom Tromey <tromey@redhat.com>
9800
9801 PR exp/7643:
9802 * eval.c (evaluate_subexp_for_address) <UNOP_IND>: Call
9803 coerce_array on result.
9804
b14e635e
SW
98052010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
9806
9807 * cp-namespace.c (cp_lookup_symbol_namespace): Added
9808 search_parent argument.
9809 (cp_add_using): Initialize 'searched' field.
9810 (reset_directive_searched): New function.
9811 * cp-support.h: Add 'searched' field to using_direct struct.
9812 (cp_lookup_symbol_imports): Ditto.
9813 * cp-namespace.c (cp_lookup_symbol_imports): Ditto.
9814 Perform recursive search.
9815 Implement non parent search.
9816 * valops.c (value_maybe_namespace_elt): Updated.
9817
8540c487
SW
98182010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
9819
9820 PR gdb/10929:
9821 * dwarf2read.c (read_lexical_block_scope): Create blocks for
9822 scopes which contain using directives even if they contain no
9823 declarations.
9824 * symtab.c (lookup_symbol_aux): Pass lowest level block to
9825 la_lookup_symbol_nonlocal.
9826 * cp-namespace.c (cp_lookup_symbol_nonlocal): call
9827 cp_lookup_symbol_namespace.
9828 (cp_lookup_symbol_namespace): Perform an import lookup at every
9829 block level.
9830 (cp_lookup_symbol_imports): New function.
9831 (cp_lookup_symbol_in_namespace): New function.
9832
421d5d99
TT
98332010-01-25 Tom Tromey <tromey@redhat.com>
9834
9835 PR gdb/11049:
9836 * c-valprint.c (c_val_print): Fix test of extract_unsigned_integer
9837 result.
9838
6bcc772d
RO
98392010-01-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9840
9841 * configure.ac: Only use host_os part when disabling TUI on osf.
9842 Use test to check variables, prefix strings with x.
9843 * configure: Regenerate.
9844
9845 * solib-osf.c (osf_current_sos): Initialize tail.
9846
1c1238a5
TG
98472010-01-25 gingold <gingold@adacore.com>
9848
c8d5aac9
L
9849 * windows-nat.c (windows_continue): Use %x to print thread id.
9850 (get_windows_debug_event): Ditto.
1c1238a5 9851
0b92b5bb
TT
98522010-01-22 Tom Tromey <tromey@redhat.com>
9853
9854 PR symtab/11199:
9855 * dwarf2read.c (quirk_gcc_member_function_pointer): Change return
9856 type and arguments. Use smash_to_methodptr_type.
9857 (read_structure_type): Call quirk_gcc_member_function_pointer
9858 later.
9859 * gdbtypes.h (smash_to_methodptr_type): Declare.
9860 * gdbtypes.c (smash_to_methodptr_type): New function.
9861 (lookup_methodptr_type): Use it.
9862
0d5392b8
TT
98632010-01-21 Tom Tromey <tromey@redhat.com>
9864
9865 PR symtab/11198:
9866 * symtab.h (lookup_minimal_symbol_and_objfile): Declare.
9867 * minsyms.c (lookup_minimal_symbol_and_objfile): New function.
9868 * glibc-tdep.c (find_minsym_and_objfile): Remove.
9869 (glibc_skip_solib_resolver): Use
9870 lookup_minimal_symbol_and_objfile.
9871
e6d088ec
KT
98722010-01-21 Kai Tietz <kai.tietz@onevision.com>
9873
9874 * inflow.c (check_syscall): Guard by #if clause for GO32 and
9875 WIN32 targets.
9876
b966cb8a
TT
98772010-01-20 Tom Tromey <tromey@redhat.com>
9878
9879 PR backtrace/10770:
9880 * valarith.c (value_binop): Handle BINOP_GTR, BINOP_LEQ, and
9881 BINOP_GEQ. Handle BINOP_NOTEQUAL in the signed case.
9882 * dwarf2expr.c (new_dwarf_expr_context): Allocate
9883 dwarf_stack_values, not CORE_ADDRs.
9884 (execute_stack_op): Change DW_OP_div and comparison operators to
9885 use signed operands.
9886
3f81c18a
VP
98872010-01-20 Vladimir Prus <vladimir@codesourcery.com>
9888
9889 Per-inferior args and tty and environment.
9890
9891 * infcmd.c (inferior_args): Rename to ...
9892 (inferior_args_scratch): ... this.
9893 (inferior_io_terminal): Rename to ...
9894 (inferior_io_terminal_scratch): ... this.
9895 (inferior_argc, inferior_argv): Remove.
9896 (set_inferior_io_terminal, get_inferior_io_terminal): Store
9897 inside current_inferior().
9898 (set_inferior_tty_command, show_inferior_tty_command): New.
9899 (get_inferior_args, set_inferior_args): Store inside
9900 current_inferior().
9901 (notice_args_set): Likewise and rename to...
9902 (set_args_command): ... this.
9903 (set_inferior_args_vector): Likewise.
9904 (notice_args_read): Rename to...
9905 (show_args_command): ...new.
9906 (tty_command): Remove.
9907 (run_command_1): Don't free old args, as they are freed by
9908 set_inferior_arg now.
9909 (run_no_args_command): Likewise.
9910 (inferior_environ): Remove.
9911 (run_command_1): Use environment of the current inferior.
9912 (environment_info, set_environment_command)
9913 (unset_environment_command, path_info, path_command): Likewise.
9914 (_initialize_infcmd): Adjust for function and variable renames.
9915 Do not init inferior_environ.
9916 * inferior.h (set_inferior_arg): Adjust prototype.
9917 (struct inferior): New fields args, argc, argv, terminal, environment.
9918 (inferior_environ): Remove declaration.
9919 * inferior.c (free_inferior): Free new fields.
9920 (add_inferior_silent): Initialize 'environment' field.
9921 * main.c (captured_main): Set arguments only after the initial
9922 inferior has been created. Set set_inferior_io_terminal,
9923 not tty_command.
9924 * mi/mi-main.c (mi_cmd_env_path): Use environment of the current
9925 inferior.
9926 (_initialize_mi_cmd_env): Adjust for disappearance of global
9927 inferior_environ.
9928 * solib.c (solib_find): Use environment of the current inferior.
9929
d8b65138
JK
99302010-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9931
9932 * varobj.c (varobj_add_child, install_dynamic_child): Wrap into #if
9933 HAVE_PYTHON.
9934 (instantiate_pretty_printer): Move HAVE_PYTHON outside of the function.
9935
692465f1
JB
99362010-01-20 Joel Brobecker <brobecker@adacore.com>
9937
9938 Get rid of ada-lang.c:function_name_from_pc.
9939 * ada-lang.c: Add "stack.h" #include.
9940 (function_name_from_pc): Delete.
9941 (is_known_support_routine): Replace call to function_name_from_pc
9942 by call to find_frame_funname.
9943 (ada_unhandled_exception_name_addr_from_raise): Likewise.
9944
95519e0e
TT
99452010-01-19 Tom Tromey <tromey@redhat.com>
9946
9947 PR c++/11026:
9948 * dwarf2read.c (read_partial_die): Allocate partial DIE's name on
9949 objfile obstack.
9950
95c11dc7
TT
99512010-01-19 Tom Tromey <tromey@redhat.com>
9952
9953 * top.c (stop_sig, float_handler, do_nothing): Remove.
9954
a0f49112
JK
99552010-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9956
9957 * breakpoint.c (watchpoint_check): Check the call
9958 gdbarch_in_function_epilogue_p before calling frame_find_by_id.
9959 Extend the comment.
8d95cc3b 9960 * config/djgpp/fnchange.lst: Add translations for
a0f49112
JK
9961 watchpoint-cond-gone.exp, watchpoint-cond-gone.c and
9962 watchpoint-cond-gone-stripped.c.
9963
ceeb3d5a
TT
99642010-01-19 Tom Tromey <tromey@redhat.com>
9965
9966 PR c++/8000:
9967 * dwarf2read.c (partial_die_parent_scope): Put enumeration type
9968 into parent scope, and enumerator into grandparent scope.
9969
2b71fc8e
JB
99702010-01-19 Joel Brobecker <brobecker@adacore.com>
9971
9972 * NEWS: Add entry for "set/show ada trust-PAD-over-XVS" commands.
9973
03564ed9
JB
99742010-01-19 Joel Brobecker <brobecker@adacore.com>
9975
9976 * configure.host: Make x86_64-*-solaris2.1[0-9]* an alias of
9977 i[34567]86-*-solaris2.1[0-9]*.
9978 * configure.tgt: Likewise.
9979
fb2e7cb4
JB
99802010-01-19 Joel Brobecker <brobecker@adacore.com>
9981
9982 * NEWS: Document the source command enhancement allowing it
9983 to load Python scripts. Document the "set/show script-extension"
9984 commands.
9985
1cb5e2a4
JB
99862010-01-19 Joel Brobecker <brobecker@adacore.com>
9987
9988 Add -Wunused-function to compile flags.
9989 * configure.ac: Add -Wunused-function to build_warnings.
9990 * configure: Regenerate.
9991
0ec6cd0c
JB
99922010-01-19 Joel Brobecker <brobecker@adacore.com>
9993
9994 "delete" ada-lex.c:input function, not used.
9995 * ada-lex.l: #define YY_NO_INPUT.
9996
b74845da
JB
99972010-01-19 Joel Brobecker <brobecker@adacore.com>
9998
9999 Delete free_named_symtabs and associated cleanup.
10000 * symfile.h (free_named_symtabs): Delete declaration.
10001 * symfile.c: Remove some commented out code (clear_symtab_users_once).
10002 (cashier_psymtab): Comment function out.
10003 Delete declaration.
10004 (free_named_symtabs): Delete.
10005 * coffread.c (coff_end_symtab): Remove call to free_named_symtabs.
10006 * dbxread.c (end_psymtab): Likewise.
10007 * dwarf2read.c (process_psymtab_comp_unit): Ditto.
10008 * exec.c (exec_close_1): Ditto.
10009 * xcoffread.c (xcoff_end_psymtab): Likewise.
10010
65c06092
JB
100112010-01-19 Joel Brobecker <brobecker@adacore.com>
10012
10013 * stack.c (print_block_frame_labels): Comment function out.
10014
d5cd6034
JB
100152010-01-19 Joel Brobecker <brobecker@adacore.com>
10016
10017 Delete unused or undefined functions.
10018 * breakpoint.c (ep_parse_optional_filename): Delete.
10019 * dcache.c (dcache_write_line): Remove declaration.
10020 * infrun.c (build_infrun): Remove declaration.
10021 * tracepoint.c (tracepoint_save_command): Remove declaration.
10022 * linux-nat.c (init_lwp_list): Delete. No longer used.
10023 * event-loop.c (check_async_signal_handlers): Delete declaration.
10024 * infrun.c (init_execution_control_state): Delete.
10025 (proceed): Update comment to avoid mentioning
10026 init_execution_control_state.
10027 * target.c (kill_or_be_killed, nosupport_runtime): Delete.
10028 * ada-lang.c (ada_to_static_fixed_value): Delete.
10029 * scm-lang.c (evaluate_subexp_scm): Delete declaration.
10030 * cp-namespace.c (cp_copy_usings): Delete.
10031 * xml-syscall.c (xml_number_of_syscalls): Delete.
10032 * progspace.c (find_program_space_by_num): Delete.
10033 * inflow.c (handle_sigio): Delete declaration.
10034 * hppa-tdep.c (hppa_alignof): Delete.
10035 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset)
10036 (mipsnbsd_core_osabi_sniffer): Delete.
10037
4e8f195d
TT
100382010-01-18 Tom Tromey <tromey@redhat.com>
10039
10040 PR c++/9680:
10041 * c-exp.y (REINTERPRET_CAST, DYNAMIC_CAST, STATIC_CAST)
10042 (CONST_CAST): New tokens.
10043 (exp): Add new productions.
10044 (ident_tokens): Add const_cast, dynamic_cast, static_cast, and
10045 reinterpret_cast.
10046 (is_cast_operator): New function.
10047 (yylex): Handle cast operators specially.
10048 * eval.c (evaluate_subexp_standard) <UNOP_DYNAMIC_CAST,
10049 UNOP_REINTERPRET_CAST>: New cases.
10050 * expprint.c (print_subexp_standard): Likewise.
10051 (op_name_standard): Likewise.
10052 (dump_subexp_body_standard): Likewise.
10053 * parse.c (operator_length_standard): Likewise.
10054 * expression.h (enum exp_opcode): New constants UNOP_DYNAMIC_CAST,
10055 UNOP_REINTERPRET_CAST.
10056 * gdbtypes.c (class_types_same_p): New function.
10057 (is_ancestor): Use it.
10058 (is_public_ancestor): New function.
10059 (is_unique_ancestor_worker): Likewise.
10060 (is_unique_ancestor): Likewise.
10061 * gdbtypes.h (class_types_same_p, is_public_ancestor)
10062 (is_unique_ancestor): Declare.
10063 * valops.c (value_reinterpret_cast): New function.
10064 (dynamic_cast_check_1): Likewise.
10065 (dynamic_cast_check_2): Likewise.
10066 (value_dynamic_cast): Likewise.
10067 * value.h (value_reinterpret_cast, value_dynamic_cast): Declare.
10068
d9c57d9f
JB
100692010-01-18 Joel Brobecker <brobecker@adacore.com>
10070
10071 Fix build failure when building without Python support.
10072 * python/python.c: Always include exceptions.h, even when HAVE_PYTHON
10073 is not defined.
10074
f80d3ff2
JB
100752010-01-18 Joel Brobecker <brobecker@adacore.com>
10076
10077 Use XVS field type instead of doing a parallel lookup.
10078 * ada-lang.c (ada_get_base_type): Follow the XVS field type
10079 if it is a reference type instead of doing a type lookup using
10080 the XVS field name.
10081
5bf03f13
JB
100822010-01-18 Joel Brobecker <brobecker@adacore.com>
10083
10084 Trust PAD types instead of using PAD___XVS.
10085 * ada-lang.c (trust_pad_over_xvs): New static variable.
10086 (ada_is_aligner_type): If !trust_pad_over_xvs and there is a
10087 parallel XVS type, follow the XVS type instead of the PAD type.
10088 (unwrap_value): Make sure that there is no parallel XVE type
10089 before returning the value as is.
10090 (set_ada_list, show_ada_list): New static variables.
10091 (set_ada_command, show_ada_command): New functions.
10092 (_initialize_ada_language): Add new "set/show ada" prefix commands.
10093 Add new "set/show ada trust-PAD-over-XVS" setting.
10094
973817a3
JB
100952010-01-18 Tom Tromey <tromey@redhat.com>
10096 Thiago Jung Bauermann <bauerman@br.ibm.com>
10097
10098 Allow "source" to load python scripts.
10099 * exceptions.h (enum errors): Add UNSUPPORTED_ERROR.
10100 * python/python.c (source_python_script): New function.
10101 * python/python.h (source_python_script): Add declaration.
10102 * cli/cli-cmds.c: #include exceptions.h and python/python.h.
10103 (script_ext_off, script_ext_soft, script_ext_strict)
10104 (script_ext_enums, script_ext_mode): New static constants.
10105 (show_script_ext_mode, find_and_open_script): New functions.
10106 (source_script): Enhance to handle Python scripts.
10107 (init_cli_cmds): Add set/show script-extension commands.
10108
98e03262
SS
101092010-01-16 Stan Shebs <stan@codesourcery.com>
10110
10111 * tracepoint.h (struct trace_status): Use unsigned long long
10112 instead of size_t.
10113 * tracepoint.c (trace_status_command): Fix printf directive.
10114 (trace_save_command): Check fwrite returns, fix printf directive.
10115 (trace_filename): New global.
10116 (tfile_open): Set it, check read returns.
10117 (tfile_close): Free trace_filename.
10118 (tfile_get_traceframe_address): Check read returns.
10119 (tfile_trace_find): Ditto.
10120 (tfile_fetch_registers): Ditto.
10121 (tfile_xfer_partial): Ditto.
10122 (tfile_get_trace_state_variable_value): Ditto.
10123
00bf0b85
SS
101242010-01-15 Stan Shebs <stan@codesourcery.com>
10125
10126 Add trace file support.
10127 * tracepoint.h (enum trace_stop_reason): New enum.
10128 (struct trace_status): New struct.
10129 (parse_trace_status): Declare.
10130 (struct uploaded_tp): Move here from remote.c,
10131 add fields for actions.
10132 (struct uploaded_tsv): New struct.
10133 * tracepoint.c (tfile_ops): New target vector.
10134 (trace_fd): New global.
10135 (tfile_open): New function.
10136 (tfile_close): New function.
10137 (tfile_files_info): New function.
10138 (tfile_get_trace_status): New function.
10139 (tfile_get_traceframe_address): New function.
10140 (tfile_trace_find): New function.
10141 (tfile_fetch_registers): New function.
10142 (tfile_xfer_partial): New function.
10143 (tfile_get_trace_state_variable_value): New function.
10144 (init_tfile_ops): New function.
10145 (_initialize_tracepoint): Call it, add tfile target.
10146 (trace_status): New global.
10147 (current_trace_status): New function.
10148 (trace_running_p): Remove, change all users to get from
10149 current_trace_status()->running.
10150 (get_trace_status): Remove.
10151 (trace_status_command): Call target_get_trace_status directly,
10152 report more detail including tracing stop reasons.
10153 (trace_find_command): Always allow tfind on a file.
10154 (trace_find_pc_command): Ditto.
10155 (trace_find_tracepoint_command): Ditto.
10156 (trace_find_line_command): Ditto.
10157 (trace_find_range_command): Ditto.
10158 (trace_find_outside_command): Ditto.
10159 (trace_frames_offset, cur_offset): Declare as off_t.
10160 (trace_regblock_size): Rename from reg_size, update users.
10161 (parse_trace_status): New function.
10162 (tfile_interp_line): New function.
10163 (disconnect_or_stop_tracing): Ensure current trace
10164 status before asking what to do.
10165 (stop_reason_names): New global.
10166 (trace_save_command): New command.
10167 (get_uploaded_tp): Move here from remote.c.
10168 (find_matching_tracepoint): Ditto.
10169 (merge_uploaded_tracepoints): New function.
10170 (parse_trace_status): Use stop_reason_names.
10171 (_initialize_tracepoint): Define tsave command.
10172 * target.h (target_ops): New fields to_save_trace_data,
10173 to_upload_tracepoints, to_upload_trace_state_variables,
10174 to_get_raw_trace_data, change to_get_trace_status
10175 to take a pointer to a status struct.
10176 (target_save_trace_data): New macro.
10177 (target_upload_tracepoints): New macro.
10178 (target_upload_trace_state_variables): New macro.
10179 (target_get_raw_trace_data): New macro.
10180 * target.c (update_current_target): Add new methods, change
10181 signature of to_get_trace_status.
10182 * remote.c (hex2bin): Make globally visible.
10183 (bin2hex): Ditto.
10184 (remote_download_trace_state_variable): Download name also.
10185 (remote_get_trace_status): Update parameter, use
10186 parse_trace_status.
10187 (remote_save_trace_data): New function.
10188 (remote_upload_tracepoints): New function.
10189 (remote_upload_trace_state_variables): New function.
10190 (remote_get_raw_trace_data): New function.
10191 (remote_start_remote): Use them.
10192 (_initialize_remote_ops): Add operations.
10193 * ax-gdb.c: Include breakpoint.h.
10194 * breakpoint.c (create_tracepoint_from_upload): Use
10195 break_command_really, return tracepoint, warn about unimplemented
10196 parts.
10197 * NEWS: Mention trace file addition.
10198
d904de5b
JK
101992010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10200
10201 Fix compilation warning on gcc-3.4.
10202 * exec.c (print_section_info): Move the `displacement' variable
10203 initialization to its declaration.
10204
64aa9731
JK
102052010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10206
10207 * gdb-gdb.py (StructMainTypePrettyPrinter): Fix TYPE_CODE_RANGE
10208 comparison.
10209
ca1f5def 102102010-01-15 Eric Botcazou <botcazou@adacore.com>
9f0dec2d
JB
10211
10212 "info tasks" broken by typedefs in ATCB type definitions.
10213 * ada-lang.c (ada_template_to_fixed_record_type_1): Add call to
10214 ada_check_typedef before retrieving the length of the type for
10215 regular fields.
10216
12ab9e09
JB
102172010-01-15 Joel Brobecker <brobecker@adacore.com>
10218
10219 Do not use name-based lookup for unconstrained packed arrays.
10220 * ada-lang.c (find_parallel_type_by_descriptive_type):
10221 Limit the fallback to name-based lookups to the case where
10222 the type is a constrained packed array.
10223
c389c3dc
JB
102242010-01-15 Joel Brobecker <brobecker@adacore.com>
10225
10226 Enhance gdb-gdb.py to handle main_type.type_specific.
10227 * gdb-gdb.py: Print the type-specific part of struct main_type.
10228
7991dee7
JK
102292010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10230
10231 * configure.ac (AC_CHECK_FUNCS): Check for setrlimit and getrlimit.
10232 * configure: Regenerate.
10233 * config.in: Regenerate.
10234 * utils.c: Include sys/resource.h.
10235 (dump_core, can_dump_core): New.
10236 (internal_vproblem): Update the comment. Check can_dump_core while
10237 setting dump_core_p. Replace two abort calls by dump_core calls.
10238
93c26624
JK
102392010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10240 Eli Zaretskii <eliz@gnu.org>
10241
10242 * NEWS: Document the PIE support.
10243
55235ad7
JK
102442010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10245
10246 * linux-tdep.c: Remove includes gdbcore.h, observer.h and elf-bfd.h.
10247 (check_is_pie_binary, _initialize_linux_tdep): Remove.
10248
41752192
JK
102492010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10250
10251 * solib-svr4.c (svr4_exec_displacement): New comment for entry_point.
10252 Replace exec_entry_point call by bfd_get_start_address.
10253
9f2982ff
JK
102542010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10255
10256 Support Valgrind attachments broken by the PIE support.
10257 * auxv.c: Include gdbcore.h.
10258 (procfs_xfer_auxv): Make static. Reduce its comment. Drop its
10259 parameters ops, object and annex. Remove their assertions.
10260 (ld_so_xfer_auxv, memory_xfer_auxv): New function.
10261 * auxv.h (procfs_xfer_auxv): Remove comment. Rename to ...
10262 (memory_xfer_auxv): ... here.
10263 * linux-nat.c (linux_xfer_partial): Rename procfs_xfer_auxv to
10264 memory_xfer_auxv.
10265 * procfs.c (procfs_xfer_partial): Likewise.
10266 * solib-svr4.c (svr4_relocate_main_executable): New prototype.
10267 (svr4_special_symbol_handling): Call svr4_relocate_main_executable.
10268 (svr4_solib_create_inferior_hook): Conditionalize the
10269 svr4_relocate_main_executable call.
10270
61f0d762
JK
102712010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10272
10273 * solib-svr4.c (scan_dyntag): Remove variable dyn_addr. New variable
10274 target_section. Find SECT in current_target_sections, gdb_assert it.
10275 (elf_lookup_lib_symbol): Pass the binary file if given symfile_objfile.
10276 New variable abfd.
10277 * symtab.c (lookup_objfile_from_block): Return the binary file instead
10278 of separate debug info file.
10279
51bee8e9
JK
102802010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10281
10282 Support PIEs with no symfile_objfile.
10283 * exec.c (print_section_info <abfd == exec_bfd>): Relocate Entry point.
10284 * solib-svr4.c (svr4_relocate_main_executable <exec_bfd>): New block.
10285
b8040f19
JK
102862010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10287
10288 * solib-svr4.c (svr4_relocate_main_executable): Move the static exec
10289 code part to ...
10290 (svr4_static_exec_displacement): ... a new function.
10291 (svr4_exec_displacement): New function.
10292 (svr4_relocate_main_executable): Call svr4_exec_displacement. Allocate
10293 new_offsets using alloca now. Remove variable old_chain and changed.
10294 Call objfile_relocate unconditionally now.
10295
eb90ce83
DE
102962010-01-14 Doug Evans <dje@google.com>
10297
10298 * gdbtypes.c (arch_flags_type): Fix comment.
10299 * gdbtypes.h (arch_composite_type): Fix comment.
10300
bdfed3bc
TG
103012009-01-14 Tristan Gingold <gingold@adacore.com>
10302
10303 * machoread.c (macho_add_oso_symfile): Add symfile_flags parameter.
10304 Call xstrdup for abfd->filename. Pass symfile_flags and objfile flags
10305 to symbol_file_add_from_bfd. Add OSO as separate objfile.
10306 (macho_oso_symfile): Add symfile_flags parameter. Pass it to
10307 macho_add_oso_symfile.
10308 (macho_symfile_read): Pass symfile_flags to macho_oso_symfile.
10309
1596ad23
JB
103102010-01-14 Joel Brobecker <brobecker@adacore.com>
10311
10312 Tru64: Dead threads are never deleted.
10313 * dec-thread.c (dec_thread_ptid_is_alive): New function.
10314 (dec_thread_count_gdb_threads): Fix counter increment.
10315 (dec_thread_add_gdb_thread): Fix *listp increment.
10316 (resync_thread_list): Fix bug in deletion of dead threads that
10317 caused all threads to be deleted, instead of just the dead ones.
10318
be759fcf
PM
103192010-01-13 Phil Muldoon <pmuldoon@redhat.com>
10320
10321 PR python/10705
10322
10323 * python/python-internal.h: Add lazy_string_object_type
10324 definition.
10325 (create_lazy_string_object, gdbpy_initialize_lazy_string)
10326 (gdbpy_is_lazystring, gdbpy_extract_lazy_string): Define.
10327 * python/py-value.c (valpy_lazy_string): New function.
10328 (convert_value_from_python): Add lazy string conversion.
10329 * python/py-prettyprint.c (pretty_print_one_value): Check if
10330 return is also a lazy string.
10331 (print_string_repr): Add lazy string printing branch.
10332 (print_children): Likewise.
10333 * python/py-lazy-string.c: New file. Implement lazy strings.
10334 * python/python.c (_initialize_python): Call
10335 gdbpy_initialize_lazy_string.
10336 * varobj.c (value_get_print_value): Add lazy string printing
10337 branch. Account for encoding.
10338 * c-lang.c (c_printstr): Account for new encoding argument. If
10339 encoding is NULL, find encoding suited for type, otherwise use
10340 user encoding.
10341 * language.h (language_defn): Add encoding argument.
10342 (LA_PRINT_STRING): Likewise.
10343 * language.c (unk_lang_printstr): Update to reflect new encoding
10344 argument to language_defn.
10345 * ada-lang.h (ada_printstr): Likewise.
10346 * c-lang.h (c_printstr): Likewise.
10347 * p-lang.h (pascal_printstr);
10348 * f-lang.c (f_printstr): Likewise.
10349 * m2-lang.c (m2_printstr): Likewise.
10350 * objc-lang.c (objc_printstr): Likewise.
10351 * p-lang.c (pascal_printstr): Likewise.
10352 * scm-lang.c (scm_printstr): Likewise.
10353 * c-valprint.c (c_val_print): Update LA_PRINT_STRING call for
10354 encoding argument.
10355 * ada-valprint.c (ada_printstr): Likewise.
10356 * f-valprint.c (f_val_print): Likewise
10357 * m2-valprint.c (m2_val_print): Likewise.
10358 * p-valprint.c (pascal_val_print): Likewise.
10359 * expprint.c (print_subexp_standard): Likewise.
10360 * valprint.c (val_print_string): Likewise.
10361 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-lazy-string.
10362 (SUBDIR_PYTHON_SRCS): Likewise.
10363 (py-lazy-string.o): New rule.
10364
1fe72117 103652010-01-13 Doug Evans <dje@google.com>
8eee9c5a
DE
10366
10367 * mi/mi-main.c (list_available_thread_groups): Avoid "may be used
10368 uninitialized" warning from gcc on local `tree'.
10369
dc146f7c
VP
103702010-01-13 Vladimir Prus <vladimir@codesourcery.com>
10371
10372 Implement core awareness.
10373
10374 * bcache.c (compare_ints): Remove
10375 (print_percentage): Use compare_positive_ints.
10376 * defs.h (compare_positive_ints): Declare.
10377 * linux-nat.h (struct lin_lwp): New field core.
10378 (linux_nat_core_of_thread_1): Declare.
10379 * linux-nat.c (add_lwp): Init the 'core' field.
10380 (linux_nat_wait_1): Record the core.
10381 (linux_nat_core_of_thread_1, linux_nat_core_of_thread): New.
10382 (linux_nat_add_target): Register the above.
10383 * linux-thread-db.c (update_thread_core): New.
10384 (thread_db_find_new_threads): Update core information for
10385 every thread.
10386 * remote.c (struct private_thread_info): New.
10387 (free_private_thread_info, demand_private_info): New.
10388 (PACKET_qXfer_threads, use_osdata_threads): New.
10389 (struct thread_item, threads_parsing_context
10390 (start_thread, end_thread, thread_attributes)
10391 (thread_children, threads_children, threads_elements): New.
10392 (remote_threads_info): Try qXfer:threads before anything
10393 else.
10394 (remote_protocol_packets): Register qXfer:threads.
10395 (remote_open_1): Init use_osdata_threads.
10396 (struct stop_reply): New field 'core'.
10397 (remote_parse_stop_reply): Parse core number.
10398 (process_stop_reply): Record core number.
10399 (remote_xfer_partial): Handle qXfer:threads.
10400 (remote_core_of_thread): New.
10401 (init_remote_ops): Register remote_core_of_thread.
10402 (_initialize_remote): Register qXfer:read.
10403 * target.c (target_core_of_thread): New
10404 * target.h (enum target_object): New value TARGET_OBJECT_THREADS.
10405 (struct target_ops): New field to_core_of_threads.
10406 (target_core_of_thread): Declare.
10407 * gdbthread.h (struct thread_info): New field private_dtor.
10408 * thread.c (print_thread_info): Report the core.
10409 * ui-out.c (MAX_UI_OUT_LEVELS): Increase.
10410 * utils.c (compare_positive_ints): New.
10411 * features/threads.dtd: New.
10412 * mi/mi-interp.c (mi_on_normal_stop): Report the core.
10413 * mi/mi-main.c (struct collect_cores_data, collect_cores)
10414 (do_nothing, free_vector_of_osdata_items)
10415 (splay_tree_int_comparator, free_splay_tree): New.
10416 (print_one_inferior_data): Implemented printing of selected
10417 inferiors. Collect and print cores.
10418 (output_cores): New.
10419 (mi_cmd_list_thread_groups): Support --recurse. Permit specifying
10420 thread groups together with --available.
10421
d30c5336
JK
104222010-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10423
10424 * configure: Regenerate (for _STRUCTURED_PROC).
10425
02893727
JB
104262010-01-12 Joel Brobecker <brobecker@adacore.com>
10427
10428 Delete dead function.
10429 * ada-lang.c (extract_string): Delete. No longer used.
10430
46ed2d6f
JB
104312010-01-12 Joel Brobecker <brobecker@adacore.com>
10432
10433 Fix -Wunused warning in dec-thread.c.
10434 * dec-thread.c (dec_thread_count_gdb_threads)
10435 (dec_thread_add_gdb_thread): Prevent -Wunused warning.
10436
606b8d1a
JB
104372010-01-12 Joel Brobecker <brobecker@adacore.com>
10438
10439 * ada-valprint.c (ada_print_floating): Remove trailing space.
10440
b4ba55a1
JB
104412010-01-12 Joel Brobecker <brobecker@adacore.com>
10442
10443 Add support for DW_AT_GNAT_descriptive_type.
10444 * gdbtypes.h (enum type_specific_kind): New enum.
10445 (struct main_type) [type_specific_field]: New component.
10446 [type_specific]: Add new component "gnat_stuff".
10447 (struct gnat_aux_type): New type.
10448 (INIT_CPLUS_SPECIFIC): Also set TYPE_SPECIFIC_FIELD (type).
10449 (HAVE_CPLUS_STRUCT): Also check TYPE_SPECIFIC_FIELD (type).
10450 (gnat_aux_default, allocate_gnat_aux_type): Add declaration.
10451 (INIT_GNAT_SPECIFIC, ALLOCATE_GNAT_AUX_TYPE, HAVE_GNAT_AUX_INFO)
10452 (TYPE_SPECIFIC_FIELD): New macros.
10453 (TYPE_CPLUS_SPECIFIC): Return cplus_struct_default if the given
10454 type does not hold any cplus-specific data.
10455 (TYPE_RAW_CPLUS_SPECIFIC): New macro.
10456 (TYPE_GNAT_SPECIFIC, TYPE_DESCRIPTIVE_TYPE): New macros.
10457 (TYPE_IS_OPAQUE): Use HAVE_CPLUS_STRUCT to check if type has
10458 cplus-specific data.
10459 * gdbtypes.c (allocate_cplus_struct_type): Minor stylistic rewrite.
10460 Set new component TYPE_SPECIFIC_FIELD (type).
10461 (gnat_aux_default): New constant.
10462 (allocate_gnat_aux_type): New function.
10463 (init_type): Add initialization the type-specific stuff for
10464 TYPE_CODE_FLT and TYPE_CODE_FUNC types.
10465 (print_gnat_stuff): New function.
10466 (recursive_dump_type): Use HAVE_CPLUS_STRUCT to check for cplus-
10467 specific data. Adjust code that prints the contents of the
10468 type-specific union using the TYPE_SPECIFIC_FIELD value.
10469 * dwarf2read.c (dwarf2_attach_fields_to_type): Do not allocate
10470 the type cplus stuff for Ada types.
10471 (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type):
10472 Error out if these routines are called with an Ada type.
10473 (read_structure_type, read_array_type, read_subrange_type):
10474 Add call to set_descriptive_type.
10475 (set_die_type): Initialize the gnat-specific data if necessary.
10476 (need_gnat_info, die_descriptive_type, set_descriptive_type):
10477 New functions.
10478 * ada-lang.c (decode_constrained_packed_array_type): Use
10479 decode_constrained_packed_array_type instead of doing a standard
10480 lookup to locate a parallel type.
10481 (find_parallel_type_by_descriptive_type): New function.
10482 (ada_find_parallel_type_with_name): New function.
10483 (ada_find_parallel_type): Reimplement using
10484 ada_find_parallel_type_with_name.
10485 * ada-valprint.c (print_field_values): Use HAVE_CPLUS_STRUCT
10486 to check if type has a cplus stuff.
10487 * linespec.c (total_number_of_methods): Likewise.
10488 * mdebugread.c (new_type): Likewise.
10489
b0f02ee9
JK
104902010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10491
10492 * NEWS: Document the 0b binary number prefix parsing.
10493
b260e109
JK
104942010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10495
10496 * objfiles.c (objfile_relocate1): Change the return type to int.
10497 Describe the new return value. Return non-zero if data changed.
10498 (objfile_relocate): New variable changed. Set it. Call
10499 breakpoint_re_set depending on CHANGED.
10500
b5cfddf5
JK
105012010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10502
10503 Implement binary numbers parsing.
10504 * c-exp.y (parse_number): New case 'b' and 'B'.
10505
e0ae4240
JK
105062010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10507 Tristan Gingold <gingold@adacore.com>
10508
10509 * solib.c (info_sharedlibrary_command): Replace
10510 objfile_has_partial_symbols and objfile_has_full_symbols calls by
10511 objfile_has_symbols.
10512
6e0e5977
JB
105132010-01-10 Joel Brobecker <brobecker@adacore.com>
10514
10515 * NEWS: Document the improvements made to the mips-irix port.
10516
7348c5e1
JB
105172010-01-09 Joel Brobecker <brobecker@adacore.com>
10518
10519 Fix the documentation of valprint.c:value_print.
10520 * valprint.c (value_print): Update the function description to
10521 mention that the syntax of the output follows the current_language,
10522 not necessarily C.
10523
567995e1
JK
105242010-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10525
10526 Fix displacement of separate debug info files.
10527 * objfiles.c (objfile_relocate): Rename to ...
10528 (objfile_relocate1): ... here and make it static. Extend the comment.
10529 (objfile_relocate): New function.
10530 * solib-spu.c (spu_relocate_main_executable): Explicitly check if
10531 SYMFILE_OBJFILE is NULL. Remove variables objfile and old_chain.
10532 Remove following of SEPARATE_DEBUG_OBJFILE. new_offsets is now
10533 allocated using alloca.
10534 * symfile.c (copy_section_addr_info): Remove.
10535 (build_section_addr_info_from_objfile): Make it global. New variables
10536 addr_bit and mask, use them.
10537 * symfile.h (build_section_addr_info_from_objfile): New prototype.
10538 (copy_section_addr_info): Remove.
10539
6d8eadbd
JB
105402010-01-09 Joel Brobecker <brobecker@adacore.com>
10541
10542 Signal unwinder for mips-irix N32.
10543 * mips-irix-tdep.c: #include mips-tdep.h, trad-frame.h, and
10544 tramp-frame.h.
10545 (SIGTRAMP_FRAME_SIZE, SIGCONTEXT_PC_OFF, SIGCONTEXT_REGS_OFF)
10546 (SIGCONTEXT_FPREGS_OFF, SIGCONTEXT_FPCSR_OFF, SIGCONTEXT_HI_OFF)
8d95cc3b
PA
10547 (SIGCONTEXT_LO_OFF): New macros.
10548 (mips_irix_n32_tramp_frame_init): New function.
6d8eadbd
JB
10549 (mips_irix_n32_tramp_frame): New static constant.
10550 (mips_irix_init_abi): Prepend the mips_irix_n32_tramp_frame unwinder.
10551
27087a3d
JB
105522010-01-09 Joel Brobecker <brobecker@adacore.com>
10553
10554 Breakpoint in shared library does not work on mips-irix.
10555 * procfs.c: #include "observer.h".
10556 (procfs_inferior_created): New function, moving here the code
10557 which unsets the syssgi syscall-exit notifications.
10558 (procfs_create_inferior): Remove the code which unsets the syssgi
10559 syscall-exit notifications. It is too early to do this here.
10560 (_initialize_procfs): Attach the procfs_inferior_created observer.
10561
f08877ba
JB
105622010-01-09 Joel Brobecker <brobecker@adacore.com>
10563
10564 Wrong return convention for arrays (mips-irix).
10565 * mips-tdep.c (mips_n32n64_return_value): Arrays whose size is
10566 128 bits or smaller are returned the same way as structs
10567 and unions of the the same size.
10568
e4b97d48
JB
105692010-01-09 Joel Brobecker <brobecker@adacore.com>
10570
10571 Cannot set the PC on mips-irix.
10572 * irix5-nat.c (fill_gregset): Check regno against the raw PC
10573 register number, no the cooked one.
10574
11377e68
JB
105752010-01-09 Joel Brobecker <brobecker@adacore.com>
10576
10577 Error while loading core file on mips-irix.
10578 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing
10579 if debugging from a core file.
10580
b2391021
JB
105812010-01-09 Joel Brobecker <brobecker@adacore.com>
10582
10583 GDB hangs when attaching to process on mips-irix.
10584 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing if
10585 attaching to a process.
10586
f2ec0ecf
JB
105872010-01-09 Joel Brobecker <brobecker@adacore.com>
10588
10589 Use the correct breakpoint instruction on mips-irix.
10590 * mips-tdep.c (mips_breakpoint_from_pc): Add new static variable
10591 containing the correct breakpoint instruction to use on mips-irix.
10592 Use it when the osabi is GDB_OSABI_IRIX.
10593
3c95f01c
JB
105942010-01-09 Joel Brobecker <brobecker@adacore.com>
10595
10596 -Wunused warning in procfs.c (mips-irix only).
10597 * procfs.c (gdb_praddset, gdb_prdelset): New macros. Use them
10598 throughout instead of using praddset and prdelset respectively.
10599
4b7703ad
JB
106002010-01-09 Joel Brobecker <brobecker@adacore.com>
10601
10602 GDB crash while stepping into function.
10603 * infrun.c (handle_inferior_event): Refetch the current frame
10604 after handling what.main_action, in case that pointer became
10605 dangling.
10606
12c89474
JB
106072010-01-09 Joel Brobecker <brobecker@adacore.com>
10608
10609 Fix build failure of solaris-hosted cross debuggers.
10610 * ada-valprint.c, parse.c: Include defs.h before including ctype.h.
10611
1a3fd262 106122010-01-09 Daniel Gutson <dgutson@codesourcery.com>
4c490650
JB
10613
10614 Fix build failure on sparc-solaris.
10615 * procfs.c: (procfs_do_thread_registers) Use elfcore_write_lwpstatus.
10616
75242ef4
JK
106172010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10618
10619 Move some symfile code into subroutines.
10620 * symfile.h (relative_addr_info_to_section_offsets)
10621 (addr_info_make_relative): New prototypes.
10622 * symfile.c (default_symfile_offsets): Move a part to ...
10623 (relative_addr_info_to_section_offsets): ... this new function.
10624 (default_symfile_offsets): Call it.
10625 (syms_from_objfile <!mainline && addrs && addrs->other[0].name>): Move
10626 this part to ...
10627 (addr_info_make_relative): ... this new function.
10628
268a4a75
JK
106292010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10630
10631 Add from_tty to solib_create_inferior_hook.
10632 * infcmd.c (post_create_inferior): Move solib_add after
10633 solib_create_inferior_hook. Pass from_tty to
10634 solib_create_inferior_hook. Call solib_add and SOLIB_ADD with
10635 0 from_tty and comment why.
10636 * infrun.c (follow_exec): Pass from_tty solib_create_inferior_hook as 0.
10637 * linux-nat.c (linux_child_follow_fork): Likewise.
10638 * nto-procfs.c (procfs_post_attach, procfs_create_inferior): Likewise.
10639 * solib-darwin.c (darwin_solib_create_inferior_hook): New parameter
10640 from_tty.
10641 * solib-frv.c (frv_solib_create_inferior_hook): Likewise.
10642 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
10643 * solib-null.c (null_solib_create_inferior_hook): Likewise.
10644 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
10645 * solib-pa64.c (pa64_solib_create_inferior_hook): Likewise.
10646 * solib-som.c (som_solib_create_inferior_hook): Likewise.
10647 * solib-spu.c (spu_solib_create_inferior_hook): New parameter from_tty.
10648 Pass it to svr4_so_ops.solib_create_inferior_hook.
10649 * solib-sunos.c (sunos_solib_create_inferior_hook): New parameter
10650 from_tty.
10651 * solib-svr4.c (enable_break): New parameter from_tty. Pass it to
10652 solib_add.
10653 (svr4_solib_create_inferior_hook): New parameter from_tty. Pass it to
10654 enable_break.
10655 * solib-target.c (solib_target_solib_create_inferior_hook): New
10656 parameter from_tty.
10657 * solib.c (solib_create_inferior_hook): New parameter from_tty. Pass
10658 it to ops->solib_create_inferior_hook.
10659 (reload_shared_libraries): Pass from_tty to solib_create_inferior_hook.
10660 Move solib_add after solib_create_inferior_hook, call it now with
10661 from_tty as 0. New comment there.
10662 * solib.h (solib_create_inferior_hook): New parameter from_tty.
10663 * solist.h (struct target_so_ops <solib_create_inferior_hook>):
10664 Likewise.
10665
cf00dfa7
VP
106662010-01-08 Vladimir Prus <vladimir@codesourcery.com>
10667
10668 Fix multiexec race.
10669 * infrun.c (handle_inferior_event): Use get_thread_regcache
10670 with events ptid, not get_current_regcache.
10671
f91e5ac3
JB
106722009-01-08 Joel Brobecker <brobecker@adacore.com>
10673
10674 GDB crash with empty executable name (MinGW).
10675 * source.c (openp): Add assert that parameter string is not NULL.
10676 if parameter string is an empty string, then return with a failure
10677 immediately.
10678
92b9ce5b
JB
106792009-01-08 Joel Brobecker <brobecker@adacore.com>
10680
10681 Get rid of support for VAX Floats.
10682 * ada-lang.h (ada_is_vax_floating_type, ada_vax_float_type_suffix)
10683 (ada_vax_float_print_function): Delete.
10684 * ada-lang.c (ada_is_vax_floating_type, ada_vax_float_type_suffix)
10685 (ada_vax_float_print_function): Delete.
10686 * ada-typeprint.c (print_vax_floating_point_type): Delete.
10687 (ada_print_type): Remove support for VAX floats.
10688 * ada-valprint.c (ada_val_print_1): Remove support for VAX floats.
10689
268a4a75 106902010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
d24d8548
JK
10691
10692 * stabsread.c (read_args): Handle zero arguments.
10693
f0f20949
JB
106942009-01-08 Joel Brobecker <brobecker@adacore.com>
10695
10696 Cannot find in-tree libiconv.a after reconfigure.
10697 * acinclude.m4 (AM_ICONV): If we find an in-tree libiconv.a
10698 that we can use, then cache the path to this archive.
10699 * configure: Regenerate.
10700
6b6218c5
SS
107012010-01-07 Stan Shebs <stan@codesourcery.com>
10702
35b1e5cc
SS
10703 Make tracepoint operations go through target vector.
10704 * target.h (enum trace_find_type): New enum.
10705 (struct target_ops): New fields to_trace_init,
10706 to_download_tracepoint, to_download_trace_state_variable,
10707 to_trace_set_readonly_regions, to_trace_start, to_get_trace_status,
10708 to_trace_stop, to_trace_find, to_get_trace_state_variable_value,
10709 to_set_disconnected_tracing.
10710 (target_trace_init): New macro.
10711 (target_download_tracepoint): New macro.
10712 (target_download_trace_state_variable): New macro.
10713 (target_trace_start): New macro.
10714 (target_trace_set_readonly_regions): New macro.
10715 (target_get_trace_status): New macro.
10716 (target_trace_stop): New macro.
10717 (target_trace_find): New macro.
10718 (target_get_trace_state_variable_value): New macro.
10719 (target_set_disconnected_tracing): New macro.
10720 * target.c (update_current_target): Inherit and set defaults for
10721 tracepoint operations.
10722 * tracepoint.c (default_collect): Make globally visible.
10723 (target_is_remote): Remove, along with all calls.
10724 (tvariables_info): Call target_get_trace_state_variable_value.
10725 (remote_set_transparent_ranges): Remove.
10726 (trace_start_command): Call target_trace_init,
10727 target_download_tracepoint, etc.
10728 (download_tracepoint): Remove.
10729 (trace_stop_command): Simplify.
10730 (stop_tracing): Call target_trace_stop.
10731 (get_trace_status): Call target_get_trace_status.
10732 (trace_status_command): Add case for targets that cannot trace.
10733 (finish_tfind_command): Change to take numerical arguments, call
10734 target_trace_find.
10735 (trace_find_command): Update call to finish_tfind_command.
10736 (trace_find_pc_command): Ditto.
10737 (trace_find_tracepoint_command): Ditto.
10738 (trace_find_line_command): Ditto.
10739 (trace_find_range_command): Ditto.
10740 (trace_find_outside_command): Ditto.
10741 (set_disconnected_tracing_value): Call
10742 target_set_disconnected_tracing.
10743 * remote.c: Add protocol encoding bits from tracepoint.c.
10744 (trace_error): Move from tracepoint.c.
10745 (remote_get_noisy_reply): Ditto.
10746 (free_actions_list_cleanup_wrapper): Ditto.
10747 (free_actions_list): Ditto.
10748 (remote_trace_init): New function.
10749 (remote_download_tracepoint): New function.
10750 (remote_download_trace_state_variable): New function.
10751 (remote_trace_set_readonly_regions): New function.
10752 (remote_trace_start): New function.
10753 (remote_get_trace_status): New function.
10754 (remote_trace_stop): New function.
10755 (remote_trace_find): New function.
10756 (remote_download_trace_state_variable): New function.
10757 (remote_set_disconnected_tracing): New function.
10758 (init_remote_ops): Add tracepoint operations.
10759
6b6218c5
SS
10760 * tracepoint.c (trace_dump_command): Don't decr_pc_after_break.
10761
089b4803
TG
107622010-01-07 Tristan Gingold <gingold@adacore.com>
10763
10764 * symfile.c (build_section_addr_info_from_objfile): New function.
10765 (symbol_file_add_separate): Don't use offsets from objfile but
10766 built an addr info.
10767
d5551862
SS
107682010-01-06 Stan Shebs <stan@codesourcery.com>
10769
10770 Support disconnected tracing.
10771 * infcmd.c (detach_command): Ask whether to stop tracing.
10772 * cli/cli-cmds.c (quit_command): Ditto.
10773 * breakpoint.h (struct breakpoint): New field number_on_target.
10774 * breakpoint.c (create_tracepoint_from_upload): New function.
10775 (get_tracepoint_by_number_on_target): New function.
10776 * remote.c (struct remote): New field disconnected_tracing.
10777 (remote_disconnected_tracing_feature): New function.
10778 (remote_protocol_features): Add DisconnectedTracing.
10779 (struct uploaded_tp): New struct.
10780 (uploaded_tps): New global.
10781 (get_uploaded_tp): New function.
10782 (find_matching_tracepoint): New function.
10783 (remote_get_tracing_state): New function.
10784 (remote_start_remote): Call it.
10785 * tracepoint.c (disconnected_tracing): New global.
10786 (trace_start_command): Initialize number_on_target.
10787 (stop_tracing): New function, split out from...
10788 (trace_stop_command): Call stop_tracing.
10789 (get_trace_status): New function, split out from...
10790 (trace_status_command): Call get_trace_status, add info on
10791 disconnection behavior.
10792 (disconnect_or_stop_tracing): New function.
10793 (finish_tfind_command): Translate from number on target.
10794 (trace_find_tracepoint_command): Translate to number on target.
10795 (send_disconnected_tracing_value): New function.
10796 (set_disconnected_tracing): New function.
10797 (_initialize_tracepoint): Add disconnected-tracing variable.
10798 * NEWS: Mention disconnected tracing.
10799
15d123c9
TG
108002010-01-06 Tristan Gingold <gingold@adacore.com>
10801
10802 * symtab.c (lookup_global_symbol_from_objfile): Rename objfile
10803 parameter to main_objfile. Iterate on all separate debug objfiles.
10804 * symfile.h (symbol_file_add_separate)
10805 (find_separate_debug_file_by_debuglink): Remove parameter names.
10806 * symfile.c (symbol_file_add_separate): Use add_separate_objfile.
10807 (reread_symbols): Use free_objfile_separate_debug.
10808 * objfiles.h (struct objfile): Add separate_debug_objfile_link.
10809 Adjust comment.
10810 (objfile_separate_debug_iterate, add_separate_debug_objfile)
10811 (free_objfile_separate_debug): New prototypes.
10812 * objfiles.c (objfile_separate_debug_iterate): New function.
10813 (add_separate_debug_objfile, free_objfile_separate_debug): New
10814 functions.
10815 (free_objfile): Use free_objfile_separate_debug. Adjust for
10816 multiple separate debug objfile.
10817 (objfile_has_symbols): Adjust comment. Iterate on all separate
10818 debug objfiles.
10819 * minsyms.c (lookup_minimal_symbol): Adjust for multiple separate
10820 debug objfile.
10821 (lookup_minimal_symbol_text): Ditto.
10822 (lookup_minimal_symbol_by_pc_name): Ditto.
10823 (lookup_minimal_symbol_solib_trampoline): Ditto.
10824 (lookup_minimal_symbol_by_pc_section_1): Iterate on all separate
10825 debug objfiles.
10826
7a697b8d
SS
108272010-01-05 Stan Shebs <stan@codesourcery.com>
10828
10829 Add fast tracepoints.
10830 * arch-utils.h (default_fast_tracepoint_valid_at): Declare.
10831 * arch-utils.c (default_fast_tracepoint_valid_at): New function.
10832 * breakpoint.h (enum bptype): Add bp_fast_tracepoint.
10833 * breakpoint.c (tracepoint_type): New function.
10834 (ALL_TRACEPOINTS): Use it.
10835 (should_be_inserted): Ditto.
10836 (bpstat_check_location): Ditto.
10837 (print_one_breakpoint_location): Ditto.
10838 (user_settable_breakpoint): Ditto.
10839 (set_breakpoint_location_function): Ditto.
10840 (disable_breakpoints_in_shlibs): Ditto.
10841 (delete_trace_command): Ditto.
10842 (print_it_typical): Add bp_fast_tracepoint case.
10843 (bpstat_what): Ditto.
10844 (print_one_breakpoint_location): Ditto.
10845 (allocate_bp_location): Ditto.
10846 (mention): Ditto.
10847 (breakpoint_re_set_one): Ditto.
10848 (disable_command): Ditto.
10849 (enable_command): Ditto.
10850 (check_fast_tracepoint_sals): New function.
10851 (break_command_really): Call it.
10852 (ftrace_command): New function.
10853 (_initialize_breakpoint): Add ftrace command.
10854 * gdbarch.sh (fast_tracepoint_valid_at): New.
10855 * gdbarch.h, gdbarch.c: Regenerate.
10856 * i386-tdep.c (i386_fast_tracepoint_valid_at): New function.
10857 (i386_gdbarch_init): Use it.
10858 * remote.c (struct remote_state): New field fast_tracepoints.
10859 (PACKET_FastTracepoints): New packet config type.
10860 (remote_fast_tracepoint_feature): New function.
10861 (remote_protocol_features): Add FastTracepoints.
10862 (remote_supports_fast_tracepoints): New function.
10863 (_initialize_remote): Add FastTracepoints.
10864 * tracepoint.c (download_tracepoint): Add fast tracepoint option.
10865 * NEWS: Mention fast tracepoints.
10866
737a160e
JB
108672010-01-06 Joel Brobecker <brobecker@adacore.com>
10868
10869 * gdb-gdb.py: New file.
10870
ce6cca6d
MS
108712010-01-05 Michael Snyder <msnyder@vmware.com>
10872
10873 * infrun.c (handle_inferior_event): Fix typo in comment.
10874
0d15807d
JK
108752010-01-05 Jan Kratochvil <jan.kratochvil@redhat.com>
10876
10877 * symfile.c (syms_from_objfile): Remove the !MAINLINE conditional.
10878
7803799a
UW
108792010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
10880
c8d5aac9 10881 * features/Makefile (WHICH): Add s390-linux32, s390-linux64,
7803799a
UW
10882 and s390x-linux64.
10883 (s390-linux32-expedite): Define.
10884 (s390-linux64-expedite): Define.
10885 (s390x-linux64-expedite): Define.
10886 * features/s390-acr.xml: New file.
10887 * features/s390-fpr.xml: New file.
10888 * features/s390-core32.xml: New file.
10889 * features/s390-core64.xml: New file.
10890 * features/s390x-core64.xml: New file.
10891 * features/s390-linux32.xml: New file.
10892 * features/s390-linux64.xml: New file.
10893 * features/s390x-linux64.xml: New file.
10894 * features/s390-linux32.c: New generated file.
10895 * features/s390-linux64.c: New generated file.
10896 * features/s390x-linux64.c: New generated file.
10897
10898 * regformats/s390-linux32.dat: New generated file.
10899 * regformats/s390-linux64.dat: New generated file.
10900 * regformats/s390x-linux64.dat: New generated file.
10901 * regformats/reg-s390.dat: Remove.
10902 * regformats/reg-s390x.dat: Remove.
10903
10904 * s390-nat.c: Include "auxv.h" and <elf.h>.
10905 (HWCAP_S390_HIGH_GPRS): Define if undefined.
10906 (s390_target_wordsize): New function.
10907 (s390_auxv_parse): Likewise.
10908 (s390_get_hwcap): Likewise.
10909 (s390_read_description): Likewise.
10910 (_initialize_s390_nat): Install s390_auxv_parse and
10911 s390_read_description.
10912
10913 * s390-tdep.c: Include "features/s390-linux32.c",
10914 "features/s390-linux64.c", and "features/s390x-linux64.c".
10915 (struct gdbarch_tdep): Add gpr_full_regnum, pc_regnum, and cc_regnum.
10916 (s390_register_call_saved): New function.
10917 (s390_register_name): Remove.
10918 (s390_register_type): Remove.
10919 (s390_dwarf_regmap): Add lower half GPR pseudo DWARF CFI regnums.
10920 (s390_dwarf_reg_to_regnum): Remap GPR regnums to full GPRs.
10921 (s390_adjust_frame_regnum): Remap GPR regnums to lower halves for CFI.
10922 (s390_pseudo_register_name): New function.
10923 (s390_pseudo_register_type): New function.
10924 (s390_pseudo_register_read): Handle both 32-bit and 64-bit cases.
10925 Handle full GPR pesudos and varying pseudo register numbers.
10926 (s390_pseudo_register_write): Likewise
10927 (s390x_pseudo_register_read): Remove.
10928 (s390x_pseudo_register_write): Likewise.
10929 (s390_register_group): Remove.
10930 (s390_pseudo_register_group): New function.
10931 (s390_regmap_gregset): Add GPR upper halves.
10932 (s390x_regmap_gregset): Likewise.
10933 (s390_regmap_fpregset): Likewise.
10934 (s390_regmap_upper): New global variable.
10935 (s390_upper_regset): New global variable.
10936 (s390_upper_regset_sections): New global variable.
10937 (s390_regset_from_core_section): Handle GPR upper halves.
10938 (s390_core_read_description): New function.
10939 (s390_prologue_frame_unwind_cache): Set up ABI call-saved/clobbered
10940 register information. Handle varying pseudo register numbers.
10941 (s390_backchain_frame_unwind_cache): Likewise.
10942 (s390_frame_prev_register): Unwind full GPRs to show lower halves.
10943 (s390_stub_frame_unwind_cache): Handle varying pseudo register numbers.
10944 (s390_sigtramp_frame_unwind_cache): Unwind PSWM and PSWA as well as
10945 PC and CC pseudos. Unwind upper halves and full GPRs as appropriate.
10946 Handle varying pseudo register numbers.
10947 (s390_unwind_pc): Handle varying pseudo register numbers.
10948 (s390_dwarf2_prev_register): New function.
10949 (s390_dwarf2_frame_init_reg): Set up ABI call-saved/clobbered
10950 register information. Handle varying pseudo register numbers.
10951 Install s390_dwarf2_prev_register to unwind full GPRs.
10952 (s390_gdbarch_init): Handle target descriptions. Assign varying
10953 pseudo register numbers. Install s390_adjust_frame_regnum.
10954 (_initialize_s390_tdep): Initialize target descriptions.
10955
10956 * s390-tdep.h (S390_R0_UPPER_REGNUM .. S390_R15_UPPER_REGNUM): Define.
10957 (S390_NUM_REGS): Redefine to include upper half registers.
10958 (S390_PC_REGNUM, S390_CC_REGNUM): Remove.
10959 (S390_NUM_PSEUDO_REGS, S390_NUM_TOTAL_REGS): Likewise.
10960 (tdesc_s390_linux32): Add declaration.
10961 (tdesc_s390_linux64): Likewise.
10962 (tdesc_s390x_linux64): Likewise.
10963
1b1818e4
UW
109642010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
10965
10966 * regset.h (struct core_regset_section): Add HUMAN_NAME.
10967 * i386-linux-tdep.c (i386_linux_regset_sections): Fill in HUMAN_NAME.
10968 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
10969 (ppc_linux_vmx_regset_sections): Likewise.
10970 (ppc_linux_fp_regset_sections): Likewise.
10971
10972 * corelow.c (get_core_register_section): Constify arguments.
10973 (get_core_registers): Use gdbarch_core_regset_sections instead
10974 of hard-coded platform-specific register section names.
10975
dcbf108f
UW
109762010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
10977
10978 * dwarf2loc.c (read_pieced_value): If a piece occupies part of
b3f41522 10979 a register, assume the least-significant part is used.
dcbf108f
UW
10980 (write_pieced_value): Likewise.
10981
704e9165
UW
109822010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
10983
10984 * printcmd.c: Include "arch-utils.h".
10985 (do_one_display): Re-parse expression if current architecture changed.
10986
c54eabfa
JK
109872010-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10988 Joel Brobecker <brobecker@adacore.com>
10989
10990 * gdbtypes.c (check_typedef): New comment on type length.
10991 * value.c (allocate_value_lazy): Remove the unused atype variable. New
10992 comment on type length.
10993 (value_primitive_field): Keep the original TYPE value, new comment.
10994
50cb2941
JK
109952010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10996
10997 * cli/cli-script.c (process_next_line): Rename p1 as p_end and p2 as
10998 p_start. Change != comparisons to > and < comparisons.
10999
be66db07
JK
110002010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
11001
11002 * cli/cli-script.c (process_next_line): Check P2 overrun.
11003
abd775ce
JB
110042009-01-01 Joel Brobecker <brobecker@adacore.com>
11005
11006 Update the copyright hearder to add year 2010 for most GDB files.
11007
6479260d
JB
110082009-01-01 Joel Brobecker <brobecker@adacore.com>
11009
11010 Fix build failure in inf-ptrace.c.
11011 * inf-ptrace.c (inf_ptrace_follow_fork): Fix typo.
11012
4a70f654
JB
110132010-01-01 Joel Brobecker <brobecker@adacore.com>
11014
11015 * top.c (print_gdb_version): Update copyright year.
11016
595939de 110172010-01-01, 10 Joel Brobecker <brobecker@adacore.com>
b9ee2233
JB
11018
11019 Fix break *FUN'address thread NUM.
11020 * ada-lex.l (task): Expand rule to also match the thread keyword.
11021
70575d34
JB
110222010-01-01 Joel Brobecker <brobecker@adacore.com>
11023
11024 Fix break *FUN'address task NUM.
11025 * ada-lex.l (task): New rule.
11026 * ada-lang.c (valid_task_id): Make sure the Ada task list has
11027 been built before using it.
11028
e1e4d4a4 11029For older changes see ChangeLog-2009.
c906108c
SS
11030\f
11031Local Variables:
11032mode: change-log
11033left-margin: 8
11034fill-column: 74
11035version-control: never
57da7796 11036coding: utf-8
c906108c 11037End:
This page took 1.664309 seconds and 4 git commands to generate.