Move savestring to common/common-utils.c, make gdbserver use it.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2013-02-14 Pedro Alves <palves@redhat.com>
2
3 * utils.c (savestring): Don't #undef it. Move function to
4 common/common-utils.c.
5 * common/common-utils.c: Include gdb_string.h.
6 (savestring): Move here from utils.c.
7 * common/common-utils.h (savestring): Declare.
8
9 2013-02-14 Pedro Alves <palves@redhat.com>
10
11 * utils.c (savestring): Rename parameter 'size' to 'len'.
12
13 2013-02-14 Pedro Alves <palves@redhat.com>
14 Yufeng Zhang <yufeng.zhang@arm.com>
15
16 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
17 (aarch64_inferior_data, struct aarch64_inferior_data):
18 Delete.
19 (struct aarch64_process_info): New.
20 (aarch64_process_list): New global.
21 (aarch64_find_process_pid, aarch64_add_process)
22 (aarch64_process_info_get): New functions.
23 (aarch64_inferior_data_get): Delete.
24 (aarch64_process_info_get): New function.
25 (aarch64_forget_process): New function.
26 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
27 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
28 aarch64_get_debug_reg_state.
29 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
30 instead of linux_nat_iterate_watchpoint_lwps.
31 (aarch64_linux_new_fork): New function.
32 (aarch64_linux_child_post_startup_inferior): Use
33 aarch64_forget_process instead of aarch64_init_debug_reg_state.
34 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
35 (aarch64_linux_remove_hw_breakpoint)
36 (aarch64_handle_aligned_watchpoint)
37 (aarch64_handle_unaligned_watchpoint)
38 (aarch64_linux_insert_watchpoint)
39 (aarch64_linux_remove_watchpoint)
40 (aarch64_linux_stopped_data_address): Adjust to pass the current
41 process id to aarch64_debug_reg_state.
42 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
43 linux_nat_new_fork hook, and aarch64_forget_process as
44 linux_nat_forget_process hook; remove the call to
45 register_inferior_data_with_cleanup.
46
47 2013-02-14 Pedro Alves <palves@redhat.com>
48
49 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
50 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
51 lval_memory.
52
53 2013-02-14 Pedro Alves <pedro@codesourcery.com>
54 Hafiz Abid Qadeer <abidh@codesourcery.com>
55
56 * tracepoint.h (validate_trace_state_variable_name): Declare.
57 * tracepoint.c (validate_trace_state_variable_name): New.
58 (trace_variable_command): Parse the trace state variable's name
59 without using parse_expression. Do several validations.
60 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
61 trace state variable's name with parse_expression. Validate it.
62
63 2013-02-14 Yao Qi <yao@codesourcery.com>
64
65 * infcmd.c (breakpoint_proceeded): Remove it.
66
67 2013-02-14 Yao Qi <yao@codesourcery.com>
68
69 * tracepoint.c (end_actions_pseudocommand): Make it static.
70 (while_stepping_pseudocommand): Likewise.
71 * tracepoint.h (end_actions_pseudocommand): Remove the
72 declaration.
73 (while_stepping_pseudocommand): Likewise.
74
75 2013-02-14 Yao Qi <yao@codesourcery.com>
76
77 * cli/cli-decode.c (help_cmd): Remove the declaration of
78 "cmdlist".
79 (help_all): Likewise.
80
81 2013-02-13 Pedro Alves <palves@redhat.com>
82
83 * amd64-linux-nat.c (update_debug_registers_callback):
84 Update comment.
85 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
86 iterate_over_lwps.
87 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
88 i386_debug_reg_state.
89 (amd64_linux_new_fork): New function.
90 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
91 linux_nat_new_fork hook, and i386_forget_process as
92 linux_nat_forget_process hook.
93 * i386-linux-nat.c (update_debug_registers_callback):
94 Update comment.
95 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
96 iterate_over_lwps.
97 (i386_linux_prepare_to_resume): Pass the lwp's pid to
98 i386_debug_reg_state.
99 (i386_linux_new_fork): New function.
100 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
101 linux_nat_new_fork hook, and i386_forget_process as
102 linux_nat_forget_process hook.
103 * i386-nat.c (i386_init_dregs): Delete.
104 (i386_inferior_data, struct i386_inferior_data):
105 Delete.
106 (struct i386_process_info): New.
107 (i386_process_list): New global.
108 (i386_find_process_pid, i386_add_process, i386_process_info_get):
109 New functions.
110 (i386_inferior_data_get): Delete.
111 (i386_process_info_get): New function.
112 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
113 (i386_forget_process): New function.
114 (i386_cleanup_dregs): Rewrite.
115 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
116 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
117 (i386_stopped_data_address, i386_insert_hw_breakpoint)
118 (i386_remove_hw_breakpoint): Adjust to pass the current process id
119 to i386_debug_reg_state.
120 (i386_use_watchpoints): Don't register inferior data.
121 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
122 adjust comment.
123 (i386_forget_process): Declare.
124 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
125 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
126 New static globals.
127 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
128 (add_initial_lwp): New, factored out from ...
129 (add_lwp): ... this. Don't check the number of lwps before
130 calling linux_nat_new_thread.
131 (linux_nat_iterate_watchpoint_lwps): Delete.
132 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
133 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
134 forks and vforks.
135 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
136 initial lwp.
137 (linux_nat_kill, linux_nat_mourn_inferior): Call
138 linux_nat_forget_process.
139 (linux_nat_set_new_fork, linux_nat_set_forget_process)
140 (linux_nat_forget_process): New functions.
141 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
142 type.
143 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
144 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
145 types.
146 (linux_nat_set_new_fork, linux_nat_set_forget_process)
147 (linux_nat_forget_process): New declarations.
148
149 * amd64fbsd-nat.c (super_mourn_inferior): New global.
150 (amd64fbsd_mourn_inferior): New function.
151 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
152 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
153
154 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
155
156 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
157 Adding _().
158
159 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
160
161 * aarch64-linux-nat.c (debug_reg_change_callback)
162 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
163 %s and phex().
164
165 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
166
167 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
168 with LONGEST.
169
170 2013-02-13 Pedro Alves <palves@redhat.com>
171 Hafiz Abid Qadeer <abidh@codesourcery.com>
172
173 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
174
175 2013-02-12 Tom Tromey <tromey@redhat.com>
176
177 PR symtab/11464:
178 * c-exp.y (lex_one_token): Initialize other fields of yylval on
179 NAME return.
180 (classify_inner_name): Remove 'first_name' argument, add
181 'context'. Remove unused variable.
182 (yylex): Explicitly maintain the context type. Exit loop earlier
183 if NAME result is seen.
184
185 2013-02-12 Pedro Alves <palves@redhat.com>
186
187 * amd64-darwin-tdep.c: Add (C) after Copyright.
188 * cli/cli-cmds.h: Ditto.
189 * cli/cli-decode.c: Ditto.
190 * cli/cli-decode.h: Ditto.
191 * cli/cli-dump.c: Ditto.
192 * cli/cli-dump.h: Ditto.
193 * cli/cli-interp.c: Ditto.
194 * cli/cli-logging.c: Ditto.
195 * cli/cli-script.c: Ditto.
196 * cli/cli-script.h: Ditto.
197 * cli/cli-setshow.c: Ditto.
198 * cli/cli-setshow.h: Ditto.
199 * cli/cli-utils.c: Ditto.
200 * cli/cli-utils.h: Ditto.
201 * config/alpha/nm-osf3.h: Ditto.
202 * config/djgpp/djconfig.sh: Ditto.
203 * config/i386/nm-fbsd.h: Ditto.
204 * config/i386/nm-i386gnu.h: Ditto.
205 * config/nm-linux.h: Ditto.
206 * config/nm-nto.h: Ditto.
207 * config/rs6000/nm-rs6000.h: Ditto.
208 * config/sparc/nm-sol2.h: Ditto.
209 * darwin-nat-info.c: Ditto.
210 * dfp.c: Ditto.
211 * dfp.h: Ditto.
212 * gdb-demangle.h: Ditto.
213 * i386-darwin-nat.c: Ditto.
214 * i386-darwin-tdep.c: Ditto.
215 * linux-fork.h: Ditto.
216 * m32c-tdep.c: Ditto.
217 * microblaze-linux-tdep.c: Ditto.
218 * microblaze-rom.c: Ditto.
219 * microblaze-tdep.c: Ditto.
220 * microblaze-tdep.h: Ditto.
221 * mips-linux-tdep.h: Ditto.
222 * ppc-ravenscar-thread.c: Ditto.
223 * ppc-ravenscar-thread.h: Ditto.
224 * prologue-value.c: Ditto.
225 * prologue-value.h: Ditto.
226 * ravenscar-thread.c: Ditto.
227 * ravenscar-thread.h: Ditto.
228 * sparc-ravenscar-thread.c: Ditto.
229 * sparc-ravenscar-thread.h: Ditto.
230 * tilegx-linux-tdep.c: Ditto.
231 * unwind_stop_reasons.def: Ditto.
232 * windows-nat.h: Ditto.
233 * xtensa-linux-tdep.c: Ditto.
234 * xtensa-xtregs.c: Ditto.
235 * regformats/regdat.sh: Ditto.
236 * regformats/regdef.h: Ditto.
237
238 2013-02-12 Pedro Alves <palves@redhat.com>
239
240 * break-catch-sig.c: Update copyright years.
241
242 2013-02-11 Siva Chandra Reddy <sivachandra@google.com>
243
244 Add support for a destructor for ui_out data and use it to
245 provide a ui_out destructor.
246 * ui-out.h: Declare the new ui_out destructor.
247 (ui_out_impl): Add a field for data destructor in ui_out_impl.
248 * ui-out.c (default_data_destroy): Add a default data destructor
249 which does nothing.
250 (default_ui_out_impl): Set the new data_destroy field to
251 default_data_destroy
252 (uo_data_destroy): Local function which invokes the data
253 destructor if present.
254 (clear_table): Local function which clears the table data of a
255 ui_out object.
256 (ui_out_destroy): Public function which frees a ui_out object.
257 (ui_out_table_end): Use the new clear_table function.
258 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
259 NULL.
260 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
261 to NULL.
262
263 2013-02-11 Doug Evans <dje@google.com>
264
265 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
266 (printf_decfloat): New function. Broken out from ui_printf.
267 Remove unnecessary code to shift the entire format string down.
268 (printf_pointer): New function.
269 (ui_printf): Code to print C strings, wide C strings, decfloats,
270 and pointers moved to separate functions.
271
272 2013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
273
274 * valops.c (value_assign): Handling bitfield offset in
275 `lval_internalvar_component' case.
276
277 2013-02-08 Doug Evans <dje@google.com>
278
279 * common/format.c (parse_format_string): Fix whitespace.
280
281 2013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
282
283 * stack.c (return_command): Work around uninitialized variable
284 warning.
285
286 2013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
287
288 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
289 number of the registers from 36 to 34.
290
291 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
292
293 * NEWS: Mention new AArch64 native and target support.
294
295 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
296
297 * MAINTAINERS (Write After Approval): Add myself.
298
299 2013-02-08 Jim MacArthur <jim.macarthur@arm.com>
300 Marcus Shawcroft <marcus.shawcroft@arm.com>
301 Nigel Stephens <nigel.stephens@arm.com>
302 Yufeng Zhang <yufeng.zhang@arm.com>
303
304 * aarch64-linux-nat.c: New file.
305 * config/aarch64/linux.mh: New file.
306 * configure.host: Add AArch64.
307 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
308
309 2013-02-07 Doug Evans <dje@google.com>
310
311 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
312 disassemble command.
313
314 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
315
316 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
317 set_gdbarch_fetch_tls_load_module_address.
318
319 2013-02-06 David S. Miller <davem@davemloft.net>
320
321 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
322 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
323 * value.c (struct_return_convention): New function.
324 (using_struct_return): Implement in terms of struct_return_convention.
325 * value.h (struct_return_convention): Declare.
326 * stack.c (return_command): Allow successful overriding of the return
327 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
328
329 2013-02-06 Tom Tromey <tromey@redhat.com>
330
331 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
332 outside of TRY_CATCH.
333
334 2013-02-06 Yao Qi <yao@codesourcery.com>
335
336 * mi/mi-interp.c: Include "tracepoint.h".
337 (mi_tsv_modified): Declare.
338 (mi_tsv_created, mi_tsv_deleted): Update declaration.
339 (mi_interpreter_init): Call observer_attach_tsv_modified.
340 (mi_tsv_modified): New.
341 (mi_tsv_created, mi_tsv_deleted): Update.
342 * tracepoint.c (trace_variable_command): Call
343 observer_notify_tsv_modified if the initial value of tsv is
344 changed.
345 (delete_trace_state_variable): Call
346 observer_notify_tsv_deleted earlier.
347 (trace_variable_command): Caller update.
348 (create_tsv_from_upload): Likewise.
349 * observer.sh: Declare "struct trace_state_variable".
350
351 * NEWS: Mention the new MI notification "=tsv-modified".
352
353 2013-02-05 Doug Evans <dje@google.com>
354
355 * completer.c (location_completer): Fix typo in comment.
356
357 2013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
358
359 * breakpoint.c (add_location_to_breakpoint): Insert the location with
360 ADDRESS sorted.
361
362 2013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
363
364 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
365 Refactor if statement to avoid trailing || operator.
366
367 2013-02-05 Andreas Tobler <andreast@fgznet.ch>
368
369 * NEWS: Add PowerPC FreeBSD as a new native configuration.
370
371 2013-02-04 Andreas Tobler <andreast@fgznet.ch>
372
373 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
374 * configure.host: Add powerpc*-*-freebsd* target.
375 * configure.tgt: Add target info for powerpc*-*-freebsd*.
376 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
377 * config/powerpc/fbsd.mh: New file.
378
379 2013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
380 Denys Vlasenko <dvlasenk@redhat.com>
381 Pedro Alves <palves@redhat.com>
382
383 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
384 (struct elf_internal_linux_prpsinfo): Forward declare.
385 * gdbarch.h, gdbarch.c: Regenerate.
386 * linux-tdep.c: Include `cli/cli-utils.h'.
387 (linux_fill_prpsinfo): New function.
388 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
389 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
390 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
391 depending on gdbarch pointer bitness.
392 * ppc-linux-tdep.c: Include elf-bfd.h.
393 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
394 on 32-bit.
395
396 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
397 Marcus Shawcroft <marcus.shawcroft@arm.com>
398 Nigel Stephens <nigel.stephens@arm.com>
399 Yufeng Zhang <yufeng.zhang@arm.com>
400
401 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
402
403 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
404 Marcus Shawcroft <marcus.shawcroft@arm.com>
405 Nigel Stephens <nigel.stephens@arm.com>
406 Yufeng Zhang <yufeng.zhang@arm.com>
407
408 * aarch64-newlib-tdep.c: New file.
409 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
410 aarch64*-*-elf.
411 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
412 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
413 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
414 * osabi.c (gdb_osabi_names): Add "Newlib".
415
416 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
417 Marcus Shawcroft <marcus.shawcroft@arm.com>
418 Nigel Stephens <nigel.stephens@arm.com>
419 Yufeng Zhang <yufeng.zhang@arm.com>
420
421 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
422 (ALLDEPFILES): Add aarch64-linux-tdep.c.
423 * aarch64-linux-tdep.c: New file.
424 * aarch64-linux-tdep.h: New file.
425 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
426 * configure.tgt: Add aarch64-none-linux-gnu.
427
428 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
429 Marcus Shawcroft <marcus.shawcroft@arm.com>
430 Nigel Stephens <nigel.stephens@arm.com>
431 Yufeng Zhang <yufeng.zhang@arm.com>
432
433 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
434 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
435 (ALLDEPFILES): Add aarch64-tdep.c.
436 * aarch64-tdep.c: New file.
437 * aarch64-tdep.h: New file.
438 * configure.tgt: Add AArch64.
439 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
440 (aarch64-expedite): New definition.
441 * features/aarch64-core.xml: New file.
442 * features/aarch64-fpu.xml: New file.
443 * features/aarch64-without-fpu.c: New file (generated).
444 * features/aarch64-without-fpu.xml: New file.
445 * features/aarch64.c: New file (generated).
446 * features/aarch64.xml: New file.
447 * regformats/aarch64-without-fpu.dat: New file (generated).
448 * regformats/aarch64.dat: New file (generated).
449
450 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
451
452 * contrib/expect-read1.c: New file.
453 * contrib/expect-read1.sh: New file.
454
455 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
456
457 * dwarf2read.c (file_file_name): New function with code from
458 file_full_name.
459 (file_full_name): Move most of the code to file_file_name.
460 (macro_start_file): Rename variable full_name to file_name and use
461 file_file_name for it. Add comp_dir parameter to new_macro_table.
462 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
463 macro_source_file->filename access by macro_source_fullname call.
464 * macroscope.c (_initialize_macroscope): Update the new_macro_table
465 caller.
466 * macrotab.c (struct macro_table): New field comp_dir.
467 (macro_include): New variables link_fullname and source_fullname.
468 Replace any macro_source_file->filename access by macro_source_fullname
469 call.
470 (macro_lookup_inclusion): Remove the partial filenames checking code.
471 (check_for_redefinition): New variables source_fullname and
472 found_key_fullname. Replace any macro_source_file->filename access by
473 macro_source_fullname call.
474 (macro_undef): New variables source_fullname and key_fullname. Replace
475 any macro_source_file->filename access by macro_source_fullname call.
476 (macro_lookup_definition): New variables retval and source_fullname.
477 Replace any macro_source_file->filename access by macro_source_fullname
478 call.
479 (foreach_macro): New variable key_fullname. Replace any
480 macro_source_file->filename access by macro_source_fullname call.
481 (foreach_macro_in_scope): New variable datum_fullname. Replace any
482 macro_source_file->filename access by macro_source_fullname call.
483 (new_macro_table): Add parameter comp_dir. Initialize T with it.
484 (macro_source_fullname): New function.
485 * macrotab.h (struct macro_source_file): Extent the filename field
486 comment.
487 (new_macro_table): New parameter comp_dir, add a comment for it.
488 (macro_source_fullname): new declaration.
489
490 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
491
492 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
493 this_real_name to outer block. Use it also for
494 compare_filenames_for_search.
495 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
496 with dw2_get_real_path for file_matcher, considering also
497 BASENAMES_MAY_DIFFER.
498 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
499
500 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
501
502 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
503 to the file_matcher parameter. Pass 0 to it.
504 (dwarf2_create_include_psymtab): Copy also DIRNAME.
505 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
506 NULL psymtab_to_fullname result.
507 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
508 an expected filename instead.
509 (expand_symtabs_matching_via_partial): Add basenames parameter to the
510 file_matcher parameter. Call also psymtab_to_fullname, after newly
511 considering BASENAMES_MAY_DIFFER.
512 * source.c (rewrite_source_path): Remove static.
513 * source.h (rewrite_source_path): New declaration.
514 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
515 the expand_symtabs_matching field. Comment it.
516 * symtab.c (file_matches): New function comment. Add parameter
517 basenames, implement it.
518 (search_symbols_file_matches): Add basenames parameter. Update the
519 file_matches caller.
520 (search_symbols): Match FILES also against symtab_to_fullname.
521 Optimize it for BASENAMES_MAY_DIFFER.
522
523 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
524
525 * source.c (print_source_lines_base): Print for TUI also "fullname".
526 * tui/tui-data.c (init_content_element): Change tui_locator_element
527 field to full_name.
528 * tui/tui-data.h (struct tui_locator_element): Likewise.
529 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
530 tui_update_locator_filename calls to tui_update_locator_fullname.
531 Replace symtab->filename refererence by symtab_to_fullname call.
532 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
533 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
534 field to full_name. Replace symtab->filename refererence by
535 symtab_to_fullname call.
536 (tui_show_symtab_source): Rename parameter to fullname. Change
537 tui_locator_element field to full_name.
538 * tui/tui-stack.c: Include source.h.
539 (tui_set_locator_filename): Rename the declaration to ...
540 (tui_set_locator_fullname): ... here. Rename its parameter to
541 fullname, updates its comment.
542 (tui_set_locator_info): Rename its parameter to fullname.
543 (tui_set_locator_filename): Rename the definition to ...
544 (tui_set_locator_fullname): ... here. Rename its parameter to
545 fullname, updates its comment. Change tui_locator_element field to
546 full_name.
547 (tui_set_locator_info): Rename its parameter to fullname.
548 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
549 (tui_update_locator_filename): Rename to ...
550 (tui_update_locator_fullname): ... here. Rename callee to
551 tui_set_locator_fullname.
552 (tui_show_frame_info): Replace symtab->filename refererence by
553 symtab_to_fullname call.
554 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
555 (tui_update_locator_fullname): ... here.
556 * tui/tui-winsource.c (tui_display_main): Rename the callee to
557 tui_update_locator_fullname. Replace symtab->filename refererence by
558 symtab_to_fullname call.
559 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
560 Rename the callee to tui_update_locator_fullname.
561 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
562
563 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
564
565 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
566 by symtab_to_filename_for_display calls.
567 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
568 (clear_command): New variable sal_fullname, initialize it. Replace
569 compare_filenames_for_search by filename_cmp with sal_fullname.
570 (say_where, update_static_tracepoint): Replace symtab->filename
571 refererences by symtab_to_filename_for_display calls.
572 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
573 Likewise.
574 * dwarf2read.c: Include source.h.
575 (fixup_go_packaging): Replace symtab->filename refererences by
576 symtab_to_filename_for_display calls.
577 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
578 Replace symtab->filename refererences by symtab_to_filename_for_display
579 calls.
580 (create_sals_line_offset, convert_linespec_to_sals): New variable
581 fullname, initialize it, replace symtab->filename reference by the
582 variable.
583 * linux-fork.c: Include source.h.
584 (info_checkpoints_command): Replace symtab->filename refererences by
585 symtab_to_filename_for_display calls.
586 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
587 by symtab_to_filename_for_display calls.
588 * mdebugread.c: Include source.h.
589 (psymtab_to_symtab_1): Replace symtab->filename refererences by
590 symtab_to_filename_for_display calls.
591 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
592 (mi_cmd_file_list_exec_source_files): Likewise.
593 * printcmd.c: Include source.h.
594 (build_address_symbolic): Replace symtab->filename refererences by
595 symtab_to_filename_for_display calls.
596 * psymtab.c (partial_map_symtabs_matching_filename)
597 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
598 with psymtab_to_fullname.
599 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
600 by symtab_to_filename_for_display calls.
601 (stpy_get_filename): New variable filename, initialize it, use instead
602 of symtab->filename refererences.
603 (salpy_str): Make variable filename const char *. Replace
604 symtab->filename refererences by symtab_to_filename_for_display calls.
605 * skip.c: Include source.h and filenames.h.
606 (skip_file_command): Remove const from the symtab variable. Replace
607 symtab->filename refererences by symtab_to_fullname call.
608 (function_name_is_marked_for_skip): New variables searched_for_fullname
609 and fullname. Use them to search also with symtab's fullname.
610 * source.c (find_source_lines): Replace symtab->filename refererences
611 by symtab_to_filename_for_display calls.
612 (print_source_lines_base): New variable filename, use it instead of
613 symtab->filename. Replace symtab->filename refererences by
614 symtab_to_filename_for_display calls.
615 (line_info, forward_search_command): Replace symtab->filename
616 refererences by symtab_to_filename_for_display calls.
617 (reverse_search_command): Replace symtab->filename refererences by
618 symtab_to_filename_for_display calls. New variable filename for it.
619 * stack.c (frame_info): Likewise.
620 * symmisc.c: Include source.h.
621 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
622 (maintenance_info_symtabs): Replace symtab->filename refererences by
623 symtab_to_filename_for_display calls.
624 * symtab.c (iterate_over_some_symtabs): Call
625 compare_filenames_for_search also with symtab_to_fullname.
626 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
627 symtab->filename refererences by symtab_to_filename_for_display calls.
628 (find_line_symtab): Replace symtab->filename refererences by
629 symtab_to_filename_for_display calls.
630 (file_matches): Replace filename_cmp by compare_filenames_for_search.
631 (print_symbol_info): Make the last parameter const char *. New
632 variable s_filename. Use it in the function.
633 (symtab_symbol_info): Make the last_filename variable const char *.
634 Replace symtab->filename refererences by symtab_to_filename_for_display
635 calls.
636 (rbreak_command): New variable fullname. Use it. Replace
637 symtab->filename refererence by symtab_to_filename_for_display call.
638 * tracepoint.c (set_traceframe_context, trace_find_line_command)
639 (print_one_static_tracepoint_marker): Replace symtab->filename
640 refererences by symtab_to_filename_for_display calls.
641 * tui/tui-source.c (tui_set_source_content): New variables filename and
642 s_filename. Replace symtab->filename refererences by this variable.
643 Replace other symtab->filename refererences by
644 symtab_to_filename_for_display calls.
645
646 2013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
647 Jan Kratochvil <jan.kratochvil@redhat.com>
648
649 Add a new variable that controls a way in which filenames are
650 displayed.
651 * NEWS (set filename-display): New entry.
652 * source.c (filename_display_basename, filename_display_relative)
653 (filename_display_absolute, filename_display_kind_names)
654 (filename_display_string, show_filename_display_string)
655 (symtab_to_filename_for_display): New.
656 (_initialize_source): Added initialization of 'filename-display'
657 variable.
658 * source.h (symtab_to_filename_for_display): Added declaration.
659 * stack.c (print_frame): Added new variable and calling of a new
660 function and condition with this variable. Changed third argument of
661 calling of a function.
662
663 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
664
665 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
666 Rename field reference filename to fullname.
667 * tui/tui-data.h (struct tui_source_info): Rename field filename to
668 fullname. New comment for it.
669 * tui/tui-source.c (tui_set_source_content): Rename field reference
670 filename to fullname. Initialize field by symtab_to_fullname now.
671 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
672 reference filename to fullname. Use symtab_to_fullname during
673 comparison.
674
675 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
676
677 Code cleanup.
678 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
679 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
680 filename to fullname. Rename variable this_name to this_fullname.
681 Lowercase FILENAME_CMP call.
682 (dw2_find_symbol_file): New comment for the returned string.
683 (dwarf2_gdb_index_functions): Rename the function to
684 dw2_expand_symtabs_with_fullname.
685 * psymtab.c (read_psymtabs_with_filename): Rename to ...
686 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
687 fullname.
688 (psym_functions): Rename the function to read_psymtabs_with_fullname.
689 * symfile.h (struct quick_symbol_functions): Rename field
690 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
691 parameter filename to fullname. Document returned string meaning for
692 find_symbol_file.
693 * symtab.c (find_line_symtab): Rename the called function to
694 expand_symtabs_with_fullname.
695
696 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
697
698 Code cleanup.
699 * breakpoint.c (clear_command): Remove variable is_abs, unify the
700 call of filename_cmp with compare_filenames_for_search.
701 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
702 is_abs, unify the call of FILENAME_CMP with
703 compare_filenames_for_search. New gdb_asserts for real_path and name.
704 Unify the call of compare_filenames_for_search with FILENAME_CMP.
705 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
706 * symfile.h (struct quick_symbol_functions): Extend the comment for
707 map_symtabs_matching_filename.
708 * symtab.c (compare_filenames_for_search): Remove the function comment
709 relative path requirement. Handle absolute filenames, with a comment.
710 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
711 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
712 real_path and name. Unify the call of compare_filenames_for_search
713 with FILENAME_CMP.
714 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
715
716 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
717
718 Code cleanup.
719 * breakpoint.c (print_breakpoint_location): Replace bp_location field
720 source_file references by symtab field references. Remove variables
721 sal and fullname.
722 (momentary_breakpoint_from_master, add_location_to_breakpoint):
723 (clear_command, say_where): Replace bp_location field source_file
724 references by symtab field references.
725 (bp_location_dtor): Remove the source_file reference.
726 (update_static_tracepoint): Replace bp_location field source_file
727 references by symtab field references.
728 (breakpoint_free_objfile): New function.
729 * breakpoint.h (struct bp_location): Extend the comment for line_number.
730 Replace the field source_file by field symtab, extend its comment.
731 (breakpoint_free_objfile): New declaration.
732 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
733 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
734 field source_file references by symtab field references.
735
736 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
737
738 Replace xfullpath calls by gdb_realpath calls.
739 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
740 function comment.
741 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
742 Remove it from the iterate_over_some_symtabs call.
743 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
744 Remove it from the dw2_map_expand_apply calls, remove a block handling
745 it.
746 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
747 Remove it from the iterate_over_some_symtabs call.
748 (partial_map_symtabs_matching_filename): Remove parameter full_path.
749 Remove it from the partial_map_expand_apply calls, remove a block
750 handling it. Drop gdb_realpath call and cleanups from the real_path
751 handling.
752 * source.c (openp): Drop the comment part about xfullpath. Replace
753 xfullpath calls by gdb_realpath calls.
754 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
755 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
756 from method map_symtabs_matching_filename and its comment.
757 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
758 gdb_realpath call.
759 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
760 remove it also from the function comment, remove a block handling it.
761 Drop gdb_realpath call and cleanups from the real_path handling.
762 (iterate_over_symtabs): Drop variable full_path and its use.
763 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
764 * utils.c (xfullpath): Remove.
765 * utils.h (xfullpath): Remove.
766
767 2013-02-01 Andreas Tobler <andreast@fgznet.ch>
768
769 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
770 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
771 (ALLDEPFILES): Add ppc64-tdep.c.
772 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
773 ppc64-tdep.o to gdb_target_obs.
774 * ppc64-tdep.h: New file.
775 * ppc64-tdep.c: New file.
776 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
777 ppc-linux-tdep.c to here.
778 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
779 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
780 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
781 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
782 from ppc-linux-tdep.c to here.
783 (ppc64_convert_from_func_ptr_addr): Rename from
784 ppc64_linux_convert_from_func_ptr_addr to
785 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
786 here.
787 * rs6000-tdep.c:
788 (read_insn): Move from ppc-linux-tdep.c to here.
789 (insns_match_pattern, insn_d_field, insn_ds_field): Move
790 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
791 * ppc-linux-tdep.c: Include ppc64-tdep.h.
792 Removed above functions.
793 (ppc_linux_init_abi): Adjust.
794
795 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
796
797 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
798
799 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
800
801 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
802
803 2013-02-01 Pedro Alves <palves@redhat.com>
804
805 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
806 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
807
808 2013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
809
810 * elfread.c (elf_symfile_read): Limit separate debug info additions to
811 files with no separate debug info.
812 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
813 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
814 only for files with no separate debug info.
815
816 2013-01-31 Tom Tromey <tromey@redhat.com>
817
818 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
819 change type.
820 (struct jit_program_space_data): Rename from jit_inferior_data.
821 Update comments.
822 (get_jit_program_space_data): Rename from get_jit_inferior_data.
823 Change return type. Attach data to program space.
824 (jit_program_space_data_cleanup): Rename from
825 jit_inferior_data_cleanup; change argument type.
826 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
827 change type.
828 (jit_register_code): Update.
829 (jit_update_inferior_cache): Remove.
830 (jit_breakpoint_deleted): Get jit data from the location's program
831 space.
832 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
833 'ps_data', change type.
834 (jit_inferior_init, jit_breakpoint_re_set_internal)
835 (jit_event_handler): Update.
836 (free_objfile_data): Get data from objfile's program space.
837 (_initialize_jit): Update.
838
839 2013-01-31 Tom Tromey <tromey@redhat.com>
840
841 PR gdb/13987:
842 * jit.c (struct jit_inferior_data) <cached_code_address,
843 jit_breakpoint>: New fields.
844 (jit_breakpoint_re_set_internal): Fix logging. Only create
845 breakpoint if cached address has changed.
846 (jit_update_inferior_cache, jit_breakpoint_deleted): New
847 functions.
848 (_initialize_jit): Register breakpoint deleted observer.
849
850 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
851
852 * infrun.c (handle_syscall_event): Remove unused gdbarch.
853 (save_infcall_suspend_state): Ifdef out unused inf.
854 (restore_infcall_suspend_state): Ifdef out unused inf.
855 * jit.c (jit_register_code): Remove unused i, b, inf_data.
856 (jit_frame_sniffer): Remove unused inf_data.
857
858 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
859
860 * c-exp.y (classify_inner_name): Remove unused type.
861 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
862 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
863 need_escape.
864 (c_get_string): Remove unused kind.
865 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
866
867 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
868
869 * charset.c (intermediate_encoding): Remove unused i.
870 * completer.c (signal_completer): Remove unused i.
871 * continuations.c (discard_my_continuations_1): Remove unused
872 continuation_ptr.
873 * corelow.c (core_close): Remove unuseD name.
874 (get_core_siginfo): Remove unused pid.
875 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
876 i, cps.
877 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
878 (loclist_describe_location): Remove unused first.
879 * event-top.c (command_line_handler): Remove unused got_eof.
880 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
881 (resize_section_table): Remove unused old_value.
882 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
883 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
884 * i386-tdep.c (i386_process_record): Remove unused rex.
885 * infcmd.c (get_return_value): Remove unused uiout.
886 * jv-lang.c (type_from_class): Remove unused is_array.
887 * jv-valprint.c (java_val_print): Remove unused i.
888 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
889 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
890 * m2-typeprint.c (m2_print_type): Remove unused code.
891 * macroexp.c (get_character_constant): Remove unused body_start.
892 (macro_stringify): Remove unused result.
893 * objc-lang.c (find_methods): Remove unused gdbarch.
894 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
895 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
896 * stack.c (print_frame_args): Remove unused summary.
897 * thread.c (thread_apply_command): Remove unused p.
898 * valarith.c (value_x_unop): Remove unused mangle_ptr.
899 * valops.c (search_struct_method): Remove unused skip.
900 * valprint.c (generic_val_print): Remove unused byte_order.
901 * varobj.c (varobj_update): Remove unused changed.
902 * cli/cli-cmds.c (complete_command): Remove unused next_item.
903 (alias_command): Remove unused c.
904 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
905 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
906 format.
907 (mi_cmd_data_write_memory): Remove unused word_format.
908 (mi_cmd_data_write_memory_bytes): Remove unused r.
909 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
910 p_start, p_end.
911 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
912 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
913 line_width.
914
915 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
916
917 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
918 * symtab.c (iterate_over_symtabs): Remove unused s.
919 (find_pc_sect_symtab): Remove unused pspAce.
920 (find_pc_sect_line): Remove unused alt_symtab.
921 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
922 (completion_list_add_name): Remove unused newsize.
923
924 2013-01-31 Tom Tromey <tromey@redhat.com>
925
926 PR c++/14998:
927 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
928 TYPE_CODE_FUNC.
929
930 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
931
932 * target.c (target_read_string): Remove unused origlen.
933
934 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
935
936 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
937 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
938 * ax-general.c (ax_print): Remove unused is_float.
939 * blockframe.c (block_innermost_frame): Remove unused start, end.
940 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
941
942 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
943
944 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
945 (svr4_read_so_list): Remove unused lmo.
946 * solib-target.c (solib_target_relocate_section_addresses): Remove
947 unused flags.
948
949 2013-01-30 Tom Tromey <tromey@redhat.com>
950
951 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
952
953 2013-01-30 Tom Tromey <tromey@redhat.com>
954
955 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
956 * utils.c (gnu_debuglink_crc32): Remove.
957 * utils.h (gnu_debuglink_crc32): Don't declare.
958
959 2013-01-30 Tom Tromey <tromey@redhat.com>
960
961 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
962 (read_structure_type, read_enumeration_type): Remove cast.
963
964 2013-01-30 Tom Tromey <tromey@redhat.com>
965
966 * dwarf2read.c (read_namespace_type): Remove cast.
967 (read_typedef): Likewise.
968
969 2013-01-29 Tom Tromey <tromey@redhat.com>
970
971 * dwarf2read.c (free_dwo_file): Remove assert.
972
973 2013-01-29 Tom Tromey <tromey@redhat.com>
974
975 * value.c (deprecated_set_value_modifiable): Remove.
976 * value.h (deprecated_set_value_modifiable): Remove.
977
978 2013-01-28 Doug Evans <dje@google.com>
979
980 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
981 to addresses from dwo files.
982
983 2013-01-25 Siva Chandra Reddy <sivachandra@google.com>
984
985 * valops.c (find_overload_match): Remove unused argument 'lax'.
986 * value.h: Remove unused argument 'lax' from the declaration of
987 find_overload_match.
988 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
989 to find_overload_match.
990 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
991 argument to find_overload_match.
992
993 2013-01-25 Tom Tromey <tromey@redhat.com>
994
995 * dwarf2read.c (processing_has_namespace_info): Remove.
996 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
997 (process_die, read_func_scope, dwarf2_start_symtab)
998 (new_symbol_full): Update.
999
1000 2013-01-25 Tom Tromey <tromey@redhat.com>
1001
1002 * cp-namespace.c (cp_set_block_scope): Remove.
1003 * cp-support.h (cp_set_block_scope): Remove.
1004 * dbxread.c: Include block.h.
1005 (cp_set_block_scope): New function.
1006 (process_one_symbol): Update.
1007 * dwarf2read.c (read_func_scope): Use block_set_scope.
1008
1009 2013-01-25 Pedro Alves <palves@redhat.com>
1010
1011 * remote.c (add_current_inferior_and_thread): Tweak comment.
1012
1013 2013-01-25 Tom Tromey <tromey@redhat.com>
1014
1015 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
1016 (cp_add_using_directive): Add 'copy_names' argument.
1017 * cp-support.h (cp_add_using_directive): Update.
1018 (struct using_direct) <import_src, import_dest, alias,
1019 declaration>: Now const.
1020 * dwarf2read.c (read_import_statement): Use obconcat.
1021 Don't copy names passed to cp_add_using_directive.
1022
1023 2013-01-25 Tom Tromey <tromey@redhat.com>
1024
1025 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
1026
1027 2013-01-25 Pedro Alves <palves@redhat.com>
1028
1029 * remote.c (stop_reply_extract_thread): New.
1030 (add_current_inferior_and_thread): New parameter 'wait_status'.
1031 Handle it.
1032 (remote_start_remote): Pass wait status to
1033 add_current_inferior_and_thread.
1034 (extended_remote_run): Update comment.
1035 (extended_remote_create_inferior_1): Pass wait status to
1036 add_current_inferior_and_thread.
1037
1038 2013-01-25 Andrew Burgess <aburgess@broadcom.com>
1039 Ulrich Weigand <uweigand@de.ibm.com>
1040
1041 * valarith.c (value_vector_widen): New function for replicating a
1042 scalar into a vector.
1043 (value_binop): Use value_vector_widen to widen scalar to vector
1044 rather than casting, this better matches gcc C behaviour.
1045 * valops.c (value_casst): Update logic for casting between vector
1046 types, and for casting from scalar to vector, try to match gcc C
1047 behaviour.
1048 * value.h (value_vector_widen): Declare.
1049 * opencl-lang.c (opencl_value_cast): New opencl specific casting
1050 function, handle special case for casting scalar to vector.
1051 (opencl_relop): Use opencl_value_cast.
1052 (evaluate_subexp_opencl): Use opencl_value_cast instead of
1053 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
1054 in order to use opencl_value_cast.
1055
1056 2013-01-25 Yao Qi <yao@codesourcery.com>
1057
1058 * event-loop.c: Include "queue.h".
1059 (gdb_event_p): New typedef.
1060 (DECLARE_QUEUE_P): Use.
1061 (DEFINE_QUEUE_P): Use.
1062 (async_queue_event): Remove.
1063 (gdb_event_xfree): New.
1064 (initialize_event_loop): New.
1065 (process_event): Use QUEUE macros.
1066 (event_queue): Remove.
1067 (gdb_wait_for_event): Caller update.
1068 (check_async_event_handlers): Likewise.
1069 (poll_timers): Likewise.
1070 * event-loop.h (initialize_event_loop): Declare.
1071 * event-loop.c (gdb_event_xfree): New.
1072 * top.c (gdb_init): Call initialize_event_loop.
1073
1074 2013-01-25 Yao Qi <yao@codesourcery.com>
1075
1076 * event-loop.c (async_queue_event): Remove one parameter
1077 'position'. Remove code handling 'position' == TAIL.
1078 (gdb_wait_for_event): Caller update.
1079 (check_async_event_handlers): Caller update.
1080 (poll_timers): Caller update.
1081 * event-loop.h (enum queue_position): Remove.
1082
1083 2013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
1084
1085 * MAINTAINERS: Update my email.
1086
1087 2013-01-25 Yao Qi <yao@codesourcery.com>
1088
1089 * main.c (print_gdb_help): Remove "--epoch" from the help
1090 message.
1091
1092 2013-01-24 Ulrich Weigand  <uweigand@de.ibm.com>
1093
1094 * symtab.c (skip_prologue_using_sal): Consider a file
1095 change the same as an increased line number
1096
1097 2013-01-24 Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
1098
1099 * MAINTAINERS (Write After Approval): Add myself to the list.
1100
1101 2013-01-24 Tom Tromey <tromey@redhat.com>
1102
1103 * ada-lang.h (ada_decode_symbol): Make return type const.
1104 * ada-lang.c (ada_decode_symbol): Likewise.
1105
1106 2013-01-23 Doug Evans <dje@google.com>
1107
1108 * linespec.c (find_linespec_symbols): Make static.
1109
1110 2013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
1111
1112 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
1113 type on float conversion for complex type.
1114
1115 2013-01-23 Siva Chandra Reddy <sivachandra@google.com>
1116
1117 Add a new class gdb.Architecture which exposes GDB's
1118 internal representation of architecture via GDB Python API.
1119 * Makefile.in: Add entries corresponding to the new file
1120 python/py-arch.c.
1121 * NEWS (Python Scripting): Add entries for the new class
1122 gdb.Architecture and the new method gdb.Frame.architecture.
1123 * python/py-arch.c: Implement gdb.Architecture class.
1124 * python/py-frame.c (frapy_arch): Implement the method
1125 gdb.Frame.architecture().
1126 (frame_object_methods): Add 'architecture' to the method table.
1127 * python/python-internal.h: Add declarations of new utility
1128 functions.
1129 * python/python.c (_initialize_python): Initialize
1130 gdb.Architecture class.
1131
1132 2013-01-23 Doug Evans <dje@google.com>
1133
1134 Work around binutils/15021.
1135 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
1136 type_unit_group out of union s. All uses updated.
1137 (read_index_from_section): Watch for index version 8.
1138 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
1139 an imported symtab.
1140 (write_psymtabs_to_index): Increment version number to 8.
1141
1142 2013-01-22 Pedro Alves <palves@redhat.com>
1143
1144 * annotate.c (breakpoint_changed): Skip if breakpoint is not
1145 user-visible.
1146
1147 2013-01-22 Pedro Alves <palves@redhat.com>
1148
1149 * annotate.c (annotate_breakpoints_changed): Rename to ...
1150 (annotate_breakpoints_invalid): ... this. Make static.
1151 (breakpoint_changed): Adjust.
1152 (_initialize_annotate): Always install the observers. Install a
1153 "breakpoint_created" observer.
1154 * annotate.h (annotate_breakpoints_changed): Delete declaration.
1155 * breakpoint.c (set_breakpoint_condition)
1156 (breakpoint_set_commands, do_map_commands_command)
1157 (init_raw_breakpoint, clear_command, set_ignore_count)
1158 (enable_breakpoint_disp): No longer call
1159 annotate_breakpoints_changed.
1160
1161 2013-01-22 Pedro Alves <palves@redhat.com>
1162
1163 * annotate.c: Include "inferior.h".
1164 (frames_invalid_emitted)
1165 (breakpoints_invalid_emitted): New globals.
1166 (async_background_execution_p): New function.
1167 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
1168 emitting the annotation if it has already been emitted.
1169 (annotate_display_prompt): New function.
1170 * annotate.h (annotate_display_prompt): New declaration.
1171 * event-top.c: Include annotate.h.
1172 (display_gdb_prompt): Call annotate_display_prompt.
1173
1174 2013-01-22 Pedro Alves <palves@redhat.com>
1175
1176 * annotate.c (ignore_count_changed): Delete.
1177 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
1178 (annotate_ignore_count_change): Delete.
1179 (annotate_stopped): Don't emit a delayed breakpoints-changed
1180 annotation.
1181 * annotate.h (annotate_ignore_count_change): Delete.
1182 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
1183 annotate_ignore_count_change.
1184
1185 2013-01-22 Tom Tromey <tromey@redhat.com>
1186
1187 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
1188 require_rvalue for a register location.
1189
1190 2013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
1191
1192 * breakpoint.c (print_one_breakpoint_location): Add MI
1193 field 'thread-groups' when printing a breakpoint.
1194 (output_thread_groups): New function.
1195
1196 2013-01-21 Siva Chandra Reddy <sivachandra@google.com>
1197
1198 * python/lib/gdb/commands/explore.py
1199 (CompoundExplorer.explore_expr): Correct the name of a method
1200 being invoked.
1201 (ExploreTypeCommand.invoke): Add a missing 'return'.
1202
1203 2013-01-21 Tom Tromey <tromey@redhat.com>
1204
1205 * gdb_obstack.h (obconcat): Move declaration here, from...
1206 * symfile.h (obconcat): ... here.
1207 * gdb_obstack.c: New file.
1208 (obconcat): Move from...
1209 * symfile.c (obconcat): ... here.
1210 * Makefile.in (SFILES): Add gdb_obstack.c.
1211 (COMMON_OBS): Add gdb_obstack.o.
1212
1213 2013-01-21 Tom Tromey <tromey@redhat.com>
1214
1215 * symfile.h (obsavestring): Don't declare.
1216 * symfile.c (obsavestring): Remove.
1217 * ada-exp.y: Use obstack_copy0, not obsavestring.
1218 * ada-lang.c: Use obstack_copy0, not obsavestring.
1219 * coffread.c: Use obstack_copy0, not obsavestring.
1220 * cp-namespace.c: Use obstack_copy0, not obsavestring.
1221 * dbxread.c: Use obstack_copy0, not obsavestring.
1222 * dwarf2read.c: Use obstack_copy0, not obsavestring.
1223 * jit.c: Use obstack_copy0, not obsavestring.
1224 * mdebugread.c: Use obstack_copy0, not obsavestring.
1225 * psymtab.c: Use obstack_copy0, not obsavestring.
1226 * stabsread.c: Use obstack_copy0, not obsavestring.
1227 * xcoffread.c: Use obstack_copy0, not obsavestring.
1228
1229 2013-01-21 Tom Tromey <tromey@redhat.com>
1230
1231 * dwarf2read.c (fixup_go_packaging): Save package name
1232 on objfile obstack.
1233 * gdbtypes.c (init_type): Don't copy name.
1234
1235 2013-01-21 Tom Tromey <tromey@redhat.com>
1236
1237 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
1238 const.
1239 (struct attribute) <u.str>: Now const.
1240 (struct fnfieldlist) <name>: Now const.
1241 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
1242 (partial_die_parent_scope): Make return type const.
1243 (partial_die_full_name, add_partial_symbol): Update.
1244 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
1245 'name' const.
1246 (find_file_and_directory): Make 'name' and 'comp_dir' const.
1247 (read_file_scope, read_func_scope, dwarf2_add_field)
1248 (dwarf2_add_member_fn, read_structure_type)
1249 (process_enumeration_scope, read_array_type, read_module_type)
1250 (read_base_type, read_subrange_type): Update.
1251 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
1252 (new_symbol_full, guess_full_die_structure_name): Update.
1253 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
1254 (dwarf2_name): Return const type.
1255 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
1256 const.
1257
1258 2013-01-21 Tom Tromey <tromey@redhat.com>
1259
1260 * gdbtypes.c (init_type): Make 'name' const.
1261 * gdbtypes.h (init_type): Update.
1262
1263 2013-01-21 Tom Tromey <tromey@redhat.com>
1264
1265 * buildsym.c (patch_subfile_names): Use set_last_source_file.
1266 (start_symtab): Make 'name' and 'dirname' const. Use
1267 set_last_source_file.
1268 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
1269 (last_source_file): Define. Now static.
1270 (set_last_source_file, get_last_source_file): New functions.
1271 * buildsym.h (last_source_file): Don't declare.
1272 (start_symtab): Update.
1273 (set_last_source_file, get_last_source_file): Declare.
1274 * coffread.c (complete_symtab): Use set_last_source_file.
1275 (coff_end_symtab): Likewise.
1276 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
1277 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
1278 set_last_source_file.
1279 (process_one_symbol): Use get_last_source_file.
1280 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
1281 (psymtab_to_symtab_1): Use get_last_source_file.
1282 * xcoffread.c (process_linenos): Use get_last_source_file.
1283 (complete_symtab): Use set_last_source_file.
1284 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
1285 (scan_xcoff_symtab): Use set_last_source_file.
1286
1287 2013-01-21 Tom Tromey <tromey@redhat.com>
1288
1289 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
1290 (symbol_set_names): Remove casts. Handle field const-ness.
1291
1292 2013-01-21 Tom Tromey <tromey@redhat.com>
1293
1294 * dwarf2read.c (new_symbol_full): Remove cast.
1295 * symtab.c (symbol_set_demangled_name): Make 'name' const.
1296 * symtab.h (symbol_set_demangled_name): Update.
1297
1298 2013-01-21 Tom Tromey <tromey@redhat.com>
1299
1300 * main.c (captured_main): Call bfd_init.
1301
1302 2013-01-21 Tom Tromey <tromey@redhat.com>
1303
1304 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
1305 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
1306 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
1307 * NEWS: Update.
1308
1309 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1310
1311 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
1312
1313 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1314
1315 Fix gdb.fortran/common-block.exp crash in PIE mode.
1316 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
1317 LOC_COMMON_BLOCK.
1318 * f-valprint.c (info_common_command_for_block): Expect
1319 LOC_COMMON_BLOCK in gdb_assert.
1320 * symtab.h (struct general_symbol_info): Update comment for the
1321 common_block member.
1322 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
1323 (enum address_class): New member LOC_COMMON_BLOCK.
1324
1325 2013-01-18 David Blaikie <dblaikie@gmail.com>
1326
1327 * MAINTAINERS (Write After Approval): Add "David Blaikie".
1328
1329 2013-01-18 Tom Tromey <tromey@redhat.com>
1330
1331 PR c++/14999:
1332 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
1333 Call require_rvalue.
1334
1335 2013-01-18 Yao Qi <yao@codesourcery.com>
1336
1337 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
1338 (dbx_read_symtab): New declaration.
1339 (dbx_psymtab_to_symtab): Delete.
1340 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
1341 Rename parameter PST to SELF. Exchanged two parameters.
1342 (start_psymtab): Caller update.
1343 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
1344 (dwarf2_read_symtab): New declaration.
1345 (dwarf2_psymtab_to_symtab): Delete.
1346 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
1347 Rename parameter PST to SELF. Exchanged two parameters.
1348 (create_partial_symtab): Caller update.
1349 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
1350 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
1351 Rename parameter PST to SELF. Exchanged two parameters.
1352 (parse_partial_symbols, new_psymtab): Caller update.
1353 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
1354 two parameters.
1355 * psymtab.c (psymtab_to_symtab): Caller update.
1356 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
1357 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
1358 Rename parameter PST to SELF. Exchanged two parameters.
1359 (xcoff_start_psymtab): Caller update.
1360
1361 2013-01-18 Yao Qi <yao@codesourcery.com>
1362
1363 * infrun.c (proceed): Rename local variable 'oneproc' to
1364 'force_step'.
1365
1366 2013-01-17 Doug Evans <dje@google.com>
1367
1368 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
1369 (dw2_build_type_unit_groups): Delete. All uses updated.
1370
1371 * symtab.h (struct symbol_search): Add comment.
1372
1373 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1374
1375 * symtab.c (compare_filenames_for_search): New comment for
1376 HAS_DRIVE_SPEC.
1377
1378 2013-01-17 Tom Tromey <tromey@redhat.com>
1379
1380 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
1381
1382 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1383
1384 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
1385 initialize it by existing make_cleanup. Call new do_cleanups.
1386
1387 2013-01-17 Tom Tromey <tromey@redhat.com>
1388
1389 * cp-abi.c (cp_abi_completer): New function.
1390 (_initialize_cp_abi): Set completer for "set cp-abi".
1391
1392 2013-01-17 Tom Tromey <tromey@redhat.com>
1393
1394 * mem-break.c: Remove obsolete comment.
1395 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
1396
1397 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
1398
1399 * jit.c (jit_reader_load_command): Interpret the jit reader name
1400 as an absolute path if it begins with a forward slash.
1401
1402 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
1403
1404 PR gdb/14550
1405
1406 * jit.c (finalize_symtab): Ensure that only the global block has a
1407 NULL superblock.
1408
1409 2013-01-17 Pedro Alves <palves@redhat.com>
1410
1411 * acinclude.m4: Include ../config/plugins.m4,
1412 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
1413 * Makefile.in (aclocal_m4_deps): Update.
1414 * aclocal.m4: Renegerate.
1415
1416 2013-01-16 Doug Evans <dje@google.com>
1417
1418 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
1419
1420 2013-01-16 Pedro Alves <palves@redhat.com>
1421 Tom Tromey <tromey@redhat.com>
1422
1423 PR cli/7221:
1424 * NEWS: Add "catch signal".
1425 * breakpoint.c (base_breakpoint_ops): No longer static.
1426 (bpstat_explains_signal): New function.
1427 (init_catchpoint): No longer static.
1428 (base_breakpoint_explains_signal): New function.
1429 (base_breakpoint_ops): Initialize new field.
1430 * breakpoint.h (enum bpstat_signal_value): New.
1431 (struct breakpoint_ops) <explains_signal>: New field.
1432 (bpstat_explains_signal): Remove macro, declare as function.
1433 (base_breakpoint_ops, init_catchpoint): Declare.
1434 * break-catch-sig.c: New file.
1435 * inferior.h (signal_catch_update): Declare.
1436 * infrun.c (signal_catch): New global.
1437 (handle_syscall_event): Update for change to
1438 bpstat_explains_signal.
1439 (handle_inferior_event): Likewise. Always handle random signals
1440 via bpstats.
1441 (signal_cache_update): Check signal_catch.
1442 (signal_catch_update): New function.
1443 (_initialize_infrun): Initialize signal_catch.
1444 * Makefile.in (SFILES): Add break-catch-sig.c.
1445 (COMMON_OBS): Add break-catch-sig.o.
1446
1447 2013-01-16 Tom Tromey <tromey@redhat.com>
1448
1449 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
1450 (print_one_catch_solib, print_one_catch_syscall)
1451 (print_one_catch_exec, print_one_exception_catchpoint): Emit
1452 "catch-type".
1453
1454 2013-01-16 Yao Qi <yao@codesourcery.com>
1455
1456 * printcmd.c (current_display_number): Make it static.
1457
1458 2013-01-16 Yao Qi <yao@codesourcery.com>
1459
1460 * infcmd.c (step_once): Don't check '!single_inst' as it was
1461 checked before.
1462
1463 2013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1464
1465 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
1466
1467 2013-01-14 Tom Tromey <tromey@redhat.com>
1468
1469 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
1470 set command.
1471 * command.h (add_setshow_string_noescape_cmd): Update.
1472 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
1473 (complete_set_gnutarget): New function.
1474 (_initialize_core): Set the "set gnutarget" completer.
1475
1476 2013-01-14 Tom Tromey <tromey@redhat.com>
1477
1478 PR symtab/14442:
1479 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
1480 (c_type_print_modifier): Likewise.
1481 * dwarf2read.c (read_tag_restrict_type): New function.
1482 (read_type_die_1): Handle DW_TAG_restrict_type.
1483 * gdbtypes.c (make_restrict_type): New function.
1484 (recursive_dump_type): Handle TYPE_RESTRICT.
1485 * gdbtypes.h (enum type_flag_values): Renumber.
1486 (enum type_instance_flag_value): Add
1487 TYPE_INSTANCE_FLAG_RESTRICT.
1488 (TYPE_RESTRICT): New macro.
1489 (make_restrict_type): Declare.
1490
1491 2013-01-14 Tom Tromey <tromey@redhat.com>
1492
1493 PR symtab/14931:
1494 * psymtab.c (struct psymtab_state): New.
1495 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
1496 functions.
1497 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
1498 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
1499
1500 2013-01-14 Richard Sharman <richard_sharman@mitel.com>
1501 Pedro Alves <palves@redhat.com>
1502
1503 PR remote/14786
1504
1505 * remote.c (remote_threads_info): Make a copy of the reply from
1506 qfThreadInfo and use that instead of rs->buf.
1507
1508 2013-01-14 Yao Qi <yao@codesourcery.com>
1509
1510 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
1511 (dbx_psymtab_to_symtab): Likewise.
1512 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
1513 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
1514 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
1515
1516 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1517
1518 * parse.c (parse_exp_in_context): New variable inner_chain. Call
1519 make_cleanup_restore_current_language. Call set_language. Move
1520 OLD_CHAIN and INNER_CHAIN cleanups.
1521 * utils.c (do_restore_current_language)
1522 (make_cleanup_restore_current_language): New functions.
1523 * utils.h (make_cleanup_restore_current_language): New declaration.
1524
1525 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1526
1527 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
1528 non-existing files.
1529
1530 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
1531 non-existing files if FILENAME is already absolute.
1532
1533 2013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1534
1535 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
1536 fputs_filtered. Append trailing newline.
1537
1538 2013-01-11 Yao Qi <yao@codesourcery.com>
1539 Stan Shebs <stan@codesourcery.com>
1540
1541 * psymtab.c (init_psymbol_list): Clarify the comment.
1542
1543 2013-01-11 Yao Qi <yao@codesourcery.com>
1544
1545 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
1546 (update_dprintf_command_list): Assert that 'printf_line' is
1547 non-null. Remove condition check.
1548
1549 2013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
1550
1551 Code cleanup.
1552 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
1553 type const char *.
1554 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
1555 const char *.
1556 * tui/tui-source.h (tui_source_is_displayed): Likewise.
1557
1558 2013-01-09 Anthony Green <green@moxielogic.com>
1559
1560 * cp-abi.c (cplus_print_vtable): Don't return value from void
1561 function.
1562 * ada-lang.c (re_set_catch_assert): Ditto.
1563
1564 2013-01-09 Doug Evans <dje@google.com>
1565
1566 * symfile.h (quick_symbol_functions): Delete member
1567 pre_expand_symtabs_matching. All uses removed.
1568 * dwarf2read.c (dw2_lookup_symbol): Implement.
1569 (dw2_do_expand_symtabs_matching): Delete.
1570 (dw2_pre_expand_symtabs_matching): Delete.
1571 (struct dw2_symtab_iterator): New type.
1572 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
1573 (dw2_expand_symtabs_for_function): Rewrite.
1574 (dwarf2_gdb_index_functions): Update.
1575 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
1576 (psym_functions): Update.
1577
1578 2013-01-09 Tom Tromey <tromey@redhat.com>
1579
1580 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
1581 * configure: Rebuild.
1582 * configure.ac: Add somread.o to the build if BFD has SOM
1583 support.
1584 * somread.c: Include som/aout.h, not syms.h.
1585 (som_symtab_read): Use som_external_symbol_dictionary_record.
1586 Unpack records manually.
1587 (_initialize_somread): Declare.
1588
1589 2012-01-08 Mike Frysinger <vapier@gentoo.org>
1590
1591 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
1592 Cast return_address to 64bits.
1593
1594 2013-01-08 Hui Zhu <hui_zhu@mentor.com>
1595
1596 * printcmd.c: Remove define of function output_command.
1597 * tracepoint.c: Remove extern of function output_command.
1598 * valprint.h: (output_command): New extern.
1599
1600 2013-01-07 Tom Tromey <tromey@redhat.com>
1601
1602 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
1603 Remove.
1604 (objc_language_defn): Use c_printchar, c_printstr,
1605 c_emit_char.
1606
1607 2013-01-07 Tom Tromey <tromey@redhat.com>
1608
1609 PR cli/7719:
1610 * NEWS: Update.
1611 * ada-valprint.c (printstr, print_field_values): Remove
1612 "inspect_it" code.
1613 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
1614 code.
1615 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
1616 code.
1617 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
1618 * main.c (captured_main): Remove "epoch" argument.
1619 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
1620 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
1621 * p-valprint.c (pascal_object_print_value_fields): Remove
1622 "inspect_it" code.
1623 * printcmd.c (print_command_1): Remove 'inspect' argument.
1624 (print_command, call_command): Update.
1625 (inspect_command): Remove.
1626 (_initialize_printcmd): Make "inspect" an alias for "print".
1627 * top.c (epoch_interface): Remove.
1628 * top.h (epoch_interface): Remove.
1629 * valprint.c (user_print_options): Update.
1630 (print_converted_chars_to_obstack): Remove "inspect_it" code.
1631 * valprint.h (struct value_print_options) <inspect_it>: Remove
1632 field.
1633
1634 2013-01-04 Tom Tromey <tromey@redhat.com>
1635
1636 * valprint.h (read_string): Add 'extern'.
1637
1638 2013-01-07 Joel Brobecker <brobecker@adacore.com>
1639
1640 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
1641 used to decide whether to define darwin_read_dyld_info or not.
1642
1643 2013-01-03 Pierre Muller <muller@sourceware.org>
1644
1645 * main.c (relocate_gdb_directory): Avoid calling stat function
1646 if DIR is empty.
1647
1648 2013-01-03 Yao Qi <yao@codesourcery.com>
1649
1650 * psymtab.c (fixup_psymbol_section): Update declaration.
1651 (fixup_psymbol_section): Remove code returning value.
1652
1653 2013-01-03 Yao Qi <yao@codesourcery.com>
1654
1655 * symtab.h: Remove some out of date comments.
1656 (enum exception_event_kind): Move it ...
1657 * breakpoint.c: ... here.
1658
1659 2013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
1660
1661 PR gdb/14405
1662 * darwin-nat.c (darwin_read_dyld_info): Only build if
1663 TASK_DYLD_INFO_COUNT is defined.
1664 (darwin_xfer_partial): Call darwin_read_dyld_info only if
1665 TASK_DYLD_INFO_COUNT is defined.
1666
1667 2013-01-02 Tom Tromey <tromey@redhat.com>
1668
1669 * symfile.h (struct ecoff_debug_hack): Remove.
1670 * objfiles.c: Don't include mdebugread.h.
1671
1672 2013-01-02 Tom Tromey <tromey@redhat.com>
1673
1674 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
1675 * configure.ac: Check for Mach-O support in BFD. Update
1676 CONFIG_OBS.
1677 * configure: Rebuild.
1678
1679 2013-01-02 Tom Tromey <tromey@redhat.com>
1680
1681 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
1682 * configure.ac: Use GDB_AC_CHECK_BFD.
1683 * configure: Rebuild.
1684
1685 2013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
1686
1687 * MAINTAINERS: Update my email.
1688
1689 2013-01-01 Joel Brobecker <brobecker@adacore.com>
1690
1691 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
1692
1693 2013-01-01 Joel Brobecker <brobecker@adacore.com>
1694
1695 * rs6000-nat.c (bss_data_overlap): New function.
1696 (vmap_symtab): Use it to adjust the .bss section's offset.
1697
1698 2013-01-01 Joel Brobecker <brobecker@adacore.com>
1699
1700 Update year range in copyright notice of all files.
1701
1702 2013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
1703
1704 * top.c (print_gdb_version): Update copyright year.
1705
1706 For older changes see ChangeLog-2012.
1707 \f
1708 Local Variables:
1709 mode: change-log
1710 left-margin: 8
1711 fill-column: 74
1712 version-control: never
1713 coding: utf-8
1714 End:
This page took 0.065189 seconds and 5 git commands to generate.