Fix typo in frame.h:read_frame_register_unsigned function description.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
2
3 * mips-tdep.c (mips32_bc1_pc): New function.
4 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
5 BPOSGE32 and BPOSGE64 instructions.
6 (deal_with_atomic_sequence): Likewise.
7 (mips32_instruction_has_delay_slot): Likewise.
8
9 2012-03-01 Maciej W. Rozycki <macro@mips.com>
10 Chris Dearman <chris@mips.com>
11 Maciej W. Rozycki <macro@codesourcery.com>
12 Joseph Myers <joseph@codesourcery.com>
13
14 * features/mips-dsp.xml: New file.
15 * features/mips64-dsp.xml: New file.
16 * features/mips-dsp-linux.xml: New file.
17 * features/mips64-dsp-linux.xml: New file.
18 * features/Makefile (WHICH): Add mips-dsp-linux and
19 mips64-dsp-linux.
20 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
21 * features/mips-dsp-linux.c: New file.
22 * features/mips64-dsp-linux.c: New file.
23 * regformats/mips-dsp-linux.dat: New file.
24 * regformats/mips64-dsp-linux.dat: New file.
25 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
26 registers.
27 (mips64_linux_register_addr): Likewise.
28 (mips64_linux_regsets_fetch_registers): Likewise.
29 (mips64_linux_regsets_store_registers): Likewise.
30 (mips64_linux_fetch_registers): Update call to
31 mips64_linux_regsets_fetch_registers.
32 (mips64_linux_store_registers): Update call to
33 mips64_linux_regsets_store_registers.
34 (mips_linux_read_description): Probe for DSP registers.
35 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
36 and initialize_tdesc_mips64_dsp_linux.
37 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
38 Remove padding of no longer used embedded register slots.
39 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
40 (MIPS_RESTART_REGNUM): Redefine enum value.
41 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
42 strings.
43 (mips_tx39_reg_names): Likewise.
44 (mips_linux_reg_names): New array of register names for Linux
45 targets.
46 (mips_register_name): Check for a null pointer in
47 mips_processor_reg_names and return an empty string.
48 (mips_register_type): Exclude embedded registers for the IRIX
49 and Linux ABIs.
50 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
51 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
52 DSP registers.
53 (mips_stab_reg_to_regnum): Handle DSP accumulators.
54 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
55 (mips_gdbarch_init): Likewise. Initialize internal register
56 indices for the Linux ABI. Use dynamic numbers to refer to
57 registers, as applicable, while parsing the target description.
58 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
59
60 2012-03-01 Joel Brobecker <brobecker@adacore.com>
61
62 * frame.h (read_frame_register_unsigned): Fix typo in function
63 description.
64
65 2012-03-01 Pedro Alves <palves@redhat.com>
66
67 * jit-reader.in [!__cplusplus]
68 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
69
70 2012-03-01 Pedro Alves <palves@redhat.com>
71
72 * configure.ac (build_warnings): Add -Wmissing-prototypes.
73 * configure: Regenerate.
74
75 2012-03-01 Pedro Alves <palves@redhat.com>
76
77 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
78 * breakpoint.c (create_exception_master_breakpoint, trace_command)
79 (ftrace_command, strace_command): Make static.
80 * d-lang.c (_initialize_d_language): Declare.
81 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
82 * dwarf2loc.c (_initialize_dwarf2loc):
83 * dwarf2read.c (process_psymtab_comp_unit): Make static.
84 * exec.c (exec_get_section_table): Make static.
85 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
86 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
87 * inferior.c (remove_inferior_command, add_inferior_command)
88 (clone_inferior_command): Make static.
89 * linux-nat.c (linux_nat_thread_address_space)
90 (linux_nat_core_of_thread): Make static.
91 * linux-tdep.c (_initialize_linux_tdep): Declare.
92 * objc-lang.c (_initialize_objc_lang): Declare.
93 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
94 Make static.
95 (_initialize_opencl_language): Declare.
96 * record.c (_initialize_record): Declare.
97 * remote.c (demand_private_info, remote_get_tib_address)
98 (remote_supports_cond_tracepoints)
99 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
100 Make static.
101 * skip.c (_initialize_step_skip): Declare.
102 * symtab.c (skip_prologue_using_lineinfo): Make static.
103 * tracepoint.c (delete_trace_state_variable)
104 (trace_variable_command, delete_trace_variable_command)
105 (get_uploaded_tsv, find_matching_tracepoint_location)
106 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
107 Make static.
108 * value.c (pack_unsigned_long): Make static.
109 * varobj.c (varobj_ensure_python_env): Make static.
110 * windows-tdep.c (_initialize_windows_tdep): Declare.
111 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
112
113 2012-03-01 Pedro Alves <palves@redhat.com>
114
115 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
116 gdbarch parameter.
117 (linux_init_abi): Install it as has_shared_address_space gdbarch
118 callback.
119
120 2012-03-01 Pedro Alves <palves@redhat.com>
121
122 * observer.c (observer_test_first_notification_function)
123 (observer_test_second_notification_function)
124 (observer_test_third_notification_function): Add declarations.
125
126 2012-03-01 Pedro Alves <palves@redhat.com>
127
128 * common/signals.c (default_target_signal_to_host)
129 (default_target_signal_from_host): Move ...
130 * arch-utils.c: ... here.
131 * arch-utils.h (default_target_signal_to_host)
132 (default_target_signal_from_host): Declare.
133
134 * common/signals.c (target_signal_from_command): Move ...
135 * infrun.c: ... here.
136 * inferior.h (target_signal_from_command): Declare.
137 * target.h (target_signal_from_command)
138 (default_target_signal_from_host, default_target_signal_to_host):
139 Delete declarations.
140
141 * common/signals.c (_initialize_signals): Delete.
142
143 2012-03-01 Pedro Alves <palves@redhat.com>
144
145 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
146 both __cplusplus and !__cplusplus.
147
148 2012-03-01 Pedro Alves <palves@redhat.com>
149
150 * psymtab.c (find_and_open_source): Delete declaration.
151 * source.c (find_and_open_source): Move comment ...
152 * source.h (find_and_open_source): ... to this new declaration.
153
154 2012-03-01 Pedro Alves <palves@redhat.com>
155
156 * inline-frame.c: Include inline-frame.h.
157
158 2012-03-01 Pedro Alves <palves@redhat.com>
159
160 * tui/tui-data.c (set_gen_win_origin): Delete.
161 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
162 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
163
164 2012-03-01 Pedro Alves <palves@redhat.com>
165
166 * remote.c (encode_actions): Delete declaration.
167 * tracepoint.c (encode_actions): Make extern.
168 * tracepoint.h (encode_actions): Declare.
169
170 2012-03-01 Pedro Alves <palves@redhat.com>
171
172 * python/py-breakpoint.c: Include python.h.
173 * python/py-continueevent.c (create_continue_event_object): Make
174 static.
175 * python/py-lazy-string.c (stpy_get_type): Make static.
176 * python/py-newobjfileevent.c (create_new_objfile_event_object):
177 Make static.
178 * python/py-utils.c (unicode_to_target_python_string): Make
179 static.
180 * python/py-value.c: Include python.h.
181
182 2012-03-01 Pedro Alves <palves@redhat.com>
183
184 * inferior.c (delete_threads_of_inferior): Delete.
185
186 2012-03-01 Pedro Alves <palves@redhat.com>
187
188 Import fallback definitions from glibc.
189
190 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
191 ps_prochandle): Forward declare.
192 (ps_err_e): Use glibc's comments.
193 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
194 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
195 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
196 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
197 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
198 (struct ps_prochandle): Adjust comment.
199
200 2012-03-01 Pedro Alves <palves@redhat.com>
201
202 * ada-lang.c (ada_modulus_from_name): Delete.
203 * ada-lex.l (lexer_init): Make static.
204
205 2012-03-01 Pedro Alves <palves@redhat.com>
206
207 PR gdb/13767
208
209 * frame.c (read_frame_register_unsigned): New.
210 * frame.h (read_frame_register_unsigned): Declare.
211 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
212 Handle it.
213 (print_i387_control_word): New parameter `control_p'. Handle it.
214 (i387_print_float_info): Handle unavailable float registers.
215
216 2012-03-01 Keith Seitz <keiths@redhat.com>
217
218 * linespec.c (decode_line_2): Sort the list of methods
219 alphabetically before presenting the user with a selection
220 menu.
221
222 2012-03-01 Doug Evans <dje@google.com>
223
224 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
225 has_namespace_info.
226 (dwarf2_read_abbrevs): Remove corresponding initialization.
227
228 2012-03-01 Scott J. Goldman <scottjg@vmware.com>
229
230 * NEWS: Mention new python command class gdb.COMMAND_USER.
231 * cli/cli-cmds.c (show_user): Print error when used on a python
232 command.
233 (init_cli_cmds): Update documentation strings for "show user" and
234 "set/show max-user-call-depth" to clarify that it does not apply to
235 python commands.
236 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
237 error check.
238 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
239 gdb python api.
240 * top.c (execute_command): Only execute a user-defined command as a
241 legacy macro if c->user_commands is set.
242
243 2012-03-01 Tom Tromey <tromey@redhat.com>
244
245 * valprint.h (struct generic_val_print_decorations): New.
246 (generic_val_print): Declare.
247 * valprint.c (generic_val_print): New function.
248 * p-valprint.c (p_decorations): New global.
249 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
250 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
251 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
252 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
253 * m2-valprint.c (m2_decorations): New global.
254 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
255 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
256 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
257 TYPE_CODE_ERROR>: Call generic_val_print.
258 * f-valprint.c (f_decorations): New global.
259 (f_val_print): Use print_function_pointer_address.
260 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
261 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
262 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
263 generic_val_print.
264 * c-valprint.c (c_decorations): New global.
265 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
266 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
267 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
268 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
269 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
270 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
271 case.
272
273 2012-03-01 Tom Tromey <tromey@redhat.com>
274
275 * valprint.c (val_print): Update.
276 * p-valprint (pascal_val_print): Return void.
277 * p-lang.h (pascal_val_print): Return void.
278 * m2-valprint.c (m2_val_print): Return void.
279 * m2-lang.h (m2_val_print): Return void.
280 * language.h (struct language_defn) <la_val_print>: Return void.
281 * language.c (unk_lang_val_print): Return void.
282 * jv-valprint.c (java_val_print): Return void.
283 * jv-lang.h (java_val_print): Return void.
284 * f-valprint.c (f_val_print): Return void.
285 * f-lang.h (f_val_print): Return void.
286 * d-valprint.c (d_val_print): Return void.
287 (dynamic_array_type): Update.
288 * d-lang.h (d_val_print): Return void.
289 * c-valprint.c (c_val_print): Return void.
290 * c-lang.h (c_val_print): Return void.
291 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
292 void.
293 * ada-lang.h (ada_val_print): Return void.
294
295 2012-03-01 Tom Tromey <tromey@redhat.com>
296
297 * value.h (val_print): Return void.
298 * valprint.c (val_print): Return void.
299
300 2012-03-01 Tom Tromey <tromey@redhat.com>
301
302 * value.h (common_val_print): Return void.
303 * valprint.c (common_val_print): Return void.
304
305 2012-03-01 Tom Tromey <tromey@redhat.com>
306
307 * value.h (value_print): Return void.
308 * valprint.c (value_print): Return void.
309 * p-valprint.c (pascal_value_print): Return void.
310 * p-lang.h (pascal_value_print): Return void.
311 * language.h (struct language_defn) <la_value_print>: Return
312 void.
313 * language.c (unk_lang_value_print): Return void.
314 * jv-valprint.c (java_value_print): Return void.
315 * jv-lang.h (java_value_print): Return void.
316 * f-valprint.c (c_value_print): Don't declare.
317 Include c-lang.h.
318 * c-valprint.c (c_value_print): Return void.
319 * c-lang.h (c_value_print): Return void.
320 * ada-valprint.c (ada_value_print): Return void.
321 * ada-lang.h (ada_value_print): Return void.
322
323 2012-03-01 Tom Tromey <tromey@redhat.com>
324
325 * value.c (value_primitive_field): Handle virtual base classes.
326
327 2012-03-01 Tom Tromey <tromey@redhat.com>
328
329 * gdbtypes.h (struct vbase): Remove.
330
331 2012-03-01 Tom Tromey <tromey@redhat.com>
332
333 * c-valprint.c (print_function_pointer_address): Move...
334 * valprint.c: ... here. Make non-static.
335 * m2-valprint.c (print_function_pointer_address): Remove.
336 * valprint.h (print_function_pointer_address): Declare.
337
338 2012-03-01 Joel Brobecker <brobecker@adacore.com>
339
340 * NEWS: Document the fact that one can provide a condition when
341 creating an Ada exception catchpoint.
342
343 2012-03-01 Tom Tromey <tromey@redhat.com>
344
345 * valprint.c (val_print_type_code_flags): Fix placement of
346 trailing brace.
347
348 2012-03-01 Joel Brobecker <brobecker@adacore.com>
349
350 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
351 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
352 environment variable before calling update-copyright.
353
354 2012-03-01 Joel Brobecker <brobecker@adacore.com>
355
356 * gnulib/extra/update-copyright: Update to the latest from
357 gnulib's git repository.
358 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
359 variable to 2 instead of 1.
360
361 2012-02-29 Joel Brobecker <brobecker@adacore.com>
362
363 * varobj.c (c_value_of_variable): Remove dead code.
364
365 2012-02-29 Joel Brobecker <brobecker@adacore.com>
366
367 * ada-lex.p (processId): Do not modify already encoded IDs.
368 Update function documentation.
369
370 2012-02-29 Joel Brobecker <brobecker@adacore.com>
371
372 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
373 "name" with "struct symbol *name_sym".
374 * ada-exp.y (write_var_or_type): Update call to
375 ada_find_renaming_symbol.
376 "name" with "struct symbol *name_sym". Adjust Implementation
377 accordingly. Adjust the function documentation.
378
379 2012-02-29 Joel Brobecker <brobecker@adacore.com>
380
381 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
382 * ada-lang.c (ada_find_any_type): Add advance declaration.
383 Make static. Replace ada_find_any_symbol by
384 ada_find_any_type_symbol.
385 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
386 Improve function description. Make static.
387 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
388 Replace ada_find_any_symbol by ada_find_any_type_symbol.
389
390 2012-02-29 Joel Brobecker <brobecker@adacore.com>
391
392 * ada-lang.c (struct tag_args): Delete.
393 (ada_get_tsd_type): Function body moved up in source file.
394 (ada_tag_name_1, ada_tag_name_2): Delete.
395 (ada_get_tsd_from_tag): New function.
396 (ada_tag_name_from_tsd): New function.
397 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
398 to determine the tag name.
399
400 2012-02-29 Joel Brobecker <brobecker@adacore.com>
401
402 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
403 declaration.
404 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
405 function.
406
407 2012-02-29 Joel Brobecker <brobecker@adacore.com>
408
409 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
410
411 2012-02-29 Joel Brobecker <brobecker@adacore.com>
412
413 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
414 full searches.
415
416 2012-02-29 Joel Brobecker <brobecker@adacore.com>
417
418 * ada-lang.c (constrained_packed_array_type): If there is a
419 parallel XA type, use it to determine the array index type.
420
421 2012-02-29 Joel Brobecker <brobecker@adacore.com>
422
423 * ada-valprint.c (ada_val_print_1): If our value is a reference
424 to an array descriptor, dereference it before converting it
425 to a simple array.
426
427 2012-02-29 Joel Brobecker <brobecker@adacore.com>
428
429 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
430 creating fixed value.
431 (ada_value_ind, ada_coerce_ref, assign_component)
432 (ada_evaluate_subexp): Remove call to unwrap_value before
433 call to ada_to_fixed_value.
434
435 2012-02-29 Joel Brobecker <brobecker@adacore.com>
436
437 * ada-lang.c (to_fixed_array_type): Set result's type name.
438
439 2012-02-29 Joel Brobecker <brobecker@adacore.com>
440
441 * ada-lang.c (catch_ada_exception_command_split): Add new
442 argument cond_string. Add support for condition at end of
443 "catch exception" commands.
444 (ada_decode_exception_location): Add new argument cond_string.
445 Update call to catch_ada_exception_command_split.
446 (create_ada_exception_catchpoint): Add new argument cond_string.
447 Set the breakpoint condition if needed.
448 (catch_ada_exception_command): Update call to
449 ada_decode_exception_location.
450 (ada_decode_assert_location): Add function documentation.
451 Add support for condition at end of "catch assert" command.
452 (catch_assert_command): Update calls to ada_decode_assert_location
453 and create_ada_exception_catchpoint.
454
455 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
456
457 Fix disp-step-syscall.exp: fork: single step over fork.
458 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
459 (i386_linux_get_syscall_number_from_regcache): ... here, new function
460 comment, change parameters gdbarch and ptid to regcache. Remove
461 parameter regcache, initialize gdbarch from regcache here.
462 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
463 New functions.
464 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
465 instead.
466 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
467 'syscall'. Make the 'int' check more strict.
468
469 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
470
471 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
472 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
473 (i386_linux_intx80_sysenter_syscall_record): ... here.
474 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
475 Use the renamed function name.
476
477 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
478
479 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
480 * breakpoint.c (until_break_command): Likewise.
481 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
482 * infcall.c (call_function_by_hand): Likewise.
483 * infcmd.c (finish_forward): Likewise.
484 * infrun.c (insert_exception_resume_breakpoint): Likewise.
485
486 2012-02-28 Joel Brobecker <brobecker@adacore.com>
487
488 From Tristan Gingold <gingold@adacore.com>.
489 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
490 avoid variable assignments inside condition.
491
492 2012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
493
494 Fix static analysis issue found by cppcheck.
495 * microblaze-tdep.c (microblaze_extract_return_value): Fix
496 uninitialized BUF for size 2.
497
498 2012-02-27 Chris Dearman <chris@mips.com>
499 Nathan Froyd <froydnj@codesourcery.com>
500 Maciej W. Rozycki <macro@codesourcery.com>
501
502 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
503 (mips16_instruction_has_delay_slot): Likewise.
504 (mips_segment_boundary): Likewise.
505 (mips_adjust_breakpoint_address): Likewise.
506 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
507
508 2012-02-27 Maciej W. Rozycki <macro@mips.com>
509 Maciej W. Rozycki <macro@codesourcery.com>
510
511 * infrun.c (handle_inferior_event): Don't proceed through
512 shared library trampolines if stepping at the machine
513 instruction level.
514
515 2012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
516
517 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
518 too.
519
520 2012-02-27 Thomas Schwinge <thomas@codesourcery.com>
521
522 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
523 (sh_stub_unwind_sniffer): New functions.
524 (sh_stub_unwind): New variable.
525 (sh_gdbarch_init): Wire everything.
526
527 2012-02-27 Pedro Alves <palves@redhat.com>
528
529 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
530 (linux_nat_post_attach_wait): Adjust to use
531 linux_proc_pid_is_stopped.
532 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
533 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
534 based on pid_is_stopped from both linux-nat.c and
535 gdbserver/linux-low.c, and renamed.
536
537 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
538
539 * remote.c (remote_watchpoint_addr_within_range): New function.
540 (init_remote_ops): Use it.
541
542 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
543
544 * target.h (target_watchpoint_addr_within_range): Document macro.
545
546 2012-02-24 Pedro Alves <palves@redhat.com>
547
548 * stack.c (set_last_displayed_sal): Issue internal_error instead
549 of warning, and issue it after clearing the last displayed sal.
550
551 2012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
552 Pedro Alves <palves@redhat.com>
553
554 * breakpoint.c (until_break_command): Install breakpoints after
555 all frame manipulations.
556
557 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
558
559 * remote.c (remote_supports_cond_breakpoints): New forward
560 declaration.
561 (remote_add_target_side_condition): New function.
562 (remote_insert_breakpoint): Add target-side breakpoint
563 conditional if supported.
564 (remote_insert_hw_breakpoint): Likewise.
565 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
566 hook.
567
568 * target.c (update_current_target): Inherit
569 to_supports_evaluation_of_breakpoint_conditions.
570 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
571
572 * target.h (struct target_ops)
573 <to_supports_evaluation_of_breakpoint_conditions>: New field.
574 (target_supports_evaluation_of_breakpoint_conditions): New #define.
575
576 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
577 (condition_evaluation_both, condition_evaluation_auto,
578 condition_evaluation_host, condition_evaluation_target,
579 condition_evaluation_enums, condition_evaluation_mode_1,
580 condition_evaluation_mode): New static globals.
581 (translate_condition_evaluation_mode): New function.
582 (breakpoint_condition_evaluation_mode): New function.
583 (gdb_evaluates_breakpoint_condition_p): New function.
584 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
585 (mark_breakpoint_modified): New function.
586 (mark_breakpoint_location_modified): New function.
587 (set_condition_evaluation_mode): New function.
588 (show_condition_evaluation_mode): New function.
589 (bp_location_compare_addrs): New function.
590 (get_first_location_gte_addr): New helper function.
591 (set_breakpoint_condition): Free condition bytecode if locations
592 has become unconditional. Call mark_breakpoint_modified (...).
593 (condition_command): Call update_global_location_list (1) for
594 breakpoints.
595 (breakpoint_xfer_memory): Use is_breakpoint (...).
596 (is_breakpoint): New function.
597 (parse_cond_to_aexpr): New function.
598 (build_target_condition_list): New function.
599 (insert_bp_location): Handle target-side conditional
600 breakpoints and call build_target_condition_list (...).
601 (update_inserted_breakpoint_locations): New function.
602 (insert_breakpoint_locations): Handle target-side conditional
603 breakpoints.
604 (bpstat_check_breakpoint_conditions): Add comment.
605 (bp_condition_evaluator): New function.
606 (bp_location_condition_evaluator): New function.
607 (print_breakpoint_location): Print information on where the condition
608 will be evaluated.
609 (print_one_breakpoint_location): Likewise.
610 (init_bp_location): Call mark_breakpoint_location_modified (...) for
611 breakpoint location.
612 (force_breakpoint_reinsertion): New functions.
613 (update_global_location_list): Handle target-side breakpoint
614 conditions.
615 Reinsert locations that are already inserted if conditions have
616 changed.
617 (bp_location_dtor): Free agent expression bytecode.
618 (disable_breakpoint): Call mark_breakpoint_modified (...).
619 Call update_global_location_list (...) with parameter 1 for breakpoints.
620 (disable_command): Call mark_breakpoint_location_modified (...).
621 Call update_global_location_list (...) with parameter 1 for breakpoints.
622 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
623 (enable_command): mark_breakpoint_location_modified (...).
624 (_initialize_breakpoint): Update documentation and add
625 condition-evaluation breakpoint subcommand.
626
627 * breakpoint.h: Include ax.h.
628 (condition_list): New data structure.
629 (condition_status): New enum.
630 (bp_target_info) <cond_list>: New field.
631 (bp_location) <condition_changed, cond_bytecode>: New fields.
632 (is_breakpoint): New prototype.
633
634 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
635
636 * remote.c (remote_state) <cond_breakpoints>: New field.
637 (PACKET_ConditionalBreakpoints): New enum.
638 (remote_cond_breakpoint_feature): New function.
639 (remote_protocol_features): Add new ConditionalBreakpoints entry.
640 (remote_supports_cond_breakpoints): New function.
641 (_initialize_remote): Add new packet configuration for
642 target-side conditional breakpoints.
643
644 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
645
646 * NEWS: Mention target-side conditional breakpoint support,
647 new condition-evaluation breakpoint subcommand and remote
648 packet extensions.
649
650 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
651
652 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
653 number.
654
655 2012-02-24 Thomas Schwinge <thomas@codesourcery.com>
656
657 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
658 (after_prologue): Remove.
659
660 2012-02-23 Tom Tromey <tromey@redhat.com>
661
662 * jv-valprint.c (java_val_print): Remove dead code.
663
664 2012-02-23 Tristan Gingold <gingold@adacore.com>
665
666 * ada-tasks.c (struct ada_tasks_inferior_data): Add
667 known_tasks_element and known_tasks_length fields.
668 (read_known_tasks_array): Change argument type. Use pointer type
669 and number of elements from DATA. Adjust.
670 (read_known_tasks_list): Likewise.
671 (get_known_tasks_addr): Remove.
672 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
673 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
674 type and array length. Merge former get_known_tasks_addr code.
675
676 2012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
677
678 PR backtrace/13716
679 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
680 it after set_momentary_breakpoint.
681
682 2012-02-22 Sterling Augustine <saugustine@google.com>
683
684 PR 13689:
685 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
686
687 2012-02-22 Gary Benson <gbenson@redhat.com>
688
689 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
690 (find_slot_in_mapped_hash): Likewise.
691
692 2012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
693
694 PR build/13638
695 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
696 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
697 * configure: Regenerate.
698
699 2012-02-21 Tristan Gingold <gingold@adacore.com>
700 Pedro Alves <palves@redhat.com>
701
702 * ia64-tdep.c: Do not include libunwind-ia64.h.
703 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
704 Include libunwind-ia64.h instead of libunwind.h.
705 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
706 for libunwind.h existence.
707 * configure, config.in: Regenerate.
708
709 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
710
711 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
712 instead of value_rtti_target_type.
713 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
714 instead of value_rtti_target_type.
715 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
716 value_rtti_target_type.
717 * valops.c (value_ind): Extract function readjust_indirect_value_type.
718 (value_rtti_target_type): Rename to ...
719 (value_rtti_indirect_type): ... here and make it indirect. Update
720 function comment.
721 * value.c (readjust_indirect_value_type): New function.
722 (coerce_ref): Support for enclosing type setting for references
723 with readjust_indirect_value_type.
724 * value.h (readjust_value_type): New declaration.
725 (value_rtti_target_type): Rename to ...
726 (value_rtti_indirect_type): ... here.
727
728 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
729
730 * MAINTAINERS (Write After Approval): Add myself to the list.
731
732 2012-02-20 Doug Evans <dje@google.com>
733
734 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
735 Rename objfile_p_char parameter to objfilep.
736 (build_objfile_section_table): Result is now void. All callers
737 updated.
738 * objfiles.h (struct objfile): Tweak comments, whitespace.
739 (build_objfile_section_table): Update.
740
741 * elfread.c (elf_symfile_segments): Fix warning text.
742
743 2012-02-20 Tom Tromey <tromey@redhat.com>
744
745 PR gdb/13498:
746 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
747 particular set of file names once.
748 (dw2_map_symbol_filenames): Likewise.
749
750 2012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
751
752 Code cleanup.
753 * main.c (write_files): Remove the declaration.
754 (external_editor_command): Move the declaration ...
755 [GDBTK] (external_editor_command): ... here. Fix the comment.
756
757 2012-02-20 Tom Tromey <tromey@redhat.com>
758
759 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
760 extraneous block.
761
762 2012-02-20 Tristan Gingold <gingold@adacore.com>
763
764 * darwin-nat.h (enum darwin_msg_state): Add comments.
765
766 2012-02-20 Tristan Gingold <gingold@adacore.com>
767
768 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
769 value.
770
771 2012-20-18 Joel Brobecker <brobecker@adacore.com>
772
773 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
774 between function description and implementation.
775
776 2012-02-17 Tom Tromey <tromey@redhat.com>
777
778 PR python/12070:
779 * python/py-event.c (event_object_getset): New global.
780 (event_object_type): Reference it.
781 * python/py-type.c (field_object_getset): New global.
782 (field_object_type): Reference it.
783 * python/python-internal.h (gdb_py_generic_dict): Declare.
784 * python/py-utils.c (gdb_py_generic_dict): New function.
785
786 2012-02-17 Tristan Gingold <gingold@adacore.com>
787
788 * solib-darwin.c (darwin_current_sos): Check magic and filetype
789
790 2012-02-17 Thomas Schwinge <thomas@codesourcery.com>
791
792 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
793 TYPE_CALLING_CONVENTION annotation.
794
795 2012-02-16 Kevin Buettner <kevinb@redhat.com>
796
797 * MAINTAINERS: Add rx to target ISA section.
798 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
799 (ALLDEPFILES): Add rx-tdep.c.
800
801 2012-02-16 Tom Tromey <tromey@redhat.com>
802
803 * symfile.c (symbol_file_add_main_1): Use inferior's
804 symfile_flags.
805 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
806 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
807 inferior.
808 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
809 inferior.
810 (follow_exec): Use inferior's symfile_flags.
811 * inferior.h (struct inferior) <symfile_flags>: New field.
812
813 2012-02-16 Mike Frysinger <vapier@gentoo.org>
814
815 PR gdb/9734:
816 * remote-sim.c (gdbsim_create_inferior): Call error() when
817 sim_create_inferior() fails.
818
819 2012-02-16 Josh Matthews <josh@joshmatthews.net>
820
821 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
822
823 2012-02-16 Tom Tromey <tromey@redhat.com>
824
825 PR c++/13653:
826 * thread.c (struct current_thread_cleanup) <was_removable>: New
827 field.
828 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
829 (make_cleanup_restore_current_thread): Initialize new field.
830
831 2012-02-15 Kevin Buettner <kevinb@redhat.com>
832
833 * MAINTAINERS: Add rl78 to target ISA section.
834 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
835 (ALLDEPFILES): Add rl78-tdep.c.
836 * NEWS: Mention rl78 as a new target.
837
838 2012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
839
840 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
841 data.
842 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
843
844 2012-02-15 Tom Tromey <tromey@redhat.com>
845
846 PR gdb/12659:
847 * infcmd.c (registers_info): Print just the current register's
848 name.
849
850 2012-02-15 Tom Tromey <tromey@redhat.com>
851
852 * python/py-symbol.c (sympy_value): Use _().
853
854 2012-02-15 Pedro Alves <palves@redhat.com>
855
856 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
857 output to be like native targets'.
858 (remote_pid_to_str): Special case the null ptid.
859
860 2012-02-14 Stan Shebs <stan@codesourcery.com>
861
862 * NEWS: Mention enable count command.
863 * breakpoint.h (struct breakpoint): New field enable_count.
864 * breakpoint.c (enable_breakpoint_disp): Add count argument.
865 (enable_breakpoint): Add arg to call.
866 (struct disp_data): New struct.
867 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
868 (do_map_enable_once_breakpoint): Create a struct and pass it.
869 (do_map_enable_delete_breakpoint): Ditto.
870 (do_map_enable_count_breakpoint): New function.
871 (enable_count_command): New function.
872 (bpstat_stop_status): Decrement enable_count.
873 (print_one_breakpoint_location): Report enable count.
874 (_initialize_breakpoint): Add enable count command.
875
876 2012-02-14 Kevin Buettner <kevinb@redhat.com>
877
878 * rl78-tdep.c (reggroups.h): Include.
879 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
880 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
881 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
882 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
883 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
884 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
885 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
886 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
887 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
888 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
889 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
890 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
891 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
892 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
893 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
894 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
895 beginning of register list.
896 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
897 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
898 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
899 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
900 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
901 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
902 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
903 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
904 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
905 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
906 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
907 the pseudo registers. Rearrange other pseudo registers too so
908 that the bank registers appear at the end.
909 (rl78_register_type): Account for the fact that the byte sized
910 bank registers are now pseudo-registers.
911 (rl78_register_name): Rearrange the register name array. Make
912 initial set of raw banked registers inaccessible.
913 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
914 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
915 case for copying bytes back and forth between raw and pseudo
916 versions of the banked registers. Update other cases to reflect
917 the changed names.
918 (rl78_return_value): Update to account for changed names of
919 raw registers.
920 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
921 rl78_register_sim_regno().
922
923 2012-02-14 Kevin Buettner <kevinb@redhat.com>
924
925 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
926 the name parameter being passed to find_pc_partial_function().
927
928 2012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
929
930 * MAINTAINERS: Step down from being ia64 target maintainer.
931
932 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
933
934 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
935 compilation warning.
936
937 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
938
939 Fix crash on loaded shlibs without loaded exec_bfd.
940 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
941 (set_section_command): Replace exec_bfd by p->bfd.
942
943 2012-02-10 Tom Tromey <tromey@redhat.com>
944
945 * linespec.c (decode_line_internal): Skip symtabs_from_filename
946 when we have a C++ qualified name.
947
948 2012-02-10 Pedro Alves <palves@redhat.com>
949
950 * inferior.c (inferior_pid_to_str): New.
951 (print_inferior, inferior_command): Use it.
952
953 2012-02-10 Pedro Alves <palves@redhat.com>
954
955 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
956 the test CFLAGS.
957 * configure: Regenerate.
958
959 2012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
960
961 * linespec.c (decode_line_internal): Fix comment correctness.
962
963 2012-02-09 Valery Khromov <valery.khromov@gmail.com>
964
965 PR gdb/12953
966 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
967 * amd64bsd-nat.c: Add support for debug registers (adapted from
968 i386bsd-nat.c).
969 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
970 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
971 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
972 (amd64bsd_dr_get_control): New functions.
973 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
974 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
975 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
976 watchpoints initialization.
977 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
978
979 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
980
981 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
982 flds_bnds.fields.
983 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
984
985 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
986
987 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
988
989 2012-02-08 Joel Brobecker <brobecker@adacore.com>
990
991 * language.h (symbol_name_cmp_ftype): Renames
992 symbol_name_match_p_ftype.
993 (struct language_defn)[la_get_symbol_name_cmp]: Renames
994 la_get_symbol_name_match_p.
995 * ada-lang.c (ada_get_symbol_name_cmp): Renames
996 ada_get_symbol_name_match_p. Update comment.
997 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
998 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
999 Renames symbol_name_match_p. Update field type.
1000 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
1001 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
1002 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
1003 "la_get_symbol_name_cmp" in comments.
1004 * language.c: Likewise.
1005
1006 2012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1007
1008 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
1009 %eflags offset.
1010 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
1011 (amd64_sol2_gregset32_reg_offs): Likewise.
1012
1013 2012-02-08 Joel Brobecker <brobecker@adacore.com>
1014
1015 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
1016 of the returned BFD is allocated by GDB.
1017
1018 2012-02-07 Tom Tromey <tromey@redhat.com>
1019
1020 PR python/12027:
1021 * python/python-internal.h (frame_object_type): Declare.
1022 * python/py-symbol.c (sympy_needs_frame): New function.
1023 (sympy_value): New function.
1024 (symbol_object_getset): Add "needs_frame".
1025 (symbol_object_methods): Add "value".
1026 * python/py-frame.c (frame_object_type): No longer static.
1027
1028 2012-02-07 Tom Tromey <tromey@redhat.com>
1029
1030 PR python/13599:
1031 * python/py-symbol.c (sympy_line): New function.
1032 (symbol_object_getset): Add "line".
1033
1034 2012-02-07 Tom Tromey <tromey@redhat.com>
1035
1036 * charset.c (find_charset_names): Check 'in' against NULL.
1037
1038 2012-02-06 Doug Evans <dje@google.com>
1039
1040 * gdbtypes.h (struct main_type): Change type of name,tag_name,
1041 and fields.name members from char * to const char *. All uses updated.
1042 (struct cplus_struct_type): Change type of fn_fieldlists.name member
1043 from char * to const char *. All uses updated.
1044 (type_name_no_tag): Update.
1045 (lookup_unsigned_typename, lookup_signed_typename): Update.
1046 * gdbtypes.c (type_name_no_tag): Change result type
1047 from char * to const char *. All callers updated.
1048 (lookup_unsigned_typename, lookup_signed_typename): Change type of
1049 name parameter from char * to const char *.
1050 * symtab.h (struct cplus_specific): Change type of demangled_name
1051 member from char * to const char *. All uses updated.
1052 (struct general_symbol_info): Change type of name and
1053 mangled_lang.demangled_name members from char * to const char *.
1054 All uses updated.
1055 (symbol_get_demangled_name, symbol_natural_name): Update.
1056 (symbol_demangled_name, symbol_search_name): Update.
1057 * symtab.c (symbol_get_demangled_name): Change result type
1058 from char * to const char *. All callers updated.
1059 (symbol_natural_name, symbol_demangled_name): Ditto.
1060 (symbol_search_name): Ditto.
1061 (completion_list_add_name): Change type of symname,sym_text,
1062 text,word parameters from char * to const char *.
1063 (completion_list_objc_symbol): Change type of sym_text,
1064 text,word parameters from char * to const char *.
1065 * ada-lang.c (find_struct_field): Change type of name parameter
1066 from char * to const char *.
1067 (encoded_ordered_before): Similarly for N0,N1 parameters.
1068 (old_renaming_is_invisible): Similarly for function_name parameter.
1069 (ada_type_name): Change result type from char * to const char *.
1070 All callers updated.
1071 * ada-lang.h (ada_type_name): Update.
1072 * buildsym.c (hashname): Change type of name parameter
1073 from char * to const char *.
1074 * buildsym.h (hashname): Update.
1075 * dbxread.c (end_psymtab): Change type of include_list parameter
1076 from char ** to const char **.
1077 * dwarf2read.c (determine_prefix): Change result type
1078 from char * to const char *. All callers updated.
1079 * f-lang.c (find_common_for_function): Change type of name, funcname
1080 parameters from char * to const char *.
1081 * f-lang.c (find_common_for_function): Update.
1082 * f-valprint.c (list_all_visible_commons): Change type of funcname
1083 parameters from char * to const char *.
1084 * gdbarch.sh (static_transform_name): Change type of name parameter
1085 and result from char * to const char *.
1086 * gdbarch.c: Regenerate.
1087 * gdbarch.h: Regenerate.
1088 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
1089 of name parameter from char * to const char *.
1090 * jv-lang.c (java_primitive_type_from_name): Ditto.
1091 (java_demangled_signature_length): Similarly for signature parameter.
1092 (java_demangled_signature_copy): Ditto.
1093 (java_demangle_type_signature): Ditto.
1094 * jv-lang.h (java_primitive_type_from_name): Update.
1095 (java_demangle_type_signature): Update.
1096 * objc-lang.c (specialcmp): Change type of a,b parameters
1097 from char * to const char *.
1098 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
1099 from char * to const char *. All callers updated.
1100 * p-lang.h (is_pascal_string_type): Update.
1101 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
1102 of name parameter from char * to const char *.
1103 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
1104 * utils.c (fprintf_symbol_filtered): Ditto.
1105 * defs.h (fprintf_symbol_filtered): Update.
1106 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
1107 * stabsread.h (end_psymtab): Update.
1108 * stack.c (find_frame_funname): Change type of funname parameter
1109 from char ** to const char **.
1110 * stack.h (find_frame_funname): Update.
1111 * typeprint.c (type_print): Change type of varstring parameter
1112 from char * to const char *.
1113 * value.h (type_print): Update.
1114 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
1115 from char * to const char *. All callers updated.
1116 (xcoff_end_psymtab): Change type of include_list parameter
1117 from char ** to const char **. All callers updated.
1118 (swap_sym): Similarly for name parameter. All callers updated.
1119 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
1120 Use xstrdup.
1121 (process_coff_symbol): Use xstrdup.
1122 * stabsread.c (stabs_method_name_from_physname): Renamed from
1123 update_method_name_from_physname. Change result type from void
1124 to char *. All callers updated.
1125 (read_member_functions): In has_destructor case, store name in objfile
1126 obstack instead of malloc space. In !has_stub case, fix mem leak.
1127
1128 2012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
1129
1130 * configure: Rebuild.
1131 * configure.ac: Put -L../bfd and -L../libiberty at the front of
1132 LDFLAGS.
1133
1134 2012-02-03 Kevin Buettner <kevinb@redhat.com>
1135
1136 * configure.tgt (rl78-*-elf): New target.
1137 * rl78-tdep.c: New file.
1138
1139 2012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1140
1141 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
1142 and continue the loop. Add QUIT statement.
1143
1144 2012-02-03 Tom Tromey <tromey@redhat.com>
1145
1146 PR gdb/13596:
1147 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
1148 bfd_lookup_symbol_from_symtab.
1149 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
1150 gdb_bfd_lookup_symbol_from_symtab.
1151
1152 2012-02-03 Joel Brobecker <brobecker@adacore.com>
1153
1154 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
1155 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
1156 symbol. Add assertion that sym2 is never NULL.
1157
1158 2012-02-02 Doug Evans <dje@google.com>
1159
1160 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
1161 "name" parameter to const char ** from char **. All callers updated.
1162 (find_pc_partial_function): Ditto.
1163 (cache_pc_function_name): Change type to const char * from char *.
1164 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
1165 (find_pc_partial_function): Update.
1166 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
1167 type of "name" parameter to const char * from char *.
1168 All uses updated.
1169 * arch-utils.c (generic_in_solib_return_trampoline): Change
1170 type of "name" parameter to const char * from char *.
1171 * arch-utils.h (generic_in_solib_return_trampoline): Update.
1172 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
1173 type of "name" parameter to const char * from char *.
1174 * gdbarch.sh (in_solib_return_trampoline): Ditto.
1175 * gdbarch.c: Regenerate.
1176 * gdbarch.h: Regenerate.
1177 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
1178 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
1179 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
1180 type of "name" parameter to const char * from char *.
1181 * skip.c (skip_function_pc): Ditto.
1182 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
1183 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
1184 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
1185 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
1186 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
1187 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
1188 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
1189 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
1190 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
1191
1192 2012-02-02 Pedro Alves <palves@redhat.com>
1193
1194 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
1195 the current inferior has no execution. Make sure the current
1196 remote process matches gdb's current inferior.
1197
1198 2012-02-02 Tom Tromey <tromey@redhat.com>
1199
1200 PR gdb/13405:
1201 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
1202 read-only memory.
1203
1204 2012-02-02 Tom Tromey <tromey@redhat.com>
1205
1206 PR gdb/9307:
1207 * symtab.c (lookup_language_this): Set block_found.
1208
1209 2012-02-01 Tom Tromey <tromey@redhat.com>
1210
1211 PR gdb/13431:
1212 * jit.c (struct jit_inferior_data): Rewrite.
1213 (struct jit_objfile_data): New.
1214 (get_jit_objfile_data): New function.
1215 (add_objfile_entry): Update.
1216 (jit_read_descriptor): Return int. Replace descriptor_addr
1217 argument with inf_data. Update. Don't call error.
1218 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
1219 descriptor here.
1220 (jit_inferior_init): Don't look up descriptor. Don't call error.
1221 (jit_reset_inferior_data_and_breakpoints)
1222 (jit_inferior_created_observer): Remove.
1223 (jit_inferior_exit_hook): Update.
1224 (jit_executable_changed_observer): Remove.
1225 (jit_event_handler): Update.
1226 (free_objfile_data): Reset inferior data if needed.
1227 (_initialize_jit): Update.
1228
1229 2012-02-01 Tom Tromey <tromey@redhat.com>
1230
1231 * jit.c (bfd_open_from_target_memory): Move higher in file.
1232
1233 2012-02-01 Tristan Gingold <gingold@adacore.com>
1234
1235 * libunwind-frame.c (libunwind_load): Display message if dlopen
1236 failed.
1237
1238 2012-02-01 Gary Benson <gbenson@redhat.com>
1239
1240 * symtab.h (symbol_name_match_p_ftype): New typedef.
1241 (iterate_over_symbols): Use the above.
1242 * symtab.c (iterate_over_symbols): Likewise.
1243 * language.h (language_defn->la_iterate_over_symbols): Likewise.
1244 * ada-lang.c (ada_iterate_over_symbols): Likewise.
1245 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
1246 (iterate_name_matcher): Document return values.
1247 (collect_one_symbol): Likewise.
1248 (collect_function_symbols): Likewise.
1249 (collect_symbols): Likewise.
1250
1251 2012-02-01 Tom Tromey <tromey@redhat.com>
1252
1253 * ada-lang.c (resolve_subexp): Update.
1254 (ada_lookup_symbol_list): Add 'full_search' argument.
1255 (ada_iterate_over_symbols): Pass 0 as full_search argument to
1256 ada_lookup_symbol_list.
1257 (ada_lookup_encoded_symbol): Update.
1258 (get_var_value): Update.
1259 * ada-exp.y (block_lookup): Update.
1260 (write_var_or_type): Update.
1261 (write_name_assoc): Update.
1262 * ada-lang.h (ada_lookup_symbol_list): Update.
1263
1264 2012-01-31 Tom Tromey <tromey@redhat.com>
1265
1266 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
1267 comment.
1268
1269 2012-01-31 Doug Evans <dje@google.com>
1270
1271 * symtab.h: Remove outdated comment.
1272 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
1273
1274 2012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
1275
1276 Fix build error in Darwin port.
1277 * i386-darwin-nat.c: Include i386-nat.h.
1278
1279 2012-01-30 Tom Tromey <tromey@redhat.com>
1280
1281 PR breakpoints/13568:
1282 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
1283 argument. Check for recursive includes.
1284 (dwarf_decode_macros): Create an include hash.
1285
1286 2012-01-30 Michael Eager <eager@eagercon.com>
1287
1288 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
1289 * ppc-linux-tdep.c: Include glibc-tdep.h.
1290 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
1291 (powerpc_linux_in_plt_stub): New function.
1292 (powerpc_linux_in_dynsym_resolve_code): New function.
1293 (ppc_skip_trampoline_code): New function.
1294 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
1295 Use glibc_skip_solib_resolver.
1296
1297 2012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1298
1299 Code cleanup: Make 1440 bytes of data segment read-only.
1300 * arch-utils.c (endian_enum): Make it const char *const [].
1301 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
1302 Likewise.
1303 * breakpoint.c (always_inserted_enums): Likewise.
1304 * cli/cli-cmds.c (script_ext_enums): Likewise.
1305 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
1306 enumlist parameter const char *const *.
1307 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
1308 const char *const *.
1309 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
1310 parameter const char *const *.
1311 * cris-tdep.c (cris_modes): Make it const char *const [].
1312 * filesystem.c (target_file_system_kinds): Likewise.
1313 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
1314 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
1315 (can_use_displaced_stepping_enum, scheduler_enums)
1316 (exec_direction_names): Likewise.
1317 * language.c (_initialize_language): Make the type_or_range_names and
1318 case_sensitive_names variables const char *const [].
1319 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
1320 * python/python.c (python_excp_enums): Likewise.
1321 * remote.c (interrupt_sequence_modes): Likewise.
1322 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
1323 * serial.c (logbase_enums): Likewise.
1324 * sh-tdep.c (sh_cc_enum): Likewise.
1325 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
1326 Likewise.
1327 * symtab.c (multiple_symbols_modes): Likewise.
1328 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
1329 Likewise.
1330 * utils.c (internal_problem_modes): Likewise.
1331
1332 2012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1333
1334 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
1335 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
1336 result.
1337
1338 2012-01-27 Doug Evans <dje@google.com>
1339
1340 * configure.ac (with_python): Fix absolute path handling for win32.
1341 * configure: Regenerate.
1342
1343 2012-01-26 Doug Evans <dje@google.com>
1344
1345 * symtab.c: Whitespace cleanup, no code changes.
1346
1347 * symtab.c (lookup_symbol_in_language): Improve comment.
1348 (lookup_symbol_aux): Fix comment.
1349
1350 * psymtab.c (add_psymbol_to_list): Result is now "void".
1351 * psympriv.h (add_psymbol_to_list): Update.
1352
1353 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
1354
1355 2012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1356
1357 Do not open script filenames twice.
1358 * cli/cli-cmds.c (source_script_from_stream): Pass to
1359 source_python_script also STREAM.
1360 * python/py-auto-load.c (source_section_scripts): Pass to
1361 source_python_script_for_objfile also STREAM.
1362 (auto_load_objfile_script): Pass to source_python_script_for_objfile
1363 also INPUT.
1364 * python/python-internal.h (source_python_script_for_objfile): New
1365 parameter file, rename parameter file to filename.
1366 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
1367 instead if !_WIN32. Update the function comment.
1368 (source_python_script, source_python_script_for_objfile)
1369 (source_python_script): New parameter file, rename parameter file to
1370 filename. Pass FILENAME to python_run_simple_file.
1371 * python/python.h (source_python_script): New parameter file, rename
1372 parameter file to filename.
1373
1374 2012-01-26 Pedro Alves <palves@redhat.com>
1375
1376 * corelow.c (core_has_fake_pid): Delete.
1377 (core_close): Delete references to `core_has_fake_pid'.
1378 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
1379 (core_open): Delete references to `core_has_fake_pid'.
1380 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
1381 the removed global.
1382
1383 2012-01-26 Joel Brobecker <brobecker@adacore.com>
1384
1385 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
1386 Remove language parameter from name_matcher. Adjust the comment.
1387 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
1388 Remove language parameter.
1389 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
1390 * linespec.c (iterate_name_matcher): Likewise.
1391 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
1392 name_matcher. Adjust call accordingly.
1393 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
1394 (maintenance_check_symtabs): Adjust type of parameter "fun".
1395 * psymtab.h (maintenance_check_symtabs): Likewise.
1396
1397 2012-01-26 Joel Brobecker <brobecker@adacore.com>
1398
1399 * language.h (symbol_name_match_p_ftype): New typedef.
1400 (struct language_defn): Replace field la_symbol_name_compare
1401 by la_get_symbol_name_match_p.
1402 * ada-lang.c (ada_get_symbol_name_match_p): New function.
1403 (ada_language_defn): Use it.
1404 * linespec.c (struct symbol_matcher_data): New type.
1405 (iterate_name_matcher): Rewrite.
1406 (iterate_over_all_matching_symtabs): Pass a pointer to
1407 a symbol_matcher_data struct to expand_symtabs_matching
1408 instead of just the lookup name.
1409 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
1410 opencl-lang.c, p-lang.c, language.c: Delete field
1411 la_symbol_name_compare, and replace by NULL for new field
1412 la_get_symbol_name_match_p.
1413 * symfile.h (struct quick_symbol_functions): Update comment.
1414
1415 2012-01-25 Tom Tromey <tromey@redhat.com>
1416
1417 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
1418 dereferencing.
1419
1420 2012-01-24 Tom Tromey <tromey@redhat.com>
1421
1422 PR symtab/12406:
1423 * solib.c (update_solib_list): Update the program space's
1424 added_solibs and deleted_solibs fields.
1425 * progspace.h (struct program_space) <added_solibs,
1426 deleted_solibs>: New fields.
1427 (clear_program_space_solib_cache): Declare.
1428 * progspace.c (release_program_space): Call
1429 clear_program_space_solib_cache.
1430 (clear_program_space_solib_cache): New function.
1431 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
1432 bpstat_stop_status. Use handle_solib_event.
1433 * breakpoint.c: Include gdb_regex.h.
1434 (print_solib_event): New function.
1435 (bpstat_print): Use print_solib_event.
1436 (bpstat_stop_status): Add special case for bp_shlib_event.
1437 (handle_solib_event): New function.
1438 (bpstat_what): Use handle_solib_event.
1439 (struct solib_catchpoint): New.
1440 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
1441 (breakpoint_hit_catch_solib, check_status_catch_solib)
1442 (print_it_catch_solib, print_one_catch_solib)
1443 (print_mention_catch_solib, print_recreate_catch_solib): New
1444 functions.
1445 (catch_solib_breakpoint_ops): New global.
1446 (catch_load_or_unload, catch_load_command_1)
1447 (catch_unload_command_1): New functions.
1448 (internal_bkpt_check_status): Add special case for
1449 bp_shlib_event.
1450 (internal_bkpt_print_it): Use print_solib_event.
1451 (initialize_breakpoint_ops): Initialize
1452 catch_solib_breakpoint_ops.
1453 (_initialize_breakpoint): Register "catch load" and "catch
1454 unload".
1455 * breakpoint.h (handle_solib_event): Declare.
1456 * NEWS: Add entry for "catch load" and "catch unload".
1457
1458 2012-01-24 Tom Tromey <tromey@redhat.com>
1459
1460 * ada-lang.c: Include gdb_vecs.h.
1461 * charset.c: Include gdb_vecs.h.
1462 * tracepoint.h: Include gdb_vecs.h.
1463 * gdb_vecs.h: New file.
1464
1465 2012-01-24 Pedro Alves <pedro@codesourcery.com>
1466
1467 * breakpoint.c (breakpoint_hit_catch_fork)
1468 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
1469 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
1470 * infrun.c (inferior_has_forked, inferior_has_vforked)
1471 (inferior_has_execd, inferior_has_called_syscall): Delete.
1472 (handle_syscall_event): Get syscall_number from the execution
1473 control state's wait status.
1474 (wait_for_inferior): Don't clear syscall_number.
1475
1476 2012-01-24 Pedro Alves <palves@redhat.com>
1477
1478 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
1479 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
1480 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
1481 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
1482 `ws' parameter.
1483 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
1484 false for events other than TARGET_SIGNAL_TRAP.
1485 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
1486 Add `ws' parameter.
1487 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
1488 events other than TARGET_SIGNAL_TRAP.
1489 (tracepoint_breakpoint_hit): Add `ws' parameter.
1490 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
1491 parameter.
1492 (bpstat_stop_status): Same.
1493 (pc_at_non_inline_function): Same.
1494 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
1495 to pass the current event's waitstatus to bpstat_stop_status
1496 and pc_at_non_inline_function.
1497
1498 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1499
1500 Code cleanup.
1501 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
1502 Update the function comment for it.
1503 (source_script_with_search): Call make_cleanup_fclose for STREAM.
1504 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
1505 for STREAM.
1506
1507 2012-01-24 Pedro Alves <palves@redhat.com>
1508
1509 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
1510 outside `bs->stop' block.
1511 (bpstat_what): Rework bp_shlib_event handling.
1512 (internal_bkpt_check_status): If the breakpoint is a
1513 bp_shlib_event, then set bs->stop and bs->print if
1514 stop_on_solib_events is set.
1515
1516 2012-01-24 Gary Benson <gbenson@redhat.com>
1517
1518 Delete #if 0'd out code.
1519 * stack.c (print_frame_label_vars): Remove.
1520 (catch_info): Likewise.
1521 (_initialize_stack): Remove "info catch" command.
1522 * NEWS: Mention the above.
1523
1524 2012-01-24 Pedro Alves <palves@redhat.com>
1525
1526 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
1527 it.
1528 (remote_notice_new_inferior): If the remote end doesn't support
1529 the multiprocess extensions, then the PID is fake.
1530 (add_current_inferior_and_thread): New.
1531 (remote_start_remote): Use it.
1532 (extended_remote_attach_1): Adjust.
1533 (extended_remote_create_inferior_1): Use
1534 add_current_inferior_and_thread.
1535
1536 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1537
1538 Fix watchpoints to be specific for each inferior.
1539 * breakpoint.c (watchpoint_in_thread_scope): Verify also
1540 current_program_space.
1541 * i386-nat.c (i386_inferior_data_cleanup): New.
1542 (i386_inferior_data_get): Replace variable inf_data_local by an
1543 inferior_data call.
1544 (i386_use_watchpoints): Initialize i386_inferior_data.
1545 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
1546 specific iterate_over_lwps.
1547
1548 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1549
1550 Fix watchpoints across inferior fork.
1551 * amd64-linux-nat.c (update_debug_registers_callback): Update the
1552 comment for linux_nat_iterate_watchpoint_lwps.
1553 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
1554 linux_nat_iterate_watchpoint_lwps.
1555 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
1556 * i386-linux-nat.c (update_debug_registers_callback): Update the
1557 comment for linux_nat_iterate_watchpoint_lwps.
1558 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
1559 linux_nat_iterate_watchpoint_lwps.
1560 (i386_linux_prepare_to_resume): New comment on Linux kernel.
1561 * i386-nat.c: Include inferior.h.
1562 (dr_mirror): Remove.
1563 (i386_inferior_data, struct i386_inferior_data)
1564 (i386_inferior_data_get): New.
1565 (i386_debug_reg_state): Use i386_inferior_data_get.
1566 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
1567 (i386_insert_watchpoint, i386_remove_watchpoint)
1568 (i386_stopped_data_address, i386_insert_hw_breakpoint)
1569 (i386_remove_hw_breakpoint): New variable state, use
1570 i386_debug_reg_state instead of DR_MIRROR.
1571 * linux-nat.c (delete_lwp): New declaration.
1572 (num_lwps): Move here from downwards.
1573 (delete_lwp_cleanup): New.
1574 (linux_child_follow_fork): Create new child_lp, call
1575 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
1576 PTRACE_DETACH.
1577 (num_lwps): Move upwards.
1578 (linux_nat_iterate_watchpoint_lwps): New.
1579 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
1580 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
1581
1582 2012-01-24 Joel Brobecker <brobecker@adacore.com>
1583
1584 GDB 7.4 released.
1585
1586 2012-01-23 Pedro Alves <palves@redhat.com>
1587
1588 * top.c (caution): Rename to ...
1589 (confirm): ... this.
1590 (show_caution): Rename to ...
1591 (show_confirm): ... this.
1592 (quit_cover): Adjust.
1593 (init_main): Adjust.
1594 * top.h (caution): Rename to ...
1595 (confirm): ... this.
1596 * utils.c (internal_vproblem, defaulted_query): Adjust.
1597
1598 2012-01-23 Pedro Alves <palves@redhat.com>
1599
1600 * top.c (caution): Update comment.
1601 (execute_command): Don't consider the current value of `caution'.
1602
1603 2012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
1604
1605 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
1606
1607 2012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
1608
1609 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
1610 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
1611 * target.c (target_fileio_pwrite): Remove buffer address from
1612 debug output.
1613 (target_fileio_pread): Likewise.
1614
1615 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
1616
1617 * NEWS: Document remote "info proc" and "generate-core-file".
1618
1619 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
1620
1621 * gdbarch.sh (find_memory_regions): New callback.
1622 * gdbarch.c, gdbarch.h: Regenerate.
1623
1624 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
1625 callback before falling back to target method.
1626
1627 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
1628 (linux_target_install_ops): No longer install it.
1629
1630 * linux-tdep.c (linux_find_memory_regions): New function.
1631 (linux_init_abi): Install it.
1632
1633 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
1634
1635 * gdbarch.sh (make_corefile_notes): New architecture callback.
1636 * gdbarch.c: Regenerate.
1637 * gdbarch.h: Likewise.
1638
1639 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
1640 before target_make_corefile_notes. If NULL is returned, the
1641 target does not support core file generation.
1642
1643 * linux-nat.c: Include "linux-tdep.h".
1644 (find_signalled_thread, find_stop_signal): Remove.
1645 (linux_nat_do_thread_registers): Likewise.
1646 (struct linux_nat_corefile_thread_data): Likewise.
1647 (linux_nat_corefile_thread_callback): Likewise.
1648 (iterate_over_spus): Likewise.
1649 (struct linux_spu_corefile_data): Likewise.
1650 (linux_spu_corefile_callback): Likewise.
1651 (linux_spu_make_corefile_notes): Likewise.
1652 (linux_nat_collect_thread_registers): New function.
1653 (linux_nat_make_corefile_notes): Replace contents by call to
1654 linux_make_corefile_notes passing linux_nat_collect_thread_registers
1655 as native-only callback.
1656
1657 * linux-tdep.h: Include "bfd.h".
1658 (struct regcache): Add forward declaration.
1659 (linux_collect_thread_registers_ftype): New typedef.
1660 (linux_make_corefile_notes): Add prototype.
1661 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
1662 "regset.h", and "elf-bfd.h".
1663 (find_signalled_thread, find_stop_signal): New functions.
1664 (linux_spu_make_corefile_notes): Likewise.
1665 (linux_collect_thread_registers): Likewise.
1666 (struct linux_corefile_thread_data): New data structure.
1667 (linux_corefile_thread_callback): New funcion.
1668 (linux_make_corefile_notes): Likewise.
1669 (linux_make_corefile_notes_1): Likewise.
1670 (linux_init_abi): Install it.
1671
1672 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
1673
1674 * gdbarch.sh (info_proc): New callback.
1675 * gdbarch.c, gdbarch.h: Regenerate.
1676
1677 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
1678 before falling back to the target info_proc callback.
1679
1680 * linux-nat.c: Do not include "cli/cli-utils.h".
1681 (linux_nat_info_proc): Remove.
1682 (linux_target_install_ops): No longer install it.
1683
1684 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
1685 (read_mapping): New function.
1686 (linux_info_proc): Likewise.
1687 (linux_init_abi): Install it.
1688
1689 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
1690
1691 * defs.h (enum info_proc_what): Moved here from linux-nat.c
1692 * infcmd.c: (info_proc_cmd_1): New function.
1693 (info_proc_cmd): New function, moved here from equivalent routine
1694 orignally in linux-nat.c.
1695 (info_proc_cmd_mappings): Likewise.
1696 (info_proc_cmd_stat): Likewise.
1697 (info_proc_cmd_status): Likewise.
1698 (info_proc_cmd_cwd): Likewise.
1699 (info_proc_cmd_cmdline): Likewise.
1700 (info_proc_cmd_exe): Likewise.
1701 (info_proc_cmd_all): Likewise.
1702 (_initialize_infcmd): Install "info proc" command and subcommands.
1703
1704 * target.h (struct target_ops): Add to_info_proc.
1705 (target_info_proc): Add prototype.
1706 * target.c (target_info_proc): New function.
1707
1708 * procfs.c (procfs_info_proc): Add prototype.
1709 (info_proc_cmd): Rename into ...
1710 (procfs_info_proc): ... this. Update argument types as appropriate
1711 for a to_info_proc implementation. Handle "what" argument.
1712 (procfs_target): Install procfs_info_proc.
1713 (_initialize_procfs): No longer install "info proc" command.
1714
1715 * linux-nat.c: (enum info_proc_what): Remove.
1716 (linux_nat_info_proc_cmd_1): Rename into ...
1717 (linux_nat_info_proc): ... this. Update argument types as appropriate
1718 for a to_info_proc implementation.
1719 (linux_nat_info_proc_cmd): Remove.
1720 (linux_nat_info_proc_cmd_mappings): Likewise.
1721 (linux_nat_info_proc_cmd_stat): Likewise.
1722 (linux_nat_info_proc_cmd_status): Likewise.
1723 (linux_nat_info_proc_cmd_cwd): Likewise.
1724 (linux_nat_info_proc_cmd_cmdline): Likewise.
1725 (linux_nat_info_proc_cmd_exe): Likewise.
1726 (linux_nat_info_proc_cmd_all): Likewise.
1727 (linux_target_install_ops): Install linux_nat_info_proc.
1728 (_initialize_linux_nat): No longer install "info proc" command
1729 and subcommands.
1730
1731 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
1732
1733 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
1734 * config.in, configure: Regenerate.
1735
1736 * target.h (struct target_ops): Add to_fileio_readlink.
1737 (target_fileio_readlink): Add prototype.
1738 * target.c (target_fileio_readlink): New function.
1739
1740 * inf-child.c: Conditionally include <sys/param.h>.
1741 (inf_child_fileio_readlink): New function.
1742 (inf_child_target): Install it.
1743
1744 * remote.c (PACKET_vFile_readlink): New enum value.
1745 (remote_hostio_readlink): New function.
1746 (init_remote_ops): Install it.
1747 (_initialize_remote): Handle vFile:readlink packet type.
1748
1749 2012-01-20 Pedro Alves <palves@redhat.com>
1750 Ulrich Weigand <ulrich.weigand@linaro.org>
1751
1752 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
1753 * config.in, configure: Regenerate.
1754
1755 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
1756 to_fileio_pread, to_fileio_close, to_fileio_unlink.
1757 (target_fileio_open): Add prototype.
1758 (target_fileio_pwrite): Likewise.
1759 (target_fileio_pread): Likewise.
1760 (target_fileio_close): Likewise.
1761 (target_fileio_unlink): Likewise.
1762 (target_fileio_read_alloc): Likewise.
1763 (target_fileio_read_stralloc): Likewise.
1764
1765 * target.c: Include "gdb/fileio.h".
1766 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
1767 (default_fileio_target): New function.
1768 (target_fileio_open): Likewise.
1769 (target_fileio_pwrite): Likewise.
1770 (target_fileio_pread): Likewise.
1771 (target_fileio_close): Likewise.
1772 (target_fileio_unlink): Likewise.
1773 (target_fileio_close_cleanup): Likewise.
1774 (target_fileio_read_alloc_1): Likewise.
1775 (target_fileio_read_alloc): Likewise.
1776 (target_fileio_read_stralloc): Likewise.
1777
1778 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
1779 <fcntl.h>, and <unistd.h>.
1780 (inf_child_fileio_open_flags_to_host): New function.
1781 (inf_child_errno_to_fileio_error): Likewise.
1782 (inf_child_fileio_open): Likewise.
1783 (inf_child_fileio_pwrite): Likewise.
1784 (inf_child_fileio_pread): Likewise.
1785 (inf_child_fileio_close): Likewise.
1786 (inf_child_fileio_unlink): Likewise.
1787 (inf_child_target): Install to_fileio routines.
1788
1789 * remote.c (init_remote_ops): Install to_fileio routines.
1790
1791 2012-01-20 Pedro Alves <palves@redhat.com>
1792 Ulrich Weigand <ulrich.weigand@linaro.org>
1793
1794 * remote.c (remote_multi_process_p): Only check for multi-process
1795 protocol feature, do not check for extended protocol.
1796 (remote_supports_multi_process): Check for extended protocol here.
1797 (set_general_process): Likewise.
1798 (extended_remote_kill): Likewise.
1799 (remote_pid_to_str): Likewise.
1800 (remote_query_supported): Always query multiprocess mode.
1801
1802 2012-01-20 Pedro Alves <palves@redhat.com>
1803 Ulrich Weigand <ulrich.weigand@linaro.org>
1804
1805 * inferior.h (struct inferior): Add fake_pid_p.
1806 * inferior.c (exit_inferior_1): Clear fake_pid_p.
1807 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
1808 magic_null_ptid since the remote side doesn't provide a real PID.
1809
1810 2012-01-19 Tom Tromey <tromey@redhat.com>
1811
1812 * NEWS: Combine the two Python sections.
1813
1814 2012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1815
1816 * target.h (target_close): Update comment on the target's unpush state.
1817
1818 2012-01-19 Pedro Alves <palves@redhat.com>
1819
1820 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
1821 linux_nat_async directly instead of going through the target
1822 vector.
1823 * target.c (unpush_target): Close target after unpushing it, not
1824 before.
1825
1826 2012-01-19 Gary Benson <gbenson@redhat.com>
1827
1828 * mdebugread.c (sort_blocks): Replace integer constants with ones
1829 derived from FIRST_LOCAL_BLOCK.
1830
1831 2012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
1832 Jan Kratochvil <jan.kratochvil@redhat.com>
1833
1834 PR gdb/9538
1835 * symfile.c (find_separate_debug_file): New function.
1836 (terminate_after_last_dir_separator): Likewise.
1837 (find_separate_debug_file_by_debuglink): Also try realpath.
1838 * configure.ac (AC_CHECK_FUNCS): Add lstat.
1839 * configure: Regenerate.
1840 * config.in: Regenerate.
1841
1842 2012-01-18 Doug Evans <dje@google.com>
1843
1844 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
1845 (main.o): Remove rule.
1846 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
1847 (--with-sysroot): Rewrite.
1848 * configure: Regenerate.
1849 * config.in: Regenerate.
1850
1851 2012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
1852
1853 * parse.c (initialize_expout): New function.
1854 (reallocate_expout): Likewise.
1855 (parse_exp_in_context): Use `initialize_expout' and
1856 `reallocate_expout' when appropriate.
1857
1858 2012-01-18 Pedro Alves <palves@redhat.com>
1859
1860 * record.c (struct record_breakpoint, record_breakpoint_p)
1861 (record_breakpoints): New.
1862 (record_insert_breakpoint, record_remove_breakpoint): Manage
1863 record breakpoints list. Only remove breakpoints from the
1864 inferior if they had been inserted there in the first place.
1865
1866 2012-01-17 Doug Evans <dje@google.com>
1867
1868 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
1869 if we know we don't have a file name to look for.
1870
1871 2012-01-17 Pedro Alves <palves@redhat.com>
1872
1873 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
1874 the frame's stop reason is UNWIND_UNAVAILABLE.
1875
1876 2012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1877
1878 Fix compilation error.
1879 * m2-exp.y (yyerror): Use ANSI C prototype.
1880
1881 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
1882
1883 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
1884 (growbuf_by_size): Likewise.
1885 (yyerror): Likewise.
1886 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
1887 (modblock): Remove variable (was #if 0'ed).
1888 (parse_number): Convert prototype from K&R to ANSI C.
1889 (yyerror): Likewise.
1890 * objc-exp.y (parse_number): Likewise.
1891 (yyerror): Likewise.
1892 (yylex): Remove #if 0'ed code.
1893 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
1894 (yyerror): Likewise.
1895
1896 2012-01-16 Tom Tromey <tromey@redhat.com>
1897
1898 * NEWS: Add item.
1899 * symtab.h (compare_filenames_for_search): Declare.
1900 * symtab.c (compare_filenames_for_search): New function.
1901 (iterate_over_some_symtabs): Use it.
1902 * symfile.h (struct quick_symbol_functions)
1903 <map_symtabs_matching_filename>: Change spec.
1904 * psymtab.c (partial_map_symtabs_matching_filename): Use
1905 compare_filenames_for_search. Update for new spec.
1906 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
1907 compare_filenames_for_search. Update for new spec.
1908 * breakpoint.c (clear_command): Use compare_filenames_for_search.
1909
1910 2012-01-16 Tom Tromey <tromey@redhat.com>
1911
1912 PR python/13281:
1913 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
1914 (struct main_type) <flag_flag_enum>: New field.
1915 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
1916 * NEWS: Add entries.
1917 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
1918 enums.
1919 * python/lib/gdb/printing.py (_EnumInstance): New class.
1920 (FlagEnumerationPrinter): Likewise.
1921
1922 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
1923
1924 * breakpoint.c (create_sals_from_address_default): New function.
1925 (create_breakpoints_sal_default): Likewise.
1926 (decode_linespec_default): Likewise.
1927 (is_marker_spec): Removed.
1928 (strace_marker_p): New function.
1929 (init_breakpoint_sal): Using `strace_marker_p' instead of
1930 `is_marker_spec'.
1931 (create_breakpoint): Call method `create_sals_from_address' from
1932 breakpoint_ops, replacing code that created SALs conditionally
1933 on the type of the breakpoint. Call method `create_breakpoints_sal',
1934 replacing code that created breakpoints conditionally on the type
1935 wanted.
1936 (base_breakpoint_create_sals_from_address): New function.
1937 (base_breakpoint_create_breakpoints_sal): Likewise.
1938 (base_breakpoint_decode_linespec): Likewise.
1939 (base_breakpoint_ops): Add methods
1940 `base_breakpoint_create_sals_from_address',
1941 `base_breakpoint_create_breakpoints_sal' and
1942 `base_breakpoint_decode_linespec'.
1943 (bkpt_create_sals_from_address): New function.
1944 (bkpt_create_breakpoints_sal): Likewise.
1945 (bkpt_decode_linespec): Likewise.
1946 (tracepoint_create_sals_from_address): Likewise.
1947 (tracepoint_create_breakpoints_sal): Likewise.
1948 (tracepoint_decode_linespec): Likewise.
1949 (strace_marker_create_sals_from_address): Likewise.
1950 (strace_marker_create_breakpoints_sal): Likewise.
1951 (strace_marker_decode_linespec): Likewise.
1952 (strace_marker_breakpoint_ops): New variable.
1953 (addr_string_to_sals): Remove `marker_spec'. Call method
1954 `decode_linespec' from breakpoint_ops, replacing code that decoded
1955 an address string into a SAL. Use `strace_marker_p' instead of
1956 `marker_spec'.
1957 (strace_command): Decide whether we are dealing with a static
1958 tracepoint with marker or not. Use the appropriate breakpoint_ops.
1959 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
1960 * breakpoint.h (linespec_result, linespec_sals): New forward
1961 declarations.
1962 (breakpoint_ops) <create_sals_from_address>,
1963 <create_breakpoints_sal>, <decode_linespec>: New methods.
1964
1965 2012-01-14 Doug Evans <dje@google.com>
1966
1967 * NEWS: Update text for "maint set python print-stack".
1968 It is deprecated in gdb 7.4 and deleted in 7.5.
1969
1970 2012-01-13 Eli Zaretskii <eliz@gnu.org>
1971
1972 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
1973 including curses.h.
1974
1975 2012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1976
1977 * configure: Regenerate.
1978 * config.in: Regenerate.
1979
1980 2012-01-12 Keith Seitz <keiths@redhat.com>
1981
1982 PR mi/10586
1983 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
1984 (ANONYMOUS_UNION_NAME): Define.
1985 (is_path_expr_parent): New function.
1986 (get_path_expr_parent): New function.
1987 (is_anonymous_child): New function.
1988 (create_child_with_value): If the child is anonymous and without
1989 a name, assign an object name to it.
1990 (c_describe_child): Use get_path_expr_parent to determine
1991 the parent expression.
1992 If there field represents an anonymous struct or union and
1993 has no name, set an appropriate display name and expression.
1994 (cplus_describe_child): Likewise.
1995
1996 2012-01-12 Pedro Alves <palves@redhat.com>
1997
1998 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
1999 available when %ebp is found to be zero (outermost).
2000
2001 2012-01-11 Andreas Tobler <andreast@fgznet.ch>
2002
2003 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
2004 an internal gdb_static_assert.
2005 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
2006
2007 2012-01-11 Tom Tromey <tromey@redhat.com>
2008
2009 PR gdb/9598:
2010 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
2011 catch" and "catch throw".
2012
2013 2012-01-11 Paul Hilfinger <hilfingr@adacore.com>
2014
2015 * blockframe.c (block_innermost_frame): Start search from selected
2016 frame, if present, or otherwise the current frame.
2017
2018 * c-exp.y (variable): Update innermost_block for
2019 'block COLONCOLON NAME' clause.
2020 * m2-exp.y (variable): Ditto.
2021 * objc-exp.y (variable): Ditto.
2022
2023 2012-01-10 Tom Tromey <tromey@redhat.com>
2024
2025 PR python/13199:
2026 * python/python.c (finish_python_initialization): Set sys.argv.
2027
2028 2012-01-10 Doug Evans <dje@google.com>
2029
2030 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
2031 "want_line_info". All callers updated.
2032 (dwarf_decode_lines_1): New function.
2033 (handle_DW_AT_stmt_list): Add function comment.
2034 New arg "want_line_info". All callers updated.
2035 (read_file_scope,read_type_unit_scope): Move comment from
2036 handle_DW_AT_stmt_list to here.
2037
2038 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
2039
2040 Fix regression after libiberty/ update for GCC PR 6057 and others.
2041 * c-exp.y (operator) <OPERATOR DELETE>
2042 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
2043 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
2044 (make_builtin_type, make_name): New variable i, add gdb_assert.
2045 (operator) <OPERATOR NEW>: Update ARGS to 3.
2046 (operator) <OPERATOR DELETE>: Add trailing space.
2047 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
2048 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
2049 * cp-support.c (cp_canonicalize_string): Check NULL from
2050 cp_comp_to_string, call warning and return.
2051
2052 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
2053
2054 Fix duplicate .o files after omitting libbfd.a.
2055 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
2056 (SFILES): Add corelow.c.
2057 (COMMON_OBS): Add corelow.o.
2058 (ALLDEPFILES): Remove corelow.c.
2059 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
2060 * config/alpha/alpha-osf3.mh: Likewise.
2061 * config/alpha/fbsd.mh: Likewise.
2062 * config/arm/nbsdaout.mh: Likewise.
2063 * config/arm/nbsdelf.mh: Likewise.
2064 * config/i386/i386gnu.mh: Likewise.
2065 * config/ia64/hpux.mh: Likewise.
2066 * config/ia64/linux.mh: Likewise.
2067 * config/m32r/linux.mh: Likewise.
2068 * config/m68k/linux.mh: Likewise.
2069 * config/mips/irix5.mh: Likewise.
2070 * config/mips/irix6.mh: Likewise.
2071 * config/pa/hpux.mh: Likewise.
2072 * config/pa/linux.mh: Likewise.
2073 * config/powerpc/aix.mh: Likewise.
2074 * config/sparc/linux.mh: Likewise.
2075 * config/sparc/linux64.mh: Likewise.
2076 * config/sparc/sol2.mh: Likewise.
2077 * config/vax/vax.mh: Likewise.
2078 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
2079 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
2080 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
2081 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
2082 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
2083 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
2084 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
2085 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
2086 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
2087 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
2088 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
2089 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
2090 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
2091 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
2092 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
2093 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
2094 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
2095 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
2096 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
2097 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
2098 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
2099 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
2100 corelow.o from gdb_target_obs.
2101 * corefile.c (core_target): Update the comment on NULL value.
2102 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
2103 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
2104 MATCHES. Drop YUMMY set on NULL.
2105 (core_close): Do not call exit_inferior_silent on zero PID. Do not
2106 reclaim CORE_DATA if it is already NULL.
2107
2108 2012-01-09 Doug Evans <dje@google.com>
2109
2110 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
2111 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
2112
2113 2012-01-09 Keith Seitz <keiths@redhat.com>
2114
2115 * breakpoint.c (wrapper.h): Don't include.
2116
2117 2012-01-09 Keith Seitz <keiths@redhat.com>
2118
2119 * Makefile.in (SFILES): Remove wrapper.c.
2120 (HFILES_NO_SRCDIR): Remove wrapper.h.
2121 (COMMON_OBS): Remove wrapper.o.
2122 * cli/cli-interp.c: Don't inlude wrapper.h.
2123 * corelow.c: Likewise.
2124 (core_open): Replace gdb_target_find_new_threads with
2125 TRY_CATCH around target_find_new_threads.
2126 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
2127 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
2128 * varobj.c (varobj_create): Likewise for parse_exp_1 and
2129 evaluate_expression.
2130 (varobj_set_value): Likewise for evaluate_expression and
2131 value_assign.
2132 (install_new_variable): Likewise for value_fetch_lazy.
2133 (adjust_value_for_child_access): Likewise for value_ind.
2134 (c_describe_child): Likewise for value_subscript and
2135 value_ind.
2136 (c_value_of_root): Likewise for evaluate_expression.
2137 * wrapper.c: Remove.
2138 * wrapper.h: Remove.
2139
2140 2012-01-09 Doug Evans <dje@google.com>
2141
2142 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
2143 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
2144 "abfd" args with "section". All callers updated.
2145 Error checking code moved ...
2146 (error_check_comp_unit_head): ... here. New function.
2147 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
2148 Delete arg "abfd". New arg "type_offset". All callers updated.
2149 (create_debug_types_hash_table): Simplify by using
2150 read_and_check_type_unit_head.
2151
2152 * parser-defs.h (namecopy): Delete.
2153 * parse.c (namecopy, namecopy_size): Move into copy_name.
2154
2155 2012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2156
2157 Partially fix duplicate .o files after omitting libbfd.a.
2158 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
2159 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
2160 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
2161 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
2162 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
2163 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
2164 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
2165
2166 2012-01-09 Pedro Alves <palves@redhat.com>
2167
2168 * MAINTAINERS: Update my email address.
2169
2170 2012-01-08 Doug Evans <dje@google.com>
2171
2172 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
2173 n_type_units. Rename type_comp_units to all_type_units.
2174 All uses updated.
2175 (add_signatured_type_cu_to_table): Renamed from
2176 add_signatured_type_cu_to_list. All callers updated.
2177
2178 * gdbtypes.h (struct cplus_struct_type): Delete member
2179 nfn_fields_total. All uses removed.
2180
2181 2012-01-06 Doug Evans <dje@google.com>
2182
2183 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
2184 to top of file.
2185 (dwarf2_find_comp_unit): Delete.
2186 (process_psymtab_comp_unit): Make result "void".
2187 Delete args buffer, info_ptr, buffer_size, and replace with
2188 "section". All callers updated.
2189 (dwarf2_build_psymtabs_hard): Simplify.
2190
2191 2012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
2192 Thiago Jung Bauermann <bauerman@br.ibm.com>
2193
2194 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
2195 before `struct gdb_exception'.
2196 * breakpoint.c (update_global_location_list_nothrow)
2197 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
2198 * cp-abi.c (value_rtti_type): Likewise.
2199 * cp-support.c (cp_validate_operator): Likewise.
2200 * infrun.c (insert_exception_resume_breakpoint)
2201 (check_exception_resume, keep_going): Likewise.
2202 * mi-interp.c (mi_breakpoint_created)
2203 (mi_breakpoint_modified): Likewise.
2204 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
2205 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
2206 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
2207
2208 2012-01-05 Doug Evans <dje@google.com>
2209
2210 * dwarf2read.c (statement_prologue): Delete, unused.
2211
2212 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
2213 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
2214
2215 * dwarf2read.c (comp_unit_header): Delete, unused.
2216
2217 2012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
2218
2219 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
2220 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
2221
2222 2012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
2223
2224 * infrun.c (normal_stop): Don't skip calling the normal_stop
2225 observers if the thread was doing a multi-step, but stopped for
2226 some reason other than stepping.
2227
2228 2012-01-05 Pedro Alves <alves.ped@gmail.com>
2229
2230 * cli/cli-decode.h: Add comments.
2231 (CMD_LIST_AMBIGUOUS): Moved to command.h
2232 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
2233 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
2234 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
2235 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
2236 (add_com, add_com_alias, add_info, add_info_alias)
2237 (complete_on_cmdlist, complete_on_enum, help_list): Remove
2238 declarations.
2239 * command.h: Add and adjust comments.
2240 (CMD_LIST_AMBIGUOUS): Moved here.
2241 (help_cmd, help_cmd_list): Delete declarations.
2242
2243 2012-01-04 Doug Evans <dje@google.com>
2244
2245 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
2246 All callers updated.
2247 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
2248 Replace all arguments with "per_cu". All callers updated.
2249
2250 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
2251
2252 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
2253 New arg "per_cu". All callers updated.
2254
2255 Delete #if 0'd out code.
2256 * language.c (binop_result_type): Delete.
2257 (simple_type, ordered_type, same_type, integral_type): Delete.
2258 (numeric_type, character_type, string_type, boolean_type): Delete.
2259 (float_type, structured_type): Delete.
2260 * language.h: Update.
2261
2262 2012-01-04 Tom Tromey <tromey@redhat.com>
2263
2264 * python/py-value.c (valpy_binop): Initialize 'res_val'.
2265
2266 2012-01-04 Joel Brobecker <brobecker@adacore.com>
2267
2268 * corefile.c (close_exec_file): Delete.
2269 (reopen_exec_file): Remove commented out code that seems related
2270 to close_exec_file, which is being deleted here.
2271 * inferior.h (close_exec_file): Delete.
2272 * fork-child.c (fork_inferior): Remove call to fork_inferior.
2273
2274 2012-01-04 Joel Brobecker <brobecker@adacore.com>
2275
2276 * ada-lang.c: #include "cli/cli-utils.h".
2277 (get_selections): Use skip_spaces.
2278 (ada_get_next_arg): Use skip_spaces and skip_to_space.
2279 (catch_ada_exception_command_split): Use skip_spaces.
2280 (ada_decode_assert_location): Likewise.
2281
2282 2012-01-04 Joel Brobecker <brobecker@adacore.com>
2283
2284 * linespec.c (decode_line_internal): Check for C++ or Java
2285 compound constructs only if the current language is C, C++
2286 or Java.
2287
2288 2012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2289
2290 Revert:
2291 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2292 Joel Brobecker <brobecker@adacore.com>
2293 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
2294 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
2295 3 times.
2296 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
2297 fall through into AT_ENTRY_POINT.
2298 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
2299 DUMMY_ADDR with it.
2300 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
2301 PPC_INSN_SIZE skip to 3 times.
2302
2303 2012-01-04 Joel Brobecker <brobecker@adacore.com>
2304
2305 * linespec.c (add_minsym): Preserve function descriptors.
2306
2307 2012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
2308
2309 * breakpoint.c (all_locations_are_pending): Consider locations
2310 in program spaces executing during startup pending as well.
2311
2312 2012-01-04 Joel Brobecker <brobecker@adacore.com>
2313
2314 Copyright year update in most files of the GDB Project.
2315
2316 2012-01-04 Joel Brobecker <brobecker@adacore.com>
2317
2318 * copyright.sh: Delete.
2319 * copyright.py: Rewrite.
2320
2321 2012-01-04 Joel Brobecker <brobecker@adacore.com>
2322
2323 * gnulib/extra/update-copyright: New file, imported from gnulib.
2324
2325 2012-01-04 Joel Brobecker <brobecker@adacore.com>
2326
2327 * README (Copyright and License Notices): New section.
2328
2329 2012-01-03 Tom Tromey <tromey@redhat.com>
2330
2331 PR python/12533:
2332 * python/py-value.c (valpy_dereference, valpy_get_address
2333 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
2334 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
2335 (valpy_absolute, valpy_richcompare): Free intermediate values.
2336
2337 2011-01-03 Joel Brobecker <brobecker@adacore.com>
2338
2339 * ada-lang.c: Reformat the copyright notice.
2340
2341 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2342
2343 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
2344 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
2345 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
2346 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
2347 Revert this part of:
2348 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2349 Build gdb directly from *.o files not using libgdb.a.
2350 * Makefile.in (COMMON_OBS): Remove solib-target.o.
2351
2352 2012-01-02 Joel Brobecker <brobecker@adacore.com>
2353
2354 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
2355 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
2356 Reformat the copyright header.
2357
2358 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2359
2360 Revert this part of:
2361 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2362 Remove the gdbtui binary.
2363 * gdb.c (main): Remove args.interpreter_p initialization.
2364 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
2365 * main.h (struct captured_main_args): Remove interpreter_p.
2366
2367 2012-01-02 Joel Brobecker <brobecker@adacore.com>
2368
2369 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
2370
2371 2012-01-02 Joel Brobecker <brobecker@adacore.com>
2372
2373 * top.c (print_gdb_version): Update copyright year.
2374
2375 2012-01-02 Yao Qi <yao@codesourcery.com>
2376
2377 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
2378
2379 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2380 Joel Brobecker <brobecker@adacore.com>
2381
2382 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
2383 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
2384 3 times.
2385 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
2386 fall through into AT_ENTRY_POINT.
2387 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
2388 DUMMY_ADDR with it.
2389 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
2390 PPC_INSN_SIZE skip to 3 times.
2391
2392 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2393
2394 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
2395 the return value.
2396 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
2397
2398 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2399
2400 Build gdb directly from *.o files not using libgdb.a.
2401 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
2402 (COMMON_OBS): Remove solib-target.o.
2403 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
2404 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
2405 (LIBGDB_OBS, libgdb.a): Move it above.
2406 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
2407 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
2408 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
2409 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
2410 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
2411 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
2412 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
2413 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
2414 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
2415 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
2416 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
2417 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
2418 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
2419 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
2420 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
2421 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
2422 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
2423 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
2424 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
2425 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
2426 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
2427 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
2428 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
2429 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
2430 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
2431 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
2432 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
2433
2434 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2435
2436 Remove the gdbtui binary.
2437 * .gitignore (/gdbtui): Remove.
2438 * Makefile.in (TUI): Remove.
2439 (SUBDIR_TUI_OBS): Remove tui-main.o.
2440 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
2441 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
2442 (tui-main.o): Remove.
2443 (all_object_files): Remove tui-main.o.
2444 * NEWS: New note for the gdbtui removal.
2445 * configure: Rebuilt.
2446 * configure.ac: No longer add all-tui, clean-tui, install-tui and
2447 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
2448 CONFIG_UNINSTALL respectively.
2449 * gdb.c (main): Remove args.interpreter_p initialization.
2450 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
2451 * main.h (struct captured_main_args): Remove interpreter_p.
2452 * tui/tui-main.c: Remove.
2453
2454 2012-01-01 Doug Evans <dje@google.com>
2455
2456 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
2457 (dwarf2_physname, read_import_statement): Ditto.
2458 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
2459 (process_structure_scope read_subroutine_type): Ditto.
2460 (read_typedef, load_partial_dies, read_partial_die): Ditto.
2461 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
2462 (dwarf2_fetch_die_location_block): Ditto.
2463 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
2464
2465 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
2466 All callers updated.
2467 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
2468 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
2469 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
2470
2471 * dwarf2read.c (load_cu): Move assert to more useful location.
2472
2473 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
2474 All callers updated.
2475
2476 * dwarf2read.c (dwarf2_per_objfile): Add comment.
2477 (dwarf2_elf_names): Minor reformat.
2478 (dwarf2_per_cu_data): Tweak comment.
2479 (dwarf2_read_section): Fix comment.
2480 (create_all_comp_units): Fix comment.
2481 (load_full_comp_unit): Fix comment.
2482 (process_full_comp_unit): Fix comment.
2483 (read_signatured_type): Fix comment.
2484
2485 For older changes see ChangeLog-2011.
2486 \f
2487 Local Variables:
2488 mode: change-log
2489 left-margin: 8
2490 fill-column: 74
2491 version-control: never
2492 coding: utf-8
2493 End:
This page took 0.095206 seconds and 5 git commands to generate.